configure revision 4a0697786caa9bd8cd7b7f133f5e10d2bc7ab5e0
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
834DJVU_LIBS
835DJVU_DELEGATE_FALSE
836DJVU_DELEGATE_TRUE
837FPX_LIBS
838FPX_DELEGATE_FALSE
839FPX_DELEGATE_TRUE
840FFTW_LIBS
841FFTW_DELEGATE_FALSE
842FFTW_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_dejavu_font_dir
1173with_fftw
1174with_fpx
1175with_djvu
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  --with-dejavu-font-dir=DIR
1944                          DejaVu font directory
1945  --without-fftw          disable FFTW support
1946  --without-fpx           disable FlashPIX support
1947  --without-djvu          disable DjVu 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=16629:16633M
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# versioning 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
8030ac_ext=c
8031ac_cpp='$CPP $CPPFLAGS'
8032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8037$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8038if ${ac_cv_cflags_warn_all+:} false; then :
8039  $as_echo_n "(cached) " >&6
8040else
8041  ac_cv_cflags_warn_all="no, unknown"
8042ac_save_CFLAGS="$CFLAGS"
8043for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
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
8061CFLAGS="$ac_save_CFLAGS"
8062
8063fi
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8065$as_echo "$ac_cv_cflags_warn_all" >&6; }
8066
8067
8068case ".$ac_cv_cflags_warn_all" in
8069     .ok|.ok,*)  ;;
8070   .|.no|.no,*)  ;;
8071   *) if ${CFLAGS+:} false; then :
8072  case " $CFLAGS " in
8073    *" $ac_cv_cflags_warn_all "*)
8074      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8075  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8076  ac_status=$?
8077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078  test $ac_status = 0; }
8079      ;;
8080    *)
8081      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8082  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8083  ac_status=$?
8084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085  test $ac_status = 0; }
8086      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8087      ;;
8088   esac
8089else
8090  CFLAGS="$ac_cv_cflags_warn_all"
8091fi
8092 ;;
8093esac
8094
8095ac_ext=c
8096ac_cpp='$CPP $CPPFLAGS'
8097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100
8101
8102
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8105set x ${MAKE-make}
8106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8108  $as_echo_n "(cached) " >&6
8109else
8110  cat >conftest.make <<\_ACEOF
8111SHELL = /bin/sh
8112all:
8113	@echo '@@@%%%=$(MAKE)=@@@%%%'
8114_ACEOF
8115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8116case `${MAKE-make} -f conftest.make 2>/dev/null` in
8117  *@@@%%%=?*=@@@%%%*)
8118    eval ac_cv_prog_make_${ac_make}_set=yes;;
8119  *)
8120    eval ac_cv_prog_make_${ac_make}_set=no;;
8121esac
8122rm -f conftest.make
8123fi
8124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8126$as_echo "yes" >&6; }
8127  SET_MAKE=
8128else
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131  SET_MAKE="MAKE=${MAKE-make}"
8132fi
8133
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8135$as_echo_n "checking whether ln -s works... " >&6; }
8136LN_S=$as_ln_s
8137if test "$LN_S" = "ln -s"; then
8138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139$as_echo "yes" >&6; }
8140else
8141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8142$as_echo "no, using $LN_S" >&6; }
8143fi
8144
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8146$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8147if ${ac_cv_path_SED+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8151     for ac_i in 1 2 3 4 5 6 7; do
8152       ac_script="$ac_script$as_nl$ac_script"
8153     done
8154     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8155     { ac_script=; unset ac_script;}
8156     if test -z "$SED"; then
8157  ac_path_SED_found=false
8158  # Loop through the user's path and test for each of PROGNAME-LIST
8159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162  IFS=$as_save_IFS
8163  test -z "$as_dir" && as_dir=.
8164    for ac_prog in sed gsed; do
8165    for ac_exec_ext in '' $ac_executable_extensions; do
8166      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8167      as_fn_executable_p "$ac_path_SED" || continue
8168# Check for GNU ac_path_SED and select it if it is found.
8169  # Check for GNU $ac_path_SED
8170case `"$ac_path_SED" --version 2>&1` in
8171*GNU*)
8172  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8173*)
8174  ac_count=0
8175  $as_echo_n 0123456789 >"conftest.in"
8176  while :
8177  do
8178    cat "conftest.in" "conftest.in" >"conftest.tmp"
8179    mv "conftest.tmp" "conftest.in"
8180    cp "conftest.in" "conftest.nl"
8181    $as_echo '' >> "conftest.nl"
8182    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8183    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8184    as_fn_arith $ac_count + 1 && ac_count=$as_val
8185    if test $ac_count -gt ${ac_path_SED_max-0}; then
8186      # Best one so far, save it but keep looking for a better one
8187      ac_cv_path_SED="$ac_path_SED"
8188      ac_path_SED_max=$ac_count
8189    fi
8190    # 10*(2^10) chars as input seems more than enough
8191    test $ac_count -gt 10 && break
8192  done
8193  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8194esac
8195
8196      $ac_path_SED_found && break 3
8197    done
8198  done
8199  done
8200IFS=$as_save_IFS
8201  if test -z "$ac_cv_path_SED"; then
8202    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8203  fi
8204else
8205  ac_cv_path_SED=$SED
8206fi
8207
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8210$as_echo "$ac_cv_path_SED" >&6; }
8211 SED="$ac_cv_path_SED"
8212  rm -f conftest.sed
8213
8214for ac_prog in gawk mawk nawk awk
8215do
8216  # Extract the first word of "$ac_prog", so it can be a program name with args.
8217set dummy $ac_prog; ac_word=$2
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219$as_echo_n "checking for $ac_word... " >&6; }
8220if ${ac_cv_prog_AWK+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  if test -n "$AWK"; then
8224  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8225else
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229  IFS=$as_save_IFS
8230  test -z "$as_dir" && as_dir=.
8231    for ac_exec_ext in '' $ac_executable_extensions; do
8232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233    ac_cv_prog_AWK="$ac_prog"
8234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235    break 2
8236  fi
8237done
8238  done
8239IFS=$as_save_IFS
8240
8241fi
8242fi
8243AWK=$ac_cv_prog_AWK
8244if test -n "$AWK"; then
8245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8246$as_echo "$AWK" >&6; }
8247else
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
8250fi
8251
8252
8253  test -n "$AWK" && break
8254done
8255
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8257$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8258
8259# Check whether --with-dmalloc was given.
8260if test "${with_dmalloc+set}" = set; then :
8261  withval=$with_dmalloc; if test "$withval" = yes; then
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8263$as_echo "yes" >&6; }
8264
8265$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8266
8267  LIBS="$LIBS -ldmalloc"
8268  LDFLAGS="$LDFLAGS -g"
8269else
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273else
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
8276fi
8277
8278
8279
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8281$as_echo_n "checking for __attribute__... " >&6; }
8282if ${ax_cv___attribute__+:} false; then :
8283  $as_echo_n "(cached) " >&6
8284else
8285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h.  */
8287#include <stdlib.h>
8288	  static void foo(void) __attribute__ ((__unused__));
8289	  static void
8290	  foo(void) {
8291	      exit(1);
8292	  }
8293
8294int
8295main ()
8296{
8297
8298  ;
8299  return 0;
8300}
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"; then :
8303  ax_cv___attribute__=yes
8304else
8305  ax_cv___attribute__=no
8306
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8312$as_echo "$ax_cv___attribute__" >&6; }
8313  if test "$ax_cv___attribute__" = "yes"; then
8314
8315$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8316
8317  fi
8318
8319
8320
8321
8322
8323
8324# Check whether --with-gcc-arch was given.
8325if test "${with_gcc_arch+set}" = set; then :
8326  withval=$with_gcc_arch; ax_gcc_arch=$withval
8327else
8328  ax_gcc_arch=yes
8329fi
8330
8331
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8333$as_echo_n "checking for gcc architecture flag... " >&6; }
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8335$as_echo "" >&6; }
8336if ${ax_cv_gcc_archflag+:} false; then :
8337  $as_echo_n "(cached) " >&6
8338else
8339
8340ax_cv_gcc_archflag="unknown"
8341
8342if test "$GCC" = yes; then
8343
8344if test "x$ax_gcc_arch" = xyes; then
8345ax_gcc_arch=""
8346if test "$cross_compiling" = no; then
8347case $host_cpu in
8348  i[3456]86*|x86_64*|amd64*) # use cpuid codes
8349
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8357$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8358if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  if test "$cross_compiling" = yes; then :
8362  ax_cv_gcc_x86_cpuid_0=unknown
8363else
8364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366#include <stdio.h>
8367int
8368main ()
8369{
8370
8371     int op = 0, eax, ebx, ecx, edx;
8372     FILE *f;
8373      __asm__("cpuid"
8374        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8375        : "a" (op));
8376     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8377     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8378     fclose(f);
8379     return 0;
8380
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_run "$LINENO"; then :
8386  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8387else
8388  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8389fi
8390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391  conftest.$ac_objext conftest.beam conftest.$ac_ext
8392fi
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8396$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8412$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8413if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  if test "$cross_compiling" = yes; then :
8417  ax_cv_gcc_x86_cpuid_1=unknown
8418else
8419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421#include <stdio.h>
8422int
8423main ()
8424{
8425
8426     int op = 1, eax, ebx, ecx, edx;
8427     FILE *f;
8428      __asm__("cpuid"
8429        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8430        : "a" (op));
8431     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8432     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8433     fclose(f);
8434     return 0;
8435
8436  ;
8437  return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_run "$LINENO"; then :
8441  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8442else
8443  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8444fi
8445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446  conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8451$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8452ac_ext=c
8453ac_cpp='$CPP $CPPFLAGS'
8454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459     case $ax_cv_gcc_x86_cpuid_0 in
8460       *:756e6547:*:*) # Intel
8461          case $ax_cv_gcc_x86_cpuid_1 in
8462	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8463	    *5??:*:*:*) ax_gcc_arch=pentium ;;
8464	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8465	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8466	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8467	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8468	    *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8469	    *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8470	    *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8471	    *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8472	    *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8473	    *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8474	    *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8475	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8476	    *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
8477		case $host_cpu in
8478	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8479	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8480	        esac ;;
8481	    *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8482          esac ;;
8483       *:68747541:*:*) # AMD
8484          case $ax_cv_gcc_x86_cpuid_1 in
8485	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8486	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8487	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8488	    *60?:*:*:*) ax_gcc_arch=k7 ;;
8489	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8490	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8491	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8492	    *6[68a]?:*:*:*)
8493
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8501$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8502if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8503  $as_echo_n "(cached) " >&6
8504else
8505  if test "$cross_compiling" = yes; then :
8506  ax_cv_gcc_x86_cpuid_0x80000006=unknown
8507else
8508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510#include <stdio.h>
8511int
8512main ()
8513{
8514
8515     int op = 0x80000006, eax, ebx, ecx, edx;
8516     FILE *f;
8517      __asm__("cpuid"
8518        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8519        : "a" (op));
8520     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8521     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8522     fclose(f);
8523     return 0;
8524
8525  ;
8526  return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_run "$LINENO"; then :
8530  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8531else
8532  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8533fi
8534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8535  conftest.$ac_objext conftest.beam conftest.$ac_ext
8536fi
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8540$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8541ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 # L2 cache size
8548	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
8549                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8550			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8551                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8552	       esac ;;
8553	    *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8554	    *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8555	    *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8556	    *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8557	    *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8558	    *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8559	    *f??:*:*:*) ax_gcc_arch="k8" ;;
8560          esac ;;
8561	*:746e6543:*:*) # IDT
8562	   case $ax_cv_gcc_x86_cpuid_1 in
8563	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8564	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8565	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8566	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8567	   esac ;;
8568     esac
8569     if test x"$ax_gcc_arch" = x; then # fallback
8570	case $host_cpu in
8571	  i586*) ax_gcc_arch=pentium ;;
8572	  i686*) ax_gcc_arch=pentiumpro ;;
8573        esac
8574     fi
8575     ;;
8576
8577  sparc*)
8578     # Extract the first word of "prtdiag", so it can be a program name with args.
8579set dummy prtdiag; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_path_PRTDIAG+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  case $PRTDIAG in
8586  [\\/]* | ?:[\\/]*)
8587  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8588  ;;
8589  *)
8590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8592for as_dir in $as_dummy
8593do
8594  IFS=$as_save_IFS
8595  test -z "$as_dir" && as_dir=.
8596    for ac_exec_ext in '' $ac_executable_extensions; do
8597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600    break 2
8601  fi
8602done
8603  done
8604IFS=$as_save_IFS
8605
8606  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8607  ;;
8608esac
8609fi
8610PRTDIAG=$ac_cv_path_PRTDIAG
8611if test -n "$PRTDIAG"; then
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8613$as_echo "$PRTDIAG" >&6; }
8614else
8615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620     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`
8621     cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
8622     case $cputype in
8623         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8624         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8625         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8626         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8627         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8628         *cypress*) ax_gcc_arch=cypress ;;
8629     esac ;;
8630
8631  alphaev5) ax_gcc_arch=ev5 ;;
8632  alphaev56) ax_gcc_arch=ev56 ;;
8633  alphapca56) ax_gcc_arch="pca56 ev56" ;;
8634  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8635  alphaev6) ax_gcc_arch=ev6 ;;
8636  alphaev67) ax_gcc_arch=ev67 ;;
8637  alphaev68) ax_gcc_arch="ev68 ev67" ;;
8638  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8639  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8640  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8641
8642  powerpc*)
8643     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`
8644     cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
8645     case $cputype in
8646       *750*) ax_gcc_arch="750 G3" ;;
8647       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8648       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8649       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8650       *970*) ax_gcc_arch="970 G5 power4";;
8651       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8652       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8653       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8654       *) ax_gcc_arch=$cputype ;;
8655     esac
8656     ax_gcc_arch="$ax_gcc_arch powerpc"
8657     ;;
8658esac
8659fi # not cross-compiling
8660fi # guess arch
8661
8662if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8663for arch in $ax_gcc_arch; do
8664  if test "xno" = xyes; then # if we require portable code
8665    flags="-mtune=$arch"
8666    # -mcpu=$arch and m$arch generate nonportable code on every arch except
8667    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
8668    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8669  else
8670    flags="-march=$arch -mcpu=$arch -m$arch"
8671  fi
8672  for flag in $flags; do
8673    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8675$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8676if eval \${$as_CACHEVAR+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679
8680  ax_check_save_flags=$CFLAGS
8681  CFLAGS="$CFLAGS  $flag"
8682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h.  */
8684
8685int
8686main ()
8687{
8688
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694  eval "$as_CACHEVAR=yes"
8695else
8696  eval "$as_CACHEVAR=no"
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699  CFLAGS=$ax_check_save_flags
8700fi
8701eval ac_res=\$$as_CACHEVAR
8702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8703$as_echo "$ac_res" >&6; }
8704if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8705  ax_cv_gcc_archflag=$flag; break
8706else
8707  :
8708fi
8709
8710  done
8711  test "x$ax_cv_gcc_archflag" = xunknown || break
8712done
8713fi
8714
8715fi # $GCC=yes
8716
8717fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8720$as_echo_n "checking for gcc architecture flag... " >&6; }
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8722$as_echo "$ax_cv_gcc_archflag" >&6; }
8723if test "x$ax_cv_gcc_archflag" = xunknown; then
8724  :
8725else
8726  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8727fi
8728
8729
8730
8731if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8732	if test -n "$ac_tool_prefix"; then
8733  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if ${ac_cv_path_PKG_CONFIG+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  case $PKG_CONFIG in
8741  [\\/]* | ?:[\\/]*)
8742  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8743  ;;
8744  *)
8745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748  IFS=$as_save_IFS
8749  test -z "$as_dir" && as_dir=.
8750    for ac_exec_ext in '' $ac_executable_extensions; do
8751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754    break 2
8755  fi
8756done
8757  done
8758IFS=$as_save_IFS
8759
8760  ;;
8761esac
8762fi
8763PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8764if test -n "$PKG_CONFIG"; then
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8766$as_echo "$PKG_CONFIG" >&6; }
8767else
8768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773fi
8774if test -z "$ac_cv_path_PKG_CONFIG"; then
8775  ac_pt_PKG_CONFIG=$PKG_CONFIG
8776  # Extract the first word of "pkg-config", so it can be a program name with args.
8777set dummy pkg-config; ac_word=$2
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
8780if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  case $ac_pt_PKG_CONFIG in
8784  [\\/]* | ?:[\\/]*)
8785  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8786  ;;
8787  *)
8788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791  IFS=$as_save_IFS
8792  test -z "$as_dir" && as_dir=.
8793    for ac_exec_ext in '' $ac_executable_extensions; do
8794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797    break 2
8798  fi
8799done
8800  done
8801IFS=$as_save_IFS
8802
8803  ;;
8804esac
8805fi
8806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8807if test -n "$ac_pt_PKG_CONFIG"; then
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8809$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8810else
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815  if test "x$ac_pt_PKG_CONFIG" = x; then
8816    PKG_CONFIG=""
8817  else
8818    case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824    PKG_CONFIG=$ac_pt_PKG_CONFIG
8825  fi
8826else
8827  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8828fi
8829
8830fi
8831if test -n "$PKG_CONFIG"; then
8832	_pkg_min_version=0.9.0
8833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8834$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8835	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837$as_echo "yes" >&6; }
8838	else
8839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841		PKG_CONFIG=""
8842	fi
8843
8844fi
8845
8846# Test for 64-bit build.
8847# The cast to long int works around a bug in the HP C Compiler
8848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8850# This bug is HP SR number 8606223364.
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8852$as_echo_n "checking size of size_t... " >&6; }
8853if ${ac_cv_sizeof_size_t+:} false; then :
8854  $as_echo_n "(cached) " >&6
8855else
8856  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
8857
8858else
8859  if test "$ac_cv_type_size_t" = yes; then
8860     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8862as_fn_error 77 "cannot compute sizeof (size_t)
8863See \`config.log' for more details" "$LINENO" 5; }
8864   else
8865     ac_cv_sizeof_size_t=0
8866   fi
8867fi
8868
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8871$as_echo "$ac_cv_sizeof_size_t" >&6; }
8872
8873
8874
8875cat >>confdefs.h <<_ACEOF
8876#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8877_ACEOF
8878
8879
8880
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8882$as_echo_n "checking for C compiler vendor... " >&6; }
8883if ${ax_cv_c_compiler_vendor+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  # note: don't check for gcc first since some other compilers define __GNUC__
8887  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
8888           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
8889           pathscale: __PATHCC__,__PATHSCALE__
8890           clang:     __clang__
8891           fujitsu:   __FUJITSU
8892           gnu:       __GNUC__
8893           sun:       __SUNPRO_C,__SUNPRO_CC
8894           hp:        __HP_cc,__HP_aCC
8895           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8896           borland:   __BORLANDC__,__TURBOC__
8897           comeau:    __COMO__
8898           cray:      _CRAYC
8899           kai:       __KCC
8900           lcc:       __LCC__
8901           sgi:       __sgi,sgi
8902           microsoft: _MSC_VER
8903           metrowerks: __MWERKS__
8904           watcom:    __WATCOMC__
8905           portland:  __PGI
8906           unknown:   UNKNOWN"
8907  for ventest in $vendors; do
8908    case $ventest in
8909      *:) vendor=$ventest; continue ;;
8910      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8911    esac
8912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914
8915int
8916main ()
8917{
8918
8919      #if !($vencpp)
8920        thisisanerror;
8921      #endif
8922
8923  ;
8924  return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928  break
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931  done
8932  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8936$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8937
8938# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8939# compiler.
8940if test "$ax_cv_c_compiler_vendor" != "sun"; then
8941  ac_ext=c
8942ac_cpp='$CPP $CPPFLAGS'
8943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8948$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8949if ${ac_cv_cflags_warn_all+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  ac_cv_cflags_warn_all="no, unknown"
8953ac_save_CFLAGS="$CFLAGS"
8954for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
8955do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957/* end confdefs.h.  */
8958
8959int
8960main ()
8961{
8962
8963  ;
8964  return 0;
8965}
8966_ACEOF
8967if ac_fn_c_try_compile "$LINENO"; then :
8968  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8969fi
8970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971done
8972CFLAGS="$ac_save_CFLAGS"
8973
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8976$as_echo "$ac_cv_cflags_warn_all" >&6; }
8977
8978
8979case ".$ac_cv_cflags_warn_all" in
8980     .ok|.ok,*)  ;;
8981   .|.no|.no,*)  ;;
8982   *) if ${CFLAGS+:} false; then :
8983  case " $CFLAGS " in
8984    *" $ac_cv_cflags_warn_all "*)
8985      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8986  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8987  ac_status=$?
8988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8989  test $ac_status = 0; }
8990      ;;
8991    *)
8992      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8993  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8994  ac_status=$?
8995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8996  test $ac_status = 0; }
8997      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8998      ;;
8999   esac
9000else
9001  CFLAGS="$ac_cv_cflags_warn_all"
9002fi
9003 ;;
9004esac
9005
9006ac_ext=c
9007ac_cpp='$CPP $CPPFLAGS'
9008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011
9012
9013fi
9014
9015if test "x$GCC" = "xyes"; then
9016  CFLAGS="$CFLAGS -fexceptions"
9017  touch local.exp
9018else
9019  cat > local.exp <<EOF
9020set CC_FOR_TARGET "$CC"
9021EOF
9022fi
9023
9024# Check for linker script support
9025
9026  # Check whether --enable-ld-version-script was given.
9027if test "${enable_ld_version_script+set}" = set; then :
9028  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9029fi
9030
9031  if test -z "$have_ld_version_script"; then
9032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9033$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9034    save_LDFLAGS="$LDFLAGS"
9035    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9036    cat > conftest.map <<EOF
9037foo
9038EOF
9039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041
9042int
9043main ()
9044{
9045
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"; then :
9051  accepts_syntax_errors=yes
9052else
9053  accepts_syntax_errors=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056    conftest$ac_exeext conftest.$ac_ext
9057    if test "$accepts_syntax_errors" = no; then
9058      cat > conftest.map <<EOF
9059VERS_1 {
9060        global: sym;
9061};
9062
9063VERS_2 {
9064        global: sym;
9065} VERS_1;
9066EOF
9067      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069
9070int
9071main ()
9072{
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"; then :
9079  have_ld_version_script=yes
9080else
9081  have_ld_version_script=no
9082fi
9083rm -f core conftest.err conftest.$ac_objext \
9084    conftest$ac_exeext conftest.$ac_ext
9085    else
9086      have_ld_version_script=no
9087    fi
9088    rm -f conftest.map
9089    LDFLAGS="$save_LDFLAGS"
9090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9091$as_echo "$have_ld_version_script" >&6; }
9092  fi
9093   if test "$have_ld_version_script" = "yes"; then
9094  HAVE_LD_VERSION_SCRIPT_TRUE=
9095  HAVE_LD_VERSION_SCRIPT_FALSE='#'
9096else
9097  HAVE_LD_VERSION_SCRIPT_TRUE='#'
9098  HAVE_LD_VERSION_SCRIPT_FALSE=
9099fi
9100
9101
9102
9103#
9104# Enable run-time checking.
9105#
9106# Check whether --enable-bounds-checking was given.
9107if test "${enable_bounds_checking+set}" = set; then :
9108  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9109else
9110  enable_bounds_checking='no'
9111fi
9112
9113
9114if test "$enable_bounds_checking" = yes; then
9115
9116$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
9117
9118fi
9119
9120#
9121# Tests for Windows
9122#
9123
9124
9125
9126GDI32_LIBS=''
9127native_win32_build='no'
9128cygwin_build='no'
9129case "${host_os}" in
9130    cygwin* )
9131        cygwin_build='yes'
9132        GDI32_LIBS='-lgdi32'
9133    ;;
9134    mingw* )
9135        native_win32_build='yes'
9136        GDI32_LIBS='-lgdi32'
9137    ;;
9138esac
9139if test "${GDI32_LIBS}x" != 'x'; then
9140
9141$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
9142
9143fi
9144
9145 if test "${GDI32_LIBS}x" != 'x' ; then
9146  WINGDI32_DELEGATE_TRUE=
9147  WINGDI32_DELEGATE_FALSE='#'
9148else
9149  WINGDI32_DELEGATE_TRUE='#'
9150  WINGDI32_DELEGATE_FALSE=
9151fi
9152
9153 if test "${native_win32_build}" = 'yes' ; then
9154  WIN32_NATIVE_BUILD_TRUE=
9155  WIN32_NATIVE_BUILD_FALSE='#'
9156else
9157  WIN32_NATIVE_BUILD_TRUE='#'
9158  WIN32_NATIVE_BUILD_FALSE=
9159fi
9160
9161 if test "${cygwin_build}" = 'yes' ; then
9162  CYGWIN_BUILD_TRUE=
9163  CYGWIN_BUILD_FALSE='#'
9164else
9165  CYGWIN_BUILD_TRUE='#'
9166  CYGWIN_BUILD_FALSE=
9167fi
9168
9169 if test "x${CC}" = 'xcl.exe' ; then
9170  USING_CL_TRUE=
9171  USING_CL_FALSE='#'
9172else
9173  USING_CL_TRUE='#'
9174  USING_CL_FALSE=
9175fi
9176
9177
9178WinPathScript="${srcdirfull}/winpath.sh"
9179
9180
9181#
9182# Compiler flags tweaks
9183#
9184if test "${GCC}" != "yes"; then
9185    case "${host}" in
9186        *-*-hpux* )
9187            # aCC: HP ANSI C++ B3910B A.03.34
9188            CFLAGS="${CFLAGS} -Wp,-H30000"
9189            if test -n "${CXXFLAGS}"; then
9190                CXXFLAGS='-AA'
9191            else
9192                CXXFLAGS="${CXXFLAGS} -AA"
9193            fi
9194        ;;
9195        *-dec-osf5.* )
9196            # Compaq alphaev68-dec-osf5.1 compiler
9197            if test -n "${CXXFLAGS}"; then
9198                CXXFLAGS='-std strict_ansi -noimplicit_include'
9199            else
9200                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9201            fi
9202  esac
9203fi
9204
9205# Check for lazy-loading.
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
9207$as_echo_n "checking for linker lazyload option... " >&6; }
9208if ${im_cv_ld_lazyload+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211
9212im_cv_ld_lazyload='none'
9213case "${host}" in
9214  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9215    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9216       im_cv_ld_lazyload='-Wl,-zlazyload'
9217    fi
9218    ;;
9219esac
9220
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
9223$as_echo "$im_cv_ld_lazyload" >&6; }
9224if test "${im_cv_ld_lazyload}" != 'none' ; then
9225  if test -z "${LDFLAGS}" ; then
9226    LDFLAGS="${im_cv_ld_lazyload}"
9227  else
9228    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9229  fi
9230fi
9231
9232case "$host" in
9233  *darwin* | *-macos10*)
9234        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
9235        # Check whether --enable-osx-universal-binary was given.
9236if test "${enable_osx_universal_binary+set}" = set; then :
9237  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9238else
9239  build_osxuniversal=no
9240fi
9241
9242
9243    if test "${build_osxuniversal}" != no ; then
9244      if test "$enable_dependency_tracking" != no ; then
9245        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
9246Please re-run configure with these options:
9247  --disable-dependency-tracking --enable-osx-universal-binary
9248        " "$LINENO" 5
9249      fi
9250      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9251      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9252      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9253  fi
9254  ;;
9255esac
9256
9257#
9258# ARCH specific include directory
9259#
9260
9261# Check whether --with-includearch-dir was given.
9262if test "${with_includearch_dir+set}" = set; then :
9263  withval=$with_includearch_dir; includearch_dir=$withval
9264else
9265  includearch_dir=$INCLUDE_DIR
9266fi
9267
9268
9269eval "eval INCLUDEARCH_DIR=$includearch_dir"
9270
9271
9272#
9273# ARCH specific configuration directory
9274#
9275
9276# Check whether --with-sharearch-dir was given.
9277if test "${with_sharearch_dir+set}" = set; then :
9278  withval=$with_sharearch_dir; sharearch_dir=$withval
9279else
9280  sharearch_dir="${LIB_DIR}"
9281fi
9282
9283
9284eval "eval SHAREARCH_DIR=$sharearch_dir"
9285
9286
9287# Path to the pkgconfig folder
9288
9289# Check whether --with-pkgconfigdir was given.
9290if test "${with_pkgconfigdir+set}" = set; then :
9291  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9292else
9293  pkgconfigdir='${libdir}/pkgconfig'
9294fi
9295
9296
9297
9298#
9299# Enable support for threads
9300#
9301# Find Posix threads library
9302#
9303
9304# Check whether --with-threads was given.
9305if test "${with_threads+set}" = set; then :
9306  withval=$with_threads; with_threads=$withval
9307else
9308  with_threads='yes'
9309fi
9310
9311
9312THREAD_LIBS=''
9313have_threads=no
9314if test "$with_threads" != 'no'; then
9315
9316
9317ac_ext=c
9318ac_cpp='$CPP $CPPFLAGS'
9319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9321ac_compiler_gnu=$ac_cv_c_compiler_gnu
9322
9323ax_pthread_ok=no
9324
9325# We used to check for pthread.h first, but this fails if pthread.h
9326# requires special compiler flags (e.g. on True64 or Sequent).
9327# It gets checked for in the link test anyway.
9328
9329# First of all, check if the user has set any of the PTHREAD_LIBS,
9330# etcetera environment variables, and if threads linking works using
9331# them:
9332if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9333        save_CFLAGS="$CFLAGS"
9334        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9335        save_LIBS="$LIBS"
9336        LIBS="$PTHREAD_LIBS $LIBS"
9337        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9338$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9339        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h.  */
9341
9342/* Override any GCC internal prototype to avoid an error.
9343   Use char because int might match the return type of a GCC
9344   builtin and then its argument prototype would still apply.  */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char pthread_join ();
9349int
9350main ()
9351{
9352return pthread_join ();
9353  ;
9354  return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358  ax_pthread_ok=yes
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361    conftest$ac_exeext conftest.$ac_ext
9362        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9363$as_echo "$ax_pthread_ok" >&6; }
9364        if test x"$ax_pthread_ok" = xno; then
9365                PTHREAD_LIBS=""
9366                PTHREAD_CFLAGS=""
9367        fi
9368        LIBS="$save_LIBS"
9369        CFLAGS="$save_CFLAGS"
9370fi
9371
9372# We must check for the threads library under a number of different
9373# names; the ordering is very important because some systems
9374# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9375# libraries is broken (non-POSIX).
9376
9377# Create a list of thread flags to try.  Items starting with a "-" are
9378# C compiler flags, and other items are library names, except for "none"
9379# which indicates that we try without any flags at all, and "pthread-config"
9380# which is a program returning the flags for the Pth emulation library.
9381
9382ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9383
9384# The ordering *is* (sometimes) important.  Some notes on the
9385# individual items follow:
9386
9387# pthreads: AIX (must check this before -lpthread)
9388# none: in case threads are in libc; should be tried before -Kthread and
9389#       other compiler flags to prevent continual compiler warnings
9390# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9391# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9392# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9393# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9394# -pthreads: Solaris/gcc
9395# -mthreads: Mingw32/gcc, Lynx/gcc
9396# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9397#      doesn't hurt to check since this sometimes defines pthreads too;
9398#      also defines -D_REENTRANT)
9399#      ... -mt is also the pthreads flag for HP/aCC
9400# pthread: Linux, etcetera
9401# --thread-safe: KAI C++
9402# pthread-config: use pthread-config program (for GNU Pth library)
9403
9404case ${host_os} in
9405        solaris*)
9406
9407        # On Solaris (at least, for some versions), libc contains stubbed
9408        # (non-functional) versions of the pthreads routines, so link-based
9409        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9410        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9411        # a function called by this macro, so we could check for that, but
9412        # who knows whether they'll stub that too in a future libc.)  So,
9413        # we'll just look for -pthreads and -lpthread first:
9414
9415        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9416        ;;
9417
9418        darwin*)
9419        ax_pthread_flags="-pthread $ax_pthread_flags"
9420        ;;
9421esac
9422
9423# Clang doesn't consider unrecognized options an error unless we specify
9424# -Werror. We throw in some extra Clang-specific options to ensure that
9425# this doesn't happen for GCC, which also accepts -Werror.
9426
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9428$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9429save_CFLAGS="$CFLAGS"
9430ax_pthread_extra_flags="-Werror"
9431CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433/* end confdefs.h.  */
9434int foo(void);
9435int
9436main ()
9437{
9438foo()
9439  ;
9440  return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_compile "$LINENO"; then :
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9445$as_echo "yes" >&6; }
9446else
9447  ax_pthread_extra_flags=
9448                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
9450fi
9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452CFLAGS="$save_CFLAGS"
9453
9454if test x"$ax_pthread_ok" = xno; then
9455for flag in $ax_pthread_flags; do
9456
9457        case $flag in
9458                none)
9459                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9460$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9461                ;;
9462
9463                -*)
9464                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9465$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9466                PTHREAD_CFLAGS="$flag"
9467                ;;
9468
9469                pthread-config)
9470                # Extract the first word of "pthread-config", so it can be a program name with args.
9471set dummy pthread-config; ac_word=$2
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if ${ac_cv_prog_ax_pthread_config+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  if test -n "$ax_pthread_config"; then
9478  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483  IFS=$as_save_IFS
9484  test -z "$as_dir" && as_dir=.
9485    for ac_exec_ext in '' $ac_executable_extensions; do
9486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487    ac_cv_prog_ax_pthread_config="yes"
9488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489    break 2
9490  fi
9491done
9492  done
9493IFS=$as_save_IFS
9494
9495  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9496fi
9497fi
9498ax_pthread_config=$ac_cv_prog_ax_pthread_config
9499if test -n "$ax_pthread_config"; then
9500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9501$as_echo "$ax_pthread_config" >&6; }
9502else
9503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505fi
9506
9507
9508                if test x"$ax_pthread_config" = xno; then continue; fi
9509                PTHREAD_CFLAGS="`pthread-config --cflags`"
9510                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9511                ;;
9512
9513                *)
9514                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9515$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9516                PTHREAD_LIBS="-l$flag"
9517                ;;
9518        esac
9519
9520        save_LIBS="$LIBS"
9521        save_CFLAGS="$CFLAGS"
9522        LIBS="$PTHREAD_LIBS $LIBS"
9523        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
9524
9525        # Check for various functions.  We must include pthread.h,
9526        # since some functions may be macros.  (On the Sequent, we
9527        # need a special flag -Kthread to make this header compile.)
9528        # We check for pthread_join because it is in -lpthread on IRIX
9529        # while pthread_create is in libc.  We check for pthread_attr_init
9530        # due to DEC craziness with -lpthreads.  We check for
9531        # pthread_cleanup_push because it is one of the few pthread
9532        # functions on Solaris that doesn't have a non-functional libc stub.
9533        # We try pthread_create on general principles.
9534        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536#include <pthread.h>
9537                        static void routine(void *a) { a = 0; }
9538                        static void *start_routine(void *a) { return a; }
9539int
9540main ()
9541{
9542pthread_t th; pthread_attr_t attr;
9543                        pthread_create(&th, 0, start_routine, 0);
9544                        pthread_join(th, 0);
9545                        pthread_attr_init(&attr);
9546                        pthread_cleanup_push(routine, 0);
9547                        pthread_cleanup_pop(0) /* ; */
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553  ax_pthread_ok=yes
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556    conftest$ac_exeext conftest.$ac_ext
9557
9558        LIBS="$save_LIBS"
9559        CFLAGS="$save_CFLAGS"
9560
9561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9562$as_echo "$ax_pthread_ok" >&6; }
9563        if test "x$ax_pthread_ok" = xyes; then
9564                break;
9565        fi
9566
9567        PTHREAD_LIBS=""
9568        PTHREAD_CFLAGS=""
9569done
9570fi
9571
9572# Various other checks:
9573if test "x$ax_pthread_ok" = xyes; then
9574        save_LIBS="$LIBS"
9575        LIBS="$PTHREAD_LIBS $LIBS"
9576        save_CFLAGS="$CFLAGS"
9577        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9578
9579        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9580        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9581$as_echo_n "checking for joinable pthread attribute... " >&6; }
9582        attr_name=unknown
9583        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9584            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586#include <pthread.h>
9587int
9588main ()
9589{
9590int attr = $attr; return attr /* ; */
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596  attr_name=$attr; break
9597fi
9598rm -f core conftest.err conftest.$ac_objext \
9599    conftest$ac_exeext conftest.$ac_ext
9600        done
9601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9602$as_echo "$attr_name" >&6; }
9603        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9604
9605cat >>confdefs.h <<_ACEOF
9606#define PTHREAD_CREATE_JOINABLE $attr_name
9607_ACEOF
9608
9609        fi
9610
9611        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9612$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9613        flag=no
9614        case ${host_os} in
9615            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9616            osf* | hpux*) flag="-D_REENTRANT";;
9617            solaris*)
9618            if test "$GCC" = "yes"; then
9619                flag="-D_REENTRANT"
9620            else
9621                # TODO: What about Clang on Solaris?
9622                flag="-mt -D_REENTRANT"
9623            fi
9624            ;;
9625        esac
9626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9627$as_echo "$flag" >&6; }
9628        if test "x$flag" != xno; then
9629            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9630        fi
9631
9632        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9633$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9634if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9635  $as_echo_n "(cached) " >&6
9636else
9637
9638                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640#include <pthread.h>
9641int
9642main ()
9643{
9644int i = PTHREAD_PRIO_INHERIT;
9645  ;
9646  return 0;
9647}
9648_ACEOF
9649if ac_fn_c_try_link "$LINENO"; then :
9650  ax_cv_PTHREAD_PRIO_INHERIT=yes
9651else
9652  ax_cv_PTHREAD_PRIO_INHERIT=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext \
9655    conftest$ac_exeext conftest.$ac_ext
9656
9657fi
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9659$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9660        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9661
9662$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9663
9664fi
9665
9666        LIBS="$save_LIBS"
9667        CFLAGS="$save_CFLAGS"
9668
9669        # More AIX lossage: compile with *_r variant
9670        if test "x$GCC" != xyes; then
9671            case $host_os in
9672                aix*)
9673                case "x/$CC" in #(
9674  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9675    #handle absolute path differently from PATH based program lookup
9676                   case "x$CC" in #(
9677  x/*) :
9678    if as_fn_executable_p ${CC}_r; then :
9679  PTHREAD_CC="${CC}_r"
9680fi ;; #(
9681  *) :
9682    for ac_prog in ${CC}_r
9683do
9684  # Extract the first word of "$ac_prog", so it can be a program name with args.
9685set dummy $ac_prog; ac_word=$2
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
9688if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9689  $as_echo_n "(cached) " >&6
9690else
9691  if test -n "$PTHREAD_CC"; then
9692  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697  IFS=$as_save_IFS
9698  test -z "$as_dir" && as_dir=.
9699    for ac_exec_ext in '' $ac_executable_extensions; do
9700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701    ac_cv_prog_PTHREAD_CC="$ac_prog"
9702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703    break 2
9704  fi
9705done
9706  done
9707IFS=$as_save_IFS
9708
9709fi
9710fi
9711PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9712if test -n "$PTHREAD_CC"; then
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9714$as_echo "$PTHREAD_CC" >&6; }
9715else
9716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
9718fi
9719
9720
9721  test -n "$PTHREAD_CC" && break
9722done
9723test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9724 ;;
9725esac ;; #(
9726  *) :
9727     ;;
9728esac
9729                ;;
9730            esac
9731        fi
9732fi
9733
9734test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9735
9736
9737
9738
9739
9740# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9741if test x"$ax_pthread_ok" = xyes; then
9742
9743$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9744
9745        :
9746else
9747        ax_pthread_ok=no
9748
9749fi
9750ac_ext=c
9751ac_cpp='$CPP $CPPFLAGS'
9752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755
9756
9757    if test "$ax_pthread_ok" = yes; then
9758        have_threads=yes
9759        DEF_THREAD="$PTHREAD_CFLAGS"
9760        CFLAGS="$CFLAGS $DEF_THREAD"
9761        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9762	THREAD_LIBS="$PTHREAD_LIBS"
9763        if test "$CC" != "$PTHREAD_CC"; then
9764            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
9765$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9766            CC="$PTHREAD_CC"
9767        fi
9768
9769$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9770
9771    fi
9772fi
9773LIBS="$LIBS $THREAD_LIBS"
9774
9775
9776# Enable support for OpenMP
9777if test "$have_threads" != 'yes'; then
9778  ac_cv_prog_c_openmp=unsupported
9779fi
9780
9781  OPENMP_CFLAGS=
9782  # Check whether --enable-openmp was given.
9783if test "${enable_openmp+set}" = set; then :
9784  enableval=$enable_openmp;
9785fi
9786
9787  if test "$enable_openmp" != no; then
9788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
9789$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
9790if ${ac_cv_prog_c_openmp+:} false; then :
9791  $as_echo_n "(cached) " >&6
9792else
9793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h.  */
9795
9796#ifndef _OPENMP
9797 choke me
9798#endif
9799#include <omp.h>
9800int main () { return omp_get_num_threads (); }
9801
9802_ACEOF
9803if ac_fn_c_try_link "$LINENO"; then :
9804  ac_cv_prog_c_openmp='none needed'
9805else
9806  ac_cv_prog_c_openmp='unsupported'
9807	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9808                           -Popenmp --openmp; do
9809	    ac_save_CFLAGS=$CFLAGS
9810	    CFLAGS="$CFLAGS $ac_option"
9811	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813
9814#ifndef _OPENMP
9815 choke me
9816#endif
9817#include <omp.h>
9818int main () { return omp_get_num_threads (); }
9819
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"; then :
9822  ac_cv_prog_c_openmp=$ac_option
9823fi
9824rm -f core conftest.err conftest.$ac_objext \
9825    conftest$ac_exeext conftest.$ac_ext
9826	    CFLAGS=$ac_save_CFLAGS
9827	    if test "$ac_cv_prog_c_openmp" != unsupported; then
9828	      break
9829	    fi
9830	  done
9831fi
9832rm -f core conftest.err conftest.$ac_objext \
9833    conftest$ac_exeext conftest.$ac_ext
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
9836$as_echo "$ac_cv_prog_c_openmp" >&6; }
9837    case $ac_cv_prog_c_openmp in #(
9838      "none needed" | unsupported)
9839	;; #(
9840      *)
9841	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
9842    esac
9843  fi
9844
9845
9846CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9847MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9848
9849if test "$enable_openmp" != no; then
9850  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9851    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9852  fi
9853fi
9854
9855# Enable support for OpenCL
9856
9857
9858ac_ext=c
9859ac_cpp='$CPP $CPPFLAGS'
9860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9862ac_compiler_gnu=$ac_cv_c_compiler_gnu
9863
9864ax_pthread_ok=no
9865
9866# We used to check for pthread.h first, but this fails if pthread.h
9867# requires special compiler flags (e.g. on True64 or Sequent).
9868# It gets checked for in the link test anyway.
9869
9870# First of all, check if the user has set any of the PTHREAD_LIBS,
9871# etcetera environment variables, and if threads linking works using
9872# them:
9873if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9874        save_CFLAGS="$CFLAGS"
9875        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9876        save_LIBS="$LIBS"
9877        LIBS="$PTHREAD_LIBS $LIBS"
9878        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9879$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9880        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h.  */
9882
9883/* Override any GCC internal prototype to avoid an error.
9884   Use char because int might match the return type of a GCC
9885   builtin and then its argument prototype would still apply.  */
9886#ifdef __cplusplus
9887extern "C"
9888#endif
9889char pthread_join ();
9890int
9891main ()
9892{
9893return pthread_join ();
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899  ax_pthread_ok=yes
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext conftest.$ac_ext
9903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9904$as_echo "$ax_pthread_ok" >&6; }
9905        if test x"$ax_pthread_ok" = xno; then
9906                PTHREAD_LIBS=""
9907                PTHREAD_CFLAGS=""
9908        fi
9909        LIBS="$save_LIBS"
9910        CFLAGS="$save_CFLAGS"
9911fi
9912
9913# We must check for the threads library under a number of different
9914# names; the ordering is very important because some systems
9915# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9916# libraries is broken (non-POSIX).
9917
9918# Create a list of thread flags to try.  Items starting with a "-" are
9919# C compiler flags, and other items are library names, except for "none"
9920# which indicates that we try without any flags at all, and "pthread-config"
9921# which is a program returning the flags for the Pth emulation library.
9922
9923ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9924
9925# The ordering *is* (sometimes) important.  Some notes on the
9926# individual items follow:
9927
9928# pthreads: AIX (must check this before -lpthread)
9929# none: in case threads are in libc; should be tried before -Kthread and
9930#       other compiler flags to prevent continual compiler warnings
9931# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9932# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9933# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9934# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9935# -pthreads: Solaris/gcc
9936# -mthreads: Mingw32/gcc, Lynx/gcc
9937# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9938#      doesn't hurt to check since this sometimes defines pthreads too;
9939#      also defines -D_REENTRANT)
9940#      ... -mt is also the pthreads flag for HP/aCC
9941# pthread: Linux, etcetera
9942# --thread-safe: KAI C++
9943# pthread-config: use pthread-config program (for GNU Pth library)
9944
9945case ${host_os} in
9946        solaris*)
9947
9948        # On Solaris (at least, for some versions), libc contains stubbed
9949        # (non-functional) versions of the pthreads routines, so link-based
9950        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9951        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9952        # a function called by this macro, so we could check for that, but
9953        # who knows whether they'll stub that too in a future libc.)  So,
9954        # we'll just look for -pthreads and -lpthread first:
9955
9956        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9957        ;;
9958
9959        darwin*)
9960        ax_pthread_flags="-pthread $ax_pthread_flags"
9961        ;;
9962esac
9963
9964# Clang doesn't consider unrecognized options an error unless we specify
9965# -Werror. We throw in some extra Clang-specific options to ensure that
9966# this doesn't happen for GCC, which also accepts -Werror.
9967
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9969$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9970save_CFLAGS="$CFLAGS"
9971ax_pthread_extra_flags="-Werror"
9972CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975int foo(void);
9976int
9977main ()
9978{
9979foo()
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_compile "$LINENO"; then :
9985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986$as_echo "yes" >&6; }
9987else
9988  ax_pthread_extra_flags=
9989                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990$as_echo "no" >&6; }
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993CFLAGS="$save_CFLAGS"
9994
9995if test x"$ax_pthread_ok" = xno; then
9996for flag in $ax_pthread_flags; do
9997
9998        case $flag in
9999                none)
10000                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10001$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10002                ;;
10003
10004                -*)
10005                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10006$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10007                PTHREAD_CFLAGS="$flag"
10008                ;;
10009
10010                pthread-config)
10011                # Extract the first word of "pthread-config", so it can be a program name with args.
10012set dummy pthread-config; ac_word=$2
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
10015if ${ac_cv_prog_ax_pthread_config+:} false; then :
10016  $as_echo_n "(cached) " >&6
10017else
10018  if test -n "$ax_pthread_config"; then
10019  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024  IFS=$as_save_IFS
10025  test -z "$as_dir" && as_dir=.
10026    for ac_exec_ext in '' $ac_executable_extensions; do
10027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028    ac_cv_prog_ax_pthread_config="yes"
10029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030    break 2
10031  fi
10032done
10033  done
10034IFS=$as_save_IFS
10035
10036  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10037fi
10038fi
10039ax_pthread_config=$ac_cv_prog_ax_pthread_config
10040if test -n "$ax_pthread_config"; then
10041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10042$as_echo "$ax_pthread_config" >&6; }
10043else
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045$as_echo "no" >&6; }
10046fi
10047
10048
10049                if test x"$ax_pthread_config" = xno; then continue; fi
10050                PTHREAD_CFLAGS="`pthread-config --cflags`"
10051                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10052                ;;
10053
10054                *)
10055                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10056$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10057                PTHREAD_LIBS="-l$flag"
10058                ;;
10059        esac
10060
10061        save_LIBS="$LIBS"
10062        save_CFLAGS="$CFLAGS"
10063        LIBS="$PTHREAD_LIBS $LIBS"
10064        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
10065
10066        # Check for various functions.  We must include pthread.h,
10067        # since some functions may be macros.  (On the Sequent, we
10068        # need a special flag -Kthread to make this header compile.)
10069        # We check for pthread_join because it is in -lpthread on IRIX
10070        # while pthread_create is in libc.  We check for pthread_attr_init
10071        # due to DEC craziness with -lpthreads.  We check for
10072        # pthread_cleanup_push because it is one of the few pthread
10073        # functions on Solaris that doesn't have a non-functional libc stub.
10074        # We try pthread_create on general principles.
10075        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076/* end confdefs.h.  */
10077#include <pthread.h>
10078                        static void routine(void *a) { a = 0; }
10079                        static void *start_routine(void *a) { return a; }
10080int
10081main ()
10082{
10083pthread_t th; pthread_attr_t attr;
10084                        pthread_create(&th, 0, start_routine, 0);
10085                        pthread_join(th, 0);
10086                        pthread_attr_init(&attr);
10087                        pthread_cleanup_push(routine, 0);
10088                        pthread_cleanup_pop(0) /* ; */
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094  ax_pthread_ok=yes
10095fi
10096rm -f core conftest.err conftest.$ac_objext \
10097    conftest$ac_exeext conftest.$ac_ext
10098
10099        LIBS="$save_LIBS"
10100        CFLAGS="$save_CFLAGS"
10101
10102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10103$as_echo "$ax_pthread_ok" >&6; }
10104        if test "x$ax_pthread_ok" = xyes; then
10105                break;
10106        fi
10107
10108        PTHREAD_LIBS=""
10109        PTHREAD_CFLAGS=""
10110done
10111fi
10112
10113# Various other checks:
10114if test "x$ax_pthread_ok" = xyes; then
10115        save_LIBS="$LIBS"
10116        LIBS="$PTHREAD_LIBS $LIBS"
10117        save_CFLAGS="$CFLAGS"
10118        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10119
10120        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10121        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10122$as_echo_n "checking for joinable pthread attribute... " >&6; }
10123        attr_name=unknown
10124        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10125            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127#include <pthread.h>
10128int
10129main ()
10130{
10131int attr = $attr; return attr /* ; */
10132  ;
10133  return 0;
10134}
10135_ACEOF
10136if ac_fn_c_try_link "$LINENO"; then :
10137  attr_name=$attr; break
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140    conftest$ac_exeext conftest.$ac_ext
10141        done
10142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10143$as_echo "$attr_name" >&6; }
10144        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10145
10146cat >>confdefs.h <<_ACEOF
10147#define PTHREAD_CREATE_JOINABLE $attr_name
10148_ACEOF
10149
10150        fi
10151
10152        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10153$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10154        flag=no
10155        case ${host_os} in
10156            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10157            osf* | hpux*) flag="-D_REENTRANT";;
10158            solaris*)
10159            if test "$GCC" = "yes"; then
10160                flag="-D_REENTRANT"
10161            else
10162                # TODO: What about Clang on Solaris?
10163                flag="-mt -D_REENTRANT"
10164            fi
10165            ;;
10166        esac
10167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10168$as_echo "$flag" >&6; }
10169        if test "x$flag" != xno; then
10170            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10171        fi
10172
10173        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10174$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10175if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178
10179                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181#include <pthread.h>
10182int
10183main ()
10184{
10185int i = PTHREAD_PRIO_INHERIT;
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191  ax_cv_PTHREAD_PRIO_INHERIT=yes
10192else
10193  ax_cv_PTHREAD_PRIO_INHERIT=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext \
10196    conftest$ac_exeext conftest.$ac_ext
10197
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10200$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10201        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10202
10203$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10204
10205fi
10206
10207        LIBS="$save_LIBS"
10208        CFLAGS="$save_CFLAGS"
10209
10210        # More AIX lossage: compile with *_r variant
10211        if test "x$GCC" != xyes; then
10212            case $host_os in
10213                aix*)
10214                case "x/$CC" in #(
10215  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10216    #handle absolute path differently from PATH based program lookup
10217                   case "x$CC" in #(
10218  x/*) :
10219    if as_fn_executable_p ${CC}_r; then :
10220  PTHREAD_CC="${CC}_r"
10221fi ;; #(
10222  *) :
10223    for ac_prog in ${CC}_r
10224do
10225  # Extract the first word of "$ac_prog", so it can be a program name with args.
10226set dummy $ac_prog; ac_word=$2
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
10229if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10230  $as_echo_n "(cached) " >&6
10231else
10232  if test -n "$PTHREAD_CC"; then
10233  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10234else
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238  IFS=$as_save_IFS
10239  test -z "$as_dir" && as_dir=.
10240    for ac_exec_ext in '' $ac_executable_extensions; do
10241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242    ac_cv_prog_PTHREAD_CC="$ac_prog"
10243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244    break 2
10245  fi
10246done
10247  done
10248IFS=$as_save_IFS
10249
10250fi
10251fi
10252PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10253if test -n "$PTHREAD_CC"; then
10254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10255$as_echo "$PTHREAD_CC" >&6; }
10256else
10257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
10259fi
10260
10261
10262  test -n "$PTHREAD_CC" && break
10263done
10264test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10265 ;;
10266esac ;; #(
10267  *) :
10268     ;;
10269esac
10270                ;;
10271            esac
10272        fi
10273fi
10274
10275test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10276
10277
10278
10279
10280
10281# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10282if test x"$ax_pthread_ok" = xyes; then
10283
10284$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10285
10286        :
10287else
10288        ax_pthread_ok=no
10289
10290fi
10291ac_ext=c
10292ac_cpp='$CPP $CPPFLAGS'
10293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10295ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296
10297
10298
10299# Check whether --enable-opencl was given.
10300if test "${enable_opencl+set}" = set; then :
10301  enableval=$enable_opencl; enable_opencl=$enableval
10302else
10303  enable_opencl='no'
10304fi
10305
10306
10307if test "$enable_opencl" = 'yes'; then
10308  ac_ext=c
10309ac_cpp='$CPP $CPPFLAGS'
10310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10312ac_compiler_gnu=$ac_cv_c_compiler_gnu
10313
10314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10315$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10316if ${ax_cv_c_compiler_ms+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321
10322int
10323main ()
10324{
10325#ifndef _MSC_VER
10326       choke me
10327#endif
10328
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_compile "$LINENO"; then :
10334  ax_compiler_ms=yes
10335else
10336  ax_compiler_ms=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339ax_cv_c_compiler_ms=$ax_compiler_ms
10340
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10343$as_echo "$ax_cv_c_compiler_ms" >&6; }
10344  if test X$ax_compiler_ms = Xno; then :
10345  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10346fi
10347
10348  ax_save_CPPFLAGS=$CPPFLAGS
10349  ax_save_CL_CFLAGS=$CL_CFLAGS
10350
10351  found_opencl_header='no'
10352  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10353  for ac_header in CL/cl.h OpenCL/cl.h
10354do :
10355  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10356ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10357if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10358  cat >>confdefs.h <<_ACEOF
10359#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360_ACEOF
10361 found_opencl_header='yes'
10362                    break;
10363else
10364  found_opencl_header='no'
10365fi
10366
10367done
10368
10369
10370  if test X$found_opencl_header = Xno; then :
10371  { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10372         { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10373         CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10374         CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10375         for ac_header in CL/cl.h OpenCL/cl.h
10376do :
10377  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10378ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10380  cat >>confdefs.h <<_ACEOF
10381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382_ACEOF
10383 found_opencl_header='yes'
10384                           break;
10385else
10386  found_opencl_header='no'
10387fi
10388
10389done
10390
10391
10392fi
10393
10394  CPPFLAGS="$ax_save_CPPFLAGS"
10395
10396  for ac_header in windows.h
10397do :
10398  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10399if test "x$ac_cv_header_windows_h" = xyes; then :
10400  cat >>confdefs.h <<_ACEOF
10401#define HAVE_WINDOWS_H 1
10402_ACEOF
10403
10404fi
10405
10406done
10407
10408
10409
10410
10411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10412$as_echo_n "checking for OpenCL library... " >&6; }
10413if ${ax_cv_check_cl_libcl+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  ax_cv_check_cl_libcl=no
10417  case $host_cpu in
10418    x86_64) ax_check_cl_libdir=lib64
10419            ax_check_cl_amd_libdir=x86_64
10420	    ;;
10421    *)      ax_check_cl_libdir=lib
10422            ax_check_cl_amd_libdir=x86
10423            ;;
10424  esac
10425  ax_save_CPPFLAGS=$CPPFLAGS
10426  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10427  ax_save_LIBS=$LIBS
10428  LIBS=""
10429  ax_check_libs="-lOpenCL -lCL -lclparser"
10430  for ax_lib in $ax_check_libs; do
10431    if test X$ax_compiler_ms = Xyes; then :
10432  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10433else
10434  ax_try_lib=$ax_lib
10435fi
10436    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439
10440  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10441  #   include <windows.h>
10442  # endif
10443  # ifdef HAVE_CL_CL_H
10444  #   include <CL/cl.h>
10445  # elif defined(HAVE_OPENCL_CL_H)
10446  #   include <OpenCL/cl.h>
10447  # else
10448  #   error no CL.h
10449  # endif
10450int
10451main ()
10452{
10453clCreateContextFromType(0,0,0,0,0)
10454  ;
10455  return 0;
10456}
10457_ACEOF
10458if ac_fn_c_try_link "$LINENO"; then :
10459  ax_cv_check_cl_libcl=$ax_try_lib; break
10460else
10461  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"
10462                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463/* end confdefs.h.  */
10464
10465  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10466  #   include <windows.h>
10467  # endif
10468  # ifdef HAVE_CL_CL_H
10469  #   include <CL/cl.h>
10470  # elif defined(HAVE_OPENCL_CL_H)
10471  #   include <OpenCL/cl.h>
10472  # else
10473  #   error no CL.h
10474  # endif
10475int
10476main ()
10477{
10478clCreateContextFromType(0,0,0,0,0)
10479  ;
10480  return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
10484  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10485else
10486  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"
10487                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489
10490  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10491  #   include <windows.h>
10492  # endif
10493  # ifdef HAVE_CL_CL_H
10494  #   include <CL/cl.h>
10495  # elif defined(HAVE_OPENCL_CL_H)
10496  #   include <OpenCL/cl.h>
10497  # else
10498  #   error no CL.h
10499  # endif
10500int
10501main ()
10502{
10503clCreateContextFromType(0,0,0,0,0)
10504  ;
10505  return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_link "$LINENO"; then :
10509  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10510else
10511  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"
10512						                                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513/* end confdefs.h.  */
10514
10515  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10516  #   include <windows.h>
10517  # endif
10518  # ifdef HAVE_CL_CL_H
10519  #   include <CL/cl.h>
10520  # elif defined(HAVE_OPENCL_CL_H)
10521  #   include <OpenCL/cl.h>
10522  # else
10523  #   error no CL.h
10524  # endif
10525int
10526main ()
10527{
10528clCreateContextFromType(0,0,0,0,0)
10529  ;
10530  return 0;
10531}
10532_ACEOF
10533if ac_fn_c_try_link "$LINENO"; then :
10534  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10535
10536fi
10537rm -f core conftest.err conftest.$ac_objext \
10538    conftest$ac_exeext conftest.$ac_ext
10539
10540
10541fi
10542rm -f core conftest.err conftest.$ac_objext \
10543    conftest$ac_exeext conftest.$ac_ext
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546    conftest$ac_exeext conftest.$ac_ext
10547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549    conftest$ac_exeext conftest.$ac_ext
10550  done
10551
10552  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10553  LIBS='-Wl,-framework,OpenCL'
10554        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556
10557  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10558  #   include <windows.h>
10559  # endif
10560  # ifdef HAVE_CL_CL_H
10561  #   include <CL/cl.h>
10562  # elif defined(HAVE_OPENCL_CL_H)
10563  #   include <OpenCL/cl.h>
10564  # else
10565  #   error no CL.h
10566  # endif
10567int
10568main ()
10569{
10570clCreateContextFromType(0,0,0,0,0)
10571  ;
10572  return 0;
10573}
10574_ACEOF
10575if ac_fn_c_try_link "$LINENO"; then :
10576  ax_cv_check_cl_libcl=$LIBS
10577fi
10578rm -f core conftest.err conftest.$ac_objext \
10579    conftest$ac_exeext conftest.$ac_ext
10580fi
10581
10582  LIBS=$ax_save_LIBS
10583  CPPFLAGS=$ax_save_CPPFLAGS
10584fi
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10586$as_echo "$ax_cv_check_cl_libcl" >&6; }
10587
10588  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10589  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10590else
10591  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10592$as_echo "#define _OPENCL 1" >>confdefs.h
10593
10594fi
10595  ac_ext=c
10596ac_cpp='$CPP $CPPFLAGS'
10597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600
10601fi
10602
10603
10604
10605#remove static link on Linux
10606CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10607
10608
10609CFLAGS="$CL_CFLAGS $CFLAGS"
10610CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10611LIBS="$CL_LIBS $LIBS"
10612
10613if test "$enable_opencl" != no; then
10614  if test "X$ax_cv_check_cl_libcl" != Xno; then :
10615    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10616  fi
10617fi
10618
10619########
10620#
10621# Check for large file support
10622#
10623########
10624# Check whether --enable-largefile was given.
10625if test "${enable_largefile+set}" = set; then :
10626  enableval=$enable_largefile;
10627fi
10628
10629if test "$enable_largefile" != no; then
10630
10631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10632$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10633if ${ac_cv_sys_largefile_CC+:} false; then :
10634  $as_echo_n "(cached) " >&6
10635else
10636  ac_cv_sys_largefile_CC=no
10637     if test "$GCC" != yes; then
10638       ac_save_CC=$CC
10639       while :; do
10640	 # IRIX 6.2 and later do not support large files by default,
10641	 # so use the C compiler's -n32 option if that helps.
10642	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643/* end confdefs.h.  */
10644#include <sys/types.h>
10645 /* Check that off_t can represent 2**63 - 1 correctly.
10646    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10647    since some C++ compilers masquerading as C compilers
10648    incorrectly reject 9223372036854775807.  */
10649#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10650  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10651		       && LARGE_OFF_T % 2147483647 == 1)
10652		      ? 1 : -1];
10653int
10654main ()
10655{
10656
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661	 if ac_fn_c_try_compile "$LINENO"; then :
10662  break
10663fi
10664rm -f core conftest.err conftest.$ac_objext
10665	 CC="$CC -n32"
10666	 if ac_fn_c_try_compile "$LINENO"; then :
10667  ac_cv_sys_largefile_CC=' -n32'; break
10668fi
10669rm -f core conftest.err conftest.$ac_objext
10670	 break
10671       done
10672       CC=$ac_save_CC
10673       rm -f conftest.$ac_ext
10674    fi
10675fi
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10677$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10678  if test "$ac_cv_sys_largefile_CC" != no; then
10679    CC=$CC$ac_cv_sys_largefile_CC
10680  fi
10681
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10683$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10684if ${ac_cv_sys_file_offset_bits+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  while :; do
10688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690#include <sys/types.h>
10691 /* Check that off_t can represent 2**63 - 1 correctly.
10692    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10693    since some C++ compilers masquerading as C compilers
10694    incorrectly reject 9223372036854775807.  */
10695#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10696  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10697		       && LARGE_OFF_T % 2147483647 == 1)
10698		      ? 1 : -1];
10699int
10700main ()
10701{
10702
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_compile "$LINENO"; then :
10708  ac_cv_sys_file_offset_bits=no; break
10709fi
10710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712/* end confdefs.h.  */
10713#define _FILE_OFFSET_BITS 64
10714#include <sys/types.h>
10715 /* Check that off_t can represent 2**63 - 1 correctly.
10716    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10717    since some C++ compilers masquerading as C compilers
10718    incorrectly reject 9223372036854775807.  */
10719#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10720  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10721		       && LARGE_OFF_T % 2147483647 == 1)
10722		      ? 1 : -1];
10723int
10724main ()
10725{
10726
10727  ;
10728  return 0;
10729}
10730_ACEOF
10731if ac_fn_c_try_compile "$LINENO"; then :
10732  ac_cv_sys_file_offset_bits=64; break
10733fi
10734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735  ac_cv_sys_file_offset_bits=unknown
10736  break
10737done
10738fi
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10740$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10741case $ac_cv_sys_file_offset_bits in #(
10742  no | unknown) ;;
10743  *)
10744cat >>confdefs.h <<_ACEOF
10745#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10746_ACEOF
10747;;
10748esac
10749rm -rf conftest*
10750  if test $ac_cv_sys_file_offset_bits = unknown; then
10751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10752$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10753if ${ac_cv_sys_large_files+:} false; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756  while :; do
10757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758/* end confdefs.h.  */
10759#include <sys/types.h>
10760 /* Check that off_t can represent 2**63 - 1 correctly.
10761    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10762    since some C++ compilers masquerading as C compilers
10763    incorrectly reject 9223372036854775807.  */
10764#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10765  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10766		       && LARGE_OFF_T % 2147483647 == 1)
10767		      ? 1 : -1];
10768int
10769main ()
10770{
10771
10772  ;
10773  return 0;
10774}
10775_ACEOF
10776if ac_fn_c_try_compile "$LINENO"; then :
10777  ac_cv_sys_large_files=no; break
10778fi
10779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781/* end confdefs.h.  */
10782#define _LARGE_FILES 1
10783#include <sys/types.h>
10784 /* Check that off_t can represent 2**63 - 1 correctly.
10785    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10786    since some C++ compilers masquerading as C compilers
10787    incorrectly reject 9223372036854775807.  */
10788#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10789  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10790		       && LARGE_OFF_T % 2147483647 == 1)
10791		      ? 1 : -1];
10792int
10793main ()
10794{
10795
10796  ;
10797  return 0;
10798}
10799_ACEOF
10800if ac_fn_c_try_compile "$LINENO"; then :
10801  ac_cv_sys_large_files=1; break
10802fi
10803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804  ac_cv_sys_large_files=unknown
10805  break
10806done
10807fi
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10809$as_echo "$ac_cv_sys_large_files" >&6; }
10810case $ac_cv_sys_large_files in #(
10811  no | unknown) ;;
10812  *)
10813cat >>confdefs.h <<_ACEOF
10814#define _LARGE_FILES $ac_cv_sys_large_files
10815_ACEOF
10816;;
10817esac
10818rm -rf conftest*
10819  fi
10820
10821
10822fi
10823
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10825$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10826if ${ac_cv_sys_largefile_source+:} false; then :
10827  $as_echo_n "(cached) " >&6
10828else
10829  while :; do
10830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832#include <sys/types.h> /* for off_t */
10833     #include <stdio.h>
10834int
10835main ()
10836{
10837int (*fp) (FILE *, off_t, int) = fseeko;
10838     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10839  ;
10840  return 0;
10841}
10842_ACEOF
10843if ac_fn_c_try_link "$LINENO"; then :
10844  ac_cv_sys_largefile_source=no; break
10845fi
10846rm -f core conftest.err conftest.$ac_objext \
10847    conftest$ac_exeext conftest.$ac_ext
10848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849/* end confdefs.h.  */
10850#define _LARGEFILE_SOURCE 1
10851#include <sys/types.h> /* for off_t */
10852     #include <stdio.h>
10853int
10854main ()
10855{
10856int (*fp) (FILE *, off_t, int) = fseeko;
10857     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10858  ;
10859  return 0;
10860}
10861_ACEOF
10862if ac_fn_c_try_link "$LINENO"; then :
10863  ac_cv_sys_largefile_source=1; break
10864fi
10865rm -f core conftest.err conftest.$ac_objext \
10866    conftest$ac_exeext conftest.$ac_ext
10867  ac_cv_sys_largefile_source=unknown
10868  break
10869done
10870fi
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10872$as_echo "$ac_cv_sys_largefile_source" >&6; }
10873case $ac_cv_sys_largefile_source in #(
10874  no | unknown) ;;
10875  *)
10876cat >>confdefs.h <<_ACEOF
10877#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10878_ACEOF
10879;;
10880esac
10881rm -rf conftest*
10882
10883# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10884# in glibc 2.1.3, but that breaks too many other things.
10885# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10886if test $ac_cv_sys_largefile_source != unknown; then
10887
10888$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10889
10890fi
10891
10892LFS_CPPFLAGS=''
10893if test "$enable_largefile" != no; then
10894    case $ac_cv_sys_file_offset_bits in
10895    no)
10896        # nothing to do here as the host supports LFS fine
10897        ;;
10898    unknown)
10899        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
10900$as_echo_n "checking for native large file support... " >&6; }
10901        if test "$cross_compiling" = yes; then :
10902  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10904as_fn_error $? "cannot run test program while cross compiling
10905See \`config.log' for more details" "$LINENO" 5; }
10906else
10907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h.  */
10909#include <unistd.h>
10910          main () {
10911          exit(!(sizeof(off_t) == 8));
10912        }
10913int
10914main ()
10915{
10916
10917  ;
10918  return 0;
10919}
10920_ACEOF
10921if ac_fn_c_try_run "$LINENO"; then :
10922  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
10923
10924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10925$as_echo "yes" >&6; }
10926else
10927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928$as_echo "no" >&6; }
10929fi
10930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10931  conftest.$ac_objext conftest.beam conftest.$ac_ext
10932fi
10933
10934        ;;
10935    *)
10936        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10937        ;;
10938    esac
10939    if test "$ac_cv_sys_large_files" != 'no'; then
10940        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10941    fi
10942    if test "$ac_cv_sys_largefile_source" != 'no'; then
10943        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10944    fi
10945fi
10946
10947
10948# Configure libtool
10949enable_dlopen=yes
10950
10951
10952
10953case `pwd` in
10954  *\ * | *\	*)
10955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10956$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10957esac
10958
10959
10960
10961macro_version='2.4.2'
10962macro_revision='1.3337'
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976ltmain="$ac_aux_dir/ltmain.sh"
10977
10978# Backslashify metacharacters that are still active within
10979# double-quoted strings.
10980sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10981
10982# Same as above, but do not quote variable references.
10983double_quote_subst='s/\(["`\\]\)/\\\1/g'
10984
10985# Sed substitution to delay expansion of an escaped shell variable in a
10986# double_quote_subst'ed string.
10987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10988
10989# Sed substitution to delay expansion of an escaped single quote.
10990delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10991
10992# Sed substitution to avoid accidental globbing in evaled expressions
10993no_glob_subst='s/\*/\\\*/g'
10994
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10997if ${lt_cv_path_NM+:} false; then :
10998  $as_echo_n "(cached) " >&6
10999else
11000  if test -n "$NM"; then
11001  # Let the user override the test.
11002  lt_cv_path_NM="$NM"
11003else
11004  lt_nm_to_check="${ac_tool_prefix}nm"
11005  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11006    lt_nm_to_check="$lt_nm_to_check nm"
11007  fi
11008  for lt_tmp_nm in $lt_nm_to_check; do
11009    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11010    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11011      IFS="$lt_save_ifs"
11012      test -z "$ac_dir" && ac_dir=.
11013      tmp_nm="$ac_dir/$lt_tmp_nm"
11014      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11015	# Check to see if the nm accepts a BSD-compat flag.
11016	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11017	#   nm: unknown option "B" ignored
11018	# Tru64's nm complains that /dev/null is an invalid object file
11019	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11020	*/dev/null* | *'Invalid file or object type'*)
11021	  lt_cv_path_NM="$tmp_nm -B"
11022	  break
11023	  ;;
11024	*)
11025	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11026	  */dev/null*)
11027	    lt_cv_path_NM="$tmp_nm -p"
11028	    break
11029	    ;;
11030	  *)
11031	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11032	    continue # so that we can try to find one that supports BSD flags
11033	    ;;
11034	  esac
11035	  ;;
11036	esac
11037      fi
11038    done
11039    IFS="$lt_save_ifs"
11040  done
11041  : ${lt_cv_path_NM=no}
11042fi
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11045$as_echo "$lt_cv_path_NM" >&6; }
11046if test "$lt_cv_path_NM" != "no"; then
11047  NM="$lt_cv_path_NM"
11048else
11049  # Didn't find any BSD compatible name lister, look for dumpbin.
11050  if test -n "$DUMPBIN"; then :
11051    # Let the user override the test.
11052  else
11053    if test -n "$ac_tool_prefix"; then
11054  for ac_prog in dumpbin "link -dump"
11055  do
11056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059$as_echo_n "checking for $ac_word... " >&6; }
11060if ${ac_cv_prog_DUMPBIN+:} false; then :
11061  $as_echo_n "(cached) " >&6
11062else
11063  if test -n "$DUMPBIN"; then
11064  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11065else
11066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $PATH
11068do
11069  IFS=$as_save_IFS
11070  test -z "$as_dir" && as_dir=.
11071    for ac_exec_ext in '' $ac_executable_extensions; do
11072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075    break 2
11076  fi
11077done
11078  done
11079IFS=$as_save_IFS
11080
11081fi
11082fi
11083DUMPBIN=$ac_cv_prog_DUMPBIN
11084if test -n "$DUMPBIN"; then
11085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11086$as_echo "$DUMPBIN" >&6; }
11087else
11088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089$as_echo "no" >&6; }
11090fi
11091
11092
11093    test -n "$DUMPBIN" && break
11094  done
11095fi
11096if test -z "$DUMPBIN"; then
11097  ac_ct_DUMPBIN=$DUMPBIN
11098  for ac_prog in dumpbin "link -dump"
11099do
11100  # Extract the first word of "$ac_prog", so it can be a program name with args.
11101set dummy $ac_prog; ac_word=$2
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103$as_echo_n "checking for $ac_word... " >&6; }
11104if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  if test -n "$ac_ct_DUMPBIN"; then
11108  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11109else
11110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111for as_dir in $PATH
11112do
11113  IFS=$as_save_IFS
11114  test -z "$as_dir" && as_dir=.
11115    for ac_exec_ext in '' $ac_executable_extensions; do
11116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119    break 2
11120  fi
11121done
11122  done
11123IFS=$as_save_IFS
11124
11125fi
11126fi
11127ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11128if test -n "$ac_ct_DUMPBIN"; then
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11130$as_echo "$ac_ct_DUMPBIN" >&6; }
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135
11136
11137  test -n "$ac_ct_DUMPBIN" && break
11138done
11139
11140  if test "x$ac_ct_DUMPBIN" = x; then
11141    DUMPBIN=":"
11142  else
11143    case $cross_compiling:$ac_tool_warned in
11144yes:)
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11147ac_tool_warned=yes ;;
11148esac
11149    DUMPBIN=$ac_ct_DUMPBIN
11150  fi
11151fi
11152
11153    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11154    *COFF*)
11155      DUMPBIN="$DUMPBIN -symbols"
11156      ;;
11157    *)
11158      DUMPBIN=:
11159      ;;
11160    esac
11161  fi
11162
11163  if test "$DUMPBIN" != ":"; then
11164    NM="$DUMPBIN"
11165  fi
11166fi
11167test -z "$NM" && NM=nm
11168
11169
11170
11171
11172
11173
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11175$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11176if ${lt_cv_nm_interface+:} false; then :
11177  $as_echo_n "(cached) " >&6
11178else
11179  lt_cv_nm_interface="BSD nm"
11180  echo "int some_variable = 0;" > conftest.$ac_ext
11181  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11182  (eval "$ac_compile" 2>conftest.err)
11183  cat conftest.err >&5
11184  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11185  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11186  cat conftest.err >&5
11187  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11188  cat conftest.out >&5
11189  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11190    lt_cv_nm_interface="MS dumpbin"
11191  fi
11192  rm -f conftest*
11193fi
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11195$as_echo "$lt_cv_nm_interface" >&6; }
11196
11197# find the maximum length of command line arguments
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11199$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11200if ${lt_cv_sys_max_cmd_len+:} false; then :
11201  $as_echo_n "(cached) " >&6
11202else
11203    i=0
11204  teststring="ABCD"
11205
11206  case $build_os in
11207  msdosdjgpp*)
11208    # On DJGPP, this test can blow up pretty badly due to problems in libc
11209    # (any single argument exceeding 2000 bytes causes a buffer overrun
11210    # during glob expansion).  Even if it were fixed, the result of this
11211    # check would be larger than it should be.
11212    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11213    ;;
11214
11215  gnu*)
11216    # Under GNU Hurd, this test is not required because there is
11217    # no limit to the length of command line arguments.
11218    # Libtool will interpret -1 as no limit whatsoever
11219    lt_cv_sys_max_cmd_len=-1;
11220    ;;
11221
11222  cygwin* | mingw* | cegcc*)
11223    # On Win9x/ME, this test blows up -- it succeeds, but takes
11224    # about 5 minutes as the teststring grows exponentially.
11225    # Worse, since 9x/ME are not pre-emptively multitasking,
11226    # you end up with a "frozen" computer, even though with patience
11227    # the test eventually succeeds (with a max line length of 256k).
11228    # Instead, let's just punt: use the minimum linelength reported by
11229    # all of the supported platforms: 8192 (on NT/2K/XP).
11230    lt_cv_sys_max_cmd_len=8192;
11231    ;;
11232
11233  mint*)
11234    # On MiNT this can take a long time and run out of memory.
11235    lt_cv_sys_max_cmd_len=8192;
11236    ;;
11237
11238  amigaos*)
11239    # On AmigaOS with pdksh, this test takes hours, literally.
11240    # So we just punt and use a minimum line length of 8192.
11241    lt_cv_sys_max_cmd_len=8192;
11242    ;;
11243
11244  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11245    # This has been around since 386BSD, at least.  Likely further.
11246    if test -x /sbin/sysctl; then
11247      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11248    elif test -x /usr/sbin/sysctl; then
11249      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11250    else
11251      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11252    fi
11253    # And add a safety zone
11254    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11255    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11256    ;;
11257
11258  interix*)
11259    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11260    lt_cv_sys_max_cmd_len=196608
11261    ;;
11262
11263  os2*)
11264    # The test takes a long time on OS/2.
11265    lt_cv_sys_max_cmd_len=8192
11266    ;;
11267
11268  osf*)
11269    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11270    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11271    # nice to cause kernel panics so lets avoid the loop below.
11272    # First set a reasonable default.
11273    lt_cv_sys_max_cmd_len=16384
11274    #
11275    if test -x /sbin/sysconfig; then
11276      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11277        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11278      esac
11279    fi
11280    ;;
11281  sco3.2v5*)
11282    lt_cv_sys_max_cmd_len=102400
11283    ;;
11284  sysv5* | sco5v6* | sysv4.2uw2*)
11285    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11286    if test -n "$kargmax"; then
11287      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11288    else
11289      lt_cv_sys_max_cmd_len=32768
11290    fi
11291    ;;
11292  *)
11293    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11294    if test -n "$lt_cv_sys_max_cmd_len"; then
11295      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11296      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11297    else
11298      # Make teststring a little bigger before we do anything with it.
11299      # a 1K string should be a reasonable start.
11300      for i in 1 2 3 4 5 6 7 8 ; do
11301        teststring=$teststring$teststring
11302      done
11303      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11304      # If test is not a shell built-in, we'll probably end up computing a
11305      # maximum length that is only half of the actual maximum length, but
11306      # we can't tell.
11307      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11308	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11309	      test $i != 17 # 1/2 MB should be enough
11310      do
11311        i=`expr $i + 1`
11312        teststring=$teststring$teststring
11313      done
11314      # Only check the string length outside the loop.
11315      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11316      teststring=
11317      # Add a significant safety factor because C++ compilers can tack on
11318      # massive amounts of additional arguments before passing them to the
11319      # linker.  It appears as though 1/2 is a usable value.
11320      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11321    fi
11322    ;;
11323  esac
11324
11325fi
11326
11327if test -n $lt_cv_sys_max_cmd_len ; then
11328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11329$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11330else
11331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11332$as_echo "none" >&6; }
11333fi
11334max_cmd_len=$lt_cv_sys_max_cmd_len
11335
11336
11337
11338
11339
11340
11341: ${CP="cp -f"}
11342: ${MV="mv -f"}
11343: ${RM="rm -f"}
11344
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11346$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11347# Try some XSI features
11348xsi_shell=no
11349( _lt_dummy="a/b/c"
11350  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11351      = c,a/b,b/c, \
11352    && eval 'test $(( 1 + 1 )) -eq 2 \
11353    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11354  && xsi_shell=yes
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11356$as_echo "$xsi_shell" >&6; }
11357
11358
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11360$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11361lt_shell_append=no
11362( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11363    >/dev/null 2>&1 \
11364  && lt_shell_append=yes
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11366$as_echo "$lt_shell_append" >&6; }
11367
11368
11369if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11370  lt_unset=unset
11371else
11372  lt_unset=false
11373fi
11374
11375
11376
11377
11378
11379# test EBCDIC or ASCII
11380case `echo X|tr X '\101'` in
11381 A) # ASCII based system
11382    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11383  lt_SP2NL='tr \040 \012'
11384  lt_NL2SP='tr \015\012 \040\040'
11385  ;;
11386 *) # EBCDIC based system
11387  lt_SP2NL='tr \100 \n'
11388  lt_NL2SP='tr \r\n \100\100'
11389  ;;
11390esac
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11401$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11402if ${lt_cv_to_host_file_cmd+:} false; then :
11403  $as_echo_n "(cached) " >&6
11404else
11405  case $host in
11406  *-*-mingw* )
11407    case $build in
11408      *-*-mingw* ) # actually msys
11409        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11410        ;;
11411      *-*-cygwin* )
11412        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11413        ;;
11414      * ) # otherwise, assume *nix
11415        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11416        ;;
11417    esac
11418    ;;
11419  *-*-cygwin* )
11420    case $build in
11421      *-*-mingw* ) # actually msys
11422        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11423        ;;
11424      *-*-cygwin* )
11425        lt_cv_to_host_file_cmd=func_convert_file_noop
11426        ;;
11427      * ) # otherwise, assume *nix
11428        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11429        ;;
11430    esac
11431    ;;
11432  * ) # unhandled hosts (and "normal" native builds)
11433    lt_cv_to_host_file_cmd=func_convert_file_noop
11434    ;;
11435esac
11436
11437fi
11438
11439to_host_file_cmd=$lt_cv_to_host_file_cmd
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11441$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11442
11443
11444
11445
11446
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11448$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11449if ${lt_cv_to_tool_file_cmd+:} false; then :
11450  $as_echo_n "(cached) " >&6
11451else
11452  #assume ordinary cross tools, or native build.
11453lt_cv_to_tool_file_cmd=func_convert_file_noop
11454case $host in
11455  *-*-mingw* )
11456    case $build in
11457      *-*-mingw* ) # actually msys
11458        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11459        ;;
11460    esac
11461    ;;
11462esac
11463
11464fi
11465
11466to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11468$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11469
11470
11471
11472
11473
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11475$as_echo_n "checking for $LD option to reload object files... " >&6; }
11476if ${lt_cv_ld_reload_flag+:} false; then :
11477  $as_echo_n "(cached) " >&6
11478else
11479  lt_cv_ld_reload_flag='-r'
11480fi
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11482$as_echo "$lt_cv_ld_reload_flag" >&6; }
11483reload_flag=$lt_cv_ld_reload_flag
11484case $reload_flag in
11485"" | " "*) ;;
11486*) reload_flag=" $reload_flag" ;;
11487esac
11488reload_cmds='$LD$reload_flag -o $output$reload_objs'
11489case $host_os in
11490  cygwin* | mingw* | pw32* | cegcc*)
11491    if test "$GCC" != yes; then
11492      reload_cmds=false
11493    fi
11494    ;;
11495  darwin*)
11496    if test "$GCC" = yes; then
11497      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11498    else
11499      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11500    fi
11501    ;;
11502esac
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512if test -n "$ac_tool_prefix"; then
11513  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11514set dummy ${ac_tool_prefix}objdump; ac_word=$2
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516$as_echo_n "checking for $ac_word... " >&6; }
11517if ${ac_cv_prog_OBJDUMP+:} false; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520  if test -n "$OBJDUMP"; then
11521  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11522else
11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526  IFS=$as_save_IFS
11527  test -z "$as_dir" && as_dir=.
11528    for ac_exec_ext in '' $ac_executable_extensions; do
11529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532    break 2
11533  fi
11534done
11535  done
11536IFS=$as_save_IFS
11537
11538fi
11539fi
11540OBJDUMP=$ac_cv_prog_OBJDUMP
11541if test -n "$OBJDUMP"; then
11542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11543$as_echo "$OBJDUMP" >&6; }
11544else
11545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
11547fi
11548
11549
11550fi
11551if test -z "$ac_cv_prog_OBJDUMP"; then
11552  ac_ct_OBJDUMP=$OBJDUMP
11553  # Extract the first word of "objdump", so it can be a program name with args.
11554set dummy objdump; ac_word=$2
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556$as_echo_n "checking for $ac_word... " >&6; }
11557if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11558  $as_echo_n "(cached) " >&6
11559else
11560  if test -n "$ac_ct_OBJDUMP"; then
11561  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566  IFS=$as_save_IFS
11567  test -z "$as_dir" && as_dir=.
11568    for ac_exec_ext in '' $ac_executable_extensions; do
11569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572    break 2
11573  fi
11574done
11575  done
11576IFS=$as_save_IFS
11577
11578fi
11579fi
11580ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11581if test -n "$ac_ct_OBJDUMP"; then
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11583$as_echo "$ac_ct_OBJDUMP" >&6; }
11584else
11585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589  if test "x$ac_ct_OBJDUMP" = x; then
11590    OBJDUMP="false"
11591  else
11592    case $cross_compiling:$ac_tool_warned in
11593yes:)
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11596ac_tool_warned=yes ;;
11597esac
11598    OBJDUMP=$ac_ct_OBJDUMP
11599  fi
11600else
11601  OBJDUMP="$ac_cv_prog_OBJDUMP"
11602fi
11603
11604test -z "$OBJDUMP" && OBJDUMP=objdump
11605
11606
11607
11608
11609
11610
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11612$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11613if ${lt_cv_deplibs_check_method+:} false; then :
11614  $as_echo_n "(cached) " >&6
11615else
11616  lt_cv_file_magic_cmd='$MAGIC_CMD'
11617lt_cv_file_magic_test_file=
11618lt_cv_deplibs_check_method='unknown'
11619# Need to set the preceding variable on all platforms that support
11620# interlibrary dependencies.
11621# 'none' -- dependencies not supported.
11622# `unknown' -- same as none, but documents that we really don't know.
11623# 'pass_all' -- all dependencies passed with no checks.
11624# 'test_compile' -- check by making test program.
11625# 'file_magic [[regex]]' -- check by looking for files in library path
11626# which responds to the $file_magic_cmd with a given extended regex.
11627# If you have `file' or equivalent on your system and you're not sure
11628# whether `pass_all' will *always* work, you probably want this one.
11629
11630case $host_os in
11631aix[4-9]*)
11632  lt_cv_deplibs_check_method=pass_all
11633  ;;
11634
11635beos*)
11636  lt_cv_deplibs_check_method=pass_all
11637  ;;
11638
11639bsdi[45]*)
11640  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11641  lt_cv_file_magic_cmd='/usr/bin/file -L'
11642  lt_cv_file_magic_test_file=/shlib/libc.so
11643  ;;
11644
11645cygwin*)
11646  # func_win32_libid is a shell function defined in ltmain.sh
11647  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11648  lt_cv_file_magic_cmd='func_win32_libid'
11649  ;;
11650
11651mingw* | pw32*)
11652  # Base MSYS/MinGW do not provide the 'file' command needed by
11653  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11654  # unless we find 'file', for example because we are cross-compiling.
11655  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11656  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11657    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11658    lt_cv_file_magic_cmd='func_win32_libid'
11659  else
11660    # Keep this pattern in sync with the one in func_win32_libid.
11661    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11662    lt_cv_file_magic_cmd='$OBJDUMP -f'
11663  fi
11664  ;;
11665
11666cegcc*)
11667  # use the weaker test based on 'objdump'. See mingw*.
11668  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11669  lt_cv_file_magic_cmd='$OBJDUMP -f'
11670  ;;
11671
11672darwin* | rhapsody*)
11673  lt_cv_deplibs_check_method=pass_all
11674  ;;
11675
11676freebsd* | dragonfly*)
11677  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11678    case $host_cpu in
11679    i*86 )
11680      # Not sure whether the presence of OpenBSD here was a mistake.
11681      # Let's accept both of them until this is cleared up.
11682      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11683      lt_cv_file_magic_cmd=/usr/bin/file
11684      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11685      ;;
11686    esac
11687  else
11688    lt_cv_deplibs_check_method=pass_all
11689  fi
11690  ;;
11691
11692gnu*)
11693  lt_cv_deplibs_check_method=pass_all
11694  ;;
11695
11696haiku*)
11697  lt_cv_deplibs_check_method=pass_all
11698  ;;
11699
11700hpux10.20* | hpux11*)
11701  lt_cv_file_magic_cmd=/usr/bin/file
11702  case $host_cpu in
11703  ia64*)
11704    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11705    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11706    ;;
11707  hppa*64*)
11708    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]'
11709    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11710    ;;
11711  *)
11712    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11713    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11714    ;;
11715  esac
11716  ;;
11717
11718interix[3-9]*)
11719  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11720  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11721  ;;
11722
11723irix5* | irix6* | nonstopux*)
11724  case $LD in
11725  *-32|*"-32 ") libmagic=32-bit;;
11726  *-n32|*"-n32 ") libmagic=N32;;
11727  *-64|*"-64 ") libmagic=64-bit;;
11728  *) libmagic=never-match;;
11729  esac
11730  lt_cv_deplibs_check_method=pass_all
11731  ;;
11732
11733# This must be glibc/ELF.
11734linux* | k*bsd*-gnu | kopensolaris*-gnu)
11735  lt_cv_deplibs_check_method=pass_all
11736  ;;
11737
11738netbsd*)
11739  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11740    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11741  else
11742    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11743  fi
11744  ;;
11745
11746newos6*)
11747  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11748  lt_cv_file_magic_cmd=/usr/bin/file
11749  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11750  ;;
11751
11752*nto* | *qnx*)
11753  lt_cv_deplibs_check_method=pass_all
11754  ;;
11755
11756openbsd*)
11757  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11758    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11759  else
11760    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11761  fi
11762  ;;
11763
11764osf3* | osf4* | osf5*)
11765  lt_cv_deplibs_check_method=pass_all
11766  ;;
11767
11768rdos*)
11769  lt_cv_deplibs_check_method=pass_all
11770  ;;
11771
11772solaris*)
11773  lt_cv_deplibs_check_method=pass_all
11774  ;;
11775
11776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11777  lt_cv_deplibs_check_method=pass_all
11778  ;;
11779
11780sysv4 | sysv4.3*)
11781  case $host_vendor in
11782  motorola)
11783    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]'
11784    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11785    ;;
11786  ncr)
11787    lt_cv_deplibs_check_method=pass_all
11788    ;;
11789  sequent)
11790    lt_cv_file_magic_cmd='/bin/file'
11791    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11792    ;;
11793  sni)
11794    lt_cv_file_magic_cmd='/bin/file'
11795    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11796    lt_cv_file_magic_test_file=/lib/libc.so
11797    ;;
11798  siemens)
11799    lt_cv_deplibs_check_method=pass_all
11800    ;;
11801  pc)
11802    lt_cv_deplibs_check_method=pass_all
11803    ;;
11804  esac
11805  ;;
11806
11807tpf*)
11808  lt_cv_deplibs_check_method=pass_all
11809  ;;
11810esac
11811
11812fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11814$as_echo "$lt_cv_deplibs_check_method" >&6; }
11815
11816file_magic_glob=
11817want_nocaseglob=no
11818if test "$build" = "$host"; then
11819  case $host_os in
11820  mingw* | pw32*)
11821    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11822      want_nocaseglob=yes
11823    else
11824      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11825    fi
11826    ;;
11827  esac
11828fi
11829
11830file_magic_cmd=$lt_cv_file_magic_cmd
11831deplibs_check_method=$lt_cv_deplibs_check_method
11832test -z "$deplibs_check_method" && deplibs_check_method=unknown
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855if test -n "$ac_tool_prefix"; then
11856  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11857set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859$as_echo_n "checking for $ac_word... " >&6; }
11860if ${ac_cv_prog_DLLTOOL+:} false; then :
11861  $as_echo_n "(cached) " >&6
11862else
11863  if test -n "$DLLTOOL"; then
11864  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869  IFS=$as_save_IFS
11870  test -z "$as_dir" && as_dir=.
11871    for ac_exec_ext in '' $ac_executable_extensions; do
11872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875    break 2
11876  fi
11877done
11878  done
11879IFS=$as_save_IFS
11880
11881fi
11882fi
11883DLLTOOL=$ac_cv_prog_DLLTOOL
11884if test -n "$DLLTOOL"; then
11885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11886$as_echo "$DLLTOOL" >&6; }
11887else
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
11893fi
11894if test -z "$ac_cv_prog_DLLTOOL"; then
11895  ac_ct_DLLTOOL=$DLLTOOL
11896  # Extract the first word of "dlltool", so it can be a program name with args.
11897set dummy dlltool; ac_word=$2
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11901  $as_echo_n "(cached) " >&6
11902else
11903  if test -n "$ac_ct_DLLTOOL"; then
11904  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909  IFS=$as_save_IFS
11910  test -z "$as_dir" && as_dir=.
11911    for ac_exec_ext in '' $ac_executable_extensions; do
11912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915    break 2
11916  fi
11917done
11918  done
11919IFS=$as_save_IFS
11920
11921fi
11922fi
11923ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11924if test -n "$ac_ct_DLLTOOL"; then
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11926$as_echo "$ac_ct_DLLTOOL" >&6; }
11927else
11928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929$as_echo "no" >&6; }
11930fi
11931
11932  if test "x$ac_ct_DLLTOOL" = x; then
11933    DLLTOOL="false"
11934  else
11935    case $cross_compiling:$ac_tool_warned in
11936yes:)
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939ac_tool_warned=yes ;;
11940esac
11941    DLLTOOL=$ac_ct_DLLTOOL
11942  fi
11943else
11944  DLLTOOL="$ac_cv_prog_DLLTOOL"
11945fi
11946
11947test -z "$DLLTOOL" && DLLTOOL=dlltool
11948
11949
11950
11951
11952
11953
11954
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11956$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11957if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  lt_cv_sharedlib_from_linklib_cmd='unknown'
11961
11962case $host_os in
11963cygwin* | mingw* | pw32* | cegcc*)
11964  # two different shell functions defined in ltmain.sh
11965  # decide which to use based on capabilities of $DLLTOOL
11966  case `$DLLTOOL --help 2>&1` in
11967  *--identify-strict*)
11968    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11969    ;;
11970  *)
11971    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11972    ;;
11973  esac
11974  ;;
11975*)
11976  # fallback: assume linklib IS sharedlib
11977  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11978  ;;
11979esac
11980
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11983$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11984sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11985test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11986
11987
11988
11989
11990
11991
11992
11993if test -n "$ac_tool_prefix"; then
11994  for ac_prog in ar
11995  do
11996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
12000if ${ac_cv_prog_AR+:} false; then :
12001  $as_echo_n "(cached) " >&6
12002else
12003  if test -n "$AR"; then
12004  ac_cv_prog_AR="$AR" # Let the user override the test.
12005else
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009  IFS=$as_save_IFS
12010  test -z "$as_dir" && as_dir=.
12011    for ac_exec_ext in '' $ac_executable_extensions; do
12012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015    break 2
12016  fi
12017done
12018  done
12019IFS=$as_save_IFS
12020
12021fi
12022fi
12023AR=$ac_cv_prog_AR
12024if test -n "$AR"; then
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12026$as_echo "$AR" >&6; }
12027else
12028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030fi
12031
12032
12033    test -n "$AR" && break
12034  done
12035fi
12036if test -z "$AR"; then
12037  ac_ct_AR=$AR
12038  for ac_prog in ar
12039do
12040  # Extract the first word of "$ac_prog", so it can be a program name with args.
12041set dummy $ac_prog; ac_word=$2
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043$as_echo_n "checking for $ac_word... " >&6; }
12044if ${ac_cv_prog_ac_ct_AR+:} false; then :
12045  $as_echo_n "(cached) " >&6
12046else
12047  if test -n "$ac_ct_AR"; then
12048  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12049else
12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053  IFS=$as_save_IFS
12054  test -z "$as_dir" && as_dir=.
12055    for ac_exec_ext in '' $ac_executable_extensions; do
12056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057    ac_cv_prog_ac_ct_AR="$ac_prog"
12058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059    break 2
12060  fi
12061done
12062  done
12063IFS=$as_save_IFS
12064
12065fi
12066fi
12067ac_ct_AR=$ac_cv_prog_ac_ct_AR
12068if test -n "$ac_ct_AR"; then
12069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12070$as_echo "$ac_ct_AR" >&6; }
12071else
12072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
12074fi
12075
12076
12077  test -n "$ac_ct_AR" && break
12078done
12079
12080  if test "x$ac_ct_AR" = x; then
12081    AR="false"
12082  else
12083    case $cross_compiling:$ac_tool_warned in
12084yes:)
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12087ac_tool_warned=yes ;;
12088esac
12089    AR=$ac_ct_AR
12090  fi
12091fi
12092
12093: ${AR=ar}
12094: ${AR_FLAGS=cru}
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12107$as_echo_n "checking for archiver @FILE support... " >&6; }
12108if ${lt_cv_ar_at_file+:} false; then :
12109  $as_echo_n "(cached) " >&6
12110else
12111  lt_cv_ar_at_file=no
12112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113/* end confdefs.h.  */
12114
12115int
12116main ()
12117{
12118
12119  ;
12120  return 0;
12121}
12122_ACEOF
12123if ac_fn_c_try_compile "$LINENO"; then :
12124  echo conftest.$ac_objext > conftest.lst
12125      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12126      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12127  (eval $lt_ar_try) 2>&5
12128  ac_status=$?
12129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130  test $ac_status = 0; }
12131      if test "$ac_status" -eq 0; then
12132	# Ensure the archiver fails upon bogus file names.
12133	rm -f conftest.$ac_objext libconftest.a
12134	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12135  (eval $lt_ar_try) 2>&5
12136  ac_status=$?
12137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138  test $ac_status = 0; }
12139	if test "$ac_status" -ne 0; then
12140          lt_cv_ar_at_file=@
12141        fi
12142      fi
12143      rm -f conftest.* libconftest.a
12144
12145fi
12146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12150$as_echo "$lt_cv_ar_at_file" >&6; }
12151
12152if test "x$lt_cv_ar_at_file" = xno; then
12153  archiver_list_spec=
12154else
12155  archiver_list_spec=$lt_cv_ar_at_file
12156fi
12157
12158
12159
12160
12161
12162
12163
12164if test -n "$ac_tool_prefix"; then
12165  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12166set dummy ${ac_tool_prefix}strip; ac_word=$2
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168$as_echo_n "checking for $ac_word... " >&6; }
12169if ${ac_cv_prog_STRIP+:} false; then :
12170  $as_echo_n "(cached) " >&6
12171else
12172  if test -n "$STRIP"; then
12173  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12174else
12175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178  IFS=$as_save_IFS
12179  test -z "$as_dir" && as_dir=.
12180    for ac_exec_ext in '' $ac_executable_extensions; do
12181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184    break 2
12185  fi
12186done
12187  done
12188IFS=$as_save_IFS
12189
12190fi
12191fi
12192STRIP=$ac_cv_prog_STRIP
12193if test -n "$STRIP"; then
12194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12195$as_echo "$STRIP" >&6; }
12196else
12197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
12199fi
12200
12201
12202fi
12203if test -z "$ac_cv_prog_STRIP"; then
12204  ac_ct_STRIP=$STRIP
12205  # Extract the first word of "strip", so it can be a program name with args.
12206set dummy strip; ac_word=$2
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
12209if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12210  $as_echo_n "(cached) " >&6
12211else
12212  if test -n "$ac_ct_STRIP"; then
12213  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12214else
12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218  IFS=$as_save_IFS
12219  test -z "$as_dir" && as_dir=.
12220    for ac_exec_ext in '' $ac_executable_extensions; do
12221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12222    ac_cv_prog_ac_ct_STRIP="strip"
12223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224    break 2
12225  fi
12226done
12227  done
12228IFS=$as_save_IFS
12229
12230fi
12231fi
12232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12233if test -n "$ac_ct_STRIP"; then
12234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12235$as_echo "$ac_ct_STRIP" >&6; }
12236else
12237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
12239fi
12240
12241  if test "x$ac_ct_STRIP" = x; then
12242    STRIP=":"
12243  else
12244    case $cross_compiling:$ac_tool_warned in
12245yes:)
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248ac_tool_warned=yes ;;
12249esac
12250    STRIP=$ac_ct_STRIP
12251  fi
12252else
12253  STRIP="$ac_cv_prog_STRIP"
12254fi
12255
12256test -z "$STRIP" && STRIP=:
12257
12258
12259
12260
12261
12262
12263if test -n "$ac_tool_prefix"; then
12264  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12265set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if ${ac_cv_prog_RANLIB+:} false; then :
12269  $as_echo_n "(cached) " >&6
12270else
12271  if test -n "$RANLIB"; then
12272  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277  IFS=$as_save_IFS
12278  test -z "$as_dir" && as_dir=.
12279    for ac_exec_ext in '' $ac_executable_extensions; do
12280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12281    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283    break 2
12284  fi
12285done
12286  done
12287IFS=$as_save_IFS
12288
12289fi
12290fi
12291RANLIB=$ac_cv_prog_RANLIB
12292if test -n "$RANLIB"; then
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12294$as_echo "$RANLIB" >&6; }
12295else
12296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301fi
12302if test -z "$ac_cv_prog_RANLIB"; then
12303  ac_ct_RANLIB=$RANLIB
12304  # Extract the first word of "ranlib", so it can be a program name with args.
12305set dummy ranlib; ac_word=$2
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
12308if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  if test -n "$ac_ct_RANLIB"; then
12312  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12313else
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317  IFS=$as_save_IFS
12318  test -z "$as_dir" && as_dir=.
12319    for ac_exec_ext in '' $ac_executable_extensions; do
12320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321    ac_cv_prog_ac_ct_RANLIB="ranlib"
12322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323    break 2
12324  fi
12325done
12326  done
12327IFS=$as_save_IFS
12328
12329fi
12330fi
12331ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12332if test -n "$ac_ct_RANLIB"; then
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12334$as_echo "$ac_ct_RANLIB" >&6; }
12335else
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339
12340  if test "x$ac_ct_RANLIB" = x; then
12341    RANLIB=":"
12342  else
12343    case $cross_compiling:$ac_tool_warned in
12344yes:)
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12347ac_tool_warned=yes ;;
12348esac
12349    RANLIB=$ac_ct_RANLIB
12350  fi
12351else
12352  RANLIB="$ac_cv_prog_RANLIB"
12353fi
12354
12355test -z "$RANLIB" && RANLIB=:
12356
12357
12358
12359
12360
12361
12362# Determine commands to create old-style static archives.
12363old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12364old_postinstall_cmds='chmod 644 $oldlib'
12365old_postuninstall_cmds=
12366
12367if test -n "$RANLIB"; then
12368  case $host_os in
12369  openbsd*)
12370    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12371    ;;
12372  *)
12373    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12374    ;;
12375  esac
12376  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12377fi
12378
12379case $host_os in
12380  darwin*)
12381    lock_old_archive_extraction=yes ;;
12382  *)
12383    lock_old_archive_extraction=no ;;
12384esac
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424# If no C compiler was specified, use CC.
12425LTCC=${LTCC-"$CC"}
12426
12427# If no C compiler flags were specified, use CFLAGS.
12428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12429
12430# Allow CC to be a program name with arguments.
12431compiler=$CC
12432
12433
12434# Check for command to grab the raw symbol name followed by C symbol from nm.
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12436$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12437if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12438  $as_echo_n "(cached) " >&6
12439else
12440
12441# These are sane defaults that work on at least a few old systems.
12442# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12443
12444# Character class describing NM global symbol codes.
12445symcode='[BCDEGRST]'
12446
12447# Regexp to match symbols that can be accessed directly from C.
12448sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12449
12450# Define system-specific variables.
12451case $host_os in
12452aix*)
12453  symcode='[BCDT]'
12454  ;;
12455cygwin* | mingw* | pw32* | cegcc*)
12456  symcode='[ABCDGISTW]'
12457  ;;
12458hpux*)
12459  if test "$host_cpu" = ia64; then
12460    symcode='[ABCDEGRST]'
12461  fi
12462  ;;
12463irix* | nonstopux*)
12464  symcode='[BCDEGRST]'
12465  ;;
12466osf*)
12467  symcode='[BCDEGQRST]'
12468  ;;
12469solaris*)
12470  symcode='[BDRT]'
12471  ;;
12472sco3.2v5*)
12473  symcode='[DT]'
12474  ;;
12475sysv4.2uw2*)
12476  symcode='[DT]'
12477  ;;
12478sysv5* | sco5v6* | unixware* | OpenUNIX*)
12479  symcode='[ABDT]'
12480  ;;
12481sysv4)
12482  symcode='[DFNSTU]'
12483  ;;
12484esac
12485
12486# If we're using GNU nm, then use its standard symbol codes.
12487case `$NM -V 2>&1` in
12488*GNU* | *'with BFD'*)
12489  symcode='[ABCDGIRSTW]' ;;
12490esac
12491
12492# Transform an extracted symbol line into a proper C declaration.
12493# Some systems (esp. on ia64) link data and code symbols differently,
12494# so use this general approach.
12495lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12496
12497# Transform an extracted symbol line into symbol name and symbol address
12498lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12499lt_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'"
12500
12501# Handle CRLF in mingw tool chain
12502opt_cr=
12503case $build_os in
12504mingw*)
12505  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12506  ;;
12507esac
12508
12509# Try without a prefix underscore, then with it.
12510for ac_symprfx in "" "_"; do
12511
12512  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12513  symxfrm="\\1 $ac_symprfx\\2 \\2"
12514
12515  # Write the raw and C identifiers.
12516  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12517    # Fake it for dumpbin and say T for any non-static function
12518    # and D for any global variable.
12519    # Also find C++ and __fastcall symbols from MSVC++,
12520    # which start with @ or ?.
12521    lt_cv_sys_global_symbol_pipe="$AWK '"\
12522"     {last_section=section; section=\$ 3};"\
12523"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12524"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12525"     \$ 0!~/External *\|/{next};"\
12526"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12527"     {if(hide[section]) next};"\
12528"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12529"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12530"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12531"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12532"     ' prfx=^$ac_symprfx"
12533  else
12534    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12535  fi
12536  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12537
12538  # Check to see that the pipe works correctly.
12539  pipe_works=no
12540
12541  rm -f conftest*
12542  cat > conftest.$ac_ext <<_LT_EOF
12543#ifdef __cplusplus
12544extern "C" {
12545#endif
12546char nm_test_var;
12547void nm_test_func(void);
12548void nm_test_func(void){}
12549#ifdef __cplusplus
12550}
12551#endif
12552int main(){nm_test_var='a';nm_test_func();return(0);}
12553_LT_EOF
12554
12555  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12556  (eval $ac_compile) 2>&5
12557  ac_status=$?
12558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12559  test $ac_status = 0; }; then
12560    # Now try to grab the symbols.
12561    nlist=conftest.nm
12562    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12563  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12564  ac_status=$?
12565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566  test $ac_status = 0; } && test -s "$nlist"; then
12567      # Try sorting and uniquifying the output.
12568      if sort "$nlist" | uniq > "$nlist"T; then
12569	mv -f "$nlist"T "$nlist"
12570      else
12571	rm -f "$nlist"T
12572      fi
12573
12574      # Make sure that we snagged all the symbols we need.
12575      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12576	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12577	  cat <<_LT_EOF > conftest.$ac_ext
12578/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12579#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12580/* DATA imports from DLLs on WIN32 con't be const, because runtime
12581   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12582# define LT_DLSYM_CONST
12583#elif defined(__osf__)
12584/* This system does not cope well with relocations in const data.  */
12585# define LT_DLSYM_CONST
12586#else
12587# define LT_DLSYM_CONST const
12588#endif
12589
12590#ifdef __cplusplus
12591extern "C" {
12592#endif
12593
12594_LT_EOF
12595	  # Now generate the symbol file.
12596	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12597
12598	  cat <<_LT_EOF >> conftest.$ac_ext
12599
12600/* The mapping between symbol names and symbols.  */
12601LT_DLSYM_CONST struct {
12602  const char *name;
12603  void       *address;
12604}
12605lt__PROGRAM__LTX_preloaded_symbols[] =
12606{
12607  { "@PROGRAM@", (void *) 0 },
12608_LT_EOF
12609	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12610	  cat <<\_LT_EOF >> conftest.$ac_ext
12611  {0, (void *) 0}
12612};
12613
12614/* This works around a problem in FreeBSD linker */
12615#ifdef FREEBSD_WORKAROUND
12616static const void *lt_preloaded_setup() {
12617  return lt__PROGRAM__LTX_preloaded_symbols;
12618}
12619#endif
12620
12621#ifdef __cplusplus
12622}
12623#endif
12624_LT_EOF
12625	  # Now try linking the two files.
12626	  mv conftest.$ac_objext conftstm.$ac_objext
12627	  lt_globsym_save_LIBS=$LIBS
12628	  lt_globsym_save_CFLAGS=$CFLAGS
12629	  LIBS="conftstm.$ac_objext"
12630	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12631	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12632  (eval $ac_link) 2>&5
12633  ac_status=$?
12634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12635  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12636	    pipe_works=yes
12637	  fi
12638	  LIBS=$lt_globsym_save_LIBS
12639	  CFLAGS=$lt_globsym_save_CFLAGS
12640	else
12641	  echo "cannot find nm_test_func in $nlist" >&5
12642	fi
12643      else
12644	echo "cannot find nm_test_var in $nlist" >&5
12645      fi
12646    else
12647      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12648    fi
12649  else
12650    echo "$progname: failed program was:" >&5
12651    cat conftest.$ac_ext >&5
12652  fi
12653  rm -rf conftest* conftst*
12654
12655  # Do not use the global_symbol_pipe unless it works.
12656  if test "$pipe_works" = yes; then
12657    break
12658  else
12659    lt_cv_sys_global_symbol_pipe=
12660  fi
12661done
12662
12663fi
12664
12665if test -z "$lt_cv_sys_global_symbol_pipe"; then
12666  lt_cv_sys_global_symbol_to_cdecl=
12667fi
12668if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12670$as_echo "failed" >&6; }
12671else
12672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12673$as_echo "ok" >&6; }
12674fi
12675
12676# Response file support.
12677if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12678  nm_file_list_spec='@'
12679elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12680  nm_file_list_spec='@'
12681fi
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12710$as_echo_n "checking for sysroot... " >&6; }
12711
12712# Check whether --with-sysroot was given.
12713if test "${with_sysroot+set}" = set; then :
12714  withval=$with_sysroot;
12715else
12716  with_sysroot=no
12717fi
12718
12719
12720lt_sysroot=
12721case ${with_sysroot} in #(
12722 yes)
12723   if test "$GCC" = yes; then
12724     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12725   fi
12726   ;; #(
12727 /*)
12728   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12729   ;; #(
12730 no|'')
12731   ;; #(
12732 *)
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12734$as_echo "${with_sysroot}" >&6; }
12735   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12736   ;;
12737esac
12738
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12740$as_echo "${lt_sysroot:-no}" >&6; }
12741
12742
12743
12744
12745
12746# Check whether --enable-libtool-lock was given.
12747if test "${enable_libtool_lock+set}" = set; then :
12748  enableval=$enable_libtool_lock;
12749fi
12750
12751test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12752
12753# Some flags need to be propagated to the compiler or linker for good
12754# libtool support.
12755case $host in
12756ia64-*-hpux*)
12757  # Find out which ABI we are using.
12758  echo 'int i;' > conftest.$ac_ext
12759  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12760  (eval $ac_compile) 2>&5
12761  ac_status=$?
12762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763  test $ac_status = 0; }; then
12764    case `/usr/bin/file conftest.$ac_objext` in
12765      *ELF-32*)
12766	HPUX_IA64_MODE="32"
12767	;;
12768      *ELF-64*)
12769	HPUX_IA64_MODE="64"
12770	;;
12771    esac
12772  fi
12773  rm -rf conftest*
12774  ;;
12775*-*-irix6*)
12776  # Find out which ABI we are using.
12777  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12779  (eval $ac_compile) 2>&5
12780  ac_status=$?
12781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12782  test $ac_status = 0; }; then
12783    if test "$lt_cv_prog_gnu_ld" = yes; then
12784      case `/usr/bin/file conftest.$ac_objext` in
12785	*32-bit*)
12786	  LD="${LD-ld} -melf32bsmip"
12787	  ;;
12788	*N32*)
12789	  LD="${LD-ld} -melf32bmipn32"
12790	  ;;
12791	*64-bit*)
12792	  LD="${LD-ld} -melf64bmip"
12793	;;
12794      esac
12795    else
12796      case `/usr/bin/file conftest.$ac_objext` in
12797	*32-bit*)
12798	  LD="${LD-ld} -32"
12799	  ;;
12800	*N32*)
12801	  LD="${LD-ld} -n32"
12802	  ;;
12803	*64-bit*)
12804	  LD="${LD-ld} -64"
12805	  ;;
12806      esac
12807    fi
12808  fi
12809  rm -rf conftest*
12810  ;;
12811
12812x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12813s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12814  # Find out which ABI we are using.
12815  echo 'int i;' > conftest.$ac_ext
12816  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12817  (eval $ac_compile) 2>&5
12818  ac_status=$?
12819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12820  test $ac_status = 0; }; then
12821    case `/usr/bin/file conftest.o` in
12822      *32-bit*)
12823	case $host in
12824	  x86_64-*kfreebsd*-gnu)
12825	    LD="${LD-ld} -m elf_i386_fbsd"
12826	    ;;
12827	  x86_64-*linux*)
12828	    LD="${LD-ld} -m elf_i386"
12829	    ;;
12830	  powerpc64le-*linux*)
12831	    LD="${LD-ld} -m elf32lppclinux"
12832	    ;;
12833	  powerpc64-*linux*)
12834	    LD="${LD-ld} -m elf32ppclinux"
12835	    ;;
12836	  s390x-*linux*)
12837	    LD="${LD-ld} -m elf_s390"
12838	    ;;
12839	  sparc64-*linux*)
12840	    LD="${LD-ld} -m elf32_sparc"
12841	    ;;
12842	esac
12843	;;
12844      *64-bit*)
12845	case $host in
12846	  x86_64-*kfreebsd*-gnu)
12847	    LD="${LD-ld} -m elf_x86_64_fbsd"
12848	    ;;
12849	  x86_64-*linux*)
12850	    LD="${LD-ld} -m elf_x86_64"
12851	    ;;
12852	  powerpcle-*linux*)
12853	    LD="${LD-ld} -m elf64lppc"
12854	    ;;
12855	  powerpc-*linux*)
12856	    LD="${LD-ld} -m elf64ppc"
12857	    ;;
12858	  s390*-*linux*|s390*-*tpf*)
12859	    LD="${LD-ld} -m elf64_s390"
12860	    ;;
12861	  sparc*-*linux*)
12862	    LD="${LD-ld} -m elf64_sparc"
12863	    ;;
12864	esac
12865	;;
12866    esac
12867  fi
12868  rm -rf conftest*
12869  ;;
12870
12871*-*-sco3.2v5*)
12872  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12873  SAVE_CFLAGS="$CFLAGS"
12874  CFLAGS="$CFLAGS -belf"
12875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12876$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12877if ${lt_cv_cc_needs_belf+:} false; then :
12878  $as_echo_n "(cached) " >&6
12879else
12880  ac_ext=c
12881ac_cpp='$CPP $CPPFLAGS'
12882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884ac_compiler_gnu=$ac_cv_c_compiler_gnu
12885
12886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887/* end confdefs.h.  */
12888
12889int
12890main ()
12891{
12892
12893  ;
12894  return 0;
12895}
12896_ACEOF
12897if ac_fn_c_try_link "$LINENO"; then :
12898  lt_cv_cc_needs_belf=yes
12899else
12900  lt_cv_cc_needs_belf=no
12901fi
12902rm -f core conftest.err conftest.$ac_objext \
12903    conftest$ac_exeext conftest.$ac_ext
12904     ac_ext=c
12905ac_cpp='$CPP $CPPFLAGS'
12906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908ac_compiler_gnu=$ac_cv_c_compiler_gnu
12909
12910fi
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12912$as_echo "$lt_cv_cc_needs_belf" >&6; }
12913  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12914    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12915    CFLAGS="$SAVE_CFLAGS"
12916  fi
12917  ;;
12918*-*solaris*)
12919  # Find out which ABI we are using.
12920  echo 'int i;' > conftest.$ac_ext
12921  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12922  (eval $ac_compile) 2>&5
12923  ac_status=$?
12924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925  test $ac_status = 0; }; then
12926    case `/usr/bin/file conftest.o` in
12927    *64-bit*)
12928      case $lt_cv_prog_gnu_ld in
12929      yes*)
12930        case $host in
12931        i?86-*-solaris*)
12932          LD="${LD-ld} -m elf_x86_64"
12933          ;;
12934        sparc*-*-solaris*)
12935          LD="${LD-ld} -m elf64_sparc"
12936          ;;
12937        esac
12938        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12939        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12940          LD="${LD-ld}_sol2"
12941        fi
12942        ;;
12943      *)
12944	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12945	  LD="${LD-ld} -64"
12946	fi
12947	;;
12948      esac
12949      ;;
12950    esac
12951  fi
12952  rm -rf conftest*
12953  ;;
12954esac
12955
12956need_locks="$enable_libtool_lock"
12957
12958if test -n "$ac_tool_prefix"; then
12959  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12960set dummy ${ac_tool_prefix}mt; ac_word=$2
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962$as_echo_n "checking for $ac_word... " >&6; }
12963if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12964  $as_echo_n "(cached) " >&6
12965else
12966  if test -n "$MANIFEST_TOOL"; then
12967  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12968else
12969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970for as_dir in $PATH
12971do
12972  IFS=$as_save_IFS
12973  test -z "$as_dir" && as_dir=.
12974    for ac_exec_ext in '' $ac_executable_extensions; do
12975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12976    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978    break 2
12979  fi
12980done
12981  done
12982IFS=$as_save_IFS
12983
12984fi
12985fi
12986MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12987if test -n "$MANIFEST_TOOL"; then
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12989$as_echo "$MANIFEST_TOOL" >&6; }
12990else
12991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992$as_echo "no" >&6; }
12993fi
12994
12995
12996fi
12997if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12998  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12999  # Extract the first word of "mt", so it can be a program name with args.
13000set dummy mt; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
13003if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  if test -n "$ac_ct_MANIFEST_TOOL"; then
13007  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13008else
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012  IFS=$as_save_IFS
13013  test -z "$as_dir" && as_dir=.
13014    for ac_exec_ext in '' $ac_executable_extensions; do
13015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018    break 2
13019  fi
13020done
13021  done
13022IFS=$as_save_IFS
13023
13024fi
13025fi
13026ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13027if test -n "$ac_ct_MANIFEST_TOOL"; then
13028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13029$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13030else
13031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
13033fi
13034
13035  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13036    MANIFEST_TOOL=":"
13037  else
13038    case $cross_compiling:$ac_tool_warned in
13039yes:)
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13042ac_tool_warned=yes ;;
13043esac
13044    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13045  fi
13046else
13047  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13048fi
13049
13050test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13052$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13053if ${lt_cv_path_mainfest_tool+:} false; then :
13054  $as_echo_n "(cached) " >&6
13055else
13056  lt_cv_path_mainfest_tool=no
13057  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13058  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13059  cat conftest.err >&5
13060  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13061    lt_cv_path_mainfest_tool=yes
13062  fi
13063  rm -f conftest*
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13066$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13067if test "x$lt_cv_path_mainfest_tool" != xyes; then
13068  MANIFEST_TOOL=:
13069fi
13070
13071
13072
13073
13074
13075
13076  case $host_os in
13077    rhapsody* | darwin*)
13078    if test -n "$ac_tool_prefix"; then
13079  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082$as_echo_n "checking for $ac_word... " >&6; }
13083if ${ac_cv_prog_DSYMUTIL+:} false; then :
13084  $as_echo_n "(cached) " >&6
13085else
13086  if test -n "$DSYMUTIL"; then
13087  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092  IFS=$as_save_IFS
13093  test -z "$as_dir" && as_dir=.
13094    for ac_exec_ext in '' $ac_executable_extensions; do
13095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098    break 2
13099  fi
13100done
13101  done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106DSYMUTIL=$ac_cv_prog_DSYMUTIL
13107if test -n "$DSYMUTIL"; then
13108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13109$as_echo "$DSYMUTIL" >&6; }
13110else
13111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
13113fi
13114
13115
13116fi
13117if test -z "$ac_cv_prog_DSYMUTIL"; then
13118  ac_ct_DSYMUTIL=$DSYMUTIL
13119  # Extract the first word of "dsymutil", so it can be a program name with args.
13120set dummy dsymutil; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
13123if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13124  $as_echo_n "(cached) " >&6
13125else
13126  if test -n "$ac_ct_DSYMUTIL"; then
13127  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132  IFS=$as_save_IFS
13133  test -z "$as_dir" && as_dir=.
13134    for ac_exec_ext in '' $ac_executable_extensions; do
13135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138    break 2
13139  fi
13140done
13141  done
13142IFS=$as_save_IFS
13143
13144fi
13145fi
13146ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13147if test -n "$ac_ct_DSYMUTIL"; then
13148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13149$as_echo "$ac_ct_DSYMUTIL" >&6; }
13150else
13151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
13153fi
13154
13155  if test "x$ac_ct_DSYMUTIL" = x; then
13156    DSYMUTIL=":"
13157  else
13158    case $cross_compiling:$ac_tool_warned in
13159yes:)
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13162ac_tool_warned=yes ;;
13163esac
13164    DSYMUTIL=$ac_ct_DSYMUTIL
13165  fi
13166else
13167  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13168fi
13169
13170    if test -n "$ac_tool_prefix"; then
13171  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13172set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174$as_echo_n "checking for $ac_word... " >&6; }
13175if ${ac_cv_prog_NMEDIT+:} false; then :
13176  $as_echo_n "(cached) " >&6
13177else
13178  if test -n "$NMEDIT"; then
13179  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13180else
13181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182for as_dir in $PATH
13183do
13184  IFS=$as_save_IFS
13185  test -z "$as_dir" && as_dir=.
13186    for ac_exec_ext in '' $ac_executable_extensions; do
13187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13188    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190    break 2
13191  fi
13192done
13193  done
13194IFS=$as_save_IFS
13195
13196fi
13197fi
13198NMEDIT=$ac_cv_prog_NMEDIT
13199if test -n "$NMEDIT"; then
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13201$as_echo "$NMEDIT" >&6; }
13202else
13203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205fi
13206
13207
13208fi
13209if test -z "$ac_cv_prog_NMEDIT"; then
13210  ac_ct_NMEDIT=$NMEDIT
13211  # Extract the first word of "nmedit", so it can be a program name with args.
13212set dummy nmedit; ac_word=$2
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
13215if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13216  $as_echo_n "(cached) " >&6
13217else
13218  if test -n "$ac_ct_NMEDIT"; then
13219  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13220else
13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222for as_dir in $PATH
13223do
13224  IFS=$as_save_IFS
13225  test -z "$as_dir" && as_dir=.
13226    for ac_exec_ext in '' $ac_executable_extensions; do
13227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13228    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230    break 2
13231  fi
13232done
13233  done
13234IFS=$as_save_IFS
13235
13236fi
13237fi
13238ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13239if test -n "$ac_ct_NMEDIT"; then
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13241$as_echo "$ac_ct_NMEDIT" >&6; }
13242else
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
13245fi
13246
13247  if test "x$ac_ct_NMEDIT" = x; then
13248    NMEDIT=":"
13249  else
13250    case $cross_compiling:$ac_tool_warned in
13251yes:)
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254ac_tool_warned=yes ;;
13255esac
13256    NMEDIT=$ac_ct_NMEDIT
13257  fi
13258else
13259  NMEDIT="$ac_cv_prog_NMEDIT"
13260fi
13261
13262    if test -n "$ac_tool_prefix"; then
13263  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13264set dummy ${ac_tool_prefix}lipo; ac_word=$2
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
13267if ${ac_cv_prog_LIPO+:} false; then :
13268  $as_echo_n "(cached) " >&6
13269else
13270  if test -n "$LIPO"; then
13271  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276  IFS=$as_save_IFS
13277  test -z "$as_dir" && as_dir=.
13278    for ac_exec_ext in '' $ac_executable_extensions; do
13279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282    break 2
13283  fi
13284done
13285  done
13286IFS=$as_save_IFS
13287
13288fi
13289fi
13290LIPO=$ac_cv_prog_LIPO
13291if test -n "$LIPO"; then
13292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13293$as_echo "$LIPO" >&6; }
13294else
13295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297fi
13298
13299
13300fi
13301if test -z "$ac_cv_prog_LIPO"; then
13302  ac_ct_LIPO=$LIPO
13303  # Extract the first word of "lipo", so it can be a program name with args.
13304set dummy lipo; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
13307if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  if test -n "$ac_ct_LIPO"; then
13311  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316  IFS=$as_save_IFS
13317  test -z "$as_dir" && as_dir=.
13318    for ac_exec_ext in '' $ac_executable_extensions; do
13319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13320    ac_cv_prog_ac_ct_LIPO="lipo"
13321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322    break 2
13323  fi
13324done
13325  done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13331if test -n "$ac_ct_LIPO"; then
13332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13333$as_echo "$ac_ct_LIPO" >&6; }
13334else
13335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339  if test "x$ac_ct_LIPO" = x; then
13340    LIPO=":"
13341  else
13342    case $cross_compiling:$ac_tool_warned in
13343yes:)
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13346ac_tool_warned=yes ;;
13347esac
13348    LIPO=$ac_ct_LIPO
13349  fi
13350else
13351  LIPO="$ac_cv_prog_LIPO"
13352fi
13353
13354    if test -n "$ac_tool_prefix"; then
13355  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13356set dummy ${ac_tool_prefix}otool; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
13359if ${ac_cv_prog_OTOOL+:} false; then :
13360  $as_echo_n "(cached) " >&6
13361else
13362  if test -n "$OTOOL"; then
13363  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368  IFS=$as_save_IFS
13369  test -z "$as_dir" && as_dir=.
13370    for ac_exec_ext in '' $ac_executable_extensions; do
13371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13372    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374    break 2
13375  fi
13376done
13377  done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382OTOOL=$ac_cv_prog_OTOOL
13383if test -n "$OTOOL"; then
13384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13385$as_echo "$OTOOL" >&6; }
13386else
13387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391
13392fi
13393if test -z "$ac_cv_prog_OTOOL"; then
13394  ac_ct_OTOOL=$OTOOL
13395  # Extract the first word of "otool", so it can be a program name with args.
13396set dummy otool; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
13399if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13400  $as_echo_n "(cached) " >&6
13401else
13402  if test -n "$ac_ct_OTOOL"; then
13403  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408  IFS=$as_save_IFS
13409  test -z "$as_dir" && as_dir=.
13410    for ac_exec_ext in '' $ac_executable_extensions; do
13411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412    ac_cv_prog_ac_ct_OTOOL="otool"
13413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414    break 2
13415  fi
13416done
13417  done
13418IFS=$as_save_IFS
13419
13420fi
13421fi
13422ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13423if test -n "$ac_ct_OTOOL"; then
13424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13425$as_echo "$ac_ct_OTOOL" >&6; }
13426else
13427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
13429fi
13430
13431  if test "x$ac_ct_OTOOL" = x; then
13432    OTOOL=":"
13433  else
13434    case $cross_compiling:$ac_tool_warned in
13435yes:)
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13438ac_tool_warned=yes ;;
13439esac
13440    OTOOL=$ac_ct_OTOOL
13441  fi
13442else
13443  OTOOL="$ac_cv_prog_OTOOL"
13444fi
13445
13446    if test -n "$ac_tool_prefix"; then
13447  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13448set dummy ${ac_tool_prefix}otool64; ac_word=$2
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450$as_echo_n "checking for $ac_word... " >&6; }
13451if ${ac_cv_prog_OTOOL64+:} false; then :
13452  $as_echo_n "(cached) " >&6
13453else
13454  if test -n "$OTOOL64"; then
13455  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13456else
13457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458for as_dir in $PATH
13459do
13460  IFS=$as_save_IFS
13461  test -z "$as_dir" && as_dir=.
13462    for ac_exec_ext in '' $ac_executable_extensions; do
13463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466    break 2
13467  fi
13468done
13469  done
13470IFS=$as_save_IFS
13471
13472fi
13473fi
13474OTOOL64=$ac_cv_prog_OTOOL64
13475if test -n "$OTOOL64"; then
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13477$as_echo "$OTOOL64" >&6; }
13478else
13479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480$as_echo "no" >&6; }
13481fi
13482
13483
13484fi
13485if test -z "$ac_cv_prog_OTOOL64"; then
13486  ac_ct_OTOOL64=$OTOOL64
13487  # Extract the first word of "otool64", so it can be a program name with args.
13488set dummy otool64; ac_word=$2
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490$as_echo_n "checking for $ac_word... " >&6; }
13491if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13492  $as_echo_n "(cached) " >&6
13493else
13494  if test -n "$ac_ct_OTOOL64"; then
13495  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13496else
13497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498for as_dir in $PATH
13499do
13500  IFS=$as_save_IFS
13501  test -z "$as_dir" && as_dir=.
13502    for ac_exec_ext in '' $ac_executable_extensions; do
13503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13504    ac_cv_prog_ac_ct_OTOOL64="otool64"
13505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506    break 2
13507  fi
13508done
13509  done
13510IFS=$as_save_IFS
13511
13512fi
13513fi
13514ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13515if test -n "$ac_ct_OTOOL64"; then
13516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13517$as_echo "$ac_ct_OTOOL64" >&6; }
13518else
13519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520$as_echo "no" >&6; }
13521fi
13522
13523  if test "x$ac_ct_OTOOL64" = x; then
13524    OTOOL64=":"
13525  else
13526    case $cross_compiling:$ac_tool_warned in
13527yes:)
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13530ac_tool_warned=yes ;;
13531esac
13532    OTOOL64=$ac_ct_OTOOL64
13533  fi
13534else
13535  OTOOL64="$ac_cv_prog_OTOOL64"
13536fi
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13565$as_echo_n "checking for -single_module linker flag... " >&6; }
13566if ${lt_cv_apple_cc_single_mod+:} false; then :
13567  $as_echo_n "(cached) " >&6
13568else
13569  lt_cv_apple_cc_single_mod=no
13570      if test -z "${LT_MULTI_MODULE}"; then
13571	# By default we will add the -single_module flag. You can override
13572	# by either setting the environment variable LT_MULTI_MODULE
13573	# non-empty at configure time, or by adding -multi_module to the
13574	# link flags.
13575	rm -rf libconftest.dylib*
13576	echo "int foo(void){return 1;}" > conftest.c
13577	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13578-dynamiclib -Wl,-single_module conftest.c" >&5
13579	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13580	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13581        _lt_result=$?
13582	# If there is a non-empty error log, and "single_module"
13583	# appears in it, assume the flag caused a linker warning
13584        if test -s conftest.err && $GREP single_module conftest.err; then
13585	  cat conftest.err >&5
13586	# Otherwise, if the output was created with a 0 exit code from
13587	# the compiler, it worked.
13588	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13589	  lt_cv_apple_cc_single_mod=yes
13590	else
13591	  cat conftest.err >&5
13592	fi
13593	rm -rf libconftest.dylib*
13594	rm -f conftest.*
13595      fi
13596fi
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13598$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13599
13600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13601$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13602if ${lt_cv_ld_exported_symbols_list+:} false; then :
13603  $as_echo_n "(cached) " >&6
13604else
13605  lt_cv_ld_exported_symbols_list=no
13606      save_LDFLAGS=$LDFLAGS
13607      echo "_main" > conftest.sym
13608      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13609      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610/* end confdefs.h.  */
13611
13612int
13613main ()
13614{
13615
13616  ;
13617  return 0;
13618}
13619_ACEOF
13620if ac_fn_c_try_link "$LINENO"; then :
13621  lt_cv_ld_exported_symbols_list=yes
13622else
13623  lt_cv_ld_exported_symbols_list=no
13624fi
13625rm -f core conftest.err conftest.$ac_objext \
13626    conftest$ac_exeext conftest.$ac_ext
13627	LDFLAGS="$save_LDFLAGS"
13628
13629fi
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13631$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13632
13633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13634$as_echo_n "checking for -force_load linker flag... " >&6; }
13635if ${lt_cv_ld_force_load+:} false; then :
13636  $as_echo_n "(cached) " >&6
13637else
13638  lt_cv_ld_force_load=no
13639      cat > conftest.c << _LT_EOF
13640int forced_loaded() { return 2;}
13641_LT_EOF
13642      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13643      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13644      echo "$AR cru libconftest.a conftest.o" >&5
13645      $AR cru libconftest.a conftest.o 2>&5
13646      echo "$RANLIB libconftest.a" >&5
13647      $RANLIB libconftest.a 2>&5
13648      cat > conftest.c << _LT_EOF
13649int main() { return 0;}
13650_LT_EOF
13651      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13652      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13653      _lt_result=$?
13654      if test -s conftest.err && $GREP force_load conftest.err; then
13655	cat conftest.err >&5
13656      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13657	lt_cv_ld_force_load=yes
13658      else
13659	cat conftest.err >&5
13660      fi
13661        rm -f conftest.err libconftest.a conftest conftest.c
13662        rm -rf conftest.dSYM
13663
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13666$as_echo "$lt_cv_ld_force_load" >&6; }
13667    case $host_os in
13668    rhapsody* | darwin1.[012])
13669      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13670    darwin1.*)
13671      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13672    darwin*) # darwin 5.x on
13673      # if running on 10.5 or later, the deployment target defaults
13674      # to the OS version, if on x86, and 10.4, the deployment
13675      # target defaults to 10.4. Don't you love it?
13676      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13677	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13678	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13679	10.[012]*)
13680	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13681	10.*)
13682	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13683      esac
13684    ;;
13685  esac
13686    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13687      _lt_dar_single_mod='$single_module'
13688    fi
13689    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13690      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13691    else
13692      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13693    fi
13694    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13695      _lt_dsymutil='~$DSYMUTIL $lib || :'
13696    else
13697      _lt_dsymutil=
13698    fi
13699    ;;
13700  esac
13701
13702for ac_header in dlfcn.h
13703do :
13704  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13705"
13706if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13707  cat >>confdefs.h <<_ACEOF
13708#define HAVE_DLFCN_H 1
13709_ACEOF
13710
13711fi
13712
13713done
13714
13715
13716
13717
13718func_stripname_cnf ()
13719{
13720  case ${2} in
13721  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13722  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13723  esac
13724} # func_stripname_cnf
13725
13726
13727
13728
13729
13730# Set options
13731enable_win32_dll=yes
13732
13733case $host in
13734*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13735  if test -n "$ac_tool_prefix"; then
13736  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13737set dummy ${ac_tool_prefix}as; ac_word=$2
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739$as_echo_n "checking for $ac_word... " >&6; }
13740if ${ac_cv_prog_AS+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  if test -n "$AS"; then
13744  ac_cv_prog_AS="$AS" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749  IFS=$as_save_IFS
13750  test -z "$as_dir" && as_dir=.
13751    for ac_exec_ext in '' $ac_executable_extensions; do
13752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753    ac_cv_prog_AS="${ac_tool_prefix}as"
13754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755    break 2
13756  fi
13757done
13758  done
13759IFS=$as_save_IFS
13760
13761fi
13762fi
13763AS=$ac_cv_prog_AS
13764if test -n "$AS"; then
13765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13766$as_echo "$AS" >&6; }
13767else
13768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
13770fi
13771
13772
13773fi
13774if test -z "$ac_cv_prog_AS"; then
13775  ac_ct_AS=$AS
13776  # Extract the first word of "as", so it can be a program name with args.
13777set dummy as; ac_word=$2
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779$as_echo_n "checking for $ac_word... " >&6; }
13780if ${ac_cv_prog_ac_ct_AS+:} false; then :
13781  $as_echo_n "(cached) " >&6
13782else
13783  if test -n "$ac_ct_AS"; then
13784  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789  IFS=$as_save_IFS
13790  test -z "$as_dir" && as_dir=.
13791    for ac_exec_ext in '' $ac_executable_extensions; do
13792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13793    ac_cv_prog_ac_ct_AS="as"
13794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795    break 2
13796  fi
13797done
13798  done
13799IFS=$as_save_IFS
13800
13801fi
13802fi
13803ac_ct_AS=$ac_cv_prog_ac_ct_AS
13804if test -n "$ac_ct_AS"; then
13805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13806$as_echo "$ac_ct_AS" >&6; }
13807else
13808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
13810fi
13811
13812  if test "x$ac_ct_AS" = x; then
13813    AS="false"
13814  else
13815    case $cross_compiling:$ac_tool_warned in
13816yes:)
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13819ac_tool_warned=yes ;;
13820esac
13821    AS=$ac_ct_AS
13822  fi
13823else
13824  AS="$ac_cv_prog_AS"
13825fi
13826
13827  if test -n "$ac_tool_prefix"; then
13828  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13829set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13831$as_echo_n "checking for $ac_word... " >&6; }
13832if ${ac_cv_prog_DLLTOOL+:} false; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835  if test -n "$DLLTOOL"; then
13836  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13837else
13838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839for as_dir in $PATH
13840do
13841  IFS=$as_save_IFS
13842  test -z "$as_dir" && as_dir=.
13843    for ac_exec_ext in '' $ac_executable_extensions; do
13844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13845    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13847    break 2
13848  fi
13849done
13850  done
13851IFS=$as_save_IFS
13852
13853fi
13854fi
13855DLLTOOL=$ac_cv_prog_DLLTOOL
13856if test -n "$DLLTOOL"; then
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13858$as_echo "$DLLTOOL" >&6; }
13859else
13860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
13862fi
13863
13864
13865fi
13866if test -z "$ac_cv_prog_DLLTOOL"; then
13867  ac_ct_DLLTOOL=$DLLTOOL
13868  # Extract the first word of "dlltool", so it can be a program name with args.
13869set dummy dlltool; ac_word=$2
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871$as_echo_n "checking for $ac_word... " >&6; }
13872if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13873  $as_echo_n "(cached) " >&6
13874else
13875  if test -n "$ac_ct_DLLTOOL"; then
13876  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13877else
13878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879for as_dir in $PATH
13880do
13881  IFS=$as_save_IFS
13882  test -z "$as_dir" && as_dir=.
13883    for ac_exec_ext in '' $ac_executable_extensions; do
13884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13885    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887    break 2
13888  fi
13889done
13890  done
13891IFS=$as_save_IFS
13892
13893fi
13894fi
13895ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13896if test -n "$ac_ct_DLLTOOL"; then
13897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13898$as_echo "$ac_ct_DLLTOOL" >&6; }
13899else
13900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901$as_echo "no" >&6; }
13902fi
13903
13904  if test "x$ac_ct_DLLTOOL" = x; then
13905    DLLTOOL="false"
13906  else
13907    case $cross_compiling:$ac_tool_warned in
13908yes:)
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13911ac_tool_warned=yes ;;
13912esac
13913    DLLTOOL=$ac_ct_DLLTOOL
13914  fi
13915else
13916  DLLTOOL="$ac_cv_prog_DLLTOOL"
13917fi
13918
13919  if test -n "$ac_tool_prefix"; then
13920  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13921set dummy ${ac_tool_prefix}objdump; ac_word=$2
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923$as_echo_n "checking for $ac_word... " >&6; }
13924if ${ac_cv_prog_OBJDUMP+:} false; then :
13925  $as_echo_n "(cached) " >&6
13926else
13927  if test -n "$OBJDUMP"; then
13928  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13929else
13930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931for as_dir in $PATH
13932do
13933  IFS=$as_save_IFS
13934  test -z "$as_dir" && as_dir=.
13935    for ac_exec_ext in '' $ac_executable_extensions; do
13936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939    break 2
13940  fi
13941done
13942  done
13943IFS=$as_save_IFS
13944
13945fi
13946fi
13947OBJDUMP=$ac_cv_prog_OBJDUMP
13948if test -n "$OBJDUMP"; then
13949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13950$as_echo "$OBJDUMP" >&6; }
13951else
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953$as_echo "no" >&6; }
13954fi
13955
13956
13957fi
13958if test -z "$ac_cv_prog_OBJDUMP"; then
13959  ac_ct_OBJDUMP=$OBJDUMP
13960  # Extract the first word of "objdump", so it can be a program name with args.
13961set dummy objdump; ac_word=$2
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963$as_echo_n "checking for $ac_word... " >&6; }
13964if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13965  $as_echo_n "(cached) " >&6
13966else
13967  if test -n "$ac_ct_OBJDUMP"; then
13968  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13969else
13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971for as_dir in $PATH
13972do
13973  IFS=$as_save_IFS
13974  test -z "$as_dir" && as_dir=.
13975    for ac_exec_ext in '' $ac_executable_extensions; do
13976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13977    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13979    break 2
13980  fi
13981done
13982  done
13983IFS=$as_save_IFS
13984
13985fi
13986fi
13987ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13988if test -n "$ac_ct_OBJDUMP"; then
13989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13990$as_echo "$ac_ct_OBJDUMP" >&6; }
13991else
13992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993$as_echo "no" >&6; }
13994fi
13995
13996  if test "x$ac_ct_OBJDUMP" = x; then
13997    OBJDUMP="false"
13998  else
13999    case $cross_compiling:$ac_tool_warned in
14000yes:)
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14003ac_tool_warned=yes ;;
14004esac
14005    OBJDUMP=$ac_ct_OBJDUMP
14006  fi
14007else
14008  OBJDUMP="$ac_cv_prog_OBJDUMP"
14009fi
14010
14011  ;;
14012esac
14013
14014test -z "$AS" && AS=as
14015
14016
14017
14018
14019
14020test -z "$DLLTOOL" && DLLTOOL=dlltool
14021
14022
14023
14024
14025
14026test -z "$OBJDUMP" && OBJDUMP=objdump
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036            # Check whether --enable-shared was given.
14037if test "${enable_shared+set}" = set; then :
14038  enableval=$enable_shared; p=${PACKAGE-default}
14039    case $enableval in
14040    yes) enable_shared=yes ;;
14041    no) enable_shared=no ;;
14042    *)
14043      enable_shared=no
14044      # Look at the argument we got.  We use all the common list separators.
14045      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14046      for pkg in $enableval; do
14047	IFS="$lt_save_ifs"
14048	if test "X$pkg" = "X$p"; then
14049	  enable_shared=yes
14050	fi
14051      done
14052      IFS="$lt_save_ifs"
14053      ;;
14054    esac
14055else
14056  enable_shared=yes
14057fi
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067  # Check whether --enable-static was given.
14068if test "${enable_static+set}" = set; then :
14069  enableval=$enable_static; p=${PACKAGE-default}
14070    case $enableval in
14071    yes) enable_static=yes ;;
14072    no) enable_static=no ;;
14073    *)
14074     enable_static=no
14075      # Look at the argument we got.  We use all the common list separators.
14076      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14077      for pkg in $enableval; do
14078	IFS="$lt_save_ifs"
14079	if test "X$pkg" = "X$p"; then
14080	  enable_static=yes
14081	fi
14082      done
14083      IFS="$lt_save_ifs"
14084      ;;
14085    esac
14086else
14087  enable_static=yes
14088fi
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099# Check whether --with-pic was given.
14100if test "${with_pic+set}" = set; then :
14101  withval=$with_pic; lt_p=${PACKAGE-default}
14102    case $withval in
14103    yes|no) pic_mode=$withval ;;
14104    *)
14105      pic_mode=default
14106      # Look at the argument we got.  We use all the common list separators.
14107      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14108      for lt_pkg in $withval; do
14109	IFS="$lt_save_ifs"
14110	if test "X$lt_pkg" = "X$lt_p"; then
14111	  pic_mode=yes
14112	fi
14113      done
14114      IFS="$lt_save_ifs"
14115      ;;
14116    esac
14117else
14118  pic_mode=default
14119fi
14120
14121
14122test -z "$pic_mode" && pic_mode=default
14123
14124
14125
14126
14127
14128
14129
14130  # Check whether --enable-fast-install was given.
14131if test "${enable_fast_install+set}" = set; then :
14132  enableval=$enable_fast_install; p=${PACKAGE-default}
14133    case $enableval in
14134    yes) enable_fast_install=yes ;;
14135    no) enable_fast_install=no ;;
14136    *)
14137      enable_fast_install=no
14138      # Look at the argument we got.  We use all the common list separators.
14139      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14140      for pkg in $enableval; do
14141	IFS="$lt_save_ifs"
14142	if test "X$pkg" = "X$p"; then
14143	  enable_fast_install=yes
14144	fi
14145      done
14146      IFS="$lt_save_ifs"
14147      ;;
14148    esac
14149else
14150  enable_fast_install=yes
14151fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163# This can be used to rebuild libtool when needed
14164LIBTOOL_DEPS="$ltmain"
14165
14166# Always use our own libtool.
14167LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198test -z "$LN_S" && LN_S="ln -s"
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213if test -n "${ZSH_VERSION+set}" ; then
14214   setopt NO_GLOB_SUBST
14215fi
14216
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14218$as_echo_n "checking for objdir... " >&6; }
14219if ${lt_cv_objdir+:} false; then :
14220  $as_echo_n "(cached) " >&6
14221else
14222  rm -f .libs 2>/dev/null
14223mkdir .libs 2>/dev/null
14224if test -d .libs; then
14225  lt_cv_objdir=.libs
14226else
14227  # MS-DOS does not allow filenames that begin with a dot.
14228  lt_cv_objdir=_libs
14229fi
14230rmdir .libs 2>/dev/null
14231fi
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14233$as_echo "$lt_cv_objdir" >&6; }
14234objdir=$lt_cv_objdir
14235
14236
14237
14238
14239
14240cat >>confdefs.h <<_ACEOF
14241#define LT_OBJDIR "$lt_cv_objdir/"
14242_ACEOF
14243
14244
14245
14246
14247case $host_os in
14248aix3*)
14249  # AIX sometimes has problems with the GCC collect2 program.  For some
14250  # reason, if we set the COLLECT_NAMES environment variable, the problems
14251  # vanish in a puff of smoke.
14252  if test "X${COLLECT_NAMES+set}" != Xset; then
14253    COLLECT_NAMES=
14254    export COLLECT_NAMES
14255  fi
14256  ;;
14257esac
14258
14259# Global variables:
14260ofile=libtool
14261can_build_shared=yes
14262
14263# All known linkers require a `.a' archive for static linking (except MSVC,
14264# which needs '.lib').
14265libext=a
14266
14267with_gnu_ld="$lt_cv_prog_gnu_ld"
14268
14269old_CC="$CC"
14270old_CFLAGS="$CFLAGS"
14271
14272# Set sane defaults for various variables
14273test -z "$CC" && CC=cc
14274test -z "$LTCC" && LTCC=$CC
14275test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14276test -z "$LD" && LD=ld
14277test -z "$ac_objext" && ac_objext=o
14278
14279for cc_temp in $compiler""; do
14280  case $cc_temp in
14281    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14282    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14283    \-*) ;;
14284    *) break;;
14285  esac
14286done
14287cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14288
14289
14290# Only perform the check for file, if the check method requires it
14291test -z "$MAGIC_CMD" && MAGIC_CMD=file
14292case $deplibs_check_method in
14293file_magic*)
14294  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14296$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14297if ${lt_cv_path_MAGIC_CMD+:} false; then :
14298  $as_echo_n "(cached) " >&6
14299else
14300  case $MAGIC_CMD in
14301[\\/*] |  ?:[\\/]*)
14302  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14303  ;;
14304*)
14305  lt_save_MAGIC_CMD="$MAGIC_CMD"
14306  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14307  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14308  for ac_dir in $ac_dummy; do
14309    IFS="$lt_save_ifs"
14310    test -z "$ac_dir" && ac_dir=.
14311    if test -f $ac_dir/${ac_tool_prefix}file; then
14312      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14313      if test -n "$file_magic_test_file"; then
14314	case $deplibs_check_method in
14315	"file_magic "*)
14316	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14317	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14318	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14319	    $EGREP "$file_magic_regex" > /dev/null; then
14320	    :
14321	  else
14322	    cat <<_LT_EOF 1>&2
14323
14324*** Warning: the command libtool uses to detect shared libraries,
14325*** $file_magic_cmd, produces output that libtool cannot recognize.
14326*** The result is that libtool may fail to recognize shared libraries
14327*** as such.  This will affect the creation of libtool libraries that
14328*** depend on shared libraries, but programs linked with such libtool
14329*** libraries will work regardless of this problem.  Nevertheless, you
14330*** may want to report the problem to your system manager and/or to
14331*** bug-libtool@gnu.org
14332
14333_LT_EOF
14334	  fi ;;
14335	esac
14336      fi
14337      break
14338    fi
14339  done
14340  IFS="$lt_save_ifs"
14341  MAGIC_CMD="$lt_save_MAGIC_CMD"
14342  ;;
14343esac
14344fi
14345
14346MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14347if test -n "$MAGIC_CMD"; then
14348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14349$as_echo "$MAGIC_CMD" >&6; }
14350else
14351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352$as_echo "no" >&6; }
14353fi
14354
14355
14356
14357
14358
14359if test -z "$lt_cv_path_MAGIC_CMD"; then
14360  if test -n "$ac_tool_prefix"; then
14361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14362$as_echo_n "checking for file... " >&6; }
14363if ${lt_cv_path_MAGIC_CMD+:} false; then :
14364  $as_echo_n "(cached) " >&6
14365else
14366  case $MAGIC_CMD in
14367[\\/*] |  ?:[\\/]*)
14368  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14369  ;;
14370*)
14371  lt_save_MAGIC_CMD="$MAGIC_CMD"
14372  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14373  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14374  for ac_dir in $ac_dummy; do
14375    IFS="$lt_save_ifs"
14376    test -z "$ac_dir" && ac_dir=.
14377    if test -f $ac_dir/file; then
14378      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14379      if test -n "$file_magic_test_file"; then
14380	case $deplibs_check_method in
14381	"file_magic "*)
14382	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14383	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14384	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14385	    $EGREP "$file_magic_regex" > /dev/null; then
14386	    :
14387	  else
14388	    cat <<_LT_EOF 1>&2
14389
14390*** Warning: the command libtool uses to detect shared libraries,
14391*** $file_magic_cmd, produces output that libtool cannot recognize.
14392*** The result is that libtool may fail to recognize shared libraries
14393*** as such.  This will affect the creation of libtool libraries that
14394*** depend on shared libraries, but programs linked with such libtool
14395*** libraries will work regardless of this problem.  Nevertheless, you
14396*** may want to report the problem to your system manager and/or to
14397*** bug-libtool@gnu.org
14398
14399_LT_EOF
14400	  fi ;;
14401	esac
14402      fi
14403      break
14404    fi
14405  done
14406  IFS="$lt_save_ifs"
14407  MAGIC_CMD="$lt_save_MAGIC_CMD"
14408  ;;
14409esac
14410fi
14411
14412MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14413if test -n "$MAGIC_CMD"; then
14414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14415$as_echo "$MAGIC_CMD" >&6; }
14416else
14417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418$as_echo "no" >&6; }
14419fi
14420
14421
14422  else
14423    MAGIC_CMD=:
14424  fi
14425fi
14426
14427  fi
14428  ;;
14429esac
14430
14431# Use C for the default configuration in the libtool script
14432
14433lt_save_CC="$CC"
14434ac_ext=c
14435ac_cpp='$CPP $CPPFLAGS'
14436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439
14440
14441# Source file extension for C test sources.
14442ac_ext=c
14443
14444# Object file extension for compiled C test sources.
14445objext=o
14446objext=$objext
14447
14448# Code to be used in simple compile tests
14449lt_simple_compile_test_code="int some_variable = 0;"
14450
14451# Code to be used in simple link tests
14452lt_simple_link_test_code='int main(){return(0);}'
14453
14454
14455
14456
14457
14458
14459
14460# If no C compiler was specified, use CC.
14461LTCC=${LTCC-"$CC"}
14462
14463# If no C compiler flags were specified, use CFLAGS.
14464LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14465
14466# Allow CC to be a program name with arguments.
14467compiler=$CC
14468
14469# Save the default compiler, since it gets overwritten when the other
14470# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14471compiler_DEFAULT=$CC
14472
14473# save warnings/boilerplate of simple test code
14474ac_outfile=conftest.$ac_objext
14475echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477_lt_compiler_boilerplate=`cat conftest.err`
14478$RM conftest*
14479
14480ac_outfile=conftest.$ac_objext
14481echo "$lt_simple_link_test_code" >conftest.$ac_ext
14482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14483_lt_linker_boilerplate=`cat conftest.err`
14484$RM -r conftest*
14485
14486
14487## CAVEAT EMPTOR:
14488## There is no encapsulation within the following macros, do not change
14489## the running order or otherwise move them around unless you know exactly
14490## what you are doing...
14491if test -n "$compiler"; then
14492
14493lt_prog_compiler_no_builtin_flag=
14494
14495if test "$GCC" = yes; then
14496  case $cc_basename in
14497  nvcc*)
14498    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14499  *)
14500    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14501  esac
14502
14503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14504$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14505if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14506  $as_echo_n "(cached) " >&6
14507else
14508  lt_cv_prog_compiler_rtti_exceptions=no
14509   ac_outfile=conftest.$ac_objext
14510   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14511   lt_compiler_flag="-fno-rtti -fno-exceptions"
14512   # Insert the option either (1) after the last *FLAGS variable, or
14513   # (2) before a word containing "conftest.", or (3) at the end.
14514   # Note that $ac_compile itself does not contain backslashes and begins
14515   # with a dollar sign (not a hyphen), so the echo should work correctly.
14516   # The option is referenced via a variable to avoid confusing sed.
14517   lt_compile=`echo "$ac_compile" | $SED \
14518   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14519   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14520   -e 's:$: $lt_compiler_flag:'`
14521   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14522   (eval "$lt_compile" 2>conftest.err)
14523   ac_status=$?
14524   cat conftest.err >&5
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   if (exit $ac_status) && test -s "$ac_outfile"; then
14527     # The compiler can only warn and ignore the option if not recognized
14528     # So say no if there are warnings other than the usual output.
14529     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14530     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14531     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14532       lt_cv_prog_compiler_rtti_exceptions=yes
14533     fi
14534   fi
14535   $RM conftest*
14536
14537fi
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14539$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14540
14541if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14542    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14543else
14544    :
14545fi
14546
14547fi
14548
14549
14550
14551
14552
14553
14554  lt_prog_compiler_wl=
14555lt_prog_compiler_pic=
14556lt_prog_compiler_static=
14557
14558
14559  if test "$GCC" = yes; then
14560    lt_prog_compiler_wl='-Wl,'
14561    lt_prog_compiler_static='-static'
14562
14563    case $host_os in
14564      aix*)
14565      # All AIX code is PIC.
14566      if test "$host_cpu" = ia64; then
14567	# AIX 5 now supports IA64 processor
14568	lt_prog_compiler_static='-Bstatic'
14569      fi
14570      ;;
14571
14572    amigaos*)
14573      case $host_cpu in
14574      powerpc)
14575            # see comment about AmigaOS4 .so support
14576            lt_prog_compiler_pic='-fPIC'
14577        ;;
14578      m68k)
14579            # FIXME: we need at least 68020 code to build shared libraries, but
14580            # adding the `-m68020' flag to GCC prevents building anything better,
14581            # like `-m68040'.
14582            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14583        ;;
14584      esac
14585      ;;
14586
14587    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14588      # PIC is the default for these OSes.
14589      ;;
14590
14591    mingw* | cygwin* | pw32* | os2* | cegcc*)
14592      # This hack is so that the source file can tell whether it is being
14593      # built for inclusion in a dll (and should export symbols for example).
14594      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14595      # (--disable-auto-import) libraries
14596      lt_prog_compiler_pic='-DDLL_EXPORT'
14597      ;;
14598
14599    darwin* | rhapsody*)
14600      # PIC is the default on this platform
14601      # Common symbols not allowed in MH_DYLIB files
14602      lt_prog_compiler_pic='-fno-common'
14603      ;;
14604
14605    haiku*)
14606      # PIC is the default for Haiku.
14607      # The "-static" flag exists, but is broken.
14608      lt_prog_compiler_static=
14609      ;;
14610
14611    hpux*)
14612      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14613      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14614      # sets the default TLS model and affects inlining.
14615      case $host_cpu in
14616      hppa*64*)
14617	# +Z the default
14618	;;
14619      *)
14620	lt_prog_compiler_pic='-fPIC'
14621	;;
14622      esac
14623      ;;
14624
14625    interix[3-9]*)
14626      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14627      # Instead, we relocate shared libraries at runtime.
14628      ;;
14629
14630    msdosdjgpp*)
14631      # Just because we use GCC doesn't mean we suddenly get shared libraries
14632      # on systems that don't support them.
14633      lt_prog_compiler_can_build_shared=no
14634      enable_shared=no
14635      ;;
14636
14637    *nto* | *qnx*)
14638      # QNX uses GNU C++, but need to define -shared option too, otherwise
14639      # it will coredump.
14640      lt_prog_compiler_pic='-fPIC -shared'
14641      ;;
14642
14643    sysv4*MP*)
14644      if test -d /usr/nec; then
14645	lt_prog_compiler_pic=-Kconform_pic
14646      fi
14647      ;;
14648
14649    *)
14650      lt_prog_compiler_pic='-fPIC'
14651      ;;
14652    esac
14653
14654    case $cc_basename in
14655    nvcc*) # Cuda Compiler Driver 2.2
14656      lt_prog_compiler_wl='-Xlinker '
14657      if test -n "$lt_prog_compiler_pic"; then
14658        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14659      fi
14660      ;;
14661    esac
14662  else
14663    # PORTME Check for flag to pass linker flags through the system compiler.
14664    case $host_os in
14665    aix*)
14666      lt_prog_compiler_wl='-Wl,'
14667      if test "$host_cpu" = ia64; then
14668	# AIX 5 now supports IA64 processor
14669	lt_prog_compiler_static='-Bstatic'
14670      else
14671	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14672      fi
14673      ;;
14674
14675    mingw* | cygwin* | pw32* | os2* | cegcc*)
14676      # This hack is so that the source file can tell whether it is being
14677      # built for inclusion in a dll (and should export symbols for example).
14678      lt_prog_compiler_pic='-DDLL_EXPORT'
14679      ;;
14680
14681    hpux9* | hpux10* | hpux11*)
14682      lt_prog_compiler_wl='-Wl,'
14683      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14684      # not for PA HP-UX.
14685      case $host_cpu in
14686      hppa*64*|ia64*)
14687	# +Z the default
14688	;;
14689      *)
14690	lt_prog_compiler_pic='+Z'
14691	;;
14692      esac
14693      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14694      lt_prog_compiler_static='${wl}-a ${wl}archive'
14695      ;;
14696
14697    irix5* | irix6* | nonstopux*)
14698      lt_prog_compiler_wl='-Wl,'
14699      # PIC (with -KPIC) is the default.
14700      lt_prog_compiler_static='-non_shared'
14701      ;;
14702
14703    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14704      case $cc_basename in
14705      # old Intel for x86_64 which still supported -KPIC.
14706      ecc*)
14707	lt_prog_compiler_wl='-Wl,'
14708	lt_prog_compiler_pic='-KPIC'
14709	lt_prog_compiler_static='-static'
14710        ;;
14711      # icc used to be incompatible with GCC.
14712      # ICC 10 doesn't accept -KPIC any more.
14713      icc* | ifort*)
14714	lt_prog_compiler_wl='-Wl,'
14715	lt_prog_compiler_pic='-fPIC'
14716	lt_prog_compiler_static='-static'
14717        ;;
14718      # Lahey Fortran 8.1.
14719      lf95*)
14720	lt_prog_compiler_wl='-Wl,'
14721	lt_prog_compiler_pic='--shared'
14722	lt_prog_compiler_static='--static'
14723	;;
14724      nagfor*)
14725	# NAG Fortran compiler
14726	lt_prog_compiler_wl='-Wl,-Wl,,'
14727	lt_prog_compiler_pic='-PIC'
14728	lt_prog_compiler_static='-Bstatic'
14729	;;
14730      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14731        # Portland Group compilers (*not* the Pentium gcc compiler,
14732	# which looks to be a dead project)
14733	lt_prog_compiler_wl='-Wl,'
14734	lt_prog_compiler_pic='-fpic'
14735	lt_prog_compiler_static='-Bstatic'
14736        ;;
14737      ccc*)
14738        lt_prog_compiler_wl='-Wl,'
14739        # All Alpha code is PIC.
14740        lt_prog_compiler_static='-non_shared'
14741        ;;
14742      xl* | bgxl* | bgf* | mpixl*)
14743	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14744	lt_prog_compiler_wl='-Wl,'
14745	lt_prog_compiler_pic='-qpic'
14746	lt_prog_compiler_static='-qstaticlink'
14747	;;
14748      *)
14749	case `$CC -V 2>&1 | sed 5q` in
14750	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14751	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14752	  lt_prog_compiler_pic='-KPIC'
14753	  lt_prog_compiler_static='-Bstatic'
14754	  lt_prog_compiler_wl=''
14755	  ;;
14756	*Sun\ F* | *Sun*Fortran*)
14757	  lt_prog_compiler_pic='-KPIC'
14758	  lt_prog_compiler_static='-Bstatic'
14759	  lt_prog_compiler_wl='-Qoption ld '
14760	  ;;
14761	*Sun\ C*)
14762	  # Sun C 5.9
14763	  lt_prog_compiler_pic='-KPIC'
14764	  lt_prog_compiler_static='-Bstatic'
14765	  lt_prog_compiler_wl='-Wl,'
14766	  ;;
14767        *Intel*\ [CF]*Compiler*)
14768	  lt_prog_compiler_wl='-Wl,'
14769	  lt_prog_compiler_pic='-fPIC'
14770	  lt_prog_compiler_static='-static'
14771	  ;;
14772	*Portland\ Group*)
14773	  lt_prog_compiler_wl='-Wl,'
14774	  lt_prog_compiler_pic='-fpic'
14775	  lt_prog_compiler_static='-Bstatic'
14776	  ;;
14777	esac
14778	;;
14779      esac
14780      ;;
14781
14782    newsos6)
14783      lt_prog_compiler_pic='-KPIC'
14784      lt_prog_compiler_static='-Bstatic'
14785      ;;
14786
14787    *nto* | *qnx*)
14788      # QNX uses GNU C++, but need to define -shared option too, otherwise
14789      # it will coredump.
14790      lt_prog_compiler_pic='-fPIC -shared'
14791      ;;
14792
14793    osf3* | osf4* | osf5*)
14794      lt_prog_compiler_wl='-Wl,'
14795      # All OSF/1 code is PIC.
14796      lt_prog_compiler_static='-non_shared'
14797      ;;
14798
14799    rdos*)
14800      lt_prog_compiler_static='-non_shared'
14801      ;;
14802
14803    solaris*)
14804      lt_prog_compiler_pic='-KPIC'
14805      lt_prog_compiler_static='-Bstatic'
14806      case $cc_basename in
14807      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14808	lt_prog_compiler_wl='-Qoption ld ';;
14809      *)
14810	lt_prog_compiler_wl='-Wl,';;
14811      esac
14812      ;;
14813
14814    sunos4*)
14815      lt_prog_compiler_wl='-Qoption ld '
14816      lt_prog_compiler_pic='-PIC'
14817      lt_prog_compiler_static='-Bstatic'
14818      ;;
14819
14820    sysv4 | sysv4.2uw2* | sysv4.3*)
14821      lt_prog_compiler_wl='-Wl,'
14822      lt_prog_compiler_pic='-KPIC'
14823      lt_prog_compiler_static='-Bstatic'
14824      ;;
14825
14826    sysv4*MP*)
14827      if test -d /usr/nec ;then
14828	lt_prog_compiler_pic='-Kconform_pic'
14829	lt_prog_compiler_static='-Bstatic'
14830      fi
14831      ;;
14832
14833    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14834      lt_prog_compiler_wl='-Wl,'
14835      lt_prog_compiler_pic='-KPIC'
14836      lt_prog_compiler_static='-Bstatic'
14837      ;;
14838
14839    unicos*)
14840      lt_prog_compiler_wl='-Wl,'
14841      lt_prog_compiler_can_build_shared=no
14842      ;;
14843
14844    uts4*)
14845      lt_prog_compiler_pic='-pic'
14846      lt_prog_compiler_static='-Bstatic'
14847      ;;
14848
14849    *)
14850      lt_prog_compiler_can_build_shared=no
14851      ;;
14852    esac
14853  fi
14854
14855case $host_os in
14856  # For platforms which do not support PIC, -DPIC is meaningless:
14857  *djgpp*)
14858    lt_prog_compiler_pic=
14859    ;;
14860  *)
14861    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14862    ;;
14863esac
14864
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14866$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14867if ${lt_cv_prog_compiler_pic+:} false; then :
14868  $as_echo_n "(cached) " >&6
14869else
14870  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14871fi
14872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14873$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14874lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14875
14876#
14877# Check to make sure the PIC flag actually works.
14878#
14879if test -n "$lt_prog_compiler_pic"; then
14880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14881$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14882if ${lt_cv_prog_compiler_pic_works+:} false; then :
14883  $as_echo_n "(cached) " >&6
14884else
14885  lt_cv_prog_compiler_pic_works=no
14886   ac_outfile=conftest.$ac_objext
14887   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14889   # Insert the option either (1) after the last *FLAGS variable, or
14890   # (2) before a word containing "conftest.", or (3) at the end.
14891   # Note that $ac_compile itself does not contain backslashes and begins
14892   # with a dollar sign (not a hyphen), so the echo should work correctly.
14893   # The option is referenced via a variable to avoid confusing sed.
14894   lt_compile=`echo "$ac_compile" | $SED \
14895   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897   -e 's:$: $lt_compiler_flag:'`
14898   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14899   (eval "$lt_compile" 2>conftest.err)
14900   ac_status=$?
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   if (exit $ac_status) && test -s "$ac_outfile"; then
14904     # The compiler can only warn and ignore the option if not recognized
14905     # So say no if there are warnings other than the usual output.
14906     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14907     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14908     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14909       lt_cv_prog_compiler_pic_works=yes
14910     fi
14911   fi
14912   $RM conftest*
14913
14914fi
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14916$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14917
14918if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14919    case $lt_prog_compiler_pic in
14920     "" | " "*) ;;
14921     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14922     esac
14923else
14924    lt_prog_compiler_pic=
14925     lt_prog_compiler_can_build_shared=no
14926fi
14927
14928fi
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940#
14941# Check to make sure the static flag actually works.
14942#
14943wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14945$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14946if ${lt_cv_prog_compiler_static_works+:} false; then :
14947  $as_echo_n "(cached) " >&6
14948else
14949  lt_cv_prog_compiler_static_works=no
14950   save_LDFLAGS="$LDFLAGS"
14951   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14952   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14953   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14954     # The linker can only warn and ignore the option if not recognized
14955     # So say no if there are warnings
14956     if test -s conftest.err; then
14957       # Append any errors to the config.log.
14958       cat conftest.err 1>&5
14959       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14960       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14961       if diff conftest.exp conftest.er2 >/dev/null; then
14962         lt_cv_prog_compiler_static_works=yes
14963       fi
14964     else
14965       lt_cv_prog_compiler_static_works=yes
14966     fi
14967   fi
14968   $RM -r conftest*
14969   LDFLAGS="$save_LDFLAGS"
14970
14971fi
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14973$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14974
14975if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14976    :
14977else
14978    lt_prog_compiler_static=
14979fi
14980
14981
14982
14983
14984
14985
14986
14987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14988$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14989if ${lt_cv_prog_compiler_c_o+:} false; then :
14990  $as_echo_n "(cached) " >&6
14991else
14992  lt_cv_prog_compiler_c_o=no
14993   $RM -r conftest 2>/dev/null
14994   mkdir conftest
14995   cd conftest
14996   mkdir out
14997   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14998
14999   lt_compiler_flag="-o out/conftest2.$ac_objext"
15000   # Insert the option either (1) after the last *FLAGS variable, or
15001   # (2) before a word containing "conftest.", or (3) at the end.
15002   # Note that $ac_compile itself does not contain backslashes and begins
15003   # with a dollar sign (not a hyphen), so the echo should work correctly.
15004   lt_compile=`echo "$ac_compile" | $SED \
15005   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15007   -e 's:$: $lt_compiler_flag:'`
15008   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15009   (eval "$lt_compile" 2>out/conftest.err)
15010   ac_status=$?
15011   cat out/conftest.err >&5
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15014   then
15015     # The compiler can only warn and ignore the option if not recognized
15016     # So say no if there are warnings
15017     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15018     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15019     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15020       lt_cv_prog_compiler_c_o=yes
15021     fi
15022   fi
15023   chmod u+w . 2>&5
15024   $RM conftest*
15025   # SGI C++ compiler will create directory out/ii_files/ for
15026   # template instantiation
15027   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15028   $RM out/* && rmdir out
15029   cd ..
15030   $RM -r conftest
15031   $RM conftest*
15032
15033fi
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15035$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15036
15037
15038
15039
15040
15041
15042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15044if ${lt_cv_prog_compiler_c_o+:} false; then :
15045  $as_echo_n "(cached) " >&6
15046else
15047  lt_cv_prog_compiler_c_o=no
15048   $RM -r conftest 2>/dev/null
15049   mkdir conftest
15050   cd conftest
15051   mkdir out
15052   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053
15054   lt_compiler_flag="-o out/conftest2.$ac_objext"
15055   # Insert the option either (1) after the last *FLAGS variable, or
15056   # (2) before a word containing "conftest.", or (3) at the end.
15057   # Note that $ac_compile itself does not contain backslashes and begins
15058   # with a dollar sign (not a hyphen), so the echo should work correctly.
15059   lt_compile=`echo "$ac_compile" | $SED \
15060   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15062   -e 's:$: $lt_compiler_flag:'`
15063   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15064   (eval "$lt_compile" 2>out/conftest.err)
15065   ac_status=$?
15066   cat out/conftest.err >&5
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15069   then
15070     # The compiler can only warn and ignore the option if not recognized
15071     # So say no if there are warnings
15072     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15073     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15074     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15075       lt_cv_prog_compiler_c_o=yes
15076     fi
15077   fi
15078   chmod u+w . 2>&5
15079   $RM conftest*
15080   # SGI C++ compiler will create directory out/ii_files/ for
15081   # template instantiation
15082   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15083   $RM out/* && rmdir out
15084   cd ..
15085   $RM -r conftest
15086   $RM conftest*
15087
15088fi
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15090$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15091
15092
15093
15094
15095hard_links="nottested"
15096if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15097  # do not overwrite the value of need_locks provided by the user
15098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15099$as_echo_n "checking if we can lock with hard links... " >&6; }
15100  hard_links=yes
15101  $RM conftest*
15102  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15103  touch conftest.a
15104  ln conftest.a conftest.b 2>&5 || hard_links=no
15105  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15107$as_echo "$hard_links" >&6; }
15108  if test "$hard_links" = no; then
15109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15110$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15111    need_locks=warn
15112  fi
15113else
15114  need_locks=no
15115fi
15116
15117
15118
15119
15120
15121
15122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15123$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15124
15125  runpath_var=
15126  allow_undefined_flag=
15127  always_export_symbols=no
15128  archive_cmds=
15129  archive_expsym_cmds=
15130  compiler_needs_object=no
15131  enable_shared_with_static_runtimes=no
15132  export_dynamic_flag_spec=
15133  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15134  hardcode_automatic=no
15135  hardcode_direct=no
15136  hardcode_direct_absolute=no
15137  hardcode_libdir_flag_spec=
15138  hardcode_libdir_separator=
15139  hardcode_minus_L=no
15140  hardcode_shlibpath_var=unsupported
15141  inherit_rpath=no
15142  link_all_deplibs=unknown
15143  module_cmds=
15144  module_expsym_cmds=
15145  old_archive_from_new_cmds=
15146  old_archive_from_expsyms_cmds=
15147  thread_safe_flag_spec=
15148  whole_archive_flag_spec=
15149  # include_expsyms should be a list of space-separated symbols to be *always*
15150  # included in the symbol list
15151  include_expsyms=
15152  # exclude_expsyms can be an extended regexp of symbols to exclude
15153  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15154  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15155  # as well as any symbol that contains `d'.
15156  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15157  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15158  # platforms (ab)use it in PIC code, but their linkers get confused if
15159  # the symbol is explicitly referenced.  Since portable code cannot
15160  # rely on this symbol name, it's probably fine to never include it in
15161  # preloaded symbol tables.
15162  # Exclude shared library initialization/finalization symbols.
15163  extract_expsyms_cmds=
15164
15165  case $host_os in
15166  cygwin* | mingw* | pw32* | cegcc*)
15167    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15168    # When not using gcc, we currently assume that we are using
15169    # Microsoft Visual C++.
15170    if test "$GCC" != yes; then
15171      with_gnu_ld=no
15172    fi
15173    ;;
15174  interix*)
15175    # we just hope/assume this is gcc and not c89 (= MSVC++)
15176    with_gnu_ld=yes
15177    ;;
15178  openbsd*)
15179    with_gnu_ld=no
15180    ;;
15181  esac
15182
15183  ld_shlibs=yes
15184
15185  # On some targets, GNU ld is compatible enough with the native linker
15186  # that we're better off using the native interface for both.
15187  lt_use_gnu_ld_interface=no
15188  if test "$with_gnu_ld" = yes; then
15189    case $host_os in
15190      aix*)
15191	# The AIX port of GNU ld has always aspired to compatibility
15192	# with the native linker.  However, as the warning in the GNU ld
15193	# block says, versions before 2.19.5* couldn't really create working
15194	# shared libraries, regardless of the interface used.
15195	case `$LD -v 2>&1` in
15196	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15197	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15198	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15199	  *)
15200	    lt_use_gnu_ld_interface=yes
15201	    ;;
15202	esac
15203	;;
15204      *)
15205	lt_use_gnu_ld_interface=yes
15206	;;
15207    esac
15208  fi
15209
15210  if test "$lt_use_gnu_ld_interface" = yes; then
15211    # If archive_cmds runs LD, not CC, wlarc should be empty
15212    wlarc='${wl}'
15213
15214    # Set some defaults for GNU ld with shared library support. These
15215    # are reset later if shared libraries are not supported. Putting them
15216    # here allows them to be overridden if necessary.
15217    runpath_var=LD_RUN_PATH
15218    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15219    export_dynamic_flag_spec='${wl}--export-dynamic'
15220    # ancient GNU ld didn't support --whole-archive et. al.
15221    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15222      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15223    else
15224      whole_archive_flag_spec=
15225    fi
15226    supports_anon_versioning=no
15227    case `$LD -v 2>&1` in
15228      *GNU\ gold*) supports_anon_versioning=yes ;;
15229      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15230      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15231      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15232      *\ 2.11.*) ;; # other 2.11 versions
15233      *) supports_anon_versioning=yes ;;
15234    esac
15235
15236    # See if GNU ld supports shared libraries.
15237    case $host_os in
15238    aix[3-9]*)
15239      # On AIX/PPC, the GNU linker is very broken
15240      if test "$host_cpu" != ia64; then
15241	ld_shlibs=no
15242	cat <<_LT_EOF 1>&2
15243
15244*** Warning: the GNU linker, at least up to release 2.19, is reported
15245*** to be unable to reliably create shared libraries on AIX.
15246*** Therefore, libtool is disabling shared libraries support.  If you
15247*** really care for shared libraries, you may want to install binutils
15248*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15249*** You will then need to restart the configuration process.
15250
15251_LT_EOF
15252      fi
15253      ;;
15254
15255    amigaos*)
15256      case $host_cpu in
15257      powerpc)
15258            # see comment about AmigaOS4 .so support
15259            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15260            archive_expsym_cmds=''
15261        ;;
15262      m68k)
15263            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)'
15264            hardcode_libdir_flag_spec='-L$libdir'
15265            hardcode_minus_L=yes
15266        ;;
15267      esac
15268      ;;
15269
15270    beos*)
15271      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15272	allow_undefined_flag=unsupported
15273	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15274	# support --undefined.  This deserves some investigation.  FIXME
15275	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276      else
15277	ld_shlibs=no
15278      fi
15279      ;;
15280
15281    cygwin* | mingw* | pw32* | cegcc*)
15282      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15283      # as there is no search path for DLLs.
15284      hardcode_libdir_flag_spec='-L$libdir'
15285      export_dynamic_flag_spec='${wl}--export-all-symbols'
15286      allow_undefined_flag=unsupported
15287      always_export_symbols=no
15288      enable_shared_with_static_runtimes=yes
15289      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'
15290      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15291
15292      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15293        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15294	# If the export-symbols file already is a .def file (1st line
15295	# is EXPORTS), use it as is; otherwise, prepend...
15296	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15297	  cp $export_symbols $output_objdir/$soname.def;
15298	else
15299	  echo EXPORTS > $output_objdir/$soname.def;
15300	  cat $export_symbols >> $output_objdir/$soname.def;
15301	fi~
15302	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15303      else
15304	ld_shlibs=no
15305      fi
15306      ;;
15307
15308    haiku*)
15309      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15310      link_all_deplibs=yes
15311      ;;
15312
15313    interix[3-9]*)
15314      hardcode_direct=no
15315      hardcode_shlibpath_var=no
15316      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15317      export_dynamic_flag_spec='${wl}-E'
15318      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15319      # Instead, shared libraries are loaded at an image base (0x10000000 by
15320      # default) and relocated if they conflict, which is a slow very memory
15321      # consuming and fragmenting process.  To avoid this, we pick a random,
15322      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15323      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15324      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15325      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'
15326      ;;
15327
15328    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15329      tmp_diet=no
15330      if test "$host_os" = linux-dietlibc; then
15331	case $cc_basename in
15332	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15333	esac
15334      fi
15335      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15336	 && test "$tmp_diet" = no
15337      then
15338	tmp_addflag=' $pic_flag'
15339	tmp_sharedflag='-shared'
15340	case $cc_basename,$host_cpu in
15341        pgcc*)				# Portland Group C compiler
15342	  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'
15343	  tmp_addflag=' $pic_flag'
15344	  ;;
15345	pgf77* | pgf90* | pgf95* | pgfortran*)
15346					# Portland Group f77 and f90 compilers
15347	  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'
15348	  tmp_addflag=' $pic_flag -Mnomain' ;;
15349	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15350	  tmp_addflag=' -i_dynamic' ;;
15351	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15352	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15353	ifc* | ifort*)			# Intel Fortran compiler
15354	  tmp_addflag=' -nofor_main' ;;
15355	lf95*)				# Lahey Fortran 8.1
15356	  whole_archive_flag_spec=
15357	  tmp_sharedflag='--shared' ;;
15358	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15359	  tmp_sharedflag='-qmkshrobj'
15360	  tmp_addflag= ;;
15361	nvcc*)	# Cuda Compiler Driver 2.2
15362	  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'
15363	  compiler_needs_object=yes
15364	  ;;
15365	esac
15366	case `$CC -V 2>&1 | sed 5q` in
15367	*Sun\ C*)			# Sun C 5.9
15368	  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'
15369	  compiler_needs_object=yes
15370	  tmp_sharedflag='-G' ;;
15371	*Sun\ F*)			# Sun Fortran 8.3
15372	  tmp_sharedflag='-G' ;;
15373	esac
15374	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15375
15376        if test "x$supports_anon_versioning" = xyes; then
15377          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15378	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15379	    echo "local: *; };" >> $output_objdir/$libname.ver~
15380	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15381        fi
15382
15383	case $cc_basename in
15384	xlf* | bgf* | bgxlf* | mpixlf*)
15385	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15386	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15387	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15388	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15389	  if test "x$supports_anon_versioning" = xyes; then
15390	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15391	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15392	      echo "local: *; };" >> $output_objdir/$libname.ver~
15393	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15394	  fi
15395	  ;;
15396	esac
15397      else
15398        ld_shlibs=no
15399      fi
15400      ;;
15401
15402    netbsd*)
15403      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15404	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15405	wlarc=
15406      else
15407	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15409      fi
15410      ;;
15411
15412    solaris*)
15413      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15414	ld_shlibs=no
15415	cat <<_LT_EOF 1>&2
15416
15417*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15418*** create shared libraries on Solaris systems.  Therefore, libtool
15419*** is disabling shared libraries support.  We urge you to upgrade GNU
15420*** binutils to release 2.9.1 or newer.  Another option is to modify
15421*** your PATH or compiler configuration so that the native linker is
15422*** used, and then restart.
15423
15424_LT_EOF
15425      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15426	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428      else
15429	ld_shlibs=no
15430      fi
15431      ;;
15432
15433    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15434      case `$LD -v 2>&1` in
15435        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15436	ld_shlibs=no
15437	cat <<_LT_EOF 1>&2
15438
15439*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15440*** reliably create shared libraries on SCO systems.  Therefore, libtool
15441*** is disabling shared libraries support.  We urge you to upgrade GNU
15442*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15443*** your PATH or compiler configuration so that the native linker is
15444*** used, and then restart.
15445
15446_LT_EOF
15447	;;
15448	*)
15449	  # For security reasons, it is highly recommended that you always
15450	  # use absolute paths for naming shared libraries, and exclude the
15451	  # DT_RUNPATH tag from executables and libraries.  But doing so
15452	  # requires that you compile everything twice, which is a pain.
15453	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15454	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15455	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15456	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15457	  else
15458	    ld_shlibs=no
15459	  fi
15460	;;
15461      esac
15462      ;;
15463
15464    sunos4*)
15465      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15466      wlarc=
15467      hardcode_direct=yes
15468      hardcode_shlibpath_var=no
15469      ;;
15470
15471    *)
15472      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15473	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15475      else
15476	ld_shlibs=no
15477      fi
15478      ;;
15479    esac
15480
15481    if test "$ld_shlibs" = no; then
15482      runpath_var=
15483      hardcode_libdir_flag_spec=
15484      export_dynamic_flag_spec=
15485      whole_archive_flag_spec=
15486    fi
15487  else
15488    # PORTME fill in a description of your system's linker (not GNU ld)
15489    case $host_os in
15490    aix3*)
15491      allow_undefined_flag=unsupported
15492      always_export_symbols=yes
15493      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'
15494      # Note: this linker hardcodes the directories in LIBPATH if there
15495      # are no directories specified by -L.
15496      hardcode_minus_L=yes
15497      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15498	# Neither direct hardcoding nor static linking is supported with a
15499	# broken collect2.
15500	hardcode_direct=unsupported
15501      fi
15502      ;;
15503
15504    aix[4-9]*)
15505      if test "$host_cpu" = ia64; then
15506	# On IA64, the linker does run time linking by default, so we don't
15507	# have to do anything special.
15508	aix_use_runtimelinking=no
15509	exp_sym_flag='-Bexport'
15510	no_entry_flag=""
15511      else
15512	# If we're using GNU nm, then we don't want the "-C" option.
15513	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15514	# Also, AIX nm treats weak defined symbols like other global
15515	# defined symbols, whereas GNU nm marks them as "W".
15516	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15517	  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'
15518	else
15519	  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'
15520	fi
15521	aix_use_runtimelinking=no
15522
15523	# Test if we are trying to use run time linking or normal
15524	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15525	# need to do runtime linking.
15526	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15527	  for ld_flag in $LDFLAGS; do
15528	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15529	    aix_use_runtimelinking=yes
15530	    break
15531	  fi
15532	  done
15533	  ;;
15534	esac
15535
15536	exp_sym_flag='-bexport'
15537	no_entry_flag='-bnoentry'
15538      fi
15539
15540      # When large executables or shared objects are built, AIX ld can
15541      # have problems creating the table of contents.  If linking a library
15542      # or program results in "error TOC overflow" add -mminimal-toc to
15543      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15544      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15545
15546      archive_cmds=''
15547      hardcode_direct=yes
15548      hardcode_direct_absolute=yes
15549      hardcode_libdir_separator=':'
15550      link_all_deplibs=yes
15551      file_list_spec='${wl}-f,'
15552
15553      if test "$GCC" = yes; then
15554	case $host_os in aix4.[012]|aix4.[012].*)
15555	# We only want to do this on AIX 4.2 and lower, the check
15556	# below for broken collect2 doesn't work under 4.3+
15557	  collect2name=`${CC} -print-prog-name=collect2`
15558	  if test -f "$collect2name" &&
15559	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15560	  then
15561	  # We have reworked collect2
15562	  :
15563	  else
15564	  # We have old collect2
15565	  hardcode_direct=unsupported
15566	  # It fails to find uninstalled libraries when the uninstalled
15567	  # path is not listed in the libpath.  Setting hardcode_minus_L
15568	  # to unsupported forces relinking
15569	  hardcode_minus_L=yes
15570	  hardcode_libdir_flag_spec='-L$libdir'
15571	  hardcode_libdir_separator=
15572	  fi
15573	  ;;
15574	esac
15575	shared_flag='-shared'
15576	if test "$aix_use_runtimelinking" = yes; then
15577	  shared_flag="$shared_flag "'${wl}-G'
15578	fi
15579      else
15580	# not using gcc
15581	if test "$host_cpu" = ia64; then
15582	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583	# chokes on -Wl,-G. The following line is correct:
15584	  shared_flag='-G'
15585	else
15586	  if test "$aix_use_runtimelinking" = yes; then
15587	    shared_flag='${wl}-G'
15588	  else
15589	    shared_flag='${wl}-bM:SRE'
15590	  fi
15591	fi
15592      fi
15593
15594      export_dynamic_flag_spec='${wl}-bexpall'
15595      # It seems that -bexpall does not export symbols beginning with
15596      # underscore (_), so it is better to generate a list of symbols to export.
15597      always_export_symbols=yes
15598      if test "$aix_use_runtimelinking" = yes; then
15599	# Warning - without using the other runtime loading flags (-brtl),
15600	# -berok will link without error, but may produce a broken library.
15601	allow_undefined_flag='-berok'
15602        # Determine the default libpath from the value encoded in an
15603        # empty executable.
15604        if test "${lt_cv_aix_libpath+set}" = set; then
15605  aix_libpath=$lt_cv_aix_libpath
15606else
15607  if ${lt_cv_aix_libpath_+:} false; then :
15608  $as_echo_n "(cached) " >&6
15609else
15610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611/* end confdefs.h.  */
15612
15613int
15614main ()
15615{
15616
15617  ;
15618  return 0;
15619}
15620_ACEOF
15621if ac_fn_c_try_link "$LINENO"; then :
15622
15623  lt_aix_libpath_sed='
15624      /Import File Strings/,/^$/ {
15625	  /^0/ {
15626	      s/^0  *\([^ ]*\) *$/\1/
15627	      p
15628	  }
15629      }'
15630  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15631  # Check for a 64-bit object if we didn't find anything.
15632  if test -z "$lt_cv_aix_libpath_"; then
15633    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15634  fi
15635fi
15636rm -f core conftest.err conftest.$ac_objext \
15637    conftest$ac_exeext conftest.$ac_ext
15638  if test -z "$lt_cv_aix_libpath_"; then
15639    lt_cv_aix_libpath_="/usr/lib:/lib"
15640  fi
15641
15642fi
15643
15644  aix_libpath=$lt_cv_aix_libpath_
15645fi
15646
15647        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15648        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"
15649      else
15650	if test "$host_cpu" = ia64; then
15651	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15652	  allow_undefined_flag="-z nodefs"
15653	  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"
15654	else
15655	 # Determine the default libpath from the value encoded in an
15656	 # empty executable.
15657	 if test "${lt_cv_aix_libpath+set}" = set; then
15658  aix_libpath=$lt_cv_aix_libpath
15659else
15660  if ${lt_cv_aix_libpath_+:} false; then :
15661  $as_echo_n "(cached) " >&6
15662else
15663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664/* end confdefs.h.  */
15665
15666int
15667main ()
15668{
15669
15670  ;
15671  return 0;
15672}
15673_ACEOF
15674if ac_fn_c_try_link "$LINENO"; then :
15675
15676  lt_aix_libpath_sed='
15677      /Import File Strings/,/^$/ {
15678	  /^0/ {
15679	      s/^0  *\([^ ]*\) *$/\1/
15680	      p
15681	  }
15682      }'
15683  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15684  # Check for a 64-bit object if we didn't find anything.
15685  if test -z "$lt_cv_aix_libpath_"; then
15686    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15687  fi
15688fi
15689rm -f core conftest.err conftest.$ac_objext \
15690    conftest$ac_exeext conftest.$ac_ext
15691  if test -z "$lt_cv_aix_libpath_"; then
15692    lt_cv_aix_libpath_="/usr/lib:/lib"
15693  fi
15694
15695fi
15696
15697  aix_libpath=$lt_cv_aix_libpath_
15698fi
15699
15700	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15701	  # Warning - without using the other run time loading flags,
15702	  # -berok will link without error, but may produce a broken library.
15703	  no_undefined_flag=' ${wl}-bernotok'
15704	  allow_undefined_flag=' ${wl}-berok'
15705	  if test "$with_gnu_ld" = yes; then
15706	    # We only use this code for GNU lds that support --whole-archive.
15707	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15708	  else
15709	    # Exported symbols can be pulled into shared objects from archives
15710	    whole_archive_flag_spec='$convenience'
15711	  fi
15712	  archive_cmds_need_lc=yes
15713	  # This is similar to how AIX traditionally builds its shared libraries.
15714	  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'
15715	fi
15716      fi
15717      ;;
15718
15719    amigaos*)
15720      case $host_cpu in
15721      powerpc)
15722            # see comment about AmigaOS4 .so support
15723            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15724            archive_expsym_cmds=''
15725        ;;
15726      m68k)
15727            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)'
15728            hardcode_libdir_flag_spec='-L$libdir'
15729            hardcode_minus_L=yes
15730        ;;
15731      esac
15732      ;;
15733
15734    bsdi[45]*)
15735      export_dynamic_flag_spec=-rdynamic
15736      ;;
15737
15738    cygwin* | mingw* | pw32* | cegcc*)
15739      # When not using gcc, we currently assume that we are using
15740      # Microsoft Visual C++.
15741      # hardcode_libdir_flag_spec is actually meaningless, as there is
15742      # no search path for DLLs.
15743      case $cc_basename in
15744      cl*)
15745	# Native MSVC
15746	hardcode_libdir_flag_spec=' '
15747	allow_undefined_flag=unsupported
15748	always_export_symbols=yes
15749	file_list_spec='@'
15750	# Tell ltmain to make .lib files, not .a files.
15751	libext=lib
15752	# Tell ltmain to make .dll files, not .so files.
15753	shrext_cmds=".dll"
15754	# FIXME: Setting linknames here is a bad hack.
15755	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15756	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15757	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15758	  else
15759	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15760	  fi~
15761	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15762	  linknames='
15763	# The linker will not automatically build a static lib if we build a DLL.
15764	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15765	enable_shared_with_static_runtimes=yes
15766	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15767	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15768	# Don't use ranlib
15769	old_postinstall_cmds='chmod 644 $oldlib'
15770	postlink_cmds='lt_outputfile="@OUTPUT@"~
15771	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15772	  case $lt_outputfile in
15773	    *.exe|*.EXE) ;;
15774	    *)
15775	      lt_outputfile="$lt_outputfile.exe"
15776	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15777	      ;;
15778	  esac~
15779	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15780	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15781	    $RM "$lt_outputfile.manifest";
15782	  fi'
15783	;;
15784      *)
15785	# Assume MSVC wrapper
15786	hardcode_libdir_flag_spec=' '
15787	allow_undefined_flag=unsupported
15788	# Tell ltmain to make .lib files, not .a files.
15789	libext=lib
15790	# Tell ltmain to make .dll files, not .so files.
15791	shrext_cmds=".dll"
15792	# FIXME: Setting linknames here is a bad hack.
15793	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15794	# The linker will automatically build a .lib file if we build a DLL.
15795	old_archive_from_new_cmds='true'
15796	# FIXME: Should let the user specify the lib program.
15797	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15798	enable_shared_with_static_runtimes=yes
15799	;;
15800      esac
15801      ;;
15802
15803    darwin* | rhapsody*)
15804
15805
15806  archive_cmds_need_lc=no
15807  hardcode_direct=no
15808  hardcode_automatic=yes
15809  hardcode_shlibpath_var=unsupported
15810  if test "$lt_cv_ld_force_load" = "yes"; then
15811    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\"`'
15812
15813  else
15814    whole_archive_flag_spec=''
15815  fi
15816  link_all_deplibs=yes
15817  allow_undefined_flag="$_lt_dar_allow_undefined"
15818  case $cc_basename in
15819     ifort*) _lt_dar_can_shared=yes ;;
15820     *) _lt_dar_can_shared=$GCC ;;
15821  esac
15822  if test "$_lt_dar_can_shared" = "yes"; then
15823    output_verbose_link_cmd=func_echo_all
15824    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15825    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15826    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}"
15827    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}"
15828
15829  else
15830  ld_shlibs=no
15831  fi
15832
15833      ;;
15834
15835    dgux*)
15836      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837      hardcode_libdir_flag_spec='-L$libdir'
15838      hardcode_shlibpath_var=no
15839      ;;
15840
15841    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15842    # support.  Future versions do this automatically, but an explicit c++rt0.o
15843    # does not break anything, and helps significantly (at the cost of a little
15844    # extra space).
15845    freebsd2.2*)
15846      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15847      hardcode_libdir_flag_spec='-R$libdir'
15848      hardcode_direct=yes
15849      hardcode_shlibpath_var=no
15850      ;;
15851
15852    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15853    freebsd2.*)
15854      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15855      hardcode_direct=yes
15856      hardcode_minus_L=yes
15857      hardcode_shlibpath_var=no
15858      ;;
15859
15860    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15861    freebsd* | dragonfly*)
15862      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15863      hardcode_libdir_flag_spec='-R$libdir'
15864      hardcode_direct=yes
15865      hardcode_shlibpath_var=no
15866      ;;
15867
15868    hpux9*)
15869      if test "$GCC" = yes; then
15870	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'
15871      else
15872	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'
15873      fi
15874      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15875      hardcode_libdir_separator=:
15876      hardcode_direct=yes
15877
15878      # hardcode_minus_L: Not really in the search PATH,
15879      # but as the default location of the library.
15880      hardcode_minus_L=yes
15881      export_dynamic_flag_spec='${wl}-E'
15882      ;;
15883
15884    hpux10*)
15885      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15886	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15887      else
15888	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15889      fi
15890      if test "$with_gnu_ld" = no; then
15891	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15892	hardcode_libdir_separator=:
15893	hardcode_direct=yes
15894	hardcode_direct_absolute=yes
15895	export_dynamic_flag_spec='${wl}-E'
15896	# hardcode_minus_L: Not really in the search PATH,
15897	# but as the default location of the library.
15898	hardcode_minus_L=yes
15899      fi
15900      ;;
15901
15902    hpux11*)
15903      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15904	case $host_cpu in
15905	hppa*64*)
15906	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15907	  ;;
15908	ia64*)
15909	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15910	  ;;
15911	*)
15912	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15913	  ;;
15914	esac
15915      else
15916	case $host_cpu in
15917	hppa*64*)
15918	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919	  ;;
15920	ia64*)
15921	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15922	  ;;
15923	*)
15924
15925	  # Older versions of the 11.00 compiler do not understand -b yet
15926	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15927	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15928$as_echo_n "checking if $CC understands -b... " >&6; }
15929if ${lt_cv_prog_compiler__b+:} false; then :
15930  $as_echo_n "(cached) " >&6
15931else
15932  lt_cv_prog_compiler__b=no
15933   save_LDFLAGS="$LDFLAGS"
15934   LDFLAGS="$LDFLAGS -b"
15935   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15936   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15937     # The linker can only warn and ignore the option if not recognized
15938     # So say no if there are warnings
15939     if test -s conftest.err; then
15940       # Append any errors to the config.log.
15941       cat conftest.err 1>&5
15942       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15943       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15944       if diff conftest.exp conftest.er2 >/dev/null; then
15945         lt_cv_prog_compiler__b=yes
15946       fi
15947     else
15948       lt_cv_prog_compiler__b=yes
15949     fi
15950   fi
15951   $RM -r conftest*
15952   LDFLAGS="$save_LDFLAGS"
15953
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15956$as_echo "$lt_cv_prog_compiler__b" >&6; }
15957
15958if test x"$lt_cv_prog_compiler__b" = xyes; then
15959    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15960else
15961    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15962fi
15963
15964	  ;;
15965	esac
15966      fi
15967      if test "$with_gnu_ld" = no; then
15968	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15969	hardcode_libdir_separator=:
15970
15971	case $host_cpu in
15972	hppa*64*|ia64*)
15973	  hardcode_direct=no
15974	  hardcode_shlibpath_var=no
15975	  ;;
15976	*)
15977	  hardcode_direct=yes
15978	  hardcode_direct_absolute=yes
15979	  export_dynamic_flag_spec='${wl}-E'
15980
15981	  # hardcode_minus_L: Not really in the search PATH,
15982	  # but as the default location of the library.
15983	  hardcode_minus_L=yes
15984	  ;;
15985	esac
15986      fi
15987      ;;
15988
15989    irix5* | irix6* | nonstopux*)
15990      if test "$GCC" = yes; then
15991	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'
15992	# Try to use the -exported_symbol ld option, if it does not
15993	# work, assume that -exports_file does not work either and
15994	# implicitly export all symbols.
15995	# This should be the same for all languages, so no per-tag cache variable.
15996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15997$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15998if ${lt_cv_irix_exported_symbol+:} false; then :
15999  $as_echo_n "(cached) " >&6
16000else
16001  save_LDFLAGS="$LDFLAGS"
16002	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16003	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004/* end confdefs.h.  */
16005int foo (void) { return 0; }
16006_ACEOF
16007if ac_fn_c_try_link "$LINENO"; then :
16008  lt_cv_irix_exported_symbol=yes
16009else
16010  lt_cv_irix_exported_symbol=no
16011fi
16012rm -f core conftest.err conftest.$ac_objext \
16013    conftest$ac_exeext conftest.$ac_ext
16014           LDFLAGS="$save_LDFLAGS"
16015fi
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16017$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16018	if test "$lt_cv_irix_exported_symbol" = yes; then
16019          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'
16020	fi
16021      else
16022	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'
16023	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'
16024      fi
16025      archive_cmds_need_lc='no'
16026      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027      hardcode_libdir_separator=:
16028      inherit_rpath=yes
16029      link_all_deplibs=yes
16030      ;;
16031
16032    netbsd*)
16033      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16034	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16035      else
16036	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16037      fi
16038      hardcode_libdir_flag_spec='-R$libdir'
16039      hardcode_direct=yes
16040      hardcode_shlibpath_var=no
16041      ;;
16042
16043    newsos6)
16044      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045      hardcode_direct=yes
16046      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16047      hardcode_libdir_separator=:
16048      hardcode_shlibpath_var=no
16049      ;;
16050
16051    *nto* | *qnx*)
16052      ;;
16053
16054    openbsd*)
16055      if test -f /usr/libexec/ld.so; then
16056	hardcode_direct=yes
16057	hardcode_shlibpath_var=no
16058	hardcode_direct_absolute=yes
16059	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16060	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16061	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16062	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16063	  export_dynamic_flag_spec='${wl}-E'
16064	else
16065	  case $host_os in
16066	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16067	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068	     hardcode_libdir_flag_spec='-R$libdir'
16069	     ;;
16070	   *)
16071	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16072	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16073	     ;;
16074	  esac
16075	fi
16076      else
16077	ld_shlibs=no
16078      fi
16079      ;;
16080
16081    os2*)
16082      hardcode_libdir_flag_spec='-L$libdir'
16083      hardcode_minus_L=yes
16084      allow_undefined_flag=unsupported
16085      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'
16086      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16087      ;;
16088
16089    osf3*)
16090      if test "$GCC" = yes; then
16091	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16092	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'
16093      else
16094	allow_undefined_flag=' -expect_unresolved \*'
16095	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'
16096      fi
16097      archive_cmds_need_lc='no'
16098      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16099      hardcode_libdir_separator=:
16100      ;;
16101
16102    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16103      if test "$GCC" = yes; then
16104	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16105	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'
16106	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16107      else
16108	allow_undefined_flag=' -expect_unresolved \*'
16109	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'
16110	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~
16111	$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'
16112
16113	# Both c and cxx compiler support -rpath directly
16114	hardcode_libdir_flag_spec='-rpath $libdir'
16115      fi
16116      archive_cmds_need_lc='no'
16117      hardcode_libdir_separator=:
16118      ;;
16119
16120    solaris*)
16121      no_undefined_flag=' -z defs'
16122      if test "$GCC" = yes; then
16123	wlarc='${wl}'
16124	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16126	  $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'
16127      else
16128	case `$CC -V 2>&1` in
16129	*"Compilers 5.0"*)
16130	  wlarc=''
16131	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16133	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16134	  ;;
16135	*)
16136	  wlarc='${wl}'
16137	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16138	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16139	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16140	  ;;
16141	esac
16142      fi
16143      hardcode_libdir_flag_spec='-R$libdir'
16144      hardcode_shlibpath_var=no
16145      case $host_os in
16146      solaris2.[0-5] | solaris2.[0-5].*) ;;
16147      *)
16148	# The compiler driver will combine and reorder linker options,
16149	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16150	# but is careful enough not to reorder.
16151	# Supported since Solaris 2.6 (maybe 2.5.1?)
16152	if test "$GCC" = yes; then
16153	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16154	else
16155	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16156	fi
16157	;;
16158      esac
16159      link_all_deplibs=yes
16160      ;;
16161
16162    sunos4*)
16163      if test "x$host_vendor" = xsequent; then
16164	# Use $CC to link under sequent, because it throws in some extra .o
16165	# files that make .init and .fini sections work.
16166	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16167      else
16168	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16169      fi
16170      hardcode_libdir_flag_spec='-L$libdir'
16171      hardcode_direct=yes
16172      hardcode_minus_L=yes
16173      hardcode_shlibpath_var=no
16174      ;;
16175
16176    sysv4)
16177      case $host_vendor in
16178	sni)
16179	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180	  hardcode_direct=yes # is this really true???
16181	;;
16182	siemens)
16183	  ## LD is ld it makes a PLAMLIB
16184	  ## CC just makes a GrossModule.
16185	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16186	  reload_cmds='$CC -r -o $output$reload_objs'
16187	  hardcode_direct=no
16188        ;;
16189	motorola)
16190	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16192	;;
16193      esac
16194      runpath_var='LD_RUN_PATH'
16195      hardcode_shlibpath_var=no
16196      ;;
16197
16198    sysv4.3*)
16199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200      hardcode_shlibpath_var=no
16201      export_dynamic_flag_spec='-Bexport'
16202      ;;
16203
16204    sysv4*MP*)
16205      if test -d /usr/nec; then
16206	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207	hardcode_shlibpath_var=no
16208	runpath_var=LD_RUN_PATH
16209	hardcode_runpath_var=yes
16210	ld_shlibs=yes
16211      fi
16212      ;;
16213
16214    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16215      no_undefined_flag='${wl}-z,text'
16216      archive_cmds_need_lc=no
16217      hardcode_shlibpath_var=no
16218      runpath_var='LD_RUN_PATH'
16219
16220      if test "$GCC" = yes; then
16221	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16222	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16223      else
16224	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16226      fi
16227      ;;
16228
16229    sysv5* | sco3.2v5* | sco5v6*)
16230      # Note: We can NOT use -z defs as we might desire, because we do not
16231      # link with -lc, and that would cause any symbols used from libc to
16232      # always be unresolved, which means just about no library would
16233      # ever link correctly.  If we're not using GNU ld we use -z text
16234      # though, which does catch some bad symbols but isn't as heavy-handed
16235      # as -z defs.
16236      no_undefined_flag='${wl}-z,text'
16237      allow_undefined_flag='${wl}-z,nodefs'
16238      archive_cmds_need_lc=no
16239      hardcode_shlibpath_var=no
16240      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16241      hardcode_libdir_separator=':'
16242      link_all_deplibs=yes
16243      export_dynamic_flag_spec='${wl}-Bexport'
16244      runpath_var='LD_RUN_PATH'
16245
16246      if test "$GCC" = yes; then
16247	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16248	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16249      else
16250	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16251	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16252      fi
16253      ;;
16254
16255    uts4*)
16256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257      hardcode_libdir_flag_spec='-L$libdir'
16258      hardcode_shlibpath_var=no
16259      ;;
16260
16261    *)
16262      ld_shlibs=no
16263      ;;
16264    esac
16265
16266    if test x$host_vendor = xsni; then
16267      case $host in
16268      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16269	export_dynamic_flag_spec='${wl}-Blargedynsym'
16270	;;
16271      esac
16272    fi
16273  fi
16274
16275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16276$as_echo "$ld_shlibs" >&6; }
16277test "$ld_shlibs" = no && can_build_shared=no
16278
16279with_gnu_ld=$with_gnu_ld
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295#
16296# Do we need to explicitly link libc?
16297#
16298case "x$archive_cmds_need_lc" in
16299x|xyes)
16300  # Assume -lc should be added
16301  archive_cmds_need_lc=yes
16302
16303  if test "$enable_shared" = yes && test "$GCC" = yes; then
16304    case $archive_cmds in
16305    *'~'*)
16306      # FIXME: we may have to deal with multi-command sequences.
16307      ;;
16308    '$CC '*)
16309      # Test whether the compiler implicitly links with -lc since on some
16310      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16311      # to ld, don't add -lc before -lgcc.
16312      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16313$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16314if ${lt_cv_archive_cmds_need_lc+:} false; then :
16315  $as_echo_n "(cached) " >&6
16316else
16317  $RM conftest*
16318	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16319
16320	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16321  (eval $ac_compile) 2>&5
16322  ac_status=$?
16323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16324  test $ac_status = 0; } 2>conftest.err; then
16325	  soname=conftest
16326	  lib=conftest
16327	  libobjs=conftest.$ac_objext
16328	  deplibs=
16329	  wl=$lt_prog_compiler_wl
16330	  pic_flag=$lt_prog_compiler_pic
16331	  compiler_flags=-v
16332	  linker_flags=-v
16333	  verstring=
16334	  output_objdir=.
16335	  libname=conftest
16336	  lt_save_allow_undefined_flag=$allow_undefined_flag
16337	  allow_undefined_flag=
16338	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16339  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16340  ac_status=$?
16341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16342  test $ac_status = 0; }
16343	  then
16344	    lt_cv_archive_cmds_need_lc=no
16345	  else
16346	    lt_cv_archive_cmds_need_lc=yes
16347	  fi
16348	  allow_undefined_flag=$lt_save_allow_undefined_flag
16349	else
16350	  cat conftest.err 1>&5
16351	fi
16352	$RM conftest*
16353
16354fi
16355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16356$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16357      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16358      ;;
16359    esac
16360  fi
16361  ;;
16362esac
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
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16516$as_echo_n "checking dynamic linker characteristics... " >&6; }
16517
16518if test "$GCC" = yes; then
16519  case $host_os in
16520    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16521    *) lt_awk_arg="/^libraries:/" ;;
16522  esac
16523  case $host_os in
16524    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16525    *) lt_sed_strip_eq="s,=/,/,g" ;;
16526  esac
16527  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16528  case $lt_search_path_spec in
16529  *\;*)
16530    # if the path contains ";" then we assume it to be the separator
16531    # otherwise default to the standard path separator (i.e. ":") - it is
16532    # assumed that no part of a normal pathname contains ";" but that should
16533    # okay in the real world where ";" in dirpaths is itself problematic.
16534    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16535    ;;
16536  *)
16537    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16538    ;;
16539  esac
16540  # Ok, now we have the path, separated by spaces, we can step through it
16541  # and add multilib dir if necessary.
16542  lt_tmp_lt_search_path_spec=
16543  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16544  for lt_sys_path in $lt_search_path_spec; do
16545    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16546      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16547    else
16548      test -d "$lt_sys_path" && \
16549	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16550    fi
16551  done
16552  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16553BEGIN {RS=" "; FS="/|\n";} {
16554  lt_foo="";
16555  lt_count=0;
16556  for (lt_i = NF; lt_i > 0; lt_i--) {
16557    if ($lt_i != "" && $lt_i != ".") {
16558      if ($lt_i == "..") {
16559        lt_count++;
16560      } else {
16561        if (lt_count == 0) {
16562          lt_foo="/" $lt_i lt_foo;
16563        } else {
16564          lt_count--;
16565        }
16566      }
16567    }
16568  }
16569  if (lt_foo != "") { lt_freq[lt_foo]++; }
16570  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16571}'`
16572  # AWK program above erroneously prepends '/' to C:/dos/paths
16573  # for these hosts.
16574  case $host_os in
16575    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16576      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16577  esac
16578  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16579else
16580  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16581fi
16582library_names_spec=
16583libname_spec='lib$name'
16584soname_spec=
16585shrext_cmds=".so"
16586postinstall_cmds=
16587postuninstall_cmds=
16588finish_cmds=
16589finish_eval=
16590shlibpath_var=
16591shlibpath_overrides_runpath=unknown
16592version_type=none
16593dynamic_linker="$host_os ld.so"
16594sys_lib_dlsearch_path_spec="/lib /usr/lib"
16595need_lib_prefix=unknown
16596hardcode_into_libs=no
16597
16598# when you set need_version to no, make sure it does not cause -set_version
16599# flags to be left without arguments
16600need_version=unknown
16601
16602case $host_os in
16603aix3*)
16604  version_type=linux # correct to gnu/linux during the next big refactor
16605  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16606  shlibpath_var=LIBPATH
16607
16608  # AIX 3 has no versioning support, so we append a major version to the name.
16609  soname_spec='${libname}${release}${shared_ext}$major'
16610  ;;
16611
16612aix[4-9]*)
16613  version_type=linux # correct to gnu/linux during the next big refactor
16614  need_lib_prefix=no
16615  need_version=no
16616  hardcode_into_libs=yes
16617  if test "$host_cpu" = ia64; then
16618    # AIX 5 supports IA64
16619    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16620    shlibpath_var=LD_LIBRARY_PATH
16621  else
16622    # With GCC up to 2.95.x, collect2 would create an import file
16623    # for dependence libraries.  The import file would start with
16624    # the line `#! .'.  This would cause the generated library to
16625    # depend on `.', always an invalid library.  This was fixed in
16626    # development snapshots of GCC prior to 3.0.
16627    case $host_os in
16628      aix4 | aix4.[01] | aix4.[01].*)
16629      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16630	   echo ' yes '
16631	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16632	:
16633      else
16634	can_build_shared=no
16635      fi
16636      ;;
16637    esac
16638    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16639    # soname into executable. Probably we can add versioning support to
16640    # collect2, so additional links can be useful in future.
16641    if test "$aix_use_runtimelinking" = yes; then
16642      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16643      # instead of lib<name>.a to let people know that these are not
16644      # typical AIX shared libraries.
16645      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16646    else
16647      # We preserve .a as extension for shared libraries through AIX4.2
16648      # and later when we are not doing run time linking.
16649      library_names_spec='${libname}${release}.a $libname.a'
16650      soname_spec='${libname}${release}${shared_ext}$major'
16651    fi
16652    shlibpath_var=LIBPATH
16653  fi
16654  ;;
16655
16656amigaos*)
16657  case $host_cpu in
16658  powerpc)
16659    # Since July 2007 AmigaOS4 officially supports .so libraries.
16660    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16661    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662    ;;
16663  m68k)
16664    library_names_spec='$libname.ixlibrary $libname.a'
16665    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16666    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'
16667    ;;
16668  esac
16669  ;;
16670
16671beos*)
16672  library_names_spec='${libname}${shared_ext}'
16673  dynamic_linker="$host_os ld.so"
16674  shlibpath_var=LIBRARY_PATH
16675  ;;
16676
16677bsdi[45]*)
16678  version_type=linux # correct to gnu/linux during the next big refactor
16679  need_version=no
16680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681  soname_spec='${libname}${release}${shared_ext}$major'
16682  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16683  shlibpath_var=LD_LIBRARY_PATH
16684  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16685  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16686  # the default ld.so.conf also contains /usr/contrib/lib and
16687  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16688  # libtool to hard-code these into programs
16689  ;;
16690
16691cygwin* | mingw* | pw32* | cegcc*)
16692  version_type=windows
16693  shrext_cmds=".dll"
16694  need_version=no
16695  need_lib_prefix=no
16696
16697  case $GCC,$cc_basename in
16698  yes,*)
16699    # gcc
16700    library_names_spec='$libname.dll.a'
16701    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16702    postinstall_cmds='base_file=`basename \${file}`~
16703      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16704      dldir=$destdir/`dirname \$dlpath`~
16705      test -d \$dldir || mkdir -p \$dldir~
16706      $install_prog $dir/$dlname \$dldir/$dlname~
16707      chmod a+x \$dldir/$dlname~
16708      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16709        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16710      fi'
16711    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16712      dlpath=$dir/\$dldll~
16713       $RM \$dlpath'
16714    shlibpath_overrides_runpath=yes
16715
16716    case $host_os in
16717    cygwin*)
16718      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16719      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16720
16721      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16722      ;;
16723    mingw* | cegcc*)
16724      # MinGW DLLs use traditional 'lib' prefix
16725      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16726      ;;
16727    pw32*)
16728      # pw32 DLLs use 'pw' prefix rather than 'lib'
16729      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16730      ;;
16731    esac
16732    dynamic_linker='Win32 ld.exe'
16733    ;;
16734
16735  *,cl*)
16736    # Native MSVC
16737    libname_spec='$name'
16738    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16739    library_names_spec='${libname}.dll.lib'
16740
16741    case $build_os in
16742    mingw*)
16743      sys_lib_search_path_spec=
16744      lt_save_ifs=$IFS
16745      IFS=';'
16746      for lt_path in $LIB
16747      do
16748        IFS=$lt_save_ifs
16749        # Let DOS variable expansion print the short 8.3 style file name.
16750        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16751        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16752      done
16753      IFS=$lt_save_ifs
16754      # Convert to MSYS style.
16755      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16756      ;;
16757    cygwin*)
16758      # Convert to unix form, then to dos form, then back to unix form
16759      # but this time dos style (no spaces!) so that the unix form looks
16760      # like /cygdrive/c/PROGRA~1:/cygdr...
16761      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16762      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16763      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16764      ;;
16765    *)
16766      sys_lib_search_path_spec="$LIB"
16767      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16768        # It is most probably a Windows format PATH.
16769        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16770      else
16771        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16772      fi
16773      # FIXME: find the short name or the path components, as spaces are
16774      # common. (e.g. "Program Files" -> "PROGRA~1")
16775      ;;
16776    esac
16777
16778    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16779    postinstall_cmds='base_file=`basename \${file}`~
16780      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16781      dldir=$destdir/`dirname \$dlpath`~
16782      test -d \$dldir || mkdir -p \$dldir~
16783      $install_prog $dir/$dlname \$dldir/$dlname'
16784    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16785      dlpath=$dir/\$dldll~
16786       $RM \$dlpath'
16787    shlibpath_overrides_runpath=yes
16788    dynamic_linker='Win32 link.exe'
16789    ;;
16790
16791  *)
16792    # Assume MSVC wrapper
16793    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16794    dynamic_linker='Win32 ld.exe'
16795    ;;
16796  esac
16797  # FIXME: first we should search . and the directory the executable is in
16798  shlibpath_var=PATH
16799  ;;
16800
16801darwin* | rhapsody*)
16802  dynamic_linker="$host_os dyld"
16803  version_type=darwin
16804  need_lib_prefix=no
16805  need_version=no
16806  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16807  soname_spec='${libname}${release}${major}$shared_ext'
16808  shlibpath_overrides_runpath=yes
16809  shlibpath_var=DYLD_LIBRARY_PATH
16810  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16811
16812  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16813  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16814  ;;
16815
16816dgux*)
16817  version_type=linux # correct to gnu/linux during the next big refactor
16818  need_lib_prefix=no
16819  need_version=no
16820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16821  soname_spec='${libname}${release}${shared_ext}$major'
16822  shlibpath_var=LD_LIBRARY_PATH
16823  ;;
16824
16825freebsd* | dragonfly*)
16826  # DragonFly does not have aout.  When/if they implement a new
16827  # versioning mechanism, adjust this.
16828  if test -x /usr/bin/objformat; then
16829    objformat=`/usr/bin/objformat`
16830  else
16831    case $host_os in
16832    freebsd[23].*) objformat=aout ;;
16833    *) objformat=elf ;;
16834    esac
16835  fi
16836  version_type=freebsd-$objformat
16837  case $version_type in
16838    freebsd-elf*)
16839      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16840      need_version=no
16841      need_lib_prefix=no
16842      ;;
16843    freebsd-*)
16844      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16845      need_version=yes
16846      ;;
16847  esac
16848  shlibpath_var=LD_LIBRARY_PATH
16849  case $host_os in
16850  freebsd2.*)
16851    shlibpath_overrides_runpath=yes
16852    ;;
16853  freebsd3.[01]* | freebsdelf3.[01]*)
16854    shlibpath_overrides_runpath=yes
16855    hardcode_into_libs=yes
16856    ;;
16857  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16858  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16859    shlibpath_overrides_runpath=no
16860    hardcode_into_libs=yes
16861    ;;
16862  *) # from 4.6 on, and DragonFly
16863    shlibpath_overrides_runpath=yes
16864    hardcode_into_libs=yes
16865    ;;
16866  esac
16867  ;;
16868
16869gnu*)
16870  version_type=linux # correct to gnu/linux during the next big refactor
16871  need_lib_prefix=no
16872  need_version=no
16873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874  soname_spec='${libname}${release}${shared_ext}$major'
16875  shlibpath_var=LD_LIBRARY_PATH
16876  shlibpath_overrides_runpath=no
16877  hardcode_into_libs=yes
16878  ;;
16879
16880haiku*)
16881  version_type=linux # correct to gnu/linux during the next big refactor
16882  need_lib_prefix=no
16883  need_version=no
16884  dynamic_linker="$host_os runtime_loader"
16885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16886  soname_spec='${libname}${release}${shared_ext}$major'
16887  shlibpath_var=LIBRARY_PATH
16888  shlibpath_overrides_runpath=yes
16889  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16890  hardcode_into_libs=yes
16891  ;;
16892
16893hpux9* | hpux10* | hpux11*)
16894  # Give a soname corresponding to the major version so that dld.sl refuses to
16895  # link against other versions.
16896  version_type=sunos
16897  need_lib_prefix=no
16898  need_version=no
16899  case $host_cpu in
16900  ia64*)
16901    shrext_cmds='.so'
16902    hardcode_into_libs=yes
16903    dynamic_linker="$host_os dld.so"
16904    shlibpath_var=LD_LIBRARY_PATH
16905    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907    soname_spec='${libname}${release}${shared_ext}$major'
16908    if test "X$HPUX_IA64_MODE" = X32; then
16909      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16910    else
16911      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16912    fi
16913    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914    ;;
16915  hppa*64*)
16916    shrext_cmds='.sl'
16917    hardcode_into_libs=yes
16918    dynamic_linker="$host_os dld.sl"
16919    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922    soname_spec='${libname}${release}${shared_ext}$major'
16923    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16924    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16925    ;;
16926  *)
16927    shrext_cmds='.sl'
16928    dynamic_linker="$host_os dld.sl"
16929    shlibpath_var=SHLIB_PATH
16930    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932    soname_spec='${libname}${release}${shared_ext}$major'
16933    ;;
16934  esac
16935  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16936  postinstall_cmds='chmod 555 $lib'
16937  # or fails outright, so override atomically:
16938  install_override_mode=555
16939  ;;
16940
16941interix[3-9]*)
16942  version_type=linux # correct to gnu/linux during the next big refactor
16943  need_lib_prefix=no
16944  need_version=no
16945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16946  soname_spec='${libname}${release}${shared_ext}$major'
16947  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16948  shlibpath_var=LD_LIBRARY_PATH
16949  shlibpath_overrides_runpath=no
16950  hardcode_into_libs=yes
16951  ;;
16952
16953irix5* | irix6* | nonstopux*)
16954  case $host_os in
16955    nonstopux*) version_type=nonstopux ;;
16956    *)
16957	if test "$lt_cv_prog_gnu_ld" = yes; then
16958		version_type=linux # correct to gnu/linux during the next big refactor
16959	else
16960		version_type=irix
16961	fi ;;
16962  esac
16963  need_lib_prefix=no
16964  need_version=no
16965  soname_spec='${libname}${release}${shared_ext}$major'
16966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16967  case $host_os in
16968  irix5* | nonstopux*)
16969    libsuff= shlibsuff=
16970    ;;
16971  *)
16972    case $LD in # libtool.m4 will add one of these switches to LD
16973    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16974      libsuff= shlibsuff= libmagic=32-bit;;
16975    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16976      libsuff=32 shlibsuff=N32 libmagic=N32;;
16977    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16978      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16979    *) libsuff= shlibsuff= libmagic=never-match;;
16980    esac
16981    ;;
16982  esac
16983  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16984  shlibpath_overrides_runpath=no
16985  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16986  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16987  hardcode_into_libs=yes
16988  ;;
16989
16990# No shared lib support for Linux oldld, aout, or coff.
16991linux*oldld* | linux*aout* | linux*coff*)
16992  dynamic_linker=no
16993  ;;
16994
16995# This must be glibc/ELF.
16996linux* | k*bsd*-gnu | kopensolaris*-gnu)
16997  version_type=linux # correct to gnu/linux during the next big refactor
16998  need_lib_prefix=no
16999  need_version=no
17000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17001  soname_spec='${libname}${release}${shared_ext}$major'
17002  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17003  shlibpath_var=LD_LIBRARY_PATH
17004  shlibpath_overrides_runpath=no
17005
17006  # Some binutils ld are patched to set DT_RUNPATH
17007  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17008  $as_echo_n "(cached) " >&6
17009else
17010  lt_cv_shlibpath_overrides_runpath=no
17011    save_LDFLAGS=$LDFLAGS
17012    save_libdir=$libdir
17013    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17014	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016/* end confdefs.h.  */
17017
17018int
17019main ()
17020{
17021
17022  ;
17023  return 0;
17024}
17025_ACEOF
17026if ac_fn_c_try_link "$LINENO"; then :
17027  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17028  lt_cv_shlibpath_overrides_runpath=yes
17029fi
17030fi
17031rm -f core conftest.err conftest.$ac_objext \
17032    conftest$ac_exeext conftest.$ac_ext
17033    LDFLAGS=$save_LDFLAGS
17034    libdir=$save_libdir
17035
17036fi
17037
17038  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17039
17040  # This implies no fast_install, which is unacceptable.
17041  # Some rework will be needed to allow for fast_install
17042  # before this can be enabled.
17043  hardcode_into_libs=yes
17044
17045  # Add ABI-specific directories to the system library path.
17046  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17047
17048  # Append ld.so.conf contents to the search path
17049  if test -f /etc/ld.so.conf; then
17050    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' ' '`
17051    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17052
17053  fi
17054
17055  # We used to test for /lib/ld.so.1 and disable shared libraries on
17056  # powerpc, because MkLinux only supported shared libraries with the
17057  # GNU dynamic linker.  Since this was broken with cross compilers,
17058  # most powerpc-linux boxes support dynamic linking these days and
17059  # people can always --disable-shared, the test was removed, and we
17060  # assume the GNU/Linux dynamic linker is in use.
17061  dynamic_linker='GNU/Linux ld.so'
17062  ;;
17063
17064netbsd*)
17065  version_type=sunos
17066  need_lib_prefix=no
17067  need_version=no
17068  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17070    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17071    dynamic_linker='NetBSD (a.out) ld.so'
17072  else
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    dynamic_linker='NetBSD ld.elf_so'
17076  fi
17077  shlibpath_var=LD_LIBRARY_PATH
17078  shlibpath_overrides_runpath=yes
17079  hardcode_into_libs=yes
17080  ;;
17081
17082newsos6)
17083  version_type=linux # correct to gnu/linux during the next big refactor
17084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17085  shlibpath_var=LD_LIBRARY_PATH
17086  shlibpath_overrides_runpath=yes
17087  ;;
17088
17089*nto* | *qnx*)
17090  version_type=qnx
17091  need_lib_prefix=no
17092  need_version=no
17093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094  soname_spec='${libname}${release}${shared_ext}$major'
17095  shlibpath_var=LD_LIBRARY_PATH
17096  shlibpath_overrides_runpath=no
17097  hardcode_into_libs=yes
17098  dynamic_linker='ldqnx.so'
17099  ;;
17100
17101openbsd*)
17102  version_type=sunos
17103  sys_lib_dlsearch_path_spec="/usr/lib"
17104  need_lib_prefix=no
17105  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17106  case $host_os in
17107    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17108    *)				need_version=no  ;;
17109  esac
17110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17112  shlibpath_var=LD_LIBRARY_PATH
17113  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17114    case $host_os in
17115      openbsd2.[89] | openbsd2.[89].*)
17116	shlibpath_overrides_runpath=no
17117	;;
17118      *)
17119	shlibpath_overrides_runpath=yes
17120	;;
17121      esac
17122  else
17123    shlibpath_overrides_runpath=yes
17124  fi
17125  ;;
17126
17127os2*)
17128  libname_spec='$name'
17129  shrext_cmds=".dll"
17130  need_lib_prefix=no
17131  library_names_spec='$libname${shared_ext} $libname.a'
17132  dynamic_linker='OS/2 ld.exe'
17133  shlibpath_var=LIBPATH
17134  ;;
17135
17136osf3* | osf4* | osf5*)
17137  version_type=osf
17138  need_lib_prefix=no
17139  need_version=no
17140  soname_spec='${libname}${release}${shared_ext}$major'
17141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142  shlibpath_var=LD_LIBRARY_PATH
17143  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17144  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17145  ;;
17146
17147rdos*)
17148  dynamic_linker=no
17149  ;;
17150
17151solaris*)
17152  version_type=linux # correct to gnu/linux during the next big refactor
17153  need_lib_prefix=no
17154  need_version=no
17155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156  soname_spec='${libname}${release}${shared_ext}$major'
17157  shlibpath_var=LD_LIBRARY_PATH
17158  shlibpath_overrides_runpath=yes
17159  hardcode_into_libs=yes
17160  # ldd complains unless libraries are executable
17161  postinstall_cmds='chmod +x $lib'
17162  ;;
17163
17164sunos4*)
17165  version_type=sunos
17166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17167  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17168  shlibpath_var=LD_LIBRARY_PATH
17169  shlibpath_overrides_runpath=yes
17170  if test "$with_gnu_ld" = yes; then
17171    need_lib_prefix=no
17172  fi
17173  need_version=yes
17174  ;;
17175
17176sysv4 | sysv4.3*)
17177  version_type=linux # correct to gnu/linux during the next big refactor
17178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179  soname_spec='${libname}${release}${shared_ext}$major'
17180  shlibpath_var=LD_LIBRARY_PATH
17181  case $host_vendor in
17182    sni)
17183      shlibpath_overrides_runpath=no
17184      need_lib_prefix=no
17185      runpath_var=LD_RUN_PATH
17186      ;;
17187    siemens)
17188      need_lib_prefix=no
17189      ;;
17190    motorola)
17191      need_lib_prefix=no
17192      need_version=no
17193      shlibpath_overrides_runpath=no
17194      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17195      ;;
17196  esac
17197  ;;
17198
17199sysv4*MP*)
17200  if test -d /usr/nec ;then
17201    version_type=linux # correct to gnu/linux during the next big refactor
17202    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17203    soname_spec='$libname${shared_ext}.$major'
17204    shlibpath_var=LD_LIBRARY_PATH
17205  fi
17206  ;;
17207
17208sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17209  version_type=freebsd-elf
17210  need_lib_prefix=no
17211  need_version=no
17212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213  soname_spec='${libname}${release}${shared_ext}$major'
17214  shlibpath_var=LD_LIBRARY_PATH
17215  shlibpath_overrides_runpath=yes
17216  hardcode_into_libs=yes
17217  if test "$with_gnu_ld" = yes; then
17218    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17219  else
17220    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17221    case $host_os in
17222      sco3.2v5*)
17223        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17224	;;
17225    esac
17226  fi
17227  sys_lib_dlsearch_path_spec='/usr/lib'
17228  ;;
17229
17230tpf*)
17231  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17232  version_type=linux # correct to gnu/linux during the next big refactor
17233  need_lib_prefix=no
17234  need_version=no
17235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236  shlibpath_var=LD_LIBRARY_PATH
17237  shlibpath_overrides_runpath=no
17238  hardcode_into_libs=yes
17239  ;;
17240
17241uts4*)
17242  version_type=linux # correct to gnu/linux during the next big refactor
17243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244  soname_spec='${libname}${release}${shared_ext}$major'
17245  shlibpath_var=LD_LIBRARY_PATH
17246  ;;
17247
17248*)
17249  dynamic_linker=no
17250  ;;
17251esac
17252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17253$as_echo "$dynamic_linker" >&6; }
17254test "$dynamic_linker" = no && can_build_shared=no
17255
17256variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17257if test "$GCC" = yes; then
17258  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17259fi
17260
17261if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17262  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17263fi
17264if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17265  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17266fi
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17360$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17361hardcode_action=
17362if test -n "$hardcode_libdir_flag_spec" ||
17363   test -n "$runpath_var" ||
17364   test "X$hardcode_automatic" = "Xyes" ; then
17365
17366  # We can hardcode non-existent directories.
17367  if test "$hardcode_direct" != no &&
17368     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17369     # have to relink, otherwise we might link with an installed library
17370     # when we should be linking with a yet-to-be-installed one
17371     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17372     test "$hardcode_minus_L" != no; then
17373    # Linking always hardcodes the temporary library directory.
17374    hardcode_action=relink
17375  else
17376    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17377    hardcode_action=immediate
17378  fi
17379else
17380  # We cannot hardcode anything, or else we can only hardcode existing
17381  # directories.
17382  hardcode_action=unsupported
17383fi
17384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17385$as_echo "$hardcode_action" >&6; }
17386
17387if test "$hardcode_action" = relink ||
17388   test "$inherit_rpath" = yes; then
17389  # Fast installation is not supported
17390  enable_fast_install=no
17391elif test "$shlibpath_overrides_runpath" = yes ||
17392     test "$enable_shared" = no; then
17393  # Fast installation is not necessary
17394  enable_fast_install=needless
17395fi
17396
17397
17398
17399
17400
17401
17402  if test "x$enable_dlopen" != xyes; then
17403  enable_dlopen=unknown
17404  enable_dlopen_self=unknown
17405  enable_dlopen_self_static=unknown
17406else
17407  lt_cv_dlopen=no
17408  lt_cv_dlopen_libs=
17409
17410  case $host_os in
17411  beos*)
17412    lt_cv_dlopen="load_add_on"
17413    lt_cv_dlopen_libs=
17414    lt_cv_dlopen_self=yes
17415    ;;
17416
17417  mingw* | pw32* | cegcc*)
17418    lt_cv_dlopen="LoadLibrary"
17419    lt_cv_dlopen_libs=
17420    ;;
17421
17422  cygwin*)
17423    lt_cv_dlopen="dlopen"
17424    lt_cv_dlopen_libs=
17425    ;;
17426
17427  darwin*)
17428  # if libdl is installed we need to link against it
17429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17430$as_echo_n "checking for dlopen in -ldl... " >&6; }
17431if ${ac_cv_lib_dl_dlopen+:} false; then :
17432  $as_echo_n "(cached) " >&6
17433else
17434  ac_check_lib_save_LIBS=$LIBS
17435LIBS="-ldl  $LIBS"
17436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h.  */
17438
17439/* Override any GCC internal prototype to avoid an error.
17440   Use char because int might match the return type of a GCC
17441   builtin and then its argument prototype would still apply.  */
17442#ifdef __cplusplus
17443extern "C"
17444#endif
17445char dlopen ();
17446int
17447main ()
17448{
17449return dlopen ();
17450  ;
17451  return 0;
17452}
17453_ACEOF
17454if ac_fn_c_try_link "$LINENO"; then :
17455  ac_cv_lib_dl_dlopen=yes
17456else
17457  ac_cv_lib_dl_dlopen=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext \
17460    conftest$ac_exeext conftest.$ac_ext
17461LIBS=$ac_check_lib_save_LIBS
17462fi
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17464$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17465if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17466  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17467else
17468
17469    lt_cv_dlopen="dyld"
17470    lt_cv_dlopen_libs=
17471    lt_cv_dlopen_self=yes
17472
17473fi
17474
17475    ;;
17476
17477  *)
17478    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17479if test "x$ac_cv_func_shl_load" = xyes; then :
17480  lt_cv_dlopen="shl_load"
17481else
17482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17483$as_echo_n "checking for shl_load in -ldld... " >&6; }
17484if ${ac_cv_lib_dld_shl_load+:} false; then :
17485  $as_echo_n "(cached) " >&6
17486else
17487  ac_check_lib_save_LIBS=$LIBS
17488LIBS="-ldld  $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 shl_load ();
17499int
17500main ()
17501{
17502return shl_load ();
17503  ;
17504  return 0;
17505}
17506_ACEOF
17507if ac_fn_c_try_link "$LINENO"; then :
17508  ac_cv_lib_dld_shl_load=yes
17509else
17510  ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
17517$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17518if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17519  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17520else
17521  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17522if test "x$ac_cv_func_dlopen" = xyes; then :
17523  lt_cv_dlopen="dlopen"
17524else
17525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17526$as_echo_n "checking for dlopen in -ldl... " >&6; }
17527if ${ac_cv_lib_dl_dlopen+:} false; then :
17528  $as_echo_n "(cached) " >&6
17529else
17530  ac_check_lib_save_LIBS=$LIBS
17531LIBS="-ldl  $LIBS"
17532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h.  */
17534
17535/* Override any GCC internal prototype to avoid an error.
17536   Use char because int might match the return type of a GCC
17537   builtin and then its argument prototype would still apply.  */
17538#ifdef __cplusplus
17539extern "C"
17540#endif
17541char dlopen ();
17542int
17543main ()
17544{
17545return dlopen ();
17546  ;
17547  return 0;
17548}
17549_ACEOF
17550if ac_fn_c_try_link "$LINENO"; then :
17551  ac_cv_lib_dl_dlopen=yes
17552else
17553  ac_cv_lib_dl_dlopen=no
17554fi
17555rm -f core conftest.err conftest.$ac_objext \
17556    conftest$ac_exeext conftest.$ac_ext
17557LIBS=$ac_check_lib_save_LIBS
17558fi
17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17560$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17561if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17562  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17563else
17564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17565$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17566if ${ac_cv_lib_svld_dlopen+:} false; then :
17567  $as_echo_n "(cached) " >&6
17568else
17569  ac_check_lib_save_LIBS=$LIBS
17570LIBS="-lsvld  $LIBS"
17571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573
17574/* Override any GCC internal prototype to avoid an error.
17575   Use char because int might match the return type of a GCC
17576   builtin and then its argument prototype would still apply.  */
17577#ifdef __cplusplus
17578extern "C"
17579#endif
17580char dlopen ();
17581int
17582main ()
17583{
17584return dlopen ();
17585  ;
17586  return 0;
17587}
17588_ACEOF
17589if ac_fn_c_try_link "$LINENO"; then :
17590  ac_cv_lib_svld_dlopen=yes
17591else
17592  ac_cv_lib_svld_dlopen=no
17593fi
17594rm -f core conftest.err conftest.$ac_objext \
17595    conftest$ac_exeext conftest.$ac_ext
17596LIBS=$ac_check_lib_save_LIBS
17597fi
17598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17599$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17600if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17601  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17602else
17603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17604$as_echo_n "checking for dld_link in -ldld... " >&6; }
17605if ${ac_cv_lib_dld_dld_link+:} false; then :
17606  $as_echo_n "(cached) " >&6
17607else
17608  ac_check_lib_save_LIBS=$LIBS
17609LIBS="-ldld  $LIBS"
17610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611/* end confdefs.h.  */
17612
17613/* Override any GCC internal prototype to avoid an error.
17614   Use char because int might match the return type of a GCC
17615   builtin and then its argument prototype would still apply.  */
17616#ifdef __cplusplus
17617extern "C"
17618#endif
17619char dld_link ();
17620int
17621main ()
17622{
17623return dld_link ();
17624  ;
17625  return 0;
17626}
17627_ACEOF
17628if ac_fn_c_try_link "$LINENO"; then :
17629  ac_cv_lib_dld_dld_link=yes
17630else
17631  ac_cv_lib_dld_dld_link=no
17632fi
17633rm -f core conftest.err conftest.$ac_objext \
17634    conftest$ac_exeext conftest.$ac_ext
17635LIBS=$ac_check_lib_save_LIBS
17636fi
17637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17638$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17639if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17640  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17641fi
17642
17643
17644fi
17645
17646
17647fi
17648
17649
17650fi
17651
17652
17653fi
17654
17655
17656fi
17657
17658    ;;
17659  esac
17660
17661  if test "x$lt_cv_dlopen" != xno; then
17662    enable_dlopen=yes
17663  else
17664    enable_dlopen=no
17665  fi
17666
17667  case $lt_cv_dlopen in
17668  dlopen)
17669    save_CPPFLAGS="$CPPFLAGS"
17670    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17671
17672    save_LDFLAGS="$LDFLAGS"
17673    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17674
17675    save_LIBS="$LIBS"
17676    LIBS="$lt_cv_dlopen_libs $LIBS"
17677
17678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17679$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17680if ${lt_cv_dlopen_self+:} false; then :
17681  $as_echo_n "(cached) " >&6
17682else
17683  	  if test "$cross_compiling" = yes; then :
17684  lt_cv_dlopen_self=cross
17685else
17686  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17687  lt_status=$lt_dlunknown
17688  cat > conftest.$ac_ext <<_LT_EOF
17689#line $LINENO "configure"
17690#include "confdefs.h"
17691
17692#if HAVE_DLFCN_H
17693#include <dlfcn.h>
17694#endif
17695
17696#include <stdio.h>
17697
17698#ifdef RTLD_GLOBAL
17699#  define LT_DLGLOBAL		RTLD_GLOBAL
17700#else
17701#  ifdef DL_GLOBAL
17702#    define LT_DLGLOBAL		DL_GLOBAL
17703#  else
17704#    define LT_DLGLOBAL		0
17705#  endif
17706#endif
17707
17708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17709   find out it does not work in some platform. */
17710#ifndef LT_DLLAZY_OR_NOW
17711#  ifdef RTLD_LAZY
17712#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17713#  else
17714#    ifdef DL_LAZY
17715#      define LT_DLLAZY_OR_NOW		DL_LAZY
17716#    else
17717#      ifdef RTLD_NOW
17718#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17719#      else
17720#        ifdef DL_NOW
17721#          define LT_DLLAZY_OR_NOW	DL_NOW
17722#        else
17723#          define LT_DLLAZY_OR_NOW	0
17724#        endif
17725#      endif
17726#    endif
17727#  endif
17728#endif
17729
17730/* When -fvisbility=hidden is used, assume the code has been annotated
17731   correspondingly for the symbols needed.  */
17732#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17733int fnord () __attribute__((visibility("default")));
17734#endif
17735
17736int fnord () { return 42; }
17737int main ()
17738{
17739  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740  int status = $lt_dlunknown;
17741
17742  if (self)
17743    {
17744      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17745      else
17746        {
17747	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17748          else puts (dlerror ());
17749	}
17750      /* dlclose (self); */
17751    }
17752  else
17753    puts (dlerror ());
17754
17755  return status;
17756}
17757_LT_EOF
17758  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17759  (eval $ac_link) 2>&5
17760  ac_status=$?
17761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17762  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17763    (./conftest; exit; ) >&5 2>/dev/null
17764    lt_status=$?
17765    case x$lt_status in
17766      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17767      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17768      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17769    esac
17770  else :
17771    # compilation failed
17772    lt_cv_dlopen_self=no
17773  fi
17774fi
17775rm -fr conftest*
17776
17777
17778fi
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17780$as_echo "$lt_cv_dlopen_self" >&6; }
17781
17782    if test "x$lt_cv_dlopen_self" = xyes; then
17783      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17784      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17785$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17786if ${lt_cv_dlopen_self_static+:} false; then :
17787  $as_echo_n "(cached) " >&6
17788else
17789  	  if test "$cross_compiling" = yes; then :
17790  lt_cv_dlopen_self_static=cross
17791else
17792  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17793  lt_status=$lt_dlunknown
17794  cat > conftest.$ac_ext <<_LT_EOF
17795#line $LINENO "configure"
17796#include "confdefs.h"
17797
17798#if HAVE_DLFCN_H
17799#include <dlfcn.h>
17800#endif
17801
17802#include <stdio.h>
17803
17804#ifdef RTLD_GLOBAL
17805#  define LT_DLGLOBAL		RTLD_GLOBAL
17806#else
17807#  ifdef DL_GLOBAL
17808#    define LT_DLGLOBAL		DL_GLOBAL
17809#  else
17810#    define LT_DLGLOBAL		0
17811#  endif
17812#endif
17813
17814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17815   find out it does not work in some platform. */
17816#ifndef LT_DLLAZY_OR_NOW
17817#  ifdef RTLD_LAZY
17818#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17819#  else
17820#    ifdef DL_LAZY
17821#      define LT_DLLAZY_OR_NOW		DL_LAZY
17822#    else
17823#      ifdef RTLD_NOW
17824#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17825#      else
17826#        ifdef DL_NOW
17827#          define LT_DLLAZY_OR_NOW	DL_NOW
17828#        else
17829#          define LT_DLLAZY_OR_NOW	0
17830#        endif
17831#      endif
17832#    endif
17833#  endif
17834#endif
17835
17836/* When -fvisbility=hidden is used, assume the code has been annotated
17837   correspondingly for the symbols needed.  */
17838#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17839int fnord () __attribute__((visibility("default")));
17840#endif
17841
17842int fnord () { return 42; }
17843int main ()
17844{
17845  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17846  int status = $lt_dlunknown;
17847
17848  if (self)
17849    {
17850      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17851      else
17852        {
17853	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17854          else puts (dlerror ());
17855	}
17856      /* dlclose (self); */
17857    }
17858  else
17859    puts (dlerror ());
17860
17861  return status;
17862}
17863_LT_EOF
17864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17865  (eval $ac_link) 2>&5
17866  ac_status=$?
17867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17869    (./conftest; exit; ) >&5 2>/dev/null
17870    lt_status=$?
17871    case x$lt_status in
17872      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17873      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17874      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17875    esac
17876  else :
17877    # compilation failed
17878    lt_cv_dlopen_self_static=no
17879  fi
17880fi
17881rm -fr conftest*
17882
17883
17884fi
17885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17886$as_echo "$lt_cv_dlopen_self_static" >&6; }
17887    fi
17888
17889    CPPFLAGS="$save_CPPFLAGS"
17890    LDFLAGS="$save_LDFLAGS"
17891    LIBS="$save_LIBS"
17892    ;;
17893  esac
17894
17895  case $lt_cv_dlopen_self in
17896  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17897  *) enable_dlopen_self=unknown ;;
17898  esac
17899
17900  case $lt_cv_dlopen_self_static in
17901  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17902  *) enable_dlopen_self_static=unknown ;;
17903  esac
17904fi
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922striplib=
17923old_striplib=
17924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17925$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17926if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17927  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17928  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930$as_echo "yes" >&6; }
17931else
17932# FIXME - insert some real tests, host_os isn't really good enough
17933  case $host_os in
17934  darwin*)
17935    if test -n "$STRIP" ; then
17936      striplib="$STRIP -x"
17937      old_striplib="$STRIP -S"
17938      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17939$as_echo "yes" >&6; }
17940    else
17941      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17942$as_echo "no" >&6; }
17943    fi
17944    ;;
17945  *)
17946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947$as_echo "no" >&6; }
17948    ;;
17949  esac
17950fi
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963  # Report which library types will actually be built
17964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17965$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17967$as_echo "$can_build_shared" >&6; }
17968
17969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17970$as_echo_n "checking whether to build shared libraries... " >&6; }
17971  test "$can_build_shared" = "no" && enable_shared=no
17972
17973  # On AIX, shared libraries and static libraries use the same namespace, and
17974  # are all built from PIC.
17975  case $host_os in
17976  aix3*)
17977    test "$enable_shared" = yes && enable_static=no
17978    if test -n "$RANLIB"; then
17979      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17980      postinstall_cmds='$RANLIB $lib'
17981    fi
17982    ;;
17983
17984  aix[4-9]*)
17985    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17986      test "$enable_shared" = yes && enable_static=no
17987    fi
17988    ;;
17989  esac
17990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17991$as_echo "$enable_shared" >&6; }
17992
17993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17994$as_echo_n "checking whether to build static libraries... " >&6; }
17995  # Make sure either enable_shared or enable_static is yes.
17996  test "$enable_shared" = yes || enable_static=yes
17997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17998$as_echo "$enable_static" >&6; }
17999
18000
18001
18002
18003fi
18004ac_ext=c
18005ac_cpp='$CPP $CPPFLAGS'
18006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008ac_compiler_gnu=$ac_cv_c_compiler_gnu
18009
18010CC="$lt_save_CC"
18011
18012      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18013    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18014    (test "X$CXX" != "Xg++"))) ; then
18015  ac_ext=cpp
18016ac_cpp='$CXXCPP $CPPFLAGS'
18017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18021$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18022if test -z "$CXXCPP"; then
18023  if ${ac_cv_prog_CXXCPP+:} false; then :
18024  $as_echo_n "(cached) " >&6
18025else
18026      # Double quotes because CXXCPP needs to be expanded
18027    for CXXCPP in "$CXX -E" "/lib/cpp"
18028    do
18029      ac_preproc_ok=false
18030for ac_cxx_preproc_warn_flag in '' yes
18031do
18032  # Use a header file that comes with gcc, so configuring glibc
18033  # with a fresh cross-compiler works.
18034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18035  # <limits.h> exists even on freestanding compilers.
18036  # On the NeXT, cc -E runs the code through the compiler's parser,
18037  # not just through cpp. "Syntax error" is here to catch this case.
18038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039/* end confdefs.h.  */
18040#ifdef __STDC__
18041# include <limits.h>
18042#else
18043# include <assert.h>
18044#endif
18045		     Syntax error
18046_ACEOF
18047if ac_fn_cxx_try_cpp "$LINENO"; then :
18048
18049else
18050  # Broken: fails on valid input.
18051continue
18052fi
18053rm -f conftest.err conftest.i conftest.$ac_ext
18054
18055  # OK, works on sane cases.  Now check whether nonexistent headers
18056  # can be detected and how.
18057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h.  */
18059#include <ac_nonexistent.h>
18060_ACEOF
18061if ac_fn_cxx_try_cpp "$LINENO"; then :
18062  # Broken: success on invalid input.
18063continue
18064else
18065  # Passes both tests.
18066ac_preproc_ok=:
18067break
18068fi
18069rm -f conftest.err conftest.i conftest.$ac_ext
18070
18071done
18072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18073rm -f conftest.i conftest.err conftest.$ac_ext
18074if $ac_preproc_ok; then :
18075  break
18076fi
18077
18078    done
18079    ac_cv_prog_CXXCPP=$CXXCPP
18080
18081fi
18082  CXXCPP=$ac_cv_prog_CXXCPP
18083else
18084  ac_cv_prog_CXXCPP=$CXXCPP
18085fi
18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18087$as_echo "$CXXCPP" >&6; }
18088ac_preproc_ok=false
18089for ac_cxx_preproc_warn_flag in '' yes
18090do
18091  # Use a header file that comes with gcc, so configuring glibc
18092  # with a fresh cross-compiler works.
18093  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18094  # <limits.h> exists even on freestanding compilers.
18095  # On the NeXT, cc -E runs the code through the compiler's parser,
18096  # not just through cpp. "Syntax error" is here to catch this case.
18097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098/* end confdefs.h.  */
18099#ifdef __STDC__
18100# include <limits.h>
18101#else
18102# include <assert.h>
18103#endif
18104		     Syntax error
18105_ACEOF
18106if ac_fn_cxx_try_cpp "$LINENO"; then :
18107
18108else
18109  # Broken: fails on valid input.
18110continue
18111fi
18112rm -f conftest.err conftest.i conftest.$ac_ext
18113
18114  # OK, works on sane cases.  Now check whether nonexistent headers
18115  # can be detected and how.
18116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117/* end confdefs.h.  */
18118#include <ac_nonexistent.h>
18119_ACEOF
18120if ac_fn_cxx_try_cpp "$LINENO"; then :
18121  # Broken: success on invalid input.
18122continue
18123else
18124  # Passes both tests.
18125ac_preproc_ok=:
18126break
18127fi
18128rm -f conftest.err conftest.i conftest.$ac_ext
18129
18130done
18131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18132rm -f conftest.i conftest.err conftest.$ac_ext
18133if $ac_preproc_ok; then :
18134
18135else
18136  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18138as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18139See \`config.log' for more details" "$LINENO" 5; }
18140fi
18141
18142ac_ext=c
18143ac_cpp='$CPP $CPPFLAGS'
18144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146ac_compiler_gnu=$ac_cv_c_compiler_gnu
18147
18148else
18149  _lt_caught_CXX_error=yes
18150fi
18151
18152ac_ext=cpp
18153ac_cpp='$CXXCPP $CPPFLAGS'
18154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
18158archive_cmds_need_lc_CXX=no
18159allow_undefined_flag_CXX=
18160always_export_symbols_CXX=no
18161archive_expsym_cmds_CXX=
18162compiler_needs_object_CXX=no
18163export_dynamic_flag_spec_CXX=
18164hardcode_direct_CXX=no
18165hardcode_direct_absolute_CXX=no
18166hardcode_libdir_flag_spec_CXX=
18167hardcode_libdir_separator_CXX=
18168hardcode_minus_L_CXX=no
18169hardcode_shlibpath_var_CXX=unsupported
18170hardcode_automatic_CXX=no
18171inherit_rpath_CXX=no
18172module_cmds_CXX=
18173module_expsym_cmds_CXX=
18174link_all_deplibs_CXX=unknown
18175old_archive_cmds_CXX=$old_archive_cmds
18176reload_flag_CXX=$reload_flag
18177reload_cmds_CXX=$reload_cmds
18178no_undefined_flag_CXX=
18179whole_archive_flag_spec_CXX=
18180enable_shared_with_static_runtimes_CXX=no
18181
18182# Source file extension for C++ test sources.
18183ac_ext=cpp
18184
18185# Object file extension for compiled C++ test sources.
18186objext=o
18187objext_CXX=$objext
18188
18189# No sense in running all these tests if we already determined that
18190# the CXX compiler isn't working.  Some variables (like enable_shared)
18191# are currently assumed to apply to all compilers on this platform,
18192# and will be corrupted by setting them based on a non-working compiler.
18193if test "$_lt_caught_CXX_error" != yes; then
18194  # Code to be used in simple compile tests
18195  lt_simple_compile_test_code="int some_variable = 0;"
18196
18197  # Code to be used in simple link tests
18198  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18199
18200  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18201
18202
18203
18204
18205
18206
18207# If no C compiler was specified, use CC.
18208LTCC=${LTCC-"$CC"}
18209
18210# If no C compiler flags were specified, use CFLAGS.
18211LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18212
18213# Allow CC to be a program name with arguments.
18214compiler=$CC
18215
18216
18217  # save warnings/boilerplate of simple test code
18218  ac_outfile=conftest.$ac_objext
18219echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18220eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18221_lt_compiler_boilerplate=`cat conftest.err`
18222$RM conftest*
18223
18224  ac_outfile=conftest.$ac_objext
18225echo "$lt_simple_link_test_code" >conftest.$ac_ext
18226eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18227_lt_linker_boilerplate=`cat conftest.err`
18228$RM -r conftest*
18229
18230
18231  # Allow CC to be a program name with arguments.
18232  lt_save_CC=$CC
18233  lt_save_CFLAGS=$CFLAGS
18234  lt_save_LD=$LD
18235  lt_save_GCC=$GCC
18236  GCC=$GXX
18237  lt_save_with_gnu_ld=$with_gnu_ld
18238  lt_save_path_LD=$lt_cv_path_LD
18239  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18240    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18241  else
18242    $as_unset lt_cv_prog_gnu_ld
18243  fi
18244  if test -n "${lt_cv_path_LDCXX+set}"; then
18245    lt_cv_path_LD=$lt_cv_path_LDCXX
18246  else
18247    $as_unset lt_cv_path_LD
18248  fi
18249  test -z "${LDCXX+set}" || LD=$LDCXX
18250  CC=${CXX-"c++"}
18251  CFLAGS=$CXXFLAGS
18252  compiler=$CC
18253  compiler_CXX=$CC
18254  for cc_temp in $compiler""; do
18255  case $cc_temp in
18256    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18257    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18258    \-*) ;;
18259    *) break;;
18260  esac
18261done
18262cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18263
18264
18265  if test -n "$compiler"; then
18266    # We don't want -fno-exception when compiling C++ code, so set the
18267    # no_builtin_flag separately
18268    if test "$GXX" = yes; then
18269      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18270    else
18271      lt_prog_compiler_no_builtin_flag_CXX=
18272    fi
18273
18274    if test "$GXX" = yes; then
18275      # Set up default GNU C++ configuration
18276
18277
18278
18279# Check whether --with-gnu-ld was given.
18280if test "${with_gnu_ld+set}" = set; then :
18281  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18282else
18283  with_gnu_ld=no
18284fi
18285
18286ac_prog=ld
18287if test "$GCC" = yes; then
18288  # Check if gcc -print-prog-name=ld gives a path.
18289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18290$as_echo_n "checking for ld used by $CC... " >&6; }
18291  case $host in
18292  *-*-mingw*)
18293    # gcc leaves a trailing carriage return which upsets mingw
18294    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18295  *)
18296    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18297  esac
18298  case $ac_prog in
18299    # Accept absolute paths.
18300    [\\/]* | ?:[\\/]*)
18301      re_direlt='/[^/][^/]*/\.\./'
18302      # Canonicalize the pathname of ld
18303      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18304      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18305	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18306      done
18307      test -z "$LD" && LD="$ac_prog"
18308      ;;
18309  "")
18310    # If it fails, then pretend we aren't using GCC.
18311    ac_prog=ld
18312    ;;
18313  *)
18314    # If it is relative, then search for the first ld in PATH.
18315    with_gnu_ld=unknown
18316    ;;
18317  esac
18318elif test "$with_gnu_ld" = yes; then
18319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18320$as_echo_n "checking for GNU ld... " >&6; }
18321else
18322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18323$as_echo_n "checking for non-GNU ld... " >&6; }
18324fi
18325if ${lt_cv_path_LD+:} false; then :
18326  $as_echo_n "(cached) " >&6
18327else
18328  if test -z "$LD"; then
18329  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18330  for ac_dir in $PATH; do
18331    IFS="$lt_save_ifs"
18332    test -z "$ac_dir" && ac_dir=.
18333    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18334      lt_cv_path_LD="$ac_dir/$ac_prog"
18335      # Check to see if the program is GNU ld.  I'd rather use --version,
18336      # but apparently some variants of GNU ld only accept -v.
18337      # Break only if it was the GNU/non-GNU ld that we prefer.
18338      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18339      *GNU* | *'with BFD'*)
18340	test "$with_gnu_ld" != no && break
18341	;;
18342      *)
18343	test "$with_gnu_ld" != yes && break
18344	;;
18345      esac
18346    fi
18347  done
18348  IFS="$lt_save_ifs"
18349else
18350  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18351fi
18352fi
18353
18354LD="$lt_cv_path_LD"
18355if test -n "$LD"; then
18356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18357$as_echo "$LD" >&6; }
18358else
18359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360$as_echo "no" >&6; }
18361fi
18362test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18364$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18365if ${lt_cv_prog_gnu_ld+:} false; then :
18366  $as_echo_n "(cached) " >&6
18367else
18368  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18369case `$LD -v 2>&1 </dev/null` in
18370*GNU* | *'with BFD'*)
18371  lt_cv_prog_gnu_ld=yes
18372  ;;
18373*)
18374  lt_cv_prog_gnu_ld=no
18375  ;;
18376esac
18377fi
18378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18379$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18380with_gnu_ld=$lt_cv_prog_gnu_ld
18381
18382
18383
18384
18385
18386
18387
18388      # Check if GNU C++ uses GNU ld as the underlying linker, since the
18389      # archiving commands below assume that GNU ld is being used.
18390      if test "$with_gnu_ld" = yes; then
18391        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392        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'
18393
18394        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18395        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18396
18397        # If archive_cmds runs LD, not CC, wlarc should be empty
18398        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18399        #     investigate it a little bit more. (MM)
18400        wlarc='${wl}'
18401
18402        # ancient GNU ld didn't support --whole-archive et. al.
18403        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18404	  $GREP 'no-whole-archive' > /dev/null; then
18405          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18406        else
18407          whole_archive_flag_spec_CXX=
18408        fi
18409      else
18410        with_gnu_ld=no
18411        wlarc=
18412
18413        # A generic and very simple default shared library creation
18414        # command for GNU C++ for the case where it uses the native
18415        # linker, instead of GNU ld.  If possible, this setting should
18416        # overridden to take advantage of the native linker features on
18417        # the platform it is being used on.
18418        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18419      fi
18420
18421      # Commands to make compiler produce verbose output that lists
18422      # what "hidden" libraries, object files and flags are used when
18423      # linking a shared library.
18424      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18425
18426    else
18427      GXX=no
18428      with_gnu_ld=no
18429      wlarc=
18430    fi
18431
18432    # PORTME: fill in a description of your system's C++ link characteristics
18433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18434$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18435    ld_shlibs_CXX=yes
18436    case $host_os in
18437      aix3*)
18438        # FIXME: insert proper C++ library support
18439        ld_shlibs_CXX=no
18440        ;;
18441      aix[4-9]*)
18442        if test "$host_cpu" = ia64; then
18443          # On IA64, the linker does run time linking by default, so we don't
18444          # have to do anything special.
18445          aix_use_runtimelinking=no
18446          exp_sym_flag='-Bexport'
18447          no_entry_flag=""
18448        else
18449          aix_use_runtimelinking=no
18450
18451          # Test if we are trying to use run time linking or normal
18452          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18453          # need to do runtime linking.
18454          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18455	    for ld_flag in $LDFLAGS; do
18456	      case $ld_flag in
18457	      *-brtl*)
18458	        aix_use_runtimelinking=yes
18459	        break
18460	        ;;
18461	      esac
18462	    done
18463	    ;;
18464          esac
18465
18466          exp_sym_flag='-bexport'
18467          no_entry_flag='-bnoentry'
18468        fi
18469
18470        # When large executables or shared objects are built, AIX ld can
18471        # have problems creating the table of contents.  If linking a library
18472        # or program results in "error TOC overflow" add -mminimal-toc to
18473        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18474        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18475
18476        archive_cmds_CXX=''
18477        hardcode_direct_CXX=yes
18478        hardcode_direct_absolute_CXX=yes
18479        hardcode_libdir_separator_CXX=':'
18480        link_all_deplibs_CXX=yes
18481        file_list_spec_CXX='${wl}-f,'
18482
18483        if test "$GXX" = yes; then
18484          case $host_os in aix4.[012]|aix4.[012].*)
18485          # We only want to do this on AIX 4.2 and lower, the check
18486          # below for broken collect2 doesn't work under 4.3+
18487	  collect2name=`${CC} -print-prog-name=collect2`
18488	  if test -f "$collect2name" &&
18489	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18490	  then
18491	    # We have reworked collect2
18492	    :
18493	  else
18494	    # We have old collect2
18495	    hardcode_direct_CXX=unsupported
18496	    # It fails to find uninstalled libraries when the uninstalled
18497	    # path is not listed in the libpath.  Setting hardcode_minus_L
18498	    # to unsupported forces relinking
18499	    hardcode_minus_L_CXX=yes
18500	    hardcode_libdir_flag_spec_CXX='-L$libdir'
18501	    hardcode_libdir_separator_CXX=
18502	  fi
18503          esac
18504          shared_flag='-shared'
18505	  if test "$aix_use_runtimelinking" = yes; then
18506	    shared_flag="$shared_flag "'${wl}-G'
18507	  fi
18508        else
18509          # not using gcc
18510          if test "$host_cpu" = ia64; then
18511	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18512	  # chokes on -Wl,-G. The following line is correct:
18513	  shared_flag='-G'
18514          else
18515	    if test "$aix_use_runtimelinking" = yes; then
18516	      shared_flag='${wl}-G'
18517	    else
18518	      shared_flag='${wl}-bM:SRE'
18519	    fi
18520          fi
18521        fi
18522
18523        export_dynamic_flag_spec_CXX='${wl}-bexpall'
18524        # It seems that -bexpall does not export symbols beginning with
18525        # underscore (_), so it is better to generate a list of symbols to
18526	# export.
18527        always_export_symbols_CXX=yes
18528        if test "$aix_use_runtimelinking" = yes; then
18529          # Warning - without using the other runtime loading flags (-brtl),
18530          # -berok will link without error, but may produce a broken library.
18531          allow_undefined_flag_CXX='-berok'
18532          # Determine the default libpath from the value encoded in an empty
18533          # executable.
18534          if test "${lt_cv_aix_libpath+set}" = set; then
18535  aix_libpath=$lt_cv_aix_libpath
18536else
18537  if ${lt_cv_aix_libpath__CXX+:} false; then :
18538  $as_echo_n "(cached) " >&6
18539else
18540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541/* end confdefs.h.  */
18542
18543int
18544main ()
18545{
18546
18547  ;
18548  return 0;
18549}
18550_ACEOF
18551if ac_fn_cxx_try_link "$LINENO"; then :
18552
18553  lt_aix_libpath_sed='
18554      /Import File Strings/,/^$/ {
18555	  /^0/ {
18556	      s/^0  *\([^ ]*\) *$/\1/
18557	      p
18558	  }
18559      }'
18560  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18561  # Check for a 64-bit object if we didn't find anything.
18562  if test -z "$lt_cv_aix_libpath__CXX"; then
18563    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18564  fi
18565fi
18566rm -f core conftest.err conftest.$ac_objext \
18567    conftest$ac_exeext conftest.$ac_ext
18568  if test -z "$lt_cv_aix_libpath__CXX"; then
18569    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18570  fi
18571
18572fi
18573
18574  aix_libpath=$lt_cv_aix_libpath__CXX
18575fi
18576
18577          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18578
18579          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"
18580        else
18581          if test "$host_cpu" = ia64; then
18582	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18583	    allow_undefined_flag_CXX="-z nodefs"
18584	    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"
18585          else
18586	    # Determine the default libpath from the value encoded in an
18587	    # empty executable.
18588	    if test "${lt_cv_aix_libpath+set}" = set; then
18589  aix_libpath=$lt_cv_aix_libpath
18590else
18591  if ${lt_cv_aix_libpath__CXX+:} false; then :
18592  $as_echo_n "(cached) " >&6
18593else
18594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595/* end confdefs.h.  */
18596
18597int
18598main ()
18599{
18600
18601  ;
18602  return 0;
18603}
18604_ACEOF
18605if ac_fn_cxx_try_link "$LINENO"; then :
18606
18607  lt_aix_libpath_sed='
18608      /Import File Strings/,/^$/ {
18609	  /^0/ {
18610	      s/^0  *\([^ ]*\) *$/\1/
18611	      p
18612	  }
18613      }'
18614  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18615  # Check for a 64-bit object if we didn't find anything.
18616  if test -z "$lt_cv_aix_libpath__CXX"; then
18617    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18618  fi
18619fi
18620rm -f core conftest.err conftest.$ac_objext \
18621    conftest$ac_exeext conftest.$ac_ext
18622  if test -z "$lt_cv_aix_libpath__CXX"; then
18623    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18624  fi
18625
18626fi
18627
18628  aix_libpath=$lt_cv_aix_libpath__CXX
18629fi
18630
18631	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18632	    # Warning - without using the other run time loading flags,
18633	    # -berok will link without error, but may produce a broken library.
18634	    no_undefined_flag_CXX=' ${wl}-bernotok'
18635	    allow_undefined_flag_CXX=' ${wl}-berok'
18636	    if test "$with_gnu_ld" = yes; then
18637	      # We only use this code for GNU lds that support --whole-archive.
18638	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18639	    else
18640	      # Exported symbols can be pulled into shared objects from archives
18641	      whole_archive_flag_spec_CXX='$convenience'
18642	    fi
18643	    archive_cmds_need_lc_CXX=yes
18644	    # This is similar to how AIX traditionally builds its shared
18645	    # libraries.
18646	    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'
18647          fi
18648        fi
18649        ;;
18650
18651      beos*)
18652	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18653	  allow_undefined_flag_CXX=unsupported
18654	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18655	  # support --undefined.  This deserves some investigation.  FIXME
18656	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657	else
18658	  ld_shlibs_CXX=no
18659	fi
18660	;;
18661
18662      chorus*)
18663        case $cc_basename in
18664          *)
18665	  # FIXME: insert proper C++ library support
18666	  ld_shlibs_CXX=no
18667	  ;;
18668        esac
18669        ;;
18670
18671      cygwin* | mingw* | pw32* | cegcc*)
18672	case $GXX,$cc_basename in
18673	,cl* | no,cl*)
18674	  # Native MSVC
18675	  # hardcode_libdir_flag_spec is actually meaningless, as there is
18676	  # no search path for DLLs.
18677	  hardcode_libdir_flag_spec_CXX=' '
18678	  allow_undefined_flag_CXX=unsupported
18679	  always_export_symbols_CXX=yes
18680	  file_list_spec_CXX='@'
18681	  # Tell ltmain to make .lib files, not .a files.
18682	  libext=lib
18683	  # Tell ltmain to make .dll files, not .so files.
18684	  shrext_cmds=".dll"
18685	  # FIXME: Setting linknames here is a bad hack.
18686	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18687	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18688	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18689	    else
18690	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18691	    fi~
18692	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18693	    linknames='
18694	  # The linker will not automatically build a static lib if we build a DLL.
18695	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18696	  enable_shared_with_static_runtimes_CXX=yes
18697	  # Don't use ranlib
18698	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
18699	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18700	    lt_tool_outputfile="@TOOL_OUTPUT@"~
18701	    case $lt_outputfile in
18702	      *.exe|*.EXE) ;;
18703	      *)
18704		lt_outputfile="$lt_outputfile.exe"
18705		lt_tool_outputfile="$lt_tool_outputfile.exe"
18706		;;
18707	    esac~
18708	    func_to_tool_file "$lt_outputfile"~
18709	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18710	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18711	      $RM "$lt_outputfile.manifest";
18712	    fi'
18713	  ;;
18714	*)
18715	  # g++
18716	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18717	  # as there is no search path for DLLs.
18718	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18719	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18720	  allow_undefined_flag_CXX=unsupported
18721	  always_export_symbols_CXX=no
18722	  enable_shared_with_static_runtimes_CXX=yes
18723
18724	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18725	    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'
18726	    # If the export-symbols file already is a .def file (1st line
18727	    # is EXPORTS), use it as is; otherwise, prepend...
18728	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18729	      cp $export_symbols $output_objdir/$soname.def;
18730	    else
18731	      echo EXPORTS > $output_objdir/$soname.def;
18732	      cat $export_symbols >> $output_objdir/$soname.def;
18733	    fi~
18734	    $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'
18735	  else
18736	    ld_shlibs_CXX=no
18737	  fi
18738	  ;;
18739	esac
18740	;;
18741      darwin* | rhapsody*)
18742
18743
18744  archive_cmds_need_lc_CXX=no
18745  hardcode_direct_CXX=no
18746  hardcode_automatic_CXX=yes
18747  hardcode_shlibpath_var_CXX=unsupported
18748  if test "$lt_cv_ld_force_load" = "yes"; then
18749    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\"`'
18750
18751  else
18752    whole_archive_flag_spec_CXX=''
18753  fi
18754  link_all_deplibs_CXX=yes
18755  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18756  case $cc_basename in
18757     ifort*) _lt_dar_can_shared=yes ;;
18758     *) _lt_dar_can_shared=$GCC ;;
18759  esac
18760  if test "$_lt_dar_can_shared" = "yes"; then
18761    output_verbose_link_cmd=func_echo_all
18762    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}"
18763    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18764    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}"
18765    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}"
18766       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18767      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}"
18768      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}"
18769    fi
18770
18771  else
18772  ld_shlibs_CXX=no
18773  fi
18774
18775	;;
18776
18777      dgux*)
18778        case $cc_basename in
18779          ec++*)
18780	    # FIXME: insert proper C++ library support
18781	    ld_shlibs_CXX=no
18782	    ;;
18783          ghcx*)
18784	    # Green Hills C++ Compiler
18785	    # FIXME: insert proper C++ library support
18786	    ld_shlibs_CXX=no
18787	    ;;
18788          *)
18789	    # FIXME: insert proper C++ library support
18790	    ld_shlibs_CXX=no
18791	    ;;
18792        esac
18793        ;;
18794
18795      freebsd2.*)
18796        # C++ shared libraries reported to be fairly broken before
18797	# switch to ELF
18798        ld_shlibs_CXX=no
18799        ;;
18800
18801      freebsd-elf*)
18802        archive_cmds_need_lc_CXX=no
18803        ;;
18804
18805      freebsd* | dragonfly*)
18806        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18807        # conventions
18808        ld_shlibs_CXX=yes
18809        ;;
18810
18811      gnu*)
18812        ;;
18813
18814      haiku*)
18815        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816        link_all_deplibs_CXX=yes
18817        ;;
18818
18819      hpux9*)
18820        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18821        hardcode_libdir_separator_CXX=:
18822        export_dynamic_flag_spec_CXX='${wl}-E'
18823        hardcode_direct_CXX=yes
18824        hardcode_minus_L_CXX=yes # Not in the search PATH,
18825				             # but as the default
18826				             # location of the library.
18827
18828        case $cc_basename in
18829          CC*)
18830            # FIXME: insert proper C++ library support
18831            ld_shlibs_CXX=no
18832            ;;
18833          aCC*)
18834            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'
18835            # Commands to make compiler produce verbose output that lists
18836            # what "hidden" libraries, object files and flags are used when
18837            # linking a shared library.
18838            #
18839            # There doesn't appear to be a way to prevent this compiler from
18840            # explicitly linking system object files so we need to strip them
18841            # from the output so that they don't get included in the library
18842            # dependencies.
18843            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"'
18844            ;;
18845          *)
18846            if test "$GXX" = yes; then
18847              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'
18848            else
18849              # FIXME: insert proper C++ library support
18850              ld_shlibs_CXX=no
18851            fi
18852            ;;
18853        esac
18854        ;;
18855
18856      hpux10*|hpux11*)
18857        if test $with_gnu_ld = no; then
18858	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18859	  hardcode_libdir_separator_CXX=:
18860
18861          case $host_cpu in
18862            hppa*64*|ia64*)
18863              ;;
18864            *)
18865	      export_dynamic_flag_spec_CXX='${wl}-E'
18866              ;;
18867          esac
18868        fi
18869        case $host_cpu in
18870          hppa*64*|ia64*)
18871            hardcode_direct_CXX=no
18872            hardcode_shlibpath_var_CXX=no
18873            ;;
18874          *)
18875            hardcode_direct_CXX=yes
18876            hardcode_direct_absolute_CXX=yes
18877            hardcode_minus_L_CXX=yes # Not in the search PATH,
18878					         # but as the default
18879					         # location of the library.
18880            ;;
18881        esac
18882
18883        case $cc_basename in
18884          CC*)
18885	    # FIXME: insert proper C++ library support
18886	    ld_shlibs_CXX=no
18887	    ;;
18888          aCC*)
18889	    case $host_cpu in
18890	      hppa*64*)
18891	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18892	        ;;
18893	      ia64*)
18894	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18895	        ;;
18896	      *)
18897	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18898	        ;;
18899	    esac
18900	    # Commands to make compiler produce verbose output that lists
18901	    # what "hidden" libraries, object files and flags are used when
18902	    # linking a shared library.
18903	    #
18904	    # There doesn't appear to be a way to prevent this compiler from
18905	    # explicitly linking system object files so we need to strip them
18906	    # from the output so that they don't get included in the library
18907	    # dependencies.
18908	    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"'
18909	    ;;
18910          *)
18911	    if test "$GXX" = yes; then
18912	      if test $with_gnu_ld = no; then
18913	        case $host_cpu in
18914	          hppa*64*)
18915	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18916	            ;;
18917	          ia64*)
18918	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18919	            ;;
18920	          *)
18921	            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'
18922	            ;;
18923	        esac
18924	      fi
18925	    else
18926	      # FIXME: insert proper C++ library support
18927	      ld_shlibs_CXX=no
18928	    fi
18929	    ;;
18930        esac
18931        ;;
18932
18933      interix[3-9]*)
18934	hardcode_direct_CXX=no
18935	hardcode_shlibpath_var_CXX=no
18936	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18937	export_dynamic_flag_spec_CXX='${wl}-E'
18938	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18939	# Instead, shared libraries are loaded at an image base (0x10000000 by
18940	# default) and relocated if they conflict, which is a slow very memory
18941	# consuming and fragmenting process.  To avoid this, we pick a random,
18942	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18943	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18944	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'
18945	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'
18946	;;
18947      irix5* | irix6*)
18948        case $cc_basename in
18949          CC*)
18950	    # SGI C++
18951	    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'
18952
18953	    # Archives containing C++ object files must be created using
18954	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18955	    # necessary to make sure instantiated templates are included
18956	    # in the archive.
18957	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18958	    ;;
18959          *)
18960	    if test "$GXX" = yes; then
18961	      if test "$with_gnu_ld" = no; then
18962	        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'
18963	      else
18964	        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'
18965	      fi
18966	    fi
18967	    link_all_deplibs_CXX=yes
18968	    ;;
18969        esac
18970        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18971        hardcode_libdir_separator_CXX=:
18972        inherit_rpath_CXX=yes
18973        ;;
18974
18975      linux* | k*bsd*-gnu | kopensolaris*-gnu)
18976        case $cc_basename in
18977          KCC*)
18978	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18979
18980	    # KCC will only create a shared library if the output file
18981	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18982	    # to its proper name (with version) after linking.
18983	    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'
18984	    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'
18985	    # Commands to make compiler produce verbose output that lists
18986	    # what "hidden" libraries, object files and flags are used when
18987	    # linking a shared library.
18988	    #
18989	    # There doesn't appear to be a way to prevent this compiler from
18990	    # explicitly linking system object files so we need to strip them
18991	    # from the output so that they don't get included in the library
18992	    # dependencies.
18993	    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"'
18994
18995	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18996	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18997
18998	    # Archives containing C++ object files must be created using
18999	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19000	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19001	    ;;
19002	  icpc* | ecpc* )
19003	    # Intel C++
19004	    with_gnu_ld=yes
19005	    # version 8.0 and above of icpc choke on multiply defined symbols
19006	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19007	    # earlier do not add the objects themselves.
19008	    case `$CC -V 2>&1` in
19009	      *"Version 7."*)
19010	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19011		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'
19012		;;
19013	      *)  # Version 8.0 or newer
19014	        tmp_idyn=
19015	        case $host_cpu in
19016		  ia64*) tmp_idyn=' -i_dynamic';;
19017		esac
19018	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19019		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'
19020		;;
19021	    esac
19022	    archive_cmds_need_lc_CXX=no
19023	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19024	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19025	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19026	    ;;
19027          pgCC* | pgcpp*)
19028            # Portland Group C++ compiler
19029	    case `$CC -V` in
19030	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19031	      prelink_cmds_CXX='tpldir=Template.dir~
19032		rm -rf $tpldir~
19033		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19034		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19035	      old_archive_cmds_CXX='tpldir=Template.dir~
19036		rm -rf $tpldir~
19037		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19038		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19039		$RANLIB $oldlib'
19040	      archive_cmds_CXX='tpldir=Template.dir~
19041		rm -rf $tpldir~
19042		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19043		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19044	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19045		rm -rf $tpldir~
19046		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19047		$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'
19048	      ;;
19049	    *) # Version 6 and above use weak symbols
19050	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19051	      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'
19052	      ;;
19053	    esac
19054
19055	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19056	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19057	    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'
19058            ;;
19059	  cxx*)
19060	    # Compaq C++
19061	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19062	    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'
19063
19064	    runpath_var=LD_RUN_PATH
19065	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19066	    hardcode_libdir_separator_CXX=:
19067
19068	    # Commands to make compiler produce verbose output that lists
19069	    # what "hidden" libraries, object files and flags are used when
19070	    # linking a shared library.
19071	    #
19072	    # There doesn't appear to be a way to prevent this compiler from
19073	    # explicitly linking system object files so we need to strip them
19074	    # from the output so that they don't get included in the library
19075	    # dependencies.
19076	    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'
19077	    ;;
19078	  xl* | mpixl* | bgxl*)
19079	    # IBM XL 8.0 on PPC, with GNU ld
19080	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19081	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19082	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19083	    if test "x$supports_anon_versioning" = xyes; then
19084	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19085		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19086		echo "local: *; };" >> $output_objdir/$libname.ver~
19087		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19088	    fi
19089	    ;;
19090	  *)
19091	    case `$CC -V 2>&1 | sed 5q` in
19092	    *Sun\ C*)
19093	      # Sun C++ 5.9
19094	      no_undefined_flag_CXX=' -zdefs'
19095	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19096	      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'
19097	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19098	      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'
19099	      compiler_needs_object_CXX=yes
19100
19101	      # Not sure whether something based on
19102	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19103	      # would be better.
19104	      output_verbose_link_cmd='func_echo_all'
19105
19106	      # Archives containing C++ object files must be created using
19107	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19108	      # necessary to make sure instantiated templates are included
19109	      # in the archive.
19110	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19111	      ;;
19112	    esac
19113	    ;;
19114	esac
19115	;;
19116
19117      lynxos*)
19118        # FIXME: insert proper C++ library support
19119	ld_shlibs_CXX=no
19120	;;
19121
19122      m88k*)
19123        # FIXME: insert proper C++ library support
19124        ld_shlibs_CXX=no
19125	;;
19126
19127      mvs*)
19128        case $cc_basename in
19129          cxx*)
19130	    # FIXME: insert proper C++ library support
19131	    ld_shlibs_CXX=no
19132	    ;;
19133	  *)
19134	    # FIXME: insert proper C++ library support
19135	    ld_shlibs_CXX=no
19136	    ;;
19137	esac
19138	;;
19139
19140      netbsd*)
19141        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19142	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19143	  wlarc=
19144	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19145	  hardcode_direct_CXX=yes
19146	  hardcode_shlibpath_var_CXX=no
19147	fi
19148	# Workaround some broken pre-1.5 toolchains
19149	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19150	;;
19151
19152      *nto* | *qnx*)
19153        ld_shlibs_CXX=yes
19154	;;
19155
19156      openbsd2*)
19157        # C++ shared libraries are fairly broken
19158	ld_shlibs_CXX=no
19159	;;
19160
19161      openbsd*)
19162	if test -f /usr/libexec/ld.so; then
19163	  hardcode_direct_CXX=yes
19164	  hardcode_shlibpath_var_CXX=no
19165	  hardcode_direct_absolute_CXX=yes
19166	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19167	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19168	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19169	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19170	    export_dynamic_flag_spec_CXX='${wl}-E'
19171	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19172	  fi
19173	  output_verbose_link_cmd=func_echo_all
19174	else
19175	  ld_shlibs_CXX=no
19176	fi
19177	;;
19178
19179      osf3* | osf4* | osf5*)
19180        case $cc_basename in
19181          KCC*)
19182	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19183
19184	    # KCC will only create a shared library if the output file
19185	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19186	    # to its proper name (with version) after linking.
19187	    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'
19188
19189	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19190	    hardcode_libdir_separator_CXX=:
19191
19192	    # Archives containing C++ object files must be created using
19193	    # the KAI C++ compiler.
19194	    case $host in
19195	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19196	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19197	    esac
19198	    ;;
19199          RCC*)
19200	    # Rational C++ 2.4.1
19201	    # FIXME: insert proper C++ library support
19202	    ld_shlibs_CXX=no
19203	    ;;
19204          cxx*)
19205	    case $host in
19206	      osf3*)
19207	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19208	        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'
19209	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19210		;;
19211	      *)
19212	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19213	        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'
19214	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19215	          echo "-hidden">> $lib.exp~
19216	          $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~
19217	          $RM $lib.exp'
19218	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19219		;;
19220	    esac
19221
19222	    hardcode_libdir_separator_CXX=:
19223
19224	    # Commands to make compiler produce verbose output that lists
19225	    # what "hidden" libraries, object files and flags are used when
19226	    # linking a shared library.
19227	    #
19228	    # There doesn't appear to be a way to prevent this compiler from
19229	    # explicitly linking system object files so we need to strip them
19230	    # from the output so that they don't get included in the library
19231	    # dependencies.
19232	    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"'
19233	    ;;
19234	  *)
19235	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19236	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19237	      case $host in
19238	        osf3*)
19239	          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'
19240		  ;;
19241	        *)
19242	          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'
19243		  ;;
19244	      esac
19245
19246	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19247	      hardcode_libdir_separator_CXX=:
19248
19249	      # Commands to make compiler produce verbose output that lists
19250	      # what "hidden" libraries, object files and flags are used when
19251	      # linking a shared library.
19252	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19253
19254	    else
19255	      # FIXME: insert proper C++ library support
19256	      ld_shlibs_CXX=no
19257	    fi
19258	    ;;
19259        esac
19260        ;;
19261
19262      psos*)
19263        # FIXME: insert proper C++ library support
19264        ld_shlibs_CXX=no
19265        ;;
19266
19267      sunos4*)
19268        case $cc_basename in
19269          CC*)
19270	    # Sun C++ 4.x
19271	    # FIXME: insert proper C++ library support
19272	    ld_shlibs_CXX=no
19273	    ;;
19274          lcc*)
19275	    # Lucid
19276	    # FIXME: insert proper C++ library support
19277	    ld_shlibs_CXX=no
19278	    ;;
19279          *)
19280	    # FIXME: insert proper C++ library support
19281	    ld_shlibs_CXX=no
19282	    ;;
19283        esac
19284        ;;
19285
19286      solaris*)
19287        case $cc_basename in
19288          CC* | sunCC*)
19289	    # Sun C++ 4.2, 5.x and Centerline C++
19290            archive_cmds_need_lc_CXX=yes
19291	    no_undefined_flag_CXX=' -zdefs'
19292	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19293	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19294	      $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'
19295
19296	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19297	    hardcode_shlibpath_var_CXX=no
19298	    case $host_os in
19299	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19300	      *)
19301		# The compiler driver will combine and reorder linker options,
19302		# but understands `-z linker_flag'.
19303	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19304		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19305	        ;;
19306	    esac
19307	    link_all_deplibs_CXX=yes
19308
19309	    output_verbose_link_cmd='func_echo_all'
19310
19311	    # Archives containing C++ object files must be created using
19312	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19313	    # necessary to make sure instantiated templates are included
19314	    # in the archive.
19315	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19316	    ;;
19317          gcx*)
19318	    # Green Hills C++ Compiler
19319	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19320
19321	    # The C++ compiler must be used to create the archive.
19322	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19323	    ;;
19324          *)
19325	    # GNU C++ compiler with Solaris linker
19326	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19327	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19328	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19329	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19330	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19331		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19332
19333	        # Commands to make compiler produce verbose output that lists
19334	        # what "hidden" libraries, object files and flags are used when
19335	        # linking a shared library.
19336	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19337	      else
19338	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
19339	        # platform.
19340	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19341	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19342		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19343
19344	        # Commands to make compiler produce verbose output that lists
19345	        # what "hidden" libraries, object files and flags are used when
19346	        # linking a shared library.
19347	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19348	      fi
19349
19350	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19351	      case $host_os in
19352		solaris2.[0-5] | solaris2.[0-5].*) ;;
19353		*)
19354		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19355		  ;;
19356	      esac
19357	    fi
19358	    ;;
19359        esac
19360        ;;
19361
19362    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19363      no_undefined_flag_CXX='${wl}-z,text'
19364      archive_cmds_need_lc_CXX=no
19365      hardcode_shlibpath_var_CXX=no
19366      runpath_var='LD_RUN_PATH'
19367
19368      case $cc_basename in
19369        CC*)
19370	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19371	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19372	  ;;
19373	*)
19374	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376	  ;;
19377      esac
19378      ;;
19379
19380      sysv5* | sco3.2v5* | sco5v6*)
19381	# Note: We can NOT use -z defs as we might desire, because we do not
19382	# link with -lc, and that would cause any symbols used from libc to
19383	# always be unresolved, which means just about no library would
19384	# ever link correctly.  If we're not using GNU ld we use -z text
19385	# though, which does catch some bad symbols but isn't as heavy-handed
19386	# as -z defs.
19387	no_undefined_flag_CXX='${wl}-z,text'
19388	allow_undefined_flag_CXX='${wl}-z,nodefs'
19389	archive_cmds_need_lc_CXX=no
19390	hardcode_shlibpath_var_CXX=no
19391	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19392	hardcode_libdir_separator_CXX=':'
19393	link_all_deplibs_CXX=yes
19394	export_dynamic_flag_spec_CXX='${wl}-Bexport'
19395	runpath_var='LD_RUN_PATH'
19396
19397	case $cc_basename in
19398          CC*)
19399	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19400	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19401	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19402	      '"$old_archive_cmds_CXX"
19403	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19404	      '"$reload_cmds_CXX"
19405	    ;;
19406	  *)
19407	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19408	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19409	    ;;
19410	esac
19411      ;;
19412
19413      tandem*)
19414        case $cc_basename in
19415          NCC*)
19416	    # NonStop-UX NCC 3.20
19417	    # FIXME: insert proper C++ library support
19418	    ld_shlibs_CXX=no
19419	    ;;
19420          *)
19421	    # FIXME: insert proper C++ library support
19422	    ld_shlibs_CXX=no
19423	    ;;
19424        esac
19425        ;;
19426
19427      vxworks*)
19428        # FIXME: insert proper C++ library support
19429        ld_shlibs_CXX=no
19430        ;;
19431
19432      *)
19433        # FIXME: insert proper C++ library support
19434        ld_shlibs_CXX=no
19435        ;;
19436    esac
19437
19438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19439$as_echo "$ld_shlibs_CXX" >&6; }
19440    test "$ld_shlibs_CXX" = no && can_build_shared=no
19441
19442    GCC_CXX="$GXX"
19443    LD_CXX="$LD"
19444
19445    ## CAVEAT EMPTOR:
19446    ## There is no encapsulation within the following macros, do not change
19447    ## the running order or otherwise move them around unless you know exactly
19448    ## what you are doing...
19449    # Dependencies to place before and after the object being linked:
19450predep_objects_CXX=
19451postdep_objects_CXX=
19452predeps_CXX=
19453postdeps_CXX=
19454compiler_lib_search_path_CXX=
19455
19456cat > conftest.$ac_ext <<_LT_EOF
19457class Foo
19458{
19459public:
19460  Foo (void) { a = 0; }
19461private:
19462  int a;
19463};
19464_LT_EOF
19465
19466
19467_lt_libdeps_save_CFLAGS=$CFLAGS
19468case "$CC $CFLAGS " in #(
19469*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19470*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19471*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19472esac
19473
19474if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19475  (eval $ac_compile) 2>&5
19476  ac_status=$?
19477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478  test $ac_status = 0; }; then
19479  # Parse the compiler output and extract the necessary
19480  # objects, libraries and library flags.
19481
19482  # Sentinel used to keep track of whether or not we are before
19483  # the conftest object file.
19484  pre_test_object_deps_done=no
19485
19486  for p in `eval "$output_verbose_link_cmd"`; do
19487    case ${prev}${p} in
19488
19489    -L* | -R* | -l*)
19490       # Some compilers place space between "-{L,R}" and the path.
19491       # Remove the space.
19492       if test $p = "-L" ||
19493          test $p = "-R"; then
19494	 prev=$p
19495	 continue
19496       fi
19497
19498       # Expand the sysroot to ease extracting the directories later.
19499       if test -z "$prev"; then
19500         case $p in
19501         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19502         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19503         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19504         esac
19505       fi
19506       case $p in
19507       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19508       esac
19509       if test "$pre_test_object_deps_done" = no; then
19510	 case ${prev} in
19511	 -L | -R)
19512	   # Internal compiler library paths should come after those
19513	   # provided the user.  The postdeps already come after the
19514	   # user supplied libs so there is no need to process them.
19515	   if test -z "$compiler_lib_search_path_CXX"; then
19516	     compiler_lib_search_path_CXX="${prev}${p}"
19517	   else
19518	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19519	   fi
19520	   ;;
19521	 # The "-l" case would never come before the object being
19522	 # linked, so don't bother handling this case.
19523	 esac
19524       else
19525	 if test -z "$postdeps_CXX"; then
19526	   postdeps_CXX="${prev}${p}"
19527	 else
19528	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19529	 fi
19530       fi
19531       prev=
19532       ;;
19533
19534    *.lto.$objext) ;; # Ignore GCC LTO objects
19535    *.$objext)
19536       # This assumes that the test object file only shows up
19537       # once in the compiler output.
19538       if test "$p" = "conftest.$objext"; then
19539	 pre_test_object_deps_done=yes
19540	 continue
19541       fi
19542
19543       if test "$pre_test_object_deps_done" = no; then
19544	 if test -z "$predep_objects_CXX"; then
19545	   predep_objects_CXX="$p"
19546	 else
19547	   predep_objects_CXX="$predep_objects_CXX $p"
19548	 fi
19549       else
19550	 if test -z "$postdep_objects_CXX"; then
19551	   postdep_objects_CXX="$p"
19552	 else
19553	   postdep_objects_CXX="$postdep_objects_CXX $p"
19554	 fi
19555       fi
19556       ;;
19557
19558    *) ;; # Ignore the rest.
19559
19560    esac
19561  done
19562
19563  # Clean up.
19564  rm -f a.out a.exe
19565else
19566  echo "libtool.m4: error: problem compiling CXX test program"
19567fi
19568
19569$RM -f confest.$objext
19570CFLAGS=$_lt_libdeps_save_CFLAGS
19571
19572# PORTME: override above test on systems where it is broken
19573case $host_os in
19574interix[3-9]*)
19575  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19576  # hack all around it, let's just trust "g++" to DTRT.
19577  predep_objects_CXX=
19578  postdep_objects_CXX=
19579  postdeps_CXX=
19580  ;;
19581
19582linux*)
19583  case `$CC -V 2>&1 | sed 5q` in
19584  *Sun\ C*)
19585    # Sun C++ 5.9
19586
19587    # The more standards-conforming stlport4 library is
19588    # incompatible with the Cstd library. Avoid specifying
19589    # it if it's in CXXFLAGS. Ignore libCrun as
19590    # -library=stlport4 depends on it.
19591    case " $CXX $CXXFLAGS " in
19592    *" -library=stlport4 "*)
19593      solaris_use_stlport4=yes
19594      ;;
19595    esac
19596
19597    if test "$solaris_use_stlport4" != yes; then
19598      postdeps_CXX='-library=Cstd -library=Crun'
19599    fi
19600    ;;
19601  esac
19602  ;;
19603
19604solaris*)
19605  case $cc_basename in
19606  CC* | sunCC*)
19607    # The more standards-conforming stlport4 library is
19608    # incompatible with the Cstd library. Avoid specifying
19609    # it if it's in CXXFLAGS. Ignore libCrun as
19610    # -library=stlport4 depends on it.
19611    case " $CXX $CXXFLAGS " in
19612    *" -library=stlport4 "*)
19613      solaris_use_stlport4=yes
19614      ;;
19615    esac
19616
19617    # Adding this requires a known-good setup of shared libraries for
19618    # Sun compiler versions before 5.6, else PIC objects from an old
19619    # archive will be linked into the output, leading to subtle bugs.
19620    if test "$solaris_use_stlport4" != yes; then
19621      postdeps_CXX='-library=Cstd -library=Crun'
19622    fi
19623    ;;
19624  esac
19625  ;;
19626esac
19627
19628
19629case " $postdeps_CXX " in
19630*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19631esac
19632 compiler_lib_search_dirs_CXX=
19633if test -n "${compiler_lib_search_path_CXX}"; then
19634 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19635fi
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667    lt_prog_compiler_wl_CXX=
19668lt_prog_compiler_pic_CXX=
19669lt_prog_compiler_static_CXX=
19670
19671
19672  # C++ specific cases for pic, static, wl, etc.
19673  if test "$GXX" = yes; then
19674    lt_prog_compiler_wl_CXX='-Wl,'
19675    lt_prog_compiler_static_CXX='-static'
19676
19677    case $host_os in
19678    aix*)
19679      # All AIX code is PIC.
19680      if test "$host_cpu" = ia64; then
19681	# AIX 5 now supports IA64 processor
19682	lt_prog_compiler_static_CXX='-Bstatic'
19683      fi
19684      ;;
19685
19686    amigaos*)
19687      case $host_cpu in
19688      powerpc)
19689            # see comment about AmigaOS4 .so support
19690            lt_prog_compiler_pic_CXX='-fPIC'
19691        ;;
19692      m68k)
19693            # FIXME: we need at least 68020 code to build shared libraries, but
19694            # adding the `-m68020' flag to GCC prevents building anything better,
19695            # like `-m68040'.
19696            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19697        ;;
19698      esac
19699      ;;
19700
19701    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19702      # PIC is the default for these OSes.
19703      ;;
19704    mingw* | cygwin* | os2* | pw32* | cegcc*)
19705      # This hack is so that the source file can tell whether it is being
19706      # built for inclusion in a dll (and should export symbols for example).
19707      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19708      # (--disable-auto-import) libraries
19709      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19710      ;;
19711    darwin* | rhapsody*)
19712      # PIC is the default on this platform
19713      # Common symbols not allowed in MH_DYLIB files
19714      lt_prog_compiler_pic_CXX='-fno-common'
19715      ;;
19716    *djgpp*)
19717      # DJGPP does not support shared libraries at all
19718      lt_prog_compiler_pic_CXX=
19719      ;;
19720    haiku*)
19721      # PIC is the default for Haiku.
19722      # The "-static" flag exists, but is broken.
19723      lt_prog_compiler_static_CXX=
19724      ;;
19725    interix[3-9]*)
19726      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19727      # Instead, we relocate shared libraries at runtime.
19728      ;;
19729    sysv4*MP*)
19730      if test -d /usr/nec; then
19731	lt_prog_compiler_pic_CXX=-Kconform_pic
19732      fi
19733      ;;
19734    hpux*)
19735      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19736      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19737      # sets the default TLS model and affects inlining.
19738      case $host_cpu in
19739      hppa*64*)
19740	;;
19741      *)
19742	lt_prog_compiler_pic_CXX='-fPIC'
19743	;;
19744      esac
19745      ;;
19746    *qnx* | *nto*)
19747      # QNX uses GNU C++, but need to define -shared option too, otherwise
19748      # it will coredump.
19749      lt_prog_compiler_pic_CXX='-fPIC -shared'
19750      ;;
19751    *)
19752      lt_prog_compiler_pic_CXX='-fPIC'
19753      ;;
19754    esac
19755  else
19756    case $host_os in
19757      aix[4-9]*)
19758	# All AIX code is PIC.
19759	if test "$host_cpu" = ia64; then
19760	  # AIX 5 now supports IA64 processor
19761	  lt_prog_compiler_static_CXX='-Bstatic'
19762	else
19763	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19764	fi
19765	;;
19766      chorus*)
19767	case $cc_basename in
19768	cxch68*)
19769	  # Green Hills C++ Compiler
19770	  # _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"
19771	  ;;
19772	esac
19773	;;
19774      mingw* | cygwin* | os2* | pw32* | cegcc*)
19775	# This hack is so that the source file can tell whether it is being
19776	# built for inclusion in a dll (and should export symbols for example).
19777	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19778	;;
19779      dgux*)
19780	case $cc_basename in
19781	  ec++*)
19782	    lt_prog_compiler_pic_CXX='-KPIC'
19783	    ;;
19784	  ghcx*)
19785	    # Green Hills C++ Compiler
19786	    lt_prog_compiler_pic_CXX='-pic'
19787	    ;;
19788	  *)
19789	    ;;
19790	esac
19791	;;
19792      freebsd* | dragonfly*)
19793	# FreeBSD uses GNU C++
19794	;;
19795      hpux9* | hpux10* | hpux11*)
19796	case $cc_basename in
19797	  CC*)
19798	    lt_prog_compiler_wl_CXX='-Wl,'
19799	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19800	    if test "$host_cpu" != ia64; then
19801	      lt_prog_compiler_pic_CXX='+Z'
19802	    fi
19803	    ;;
19804	  aCC*)
19805	    lt_prog_compiler_wl_CXX='-Wl,'
19806	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19807	    case $host_cpu in
19808	    hppa*64*|ia64*)
19809	      # +Z the default
19810	      ;;
19811	    *)
19812	      lt_prog_compiler_pic_CXX='+Z'
19813	      ;;
19814	    esac
19815	    ;;
19816	  *)
19817	    ;;
19818	esac
19819	;;
19820      interix*)
19821	# This is c89, which is MS Visual C++ (no shared libs)
19822	# Anyone wants to do a port?
19823	;;
19824      irix5* | irix6* | nonstopux*)
19825	case $cc_basename in
19826	  CC*)
19827	    lt_prog_compiler_wl_CXX='-Wl,'
19828	    lt_prog_compiler_static_CXX='-non_shared'
19829	    # CC pic flag -KPIC is the default.
19830	    ;;
19831	  *)
19832	    ;;
19833	esac
19834	;;
19835      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19836	case $cc_basename in
19837	  KCC*)
19838	    # KAI C++ Compiler
19839	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19840	    lt_prog_compiler_pic_CXX='-fPIC'
19841	    ;;
19842	  ecpc* )
19843	    # old Intel C++ for x86_64 which still supported -KPIC.
19844	    lt_prog_compiler_wl_CXX='-Wl,'
19845	    lt_prog_compiler_pic_CXX='-KPIC'
19846	    lt_prog_compiler_static_CXX='-static'
19847	    ;;
19848	  icpc* )
19849	    # Intel C++, used to be incompatible with GCC.
19850	    # ICC 10 doesn't accept -KPIC any more.
19851	    lt_prog_compiler_wl_CXX='-Wl,'
19852	    lt_prog_compiler_pic_CXX='-fPIC'
19853	    lt_prog_compiler_static_CXX='-static'
19854	    ;;
19855	  pgCC* | pgcpp*)
19856	    # Portland Group C++ compiler
19857	    lt_prog_compiler_wl_CXX='-Wl,'
19858	    lt_prog_compiler_pic_CXX='-fpic'
19859	    lt_prog_compiler_static_CXX='-Bstatic'
19860	    ;;
19861	  cxx*)
19862	    # Compaq C++
19863	    # Make sure the PIC flag is empty.  It appears that all Alpha
19864	    # Linux and Compaq Tru64 Unix objects are PIC.
19865	    lt_prog_compiler_pic_CXX=
19866	    lt_prog_compiler_static_CXX='-non_shared'
19867	    ;;
19868	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19869	    # IBM XL 8.0, 9.0 on PPC and BlueGene
19870	    lt_prog_compiler_wl_CXX='-Wl,'
19871	    lt_prog_compiler_pic_CXX='-qpic'
19872	    lt_prog_compiler_static_CXX='-qstaticlink'
19873	    ;;
19874	  *)
19875	    case `$CC -V 2>&1 | sed 5q` in
19876	    *Sun\ C*)
19877	      # Sun C++ 5.9
19878	      lt_prog_compiler_pic_CXX='-KPIC'
19879	      lt_prog_compiler_static_CXX='-Bstatic'
19880	      lt_prog_compiler_wl_CXX='-Qoption ld '
19881	      ;;
19882	    esac
19883	    ;;
19884	esac
19885	;;
19886      lynxos*)
19887	;;
19888      m88k*)
19889	;;
19890      mvs*)
19891	case $cc_basename in
19892	  cxx*)
19893	    lt_prog_compiler_pic_CXX='-W c,exportall'
19894	    ;;
19895	  *)
19896	    ;;
19897	esac
19898	;;
19899      netbsd*)
19900	;;
19901      *qnx* | *nto*)
19902        # QNX uses GNU C++, but need to define -shared option too, otherwise
19903        # it will coredump.
19904        lt_prog_compiler_pic_CXX='-fPIC -shared'
19905        ;;
19906      osf3* | osf4* | osf5*)
19907	case $cc_basename in
19908	  KCC*)
19909	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19910	    ;;
19911	  RCC*)
19912	    # Rational C++ 2.4.1
19913	    lt_prog_compiler_pic_CXX='-pic'
19914	    ;;
19915	  cxx*)
19916	    # Digital/Compaq C++
19917	    lt_prog_compiler_wl_CXX='-Wl,'
19918	    # Make sure the PIC flag is empty.  It appears that all Alpha
19919	    # Linux and Compaq Tru64 Unix objects are PIC.
19920	    lt_prog_compiler_pic_CXX=
19921	    lt_prog_compiler_static_CXX='-non_shared'
19922	    ;;
19923	  *)
19924	    ;;
19925	esac
19926	;;
19927      psos*)
19928	;;
19929      solaris*)
19930	case $cc_basename in
19931	  CC* | sunCC*)
19932	    # Sun C++ 4.2, 5.x and Centerline C++
19933	    lt_prog_compiler_pic_CXX='-KPIC'
19934	    lt_prog_compiler_static_CXX='-Bstatic'
19935	    lt_prog_compiler_wl_CXX='-Qoption ld '
19936	    ;;
19937	  gcx*)
19938	    # Green Hills C++ Compiler
19939	    lt_prog_compiler_pic_CXX='-PIC'
19940	    ;;
19941	  *)
19942	    ;;
19943	esac
19944	;;
19945      sunos4*)
19946	case $cc_basename in
19947	  CC*)
19948	    # Sun C++ 4.x
19949	    lt_prog_compiler_pic_CXX='-pic'
19950	    lt_prog_compiler_static_CXX='-Bstatic'
19951	    ;;
19952	  lcc*)
19953	    # Lucid
19954	    lt_prog_compiler_pic_CXX='-pic'
19955	    ;;
19956	  *)
19957	    ;;
19958	esac
19959	;;
19960      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19961	case $cc_basename in
19962	  CC*)
19963	    lt_prog_compiler_wl_CXX='-Wl,'
19964	    lt_prog_compiler_pic_CXX='-KPIC'
19965	    lt_prog_compiler_static_CXX='-Bstatic'
19966	    ;;
19967	esac
19968	;;
19969      tandem*)
19970	case $cc_basename in
19971	  NCC*)
19972	    # NonStop-UX NCC 3.20
19973	    lt_prog_compiler_pic_CXX='-KPIC'
19974	    ;;
19975	  *)
19976	    ;;
19977	esac
19978	;;
19979      vxworks*)
19980	;;
19981      *)
19982	lt_prog_compiler_can_build_shared_CXX=no
19983	;;
19984    esac
19985  fi
19986
19987case $host_os in
19988  # For platforms which do not support PIC, -DPIC is meaningless:
19989  *djgpp*)
19990    lt_prog_compiler_pic_CXX=
19991    ;;
19992  *)
19993    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19994    ;;
19995esac
19996
19997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19998$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19999if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20000  $as_echo_n "(cached) " >&6
20001else
20002  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20003fi
20004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20005$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20006lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20007
20008#
20009# Check to make sure the PIC flag actually works.
20010#
20011if test -n "$lt_prog_compiler_pic_CXX"; then
20012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20013$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20014if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20015  $as_echo_n "(cached) " >&6
20016else
20017  lt_cv_prog_compiler_pic_works_CXX=no
20018   ac_outfile=conftest.$ac_objext
20019   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20020   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20021   # Insert the option either (1) after the last *FLAGS variable, or
20022   # (2) before a word containing "conftest.", or (3) at the end.
20023   # Note that $ac_compile itself does not contain backslashes and begins
20024   # with a dollar sign (not a hyphen), so the echo should work correctly.
20025   # The option is referenced via a variable to avoid confusing sed.
20026   lt_compile=`echo "$ac_compile" | $SED \
20027   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20028   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20029   -e 's:$: $lt_compiler_flag:'`
20030   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20031   (eval "$lt_compile" 2>conftest.err)
20032   ac_status=$?
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   if (exit $ac_status) && test -s "$ac_outfile"; then
20036     # The compiler can only warn and ignore the option if not recognized
20037     # So say no if there are warnings other than the usual output.
20038     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20039     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20040     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20041       lt_cv_prog_compiler_pic_works_CXX=yes
20042     fi
20043   fi
20044   $RM conftest*
20045
20046fi
20047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20048$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20049
20050if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20051    case $lt_prog_compiler_pic_CXX in
20052     "" | " "*) ;;
20053     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20054     esac
20055else
20056    lt_prog_compiler_pic_CXX=
20057     lt_prog_compiler_can_build_shared_CXX=no
20058fi
20059
20060fi
20061
20062
20063
20064
20065
20066#
20067# Check to make sure the static flag actually works.
20068#
20069wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20071$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20072if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20073  $as_echo_n "(cached) " >&6
20074else
20075  lt_cv_prog_compiler_static_works_CXX=no
20076   save_LDFLAGS="$LDFLAGS"
20077   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20078   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20079   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20080     # The linker can only warn and ignore the option if not recognized
20081     # So say no if there are warnings
20082     if test -s conftest.err; then
20083       # Append any errors to the config.log.
20084       cat conftest.err 1>&5
20085       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20086       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20087       if diff conftest.exp conftest.er2 >/dev/null; then
20088         lt_cv_prog_compiler_static_works_CXX=yes
20089       fi
20090     else
20091       lt_cv_prog_compiler_static_works_CXX=yes
20092     fi
20093   fi
20094   $RM -r conftest*
20095   LDFLAGS="$save_LDFLAGS"
20096
20097fi
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20099$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20100
20101if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20102    :
20103else
20104    lt_prog_compiler_static_CXX=
20105fi
20106
20107
20108
20109
20110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20112if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20113  $as_echo_n "(cached) " >&6
20114else
20115  lt_cv_prog_compiler_c_o_CXX=no
20116   $RM -r conftest 2>/dev/null
20117   mkdir conftest
20118   cd conftest
20119   mkdir out
20120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20121
20122   lt_compiler_flag="-o out/conftest2.$ac_objext"
20123   # Insert the option either (1) after the last *FLAGS variable, or
20124   # (2) before a word containing "conftest.", or (3) at the end.
20125   # Note that $ac_compile itself does not contain backslashes and begins
20126   # with a dollar sign (not a hyphen), so the echo should work correctly.
20127   lt_compile=`echo "$ac_compile" | $SED \
20128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20130   -e 's:$: $lt_compiler_flag:'`
20131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20132   (eval "$lt_compile" 2>out/conftest.err)
20133   ac_status=$?
20134   cat out/conftest.err >&5
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20137   then
20138     # The compiler can only warn and ignore the option if not recognized
20139     # So say no if there are warnings
20140     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20141     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20142     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20143       lt_cv_prog_compiler_c_o_CXX=yes
20144     fi
20145   fi
20146   chmod u+w . 2>&5
20147   $RM conftest*
20148   # SGI C++ compiler will create directory out/ii_files/ for
20149   # template instantiation
20150   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20151   $RM out/* && rmdir out
20152   cd ..
20153   $RM -r conftest
20154   $RM conftest*
20155
20156fi
20157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20158$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20159
20160
20161
20162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20163$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20164if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20165  $as_echo_n "(cached) " >&6
20166else
20167  lt_cv_prog_compiler_c_o_CXX=no
20168   $RM -r conftest 2>/dev/null
20169   mkdir conftest
20170   cd conftest
20171   mkdir out
20172   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20173
20174   lt_compiler_flag="-o out/conftest2.$ac_objext"
20175   # Insert the option either (1) after the last *FLAGS variable, or
20176   # (2) before a word containing "conftest.", or (3) at the end.
20177   # Note that $ac_compile itself does not contain backslashes and begins
20178   # with a dollar sign (not a hyphen), so the echo should work correctly.
20179   lt_compile=`echo "$ac_compile" | $SED \
20180   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20181   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20182   -e 's:$: $lt_compiler_flag:'`
20183   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20184   (eval "$lt_compile" 2>out/conftest.err)
20185   ac_status=$?
20186   cat out/conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20189   then
20190     # The compiler can only warn and ignore the option if not recognized
20191     # So say no if there are warnings
20192     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20193     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20194     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20195       lt_cv_prog_compiler_c_o_CXX=yes
20196     fi
20197   fi
20198   chmod u+w . 2>&5
20199   $RM conftest*
20200   # SGI C++ compiler will create directory out/ii_files/ for
20201   # template instantiation
20202   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20203   $RM out/* && rmdir out
20204   cd ..
20205   $RM -r conftest
20206   $RM conftest*
20207
20208fi
20209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20210$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20211
20212
20213
20214
20215hard_links="nottested"
20216if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20217  # do not overwrite the value of need_locks provided by the user
20218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20219$as_echo_n "checking if we can lock with hard links... " >&6; }
20220  hard_links=yes
20221  $RM conftest*
20222  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20223  touch conftest.a
20224  ln conftest.a conftest.b 2>&5 || hard_links=no
20225  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20227$as_echo "$hard_links" >&6; }
20228  if test "$hard_links" = no; then
20229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20230$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20231    need_locks=warn
20232  fi
20233else
20234  need_locks=no
20235fi
20236
20237
20238
20239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20241
20242  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20243  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20244  case $host_os in
20245  aix[4-9]*)
20246    # If we're using GNU nm, then we don't want the "-C" option.
20247    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20248    # Also, AIX nm treats weak defined symbols like other global defined
20249    # symbols, whereas GNU nm marks them as "W".
20250    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20251      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'
20252    else
20253      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'
20254    fi
20255    ;;
20256  pw32*)
20257    export_symbols_cmds_CXX="$ltdll_cmds"
20258    ;;
20259  cygwin* | mingw* | cegcc*)
20260    case $cc_basename in
20261    cl*)
20262      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20263      ;;
20264    *)
20265      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'
20266      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20267      ;;
20268    esac
20269    ;;
20270  *)
20271    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20272    ;;
20273  esac
20274
20275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20276$as_echo "$ld_shlibs_CXX" >&6; }
20277test "$ld_shlibs_CXX" = no && can_build_shared=no
20278
20279with_gnu_ld_CXX=$with_gnu_ld
20280
20281
20282
20283
20284
20285
20286#
20287# Do we need to explicitly link libc?
20288#
20289case "x$archive_cmds_need_lc_CXX" in
20290x|xyes)
20291  # Assume -lc should be added
20292  archive_cmds_need_lc_CXX=yes
20293
20294  if test "$enable_shared" = yes && test "$GCC" = yes; then
20295    case $archive_cmds_CXX in
20296    *'~'*)
20297      # FIXME: we may have to deal with multi-command sequences.
20298      ;;
20299    '$CC '*)
20300      # Test whether the compiler implicitly links with -lc since on some
20301      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20302      # to ld, don't add -lc before -lgcc.
20303      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20304$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20305if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
20306  $as_echo_n "(cached) " >&6
20307else
20308  $RM conftest*
20309	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20310
20311	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20312  (eval $ac_compile) 2>&5
20313  ac_status=$?
20314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20315  test $ac_status = 0; } 2>conftest.err; then
20316	  soname=conftest
20317	  lib=conftest
20318	  libobjs=conftest.$ac_objext
20319	  deplibs=
20320	  wl=$lt_prog_compiler_wl_CXX
20321	  pic_flag=$lt_prog_compiler_pic_CXX
20322	  compiler_flags=-v
20323	  linker_flags=-v
20324	  verstring=
20325	  output_objdir=.
20326	  libname=conftest
20327	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20328	  allow_undefined_flag_CXX=
20329	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20330  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20331  ac_status=$?
20332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20333  test $ac_status = 0; }
20334	  then
20335	    lt_cv_archive_cmds_need_lc_CXX=no
20336	  else
20337	    lt_cv_archive_cmds_need_lc_CXX=yes
20338	  fi
20339	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20340	else
20341	  cat conftest.err 1>&5
20342	fi
20343	$RM conftest*
20344
20345fi
20346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20347$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20348      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20349      ;;
20350    esac
20351  fi
20352  ;;
20353esac
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20417$as_echo_n "checking dynamic linker characteristics... " >&6; }
20418
20419library_names_spec=
20420libname_spec='lib$name'
20421soname_spec=
20422shrext_cmds=".so"
20423postinstall_cmds=
20424postuninstall_cmds=
20425finish_cmds=
20426finish_eval=
20427shlibpath_var=
20428shlibpath_overrides_runpath=unknown
20429version_type=none
20430dynamic_linker="$host_os ld.so"
20431sys_lib_dlsearch_path_spec="/lib /usr/lib"
20432need_lib_prefix=unknown
20433hardcode_into_libs=no
20434
20435# when you set need_version to no, make sure it does not cause -set_version
20436# flags to be left without arguments
20437need_version=unknown
20438
20439case $host_os in
20440aix3*)
20441  version_type=linux # correct to gnu/linux during the next big refactor
20442  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20443  shlibpath_var=LIBPATH
20444
20445  # AIX 3 has no versioning support, so we append a major version to the name.
20446  soname_spec='${libname}${release}${shared_ext}$major'
20447  ;;
20448
20449aix[4-9]*)
20450  version_type=linux # correct to gnu/linux during the next big refactor
20451  need_lib_prefix=no
20452  need_version=no
20453  hardcode_into_libs=yes
20454  if test "$host_cpu" = ia64; then
20455    # AIX 5 supports IA64
20456    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20457    shlibpath_var=LD_LIBRARY_PATH
20458  else
20459    # With GCC up to 2.95.x, collect2 would create an import file
20460    # for dependence libraries.  The import file would start with
20461    # the line `#! .'.  This would cause the generated library to
20462    # depend on `.', always an invalid library.  This was fixed in
20463    # development snapshots of GCC prior to 3.0.
20464    case $host_os in
20465      aix4 | aix4.[01] | aix4.[01].*)
20466      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20467	   echo ' yes '
20468	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20469	:
20470      else
20471	can_build_shared=no
20472      fi
20473      ;;
20474    esac
20475    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20476    # soname into executable. Probably we can add versioning support to
20477    # collect2, so additional links can be useful in future.
20478    if test "$aix_use_runtimelinking" = yes; then
20479      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20480      # instead of lib<name>.a to let people know that these are not
20481      # typical AIX shared libraries.
20482      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483    else
20484      # We preserve .a as extension for shared libraries through AIX4.2
20485      # and later when we are not doing run time linking.
20486      library_names_spec='${libname}${release}.a $libname.a'
20487      soname_spec='${libname}${release}${shared_ext}$major'
20488    fi
20489    shlibpath_var=LIBPATH
20490  fi
20491  ;;
20492
20493amigaos*)
20494  case $host_cpu in
20495  powerpc)
20496    # Since July 2007 AmigaOS4 officially supports .so libraries.
20497    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20498    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499    ;;
20500  m68k)
20501    library_names_spec='$libname.ixlibrary $libname.a'
20502    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20503    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'
20504    ;;
20505  esac
20506  ;;
20507
20508beos*)
20509  library_names_spec='${libname}${shared_ext}'
20510  dynamic_linker="$host_os ld.so"
20511  shlibpath_var=LIBRARY_PATH
20512  ;;
20513
20514bsdi[45]*)
20515  version_type=linux # correct to gnu/linux during the next big refactor
20516  need_version=no
20517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518  soname_spec='${libname}${release}${shared_ext}$major'
20519  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20520  shlibpath_var=LD_LIBRARY_PATH
20521  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20522  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20523  # the default ld.so.conf also contains /usr/contrib/lib and
20524  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20525  # libtool to hard-code these into programs
20526  ;;
20527
20528cygwin* | mingw* | pw32* | cegcc*)
20529  version_type=windows
20530  shrext_cmds=".dll"
20531  need_version=no
20532  need_lib_prefix=no
20533
20534  case $GCC,$cc_basename in
20535  yes,*)
20536    # gcc
20537    library_names_spec='$libname.dll.a'
20538    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20539    postinstall_cmds='base_file=`basename \${file}`~
20540      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20541      dldir=$destdir/`dirname \$dlpath`~
20542      test -d \$dldir || mkdir -p \$dldir~
20543      $install_prog $dir/$dlname \$dldir/$dlname~
20544      chmod a+x \$dldir/$dlname~
20545      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20546        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20547      fi'
20548    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20549      dlpath=$dir/\$dldll~
20550       $RM \$dlpath'
20551    shlibpath_overrides_runpath=yes
20552
20553    case $host_os in
20554    cygwin*)
20555      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20556      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20557
20558      ;;
20559    mingw* | cegcc*)
20560      # MinGW DLLs use traditional 'lib' prefix
20561      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20562      ;;
20563    pw32*)
20564      # pw32 DLLs use 'pw' prefix rather than 'lib'
20565      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20566      ;;
20567    esac
20568    dynamic_linker='Win32 ld.exe'
20569    ;;
20570
20571  *,cl*)
20572    # Native MSVC
20573    libname_spec='$name'
20574    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575    library_names_spec='${libname}.dll.lib'
20576
20577    case $build_os in
20578    mingw*)
20579      sys_lib_search_path_spec=
20580      lt_save_ifs=$IFS
20581      IFS=';'
20582      for lt_path in $LIB
20583      do
20584        IFS=$lt_save_ifs
20585        # Let DOS variable expansion print the short 8.3 style file name.
20586        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20587        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20588      done
20589      IFS=$lt_save_ifs
20590      # Convert to MSYS style.
20591      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20592      ;;
20593    cygwin*)
20594      # Convert to unix form, then to dos form, then back to unix form
20595      # but this time dos style (no spaces!) so that the unix form looks
20596      # like /cygdrive/c/PROGRA~1:/cygdr...
20597      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20598      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20599      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20600      ;;
20601    *)
20602      sys_lib_search_path_spec="$LIB"
20603      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20604        # It is most probably a Windows format PATH.
20605        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20606      else
20607        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20608      fi
20609      # FIXME: find the short name or the path components, as spaces are
20610      # common. (e.g. "Program Files" -> "PROGRA~1")
20611      ;;
20612    esac
20613
20614    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20615    postinstall_cmds='base_file=`basename \${file}`~
20616      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20617      dldir=$destdir/`dirname \$dlpath`~
20618      test -d \$dldir || mkdir -p \$dldir~
20619      $install_prog $dir/$dlname \$dldir/$dlname'
20620    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20621      dlpath=$dir/\$dldll~
20622       $RM \$dlpath'
20623    shlibpath_overrides_runpath=yes
20624    dynamic_linker='Win32 link.exe'
20625    ;;
20626
20627  *)
20628    # Assume MSVC wrapper
20629    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20630    dynamic_linker='Win32 ld.exe'
20631    ;;
20632  esac
20633  # FIXME: first we should search . and the directory the executable is in
20634  shlibpath_var=PATH
20635  ;;
20636
20637darwin* | rhapsody*)
20638  dynamic_linker="$host_os dyld"
20639  version_type=darwin
20640  need_lib_prefix=no
20641  need_version=no
20642  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20643  soname_spec='${libname}${release}${major}$shared_ext'
20644  shlibpath_overrides_runpath=yes
20645  shlibpath_var=DYLD_LIBRARY_PATH
20646  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20647
20648  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20649  ;;
20650
20651dgux*)
20652  version_type=linux # correct to gnu/linux during the next big refactor
20653  need_lib_prefix=no
20654  need_version=no
20655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20656  soname_spec='${libname}${release}${shared_ext}$major'
20657  shlibpath_var=LD_LIBRARY_PATH
20658  ;;
20659
20660freebsd* | dragonfly*)
20661  # DragonFly does not have aout.  When/if they implement a new
20662  # versioning mechanism, adjust this.
20663  if test -x /usr/bin/objformat; then
20664    objformat=`/usr/bin/objformat`
20665  else
20666    case $host_os in
20667    freebsd[23].*) objformat=aout ;;
20668    *) objformat=elf ;;
20669    esac
20670  fi
20671  version_type=freebsd-$objformat
20672  case $version_type in
20673    freebsd-elf*)
20674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20675      need_version=no
20676      need_lib_prefix=no
20677      ;;
20678    freebsd-*)
20679      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20680      need_version=yes
20681      ;;
20682  esac
20683  shlibpath_var=LD_LIBRARY_PATH
20684  case $host_os in
20685  freebsd2.*)
20686    shlibpath_overrides_runpath=yes
20687    ;;
20688  freebsd3.[01]* | freebsdelf3.[01]*)
20689    shlibpath_overrides_runpath=yes
20690    hardcode_into_libs=yes
20691    ;;
20692  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20693  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20694    shlibpath_overrides_runpath=no
20695    hardcode_into_libs=yes
20696    ;;
20697  *) # from 4.6 on, and DragonFly
20698    shlibpath_overrides_runpath=yes
20699    hardcode_into_libs=yes
20700    ;;
20701  esac
20702  ;;
20703
20704gnu*)
20705  version_type=linux # correct to gnu/linux during the next big refactor
20706  need_lib_prefix=no
20707  need_version=no
20708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20709  soname_spec='${libname}${release}${shared_ext}$major'
20710  shlibpath_var=LD_LIBRARY_PATH
20711  shlibpath_overrides_runpath=no
20712  hardcode_into_libs=yes
20713  ;;
20714
20715haiku*)
20716  version_type=linux # correct to gnu/linux during the next big refactor
20717  need_lib_prefix=no
20718  need_version=no
20719  dynamic_linker="$host_os runtime_loader"
20720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20721  soname_spec='${libname}${release}${shared_ext}$major'
20722  shlibpath_var=LIBRARY_PATH
20723  shlibpath_overrides_runpath=yes
20724  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20725  hardcode_into_libs=yes
20726  ;;
20727
20728hpux9* | hpux10* | hpux11*)
20729  # Give a soname corresponding to the major version so that dld.sl refuses to
20730  # link against other versions.
20731  version_type=sunos
20732  need_lib_prefix=no
20733  need_version=no
20734  case $host_cpu in
20735  ia64*)
20736    shrext_cmds='.so'
20737    hardcode_into_libs=yes
20738    dynamic_linker="$host_os dld.so"
20739    shlibpath_var=LD_LIBRARY_PATH
20740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20742    soname_spec='${libname}${release}${shared_ext}$major'
20743    if test "X$HPUX_IA64_MODE" = X32; then
20744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20745    else
20746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20747    fi
20748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20749    ;;
20750  hppa*64*)
20751    shrext_cmds='.sl'
20752    hardcode_into_libs=yes
20753    dynamic_linker="$host_os dld.sl"
20754    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20755    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20756    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757    soname_spec='${libname}${release}${shared_ext}$major'
20758    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20759    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20760    ;;
20761  *)
20762    shrext_cmds='.sl'
20763    dynamic_linker="$host_os dld.sl"
20764    shlibpath_var=SHLIB_PATH
20765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20767    soname_spec='${libname}${release}${shared_ext}$major'
20768    ;;
20769  esac
20770  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20771  postinstall_cmds='chmod 555 $lib'
20772  # or fails outright, so override atomically:
20773  install_override_mode=555
20774  ;;
20775
20776interix[3-9]*)
20777  version_type=linux # correct to gnu/linux during the next big refactor
20778  need_lib_prefix=no
20779  need_version=no
20780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20781  soname_spec='${libname}${release}${shared_ext}$major'
20782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20783  shlibpath_var=LD_LIBRARY_PATH
20784  shlibpath_overrides_runpath=no
20785  hardcode_into_libs=yes
20786  ;;
20787
20788irix5* | irix6* | nonstopux*)
20789  case $host_os in
20790    nonstopux*) version_type=nonstopux ;;
20791    *)
20792	if test "$lt_cv_prog_gnu_ld" = yes; then
20793		version_type=linux # correct to gnu/linux during the next big refactor
20794	else
20795		version_type=irix
20796	fi ;;
20797  esac
20798  need_lib_prefix=no
20799  need_version=no
20800  soname_spec='${libname}${release}${shared_ext}$major'
20801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20802  case $host_os in
20803  irix5* | nonstopux*)
20804    libsuff= shlibsuff=
20805    ;;
20806  *)
20807    case $LD in # libtool.m4 will add one of these switches to LD
20808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20809      libsuff= shlibsuff= libmagic=32-bit;;
20810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20811      libsuff=32 shlibsuff=N32 libmagic=N32;;
20812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20814    *) libsuff= shlibsuff= libmagic=never-match;;
20815    esac
20816    ;;
20817  esac
20818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20819  shlibpath_overrides_runpath=no
20820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20822  hardcode_into_libs=yes
20823  ;;
20824
20825# No shared lib support for Linux oldld, aout, or coff.
20826linux*oldld* | linux*aout* | linux*coff*)
20827  dynamic_linker=no
20828  ;;
20829
20830# This must be glibc/ELF.
20831linux* | k*bsd*-gnu | kopensolaris*-gnu)
20832  version_type=linux # correct to gnu/linux during the next big refactor
20833  need_lib_prefix=no
20834  need_version=no
20835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836  soname_spec='${libname}${release}${shared_ext}$major'
20837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20838  shlibpath_var=LD_LIBRARY_PATH
20839  shlibpath_overrides_runpath=no
20840
20841  # Some binutils ld are patched to set DT_RUNPATH
20842  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20843  $as_echo_n "(cached) " >&6
20844else
20845  lt_cv_shlibpath_overrides_runpath=no
20846    save_LDFLAGS=$LDFLAGS
20847    save_libdir=$libdir
20848    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20849	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851/* end confdefs.h.  */
20852
20853int
20854main ()
20855{
20856
20857  ;
20858  return 0;
20859}
20860_ACEOF
20861if ac_fn_cxx_try_link "$LINENO"; then :
20862  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20863  lt_cv_shlibpath_overrides_runpath=yes
20864fi
20865fi
20866rm -f core conftest.err conftest.$ac_objext \
20867    conftest$ac_exeext conftest.$ac_ext
20868    LDFLAGS=$save_LDFLAGS
20869    libdir=$save_libdir
20870
20871fi
20872
20873  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20874
20875  # This implies no fast_install, which is unacceptable.
20876  # Some rework will be needed to allow for fast_install
20877  # before this can be enabled.
20878  hardcode_into_libs=yes
20879
20880  # Add ABI-specific directories to the system library path.
20881  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20882
20883  # Append ld.so.conf contents to the search path
20884  if test -f /etc/ld.so.conf; then
20885    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' ' '`
20886    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20887
20888  fi
20889
20890  # We used to test for /lib/ld.so.1 and disable shared libraries on
20891  # powerpc, because MkLinux only supported shared libraries with the
20892  # GNU dynamic linker.  Since this was broken with cross compilers,
20893  # most powerpc-linux boxes support dynamic linking these days and
20894  # people can always --disable-shared, the test was removed, and we
20895  # assume the GNU/Linux dynamic linker is in use.
20896  dynamic_linker='GNU/Linux ld.so'
20897  ;;
20898
20899netbsd*)
20900  version_type=sunos
20901  need_lib_prefix=no
20902  need_version=no
20903  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20904    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20905    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20906    dynamic_linker='NetBSD (a.out) ld.so'
20907  else
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    dynamic_linker='NetBSD ld.elf_so'
20911  fi
20912  shlibpath_var=LD_LIBRARY_PATH
20913  shlibpath_overrides_runpath=yes
20914  hardcode_into_libs=yes
20915  ;;
20916
20917newsos6)
20918  version_type=linux # correct to gnu/linux during the next big refactor
20919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20920  shlibpath_var=LD_LIBRARY_PATH
20921  shlibpath_overrides_runpath=yes
20922  ;;
20923
20924*nto* | *qnx*)
20925  version_type=qnx
20926  need_lib_prefix=no
20927  need_version=no
20928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929  soname_spec='${libname}${release}${shared_ext}$major'
20930  shlibpath_var=LD_LIBRARY_PATH
20931  shlibpath_overrides_runpath=no
20932  hardcode_into_libs=yes
20933  dynamic_linker='ldqnx.so'
20934  ;;
20935
20936openbsd*)
20937  version_type=sunos
20938  sys_lib_dlsearch_path_spec="/usr/lib"
20939  need_lib_prefix=no
20940  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20941  case $host_os in
20942    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
20943    *)				need_version=no  ;;
20944  esac
20945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20946  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20947  shlibpath_var=LD_LIBRARY_PATH
20948  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20949    case $host_os in
20950      openbsd2.[89] | openbsd2.[89].*)
20951	shlibpath_overrides_runpath=no
20952	;;
20953      *)
20954	shlibpath_overrides_runpath=yes
20955	;;
20956      esac
20957  else
20958    shlibpath_overrides_runpath=yes
20959  fi
20960  ;;
20961
20962os2*)
20963  libname_spec='$name'
20964  shrext_cmds=".dll"
20965  need_lib_prefix=no
20966  library_names_spec='$libname${shared_ext} $libname.a'
20967  dynamic_linker='OS/2 ld.exe'
20968  shlibpath_var=LIBPATH
20969  ;;
20970
20971osf3* | osf4* | osf5*)
20972  version_type=osf
20973  need_lib_prefix=no
20974  need_version=no
20975  soname_spec='${libname}${release}${shared_ext}$major'
20976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20977  shlibpath_var=LD_LIBRARY_PATH
20978  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20979  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20980  ;;
20981
20982rdos*)
20983  dynamic_linker=no
20984  ;;
20985
20986solaris*)
20987  version_type=linux # correct to gnu/linux during the next big refactor
20988  need_lib_prefix=no
20989  need_version=no
20990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991  soname_spec='${libname}${release}${shared_ext}$major'
20992  shlibpath_var=LD_LIBRARY_PATH
20993  shlibpath_overrides_runpath=yes
20994  hardcode_into_libs=yes
20995  # ldd complains unless libraries are executable
20996  postinstall_cmds='chmod +x $lib'
20997  ;;
20998
20999sunos4*)
21000  version_type=sunos
21001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21002  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21003  shlibpath_var=LD_LIBRARY_PATH
21004  shlibpath_overrides_runpath=yes
21005  if test "$with_gnu_ld" = yes; then
21006    need_lib_prefix=no
21007  fi
21008  need_version=yes
21009  ;;
21010
21011sysv4 | sysv4.3*)
21012  version_type=linux # correct to gnu/linux during the next big refactor
21013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014  soname_spec='${libname}${release}${shared_ext}$major'
21015  shlibpath_var=LD_LIBRARY_PATH
21016  case $host_vendor in
21017    sni)
21018      shlibpath_overrides_runpath=no
21019      need_lib_prefix=no
21020      runpath_var=LD_RUN_PATH
21021      ;;
21022    siemens)
21023      need_lib_prefix=no
21024      ;;
21025    motorola)
21026      need_lib_prefix=no
21027      need_version=no
21028      shlibpath_overrides_runpath=no
21029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21030      ;;
21031  esac
21032  ;;
21033
21034sysv4*MP*)
21035  if test -d /usr/nec ;then
21036    version_type=linux # correct to gnu/linux during the next big refactor
21037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21038    soname_spec='$libname${shared_ext}.$major'
21039    shlibpath_var=LD_LIBRARY_PATH
21040  fi
21041  ;;
21042
21043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21044  version_type=freebsd-elf
21045  need_lib_prefix=no
21046  need_version=no
21047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21048  soname_spec='${libname}${release}${shared_ext}$major'
21049  shlibpath_var=LD_LIBRARY_PATH
21050  shlibpath_overrides_runpath=yes
21051  hardcode_into_libs=yes
21052  if test "$with_gnu_ld" = yes; then
21053    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21054  else
21055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21056    case $host_os in
21057      sco3.2v5*)
21058        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21059	;;
21060    esac
21061  fi
21062  sys_lib_dlsearch_path_spec='/usr/lib'
21063  ;;
21064
21065tpf*)
21066  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21067  version_type=linux # correct to gnu/linux during the next big refactor
21068  need_lib_prefix=no
21069  need_version=no
21070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071  shlibpath_var=LD_LIBRARY_PATH
21072  shlibpath_overrides_runpath=no
21073  hardcode_into_libs=yes
21074  ;;
21075
21076uts4*)
21077  version_type=linux # correct to gnu/linux during the next big refactor
21078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079  soname_spec='${libname}${release}${shared_ext}$major'
21080  shlibpath_var=LD_LIBRARY_PATH
21081  ;;
21082
21083*)
21084  dynamic_linker=no
21085  ;;
21086esac
21087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21088$as_echo "$dynamic_linker" >&6; }
21089test "$dynamic_linker" = no && can_build_shared=no
21090
21091variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21092if test "$GCC" = yes; then
21093  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21094fi
21095
21096if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21097  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21098fi
21099if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21100  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21101fi
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21141$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21142hardcode_action_CXX=
21143if test -n "$hardcode_libdir_flag_spec_CXX" ||
21144   test -n "$runpath_var_CXX" ||
21145   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21146
21147  # We can hardcode non-existent directories.
21148  if test "$hardcode_direct_CXX" != no &&
21149     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21150     # have to relink, otherwise we might link with an installed library
21151     # when we should be linking with a yet-to-be-installed one
21152     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21153     test "$hardcode_minus_L_CXX" != no; then
21154    # Linking always hardcodes the temporary library directory.
21155    hardcode_action_CXX=relink
21156  else
21157    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21158    hardcode_action_CXX=immediate
21159  fi
21160else
21161  # We cannot hardcode anything, or else we can only hardcode existing
21162  # directories.
21163  hardcode_action_CXX=unsupported
21164fi
21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21166$as_echo "$hardcode_action_CXX" >&6; }
21167
21168if test "$hardcode_action_CXX" = relink ||
21169   test "$inherit_rpath_CXX" = yes; then
21170  # Fast installation is not supported
21171  enable_fast_install=no
21172elif test "$shlibpath_overrides_runpath" = yes ||
21173     test "$enable_shared" = no; then
21174  # Fast installation is not necessary
21175  enable_fast_install=needless
21176fi
21177
21178
21179
21180
21181
21182
21183
21184  fi # test -n "$compiler"
21185
21186  CC=$lt_save_CC
21187  CFLAGS=$lt_save_CFLAGS
21188  LDCXX=$LD
21189  LD=$lt_save_LD
21190  GCC=$lt_save_GCC
21191  with_gnu_ld=$lt_save_with_gnu_ld
21192  lt_cv_path_LDCXX=$lt_cv_path_LD
21193  lt_cv_path_LD=$lt_save_path_LD
21194  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21195  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21196fi # test "$_lt_caught_CXX_error" != yes
21197
21198ac_ext=c
21199ac_cpp='$CPP $CPPFLAGS'
21200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202ac_compiler_gnu=$ac_cv_c_compiler_gnu
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218        ac_config_commands="$ac_config_commands libtool"
21219
21220
21221
21222
21223# Only expand once:
21224
21225
21226
21227
21228
21229# Check to see if building shared libraries
21230libtool_build_shared_libs='no'
21231if test "$enable_shared" = 'yes'; then
21232    libtool_build_shared_libs='yes'
21233fi
21234
21235# Check to see if building static libraries
21236libtool_build_static_libs='no'
21237if test "$enable_static" = 'yes'; then
21238    libtool_build_static_libs='yes'
21239fi
21240
21241 if test "${libtool_build_shared_libs}" = 'yes'; then
21242  WITH_SHARED_LIBS_TRUE=
21243  WITH_SHARED_LIBS_FALSE='#'
21244else
21245  WITH_SHARED_LIBS_TRUE='#'
21246  WITH_SHARED_LIBS_FALSE=
21247fi
21248
21249#
21250# Enable support for building loadable modules
21251#
21252build_modules='no'
21253
21254# Check whether --with-modules was given.
21255if test "${with_modules+set}" = set; then :
21256  withval=$with_modules; with_modules=$withval
21257else
21258  with_modules='no'
21259fi
21260
21261
21262# Only allow building loadable modules if we are building shared libraries
21263if test "$with_modules" != 'no' ; then
21264    if test "$libtool_build_shared_libs" = 'no'; then
21265        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21266$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21267    build_modules='no'
21268  else
21269    build_modules='yes'
21270  fi
21271fi
21272if test "$build_modules" != 'no' ; then
21273
21274$as_echo "#define BUILD_MODULES 1" >>confdefs.h
21275
21276    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
21277fi
21278 if test "$build_modules" != 'no'; then
21279  WITH_MODULES_TRUE=
21280  WITH_MODULES_FALSE='#'
21281else
21282  WITH_MODULES_TRUE='#'
21283  WITH_MODULES_FALSE=
21284fi
21285
21286
21287# Enable build using delegate libraries built in subdirectories rather than installed
21288# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
21289# Check whether --enable-delegate-build was given.
21290if test "${enable_delegate_build+set}" = set; then :
21291  enableval=$enable_delegate_build; enable_delegate_build=$enableval
21292else
21293  enable_delegate_build='no'
21294fi
21295
21296
21297# Check whether --enable-deprecated was given.
21298if test "${enable_deprecated+set}" = set; then :
21299  enableval=$enable_deprecated; enable_deprecated=$enableval
21300else
21301  enable_deprecated='no'
21302fi
21303
21304
21305if test "$enable_deprecated" = 'yes'; then
21306
21307$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21308
21309else
21310  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21311fi
21312
21313# Build a version of ImageMagick which operates uninstalled.
21314# Used to build distributions located via MAGICK_HOME / executable path
21315# Check whether --enable-installed was given.
21316if test "${enable_installed+set}" = set; then :
21317  enableval=$enable_installed; enable_installed=$enableval
21318else
21319  enable_installed='yes'
21320fi
21321
21322
21323if test "$enable_installed" = 'yes'; then
21324
21325$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21326
21327else
21328    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21329fi
21330
21331# Permit enciphering and deciphering image pixels.
21332# Check whether --enable-cipher was given.
21333if test "${enable_cipher+set}" = set; then :
21334  enableval=$enable_cipher; enable_cipher=$enableval
21335else
21336  enable_cipher='yes'
21337fi
21338
21339
21340if test "$enable_cipher" = 'yes'; then
21341
21342$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21343
21344fi
21345
21346# Build a zero-configuration version of ImageMagick.
21347# Check whether --enable-zero-configuration was given.
21348if test "${enable_zero_configuration+set}" = set; then :
21349  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21350else
21351  enable_zero_configuration='no'
21352fi
21353
21354
21355if test "$enable_zero_configuration" = 'yes'; then
21356
21357$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21358
21359    MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21360fi
21361
21362# Build a high dynamic range version of ImageMagick.
21363# Check whether --enable-hdri was given.
21364if test "${enable_hdri+set}" = set; then :
21365  enableval=$enable_hdri; enable_hdri=$enableval
21366else
21367  enable_hdri='yes'
21368fi
21369
21370
21371MAGICK_HDRI=""
21372if test "$enable_hdri" = 'yes'; then
21373    MAGICK_HDRI="HDRI"
21374    magick_hdri_enable='1';
21375    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21376else
21377    magick_hdri_enable='0'
21378fi
21379
21380cat >>confdefs.h <<_ACEOF
21381#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21382_ACEOF
21383
21384MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21385CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21386CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21387
21388# Build a version of ImageMagick with assert statements.
21389# Check whether --enable-assert was given.
21390if test "${enable_assert+set}" = set; then :
21391  enableval=$enable_assert; enable_assert=$enableval
21392else
21393  enable_assert='yes'
21394fi
21395
21396
21397if test "$enable_assert" = 'no'; then
21398
21399$as_echo "#define NDEBUG 1" >>confdefs.h
21400
21401fi
21402
21403# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21404
21405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21406$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21407    # Check whether --enable-maintainer-mode was given.
21408if test "${enable_maintainer_mode+set}" = set; then :
21409  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21410else
21411  USE_MAINTAINER_MODE=no
21412fi
21413
21414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21415$as_echo "$USE_MAINTAINER_MODE" >&6; }
21416   if test $USE_MAINTAINER_MODE = yes; then
21417  MAINTAINER_MODE_TRUE=
21418  MAINTAINER_MODE_FALSE='#'
21419else
21420  MAINTAINER_MODE_TRUE='#'
21421  MAINTAINER_MODE_FALSE=
21422fi
21423
21424  MAINT=$MAINTAINER_MODE_TRUE
21425
21426
21427
21428# Enable hugepages support
21429# Check whether --enable-hugepages was given.
21430if test "${enable_hugepages+set}" = set; then :
21431  enableval=$enable_hugepages; enable_hugepages=$enableval
21432else
21433  enable_hugepages='no'
21434fi
21435
21436
21437# Enable ccmalloc memory debugging support
21438# Check whether --enable-ccmalloc was given.
21439if test "${enable_ccmalloc+set}" = set; then :
21440  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21441else
21442  enable_ccmalloc='no'
21443fi
21444
21445
21446# Enable Electric Fence memory debugging support
21447# Check whether --enable-efence was given.
21448if test "${enable_efence+set}" = set; then :
21449  enableval=$enable_efence; enable_efence=$enableval
21450else
21451  enable_efence='no'
21452fi
21453
21454
21455# Enable prof-based profiling support
21456# Check whether --enable-prof was given.
21457if test "${enable_prof+set}" = set; then :
21458  enableval=$enable_prof; enable_prof=$enableval
21459else
21460  enable_prof='no'
21461fi
21462
21463
21464# Enable gprof-based profiling support
21465# Check whether --enable-gprof was given.
21466if test "${enable_gprof+set}" = set; then :
21467  enableval=$enable_gprof; enable_gprof=$enableval
21468else
21469  enable_gprof='no'
21470fi
21471
21472
21473# Enable gcov-based profiling support
21474# Check whether --enable-gcov was given.
21475if test "${enable_gcov+set}" = set; then :
21476  enableval=$enable_gcov; enable_gcov=$enableval
21477else
21478  enable_gcov='no'
21479fi
21480
21481
21482enable_profiling='no'
21483if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21484    enable_profiling='yes'
21485    if test "$libtool_build_shared_libs" = 'yes'; then
21486        echo "Warning: Can not profile code using shared libraries"
21487    fi
21488fi
21489
21490# Magick API method prefix
21491
21492# Check whether --with-method-prefix was given.
21493if test "${with_method_prefix+set}" = set; then :
21494  withval=$with_method_prefix; with_method_prefix=$withval
21495else
21496  with_method_prefix='no'
21497fi
21498
21499
21500if test "$with_method_prefix" != 'no'; then
21501
21502cat >>confdefs.h <<_ACEOF
21503#define NAMESPACE_PREFIX $with_method_prefix
21504_ACEOF
21505
21506    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
21507fi
21508
21509# Enable legacy support (default no)
21510# Check whether --enable-legacy-support was given.
21511if test "${enable_legacy_support+set}" = set; then :
21512  enableval=$enable_legacy_support; with_legacy_support=$enableval
21513else
21514  with_legacy_support='no'
21515fi
21516
21517 if test "$with_legacy_support" != 'no'; then
21518  LEGACY_SUPPORT_TRUE=
21519  LEGACY_SUPPORT_FALSE='#'
21520else
21521  LEGACY_SUPPORT_TRUE='#'
21522  LEGACY_SUPPORT_FALSE=
21523fi
21524
21525
21526# Number of bits in a Quantum
21527
21528# Check whether --with-quantum-depth was given.
21529if test "${with_quantum_depth+set}" = set; then :
21530  withval=$with_quantum_depth; with_quantum_depth=$withval
21531else
21532  with_quantum_depth=16
21533fi
21534
21535
21536if test "$with_quantum_depth" != '8'; then
21537    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21538fi
21539
21540case "${with_quantum_depth}" in
21541    8 ) ;;
21542    16 ) ;;
21543    32 ) ;;
21544    64 ) ;;
21545    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21546esac
21547QUANTUM_DEPTH="$with_quantum_depth"
21548
21549cat >>confdefs.h <<_ACEOF
21550#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
21551_ACEOF
21552
21553MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21554CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21555CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21556
21557# define a lib suffix for abi purpose
21558MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
21559if test "$enable_hdri" = 'yes'; then
21560  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
21561fi
21562
21563
21564# Set pixel cache threshold
21565
21566# Check whether --with-cache was given.
21567if test "${with_cache+set}" = set; then :
21568  withval=$with_cache; with_cache=$withval
21569else
21570  with_cache=''
21571fi
21572
21573
21574if test "$with_cache" != ''; then
21575
21576cat >>confdefs.h <<_ACEOF
21577#define PixelCacheThreshold $with_cache
21578_ACEOF
21579
21580    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21581fi
21582
21583# Disable/Enable support for full delegate paths
21584
21585# Check whether --with-frozenpaths was given.
21586if test "${with_frozenpaths+set}" = set; then :
21587  withval=$with_frozenpaths; with_frozenpaths=$withval
21588else
21589  with_frozenpaths='no'
21590fi
21591
21592
21593# Enable build/install of Magick++
21594
21595# Check whether --with-magick-plus-plus was given.
21596if test "${with_magick_plus_plus+set}" = set; then :
21597  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21598else
21599  with_magick_plus_plus='yes'
21600fi
21601
21602
21603# Encode the this name into the shared library.
21604
21605# Check whether --with-package-release-name was given.
21606if test "${with_package_release_name+set}" = set; then :
21607  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21608fi
21609
21610
21611
21612# Disable build/install of PerlMagick.
21613
21614# Check whether --with-perl was given.
21615if test "${with_perl+set}" = set; then :
21616  withval=$with_perl; with_perl=$withval
21617else
21618  with_perl='no'
21619fi
21620
21621
21622# Options to pass when configuring PerlMagick
21623
21624# Check whether --with-perl-options was given.
21625if test "${with_perl_options+set}" = set; then :
21626  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21627fi
21628
21629
21630
21631# Enable umem, object-caching memory allocation library.
21632
21633# Check whether --with-umem was given.
21634if test "${with_umem+set}" = set; then :
21635  withval=$with_umem; with_umem=$withval
21636else
21637  with_umem='no'
21638fi
21639
21640if test "$with_umem" != 'yes' ; then
21641    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21642fi
21643
21644#
21645# Specify path to shared libstdc++ if not in normal location
21646#
21647
21648# Check whether --with-libstdc was given.
21649if test "${with_libstdc+set}" = set; then :
21650  withval=$with_libstdc; with_libstdc=$withval
21651else
21652  with_libstdc=''
21653fi
21654
21655
21656if test "$with_libstdc" != ''; then
21657    if test -d "$with_libstdc"; then
21658        LIBSTDCLDFLAGS="-L$with_libstdc"
21659    fi
21660fi
21661
21662
21663# Does gcc required -traditional?
21664if test $ac_cv_c_compiler_gnu = yes; then
21665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21666$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21667if ${ac_cv_prog_gcc_traditional+:} false; then :
21668  $as_echo_n "(cached) " >&6
21669else
21670    ac_pattern="Autoconf.*'x'"
21671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21672/* end confdefs.h.  */
21673#include <sgtty.h>
21674Autoconf TIOCGETP
21675_ACEOF
21676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21677  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21678  ac_cv_prog_gcc_traditional=yes
21679else
21680  ac_cv_prog_gcc_traditional=no
21681fi
21682rm -f conftest*
21683
21684
21685  if test $ac_cv_prog_gcc_traditional = no; then
21686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687/* end confdefs.h.  */
21688#include <termio.h>
21689Autoconf TCGETA
21690_ACEOF
21691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21692  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21693  ac_cv_prog_gcc_traditional=yes
21694fi
21695rm -f conftest*
21696
21697  fi
21698fi
21699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21700$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21701  if test $ac_cv_prog_gcc_traditional = yes; then
21702    CC="$CC -traditional"
21703  fi
21704fi
21705
21706
21707########
21708#
21709# Set defines required to build DLLs and modules using MinGW
21710#
21711########
21712# These options are set for multi-thread DLL module build
21713#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21714#  module:              _DLL
21715#  executable/Magick++: _DLL _MAGICKMOD_
21716MODULE_EXTRA_CPPFLAGS=''
21717LIBRARY_EXTRA_CPPFLAGS=''
21718if test "${native_win32_build}" = 'yes'; then
21719    if test "${libtool_build_shared_libs}" = 'yes'; then
21720        CPPFLAGS="$CPPFLAGS -D_DLL"
21721        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21722        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21723        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21724        if test "$build_modules" = 'yes'; then
21725            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21726        else
21727            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21728        fi
21729    else
21730        CPPFLAGS="$CPPFLAGS -D_LIB"
21731        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21732        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21733    fi
21734    if test "$with_threads" = 'yes'; then
21735         CPPFLAGS="$CPPFLAGS -D_MT"
21736         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21737         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21738    fi
21739fi
21740
21741
21742
21743# Check standard headers
21744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21745$as_echo_n "checking for ANSI C header files... " >&6; }
21746if ${ac_cv_header_stdc+:} false; then :
21747  $as_echo_n "(cached) " >&6
21748else
21749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750/* end confdefs.h.  */
21751#include <stdlib.h>
21752#include <stdarg.h>
21753#include <string.h>
21754#include <float.h>
21755
21756int
21757main ()
21758{
21759
21760  ;
21761  return 0;
21762}
21763_ACEOF
21764if ac_fn_c_try_compile "$LINENO"; then :
21765  ac_cv_header_stdc=yes
21766else
21767  ac_cv_header_stdc=no
21768fi
21769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770
21771if test $ac_cv_header_stdc = yes; then
21772  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21774/* end confdefs.h.  */
21775#include <string.h>
21776
21777_ACEOF
21778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21779  $EGREP "memchr" >/dev/null 2>&1; then :
21780
21781else
21782  ac_cv_header_stdc=no
21783fi
21784rm -f conftest*
21785
21786fi
21787
21788if test $ac_cv_header_stdc = yes; then
21789  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21791/* end confdefs.h.  */
21792#include <stdlib.h>
21793
21794_ACEOF
21795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21796  $EGREP "free" >/dev/null 2>&1; then :
21797
21798else
21799  ac_cv_header_stdc=no
21800fi
21801rm -f conftest*
21802
21803fi
21804
21805if test $ac_cv_header_stdc = yes; then
21806  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21807  if test "$cross_compiling" = yes; then :
21808  :
21809else
21810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811/* end confdefs.h.  */
21812#include <ctype.h>
21813#include <stdlib.h>
21814#if ((' ' & 0x0FF) == 0x020)
21815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21817#else
21818# define ISLOWER(c) \
21819		   (('a' <= (c) && (c) <= 'i') \
21820		     || ('j' <= (c) && (c) <= 'r') \
21821		     || ('s' <= (c) && (c) <= 'z'))
21822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21823#endif
21824
21825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21826int
21827main ()
21828{
21829  int i;
21830  for (i = 0; i < 256; i++)
21831    if (XOR (islower (i), ISLOWER (i))
21832	|| toupper (i) != TOUPPER (i))
21833      return 2;
21834  return 0;
21835}
21836_ACEOF
21837if ac_fn_c_try_run "$LINENO"; then :
21838
21839else
21840  ac_cv_header_stdc=no
21841fi
21842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21843  conftest.$ac_objext conftest.beam conftest.$ac_ext
21844fi
21845
21846fi
21847fi
21848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21849$as_echo "$ac_cv_header_stdc" >&6; }
21850if test $ac_cv_header_stdc = yes; then
21851
21852$as_echo "#define STDC_HEADERS 1" >>confdefs.h
21853
21854fi
21855
21856if ! test x"$ac_cv_header_stdc" = x"yes"; then
21857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21858    header files.  Compilation cannot proceed.  Please install the ANSI C
21859    headers and rerun this script." >&5
21860$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21861    header files.  Compilation cannot proceed.  Please install the ANSI C
21862    headers and rerun this script." >&2;};
21863fi
21864
21865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21866$as_echo_n "checking whether to enable assertions... " >&6; }
21867  # Check whether --enable-assert was given.
21868if test "${enable_assert+set}" = set; then :
21869  enableval=$enable_assert; ac_enable_assert=$enableval
21870     if       test "x$enableval" = xno; then :
21871
21872$as_echo "#define NDEBUG 1" >>confdefs.h
21873
21874elif test "x$enableval" != xyes; then :
21875  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21876$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21877	ac_enable_assert=yes
21878fi
21879else
21880  ac_enable_assert=yes
21881fi
21882
21883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21884$as_echo "$ac_enable_assert" >&6; }
21885
21886ac_header_dirent=no
21887for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21888  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21890$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21891if eval \${$as_ac_Header+:} false; then :
21892  $as_echo_n "(cached) " >&6
21893else
21894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21895/* end confdefs.h.  */
21896#include <sys/types.h>
21897#include <$ac_hdr>
21898
21899int
21900main ()
21901{
21902if ((DIR *) 0)
21903return 0;
21904  ;
21905  return 0;
21906}
21907_ACEOF
21908if ac_fn_c_try_compile "$LINENO"; then :
21909  eval "$as_ac_Header=yes"
21910else
21911  eval "$as_ac_Header=no"
21912fi
21913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21914fi
21915eval ac_res=\$$as_ac_Header
21916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21917$as_echo "$ac_res" >&6; }
21918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21919  cat >>confdefs.h <<_ACEOF
21920#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21921_ACEOF
21922
21923ac_header_dirent=$ac_hdr; break
21924fi
21925
21926done
21927# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21928if test $ac_header_dirent = dirent.h; then
21929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21930$as_echo_n "checking for library containing opendir... " >&6; }
21931if ${ac_cv_search_opendir+:} false; then :
21932  $as_echo_n "(cached) " >&6
21933else
21934  ac_func_search_save_LIBS=$LIBS
21935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936/* end confdefs.h.  */
21937
21938/* Override any GCC internal prototype to avoid an error.
21939   Use char because int might match the return type of a GCC
21940   builtin and then its argument prototype would still apply.  */
21941#ifdef __cplusplus
21942extern "C"
21943#endif
21944char opendir ();
21945int
21946main ()
21947{
21948return opendir ();
21949  ;
21950  return 0;
21951}
21952_ACEOF
21953for ac_lib in '' dir; do
21954  if test -z "$ac_lib"; then
21955    ac_res="none required"
21956  else
21957    ac_res=-l$ac_lib
21958    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21959  fi
21960  if ac_fn_c_try_link "$LINENO"; then :
21961  ac_cv_search_opendir=$ac_res
21962fi
21963rm -f core conftest.err conftest.$ac_objext \
21964    conftest$ac_exeext
21965  if ${ac_cv_search_opendir+:} false; then :
21966  break
21967fi
21968done
21969if ${ac_cv_search_opendir+:} false; then :
21970
21971else
21972  ac_cv_search_opendir=no
21973fi
21974rm conftest.$ac_ext
21975LIBS=$ac_func_search_save_LIBS
21976fi
21977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21978$as_echo "$ac_cv_search_opendir" >&6; }
21979ac_res=$ac_cv_search_opendir
21980if test "$ac_res" != no; then :
21981  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21982
21983fi
21984
21985else
21986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21987$as_echo_n "checking for library containing opendir... " >&6; }
21988if ${ac_cv_search_opendir+:} false; then :
21989  $as_echo_n "(cached) " >&6
21990else
21991  ac_func_search_save_LIBS=$LIBS
21992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993/* end confdefs.h.  */
21994
21995/* Override any GCC internal prototype to avoid an error.
21996   Use char because int might match the return type of a GCC
21997   builtin and then its argument prototype would still apply.  */
21998#ifdef __cplusplus
21999extern "C"
22000#endif
22001char opendir ();
22002int
22003main ()
22004{
22005return opendir ();
22006  ;
22007  return 0;
22008}
22009_ACEOF
22010for ac_lib in '' x; do
22011  if test -z "$ac_lib"; then
22012    ac_res="none required"
22013  else
22014    ac_res=-l$ac_lib
22015    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22016  fi
22017  if ac_fn_c_try_link "$LINENO"; then :
22018  ac_cv_search_opendir=$ac_res
22019fi
22020rm -f core conftest.err conftest.$ac_objext \
22021    conftest$ac_exeext
22022  if ${ac_cv_search_opendir+:} false; then :
22023  break
22024fi
22025done
22026if ${ac_cv_search_opendir+:} false; then :
22027
22028else
22029  ac_cv_search_opendir=no
22030fi
22031rm conftest.$ac_ext
22032LIBS=$ac_func_search_save_LIBS
22033fi
22034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22035$as_echo "$ac_cv_search_opendir" >&6; }
22036ac_res=$ac_cv_search_opendir
22037if test "$ac_res" != no; then :
22038  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22039
22040fi
22041
22042fi
22043
22044
22045# Check additional headers
22046for 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
22047do :
22048  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22050if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22051  cat >>confdefs.h <<_ACEOF
22052#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22053_ACEOF
22054
22055fi
22056
22057done
22058
22059
22060########
22061#
22062# Checks for typedefs, structures, and compiler characteristics.
22063#
22064########
22065
22066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22067$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22068if ${ac_cv_header_stdbool_h+:} false; then :
22069  $as_echo_n "(cached) " >&6
22070else
22071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072/* end confdefs.h.  */
22073
22074             #include <stdbool.h>
22075             #ifndef bool
22076              "error: bool is not defined"
22077             #endif
22078             #ifndef false
22079              "error: false is not defined"
22080             #endif
22081             #if false
22082              "error: false is not 0"
22083             #endif
22084             #ifndef true
22085              "error: true is not defined"
22086             #endif
22087             #if true != 1
22088              "error: true is not 1"
22089             #endif
22090             #ifndef __bool_true_false_are_defined
22091              "error: __bool_true_false_are_defined is not defined"
22092             #endif
22093
22094             struct s { _Bool s: 1; _Bool t; } s;
22095
22096             char a[true == 1 ? 1 : -1];
22097             char b[false == 0 ? 1 : -1];
22098             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22099             char d[(bool) 0.5 == true ? 1 : -1];
22100             /* See body of main program for 'e'.  */
22101             char f[(_Bool) 0.0 == false ? 1 : -1];
22102             char g[true];
22103             char h[sizeof (_Bool)];
22104             char i[sizeof s.t];
22105             enum { j = false, k = true, l = false * true, m = true * 256 };
22106             /* The following fails for
22107                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22108             _Bool n[m];
22109             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22110             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22111             /* Catch a bug in an HP-UX C compiler.  See
22112                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22113                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22114              */
22115             _Bool q = true;
22116             _Bool *pq = &q;
22117
22118int
22119main ()
22120{
22121
22122             bool e = &s;
22123             *pq |= q;
22124             *pq |= ! q;
22125             /* Refer to every declared value, to avoid compiler optimizations.  */
22126             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22127                     + !m + !n + !o + !p + !q + !pq);
22128
22129  ;
22130  return 0;
22131}
22132_ACEOF
22133if ac_fn_c_try_compile "$LINENO"; then :
22134  ac_cv_header_stdbool_h=yes
22135else
22136  ac_cv_header_stdbool_h=no
22137fi
22138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139fi
22140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22141$as_echo "$ac_cv_header_stdbool_h" >&6; }
22142   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22143if test "x$ac_cv_type__Bool" = xyes; then :
22144
22145cat >>confdefs.h <<_ACEOF
22146#define HAVE__BOOL 1
22147_ACEOF
22148
22149
22150fi
22151
22152
22153if test $ac_cv_header_stdbool_h = yes; then
22154
22155$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
22156
22157fi
22158
22159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22160$as_echo_n "checking for working volatile... " >&6; }
22161if ${ac_cv_c_volatile+:} false; then :
22162  $as_echo_n "(cached) " >&6
22163else
22164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22165/* end confdefs.h.  */
22166
22167int
22168main ()
22169{
22170
22171volatile int x;
22172int * volatile y = (int *) 0;
22173return !x && !y;
22174  ;
22175  return 0;
22176}
22177_ACEOF
22178if ac_fn_c_try_compile "$LINENO"; then :
22179  ac_cv_c_volatile=yes
22180else
22181  ac_cv_c_volatile=no
22182fi
22183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184fi
22185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22186$as_echo "$ac_cv_c_volatile" >&6; }
22187if test $ac_cv_c_volatile = no; then
22188
22189$as_echo "#define volatile /**/" >>confdefs.h
22190
22191fi
22192
22193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
22194$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22195if ${ac_cv_c_stringize+:} false; then :
22196  $as_echo_n "(cached) " >&6
22197else
22198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199/* end confdefs.h.  */
22200#define x(y) #y
22201
22202char *s = x(teststring);
22203_ACEOF
22204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22205  $EGREP "#teststring" >/dev/null 2>&1; then :
22206  ac_cv_c_stringize=no
22207else
22208  ac_cv_c_stringize=yes
22209fi
22210rm -f conftest*
22211
22212fi
22213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22214$as_echo "$ac_cv_c_stringize" >&6; }
22215if test $ac_cv_c_stringize = yes; then
22216
22217$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22218
22219fi
22220
22221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22222$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22223if ${ac_cv_header_stat_broken+:} false; then :
22224  $as_echo_n "(cached) " >&6
22225else
22226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227/* end confdefs.h.  */
22228#include <sys/types.h>
22229#include <sys/stat.h>
22230
22231#if defined S_ISBLK && defined S_IFDIR
22232extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22233#endif
22234
22235#if defined S_ISBLK && defined S_IFCHR
22236extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22237#endif
22238
22239#if defined S_ISLNK && defined S_IFREG
22240extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22241#endif
22242
22243#if defined S_ISSOCK && defined S_IFREG
22244extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22245#endif
22246
22247_ACEOF
22248if ac_fn_c_try_compile "$LINENO"; then :
22249  ac_cv_header_stat_broken=no
22250else
22251  ac_cv_header_stat_broken=yes
22252fi
22253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254fi
22255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22256$as_echo "$ac_cv_header_stat_broken" >&6; }
22257if test $ac_cv_header_stat_broken = yes; then
22258
22259$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22260
22261fi
22262
22263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22264$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22265if ${ac_cv_header_time+:} false; then :
22266  $as_echo_n "(cached) " >&6
22267else
22268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269/* end confdefs.h.  */
22270#include <sys/types.h>
22271#include <sys/time.h>
22272#include <time.h>
22273
22274int
22275main ()
22276{
22277if ((struct tm *) 0)
22278return 0;
22279  ;
22280  return 0;
22281}
22282_ACEOF
22283if ac_fn_c_try_compile "$LINENO"; then :
22284  ac_cv_header_time=yes
22285else
22286  ac_cv_header_time=no
22287fi
22288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289fi
22290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22291$as_echo "$ac_cv_header_time" >&6; }
22292if test $ac_cv_header_time = yes; then
22293
22294$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22295
22296fi
22297
22298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22299$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22300if ${ac_cv_struct_tm+:} false; then :
22301  $as_echo_n "(cached) " >&6
22302else
22303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304/* end confdefs.h.  */
22305#include <sys/types.h>
22306#include <time.h>
22307
22308int
22309main ()
22310{
22311struct tm tm;
22312				     int *p = &tm.tm_sec;
22313				     return !p;
22314  ;
22315  return 0;
22316}
22317_ACEOF
22318if ac_fn_c_try_compile "$LINENO"; then :
22319  ac_cv_struct_tm=time.h
22320else
22321  ac_cv_struct_tm=sys/time.h
22322fi
22323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324fi
22325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22326$as_echo "$ac_cv_struct_tm" >&6; }
22327if test $ac_cv_struct_tm = sys/time.h; then
22328
22329$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22330
22331fi
22332
22333ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22334#include <$ac_cv_struct_tm>
22335
22336"
22337if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22338
22339cat >>confdefs.h <<_ACEOF
22340#define HAVE_STRUCT_TM_TM_ZONE 1
22341_ACEOF
22342
22343
22344fi
22345
22346if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22347
22348$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22349
22350else
22351  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22352"
22353if test "x$ac_cv_have_decl_tzname" = xyes; then :
22354  ac_have_decl=1
22355else
22356  ac_have_decl=0
22357fi
22358
22359cat >>confdefs.h <<_ACEOF
22360#define HAVE_DECL_TZNAME $ac_have_decl
22361_ACEOF
22362
22363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22364$as_echo_n "checking for tzname... " >&6; }
22365if ${ac_cv_var_tzname+:} false; then :
22366  $as_echo_n "(cached) " >&6
22367else
22368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369/* end confdefs.h.  */
22370#include <time.h>
22371#if !HAVE_DECL_TZNAME
22372extern char *tzname[];
22373#endif
22374
22375int
22376main ()
22377{
22378return tzname[0][0];
22379  ;
22380  return 0;
22381}
22382_ACEOF
22383if ac_fn_c_try_link "$LINENO"; then :
22384  ac_cv_var_tzname=yes
22385else
22386  ac_cv_var_tzname=no
22387fi
22388rm -f core conftest.err conftest.$ac_objext \
22389    conftest$ac_exeext conftest.$ac_ext
22390fi
22391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22392$as_echo "$ac_cv_var_tzname" >&6; }
22393  if test $ac_cv_var_tzname = yes; then
22394
22395$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22396
22397  fi
22398fi
22399
22400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22401$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22402if ${ac_cv_sys_interpreter+:} false; then :
22403  $as_echo_n "(cached) " >&6
22404else
22405  echo '#! /bin/cat
22406exit 69
22407' >conftest
22408chmod u+x conftest
22409(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22410if test $? -ne 69; then
22411   ac_cv_sys_interpreter=yes
22412else
22413   ac_cv_sys_interpreter=no
22414fi
22415rm -f conftest
22416fi
22417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22418$as_echo "$ac_cv_sys_interpreter" >&6; }
22419interpval=$ac_cv_sys_interpreter
22420
22421
22422#
22423# Checks for language qualifiers and semantics.
22424#
22425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22426$as_echo_n "checking whether char is unsigned... " >&6; }
22427if ${ac_cv_c_char_unsigned+:} false; then :
22428  $as_echo_n "(cached) " >&6
22429else
22430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431/* end confdefs.h.  */
22432$ac_includes_default
22433int
22434main ()
22435{
22436static int test_array [1 - 2 * !(((char) -1) < 0)];
22437test_array [0] = 0;
22438return test_array [0];
22439
22440  ;
22441  return 0;
22442}
22443_ACEOF
22444if ac_fn_c_try_compile "$LINENO"; then :
22445  ac_cv_c_char_unsigned=no
22446else
22447  ac_cv_c_char_unsigned=yes
22448fi
22449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450fi
22451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22452$as_echo "$ac_cv_c_char_unsigned" >&6; }
22453if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22454  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22455
22456fi
22457
22458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22459$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22460if ${ac_cv_c_const+:} false; then :
22461  $as_echo_n "(cached) " >&6
22462else
22463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464/* end confdefs.h.  */
22465
22466int
22467main ()
22468{
22469
22470#ifndef __cplusplus
22471  /* Ultrix mips cc rejects this sort of thing.  */
22472  typedef int charset[2];
22473  const charset cs = { 0, 0 };
22474  /* SunOS 4.1.1 cc rejects this.  */
22475  char const *const *pcpcc;
22476  char **ppc;
22477  /* NEC SVR4.0.2 mips cc rejects this.  */
22478  struct point {int x, y;};
22479  static struct point const zero = {0,0};
22480  /* AIX XL C 1.02.0.0 rejects this.
22481     It does not let you subtract one const X* pointer from another in
22482     an arm of an if-expression whose if-part is not a constant
22483     expression */
22484  const char *g = "string";
22485  pcpcc = &g + (g ? g-g : 0);
22486  /* HPUX 7.0 cc rejects these. */
22487  ++pcpcc;
22488  ppc = (char**) pcpcc;
22489  pcpcc = (char const *const *) ppc;
22490  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22491    char tx;
22492    char *t = &tx;
22493    char const *s = 0 ? (char *) 0 : (char const *) 0;
22494
22495    *t++ = 0;
22496    if (s) return 0;
22497  }
22498  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22499    int x[] = {25, 17};
22500    const int *foo = &x[0];
22501    ++foo;
22502  }
22503  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22504    typedef const int *iptr;
22505    iptr p = 0;
22506    ++p;
22507  }
22508  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22509       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22510    struct s { int j; const int *ap[3]; } bx;
22511    struct s *b = &bx; b->j = 5;
22512  }
22513  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22514    const int foo = 10;
22515    if (!foo) return 0;
22516  }
22517  return !cs[0] && !zero.x;
22518#endif
22519
22520  ;
22521  return 0;
22522}
22523_ACEOF
22524if ac_fn_c_try_compile "$LINENO"; then :
22525  ac_cv_c_const=yes
22526else
22527  ac_cv_c_const=no
22528fi
22529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530fi
22531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22532$as_echo "$ac_cv_c_const" >&6; }
22533if test $ac_cv_c_const = no; then
22534
22535$as_echo "#define const /**/" >>confdefs.h
22536
22537fi
22538
22539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22540$as_echo_n "checking for inline... " >&6; }
22541if ${ac_cv_c_inline+:} false; then :
22542  $as_echo_n "(cached) " >&6
22543else
22544  ac_cv_c_inline=no
22545for ac_kw in inline __inline__ __inline; do
22546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547/* end confdefs.h.  */
22548#ifndef __cplusplus
22549typedef int foo_t;
22550static $ac_kw foo_t static_foo () {return 0; }
22551$ac_kw foo_t foo () {return 0; }
22552#endif
22553
22554_ACEOF
22555if ac_fn_c_try_compile "$LINENO"; then :
22556  ac_cv_c_inline=$ac_kw
22557fi
22558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559  test "$ac_cv_c_inline" != no && break
22560done
22561
22562fi
22563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22564$as_echo "$ac_cv_c_inline" >&6; }
22565
22566case $ac_cv_c_inline in
22567  inline | yes) ;;
22568  *)
22569    case $ac_cv_c_inline in
22570      no) ac_val=;;
22571      *) ac_val=$ac_cv_c_inline;;
22572    esac
22573    cat >>confdefs.h <<_ACEOF
22574#ifndef __cplusplus
22575#define inline $ac_val
22576#endif
22577_ACEOF
22578    ;;
22579esac
22580
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22582$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22583if ${ac_cv_c_restrict+:} false; then :
22584  $as_echo_n "(cached) " >&6
22585else
22586  ac_cv_c_restrict=no
22587   # The order here caters to the fact that C++ does not require restrict.
22588   for ac_kw in __restrict __restrict__ _Restrict restrict; do
22589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590/* end confdefs.h.  */
22591typedef int * int_ptr;
22592	int foo (int_ptr $ac_kw ip) {
22593	return ip[0];
22594       }
22595int
22596main ()
22597{
22598int s[1];
22599	int * $ac_kw t = s;
22600	t[0] = 0;
22601	return foo(t)
22602  ;
22603  return 0;
22604}
22605_ACEOF
22606if ac_fn_c_try_compile "$LINENO"; then :
22607  ac_cv_c_restrict=$ac_kw
22608fi
22609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610     test "$ac_cv_c_restrict" != no && break
22611   done
22612
22613fi
22614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22615$as_echo "$ac_cv_c_restrict" >&6; }
22616
22617 case $ac_cv_c_restrict in
22618   restrict) ;;
22619   no) $as_echo "#define restrict /**/" >>confdefs.h
22620 ;;
22621   *)  cat >>confdefs.h <<_ACEOF
22622#define restrict $ac_cv_c_restrict
22623_ACEOF
22624 ;;
22625 esac
22626
22627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22628$as_echo_n "checking for working volatile... " >&6; }
22629if ${ac_cv_c_volatile+:} false; then :
22630  $as_echo_n "(cached) " >&6
22631else
22632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633/* end confdefs.h.  */
22634
22635int
22636main ()
22637{
22638
22639volatile int x;
22640int * volatile y = (int *) 0;
22641return !x && !y;
22642  ;
22643  return 0;
22644}
22645_ACEOF
22646if ac_fn_c_try_compile "$LINENO"; then :
22647  ac_cv_c_volatile=yes
22648else
22649  ac_cv_c_volatile=no
22650fi
22651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652fi
22653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22654$as_echo "$ac_cv_c_volatile" >&6; }
22655if test $ac_cv_c_volatile = no; then
22656
22657$as_echo "#define volatile /**/" >>confdefs.h
22658
22659fi
22660
22661
22662# If words are stored with the most significant byte first (like
22663# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22665$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22666if ${ac_cv_c_bigendian+:} false; then :
22667  $as_echo_n "(cached) " >&6
22668else
22669  ac_cv_c_bigendian=unknown
22670    # See if we're dealing with a universal compiler.
22671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672/* end confdefs.h.  */
22673#ifndef __APPLE_CC__
22674	       not a universal capable compiler
22675	     #endif
22676	     typedef int dummy;
22677
22678_ACEOF
22679if ac_fn_c_try_compile "$LINENO"; then :
22680
22681	# Check for potential -arch flags.  It is not universal unless
22682	# there are at least two -arch flags with different values.
22683	ac_arch=
22684	ac_prev=
22685	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22686	 if test -n "$ac_prev"; then
22687	   case $ac_word in
22688	     i?86 | x86_64 | ppc | ppc64)
22689	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22690		 ac_arch=$ac_word
22691	       else
22692		 ac_cv_c_bigendian=universal
22693		 break
22694	       fi
22695	       ;;
22696	   esac
22697	   ac_prev=
22698	 elif test "x$ac_word" = "x-arch"; then
22699	   ac_prev=arch
22700	 fi
22701       done
22702fi
22703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704    if test $ac_cv_c_bigendian = unknown; then
22705      # See if sys/param.h defines the BYTE_ORDER macro.
22706      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707/* end confdefs.h.  */
22708#include <sys/types.h>
22709	     #include <sys/param.h>
22710
22711int
22712main ()
22713{
22714#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22715		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22716		     && LITTLE_ENDIAN)
22717	      bogus endian macros
22718	     #endif
22719
22720  ;
22721  return 0;
22722}
22723_ACEOF
22724if ac_fn_c_try_compile "$LINENO"; then :
22725  # It does; now see whether it defined to BIG_ENDIAN or not.
22726	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727/* end confdefs.h.  */
22728#include <sys/types.h>
22729		#include <sys/param.h>
22730
22731int
22732main ()
22733{
22734#if BYTE_ORDER != BIG_ENDIAN
22735		 not big endian
22736		#endif
22737
22738  ;
22739  return 0;
22740}
22741_ACEOF
22742if ac_fn_c_try_compile "$LINENO"; then :
22743  ac_cv_c_bigendian=yes
22744else
22745  ac_cv_c_bigendian=no
22746fi
22747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748fi
22749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22750    fi
22751    if test $ac_cv_c_bigendian = unknown; then
22752      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22753      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754/* end confdefs.h.  */
22755#include <limits.h>
22756
22757int
22758main ()
22759{
22760#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22761	      bogus endian macros
22762	     #endif
22763
22764  ;
22765  return 0;
22766}
22767_ACEOF
22768if ac_fn_c_try_compile "$LINENO"; then :
22769  # It does; now see whether it defined to _BIG_ENDIAN or not.
22770	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771/* end confdefs.h.  */
22772#include <limits.h>
22773
22774int
22775main ()
22776{
22777#ifndef _BIG_ENDIAN
22778		 not big endian
22779		#endif
22780
22781  ;
22782  return 0;
22783}
22784_ACEOF
22785if ac_fn_c_try_compile "$LINENO"; then :
22786  ac_cv_c_bigendian=yes
22787else
22788  ac_cv_c_bigendian=no
22789fi
22790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791fi
22792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793    fi
22794    if test $ac_cv_c_bigendian = unknown; then
22795      # Compile a test program.
22796      if test "$cross_compiling" = yes; then :
22797  # Try to guess by grepping values from an object file.
22798	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799/* end confdefs.h.  */
22800short int ascii_mm[] =
22801		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22802		short int ascii_ii[] =
22803		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22804		int use_ascii (int i) {
22805		  return ascii_mm[i] + ascii_ii[i];
22806		}
22807		short int ebcdic_ii[] =
22808		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22809		short int ebcdic_mm[] =
22810		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22811		int use_ebcdic (int i) {
22812		  return ebcdic_mm[i] + ebcdic_ii[i];
22813		}
22814		extern int foo;
22815
22816int
22817main ()
22818{
22819return use_ascii (foo) == use_ebcdic (foo);
22820  ;
22821  return 0;
22822}
22823_ACEOF
22824if ac_fn_c_try_compile "$LINENO"; then :
22825  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22826	      ac_cv_c_bigendian=yes
22827	    fi
22828	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22829	      if test "$ac_cv_c_bigendian" = unknown; then
22830		ac_cv_c_bigendian=no
22831	      else
22832		# finding both strings is unlikely to happen, but who knows?
22833		ac_cv_c_bigendian=unknown
22834	      fi
22835	    fi
22836fi
22837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838else
22839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840/* end confdefs.h.  */
22841$ac_includes_default
22842int
22843main ()
22844{
22845
22846	     /* Are we little or big endian?  From Harbison&Steele.  */
22847	     union
22848	     {
22849	       long int l;
22850	       char c[sizeof (long int)];
22851	     } u;
22852	     u.l = 1;
22853	     return u.c[sizeof (long int) - 1] == 1;
22854
22855  ;
22856  return 0;
22857}
22858_ACEOF
22859if ac_fn_c_try_run "$LINENO"; then :
22860  ac_cv_c_bigendian=no
22861else
22862  ac_cv_c_bigendian=yes
22863fi
22864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22865  conftest.$ac_objext conftest.beam conftest.$ac_ext
22866fi
22867
22868    fi
22869fi
22870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22871$as_echo "$ac_cv_c_bigendian" >&6; }
22872 case $ac_cv_c_bigendian in #(
22873   yes)
22874     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22875;; #(
22876   no)
22877      ;; #(
22878   universal)
22879
22880$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22881
22882     ;; #(
22883   *)
22884     as_fn_error $? "unknown endianness
22885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22886 esac
22887
22888
22889# Define to a suitable type, if standard headers do not define it.
22890ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22891case $ac_cv_c_int8_t in #(
22892  no|yes) ;; #(
22893  *)
22894
22895cat >>confdefs.h <<_ACEOF
22896#define int8_t $ac_cv_c_int8_t
22897_ACEOF
22898;;
22899esac
22900
22901ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22902case $ac_cv_c_int16_t in #(
22903  no|yes) ;; #(
22904  *)
22905
22906cat >>confdefs.h <<_ACEOF
22907#define int16_t $ac_cv_c_int16_t
22908_ACEOF
22909;;
22910esac
22911
22912ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22913case $ac_cv_c_int32_t in #(
22914  no|yes) ;; #(
22915  *)
22916
22917cat >>confdefs.h <<_ACEOF
22918#define int32_t $ac_cv_c_int32_t
22919_ACEOF
22920;;
22921esac
22922
22923ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22924case $ac_cv_c_int64_t in #(
22925  no|yes) ;; #(
22926  *)
22927
22928cat >>confdefs.h <<_ACEOF
22929#define int64_t $ac_cv_c_int64_t
22930_ACEOF
22931;;
22932esac
22933
22934
22935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22936$as_echo_n "checking for unsigned long long int... " >&6; }
22937if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22938  $as_echo_n "(cached) " >&6
22939else
22940  ac_cv_type_unsigned_long_long_int=yes
22941     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943/* end confdefs.h.  */
22944
22945  /* For now, do not test the preprocessor; as of 2007 there are too many
22946         implementations with broken preprocessors.  Perhaps this can
22947         be revisited in 2012.  In the meantime, code should not expect
22948         #if to work with literals wider than 32 bits.  */
22949      /* Test literals.  */
22950      long long int ll = 9223372036854775807ll;
22951      long long int nll = -9223372036854775807LL;
22952      unsigned long long int ull = 18446744073709551615ULL;
22953      /* Test constant expressions.   */
22954      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22955                     ? 1 : -1)];
22956      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22957                     ? 1 : -1)];
22958      int i = 63;
22959int
22960main ()
22961{
22962/* Test availability of runtime routines for shift and division.  */
22963      long long int llmax = 9223372036854775807ll;
22964      unsigned long long int ullmax = 18446744073709551615ull;
22965      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22966              | (llmax / ll) | (llmax % ll)
22967              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22968              | (ullmax / ull) | (ullmax % ull));
22969  ;
22970  return 0;
22971}
22972
22973_ACEOF
22974if ac_fn_c_try_link "$LINENO"; then :
22975
22976else
22977  ac_cv_type_unsigned_long_long_int=no
22978fi
22979rm -f core conftest.err conftest.$ac_objext \
22980    conftest$ac_exeext conftest.$ac_ext
22981     fi
22982fi
22983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22984$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22985  if test $ac_cv_type_unsigned_long_long_int = yes; then
22986
22987$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22988
22989  fi
22990
22991
22992
22993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22994$as_echo_n "checking for long long int... " >&6; }
22995if ${ac_cv_type_long_long_int+:} false; then :
22996  $as_echo_n "(cached) " >&6
22997else
22998  ac_cv_type_long_long_int=yes
22999      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23000        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23001        if test $ac_cv_type_long_long_int = yes; then
23002                                        if test "$cross_compiling" = yes; then :
23003  :
23004else
23005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006/* end confdefs.h.  */
23007#include <limits.h>
23008                 #ifndef LLONG_MAX
23009                 # define HALF \
23010                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23011                 # define LLONG_MAX (HALF - 1 + HALF)
23012                 #endif
23013int
23014main ()
23015{
23016long long int n = 1;
23017                 int i;
23018                 for (i = 0; ; i++)
23019                   {
23020                     long long int m = n << i;
23021                     if (m >> i != n)
23022                       return 1;
23023                     if (LLONG_MAX / 2 < m)
23024                       break;
23025                   }
23026                 return 0;
23027  ;
23028  return 0;
23029}
23030_ACEOF
23031if ac_fn_c_try_run "$LINENO"; then :
23032
23033else
23034  ac_cv_type_long_long_int=no
23035fi
23036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23037  conftest.$ac_objext conftest.beam conftest.$ac_ext
23038fi
23039
23040        fi
23041      fi
23042fi
23043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23044$as_echo "$ac_cv_type_long_long_int" >&6; }
23045  if test $ac_cv_type_long_long_int = yes; then
23046
23047$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23048
23049  fi
23050
23051
23052
23053  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23054if test "x$ac_cv_type_intmax_t" = xyes; then :
23055
23056$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23057
23058else
23059  test $ac_cv_type_long_long_int = yes \
23060       && ac_type='long long int' \
23061       || ac_type='long int'
23062
23063cat >>confdefs.h <<_ACEOF
23064#define intmax_t $ac_type
23065_ACEOF
23066
23067fi
23068
23069
23070
23071  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23072if test "x$ac_cv_type_intptr_t" = xyes; then :
23073
23074$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
23075
23076else
23077  for ac_type in 'int' 'long int' 'long long int'; do
23078       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079/* end confdefs.h.  */
23080$ac_includes_default
23081int
23082main ()
23083{
23084static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23085test_array [0] = 0;
23086return test_array [0];
23087
23088  ;
23089  return 0;
23090}
23091_ACEOF
23092if ac_fn_c_try_compile "$LINENO"; then :
23093
23094cat >>confdefs.h <<_ACEOF
23095#define intptr_t $ac_type
23096_ACEOF
23097
23098	  ac_type=
23099fi
23100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101       test -z "$ac_type" && break
23102     done
23103fi
23104
23105
23106
23107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23108$as_echo_n "checking for long double... " >&6; }
23109if ${ac_cv_type_long_double+:} false; then :
23110  $as_echo_n "(cached) " >&6
23111else
23112  if test "$GCC" = yes; then
23113       ac_cv_type_long_double=yes
23114     else
23115       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116/* end confdefs.h.  */
23117/* The Stardent Vistra knows sizeof (long double), but does
23118		 not support it.  */
23119	      long double foo = 0.0L;
23120int
23121main ()
23122{
23123static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23124	      sizeof (double) <= sizeof (long double))];
23125test_array [0] = 0;
23126return test_array [0];
23127
23128  ;
23129  return 0;
23130}
23131_ACEOF
23132if ac_fn_c_try_compile "$LINENO"; then :
23133  ac_cv_type_long_double=yes
23134else
23135  ac_cv_type_long_double=no
23136fi
23137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138     fi
23139fi
23140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23141$as_echo "$ac_cv_type_long_double" >&6; }
23142  if test $ac_cv_type_long_double = yes; then
23143
23144$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23145
23146  fi
23147
23148
23149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
23150$as_echo_n "checking for long double with more range or precision than double... " >&6; }
23151if ${ac_cv_type_long_double_wider+:} false; then :
23152  $as_echo_n "(cached) " >&6
23153else
23154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155/* end confdefs.h.  */
23156#include <float.h>
23157	    long double const a[] =
23158	      {
23159		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23160		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23161	      };
23162	    long double
23163	    f (long double x)
23164	    {
23165	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23166			+ (x ? f (x) : 'c'));
23167	    }
23168
23169int
23170main ()
23171{
23172static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23173		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
23174		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
23175		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23176	    && (int) LDBL_EPSILON == 0
23177	  )];
23178test_array [0] = 0;
23179return test_array [0];
23180
23181  ;
23182  return 0;
23183}
23184_ACEOF
23185if ac_fn_c_try_compile "$LINENO"; then :
23186  ac_cv_type_long_double_wider=yes
23187else
23188  ac_cv_type_long_double_wider=no
23189fi
23190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191fi
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
23193$as_echo "$ac_cv_type_long_double_wider" >&6; }
23194  if test $ac_cv_type_long_double_wider = yes; then
23195
23196$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
23197
23198  fi
23199
23200
23201
23202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23203$as_echo_n "checking for long long int... " >&6; }
23204if ${ac_cv_type_long_long_int+:} false; then :
23205  $as_echo_n "(cached) " >&6
23206else
23207  ac_cv_type_long_long_int=yes
23208      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23209        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23210        if test $ac_cv_type_long_long_int = yes; then
23211                                        if test "$cross_compiling" = yes; then :
23212  :
23213else
23214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215/* end confdefs.h.  */
23216#include <limits.h>
23217                 #ifndef LLONG_MAX
23218                 # define HALF \
23219                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23220                 # define LLONG_MAX (HALF - 1 + HALF)
23221                 #endif
23222int
23223main ()
23224{
23225long long int n = 1;
23226                 int i;
23227                 for (i = 0; ; i++)
23228                   {
23229                     long long int m = n << i;
23230                     if (m >> i != n)
23231                       return 1;
23232                     if (LLONG_MAX / 2 < m)
23233                       break;
23234                   }
23235                 return 0;
23236  ;
23237  return 0;
23238}
23239_ACEOF
23240if ac_fn_c_try_run "$LINENO"; then :
23241
23242else
23243  ac_cv_type_long_long_int=no
23244fi
23245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23246  conftest.$ac_objext conftest.beam conftest.$ac_ext
23247fi
23248
23249        fi
23250      fi
23251fi
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23253$as_echo "$ac_cv_type_long_long_int" >&6; }
23254  if test $ac_cv_type_long_long_int = yes; then
23255
23256$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23257
23258  fi
23259
23260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23261$as_echo_n "checking for mbstate_t... " >&6; }
23262if ${ac_cv_type_mbstate_t+:} false; then :
23263  $as_echo_n "(cached) " >&6
23264else
23265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266/* end confdefs.h.  */
23267$ac_includes_default
23268#	    include <wchar.h>
23269int
23270main ()
23271{
23272mbstate_t x; return sizeof x;
23273  ;
23274  return 0;
23275}
23276_ACEOF
23277if ac_fn_c_try_compile "$LINENO"; then :
23278  ac_cv_type_mbstate_t=yes
23279else
23280  ac_cv_type_mbstate_t=no
23281fi
23282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283fi
23284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23285$as_echo "$ac_cv_type_mbstate_t" >&6; }
23286   if test $ac_cv_type_mbstate_t = yes; then
23287
23288$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23289
23290   else
23291
23292$as_echo "#define mbstate_t int" >>confdefs.h
23293
23294   fi
23295ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23296if test "x$ac_cv_type_mode_t" = xyes; then :
23297
23298else
23299
23300cat >>confdefs.h <<_ACEOF
23301#define mode_t int
23302_ACEOF
23303
23304fi
23305
23306ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23307if test "x$ac_cv_type_off_t" = xyes; then :
23308
23309else
23310
23311cat >>confdefs.h <<_ACEOF
23312#define off_t long int
23313_ACEOF
23314
23315fi
23316
23317ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23318if test "x$ac_cv_type_pid_t" = xyes; then :
23319
23320else
23321
23322cat >>confdefs.h <<_ACEOF
23323#define pid_t int
23324_ACEOF
23325
23326fi
23327
23328ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23329if test "x$ac_cv_type_size_t" = xyes; then :
23330
23331else
23332
23333cat >>confdefs.h <<_ACEOF
23334#define size_t unsigned int
23335_ACEOF
23336
23337fi
23338
23339ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23340if test "x$ac_cv_type_ssize_t" = xyes; then :
23341
23342else
23343
23344cat >>confdefs.h <<_ACEOF
23345#define ssize_t int
23346_ACEOF
23347
23348fi
23349
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23351$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23352if ${ac_cv_type_uid_t+:} false; then :
23353  $as_echo_n "(cached) " >&6
23354else
23355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356/* end confdefs.h.  */
23357#include <sys/types.h>
23358
23359_ACEOF
23360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23361  $EGREP "uid_t" >/dev/null 2>&1; then :
23362  ac_cv_type_uid_t=yes
23363else
23364  ac_cv_type_uid_t=no
23365fi
23366rm -f conftest*
23367
23368fi
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23370$as_echo "$ac_cv_type_uid_t" >&6; }
23371if test $ac_cv_type_uid_t = no; then
23372
23373$as_echo "#define uid_t int" >>confdefs.h
23374
23375
23376$as_echo "#define gid_t int" >>confdefs.h
23377
23378fi
23379
23380ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23381case $ac_cv_c_uint8_t in #(
23382  no|yes) ;; #(
23383  *)
23384
23385$as_echo "#define _UINT8_T 1" >>confdefs.h
23386
23387
23388cat >>confdefs.h <<_ACEOF
23389#define uint8_t $ac_cv_c_uint8_t
23390_ACEOF
23391;;
23392  esac
23393
23394ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23395case $ac_cv_c_uint16_t in #(
23396  no|yes) ;; #(
23397  *)
23398
23399
23400cat >>confdefs.h <<_ACEOF
23401#define uint16_t $ac_cv_c_uint16_t
23402_ACEOF
23403;;
23404  esac
23405
23406ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23407case $ac_cv_c_uint32_t in #(
23408  no|yes) ;; #(
23409  *)
23410
23411$as_echo "#define _UINT32_T 1" >>confdefs.h
23412
23413
23414cat >>confdefs.h <<_ACEOF
23415#define uint32_t $ac_cv_c_uint32_t
23416_ACEOF
23417;;
23418  esac
23419
23420ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23421case $ac_cv_c_uint64_t in #(
23422  no|yes) ;; #(
23423  *)
23424
23425$as_echo "#define _UINT64_T 1" >>confdefs.h
23426
23427
23428cat >>confdefs.h <<_ACEOF
23429#define uint64_t $ac_cv_c_uint64_t
23430_ACEOF
23431;;
23432  esac
23433
23434
23435
23436  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23437if test "x$ac_cv_type_uintmax_t" = xyes; then :
23438
23439$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23440
23441else
23442  test $ac_cv_type_unsigned_long_long_int = yes \
23443       && ac_type='unsigned long long int' \
23444       || ac_type='unsigned long int'
23445
23446cat >>confdefs.h <<_ACEOF
23447#define uintmax_t $ac_type
23448_ACEOF
23449
23450fi
23451
23452
23453
23454  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23455if test "x$ac_cv_type_uintptr_t" = xyes; then :
23456
23457$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23458
23459else
23460  for ac_type in 'unsigned int' 'unsigned long int' \
23461	'unsigned long long int'; do
23462       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463/* end confdefs.h.  */
23464$ac_includes_default
23465int
23466main ()
23467{
23468static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23469test_array [0] = 0;
23470return test_array [0];
23471
23472  ;
23473  return 0;
23474}
23475_ACEOF
23476if ac_fn_c_try_compile "$LINENO"; then :
23477
23478cat >>confdefs.h <<_ACEOF
23479#define uintptr_t $ac_type
23480_ACEOF
23481
23482	  ac_type=
23483fi
23484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485       test -z "$ac_type" && break
23486     done
23487fi
23488
23489
23490
23491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23492$as_echo_n "checking for unsigned long long int... " >&6; }
23493if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23494  $as_echo_n "(cached) " >&6
23495else
23496  ac_cv_type_unsigned_long_long_int=yes
23497     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23498       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499/* end confdefs.h.  */
23500
23501  /* For now, do not test the preprocessor; as of 2007 there are too many
23502         implementations with broken preprocessors.  Perhaps this can
23503         be revisited in 2012.  In the meantime, code should not expect
23504         #if to work with literals wider than 32 bits.  */
23505      /* Test literals.  */
23506      long long int ll = 9223372036854775807ll;
23507      long long int nll = -9223372036854775807LL;
23508      unsigned long long int ull = 18446744073709551615ULL;
23509      /* Test constant expressions.   */
23510      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23511                     ? 1 : -1)];
23512      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23513                     ? 1 : -1)];
23514      int i = 63;
23515int
23516main ()
23517{
23518/* Test availability of runtime routines for shift and division.  */
23519      long long int llmax = 9223372036854775807ll;
23520      unsigned long long int ullmax = 18446744073709551615ull;
23521      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23522              | (llmax / ll) | (llmax % ll)
23523              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23524              | (ullmax / ull) | (ullmax % ull));
23525  ;
23526  return 0;
23527}
23528
23529_ACEOF
23530if ac_fn_c_try_link "$LINENO"; then :
23531
23532else
23533  ac_cv_type_unsigned_long_long_int=no
23534fi
23535rm -f core conftest.err conftest.$ac_objext \
23536    conftest$ac_exeext conftest.$ac_ext
23537     fi
23538fi
23539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23540$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23541  if test $ac_cv_type_unsigned_long_long_int = yes; then
23542
23543$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23544
23545  fi
23546
23547
23548# Float_t and double_t are intended to be the the most efficient type.
23549ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23550"
23551if test "x$ac_cv_type_float_t" = xyes; then :
23552
23553cat >>confdefs.h <<_ACEOF
23554#define HAVE_FLOAT_T 1
23555_ACEOF
23556
23557
23558fi
23559
23560ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23561"
23562if test "x$ac_cv_type_double_t" = xyes; then :
23563
23564cat >>confdefs.h <<_ACEOF
23565#define HAVE_DOUBLE_T 1
23566_ACEOF
23567
23568
23569fi
23570
23571# The cast to long int works around a bug in the HP C Compiler
23572# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23573# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23574# This bug is HP SR number 8606223364.
23575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23576$as_echo_n "checking size of float_t... " >&6; }
23577if ${ac_cv_sizeof_float_t+:} false; then :
23578  $as_echo_n "(cached) " >&6
23579else
23580  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
23581"; then :
23582
23583else
23584  if test "$ac_cv_type_float_t" = yes; then
23585     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23587as_fn_error 77 "cannot compute sizeof (float_t)
23588See \`config.log' for more details" "$LINENO" 5; }
23589   else
23590     ac_cv_sizeof_float_t=0
23591   fi
23592fi
23593
23594fi
23595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23596$as_echo "$ac_cv_sizeof_float_t" >&6; }
23597
23598
23599
23600cat >>confdefs.h <<_ACEOF
23601#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23602_ACEOF
23603
23604
23605# The cast to long int works around a bug in the HP C Compiler
23606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23608# This bug is HP SR number 8606223364.
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23610$as_echo_n "checking size of double_t... " >&6; }
23611if ${ac_cv_sizeof_double_t+:} false; then :
23612  $as_echo_n "(cached) " >&6
23613else
23614  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
23615"; then :
23616
23617else
23618  if test "$ac_cv_type_double_t" = yes; then
23619     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23621as_fn_error 77 "cannot compute sizeof (double_t)
23622See \`config.log' for more details" "$LINENO" 5; }
23623   else
23624     ac_cv_sizeof_double_t=0
23625   fi
23626fi
23627
23628fi
23629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23630$as_echo "$ac_cv_sizeof_double_t" >&6; }
23631
23632
23633
23634cat >>confdefs.h <<_ACEOF
23635#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23636_ACEOF
23637
23638
23639
23640# Get size of float, double and long double for comparaison.
23641# The cast to long int works around a bug in the HP C Compiler
23642# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23643# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23644# This bug is HP SR number 8606223364.
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23646$as_echo_n "checking size of float... " >&6; }
23647if ${ac_cv_sizeof_float+:} false; then :
23648  $as_echo_n "(cached) " >&6
23649else
23650  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
23651
23652else
23653  if test "$ac_cv_type_float" = yes; then
23654     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23656as_fn_error 77 "cannot compute sizeof (float)
23657See \`config.log' for more details" "$LINENO" 5; }
23658   else
23659     ac_cv_sizeof_float=0
23660   fi
23661fi
23662
23663fi
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23665$as_echo "$ac_cv_sizeof_float" >&6; }
23666
23667
23668
23669cat >>confdefs.h <<_ACEOF
23670#define SIZEOF_FLOAT $ac_cv_sizeof_float
23671_ACEOF
23672
23673
23674# The cast to long int works around a bug in the HP C Compiler
23675# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23676# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23677# This bug is HP SR number 8606223364.
23678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23679$as_echo_n "checking size of double... " >&6; }
23680if ${ac_cv_sizeof_double+:} false; then :
23681  $as_echo_n "(cached) " >&6
23682else
23683  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
23684
23685else
23686  if test "$ac_cv_type_double" = yes; then
23687     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23689as_fn_error 77 "cannot compute sizeof (double)
23690See \`config.log' for more details" "$LINENO" 5; }
23691   else
23692     ac_cv_sizeof_double=0
23693   fi
23694fi
23695
23696fi
23697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23698$as_echo "$ac_cv_sizeof_double" >&6; }
23699
23700
23701
23702cat >>confdefs.h <<_ACEOF
23703#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23704_ACEOF
23705
23706
23707# The cast to long int works around a bug in the HP C Compiler
23708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23710# This bug is HP SR number 8606223364.
23711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23712$as_echo_n "checking size of long double... " >&6; }
23713if ${ac_cv_sizeof_long_double+:} false; then :
23714  $as_echo_n "(cached) " >&6
23715else
23716  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
23717
23718else
23719  if test "$ac_cv_type_long_double" = yes; then
23720     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23722as_fn_error 77 "cannot compute sizeof (long double)
23723See \`config.log' for more details" "$LINENO" 5; }
23724   else
23725     ac_cv_sizeof_long_double=0
23726   fi
23727fi
23728
23729fi
23730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23731$as_echo "$ac_cv_sizeof_long_double" >&6; }
23732
23733
23734
23735cat >>confdefs.h <<_ACEOF
23736#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23737_ACEOF
23738
23739
23740
23741# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23742# The cast to long int works around a bug in the HP C Compiler
23743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23745# This bug is HP SR number 8606223364.
23746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23747$as_echo_n "checking size of signed short... " >&6; }
23748if ${ac_cv_sizeof_signed_short+:} false; then :
23749  $as_echo_n "(cached) " >&6
23750else
23751  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23752
23753else
23754  if test "$ac_cv_type_signed_short" = yes; then
23755     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23757as_fn_error 77 "cannot compute sizeof (signed short)
23758See \`config.log' for more details" "$LINENO" 5; }
23759   else
23760     ac_cv_sizeof_signed_short=0
23761   fi
23762fi
23763
23764fi
23765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23766$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23767
23768
23769
23770cat >>confdefs.h <<_ACEOF
23771#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23772_ACEOF
23773
23774
23775
23776# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23777# The cast to long int works around a bug in the HP C Compiler
23778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23780# This bug is HP SR number 8606223364.
23781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23782$as_echo_n "checking size of unsigned short... " >&6; }
23783if ${ac_cv_sizeof_unsigned_short+:} false; then :
23784  $as_echo_n "(cached) " >&6
23785else
23786  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23787
23788else
23789  if test "$ac_cv_type_unsigned_short" = yes; then
23790     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23792as_fn_error 77 "cannot compute sizeof (unsigned short)
23793See \`config.log' for more details" "$LINENO" 5; }
23794   else
23795     ac_cv_sizeof_unsigned_short=0
23796   fi
23797fi
23798
23799fi
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23801$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23802
23803
23804
23805cat >>confdefs.h <<_ACEOF
23806#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23807_ACEOF
23808
23809
23810
23811# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23812# The cast to long int works around a bug in the HP C Compiler
23813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23815# This bug is HP SR number 8606223364.
23816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23817$as_echo_n "checking size of signed int... " >&6; }
23818if ${ac_cv_sizeof_signed_int+:} false; then :
23819  $as_echo_n "(cached) " >&6
23820else
23821  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
23822
23823else
23824  if test "$ac_cv_type_signed_int" = yes; then
23825     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23827as_fn_error 77 "cannot compute sizeof (signed int)
23828See \`config.log' for more details" "$LINENO" 5; }
23829   else
23830     ac_cv_sizeof_signed_int=0
23831   fi
23832fi
23833
23834fi
23835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23836$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23837
23838
23839
23840cat >>confdefs.h <<_ACEOF
23841#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23842_ACEOF
23843
23844
23845
23846# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23847# The cast to long int works around a bug in the HP C Compiler
23848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23850# This bug is HP SR number 8606223364.
23851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23852$as_echo_n "checking size of unsigned int... " >&6; }
23853if ${ac_cv_sizeof_unsigned_int+:} false; then :
23854  $as_echo_n "(cached) " >&6
23855else
23856  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
23857
23858else
23859  if test "$ac_cv_type_unsigned_int" = yes; then
23860     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23862as_fn_error 77 "cannot compute sizeof (unsigned int)
23863See \`config.log' for more details" "$LINENO" 5; }
23864   else
23865     ac_cv_sizeof_unsigned_int=0
23866   fi
23867fi
23868
23869fi
23870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23871$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23872
23873
23874
23875cat >>confdefs.h <<_ACEOF
23876#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23877_ACEOF
23878
23879
23880
23881# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23882# The cast to long int works around a bug in the HP C Compiler
23883# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23884# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23885# This bug is HP SR number 8606223364.
23886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23887$as_echo_n "checking size of signed long... " >&6; }
23888if ${ac_cv_sizeof_signed_long+:} false; then :
23889  $as_echo_n "(cached) " >&6
23890else
23891  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
23892
23893else
23894  if test "$ac_cv_type_signed_long" = yes; then
23895     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23897as_fn_error 77 "cannot compute sizeof (signed long)
23898See \`config.log' for more details" "$LINENO" 5; }
23899   else
23900     ac_cv_sizeof_signed_long=0
23901   fi
23902fi
23903
23904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23906$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23907
23908
23909
23910cat >>confdefs.h <<_ACEOF
23911#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23912_ACEOF
23913
23914
23915
23916# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23917# The cast to long int works around a bug in the HP C Compiler
23918# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23919# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23920# This bug is HP SR number 8606223364.
23921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23922$as_echo_n "checking size of unsigned long... " >&6; }
23923if ${ac_cv_sizeof_unsigned_long+:} false; then :
23924  $as_echo_n "(cached) " >&6
23925else
23926  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
23927
23928else
23929  if test "$ac_cv_type_unsigned_long" = yes; then
23930     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23932as_fn_error 77 "cannot compute sizeof (unsigned long)
23933See \`config.log' for more details" "$LINENO" 5; }
23934   else
23935     ac_cv_sizeof_unsigned_long=0
23936   fi
23937fi
23938
23939fi
23940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23941$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23942
23943
23944
23945cat >>confdefs.h <<_ACEOF
23946#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23947_ACEOF
23948
23949
23950
23951# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
23952# 'signed long long' is not supported then the value defined is zero.
23953# The cast to long int works around a bug in the HP C Compiler
23954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23956# This bug is HP SR number 8606223364.
23957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23958$as_echo_n "checking size of signed long long... " >&6; }
23959if ${ac_cv_sizeof_signed_long_long+:} false; then :
23960  $as_echo_n "(cached) " >&6
23961else
23962  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
23963
23964else
23965  if test "$ac_cv_type_signed_long_long" = yes; then
23966     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23968as_fn_error 77 "cannot compute sizeof (signed long long)
23969See \`config.log' for more details" "$LINENO" 5; }
23970   else
23971     ac_cv_sizeof_signed_long_long=0
23972   fi
23973fi
23974
23975fi
23976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23977$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23978
23979
23980
23981cat >>confdefs.h <<_ACEOF
23982#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23983_ACEOF
23984
23985
23986
23987# Obtain size of a 'unsigned long long' and define as
23988# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
23989# supported then the value defined is zero.
23990# The cast to long int works around a bug in the HP C Compiler
23991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23993# This bug is HP SR number 8606223364.
23994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23995$as_echo_n "checking size of unsigned long long... " >&6; }
23996if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23997  $as_echo_n "(cached) " >&6
23998else
23999  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
24000
24001else
24002  if test "$ac_cv_type_unsigned_long_long" = yes; then
24003     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24005as_fn_error 77 "cannot compute sizeof (unsigned long long)
24006See \`config.log' for more details" "$LINENO" 5; }
24007   else
24008     ac_cv_sizeof_unsigned_long_long=0
24009   fi
24010fi
24011
24012fi
24013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
24014$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24015
24016
24017
24018cat >>confdefs.h <<_ACEOF
24019#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24020_ACEOF
24021
24022
24023
24024# Obtain size of off_t and define as SIZEOF_OFF_T
24025# The cast to long int works around a bug in the HP C Compiler
24026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24028# This bug is HP SR number 8606223364.
24029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24030$as_echo_n "checking size of off_t... " >&6; }
24031if ${ac_cv_sizeof_off_t+:} false; then :
24032  $as_echo_n "(cached) " >&6
24033else
24034  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
24035
24036else
24037  if test "$ac_cv_type_off_t" = yes; then
24038     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24040as_fn_error 77 "cannot compute sizeof (off_t)
24041See \`config.log' for more details" "$LINENO" 5; }
24042   else
24043     ac_cv_sizeof_off_t=0
24044   fi
24045fi
24046
24047fi
24048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24049$as_echo "$ac_cv_sizeof_off_t" >&6; }
24050
24051
24052
24053cat >>confdefs.h <<_ACEOF
24054#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24055_ACEOF
24056
24057
24058
24059# Obtain size of size_t and define as SIZEOF_SIZE_T
24060# The cast to long int works around a bug in the HP C Compiler
24061# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24062# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24063# This bug is HP SR number 8606223364.
24064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24065$as_echo_n "checking size of size_t... " >&6; }
24066if ${ac_cv_sizeof_size_t+:} false; then :
24067  $as_echo_n "(cached) " >&6
24068else
24069  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
24070
24071else
24072  if test "$ac_cv_type_size_t" = yes; then
24073     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24075as_fn_error 77 "cannot compute sizeof (size_t)
24076See \`config.log' for more details" "$LINENO" 5; }
24077   else
24078     ac_cv_sizeof_size_t=0
24079   fi
24080fi
24081
24082fi
24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24084$as_echo "$ac_cv_sizeof_size_t" >&6; }
24085
24086
24087
24088cat >>confdefs.h <<_ACEOF
24089#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24090_ACEOF
24091
24092
24093
24094# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24095# The cast to long int works around a bug in the HP C Compiler
24096# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24097# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24098# This bug is HP SR number 8606223364.
24099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24100$as_echo_n "checking size of ssize_t... " >&6; }
24101if ${ac_cv_sizeof_ssize_t+:} false; then :
24102  $as_echo_n "(cached) " >&6
24103else
24104  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
24105
24106else
24107  if test "$ac_cv_type_ssize_t" = yes; then
24108     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24110as_fn_error 77 "cannot compute sizeof (ssize_t)
24111See \`config.log' for more details" "$LINENO" 5; }
24112   else
24113     ac_cv_sizeof_ssize_t=0
24114   fi
24115fi
24116
24117fi
24118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24119$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24120
24121
24122
24123cat >>confdefs.h <<_ACEOF
24124#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24125_ACEOF
24126
24127
24128
24129# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24130# The cast to long int works around a bug in the HP C Compiler
24131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24133# This bug is HP SR number 8606223364.
24134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
24135$as_echo_n "checking size of unsigned int*... " >&6; }
24136if ${ac_cv_sizeof_unsigned_intp+:} false; then :
24137  $as_echo_n "(cached) " >&6
24138else
24139  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
24140
24141else
24142  if test "$ac_cv_type_unsigned_intp" = yes; then
24143     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24145as_fn_error 77 "cannot compute sizeof (unsigned int*)
24146See \`config.log' for more details" "$LINENO" 5; }
24147   else
24148     ac_cv_sizeof_unsigned_intp=0
24149   fi
24150fi
24151
24152fi
24153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
24154$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24155
24156
24157
24158cat >>confdefs.h <<_ACEOF
24159#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24160_ACEOF
24161
24162
24163
24164#
24165# Compute sized types for current CPU and compiler options.
24166#
24167
24168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
24169$as_echo_n "checking for signed 8-bit type... " >&6; }
24170INT8_T='signed char'
24171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24172$as_echo "$INT8_T" >&6; }
24173
24174
24175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
24176$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24177UINT8_T='unsigned char'
24178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24179$as_echo "$UINT8_T" >&6; }
24180
24181
24182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
24183$as_echo_n "checking for signed 16-bit type... " >&6; }
24184INT16_T='signed short'
24185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24186$as_echo "$INT16_T" >&6; }
24187
24188
24189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
24190$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24191UINT16_T='unsigned short'
24192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24193$as_echo "$UINT16_T" >&6; }
24194
24195
24196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
24197$as_echo_n "checking for signed 32-bit type... " >&6; }
24198INT32_T='none'
24199INT32_F='none'
24200if test $ac_cv_sizeof_signed_int -eq 4; then
24201  INT32_T='signed int'
24202  INT32_F='""'
24203elif test $ac_cv_sizeof_signed_long -eq 4; then
24204  INT32_T='signed long'
24205  INT32_F='"l"'
24206fi
24207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24208$as_echo "$INT32_T" >&6; }
24209
24210
24211
24212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
24213$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24214UINT32_T='none'
24215UINT32_F='none'
24216if test $ac_cv_sizeof_unsigned_int -eq 4; then
24217  UINT32_T='unsigned int'
24218  UINT32_F='""'
24219elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24220  UINT32_T='unsigned long'
24221  UINT32_F='"l"'
24222fi
24223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24224$as_echo "$UINT32_T" >&6; }
24225
24226
24227
24228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
24229$as_echo_n "checking for signed 64-bit type... " >&6; }
24230INT64_T='none'
24231INT64_F='none'
24232if test $ac_cv_sizeof_signed_long -eq 8; then
24233  INT64_T='signed long'
24234  INT64_F='"l"'
24235elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24236  INT64_T='signed long long'
24237  INT64_F='"ll"'
24238fi
24239case "${host_os}" in
24240  mingw* )
24241    INT64_F='"I64"'
24242    ;;
24243esac
24244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24245$as_echo "$INT64_T" >&6; }
24246
24247
24248
24249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
24250$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24251UINT64_T='none'
24252UINT64_F='none'
24253if test $ac_cv_sizeof_unsigned_long -eq 8; then
24254  UINT64_T='unsigned long'
24255  UINT64_F='"l"'
24256elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24257  UINT64_T='unsigned long long'
24258  UINT64_F='"ll"'
24259fi
24260case "${host_os}" in
24261  mingw* )
24262    UINT64_F='"I64"'
24263    ;;
24264esac
24265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24266$as_echo "$UINT64_T" >&6; }
24267
24268
24269
24270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
24271$as_echo_n "checking for unsigned maximum type... " >&6; }
24272UINTMAX_T='none'
24273UINTMAX_F='none'
24274if test "$UINT64_T" != 'none'; then
24275  UINTMAX_T=$UINT64_T
24276  UINTMAX_F=$UINT64_F
24277elif test "$UINT32_T" != 'none'; then
24278  UINTMAX_T=$UINT32_T
24279  UINTMAX_F=$UINT32_F
24280fi
24281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24282$as_echo "$UINTMAX_T" >&6; }
24283
24284
24285
24286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
24287$as_echo_n "checking for pointer difference type... " >&6; }
24288UINTPTR_T='none'
24289UINTPTR_F='none'
24290if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24291  UINTPTR_T='unsigned long'
24292  UINTPTR_F='"l"'
24293elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24294  UINTPTR_T='unsigned long long'
24295  UINTPTR_F='"ll"'
24296fi
24297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24298$as_echo "$UINTPTR_T" >&6; }
24299
24300
24301
24302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
24303$as_echo_n "checking whether our compiler supports __func__... " >&6; }
24304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305/* end confdefs.h.  */
24306
24307int
24308main ()
24309{
24310{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24311  ;
24312  return 0;
24313}
24314_ACEOF
24315if ac_fn_c_try_compile "$LINENO"; then :
24316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317$as_echo "yes" >&6; }
24318else
24319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320$as_echo "no" >&6; }
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
24322$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24324/* end confdefs.h.  */
24325
24326int
24327main ()
24328{
24329{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24330  ;
24331  return 0;
24332}
24333_ACEOF
24334if ac_fn_c_try_compile "$LINENO"; then :
24335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24336$as_echo "yes" >&6; }
24337
24338$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
24339
24340else
24341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24342$as_echo "no" >&6; }
24343
24344$as_echo "#define __func__ __FILE__" >>confdefs.h
24345
24346fi
24347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348fi
24349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350
24351########
24352#
24353# Check for functions
24354#
24355########
24356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24357$as_echo_n "checking whether closedir returns void... " >&6; }
24358if ${ac_cv_func_closedir_void+:} false; then :
24359  $as_echo_n "(cached) " >&6
24360else
24361  if test "$cross_compiling" = yes; then :
24362  ac_cv_func_closedir_void=yes
24363else
24364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24365/* end confdefs.h.  */
24366$ac_includes_default
24367#include <$ac_header_dirent>
24368#ifndef __cplusplus
24369int closedir ();
24370#endif
24371
24372int
24373main ()
24374{
24375return closedir (opendir (".")) != 0;
24376  ;
24377  return 0;
24378}
24379_ACEOF
24380if ac_fn_c_try_run "$LINENO"; then :
24381  ac_cv_func_closedir_void=no
24382else
24383  ac_cv_func_closedir_void=yes
24384fi
24385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24386  conftest.$ac_objext conftest.beam conftest.$ac_ext
24387fi
24388
24389fi
24390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24391$as_echo "$ac_cv_func_closedir_void" >&6; }
24392if test $ac_cv_func_closedir_void = yes; then
24393
24394$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24395
24396fi
24397
24398
24399
24400
24401  for ac_header in $ac_header_list
24402do :
24403  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24405"
24406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24407  cat >>confdefs.h <<_ACEOF
24408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24409_ACEOF
24410
24411fi
24412
24413done
24414
24415
24416
24417
24418
24419
24420
24421
24422for ac_func in getpagesize
24423do :
24424  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24425if test "x$ac_cv_func_getpagesize" = xyes; then :
24426  cat >>confdefs.h <<_ACEOF
24427#define HAVE_GETPAGESIZE 1
24428_ACEOF
24429
24430fi
24431done
24432
24433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24434$as_echo_n "checking for working mmap... " >&6; }
24435if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24436  $as_echo_n "(cached) " >&6
24437else
24438  if test "$cross_compiling" = yes; then :
24439  ac_cv_func_mmap_fixed_mapped=no
24440else
24441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24442/* end confdefs.h.  */
24443$ac_includes_default
24444/* malloc might have been renamed as rpl_malloc. */
24445#undef malloc
24446
24447/* Thanks to Mike Haertel and Jim Avera for this test.
24448   Here is a matrix of mmap possibilities:
24449	mmap private not fixed
24450	mmap private fixed at somewhere currently unmapped
24451	mmap private fixed at somewhere already mapped
24452	mmap shared not fixed
24453	mmap shared fixed at somewhere currently unmapped
24454	mmap shared fixed at somewhere already mapped
24455   For private mappings, we should verify that changes cannot be read()
24456   back from the file, nor mmap's back from the file at a different
24457   address.  (There have been systems where private was not correctly
24458   implemented like the infamous i386 svr4.0, and systems where the
24459   VM page cache was not coherent with the file system buffer cache
24460   like early versions of FreeBSD and possibly contemporary NetBSD.)
24461   For shared mappings, we should conversely verify that changes get
24462   propagated back to all the places they're supposed to be.
24463
24464   Grep wants private fixed already mapped.
24465   The main things grep needs to know about mmap are:
24466   * does it exist and is it safe to write into the mmap'd area
24467   * how to use it (BSD variants)  */
24468
24469#include <fcntl.h>
24470#include <sys/mman.h>
24471
24472#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24473char *malloc ();
24474#endif
24475
24476/* This mess was copied from the GNU getpagesize.h.  */
24477#ifndef HAVE_GETPAGESIZE
24478# ifdef _SC_PAGESIZE
24479#  define getpagesize() sysconf(_SC_PAGESIZE)
24480# else /* no _SC_PAGESIZE */
24481#  ifdef HAVE_SYS_PARAM_H
24482#   include <sys/param.h>
24483#   ifdef EXEC_PAGESIZE
24484#    define getpagesize() EXEC_PAGESIZE
24485#   else /* no EXEC_PAGESIZE */
24486#    ifdef NBPG
24487#     define getpagesize() NBPG * CLSIZE
24488#     ifndef CLSIZE
24489#      define CLSIZE 1
24490#     endif /* no CLSIZE */
24491#    else /* no NBPG */
24492#     ifdef NBPC
24493#      define getpagesize() NBPC
24494#     else /* no NBPC */
24495#      ifdef PAGESIZE
24496#       define getpagesize() PAGESIZE
24497#      endif /* PAGESIZE */
24498#     endif /* no NBPC */
24499#    endif /* no NBPG */
24500#   endif /* no EXEC_PAGESIZE */
24501#  else /* no HAVE_SYS_PARAM_H */
24502#   define getpagesize() 8192	/* punt totally */
24503#  endif /* no HAVE_SYS_PARAM_H */
24504# endif /* no _SC_PAGESIZE */
24505
24506#endif /* no HAVE_GETPAGESIZE */
24507
24508int
24509main ()
24510{
24511  char *data, *data2, *data3;
24512  const char *cdata2;
24513  int i, pagesize;
24514  int fd, fd2;
24515
24516  pagesize = getpagesize ();
24517
24518  /* First, make a file with some known garbage in it. */
24519  data = (char *) malloc (pagesize);
24520  if (!data)
24521    return 1;
24522  for (i = 0; i < pagesize; ++i)
24523    *(data + i) = rand ();
24524  umask (0);
24525  fd = creat ("conftest.mmap", 0600);
24526  if (fd < 0)
24527    return 2;
24528  if (write (fd, data, pagesize) != pagesize)
24529    return 3;
24530  close (fd);
24531
24532  /* Next, check that the tail of a page is zero-filled.  File must have
24533     non-zero length, otherwise we risk SIGBUS for entire page.  */
24534  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24535  if (fd2 < 0)
24536    return 4;
24537  cdata2 = "";
24538  if (write (fd2, cdata2, 1) != 1)
24539    return 5;
24540  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24541  if (data2 == MAP_FAILED)
24542    return 6;
24543  for (i = 0; i < pagesize; ++i)
24544    if (*(data2 + i))
24545      return 7;
24546  close (fd2);
24547  if (munmap (data2, pagesize))
24548    return 8;
24549
24550  /* Next, try to mmap the file at a fixed address which already has
24551     something else allocated at it.  If we can, also make sure that
24552     we see the same garbage.  */
24553  fd = open ("conftest.mmap", O_RDWR);
24554  if (fd < 0)
24555    return 9;
24556  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24557		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24558    return 10;
24559  for (i = 0; i < pagesize; ++i)
24560    if (*(data + i) != *(data2 + i))
24561      return 11;
24562
24563  /* Finally, make sure that changes to the mapped area do not
24564     percolate back to the file as seen by read().  (This is a bug on
24565     some variants of i386 svr4.0.)  */
24566  for (i = 0; i < pagesize; ++i)
24567    *(data2 + i) = *(data2 + i) + 1;
24568  data3 = (char *) malloc (pagesize);
24569  if (!data3)
24570    return 12;
24571  if (read (fd, data3, pagesize) != pagesize)
24572    return 13;
24573  for (i = 0; i < pagesize; ++i)
24574    if (*(data + i) != *(data3 + i))
24575      return 14;
24576  close (fd);
24577  return 0;
24578}
24579_ACEOF
24580if ac_fn_c_try_run "$LINENO"; then :
24581  ac_cv_func_mmap_fixed_mapped=yes
24582else
24583  ac_cv_func_mmap_fixed_mapped=no
24584fi
24585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24586  conftest.$ac_objext conftest.beam conftest.$ac_ext
24587fi
24588
24589fi
24590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24591$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24592if test $ac_cv_func_mmap_fixed_mapped = yes; then
24593
24594$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24595
24596fi
24597rm -f conftest.mmap conftest.txt
24598
24599for ac_header in vfork.h
24600do :
24601  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24602if test "x$ac_cv_header_vfork_h" = xyes; then :
24603  cat >>confdefs.h <<_ACEOF
24604#define HAVE_VFORK_H 1
24605_ACEOF
24606
24607fi
24608
24609done
24610
24611for ac_func in fork vfork
24612do :
24613  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24615if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24616  cat >>confdefs.h <<_ACEOF
24617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24618_ACEOF
24619
24620fi
24621done
24622
24623if test "x$ac_cv_func_fork" = xyes; then
24624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24625$as_echo_n "checking for working fork... " >&6; }
24626if ${ac_cv_func_fork_works+:} false; then :
24627  $as_echo_n "(cached) " >&6
24628else
24629  if test "$cross_compiling" = yes; then :
24630  ac_cv_func_fork_works=cross
24631else
24632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633/* end confdefs.h.  */
24634$ac_includes_default
24635int
24636main ()
24637{
24638
24639	  /* By Ruediger Kuhlmann. */
24640	  return fork () < 0;
24641
24642  ;
24643  return 0;
24644}
24645_ACEOF
24646if ac_fn_c_try_run "$LINENO"; then :
24647  ac_cv_func_fork_works=yes
24648else
24649  ac_cv_func_fork_works=no
24650fi
24651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24652  conftest.$ac_objext conftest.beam conftest.$ac_ext
24653fi
24654
24655fi
24656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24657$as_echo "$ac_cv_func_fork_works" >&6; }
24658
24659else
24660  ac_cv_func_fork_works=$ac_cv_func_fork
24661fi
24662if test "x$ac_cv_func_fork_works" = xcross; then
24663  case $host in
24664    *-*-amigaos* | *-*-msdosdjgpp*)
24665      # Override, as these systems have only a dummy fork() stub
24666      ac_cv_func_fork_works=no
24667      ;;
24668    *)
24669      ac_cv_func_fork_works=yes
24670      ;;
24671  esac
24672  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24673$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24674fi
24675ac_cv_func_vfork_works=$ac_cv_func_vfork
24676if test "x$ac_cv_func_vfork" = xyes; then
24677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24678$as_echo_n "checking for working vfork... " >&6; }
24679if ${ac_cv_func_vfork_works+:} false; then :
24680  $as_echo_n "(cached) " >&6
24681else
24682  if test "$cross_compiling" = yes; then :
24683  ac_cv_func_vfork_works=cross
24684else
24685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24686/* end confdefs.h.  */
24687/* Thanks to Paul Eggert for this test.  */
24688$ac_includes_default
24689#include <sys/wait.h>
24690#ifdef HAVE_VFORK_H
24691# include <vfork.h>
24692#endif
24693/* On some sparc systems, changes by the child to local and incoming
24694   argument registers are propagated back to the parent.  The compiler
24695   is told about this with #include <vfork.h>, but some compilers
24696   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24697   static variable whose address is put into a register that is
24698   clobbered by the vfork.  */
24699static void
24700#ifdef __cplusplus
24701sparc_address_test (int arg)
24702# else
24703sparc_address_test (arg) int arg;
24704#endif
24705{
24706  static pid_t child;
24707  if (!child) {
24708    child = vfork ();
24709    if (child < 0) {
24710      perror ("vfork");
24711      _exit(2);
24712    }
24713    if (!child) {
24714      arg = getpid();
24715      write(-1, "", 0);
24716      _exit (arg);
24717    }
24718  }
24719}
24720
24721int
24722main ()
24723{
24724  pid_t parent = getpid ();
24725  pid_t child;
24726
24727  sparc_address_test (0);
24728
24729  child = vfork ();
24730
24731  if (child == 0) {
24732    /* Here is another test for sparc vfork register problems.  This
24733       test uses lots of local variables, at least as many local
24734       variables as main has allocated so far including compiler
24735       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24736       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24737       reuse the register of parent for one of the local variables,
24738       since it will think that parent can't possibly be used any more
24739       in this routine.  Assigning to the local variable will thus
24740       munge parent in the parent process.  */
24741    pid_t
24742      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24743      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24744    /* Convince the compiler that p..p7 are live; otherwise, it might
24745       use the same hardware register for all 8 local variables.  */
24746    if (p != p1 || p != p2 || p != p3 || p != p4
24747	|| p != p5 || p != p6 || p != p7)
24748      _exit(1);
24749
24750    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24751       from child file descriptors.  If the child closes a descriptor
24752       before it execs or exits, this munges the parent's descriptor
24753       as well.  Test for this by closing stdout in the child.  */
24754    _exit(close(fileno(stdout)) != 0);
24755  } else {
24756    int status;
24757    struct stat st;
24758
24759    while (wait(&status) != child)
24760      ;
24761    return (
24762	 /* Was there some problem with vforking?  */
24763	 child < 0
24764
24765	 /* Did the child fail?  (This shouldn't happen.)  */
24766	 || status
24767
24768	 /* Did the vfork/compiler bug occur?  */
24769	 || parent != getpid()
24770
24771	 /* Did the file descriptor bug occur?  */
24772	 || fstat(fileno(stdout), &st) != 0
24773	 );
24774  }
24775}
24776_ACEOF
24777if ac_fn_c_try_run "$LINENO"; then :
24778  ac_cv_func_vfork_works=yes
24779else
24780  ac_cv_func_vfork_works=no
24781fi
24782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24783  conftest.$ac_objext conftest.beam conftest.$ac_ext
24784fi
24785
24786fi
24787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24788$as_echo "$ac_cv_func_vfork_works" >&6; }
24789
24790fi;
24791if test "x$ac_cv_func_fork_works" = xcross; then
24792  ac_cv_func_vfork_works=$ac_cv_func_vfork
24793  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24794$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24795fi
24796
24797if test "x$ac_cv_func_vfork_works" = xyes; then
24798
24799$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24800
24801else
24802
24803$as_echo "#define vfork fork" >>confdefs.h
24804
24805fi
24806if test "x$ac_cv_func_fork_works" = xyes; then
24807
24808$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24809
24810fi
24811
24812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24813$as_echo_n "checking for working memcmp... " >&6; }
24814if ${ac_cv_func_memcmp_working+:} false; then :
24815  $as_echo_n "(cached) " >&6
24816else
24817  if test "$cross_compiling" = yes; then :
24818  ac_cv_func_memcmp_working=no
24819else
24820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24821/* end confdefs.h.  */
24822$ac_includes_default
24823int
24824main ()
24825{
24826
24827  /* Some versions of memcmp are not 8-bit clean.  */
24828  char c0 = '\100', c1 = '\200', c2 = '\201';
24829  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24830    return 1;
24831
24832  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24833     or more and with at least one buffer not starting on a 4-byte boundary.
24834     William Lewis provided this test program.   */
24835  {
24836    char foo[21];
24837    char bar[21];
24838    int i;
24839    for (i = 0; i < 4; i++)
24840      {
24841	char *a = foo + i;
24842	char *b = bar + i;
24843	strcpy (a, "--------01111111");
24844	strcpy (b, "--------10000000");
24845	if (memcmp (a, b, 16) >= 0)
24846	  return 1;
24847      }
24848    return 0;
24849  }
24850
24851  ;
24852  return 0;
24853}
24854_ACEOF
24855if ac_fn_c_try_run "$LINENO"; then :
24856  ac_cv_func_memcmp_working=yes
24857else
24858  ac_cv_func_memcmp_working=no
24859fi
24860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24861  conftest.$ac_objext conftest.beam conftest.$ac_ext
24862fi
24863
24864fi
24865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24866$as_echo "$ac_cv_func_memcmp_working" >&6; }
24867test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24868  *" memcmp.$ac_objext "* ) ;;
24869  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24870 ;;
24871esac
24872
24873
24874for ac_header in sys/select.h sys/socket.h
24875do :
24876  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24877ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24879  cat >>confdefs.h <<_ACEOF
24880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24881_ACEOF
24882
24883fi
24884
24885done
24886
24887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24888$as_echo_n "checking types of arguments for select... " >&6; }
24889if ${ac_cv_func_select_args+:} false; then :
24890  $as_echo_n "(cached) " >&6
24891else
24892  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24893 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24894  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24896/* end confdefs.h.  */
24897$ac_includes_default
24898#ifdef HAVE_SYS_SELECT_H
24899# include <sys/select.h>
24900#endif
24901#ifdef HAVE_SYS_SOCKET_H
24902# include <sys/socket.h>
24903#endif
24904
24905int
24906main ()
24907{
24908extern int select ($ac_arg1,
24909					    $ac_arg234, $ac_arg234, $ac_arg234,
24910					    $ac_arg5);
24911  ;
24912  return 0;
24913}
24914_ACEOF
24915if ac_fn_c_try_compile "$LINENO"; then :
24916  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24917fi
24918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24919  done
24920 done
24921done
24922# Provide a safe default value.
24923: "${ac_cv_func_select_args=int,int *,struct timeval *}"
24924
24925fi
24926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24927$as_echo "$ac_cv_func_select_args" >&6; }
24928ac_save_IFS=$IFS; IFS=','
24929set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24930IFS=$ac_save_IFS
24931shift
24932
24933cat >>confdefs.h <<_ACEOF
24934#define SELECT_TYPE_ARG1 $1
24935_ACEOF
24936
24937
24938cat >>confdefs.h <<_ACEOF
24939#define SELECT_TYPE_ARG234 ($2)
24940_ACEOF
24941
24942
24943cat >>confdefs.h <<_ACEOF
24944#define SELECT_TYPE_ARG5 ($3)
24945_ACEOF
24946
24947rm -f conftest*
24948
24949if ${ac_cv_func_setvbuf_reversed+:} false; then :
24950  $as_echo_n "(cached) " >&6
24951else
24952  ac_cv_func_setvbuf_reversed=no
24953fi
24954
24955
24956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24957$as_echo_n "checking return type of signal handlers... " >&6; }
24958if ${ac_cv_type_signal+:} false; then :
24959  $as_echo_n "(cached) " >&6
24960else
24961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962/* end confdefs.h.  */
24963#include <sys/types.h>
24964#include <signal.h>
24965
24966int
24967main ()
24968{
24969return *(signal (0, 0)) (0) == 1;
24970  ;
24971  return 0;
24972}
24973_ACEOF
24974if ac_fn_c_try_compile "$LINENO"; then :
24975  ac_cv_type_signal=int
24976else
24977  ac_cv_type_signal=void
24978fi
24979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980fi
24981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24982$as_echo "$ac_cv_type_signal" >&6; }
24983
24984cat >>confdefs.h <<_ACEOF
24985#define RETSIGTYPE $ac_cv_type_signal
24986_ACEOF
24987
24988
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24990$as_echo_n "checking for working strtod... " >&6; }
24991if ${ac_cv_func_strtod+:} false; then :
24992  $as_echo_n "(cached) " >&6
24993else
24994  if test "$cross_compiling" = yes; then :
24995  ac_cv_func_strtod=no
24996else
24997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998/* end confdefs.h.  */
24999
25000$ac_includes_default
25001#ifndef strtod
25002double strtod ();
25003#endif
25004int
25005main()
25006{
25007  {
25008    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
25009    char *string = " +69";
25010    char *term;
25011    double value;
25012    value = strtod (string, &term);
25013    if (value != 69 || term != (string + 4))
25014      return 1;
25015  }
25016
25017  {
25018    /* Under Solaris 2.4, strtod returns the wrong value for the
25019       terminating character under some conditions.  */
25020    char *string = "NaN";
25021    char *term;
25022    strtod (string, &term);
25023    if (term != string && *(term - 1) == 0)
25024      return 1;
25025  }
25026  return 0;
25027}
25028
25029_ACEOF
25030if ac_fn_c_try_run "$LINENO"; then :
25031  ac_cv_func_strtod=yes
25032else
25033  ac_cv_func_strtod=no
25034fi
25035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25036  conftest.$ac_objext conftest.beam conftest.$ac_ext
25037fi
25038
25039fi
25040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
25041$as_echo "$ac_cv_func_strtod" >&6; }
25042if test $ac_cv_func_strtod = no; then
25043  case " $LIBOBJS " in
25044  *" strtod.$ac_objext "* ) ;;
25045  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25046 ;;
25047esac
25048
25049ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
25050if test "x$ac_cv_func_pow" = xyes; then :
25051
25052fi
25053
25054if test $ac_cv_func_pow = no; then
25055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
25056$as_echo_n "checking for pow in -lm... " >&6; }
25057if ${ac_cv_lib_m_pow+:} false; then :
25058  $as_echo_n "(cached) " >&6
25059else
25060  ac_check_lib_save_LIBS=$LIBS
25061LIBS="-lm  $LIBS"
25062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063/* end confdefs.h.  */
25064
25065/* Override any GCC internal prototype to avoid an error.
25066   Use char because int might match the return type of a GCC
25067   builtin and then its argument prototype would still apply.  */
25068#ifdef __cplusplus
25069extern "C"
25070#endif
25071char pow ();
25072int
25073main ()
25074{
25075return pow ();
25076  ;
25077  return 0;
25078}
25079_ACEOF
25080if ac_fn_c_try_link "$LINENO"; then :
25081  ac_cv_lib_m_pow=yes
25082else
25083  ac_cv_lib_m_pow=no
25084fi
25085rm -f core conftest.err conftest.$ac_objext \
25086    conftest$ac_exeext conftest.$ac_ext
25087LIBS=$ac_check_lib_save_LIBS
25088fi
25089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
25090$as_echo "$ac_cv_lib_m_pow" >&6; }
25091if test "x$ac_cv_lib_m_pow" = xyes; then :
25092  POW_LIB=-lm
25093else
25094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
25095$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25096fi
25097
25098fi
25099
25100fi
25101
25102ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25103if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25104  ac_have_decl=1
25105else
25106  ac_have_decl=0
25107fi
25108
25109cat >>confdefs.h <<_ACEOF
25110#define HAVE_DECL_STRERROR_R $ac_have_decl
25111_ACEOF
25112
25113for ac_func in strerror_r
25114do :
25115  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25116if test "x$ac_cv_func_strerror_r" = xyes; then :
25117  cat >>confdefs.h <<_ACEOF
25118#define HAVE_STRERROR_R 1
25119_ACEOF
25120
25121fi
25122done
25123
25124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25125$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25126if ${ac_cv_func_strerror_r_char_p+:} false; then :
25127  $as_echo_n "(cached) " >&6
25128else
25129
25130    ac_cv_func_strerror_r_char_p=no
25131    if test $ac_cv_have_decl_strerror_r = yes; then
25132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133/* end confdefs.h.  */
25134$ac_includes_default
25135int
25136main ()
25137{
25138
25139	  char buf[100];
25140	  char x = *strerror_r (0, buf, sizeof buf);
25141	  char *p = strerror_r (0, buf, sizeof buf);
25142	  return !p || x;
25143
25144  ;
25145  return 0;
25146}
25147_ACEOF
25148if ac_fn_c_try_compile "$LINENO"; then :
25149  ac_cv_func_strerror_r_char_p=yes
25150fi
25151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25152    else
25153      # strerror_r is not declared.  Choose between
25154      # systems that have relatively inaccessible declarations for the
25155      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25156      # former has a strerror_r that returns char*, while the latter
25157      # has a strerror_r that returns `int'.
25158      # This test should segfault on the DEC system.
25159      if test "$cross_compiling" = yes; then :
25160  :
25161else
25162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163/* end confdefs.h.  */
25164$ac_includes_default
25165	extern char *strerror_r ();
25166int
25167main ()
25168{
25169char buf[100];
25170	  char x = *strerror_r (0, buf, sizeof buf);
25171	  return ! isalpha (x);
25172  ;
25173  return 0;
25174}
25175_ACEOF
25176if ac_fn_c_try_run "$LINENO"; then :
25177  ac_cv_func_strerror_r_char_p=yes
25178fi
25179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25180  conftest.$ac_objext conftest.beam conftest.$ac_ext
25181fi
25182
25183    fi
25184
25185fi
25186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25187$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25188if test $ac_cv_func_strerror_r_char_p = yes; then
25189
25190$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25191
25192fi
25193
25194for ac_func in vprintf
25195do :
25196  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25197if test "x$ac_cv_func_vprintf" = xyes; then :
25198  cat >>confdefs.h <<_ACEOF
25199#define HAVE_VPRINTF 1
25200_ACEOF
25201
25202ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25203if test "x$ac_cv_func__doprnt" = xyes; then :
25204
25205$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25206
25207fi
25208
25209fi
25210done
25211
25212
25213
25214#
25215# Find math library
25216#
25217MATH_LIBS=''
25218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25219$as_echo_n "checking for sqrt in -lm... " >&6; }
25220if ${ac_cv_lib_m_sqrt+:} false; then :
25221  $as_echo_n "(cached) " >&6
25222else
25223  ac_check_lib_save_LIBS=$LIBS
25224LIBS="-lm  $LIBS"
25225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226/* end confdefs.h.  */
25227
25228/* Override any GCC internal prototype to avoid an error.
25229   Use char because int might match the return type of a GCC
25230   builtin and then its argument prototype would still apply.  */
25231#ifdef __cplusplus
25232extern "C"
25233#endif
25234char sqrt ();
25235int
25236main ()
25237{
25238return sqrt ();
25239  ;
25240  return 0;
25241}
25242_ACEOF
25243if ac_fn_c_try_link "$LINENO"; then :
25244  ac_cv_lib_m_sqrt=yes
25245else
25246  ac_cv_lib_m_sqrt=no
25247fi
25248rm -f core conftest.err conftest.$ac_objext \
25249    conftest$ac_exeext conftest.$ac_ext
25250LIBS=$ac_check_lib_save_LIBS
25251fi
25252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25253$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25254if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25255  MATH_LIBS="-lm"
25256fi
25257
25258LIBS="$MATH_LIBS $LIBS"
25259
25260
25261#
25262# Find socket library
25263#
25264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25265$as_echo_n "checking for library containing gethostbyname... " >&6; }
25266if ${ac_cv_search_gethostbyname+:} false; then :
25267  $as_echo_n "(cached) " >&6
25268else
25269  ac_func_search_save_LIBS=$LIBS
25270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271/* end confdefs.h.  */
25272
25273/* Override any GCC internal prototype to avoid an error.
25274   Use char because int might match the return type of a GCC
25275   builtin and then its argument prototype would still apply.  */
25276#ifdef __cplusplus
25277extern "C"
25278#endif
25279char gethostbyname ();
25280int
25281main ()
25282{
25283return gethostbyname ();
25284  ;
25285  return 0;
25286}
25287_ACEOF
25288for ac_lib in '' resolv nsl; do
25289  if test -z "$ac_lib"; then
25290    ac_res="none required"
25291  else
25292    ac_res=-l$ac_lib
25293    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25294  fi
25295  if ac_fn_c_try_link "$LINENO"; then :
25296  ac_cv_search_gethostbyname=$ac_res
25297fi
25298rm -f core conftest.err conftest.$ac_objext \
25299    conftest$ac_exeext
25300  if ${ac_cv_search_gethostbyname+:} false; then :
25301  break
25302fi
25303done
25304if ${ac_cv_search_gethostbyname+:} false; then :
25305
25306else
25307  ac_cv_search_gethostbyname=no
25308fi
25309rm conftest.$ac_ext
25310LIBS=$ac_func_search_save_LIBS
25311fi
25312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25313$as_echo "$ac_cv_search_gethostbyname" >&6; }
25314ac_res=$ac_cv_search_gethostbyname
25315if test "$ac_res" != no; then :
25316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25317
25318fi
25319
25320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25321$as_echo_n "checking for library containing socket... " >&6; }
25322if ${ac_cv_search_socket+:} false; then :
25323  $as_echo_n "(cached) " >&6
25324else
25325  ac_func_search_save_LIBS=$LIBS
25326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327/* end confdefs.h.  */
25328
25329/* Override any GCC internal prototype to avoid an error.
25330   Use char because int might match the return type of a GCC
25331   builtin and then its argument prototype would still apply.  */
25332#ifdef __cplusplus
25333extern "C"
25334#endif
25335char socket ();
25336int
25337main ()
25338{
25339return socket ();
25340  ;
25341  return 0;
25342}
25343_ACEOF
25344for ac_lib in '' socket; do
25345  if test -z "$ac_lib"; then
25346    ac_res="none required"
25347  else
25348    ac_res=-l$ac_lib
25349    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25350  fi
25351  if ac_fn_c_try_link "$LINENO"; then :
25352  ac_cv_search_socket=$ac_res
25353fi
25354rm -f core conftest.err conftest.$ac_objext \
25355    conftest$ac_exeext
25356  if ${ac_cv_search_socket+:} false; then :
25357  break
25358fi
25359done
25360if ${ac_cv_search_socket+:} false; then :
25361
25362else
25363  ac_cv_search_socket=no
25364fi
25365rm conftest.$ac_ext
25366LIBS=$ac_func_search_save_LIBS
25367fi
25368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25369$as_echo "$ac_cv_search_socket" >&6; }
25370ac_res=$ac_cv_search_socket
25371if test "$ac_res" != no; then :
25372  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25373
25374
25375$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
25376
25377  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
25378
25379fi
25380
25381
25382for 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
25383do :
25384  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25386if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25387  cat >>confdefs.h <<_ACEOF
25388#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25389_ACEOF
25390
25391fi
25392done
25393
25394
25395#
25396# Check for clock_gettime().
25397#
25398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25399$as_echo_n "checking for library containing clock_gettime... " >&6; }
25400if ${ac_cv_search_clock_gettime+:} false; then :
25401  $as_echo_n "(cached) " >&6
25402else
25403  ac_func_search_save_LIBS=$LIBS
25404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25405/* end confdefs.h.  */
25406
25407/* Override any GCC internal prototype to avoid an error.
25408   Use char because int might match the return type of a GCC
25409   builtin and then its argument prototype would still apply.  */
25410#ifdef __cplusplus
25411extern "C"
25412#endif
25413char clock_gettime ();
25414int
25415main ()
25416{
25417return clock_gettime ();
25418  ;
25419  return 0;
25420}
25421_ACEOF
25422for ac_lib in '' rt; do
25423  if test -z "$ac_lib"; then
25424    ac_res="none required"
25425  else
25426    ac_res=-l$ac_lib
25427    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25428  fi
25429  if ac_fn_c_try_link "$LINENO"; then :
25430  ac_cv_search_clock_gettime=$ac_res
25431fi
25432rm -f core conftest.err conftest.$ac_objext \
25433    conftest$ac_exeext
25434  if ${ac_cv_search_clock_gettime+:} false; then :
25435  break
25436fi
25437done
25438if ${ac_cv_search_clock_gettime+:} false; then :
25439
25440else
25441  ac_cv_search_clock_gettime=no
25442fi
25443rm conftest.$ac_ext
25444LIBS=$ac_func_search_save_LIBS
25445fi
25446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25447$as_echo "$ac_cv_search_clock_gettime" >&6; }
25448ac_res=$ac_cv_search_clock_gettime
25449if test "$ac_res" != no; then :
25450  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25451
25452
25453$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25454
25455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25456$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458/* end confdefs.h.  */
25459
25460    #include <time.h>
25461int
25462main ()
25463{
25464clockid_t clockType = CLOCK_REALTIME;
25465  ;
25466  return 0;
25467}
25468_ACEOF
25469if ac_fn_c_try_compile "$LINENO"; then :
25470
25471        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25472$as_echo "yes" >&6; }
25473
25474$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25475
25476
25477else
25478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25479$as_echo "no" >&6; }
25480
25481fi
25482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483
25484else
25485
25486    for ac_func in gettimeofday ftime
25487do :
25488  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25489ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25490if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25491  cat >>confdefs.h <<_ACEOF
25492#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25493_ACEOF
25494 break
25495fi
25496done
25497
25498
25499
25500fi
25501
25502
25503########
25504#
25505# Check for function prototypes
25506#
25507########
25508
25509ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25510#include <unistd.h>
25511"
25512if test "x$ac_cv_have_decl_pread" = xyes; then :
25513  ac_have_decl=1
25514else
25515  ac_have_decl=0
25516fi
25517
25518cat >>confdefs.h <<_ACEOF
25519#define HAVE_DECL_PREAD $ac_have_decl
25520_ACEOF
25521ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25522#include <unistd.h>
25523"
25524if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25525  ac_have_decl=1
25526else
25527  ac_have_decl=0
25528fi
25529
25530cat >>confdefs.h <<_ACEOF
25531#define HAVE_DECL_PWRITE $ac_have_decl
25532_ACEOF
25533
25534
25535ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25536#include <strings.h>
25537"
25538if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25539  ac_have_decl=1
25540else
25541  ac_have_decl=0
25542fi
25543
25544cat >>confdefs.h <<_ACEOF
25545#define HAVE_DECL_STRLCPY $ac_have_decl
25546_ACEOF
25547
25548
25549ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25550#include <stdio.h>
25551#include <stdarg.h>
25552"
25553if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25554  ac_have_decl=1
25555else
25556  ac_have_decl=0
25557fi
25558
25559cat >>confdefs.h <<_ACEOF
25560#define HAVE_DECL_VSNPRINTF $ac_have_decl
25561_ACEOF
25562
25563
25564########
25565#
25566# C++ Support Tests (For Magick++)
25567#
25568########
25569have_magick_plus_plus='no'
25570if test "$with_magick_plus_plus" = 'yes'; then
25571    OLIBS="$LIBS"
25572    LIBS=''
25573    ac_ext=cpp
25574ac_cpp='$CXXCPP $CPPFLAGS'
25575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25578
25579
25580    # Full set of headers used...
25581    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25582    # functional iomanip iosfwd iostream iterator list string strstream utility
25583    ac_ext=cpp
25584ac_cpp='$CXXCPP $CPPFLAGS'
25585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25588
25589    ac_ext=cpp
25590ac_cpp='$CXXCPP $CPPFLAGS'
25591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25594if test -z "$CXX"; then
25595  if test -n "$CCC"; then
25596    CXX=$CCC
25597  else
25598    if test -n "$ac_tool_prefix"; then
25599  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25600  do
25601    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25604$as_echo_n "checking for $ac_word... " >&6; }
25605if ${ac_cv_prog_CXX+:} false; then :
25606  $as_echo_n "(cached) " >&6
25607else
25608  if test -n "$CXX"; then
25609  ac_cv_prog_CXX="$CXX" # Let the user override the test.
25610else
25611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25612for as_dir in $PATH
25613do
25614  IFS=$as_save_IFS
25615  test -z "$as_dir" && as_dir=.
25616    for ac_exec_ext in '' $ac_executable_extensions; do
25617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25618    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25620    break 2
25621  fi
25622done
25623  done
25624IFS=$as_save_IFS
25625
25626fi
25627fi
25628CXX=$ac_cv_prog_CXX
25629if test -n "$CXX"; then
25630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25631$as_echo "$CXX" >&6; }
25632else
25633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25634$as_echo "no" >&6; }
25635fi
25636
25637
25638    test -n "$CXX" && break
25639  done
25640fi
25641if test -z "$CXX"; then
25642  ac_ct_CXX=$CXX
25643  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25644do
25645  # Extract the first word of "$ac_prog", so it can be a program name with args.
25646set dummy $ac_prog; ac_word=$2
25647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25648$as_echo_n "checking for $ac_word... " >&6; }
25649if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25650  $as_echo_n "(cached) " >&6
25651else
25652  if test -n "$ac_ct_CXX"; then
25653  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25654else
25655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25656for as_dir in $PATH
25657do
25658  IFS=$as_save_IFS
25659  test -z "$as_dir" && as_dir=.
25660    for ac_exec_ext in '' $ac_executable_extensions; do
25661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25662    ac_cv_prog_ac_ct_CXX="$ac_prog"
25663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25664    break 2
25665  fi
25666done
25667  done
25668IFS=$as_save_IFS
25669
25670fi
25671fi
25672ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25673if test -n "$ac_ct_CXX"; then
25674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25675$as_echo "$ac_ct_CXX" >&6; }
25676else
25677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25678$as_echo "no" >&6; }
25679fi
25680
25681
25682  test -n "$ac_ct_CXX" && break
25683done
25684
25685  if test "x$ac_ct_CXX" = x; then
25686    CXX="g++"
25687  else
25688    case $cross_compiling:$ac_tool_warned in
25689yes:)
25690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25692ac_tool_warned=yes ;;
25693esac
25694    CXX=$ac_ct_CXX
25695  fi
25696fi
25697
25698  fi
25699fi
25700# Provide some information about the compiler.
25701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25702set X $ac_compile
25703ac_compiler=$2
25704for ac_option in --version -v -V -qversion; do
25705  { { ac_try="$ac_compiler $ac_option >&5"
25706case "(($ac_try" in
25707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708  *) ac_try_echo=$ac_try;;
25709esac
25710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25711$as_echo "$ac_try_echo"; } >&5
25712  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25713  ac_status=$?
25714  if test -s conftest.err; then
25715    sed '10a\
25716... rest of stderr output deleted ...
25717         10q' conftest.err >conftest.er1
25718    cat conftest.er1 >&5
25719  fi
25720  rm -f conftest.er1 conftest.err
25721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25722  test $ac_status = 0; }
25723done
25724
25725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25726$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25727if ${ac_cv_cxx_compiler_gnu+:} false; then :
25728  $as_echo_n "(cached) " >&6
25729else
25730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731/* end confdefs.h.  */
25732
25733int
25734main ()
25735{
25736#ifndef __GNUC__
25737       choke me
25738#endif
25739
25740  ;
25741  return 0;
25742}
25743_ACEOF
25744if ac_fn_cxx_try_compile "$LINENO"; then :
25745  ac_compiler_gnu=yes
25746else
25747  ac_compiler_gnu=no
25748fi
25749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25751
25752fi
25753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25754$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25755if test $ac_compiler_gnu = yes; then
25756  GXX=yes
25757else
25758  GXX=
25759fi
25760ac_test_CXXFLAGS=${CXXFLAGS+set}
25761ac_save_CXXFLAGS=$CXXFLAGS
25762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25763$as_echo_n "checking whether $CXX accepts -g... " >&6; }
25764if ${ac_cv_prog_cxx_g+:} false; then :
25765  $as_echo_n "(cached) " >&6
25766else
25767  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25768   ac_cxx_werror_flag=yes
25769   ac_cv_prog_cxx_g=no
25770   CXXFLAGS="-g"
25771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772/* end confdefs.h.  */
25773
25774int
25775main ()
25776{
25777
25778  ;
25779  return 0;
25780}
25781_ACEOF
25782if ac_fn_cxx_try_compile "$LINENO"; then :
25783  ac_cv_prog_cxx_g=yes
25784else
25785  CXXFLAGS=""
25786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787/* end confdefs.h.  */
25788
25789int
25790main ()
25791{
25792
25793  ;
25794  return 0;
25795}
25796_ACEOF
25797if ac_fn_cxx_try_compile "$LINENO"; then :
25798
25799else
25800  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25801	 CXXFLAGS="-g"
25802	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803/* end confdefs.h.  */
25804
25805int
25806main ()
25807{
25808
25809  ;
25810  return 0;
25811}
25812_ACEOF
25813if ac_fn_cxx_try_compile "$LINENO"; then :
25814  ac_cv_prog_cxx_g=yes
25815fi
25816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817fi
25818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819fi
25820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25822fi
25823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25824$as_echo "$ac_cv_prog_cxx_g" >&6; }
25825if test "$ac_test_CXXFLAGS" = set; then
25826  CXXFLAGS=$ac_save_CXXFLAGS
25827elif test $ac_cv_prog_cxx_g = yes; then
25828  if test "$GXX" = yes; then
25829    CXXFLAGS="-g -O2"
25830  else
25831    CXXFLAGS="-g"
25832  fi
25833else
25834  if test "$GXX" = yes; then
25835    CXXFLAGS="-O2"
25836  else
25837    CXXFLAGS=
25838  fi
25839fi
25840ac_ext=cpp
25841ac_cpp='$CXXCPP $CPPFLAGS'
25842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25845
25846depcc="$CXX"  am_compiler_list=
25847
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25849$as_echo_n "checking dependency style of $depcc... " >&6; }
25850if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25851  $as_echo_n "(cached) " >&6
25852else
25853  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25854  # We make a subdir and do the tests there.  Otherwise we can end up
25855  # making bogus files that we don't know about and never remove.  For
25856  # instance it was reported that on HP-UX the gcc test will end up
25857  # making a dummy file named 'D' -- because '-MD' means "put the output
25858  # in D".
25859  rm -rf conftest.dir
25860  mkdir conftest.dir
25861  # Copy depcomp to subdir because otherwise we won't find it if we're
25862  # using a relative directory.
25863  cp "$am_depcomp" conftest.dir
25864  cd conftest.dir
25865  # We will build objects and dependencies in a subdirectory because
25866  # it helps to detect inapplicable dependency modes.  For instance
25867  # both Tru64's cc and ICC support -MD to output dependencies as a
25868  # side effect of compilation, but ICC will put the dependencies in
25869  # the current directory while Tru64 will put them in the object
25870  # directory.
25871  mkdir sub
25872
25873  am_cv_CXX_dependencies_compiler_type=none
25874  if test "$am_compiler_list" = ""; then
25875     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25876  fi
25877  am__universal=false
25878  case " $depcc " in #(
25879     *\ -arch\ *\ -arch\ *) am__universal=true ;;
25880     esac
25881
25882  for depmode in $am_compiler_list; do
25883    # Setup a source with many dependencies, because some compilers
25884    # like to wrap large dependency lists on column 80 (with \), and
25885    # we should not choose a depcomp mode which is confused by this.
25886    #
25887    # We need to recreate these files for each test, as the compiler may
25888    # overwrite some of them when testing with obscure command lines.
25889    # This happens at least with the AIX C compiler.
25890    : > sub/conftest.c
25891    for i in 1 2 3 4 5 6; do
25892      echo '#include "conftst'$i'.h"' >> sub/conftest.c
25893      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25894      # Solaris 10 /bin/sh.
25895      echo '/* dummy */' > sub/conftst$i.h
25896    done
25897    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25898
25899    # We check with '-c' and '-o' for the sake of the "dashmstdout"
25900    # mode.  It turns out that the SunPro C++ compiler does not properly
25901    # handle '-M -o', and we need to detect this.  Also, some Intel
25902    # versions had trouble with output in subdirs.
25903    am__obj=sub/conftest.${OBJEXT-o}
25904    am__minus_obj="-o $am__obj"
25905    case $depmode in
25906    gcc)
25907      # This depmode causes a compiler race in universal mode.
25908      test "$am__universal" = false || continue
25909      ;;
25910    nosideeffect)
25911      # After this tag, mechanisms are not by side-effect, so they'll
25912      # only be used when explicitly requested.
25913      if test "x$enable_dependency_tracking" = xyes; then
25914	continue
25915      else
25916	break
25917      fi
25918      ;;
25919    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
25920      # This compiler won't grok '-c -o', but also, the minuso test has
25921      # not run yet.  These depmodes are late enough in the game, and
25922      # so weak that their functioning should not be impacted.
25923      am__obj=conftest.${OBJEXT-o}
25924      am__minus_obj=
25925      ;;
25926    none) break ;;
25927    esac
25928    if depmode=$depmode \
25929       source=sub/conftest.c object=$am__obj \
25930       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25931       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25932         >/dev/null 2>conftest.err &&
25933       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25934       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25935       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25936       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25937      # icc doesn't choke on unknown options, it will just issue warnings
25938      # or remarks (even with -Werror).  So we grep stderr for any message
25939      # that says an option was ignored or not supported.
25940      # When given -MP, icc 7.0 and 7.1 complain thusly:
25941      #   icc: Command line warning: ignoring option '-M'; no argument required
25942      # The diagnosis changed in icc 8.0:
25943      #   icc: Command line remark: option '-MP' not supported
25944      if (grep 'ignoring option' conftest.err ||
25945          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25946        am_cv_CXX_dependencies_compiler_type=$depmode
25947        break
25948      fi
25949    fi
25950  done
25951
25952  cd ..
25953  rm -rf conftest.dir
25954else
25955  am_cv_CXX_dependencies_compiler_type=none
25956fi
25957
25958fi
25959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25960$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25961CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25962
25963 if
25964  test "x$enable_dependency_tracking" != xno \
25965  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25966  am__fastdepCXX_TRUE=
25967  am__fastdepCXX_FALSE='#'
25968else
25969  am__fastdepCXX_TRUE='#'
25970  am__fastdepCXX_FALSE=
25971fi
25972
25973
25974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25975$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25976if ${ax_cv_cxx_bool+:} false; then :
25977  $as_echo_n "(cached) " >&6
25978else
25979
25980 ac_ext=cpp
25981ac_cpp='$CXXCPP $CPPFLAGS'
25982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25985
25986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987/* end confdefs.h.  */
25988
25989int f(int  x){return 1;}
25990int f(char x){return 1;}
25991int f(bool x){return 1;}
25992
25993int
25994main ()
25995{
25996bool b = true; return f(b);
25997  ;
25998  return 0;
25999}
26000_ACEOF
26001if ac_fn_cxx_try_compile "$LINENO"; then :
26002  ax_cv_cxx_bool=yes
26003else
26004  ax_cv_cxx_bool=no
26005fi
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007 ac_ext=cpp
26008ac_cpp='$CXXCPP $CPPFLAGS'
26009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26012
26013
26014fi
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26016$as_echo "$ax_cv_cxx_bool" >&6; }
26017if test "$ax_cv_cxx_bool" = yes; then
26018
26019$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26020
26021fi
26022
26023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26024$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
26025if ${ax_cv_cxx_namespaces+:} false; then :
26026  $as_echo_n "(cached) " >&6
26027else
26028  ac_ext=cpp
26029ac_cpp='$CXXCPP $CPPFLAGS'
26030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26033
26034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26035/* end confdefs.h.  */
26036namespace Outer { namespace Inner { int i = 0; }}
26037                                   using namespace Outer::Inner; int foo(void) { return i;}
26038_ACEOF
26039if ac_fn_cxx_try_compile "$LINENO"; then :
26040  ax_cv_cxx_namespaces=yes
26041else
26042  ax_cv_cxx_namespaces=no
26043fi
26044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045 ac_ext=cpp
26046ac_cpp='$CXXCPP $CPPFLAGS'
26047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26050
26051
26052fi
26053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26054$as_echo "$ax_cv_cxx_namespaces" >&6; }
26055if test "$ax_cv_cxx_namespaces" = yes; then
26056
26057$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26058
26059fi
26060
26061
26062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26063$as_echo_n "checking if g++ supports namespace std... " >&6; }
26064if ${ax_cv_cxx_have_std_namespace+:} false; then :
26065  $as_echo_n "(cached) " >&6
26066else
26067
26068  ac_ext=cpp
26069ac_cpp='$CXXCPP $CPPFLAGS'
26070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26073
26074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26075/* end confdefs.h.  */
26076#include <iostream>
26077                  std::istream& is = std::cin;
26078int
26079main ()
26080{
26081
26082  ;
26083  return 0;
26084}
26085_ACEOF
26086if ac_fn_cxx_try_compile "$LINENO"; then :
26087  ax_cv_cxx_have_std_namespace=yes
26088else
26089  ax_cv_cxx_have_std_namespace=no
26090fi
26091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26092  ac_ext=cpp
26093ac_cpp='$CXXCPP $CPPFLAGS'
26094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26097
26098
26099fi
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26101$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26102  if test "$ax_cv_cxx_have_std_namespace" = yes; then
26103
26104$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26105
26106  fi
26107
26108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26109$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
26110if ${ac_cv_cxx_have_std_libs+:} false; then :
26111  $as_echo_n "(cached) " >&6
26112else
26113
26114
26115 ac_ext=cpp
26116ac_cpp='$CXXCPP $CPPFLAGS'
26117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26120
26121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26122/* end confdefs.h.  */
26123#include <iostream>
26124#include <map>
26125#include <iomanip>
26126#include <cmath>
26127#ifdef HAVE_NAMESPACES
26128using namespace std;
26129#endif
26130int
26131main ()
26132{
26133return 0;
26134  ;
26135  return 0;
26136}
26137_ACEOF
26138if ac_fn_cxx_try_compile "$LINENO"; then :
26139  ac_cv_cxx_have_std_libs=yes
26140else
26141  ac_cv_cxx_have_std_libs=no
26142fi
26143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 ac_ext=cpp
26145ac_cpp='$CXXCPP $CPPFLAGS'
26146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26149
26150
26151fi
26152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26153$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26154if test "$ac_cv_cxx_have_std_libs" = yes; then
26155
26156$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26157
26158fi
26159
26160
26161  OPENMP_CXXFLAGS=
26162  # Check whether --enable-openmp was given.
26163if test "${enable_openmp+set}" = set; then :
26164  enableval=$enable_openmp;
26165fi
26166
26167  if test "$enable_openmp" != no; then
26168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26169$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26170if ${ac_cv_prog_cxx_openmp+:} false; then :
26171  $as_echo_n "(cached) " >&6
26172else
26173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174/* end confdefs.h.  */
26175
26176#ifndef _OPENMP
26177 choke me
26178#endif
26179#include <omp.h>
26180int main () { return omp_get_num_threads (); }
26181
26182_ACEOF
26183if ac_fn_cxx_try_link "$LINENO"; then :
26184  ac_cv_prog_cxx_openmp='none needed'
26185else
26186  ac_cv_prog_cxx_openmp='unsupported'
26187	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26188                           -Popenmp --openmp; do
26189	    ac_save_CXXFLAGS=$CXXFLAGS
26190	    CXXFLAGS="$CXXFLAGS $ac_option"
26191	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192/* end confdefs.h.  */
26193
26194#ifndef _OPENMP
26195 choke me
26196#endif
26197#include <omp.h>
26198int main () { return omp_get_num_threads (); }
26199
26200_ACEOF
26201if ac_fn_cxx_try_link "$LINENO"; then :
26202  ac_cv_prog_cxx_openmp=$ac_option
26203fi
26204rm -f core conftest.err conftest.$ac_objext \
26205    conftest$ac_exeext conftest.$ac_ext
26206	    CXXFLAGS=$ac_save_CXXFLAGS
26207	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26208	      break
26209	    fi
26210	  done
26211fi
26212rm -f core conftest.err conftest.$ac_objext \
26213    conftest$ac_exeext conftest.$ac_ext
26214fi
26215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26216$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26217    case $ac_cv_prog_cxx_openmp in #(
26218      "none needed" | unsupported)
26219	;; #(
26220      *)
26221	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26222    esac
26223  fi
26224
26225
26226    ac_ext=c
26227ac_cpp='$CPP $CPPFLAGS'
26228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26230ac_compiler_gnu=$ac_cv_c_compiler_gnu
26231
26232
26233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26234$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26235    if \
26236        test $ax_cv_cxx_bool = 'yes' && \
26237        test $ax_cv_cxx_namespaces = 'yes' && \
26238        test $ac_cv_cxx_have_std_libs = 'yes' && \
26239        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26240        have_magick_plus_plus='yes'
26241    else
26242        have_magick_plus_plus='no (failed tests)'
26243    fi
26244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26245$as_echo "$have_magick_plus_plus" >&6; }
26246    LIBS="$OLIBS"
26247fi
26248 if test "$have_magick_plus_plus" = 'yes'; then
26249  WITH_MAGICK_PLUS_PLUS_TRUE=
26250  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26251else
26252  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26253  WITH_MAGICK_PLUS_PLUS_FALSE=
26254fi
26255
26256
26257# Only check for delegate libraries in subdirectories if requested.
26258if test "$enable_delegate_build" != 'no'; then
26259    # Check for delegate sub-directories and add -I & -L options as required.
26260    # This presumes that delegates are installed as detailed in the ImageMagick
26261    # README. If delegates are installed in a standard location where the
26262    # compiler will automatically find them then these options should not be
26263    # required.
26264
26265    #
26266    # Most delegates have includes in the same directory as the library, but not all...
26267    #
26268    # Includes
26269    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
26270        if test -d "$builddir/$dir"; then
26271            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26272        else
26273            if test -d "$srcdirfull/$dir"; then
26274                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26275            fi
26276        fi
26277    done
26278
26279    # Libraries
26280    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
26281    if test -d "$builddir/$dir/.libs"; then
26282        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26283    else
26284        if test -d "$srcdirfull/$dir/.libs"; then
26285            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26286        fi
26287    fi
26288    if test -d "$builddir/$dir"; then
26289        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26290    else
26291        if test -d "$srcdirfull/$dir"; then
26292            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26293        fi
26294    fi
26295  done
26296fi
26297
26298# Assume that delegate headers reside under same directory as ImageMagick
26299# installation prefix.
26300MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
26301
26302#
26303# Find the X11 RGB database
26304#
26305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26306$as_echo_n "checking for X11 configure files... " >&6; }
26307if ${im_cv_x_configure+:} false; then :
26308  $as_echo_n "(cached) " >&6
26309else
26310  # Look for the header file in a standard set of common directories.
26311# Check X11 before X11Rn because it is often a symlink to the current release.
26312    for ac_dir in          \
26313    /lib/usr/lib/X11       \
26314    /usr/X11/lib           \
26315    /usr/X11R4/lib         \
26316    /usr/X11R5/lib         \
26317    /usr/X11R6/lib         \
26318    /usr/X11R7/lib         \
26319    /usr/X386/lib          \
26320    /usr/XFree86/lib/X11   \
26321    /usr/athena/lib        \
26322    /usr/lib               \
26323    /usr/lib/X11           \
26324    /usr/lib/X11R4         \
26325    /usr/lib/X11R5         \
26326    /usr/lib/X11R6         \
26327    /usr/lib/X11R7         \
26328    /usr/local/X11/lib     \
26329    /usr/local/X11R4/lib   \
26330    /usr/local/X11R5/lib   \
26331    /usr/local/X11R6/lib   \
26332    /usr/local/lib         \
26333    /usr/local/lib/X11     \
26334    /usr/local/lib/X11R4   \
26335    /usr/local/lib/X11R5   \
26336    /usr/local/lib/X11R6   \
26337    /usr/local/lib/X11R7   \
26338    /usr/local/x11r5/lib   \
26339    /usr/lpp/Xamples/lib   \
26340    /usr/openwin/lib       \
26341    /usr/openwin/share/lib \
26342    /usr/unsupported/lib   \
26343    /usr/x386/lib          \
26344    ; do
26345    if test -f "$ac_dir/X11/rgb.txt"; then
26346      im_cv_x_configure="$ac_dir/X11/"
26347      break
26348    elif test -f "$ac_dir/rgb.txt"; then
26349      im_cv_x_configure="$ac_dir/"
26350      break
26351    fi
26352
26353  done
26354fi
26355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
26356$as_echo "$im_cv_x_configure" >&6; }
26357X11_CONFIGURE_PATH="$im_cv_x_configure"
26358case "${build_os}" in
26359  mingw* )
26360    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26361  ;;
26362esac
26363
26364cat >>confdefs.h <<_ACEOF
26365#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26366_ACEOF
26367
26368
26369#
26370# Find OpenMP library
26371#
26372GOMP_LIBS=''
26373if test "$enable_openmp" != 'no'; then
26374  if test "${GCC}" = "yes"; then
26375    # Open64 (passes for GCC but uses different OpenMP implementation)
26376    if test "x$GOMP_LIBS" = x ; then
26377      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26378        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26379$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26380if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26381  $as_echo_n "(cached) " >&6
26382else
26383  ac_check_lib_save_LIBS=$LIBS
26384LIBS="-lopenmp  $LIBS"
26385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386/* end confdefs.h.  */
26387
26388/* Override any GCC internal prototype to avoid an error.
26389   Use char because int might match the return type of a GCC
26390   builtin and then its argument prototype would still apply.  */
26391#ifdef __cplusplus
26392extern "C"
26393#endif
26394char omp_get_num_procs ();
26395int
26396main ()
26397{
26398return omp_get_num_procs ();
26399  ;
26400  return 0;
26401}
26402_ACEOF
26403if ac_fn_c_try_link "$LINENO"; then :
26404  ac_cv_lib_openmp_omp_get_num_procs=yes
26405else
26406  ac_cv_lib_openmp_omp_get_num_procs=no
26407fi
26408rm -f core conftest.err conftest.$ac_objext \
26409    conftest$ac_exeext conftest.$ac_ext
26410LIBS=$ac_check_lib_save_LIBS
26411fi
26412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26413$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26414if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26415  GOMP_LIBS="-lopenmp"
26416fi
26417
26418      fi
26419    fi
26420    # GCC
26421    if test "x$GOMP_LIBS" = x ; then
26422      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
26423$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
26424if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
26425  $as_echo_n "(cached) " >&6
26426else
26427  ac_check_lib_save_LIBS=$LIBS
26428LIBS="-lgomp  $LIBS"
26429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26430/* end confdefs.h.  */
26431
26432/* Override any GCC internal prototype to avoid an error.
26433   Use char because int might match the return type of a GCC
26434   builtin and then its argument prototype would still apply.  */
26435#ifdef __cplusplus
26436extern "C"
26437#endif
26438char GOMP_parallel_start ();
26439int
26440main ()
26441{
26442return GOMP_parallel_start ();
26443  ;
26444  return 0;
26445}
26446_ACEOF
26447if ac_fn_c_try_link "$LINENO"; then :
26448  ac_cv_lib_gomp_GOMP_parallel_start=yes
26449else
26450  ac_cv_lib_gomp_GOMP_parallel_start=no
26451fi
26452rm -f core conftest.err conftest.$ac_objext \
26453    conftest$ac_exeext conftest.$ac_ext
26454LIBS=$ac_check_lib_save_LIBS
26455fi
26456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
26457$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
26458if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26459  GOMP_LIBS="-lgomp"
26460fi
26461
26462    fi
26463  else
26464    # Sun CC
26465    if test "x$GOMP_LIBS" = x ; then
26466      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26467$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26468if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26469  $as_echo_n "(cached) " >&6
26470else
26471  ac_check_lib_save_LIBS=$LIBS
26472LIBS="-lmtsk  $LIBS"
26473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474/* end confdefs.h.  */
26475
26476/* Override any GCC internal prototype to avoid an error.
26477   Use char because int might match the return type of a GCC
26478   builtin and then its argument prototype would still apply.  */
26479#ifdef __cplusplus
26480extern "C"
26481#endif
26482char sunw_mp_register_warn ();
26483int
26484main ()
26485{
26486return sunw_mp_register_warn ();
26487  ;
26488  return 0;
26489}
26490_ACEOF
26491if ac_fn_c_try_link "$LINENO"; then :
26492  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26493else
26494  ac_cv_lib_mtsk_sunw_mp_register_warn=no
26495fi
26496rm -f core conftest.err conftest.$ac_objext \
26497    conftest$ac_exeext conftest.$ac_ext
26498LIBS=$ac_check_lib_save_LIBS
26499fi
26500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26501$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26502if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26503  GOMP_LIBS="-lmtsk"
26504fi
26505
26506    fi
26507    # AIX xlc
26508    if test "x$GOMP_LIBS" = x ; then
26509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26510$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26511if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26512  $as_echo_n "(cached) " >&6
26513else
26514  ac_check_lib_save_LIBS=$LIBS
26515LIBS="-lxlsmp  $LIBS"
26516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517/* end confdefs.h.  */
26518
26519/* Override any GCC internal prototype to avoid an error.
26520   Use char because int might match the return type of a GCC
26521   builtin and then its argument prototype would still apply.  */
26522#ifdef __cplusplus
26523extern "C"
26524#endif
26525char _xlsmpFlush ();
26526int
26527main ()
26528{
26529return _xlsmpFlush ();
26530  ;
26531  return 0;
26532}
26533_ACEOF
26534if ac_fn_c_try_link "$LINENO"; then :
26535  ac_cv_lib_xlsmp__xlsmpFlush=yes
26536else
26537  ac_cv_lib_xlsmp__xlsmpFlush=no
26538fi
26539rm -f core conftest.err conftest.$ac_objext \
26540    conftest$ac_exeext conftest.$ac_ext
26541LIBS=$ac_check_lib_save_LIBS
26542fi
26543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26544$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26545if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26546  GOMP_LIBS="-lxlsmp"
26547fi
26548
26549    fi
26550    # SGI IRIX 6.5 MIPSpro C/C++
26551    if test "x$GOMP_LIBS" = x ; then
26552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26553$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26554if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26555  $as_echo_n "(cached) " >&6
26556else
26557  ac_check_lib_save_LIBS=$LIBS
26558LIBS="-lmp  $LIBS"
26559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26560/* end confdefs.h.  */
26561
26562/* Override any GCC internal prototype to avoid an error.
26563   Use char because int might match the return type of a GCC
26564   builtin and then its argument prototype would still apply.  */
26565#ifdef __cplusplus
26566extern "C"
26567#endif
26568char mp_destroy ();
26569int
26570main ()
26571{
26572return mp_destroy ();
26573  ;
26574  return 0;
26575}
26576_ACEOF
26577if ac_fn_c_try_link "$LINENO"; then :
26578  ac_cv_lib_mp_mp_destroy=yes
26579else
26580  ac_cv_lib_mp_mp_destroy=no
26581fi
26582rm -f core conftest.err conftest.$ac_objext \
26583    conftest$ac_exeext conftest.$ac_ext
26584LIBS=$ac_check_lib_save_LIBS
26585fi
26586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26587$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26588if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26589  GOMP_LIBS="-lmp"
26590fi
26591
26592    fi
26593  fi
26594  LIBS="$GOMP_LIBS $LIBS"
26595fi
26596
26597
26598
26599
26600#
26601# Check for umem.
26602#
26603have_umem='no'
26604UMEM_LIBS=''
26605if test "$with_umem" != 'no'; then
26606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26607$as_echo_n "checking for UMEM support ... " >&6; }
26608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26609$as_echo "" >&6; }
26610  failed=0
26611  passed=0
26612  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26613if test "x$ac_cv_header_umem_h" = xyes; then :
26614  passed=`expr $passed + 1`
26615else
26616  failed=`expr $failed + 1`
26617fi
26618
26619
26620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26621$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26622if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26623  $as_echo_n "(cached) " >&6
26624else
26625  ac_check_lib_save_LIBS=$LIBS
26626LIBS="-lumem  $LIBS"
26627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628/* end confdefs.h.  */
26629
26630/* Override any GCC internal prototype to avoid an error.
26631   Use char because int might match the return type of a GCC
26632   builtin and then its argument prototype would still apply.  */
26633#ifdef __cplusplus
26634extern "C"
26635#endif
26636char umem_alloc ();
26637int
26638main ()
26639{
26640return umem_alloc ();
26641  ;
26642  return 0;
26643}
26644_ACEOF
26645if ac_fn_c_try_link "$LINENO"; then :
26646  ac_cv_lib_umem_umem_alloc=yes
26647else
26648  ac_cv_lib_umem_umem_alloc=no
26649fi
26650rm -f core conftest.err conftest.$ac_objext \
26651    conftest$ac_exeext conftest.$ac_ext
26652LIBS=$ac_check_lib_save_LIBS
26653fi
26654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26655$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26656if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26657  passed=`expr $passed + 1`
26658else
26659  failed=`expr $failed + 1`
26660fi
26661
26662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26663$as_echo_n "checking for umem_free in -lumem... " >&6; }
26664if ${ac_cv_lib_umem_umem_free+:} false; then :
26665  $as_echo_n "(cached) " >&6
26666else
26667  ac_check_lib_save_LIBS=$LIBS
26668LIBS="-lumem  $LIBS"
26669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26670/* end confdefs.h.  */
26671
26672/* Override any GCC internal prototype to avoid an error.
26673   Use char because int might match the return type of a GCC
26674   builtin and then its argument prototype would still apply.  */
26675#ifdef __cplusplus
26676extern "C"
26677#endif
26678char umem_free ();
26679int
26680main ()
26681{
26682return umem_free ();
26683  ;
26684  return 0;
26685}
26686_ACEOF
26687if ac_fn_c_try_link "$LINENO"; then :
26688  ac_cv_lib_umem_umem_free=yes
26689else
26690  ac_cv_lib_umem_umem_free=no
26691fi
26692rm -f core conftest.err conftest.$ac_objext \
26693    conftest$ac_exeext conftest.$ac_ext
26694LIBS=$ac_check_lib_save_LIBS
26695fi
26696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26697$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26698if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26699  passed=`expr $passed + 1`
26700else
26701  failed=`expr $failed + 1`
26702fi
26703
26704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26705$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26706  if test $passed -gt 0; then
26707    if test $failed -gt 0; then
26708      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26709$as_echo "no -- some components failed test" >&6; }
26710      have_umem='no (failed tests)'
26711    else
26712      UMEM_LIBS='-lumem'
26713      LIBS="$UMEM_LIBS $LIBS"
26714
26715$as_echo "#define HasUMEM 1" >>confdefs.h
26716
26717      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26718$as_echo "yes" >&6; }
26719      have_umem='yes'
26720    fi
26721  else
26722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26723$as_echo "no" >&6; }
26724  fi
26725fi
26726 if test "$have_umem" = 'yes'; then
26727  HasUMEM_TRUE=
26728  HasUMEM_FALSE='#'
26729else
26730  HasUMEM_TRUE='#'
26731  HasUMEM_FALSE=
26732fi
26733
26734
26735
26736#
26737# Add support for ccmalloc memory debugging library if requested
26738#
26739have_ccmalloc='no'
26740CCMALLOC_LIBS=''
26741if test "$enable_ccmalloc" = 'yes'; then
26742    # Extract the first word of "ccmalloc", so it can be a program name with args.
26743set dummy ccmalloc; ac_word=$2
26744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26745$as_echo_n "checking for $ac_word... " >&6; }
26746if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26747  $as_echo_n "(cached) " >&6
26748else
26749  case $CCMALLOCDelegate in
26750  [\\/]* | ?:[\\/]*)
26751  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26752  ;;
26753  *)
26754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26755for as_dir in $PATH
26756do
26757  IFS=$as_save_IFS
26758  test -z "$as_dir" && as_dir=.
26759    for ac_exec_ext in '' $ac_executable_extensions; do
26760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26761    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26763    break 2
26764  fi
26765done
26766  done
26767IFS=$as_save_IFS
26768
26769  ;;
26770esac
26771fi
26772CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26773if test -n "$CCMALLOCDelegate"; then
26774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26775$as_echo "$CCMALLOCDelegate" >&6; }
26776else
26777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26778$as_echo "no" >&6; }
26779fi
26780
26781
26782    if test -n "$CCMALLOCDelegate"; then
26783        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26784        OLIBS="$LIBS"
26785        # Assume that gcc is used with ccmalloc.
26786        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26788$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26789if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26790  $as_echo_n "(cached) " >&6
26791else
26792  ac_check_lib_save_LIBS=$LIBS
26793LIBS="-lccmalloc -ldl $LIBS"
26794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26795/* end confdefs.h.  */
26796
26797/* Override any GCC internal prototype to avoid an error.
26798   Use char because int might match the return type of a GCC
26799   builtin and then its argument prototype would still apply.  */
26800#ifdef __cplusplus
26801extern "C"
26802#endif
26803char ccmalloc_malloc ();
26804int
26805main ()
26806{
26807return ccmalloc_malloc ();
26808  ;
26809  return 0;
26810}
26811_ACEOF
26812if ac_fn_c_try_link "$LINENO"; then :
26813  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26814else
26815  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26816fi
26817rm -f core conftest.err conftest.$ac_objext \
26818    conftest$ac_exeext conftest.$ac_ext
26819LIBS=$ac_check_lib_save_LIBS
26820fi
26821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26822$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26823if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26824  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26825fi
26826
26827        if test -n "$CCMALLOC_LIBS"; then
26828            LIBS="$OLIBS"
26829            LIBS="$LIBS $CCMALLOC_LIBS"
26830            have_ccmalloc='yes'
26831        else
26832            LIBS="$OLIBS"
26833        fi
26834    fi
26835fi
26836
26837#
26838# Add support for 'huge pages' if requested
26839#
26840if test "x$enable_hugepages" != "xno"; then :
26841
26842
26843$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26844
26845
26846fi
26847
26848#
26849# Add support for efence memory debugging library if requested
26850#
26851if test "$enable_efence" = 'yes'; then
26852    EFENCE_LIBS='-lefence'
26853    LIBS="$EFENCE_LIBS $LIBS"
26854fi
26855
26856
26857#
26858# Check for BZLIB
26859#
26860
26861
26862# Check whether --with-bzlib was given.
26863if test "${with_bzlib+set}" = set; then :
26864  withval=$with_bzlib; with_bzlib=$withval
26865else
26866  with_bzlib='yes'
26867fi
26868
26869
26870if test "$with_bzlib" != 'yes'; then
26871    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26872fi
26873
26874have_bzlib='no'
26875if test "$with_bzlib" != 'no'; then
26876    BZLIB_LIBS=''
26877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26878$as_echo "-------------------------------------------------------------" >&6; }
26879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26880$as_echo_n "checking for BZLIB... " >&6; }
26881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26882$as_echo "" >&6; }
26883    failed=0
26884    passed=0
26885    found_libbz=0
26886    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26887if test "x$ac_cv_header_bzlib_h" = xyes; then :
26888  passed=`expr $passed + 1`
26889else
26890  failed=`expr $failed + 1`
26891fi
26892
26893
26894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26895$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26896if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26897  $as_echo_n "(cached) " >&6
26898else
26899  ac_check_lib_save_LIBS=$LIBS
26900LIBS="-lbz2  $LIBS"
26901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26902/* end confdefs.h.  */
26903
26904/* Override any GCC internal prototype to avoid an error.
26905   Use char because int might match the return type of a GCC
26906   builtin and then its argument prototype would still apply.  */
26907#ifdef __cplusplus
26908extern "C"
26909#endif
26910char BZ2_bzDecompress ();
26911int
26912main ()
26913{
26914return BZ2_bzDecompress ();
26915  ;
26916  return 0;
26917}
26918_ACEOF
26919if ac_fn_c_try_link "$LINENO"; then :
26920  ac_cv_lib_bz2_BZ2_bzDecompress=yes
26921else
26922  ac_cv_lib_bz2_BZ2_bzDecompress=no
26923fi
26924rm -f core conftest.err conftest.$ac_objext \
26925    conftest$ac_exeext conftest.$ac_ext
26926LIBS=$ac_check_lib_save_LIBS
26927fi
26928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26929$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26930if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26931  found_libbz=`expr $found_libbz + 1`
26932fi
26933
26934    if test "$native_win32_build" = 'yes'; then
26935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26936$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26937if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26938  $as_echo_n "(cached) " >&6
26939else
26940  ac_check_lib_save_LIBS=$LIBS
26941LIBS="-lbz2  $LIBS"
26942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26943/* end confdefs.h.  */
26944
26945/* Override any GCC internal prototype to avoid an error.
26946   Use char because int might match the return type of a GCC
26947   builtin and then its argument prototype would still apply.  */
26948#ifdef __cplusplus
26949extern "C"
26950#endif
26951char _imp__BZ2_decompress ();
26952int
26953main ()
26954{
26955return _imp__BZ2_decompress ();
26956  ;
26957  return 0;
26958}
26959_ACEOF
26960if ac_fn_c_try_link "$LINENO"; then :
26961  ac_cv_lib_bz2__imp__BZ2_decompress=yes
26962else
26963  ac_cv_lib_bz2__imp__BZ2_decompress=no
26964fi
26965rm -f core conftest.err conftest.$ac_objext \
26966    conftest$ac_exeext conftest.$ac_ext
26967LIBS=$ac_check_lib_save_LIBS
26968fi
26969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26970$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26971if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26972  found_libbz=`expr $found_libbz + 1`
26973fi
26974
26975    fi
26976    if test $found_libbz -gt 0; then
26977      passed=`expr $passed + 1`
26978    else
26979      failed=`expr $failed + 1`
26980    fi
26981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26982$as_echo_n "checking if BZLIB package is complete... " >&6; }
26983    if test $passed -gt 0; then
26984      if test $failed -gt 0; then
26985        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26986$as_echo "no -- some components failed test" >&6; }
26987        have_bzlib='no (failed tests)'
26988      else
26989        BZLIB_LIBS='-lbz2'
26990        LIBS="$BZLIB_LIBS $LIBS"
26991
26992$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26993
26994        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26995$as_echo "yes" >&6; }
26996        have_bzlib='yes'
26997      fi
26998    else
26999      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27000$as_echo "no" >&6; }
27001    fi
27002fi
27003 if test "$have_bzlib" = 'yes'; then
27004  BZLIB_DELEGATE_TRUE=
27005  BZLIB_DELEGATE_FALSE='#'
27006else
27007  BZLIB_DELEGATE_TRUE='#'
27008  BZLIB_DELEGATE_FALSE=
27009fi
27010
27011
27012
27013#
27014# Find the X11 include and library directories.
27015#
27016IPC_LIBS=''
27017X11_LIBS=''
27018XEXT_LIBS=''
27019XT_LIBS=''
27020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
27021$as_echo_n "checking for X... " >&6; }
27022
27023
27024# Check whether --with-x was given.
27025if test "${with_x+set}" = set; then :
27026  withval=$with_x;
27027fi
27028
27029# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27030if test "x$with_x" = xno; then
27031  # The user explicitly disabled X.
27032  have_x=disabled
27033else
27034  case $x_includes,$x_libraries in #(
27035    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
27036    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
27037  $as_echo_n "(cached) " >&6
27038else
27039  # One or both of the vars are not set, and there is no cached value.
27040ac_x_includes=no ac_x_libraries=no
27041rm -f -r conftest.dir
27042if mkdir conftest.dir; then
27043  cd conftest.dir
27044  cat >Imakefile <<'_ACEOF'
27045incroot:
27046	@echo incroot='${INCROOT}'
27047usrlibdir:
27048	@echo usrlibdir='${USRLIBDIR}'
27049libdir:
27050	@echo libdir='${LIBDIR}'
27051_ACEOF
27052  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27053    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27054    for ac_var in incroot usrlibdir libdir; do
27055      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27056    done
27057    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27058    for ac_extension in a so sl dylib la dll; do
27059      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27060	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27061	ac_im_usrlibdir=$ac_im_libdir; break
27062      fi
27063    done
27064    # Screen out bogus values from the imake configuration.  They are
27065    # bogus both because they are the default anyway, and because
27066    # using them would break gcc on systems where it needs fixed includes.
27067    case $ac_im_incroot in
27068	/usr/include) ac_x_includes= ;;
27069	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27070    esac
27071    case $ac_im_usrlibdir in
27072	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
27073	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27074    esac
27075  fi
27076  cd ..
27077  rm -f -r conftest.dir
27078fi
27079
27080# Standard set of common directories for X headers.
27081# Check X11 before X11Rn because it is often a symlink to the current release.
27082ac_x_header_dirs='
27083/usr/X11/include
27084/usr/X11R7/include
27085/usr/X11R6/include
27086/usr/X11R5/include
27087/usr/X11R4/include
27088
27089/usr/include/X11
27090/usr/include/X11R7
27091/usr/include/X11R6
27092/usr/include/X11R5
27093/usr/include/X11R4
27094
27095/usr/local/X11/include
27096/usr/local/X11R7/include
27097/usr/local/X11R6/include
27098/usr/local/X11R5/include
27099/usr/local/X11R4/include
27100
27101/usr/local/include/X11
27102/usr/local/include/X11R7
27103/usr/local/include/X11R6
27104/usr/local/include/X11R5
27105/usr/local/include/X11R4
27106
27107/usr/X386/include
27108/usr/x386/include
27109/usr/XFree86/include/X11
27110
27111/usr/include
27112/usr/local/include
27113/usr/unsupported/include
27114/usr/athena/include
27115/usr/local/x11r5/include
27116/usr/lpp/Xamples/include
27117
27118/usr/openwin/include
27119/usr/openwin/share/include'
27120
27121if test "$ac_x_includes" = no; then
27122  # Guess where to find include files, by looking for Xlib.h.
27123  # First, try using that file with no special directory specified.
27124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27125/* end confdefs.h.  */
27126#include <X11/Xlib.h>
27127_ACEOF
27128if ac_fn_c_try_cpp "$LINENO"; then :
27129  # We can compile using X headers with no special include directory.
27130ac_x_includes=
27131else
27132  for ac_dir in $ac_x_header_dirs; do
27133  if test -r "$ac_dir/X11/Xlib.h"; then
27134    ac_x_includes=$ac_dir
27135    break
27136  fi
27137done
27138fi
27139rm -f conftest.err conftest.i conftest.$ac_ext
27140fi # $ac_x_includes = no
27141
27142if test "$ac_x_libraries" = no; then
27143  # Check for the libraries.
27144  # See if we find them without any special options.
27145  # Don't add to $LIBS permanently.
27146  ac_save_LIBS=$LIBS
27147  LIBS="-lX11 $LIBS"
27148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27149/* end confdefs.h.  */
27150#include <X11/Xlib.h>
27151int
27152main ()
27153{
27154XrmInitialize ()
27155  ;
27156  return 0;
27157}
27158_ACEOF
27159if ac_fn_c_try_link "$LINENO"; then :
27160  LIBS=$ac_save_LIBS
27161# We can link X programs with no special library path.
27162ac_x_libraries=
27163else
27164  LIBS=$ac_save_LIBS
27165for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27166do
27167  # Don't even attempt the hair of trying to link an X program!
27168  for ac_extension in a so sl dylib la dll; do
27169    if test -r "$ac_dir/libX11.$ac_extension"; then
27170      ac_x_libraries=$ac_dir
27171      break 2
27172    fi
27173  done
27174done
27175fi
27176rm -f core conftest.err conftest.$ac_objext \
27177    conftest$ac_exeext conftest.$ac_ext
27178fi # $ac_x_libraries = no
27179
27180case $ac_x_includes,$ac_x_libraries in #(
27181  no,* | *,no | *\'*)
27182    # Didn't find X, or a directory has "'" in its name.
27183    ac_cv_have_x="have_x=no";; #(
27184  *)
27185    # Record where we found X for the cache.
27186    ac_cv_have_x="have_x=yes\
27187	ac_x_includes='$ac_x_includes'\
27188	ac_x_libraries='$ac_x_libraries'"
27189esac
27190fi
27191;; #(
27192    *) have_x=yes;;
27193  esac
27194  eval "$ac_cv_have_x"
27195fi # $with_x != no
27196
27197if test "$have_x" != yes; then
27198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
27199$as_echo "$have_x" >&6; }
27200  no_x=yes
27201else
27202  # If each of the values was on the command line, it overrides each guess.
27203  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27204  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27205  # Update the cache value to reflect the command line values.
27206  ac_cv_have_x="have_x=yes\
27207	ac_x_includes='$x_includes'\
27208	ac_x_libraries='$x_libraries'"
27209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
27210$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27211fi
27212
27213if test "$no_x" = yes; then
27214  # Not all programs may use this symbol, but it does not hurt to define it.
27215
27216$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
27217
27218  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27219else
27220  if test -n "$x_includes"; then
27221    X_CFLAGS="$X_CFLAGS -I$x_includes"
27222  fi
27223
27224  # It would also be nice to do this for all -L options, not just this one.
27225  if test -n "$x_libraries"; then
27226    X_LIBS="$X_LIBS -L$x_libraries"
27227    # For Solaris; some versions of Sun CC require a space after -R and
27228    # others require no space.  Words are not sufficient . . . .
27229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
27230$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27231    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27232    ac_xsave_c_werror_flag=$ac_c_werror_flag
27233    ac_c_werror_flag=yes
27234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27235/* end confdefs.h.  */
27236
27237int
27238main ()
27239{
27240
27241  ;
27242  return 0;
27243}
27244_ACEOF
27245if ac_fn_c_try_link "$LINENO"; then :
27246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27247$as_echo "no" >&6; }
27248       X_LIBS="$X_LIBS -R$x_libraries"
27249else
27250  LIBS="$ac_xsave_LIBS -R $x_libraries"
27251       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27252/* end confdefs.h.  */
27253
27254int
27255main ()
27256{
27257
27258  ;
27259  return 0;
27260}
27261_ACEOF
27262if ac_fn_c_try_link "$LINENO"; then :
27263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27264$as_echo "yes" >&6; }
27265	  X_LIBS="$X_LIBS -R $x_libraries"
27266else
27267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
27268$as_echo "neither works" >&6; }
27269fi
27270rm -f core conftest.err conftest.$ac_objext \
27271    conftest$ac_exeext conftest.$ac_ext
27272fi
27273rm -f core conftest.err conftest.$ac_objext \
27274    conftest$ac_exeext conftest.$ac_ext
27275    ac_c_werror_flag=$ac_xsave_c_werror_flag
27276    LIBS=$ac_xsave_LIBS
27277  fi
27278
27279  # Check for system-dependent libraries X programs must link with.
27280  # Do this before checking for the system-independent R6 libraries
27281  # (-lICE), since we may need -lsocket or whatever for X linking.
27282
27283  if test "$ISC" = yes; then
27284    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27285  else
27286    # Martyn Johnson says this is needed for Ultrix, if the X
27287    # libraries were built with DECnet support.  And Karl Berry says
27288    # the Alpha needs dnet_stub (dnet does not exist).
27289    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27290    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27291/* end confdefs.h.  */
27292
27293/* Override any GCC internal prototype to avoid an error.
27294   Use char because int might match the return type of a GCC
27295   builtin and then its argument prototype would still apply.  */
27296#ifdef __cplusplus
27297extern "C"
27298#endif
27299char XOpenDisplay ();
27300int
27301main ()
27302{
27303return XOpenDisplay ();
27304  ;
27305  return 0;
27306}
27307_ACEOF
27308if ac_fn_c_try_link "$LINENO"; then :
27309
27310else
27311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
27312$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
27313if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
27314  $as_echo_n "(cached) " >&6
27315else
27316  ac_check_lib_save_LIBS=$LIBS
27317LIBS="-ldnet  $LIBS"
27318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27319/* end confdefs.h.  */
27320
27321/* Override any GCC internal prototype to avoid an error.
27322   Use char because int might match the return type of a GCC
27323   builtin and then its argument prototype would still apply.  */
27324#ifdef __cplusplus
27325extern "C"
27326#endif
27327char dnet_ntoa ();
27328int
27329main ()
27330{
27331return dnet_ntoa ();
27332  ;
27333  return 0;
27334}
27335_ACEOF
27336if ac_fn_c_try_link "$LINENO"; then :
27337  ac_cv_lib_dnet_dnet_ntoa=yes
27338else
27339  ac_cv_lib_dnet_dnet_ntoa=no
27340fi
27341rm -f core conftest.err conftest.$ac_objext \
27342    conftest$ac_exeext conftest.$ac_ext
27343LIBS=$ac_check_lib_save_LIBS
27344fi
27345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27346$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27347if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27348  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27349fi
27350
27351    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27352      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27353$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27354if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27355  $as_echo_n "(cached) " >&6
27356else
27357  ac_check_lib_save_LIBS=$LIBS
27358LIBS="-ldnet_stub  $LIBS"
27359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27360/* end confdefs.h.  */
27361
27362/* Override any GCC internal prototype to avoid an error.
27363   Use char because int might match the return type of a GCC
27364   builtin and then its argument prototype would still apply.  */
27365#ifdef __cplusplus
27366extern "C"
27367#endif
27368char dnet_ntoa ();
27369int
27370main ()
27371{
27372return dnet_ntoa ();
27373  ;
27374  return 0;
27375}
27376_ACEOF
27377if ac_fn_c_try_link "$LINENO"; then :
27378  ac_cv_lib_dnet_stub_dnet_ntoa=yes
27379else
27380  ac_cv_lib_dnet_stub_dnet_ntoa=no
27381fi
27382rm -f core conftest.err conftest.$ac_objext \
27383    conftest$ac_exeext conftest.$ac_ext
27384LIBS=$ac_check_lib_save_LIBS
27385fi
27386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27387$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27388if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27389  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27390fi
27391
27392    fi
27393fi
27394rm -f core conftest.err conftest.$ac_objext \
27395    conftest$ac_exeext conftest.$ac_ext
27396    LIBS="$ac_xsave_LIBS"
27397
27398    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27399    # to get the SysV transport functions.
27400    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27401    # needs -lnsl.
27402    # The nsl library prevents programs from opening the X display
27403    # on Irix 5.2, according to T.E. Dickey.
27404    # The functions gethostbyname, getservbyname, and inet_addr are
27405    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27406    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27407if test "x$ac_cv_func_gethostbyname" = xyes; then :
27408
27409fi
27410
27411    if test $ac_cv_func_gethostbyname = no; then
27412      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27413$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27414if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27415  $as_echo_n "(cached) " >&6
27416else
27417  ac_check_lib_save_LIBS=$LIBS
27418LIBS="-lnsl  $LIBS"
27419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27420/* end confdefs.h.  */
27421
27422/* Override any GCC internal prototype to avoid an error.
27423   Use char because int might match the return type of a GCC
27424   builtin and then its argument prototype would still apply.  */
27425#ifdef __cplusplus
27426extern "C"
27427#endif
27428char gethostbyname ();
27429int
27430main ()
27431{
27432return gethostbyname ();
27433  ;
27434  return 0;
27435}
27436_ACEOF
27437if ac_fn_c_try_link "$LINENO"; then :
27438  ac_cv_lib_nsl_gethostbyname=yes
27439else
27440  ac_cv_lib_nsl_gethostbyname=no
27441fi
27442rm -f core conftest.err conftest.$ac_objext \
27443    conftest$ac_exeext conftest.$ac_ext
27444LIBS=$ac_check_lib_save_LIBS
27445fi
27446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27447$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27448if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27449  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27450fi
27451
27452      if test $ac_cv_lib_nsl_gethostbyname = no; then
27453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27454$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27455if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27456  $as_echo_n "(cached) " >&6
27457else
27458  ac_check_lib_save_LIBS=$LIBS
27459LIBS="-lbsd  $LIBS"
27460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27461/* end confdefs.h.  */
27462
27463/* Override any GCC internal prototype to avoid an error.
27464   Use char because int might match the return type of a GCC
27465   builtin and then its argument prototype would still apply.  */
27466#ifdef __cplusplus
27467extern "C"
27468#endif
27469char gethostbyname ();
27470int
27471main ()
27472{
27473return gethostbyname ();
27474  ;
27475  return 0;
27476}
27477_ACEOF
27478if ac_fn_c_try_link "$LINENO"; then :
27479  ac_cv_lib_bsd_gethostbyname=yes
27480else
27481  ac_cv_lib_bsd_gethostbyname=no
27482fi
27483rm -f core conftest.err conftest.$ac_objext \
27484    conftest$ac_exeext conftest.$ac_ext
27485LIBS=$ac_check_lib_save_LIBS
27486fi
27487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27488$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27489if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27490  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27491fi
27492
27493      fi
27494    fi
27495
27496    # lieder@skyler.mavd.honeywell.com says without -lsocket,
27497    # socket/setsockopt and other routines are undefined under SCO ODT
27498    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27499    # on later versions), says Simon Leinen: it contains gethostby*
27500    # variants that don't use the name server (or something).  -lsocket
27501    # must be given before -lnsl if both are needed.  We assume that
27502    # if connect needs -lnsl, so does gethostbyname.
27503    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27504if test "x$ac_cv_func_connect" = xyes; then :
27505
27506fi
27507
27508    if test $ac_cv_func_connect = no; then
27509      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27510$as_echo_n "checking for connect in -lsocket... " >&6; }
27511if ${ac_cv_lib_socket_connect+:} false; then :
27512  $as_echo_n "(cached) " >&6
27513else
27514  ac_check_lib_save_LIBS=$LIBS
27515LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27517/* end confdefs.h.  */
27518
27519/* Override any GCC internal prototype to avoid an error.
27520   Use char because int might match the return type of a GCC
27521   builtin and then its argument prototype would still apply.  */
27522#ifdef __cplusplus
27523extern "C"
27524#endif
27525char connect ();
27526int
27527main ()
27528{
27529return connect ();
27530  ;
27531  return 0;
27532}
27533_ACEOF
27534if ac_fn_c_try_link "$LINENO"; then :
27535  ac_cv_lib_socket_connect=yes
27536else
27537  ac_cv_lib_socket_connect=no
27538fi
27539rm -f core conftest.err conftest.$ac_objext \
27540    conftest$ac_exeext conftest.$ac_ext
27541LIBS=$ac_check_lib_save_LIBS
27542fi
27543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27544$as_echo "$ac_cv_lib_socket_connect" >&6; }
27545if test "x$ac_cv_lib_socket_connect" = xyes; then :
27546  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27547fi
27548
27549    fi
27550
27551    # Guillermo Gomez says -lposix is necessary on A/UX.
27552    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27553if test "x$ac_cv_func_remove" = xyes; then :
27554
27555fi
27556
27557    if test $ac_cv_func_remove = no; then
27558      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27559$as_echo_n "checking for remove in -lposix... " >&6; }
27560if ${ac_cv_lib_posix_remove+:} false; then :
27561  $as_echo_n "(cached) " >&6
27562else
27563  ac_check_lib_save_LIBS=$LIBS
27564LIBS="-lposix  $LIBS"
27565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566/* end confdefs.h.  */
27567
27568/* Override any GCC internal prototype to avoid an error.
27569   Use char because int might match the return type of a GCC
27570   builtin and then its argument prototype would still apply.  */
27571#ifdef __cplusplus
27572extern "C"
27573#endif
27574char remove ();
27575int
27576main ()
27577{
27578return remove ();
27579  ;
27580  return 0;
27581}
27582_ACEOF
27583if ac_fn_c_try_link "$LINENO"; then :
27584  ac_cv_lib_posix_remove=yes
27585else
27586  ac_cv_lib_posix_remove=no
27587fi
27588rm -f core conftest.err conftest.$ac_objext \
27589    conftest$ac_exeext conftest.$ac_ext
27590LIBS=$ac_check_lib_save_LIBS
27591fi
27592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27593$as_echo "$ac_cv_lib_posix_remove" >&6; }
27594if test "x$ac_cv_lib_posix_remove" = xyes; then :
27595  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27596fi
27597
27598    fi
27599
27600    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27601    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27602if test "x$ac_cv_func_shmat" = xyes; then :
27603
27604fi
27605
27606    if test $ac_cv_func_shmat = no; then
27607      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27608$as_echo_n "checking for shmat in -lipc... " >&6; }
27609if ${ac_cv_lib_ipc_shmat+:} false; then :
27610  $as_echo_n "(cached) " >&6
27611else
27612  ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lipc  $LIBS"
27614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27615/* end confdefs.h.  */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618   Use char because int might match the return type of a GCC
27619   builtin and then its argument prototype would still apply.  */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char shmat ();
27624int
27625main ()
27626{
27627return shmat ();
27628  ;
27629  return 0;
27630}
27631_ACEOF
27632if ac_fn_c_try_link "$LINENO"; then :
27633  ac_cv_lib_ipc_shmat=yes
27634else
27635  ac_cv_lib_ipc_shmat=no
27636fi
27637rm -f core conftest.err conftest.$ac_objext \
27638    conftest$ac_exeext conftest.$ac_ext
27639LIBS=$ac_check_lib_save_LIBS
27640fi
27641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27642$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27643if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27644  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27645fi
27646
27647    fi
27648  fi
27649
27650  # Check for libraries that X11R6 Xt/Xaw programs need.
27651  ac_save_LDFLAGS=$LDFLAGS
27652  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27653  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27654  # check for ICE first), but we must link in the order -lSM -lICE or
27655  # we get undefined symbols.  So assume we have SM if we have ICE.
27656  # These have to be linked with before -lX11, unlike the other
27657  # libraries we check for below, so use a different variable.
27658  # John Interrante, Karl Berry
27659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27660$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27661if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27662  $as_echo_n "(cached) " >&6
27663else
27664  ac_check_lib_save_LIBS=$LIBS
27665LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27667/* end confdefs.h.  */
27668
27669/* Override any GCC internal prototype to avoid an error.
27670   Use char because int might match the return type of a GCC
27671   builtin and then its argument prototype would still apply.  */
27672#ifdef __cplusplus
27673extern "C"
27674#endif
27675char IceConnectionNumber ();
27676int
27677main ()
27678{
27679return IceConnectionNumber ();
27680  ;
27681  return 0;
27682}
27683_ACEOF
27684if ac_fn_c_try_link "$LINENO"; then :
27685  ac_cv_lib_ICE_IceConnectionNumber=yes
27686else
27687  ac_cv_lib_ICE_IceConnectionNumber=no
27688fi
27689rm -f core conftest.err conftest.$ac_objext \
27690    conftest$ac_exeext conftest.$ac_ext
27691LIBS=$ac_check_lib_save_LIBS
27692fi
27693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27694$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27695if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27696  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27697fi
27698
27699  LDFLAGS=$ac_save_LDFLAGS
27700
27701fi
27702
27703if test "$no_x" != 'yes'; then
27704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27705$as_echo "-------------------------------------------------------------" >&6; }
27706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27707$as_echo_n "checking for X11... " >&6; }
27708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27709$as_echo "" >&6; }
27710    LDFLAGS="$LDFLAGS $X_LIBS"
27711    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27712    LIBS="$X11_LIBS $LIBS"
27713    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27714
27715
27716$as_echo "#define X11_DELEGATE 1" >>confdefs.h
27717
27718    #
27719    # Check for X11 shared memory extension
27720    #
27721    # shmctl is required to support the shared memory extension
27722    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27723if test "x$ac_cv_func_shmctl" = xyes; then :
27724  have_shmctl='yes'
27725fi
27726
27727    if test "$have_shmctl" != 'yes'; then
27728        PERSIST_LIBS=$LIBS
27729        LIBS="$LIBS -lcygipc"
27730        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27731/* end confdefs.h.  */
27732
27733/* Override any GCC internal prototype to avoid an error.
27734   Use char because int might match the return type of a GCC
27735   builtin and then its argument prototype would still apply.  */
27736#ifdef __cplusplus
27737extern "C"
27738#endif
27739char shmctl ();
27740int
27741main ()
27742{
27743return shmctl ();
27744  ;
27745  return 0;
27746}
27747_ACEOF
27748if ac_fn_c_try_link "$LINENO"; then :
27749  have_shmctl='yes'; IPC_LIBS='-lcygipc'
27750fi
27751rm -f core conftest.err conftest.$ac_objext \
27752    conftest$ac_exeext conftest.$ac_ext
27753        LIBS=$PERSIST_LIBS
27754    fi
27755
27756    if test "$have_shmctl" = 'yes'; then
27757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27758$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27759if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27760  $as_echo_n "(cached) " >&6
27761else
27762  ac_check_lib_save_LIBS=$LIBS
27763LIBS="-lXext  $LIBS"
27764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765/* end confdefs.h.  */
27766
27767/* Override any GCC internal prototype to avoid an error.
27768   Use char because int might match the return type of a GCC
27769   builtin and then its argument prototype would still apply.  */
27770#ifdef __cplusplus
27771extern "C"
27772#endif
27773char XShmAttach ();
27774int
27775main ()
27776{
27777return XShmAttach ();
27778  ;
27779  return 0;
27780}
27781_ACEOF
27782if ac_fn_c_try_link "$LINENO"; then :
27783  ac_cv_lib_Xext_XShmAttach=yes
27784else
27785  ac_cv_lib_Xext_XShmAttach=no
27786fi
27787rm -f core conftest.err conftest.$ac_objext \
27788    conftest$ac_exeext conftest.$ac_ext
27789LIBS=$ac_check_lib_save_LIBS
27790fi
27791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27792$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27793if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27794  XEXT_LIBS='-lXext' ;
27795$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27796
27797fi
27798
27799    fi
27800
27801    #
27802    # Check for X11 shape extension
27803    #
27804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27805$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27806if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27807  $as_echo_n "(cached) " >&6
27808else
27809  ac_check_lib_save_LIBS=$LIBS
27810LIBS="-lXext  $LIBS"
27811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27812/* end confdefs.h.  */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815   Use char because int might match the return type of a GCC
27816   builtin and then its argument prototype would still apply.  */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char XShapeCombineMask ();
27821int
27822main ()
27823{
27824return XShapeCombineMask ();
27825  ;
27826  return 0;
27827}
27828_ACEOF
27829if ac_fn_c_try_link "$LINENO"; then :
27830  ac_cv_lib_Xext_XShapeCombineMask=yes
27831else
27832  ac_cv_lib_Xext_XShapeCombineMask=no
27833fi
27834rm -f core conftest.err conftest.$ac_objext \
27835    conftest$ac_exeext conftest.$ac_ext
27836LIBS=$ac_check_lib_save_LIBS
27837fi
27838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27839$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27840if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27841  XEXT_LIBS='-lXext' ;
27842$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27843
27844fi
27845
27846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27847$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27848if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27849  $as_echo_n "(cached) " >&6
27850else
27851  ac_check_lib_save_LIBS=$LIBS
27852LIBS="-lXt  $LIBS"
27853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27854/* end confdefs.h.  */
27855
27856/* Override any GCC internal prototype to avoid an error.
27857   Use char because int might match the return type of a GCC
27858   builtin and then its argument prototype would still apply.  */
27859#ifdef __cplusplus
27860extern "C"
27861#endif
27862char XtSetEventDispatcher ();
27863int
27864main ()
27865{
27866return XtSetEventDispatcher ();
27867  ;
27868  return 0;
27869}
27870_ACEOF
27871if ac_fn_c_try_link "$LINENO"; then :
27872  ac_cv_lib_Xt_XtSetEventDispatcher=yes
27873else
27874  ac_cv_lib_Xt_XtSetEventDispatcher=no
27875fi
27876rm -f core conftest.err conftest.$ac_objext \
27877    conftest$ac_exeext conftest.$ac_ext
27878LIBS=$ac_check_lib_save_LIBS
27879fi
27880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27881$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27882if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27883  XT_LIBS='-lXt'
27884fi
27885
27886    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27887fi
27888if test "$no_x" != 'yes'; then
27889  have_x='yes'
27890else
27891  have_x='no'
27892fi
27893 if test "$have_x" = 'yes'; then
27894  X11_DELEGATE_TRUE=
27895  X11_DELEGATE_FALSE='#'
27896else
27897  X11_DELEGATE_TRUE='#'
27898  X11_DELEGATE_FALSE=
27899fi
27900
27901
27902
27903
27904
27905#
27906# Check for ZLIB
27907#
27908
27909# Check whether --with-zlib was given.
27910if test "${with_zlib+set}" = set; then :
27911  withval=$with_zlib; with_zlib=$withval
27912else
27913  with_zlib='yes'
27914fi
27915
27916
27917if test "$with_zlib" != 'yes'; then
27918    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27919fi
27920
27921have_zlib='no'
27922ZLIB_LIBS=''
27923if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27925$as_echo "-------------------------------------------------------------" >&6; }
27926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27927$as_echo_n "checking for ZLIB... " >&6; }
27928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27929$as_echo "" >&6; }
27930    ZLIB_LIBS=''
27931    failed=0
27932    passed=0
27933    ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27934if test "x$ac_cv_header_zconf_h" = xyes; then :
27935  passed=`expr $passed + 1`
27936else
27937  failed=`expr $failed + 1`
27938fi
27939
27940
27941    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27942if test "x$ac_cv_header_zlib_h" = xyes; then :
27943  passed=`expr $passed + 1`
27944else
27945  failed=`expr $failed + 1`
27946fi
27947
27948
27949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27950$as_echo_n "checking for compress in -lz... " >&6; }
27951if ${ac_cv_lib_z_compress+:} false; then :
27952  $as_echo_n "(cached) " >&6
27953else
27954  ac_check_lib_save_LIBS=$LIBS
27955LIBS="-lz  $LIBS"
27956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27957/* end confdefs.h.  */
27958
27959/* Override any GCC internal prototype to avoid an error.
27960   Use char because int might match the return type of a GCC
27961   builtin and then its argument prototype would still apply.  */
27962#ifdef __cplusplus
27963extern "C"
27964#endif
27965char compress ();
27966int
27967main ()
27968{
27969return compress ();
27970  ;
27971  return 0;
27972}
27973_ACEOF
27974if ac_fn_c_try_link "$LINENO"; then :
27975  ac_cv_lib_z_compress=yes
27976else
27977  ac_cv_lib_z_compress=no
27978fi
27979rm -f core conftest.err conftest.$ac_objext \
27980    conftest$ac_exeext conftest.$ac_ext
27981LIBS=$ac_check_lib_save_LIBS
27982fi
27983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27984$as_echo "$ac_cv_lib_z_compress" >&6; }
27985if test "x$ac_cv_lib_z_compress" = xyes; then :
27986  passed=`expr $passed + 1`
27987else
27988  failed=`expr $failed + 1`
27989fi
27990
27991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27992$as_echo_n "checking for uncompress in -lz... " >&6; }
27993if ${ac_cv_lib_z_uncompress+:} false; then :
27994  $as_echo_n "(cached) " >&6
27995else
27996  ac_check_lib_save_LIBS=$LIBS
27997LIBS="-lz  $LIBS"
27998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27999/* end confdefs.h.  */
28000
28001/* Override any GCC internal prototype to avoid an error.
28002   Use char because int might match the return type of a GCC
28003   builtin and then its argument prototype would still apply.  */
28004#ifdef __cplusplus
28005extern "C"
28006#endif
28007char uncompress ();
28008int
28009main ()
28010{
28011return uncompress ();
28012  ;
28013  return 0;
28014}
28015_ACEOF
28016if ac_fn_c_try_link "$LINENO"; then :
28017  ac_cv_lib_z_uncompress=yes
28018else
28019  ac_cv_lib_z_uncompress=no
28020fi
28021rm -f core conftest.err conftest.$ac_objext \
28022    conftest$ac_exeext conftest.$ac_ext
28023LIBS=$ac_check_lib_save_LIBS
28024fi
28025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
28026$as_echo "$ac_cv_lib_z_uncompress" >&6; }
28027if test "x$ac_cv_lib_z_uncompress" = xyes; then :
28028  passed=`expr $passed + 1`
28029else
28030  failed=`expr $failed + 1`
28031fi
28032
28033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28034$as_echo_n "checking for deflate in -lz... " >&6; }
28035if ${ac_cv_lib_z_deflate+:} false; then :
28036  $as_echo_n "(cached) " >&6
28037else
28038  ac_check_lib_save_LIBS=$LIBS
28039LIBS="-lz  $LIBS"
28040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28041/* end confdefs.h.  */
28042
28043/* Override any GCC internal prototype to avoid an error.
28044   Use char because int might match the return type of a GCC
28045   builtin and then its argument prototype would still apply.  */
28046#ifdef __cplusplus
28047extern "C"
28048#endif
28049char deflate ();
28050int
28051main ()
28052{
28053return deflate ();
28054  ;
28055  return 0;
28056}
28057_ACEOF
28058if ac_fn_c_try_link "$LINENO"; then :
28059  ac_cv_lib_z_deflate=yes
28060else
28061  ac_cv_lib_z_deflate=no
28062fi
28063rm -f core conftest.err conftest.$ac_objext \
28064    conftest$ac_exeext conftest.$ac_ext
28065LIBS=$ac_check_lib_save_LIBS
28066fi
28067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28068$as_echo "$ac_cv_lib_z_deflate" >&6; }
28069if test "x$ac_cv_lib_z_deflate" = xyes; then :
28070  passed=`expr $passed + 1`
28071else
28072  failed=`expr $failed + 1`
28073fi
28074
28075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
28076$as_echo_n "checking for inflate in -lz... " >&6; }
28077if ${ac_cv_lib_z_inflate+:} false; then :
28078  $as_echo_n "(cached) " >&6
28079else
28080  ac_check_lib_save_LIBS=$LIBS
28081LIBS="-lz  $LIBS"
28082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28083/* end confdefs.h.  */
28084
28085/* Override any GCC internal prototype to avoid an error.
28086   Use char because int might match the return type of a GCC
28087   builtin and then its argument prototype would still apply.  */
28088#ifdef __cplusplus
28089extern "C"
28090#endif
28091char inflate ();
28092int
28093main ()
28094{
28095return inflate ();
28096  ;
28097  return 0;
28098}
28099_ACEOF
28100if ac_fn_c_try_link "$LINENO"; then :
28101  ac_cv_lib_z_inflate=yes
28102else
28103  ac_cv_lib_z_inflate=no
28104fi
28105rm -f core conftest.err conftest.$ac_objext \
28106    conftest$ac_exeext conftest.$ac_ext
28107LIBS=$ac_check_lib_save_LIBS
28108fi
28109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
28110$as_echo "$ac_cv_lib_z_inflate" >&6; }
28111if test "x$ac_cv_lib_z_inflate" = xyes; then :
28112  passed=`expr $passed + 1`
28113else
28114  failed=`expr $failed + 1`
28115fi
28116
28117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
28118$as_echo_n "checking for gzseek in -lz... " >&6; }
28119if ${ac_cv_lib_z_gzseek+:} false; then :
28120  $as_echo_n "(cached) " >&6
28121else
28122  ac_check_lib_save_LIBS=$LIBS
28123LIBS="-lz  $LIBS"
28124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28125/* end confdefs.h.  */
28126
28127/* Override any GCC internal prototype to avoid an error.
28128   Use char because int might match the return type of a GCC
28129   builtin and then its argument prototype would still apply.  */
28130#ifdef __cplusplus
28131extern "C"
28132#endif
28133char gzseek ();
28134int
28135main ()
28136{
28137return gzseek ();
28138  ;
28139  return 0;
28140}
28141_ACEOF
28142if ac_fn_c_try_link "$LINENO"; then :
28143  ac_cv_lib_z_gzseek=yes
28144else
28145  ac_cv_lib_z_gzseek=no
28146fi
28147rm -f core conftest.err conftest.$ac_objext \
28148    conftest$ac_exeext conftest.$ac_ext
28149LIBS=$ac_check_lib_save_LIBS
28150fi
28151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
28152$as_echo "$ac_cv_lib_z_gzseek" >&6; }
28153if test "x$ac_cv_lib_z_gzseek" = xyes; then :
28154  passed=`expr $passed + 1`
28155else
28156  failed=`expr $failed + 1`
28157fi
28158
28159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
28160$as_echo_n "checking for gztell in -lz... " >&6; }
28161if ${ac_cv_lib_z_gztell+:} false; then :
28162  $as_echo_n "(cached) " >&6
28163else
28164  ac_check_lib_save_LIBS=$LIBS
28165LIBS="-lz  $LIBS"
28166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28167/* end confdefs.h.  */
28168
28169/* Override any GCC internal prototype to avoid an error.
28170   Use char because int might match the return type of a GCC
28171   builtin and then its argument prototype would still apply.  */
28172#ifdef __cplusplus
28173extern "C"
28174#endif
28175char gztell ();
28176int
28177main ()
28178{
28179return gztell ();
28180  ;
28181  return 0;
28182}
28183_ACEOF
28184if ac_fn_c_try_link "$LINENO"; then :
28185  ac_cv_lib_z_gztell=yes
28186else
28187  ac_cv_lib_z_gztell=no
28188fi
28189rm -f core conftest.err conftest.$ac_objext \
28190    conftest$ac_exeext conftest.$ac_ext
28191LIBS=$ac_check_lib_save_LIBS
28192fi
28193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
28194$as_echo "$ac_cv_lib_z_gztell" >&6; }
28195if test "x$ac_cv_lib_z_gztell" = xyes; then :
28196  passed=`expr $passed + 1`
28197else
28198  failed=`expr $failed + 1`
28199fi
28200
28201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
28202$as_echo_n "checking if ZLIB package is complete... " >&6; }
28203    if test $passed -gt 0; then
28204        if test $failed -gt 0; then
28205            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28206$as_echo "no -- some components failed test" >&6; }
28207            have_zlib='no (failed tests)'
28208        else
28209            ZLIB_LIBS='-lz'
28210            LIBS="$ZLIB_LIBS $LIBS"
28211
28212$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28213
28214            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215$as_echo "yes" >&6; }
28216            have_zlib='yes'
28217        fi
28218    else
28219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28220$as_echo "no" >&6; }
28221    fi
28222fi
28223 if test "$have_zlib" = 'yes'; then
28224  ZLIB_DELEGATE_TRUE=
28225  ZLIB_DELEGATE_FALSE='#'
28226else
28227  ZLIB_DELEGATE_TRUE='#'
28228  ZLIB_DELEGATE_FALSE=
28229fi
28230
28231
28232
28233# whether modules are built or not.
28234with_ltdl='yes'
28235have_ltdl='no'
28236LTDL_LIBS=''
28237if test "$build_modules" != 'no' ; then
28238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28239$as_echo "-------------------------------------------------------------" >&6; }
28240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28241$as_echo_n "checking for libltdl... " >&6; }
28242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28243$as_echo "" >&6; }
28244  failed=0
28245  passed=0
28246  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28247if test "x$ac_cv_header_ltdl_h" = xyes; then :
28248  passed=`expr $passed + 1`
28249else
28250  failed=`expr $failed + 1`
28251fi
28252
28253
28254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28255$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28256if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28257  $as_echo_n "(cached) " >&6
28258else
28259  ac_check_lib_save_LIBS=$LIBS
28260LIBS="-lltdl  $LIBS"
28261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262/* end confdefs.h.  */
28263
28264/* Override any GCC internal prototype to avoid an error.
28265   Use char because int might match the return type of a GCC
28266   builtin and then its argument prototype would still apply.  */
28267#ifdef __cplusplus
28268extern "C"
28269#endif
28270char lt_dlinit ();
28271int
28272main ()
28273{
28274return lt_dlinit ();
28275  ;
28276  return 0;
28277}
28278_ACEOF
28279if ac_fn_c_try_link "$LINENO"; then :
28280  ac_cv_lib_ltdl_lt_dlinit=yes
28281else
28282  ac_cv_lib_ltdl_lt_dlinit=no
28283fi
28284rm -f core conftest.err conftest.$ac_objext \
28285    conftest$ac_exeext conftest.$ac_ext
28286LIBS=$ac_check_lib_save_LIBS
28287fi
28288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28289$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28290if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28291  passed=`expr $passed + 1`
28292else
28293  failed=`expr $failed + 1`
28294fi
28295
28296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28297$as_echo_n "checking if libltdl package is complete... " >&6; }
28298  if test $passed -gt 0 ; then
28299    if test $failed -gt 0 ; then
28300      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28301$as_echo "no -- some components failed test" >&6; }
28302      have_ltdl='no (failed tests)'
28303    else
28304      LTDL_LIBS='-lltdl'
28305      LIBS="$LTDL_LIBS $LIBS"
28306
28307$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28308
28309      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28310$as_echo "yes" >&6; }
28311      have_ltdl='yes'
28312    fi
28313  else
28314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28315$as_echo "no" >&6; }
28316  fi
28317  if test "$have_ltdl" != 'yes' ; then
28318    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28320as_fn_error 1 "libltdl is required for modules build
28321See \`config.log' for more details" "$LINENO" 5; }
28322  fi
28323fi
28324 if test "$have_ltdl" != 'no'; then
28325  WITH_LTDL_TRUE=
28326  WITH_LTDL_FALSE='#'
28327else
28328  WITH_LTDL_TRUE='#'
28329  WITH_LTDL_FALSE=
28330fi
28331
28332
28333#
28334# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28335#
28336LIB_DL=''
28337if test "$enable_profiling" = 'yes'; then
28338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
28339$as_echo_n "checking for dlopen in -ldl... " >&6; }
28340if ${ac_cv_lib_dl_dlopen+:} false; then :
28341  $as_echo_n "(cached) " >&6
28342else
28343  ac_check_lib_save_LIBS=$LIBS
28344LIBS="-ldl  $LIBS"
28345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346/* end confdefs.h.  */
28347
28348/* Override any GCC internal prototype to avoid an error.
28349   Use char because int might match the return type of a GCC
28350   builtin and then its argument prototype would still apply.  */
28351#ifdef __cplusplus
28352extern "C"
28353#endif
28354char dlopen ();
28355int
28356main ()
28357{
28358return dlopen ();
28359  ;
28360  return 0;
28361}
28362_ACEOF
28363if ac_fn_c_try_link "$LINENO"; then :
28364  ac_cv_lib_dl_dlopen=yes
28365else
28366  ac_cv_lib_dl_dlopen=no
28367fi
28368rm -f core conftest.err conftest.$ac_objext \
28369    conftest$ac_exeext conftest.$ac_ext
28370LIBS=$ac_check_lib_save_LIBS
28371fi
28372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
28373$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28374if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
28375  LIB_DL='-ldl'
28376fi
28377
28378    LIBS="$LIB_DL $LIBS"
28379fi
28380
28381
28382
28383#
28384# Check for Autotrace delegate library.
28385#
28386
28387# Check whether --with-autotrace was given.
28388if test "${with_autotrace+set}" = set; then :
28389  withval=$with_autotrace; with_autotrace=$withval
28390else
28391  with_autotrace='no'
28392fi
28393
28394
28395if test "$with_autotrace" != 'yes'; then
28396    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28397fi
28398
28399have_autotrace='no'
28400AUTOTRACE_CFLAGS=""
28401AUTOTRACE_LIBS=""
28402AUTOTRACE_PKG=""
28403if test "x$with_autotrace" = "xyes"; then
28404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28405$as_echo "-------------------------------------------------------------" >&6; }
28406
28407pkg_failed=no
28408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28409$as_echo_n "checking for AUTOTRACE... " >&6; }
28410
28411if test -n "$AUTOTRACE_CFLAGS"; then
28412    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28413 elif test -n "$PKG_CONFIG"; then
28414    if test -n "$PKG_CONFIG" && \
28415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28416  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28417  ac_status=$?
28418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28419  test $ac_status = 0; }; then
28420  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28421else
28422  pkg_failed=yes
28423fi
28424 else
28425    pkg_failed=untried
28426fi
28427if test -n "$AUTOTRACE_LIBS"; then
28428    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28429 elif test -n "$PKG_CONFIG"; then
28430    if test -n "$PKG_CONFIG" && \
28431    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28432  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28433  ac_status=$?
28434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28435  test $ac_status = 0; }; then
28436  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28437else
28438  pkg_failed=yes
28439fi
28440 else
28441    pkg_failed=untried
28442fi
28443
28444
28445
28446if test $pkg_failed = yes; then
28447
28448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28449        _pkg_short_errors_supported=yes
28450else
28451        _pkg_short_errors_supported=no
28452fi
28453        if test $_pkg_short_errors_supported = yes; then
28454	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28455        else
28456	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28457        fi
28458	# Put the nasty error message in config.log where it belongs
28459	echo "$AUTOTRACE_PKG_ERRORS" >&5
28460
28461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462$as_echo "no" >&6; }
28463                have_autotrace=no
28464elif test $pkg_failed = untried; then
28465	have_autotrace=no
28466else
28467	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28468	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28470$as_echo "yes" >&6; }
28471	have_autotrace=yes
28472fi
28473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28474$as_echo "" >&6; }
28475fi
28476
28477if test "$have_autotrace" = 'yes'; then
28478    failed=0
28479
28480$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28481
28482    if test "$build_modules" = 'no'; then
28483      CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28484    fi
28485fi
28486
28487 if test "$have_autotrace" = 'yes'; then
28488  AUTOTRACE_DELEGATE_TRUE=
28489  AUTOTRACE_DELEGATE_FALSE='#'
28490else
28491  AUTOTRACE_DELEGATE_TRUE='#'
28492  AUTOTRACE_DELEGATE_FALSE=
28493fi
28494
28495
28496
28497
28498
28499#
28500# Check for Display Postscript delegate library.
28501#
28502
28503# Check whether --with-dps was given.
28504if test "${with_dps+set}" = set; then :
28505  withval=$with_dps; with_dps=$withval
28506else
28507  with_dps='yes'
28508fi
28509
28510
28511if test "$with_dps" != 'yes'; then
28512    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28513fi
28514
28515have_dps='no'
28516DPS_LIBS=''
28517if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28519$as_echo "-------------------------------------------------------------" >&6; }
28520    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28521$as_echo_n "checking for DPS... " >&6; }
28522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28523$as_echo "" >&6; }
28524    failed=0
28525    passed=0
28526    PERSIST_CPPFLAGS="$CPPFLAGS"
28527    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28528    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28529if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28530  passed=`expr $passed + 1`
28531else
28532  failed=`expr $failed + 1`
28533fi
28534
28535
28536    # DPS issues:
28537    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28538    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28539    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28540    # ImageMagick itself doesn't use -lXt.
28541    have_libdps='no'
28542    LIBDPS_XT=''
28543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28544$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28545if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28546  $as_echo_n "(cached) " >&6
28547else
28548  ac_check_lib_save_LIBS=$LIBS
28549LIBS="-ldps  $LIBS"
28550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28551/* end confdefs.h.  */
28552
28553/* Override any GCC internal prototype to avoid an error.
28554   Use char because int might match the return type of a GCC
28555   builtin and then its argument prototype would still apply.  */
28556#ifdef __cplusplus
28557extern "C"
28558#endif
28559char DPSInitialize ();
28560int
28561main ()
28562{
28563return DPSInitialize ();
28564  ;
28565  return 0;
28566}
28567_ACEOF
28568if ac_fn_c_try_link "$LINENO"; then :
28569  ac_cv_lib_dps_DPSInitialize=yes
28570else
28571  ac_cv_lib_dps_DPSInitialize=no
28572fi
28573rm -f core conftest.err conftest.$ac_objext \
28574    conftest$ac_exeext conftest.$ac_ext
28575LIBS=$ac_check_lib_save_LIBS
28576fi
28577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28578$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28579if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28580  have_libdps='yes'
28581else
28582  have_libdps='no'
28583fi
28584
28585    if test "$have_libdps" != 'yes'; then
28586        # Unset cache variable so we can try again.
28587        unset ac_cv_lib_dps_DPSInitialize
28588        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28589$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28590if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28591  $as_echo_n "(cached) " >&6
28592else
28593  ac_check_lib_save_LIBS=$LIBS
28594LIBS="-ldps -lXt $LIBS"
28595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28596/* end confdefs.h.  */
28597
28598/* Override any GCC internal prototype to avoid an error.
28599   Use char because int might match the return type of a GCC
28600   builtin and then its argument prototype would still apply.  */
28601#ifdef __cplusplus
28602extern "C"
28603#endif
28604char DPSInitialize ();
28605int
28606main ()
28607{
28608return DPSInitialize ();
28609  ;
28610  return 0;
28611}
28612_ACEOF
28613if ac_fn_c_try_link "$LINENO"; then :
28614  ac_cv_lib_dps_DPSInitialize=yes
28615else
28616  ac_cv_lib_dps_DPSInitialize=no
28617fi
28618rm -f core conftest.err conftest.$ac_objext \
28619    conftest$ac_exeext conftest.$ac_ext
28620LIBS=$ac_check_lib_save_LIBS
28621fi
28622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28623$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28624if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28625  have_libdps='yes'
28626else
28627  have_libdps='no'
28628fi
28629
28630        if test "$have_libdps" = 'yes'; then
28631            LIBDPS_XT='-lXt'
28632        fi
28633    fi
28634    if test "$have_libdps" = 'yes'; then
28635        passed=`expr $passed + 1`
28636    else
28637        failed=`expr $failed + 1`
28638    fi
28639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28640$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28641if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28642  $as_echo_n "(cached) " >&6
28643else
28644  ac_check_lib_save_LIBS=$LIBS
28645LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28647/* end confdefs.h.  */
28648
28649/* Override any GCC internal prototype to avoid an error.
28650   Use char because int might match the return type of a GCC
28651   builtin and then its argument prototype would still apply.  */
28652#ifdef __cplusplus
28653extern "C"
28654#endif
28655char XDPSPixelsPerPoint ();
28656int
28657main ()
28658{
28659return XDPSPixelsPerPoint ();
28660  ;
28661  return 0;
28662}
28663_ACEOF
28664if ac_fn_c_try_link "$LINENO"; then :
28665  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28666else
28667  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28668fi
28669rm -f core conftest.err conftest.$ac_objext \
28670    conftest$ac_exeext conftest.$ac_ext
28671LIBS=$ac_check_lib_save_LIBS
28672fi
28673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28674$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28675if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28676  passed=`expr $passed + 1`
28677else
28678  failed=`expr $failed + 1`
28679fi
28680
28681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28682$as_echo_n "checking if DPS package is complete... " >&6; }
28683    if test $passed -gt 0; then
28684        if test $failed -gt 0; then
28685            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28686$as_echo "no -- some components failed test" >&6; }
28687            have_dps='no (failed tests)'
28688            CPPFLAGS="$PERSIST_CPPFLAGS"
28689        else
28690            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28691            LIBS="$DPS_LIBS $LIBS"
28692
28693$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28694
28695            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28696$as_echo "yes" >&6; }
28697            have_dps='yes'
28698        fi
28699    else
28700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28701$as_echo "no" >&6; }
28702        CPPFLAGS=$PERSIST_CPPFLAGS
28703    fi
28704fi
28705 if test "$have_dps" = 'yes'; then
28706  DPS_DELEGATE_TRUE=
28707  DPS_DELEGATE_FALSE='#'
28708else
28709  DPS_DELEGATE_TRUE='#'
28710  DPS_DELEGATE_FALSE=
28711fi
28712
28713
28714
28715
28716#
28717# Set DejaVu font directory.
28718#
28719
28720# Check whether --with-dejavu-font-dir was given.
28721if test "${with_dejavu_font_dir+set}" = set; then :
28722  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28723else
28724  with_dejavu_font_dir='default'
28725fi
28726
28727
28728if test "$with_dejavu_font_dir" != 'default'; then
28729    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28730fi
28731
28732
28733#
28734# Check for FFTW delegate library.
28735#
28736
28737# Check whether --with-fftw was given.
28738if test "${with_fftw+set}" = set; then :
28739  withval=$with_fftw; with_fftw=$withval
28740else
28741  with_fftw='yes'
28742fi
28743
28744
28745if test "$with_fftw" != 'yes'; then
28746    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28747fi
28748
28749have_fftw='no'
28750FFTW_LIBS=''
28751if test "$with_fftw" != 'no'; then
28752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28753$as_echo "-------------------------------------------------------------" >&6; }
28754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28755$as_echo_n "checking for FFTW... " >&6; }
28756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28757$as_echo "" >&6; }
28758    failed=0
28759    passed=0
28760    ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28761if test "x$ac_cv_header_fftw3_h" = xyes; then :
28762  passed=`expr $passed + 1`
28763else
28764  failed=`expr $failed + 1`
28765fi
28766
28767
28768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28769$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28770if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28771  $as_echo_n "(cached) " >&6
28772else
28773  ac_check_lib_save_LIBS=$LIBS
28774LIBS="-lfftw3  $LIBS"
28775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28776/* end confdefs.h.  */
28777
28778/* Override any GCC internal prototype to avoid an error.
28779   Use char because int might match the return type of a GCC
28780   builtin and then its argument prototype would still apply.  */
28781#ifdef __cplusplus
28782extern "C"
28783#endif
28784char fftw_execute ();
28785int
28786main ()
28787{
28788return fftw_execute ();
28789  ;
28790  return 0;
28791}
28792_ACEOF
28793if ac_fn_c_try_link "$LINENO"; then :
28794  ac_cv_lib_fftw3_fftw_execute=yes
28795else
28796  ac_cv_lib_fftw3_fftw_execute=no
28797fi
28798rm -f core conftest.err conftest.$ac_objext \
28799    conftest$ac_exeext conftest.$ac_ext
28800LIBS=$ac_check_lib_save_LIBS
28801fi
28802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28803$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28804if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28805  passed=`expr $passed + 1`
28806else
28807  failed=`expr $failed + 1`
28808fi
28809
28810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28811$as_echo_n "checking if FFTW package is complete... " >&6; }
28812    if test $passed -gt 0; then
28813        if test $failed -gt 0; then
28814            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28815$as_echo "no -- some components failed test" >&6; }
28816            have_fftw='no (failed tests)'
28817        else
28818            FFTW_LIBS='-lfftw3'
28819            LIBS="$FFTW_LIBS $LIBS"
28820
28821$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28822
28823            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28824$as_echo "yes" >&6; }
28825            have_fftw='yes'
28826        fi
28827    else
28828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28829$as_echo "no" >&6; }
28830    fi
28831fi
28832 if test "$have_fftw" = 'yes'; then
28833  FFTW_DELEGATE_TRUE=
28834  FFTW_DELEGATE_FALSE='#'
28835else
28836  FFTW_DELEGATE_TRUE='#'
28837  FFTW_DELEGATE_FALSE=
28838fi
28839
28840
28841
28842
28843#
28844# Check for FlashPIX delegate library.
28845#
28846
28847# Check whether --with-fpx was given.
28848if test "${with_fpx+set}" = set; then :
28849  withval=$with_fpx; with_fpx=$withval
28850else
28851  with_fpx='yes'
28852fi
28853
28854
28855if test "$with_fpx" != 'yes'; then
28856    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28857fi
28858
28859have_fpx='no'
28860FPX_LIBS=''
28861if test "$with_fpx" != 'no'; then
28862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28863$as_echo "-------------------------------------------------------------" >&6; }
28864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28865$as_echo_n "checking for FlashPIX... " >&6; }
28866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28867$as_echo "" >&6; }
28868    failed=0
28869    passed=0
28870    ac_ext=cpp
28871ac_cpp='$CXXCPP $CPPFLAGS'
28872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28875
28876
28877ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28878if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28879  passed=`expr $passed + 1`
28880else
28881  failed=`expr $failed + 1`
28882fi
28883
28884
28885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28886$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28887if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28888  $as_echo_n "(cached) " >&6
28889else
28890  ac_check_lib_save_LIBS=$LIBS
28891LIBS="-lfpx  $LIBS"
28892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28893/* end confdefs.h.  */
28894
28895/* Override any GCC internal prototype to avoid an error.
28896   Use char because int might match the return type of a GCC
28897   builtin and then its argument prototype would still apply.  */
28898#ifdef __cplusplus
28899extern "C"
28900#endif
28901char FPX_OpenImageByFilename ();
28902int
28903main ()
28904{
28905return FPX_OpenImageByFilename ();
28906  ;
28907  return 0;
28908}
28909_ACEOF
28910if ac_fn_cxx_try_link "$LINENO"; then :
28911  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28912else
28913  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28914fi
28915rm -f core conftest.err conftest.$ac_objext \
28916    conftest$ac_exeext conftest.$ac_ext
28917LIBS=$ac_check_lib_save_LIBS
28918fi
28919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28920$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28921if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28922  passed=`expr $passed + 1`
28923else
28924  failed=`expr $failed + 1`
28925fi
28926
28927    ac_ext=c
28928ac_cpp='$CPP $CPPFLAGS'
28929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28931ac_compiler_gnu=$ac_cv_c_compiler_gnu
28932
28933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28934$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28935    if test $passed -gt 0; then
28936        if test $failed -gt 0; then
28937            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28938$as_echo "no -- some components failed test" >&6; }
28939            have_fpx='no (failed tests)'
28940        else
28941            FPX_LIBS='-lfpx'
28942
28943$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28944
28945            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28946$as_echo "yes" >&6; }
28947            have_fpx='yes'
28948            PERLMAINCC="$CXX"
28949        fi
28950    else
28951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28952$as_echo "no" >&6; }
28953    fi
28954fi
28955 if test "$have_fpx" = 'yes'; then
28956  FPX_DELEGATE_TRUE=
28957  FPX_DELEGATE_FALSE='#'
28958else
28959  FPX_DELEGATE_TRUE='#'
28960  FPX_DELEGATE_FALSE=
28961fi
28962
28963
28964
28965
28966#
28967# Check for DJVU delegate library.
28968#
28969
28970# Check whether --with-djvu was given.
28971if test "${with_djvu+set}" = set; then :
28972  withval=$with_djvu; with_djvu=$withval
28973else
28974  with_djvu='yes'
28975fi
28976
28977
28978if test "$with_djvu" != 'yes'; then
28979    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28980fi
28981
28982have_djvu='no'
28983DJVU_LIBS=''
28984if test "$with_djvu" != 'no'; then
28985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28986$as_echo "-------------------------------------------------------------" >&6; }
28987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28988$as_echo_n "checking for DJVU... " >&6; }
28989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28990$as_echo "" >&6; }
28991    failed=0
28992    passed=0
28993    ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28994if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28995  passed=`expr $passed + 1`
28996else
28997  failed=`expr $failed + 1`
28998fi
28999
29000
29001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29002$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29003if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29004  $as_echo_n "(cached) " >&6
29005else
29006  ac_check_lib_save_LIBS=$LIBS
29007LIBS="-ldjvulibre  $LIBS"
29008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29009/* end confdefs.h.  */
29010
29011/* Override any GCC internal prototype to avoid an error.
29012   Use char because int might match the return type of a GCC
29013   builtin and then its argument prototype would still apply.  */
29014#ifdef __cplusplus
29015extern "C"
29016#endif
29017char ddjvu_context_create ();
29018int
29019main ()
29020{
29021return ddjvu_context_create ();
29022  ;
29023  return 0;
29024}
29025_ACEOF
29026if ac_fn_c_try_link "$LINENO"; then :
29027  ac_cv_lib_djvulibre_ddjvu_context_create=yes
29028else
29029  ac_cv_lib_djvulibre_ddjvu_context_create=no
29030fi
29031rm -f core conftest.err conftest.$ac_objext \
29032    conftest$ac_exeext conftest.$ac_ext
29033LIBS=$ac_check_lib_save_LIBS
29034fi
29035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29036$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29037if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29038  passed=`expr $passed + 1`
29039else
29040  failed=`expr $failed + 1`
29041fi
29042
29043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29044$as_echo_n "checking if DJVU package is complete... " >&6; }
29045    if test $passed -gt 0; then
29046        if test $failed -gt 0; then
29047            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29048$as_echo "no -- some components failed test" >&6; }
29049            have_djvu='no (failed tests)'
29050        else
29051            DJVU_LIBS='-ldjvulibre'
29052            LIBS="$DJVU_LIBS $LIBS"
29053
29054$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29055
29056            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29057$as_echo "yes" >&6; }
29058            have_djvu='yes'
29059        fi
29060    else
29061        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29062$as_echo "no" >&6; }
29063    fi
29064fi
29065 if test "$have_djvu" = 'yes'; then
29066  DJVU_DELEGATE_TRUE=
29067  DJVU_DELEGATE_FALSE='#'
29068else
29069  DJVU_DELEGATE_TRUE='#'
29070  DJVU_DELEGATE_FALSE=
29071fi
29072
29073
29074
29075
29076#
29077# Check for fontconfig delegate library.
29078#
29079
29080# Check whether --with-fontconfig was given.
29081if test "${with_fontconfig+set}" = set; then :
29082  withval=$with_fontconfig; with_fontconfig=$withval
29083else
29084  with_fontconfig='yes'
29085fi
29086
29087
29088if test "$with_fontconfig" != 'yes'; then
29089    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29090fi
29091
29092have_fontconfig='no'
29093FONTCONFIG_CFLAGS=""
29094FONTCONFIG_LIBS=""
29095FONTCONFIG_PKG=""
29096if test "x$with_fontconfig" = "xyes"; then
29097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29098$as_echo "-------------------------------------------------------------" >&6; }
29099
29100pkg_failed=no
29101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29102$as_echo_n "checking for FONTCONFIG... " >&6; }
29103
29104if test -n "$FONTCONFIG_CFLAGS"; then
29105    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29106 elif test -n "$PKG_CONFIG"; then
29107    if test -n "$PKG_CONFIG" && \
29108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29109  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29110  ac_status=$?
29111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29112  test $ac_status = 0; }; then
29113  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29114else
29115  pkg_failed=yes
29116fi
29117 else
29118    pkg_failed=untried
29119fi
29120if test -n "$FONTCONFIG_LIBS"; then
29121    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29122 elif test -n "$PKG_CONFIG"; then
29123    if test -n "$PKG_CONFIG" && \
29124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29125  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29126  ac_status=$?
29127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29128  test $ac_status = 0; }; then
29129  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29130else
29131  pkg_failed=yes
29132fi
29133 else
29134    pkg_failed=untried
29135fi
29136
29137
29138
29139if test $pkg_failed = yes; then
29140
29141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29142        _pkg_short_errors_supported=yes
29143else
29144        _pkg_short_errors_supported=no
29145fi
29146        if test $_pkg_short_errors_supported = yes; then
29147	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29148        else
29149	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29150        fi
29151	# Put the nasty error message in config.log where it belongs
29152	echo "$FONTCONFIG_PKG_ERRORS" >&5
29153
29154	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29155$as_echo "no" >&6; }
29156                have_fontconfig=no
29157elif test $pkg_failed = untried; then
29158	have_fontconfig=no
29159else
29160	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29161	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29163$as_echo "yes" >&6; }
29164	have_fontconfig=yes
29165fi
29166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29167$as_echo "" >&6; }
29168fi
29169
29170if test "$have_fontconfig" = 'yes'; then
29171
29172$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
29173
29174  if test "$build_modules" = 'no'; then
29175    CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
29176  fi
29177fi
29178
29179 if test "$have_fontconfig" = 'yes'; then
29180  FONTCONFIG_DELEGATE_TRUE=
29181  FONTCONFIG_DELEGATE_FALSE='#'
29182else
29183  FONTCONFIG_DELEGATE_TRUE='#'
29184  FONTCONFIG_DELEGATE_FALSE=
29185fi
29186
29187
29188
29189
29190
29191#
29192# Check for the Freetype delegate library.
29193#
29194
29195# Check whether --with-freetype was given.
29196if test "${with_freetype+set}" = set; then :
29197  withval=$with_freetype; with_freetype=$withval
29198else
29199  with_freetype='yes'
29200fi
29201
29202
29203if test "$with_freetype" != 'yes'; then
29204    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29205fi
29206
29207have_freetype='no'
29208FREETYPE_CFLAGS=""
29209FREETYPE_LIBS=""
29210FREETYPE_PKG=""
29211if test "x$with_freetype" = "xyes"; then
29212    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29213$as_echo "-------------------------------------------------------------" >&6; }
29214
29215pkg_failed=no
29216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29217$as_echo_n "checking for FREETYPE... " >&6; }
29218
29219if test -n "$FREETYPE_CFLAGS"; then
29220    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29221 elif test -n "$PKG_CONFIG"; then
29222    if test -n "$PKG_CONFIG" && \
29223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29224  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29225  ac_status=$?
29226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29227  test $ac_status = 0; }; then
29228  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29229else
29230  pkg_failed=yes
29231fi
29232 else
29233    pkg_failed=untried
29234fi
29235if test -n "$FREETYPE_LIBS"; then
29236    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29237 elif test -n "$PKG_CONFIG"; then
29238    if test -n "$PKG_CONFIG" && \
29239    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29240  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29241  ac_status=$?
29242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29243  test $ac_status = 0; }; then
29244  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29245else
29246  pkg_failed=yes
29247fi
29248 else
29249    pkg_failed=untried
29250fi
29251
29252
29253
29254if test $pkg_failed = yes; then
29255
29256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29257        _pkg_short_errors_supported=yes
29258else
29259        _pkg_short_errors_supported=no
29260fi
29261        if test $_pkg_short_errors_supported = yes; then
29262	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29263        else
29264	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29265        fi
29266	# Put the nasty error message in config.log where it belongs
29267	echo "$FREETYPE_PKG_ERRORS" >&5
29268
29269	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29270$as_echo "no" >&6; }
29271                have_freetype=no
29272elif test $pkg_failed = untried; then
29273	have_freetype=no
29274else
29275	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29276	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29277        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29278$as_echo "yes" >&6; }
29279	have_freetype=yes
29280fi
29281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29282$as_echo "" >&6; }
29283fi
29284
29285if test "$have_freetype" = 'yes'; then
29286
29287$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
29288
29289    CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
29290fi
29291
29292 if test "$have_freetype" = 'yes'; then
29293  FREETYPE_DELEGATE_TRUE=
29294  FREETYPE_DELEGATE_FALSE='#'
29295else
29296  FREETYPE_DELEGATE_TRUE='#'
29297  FREETYPE_DELEGATE_FALSE=
29298fi
29299
29300
29301
29302
29303
29304#
29305# Check for Ghostscript library or framework.
29306#
29307# Test for iapi.h & test for gsapi_new_instance in -lgs
29308# or -framework Ghostscript
29309
29310
29311# Check whether --with-gslib was given.
29312if test "${with_gslib+set}" = set; then :
29313  withval=$with_gslib; with_gslib=$withval
29314else
29315  with_gslib='no'
29316fi
29317
29318
29319gslib_framework='no'
29320if test "$with_gslib" != 'yes'; then
29321    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29322fi
29323
29324have_gslib='no'
29325GS_LIBS=''
29326if test "$with_gslib" != 'no'; then
29327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29328$as_echo "-------------------------------------------------------------" >&6; }
29329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
29330$as_echo_n "checking for Ghostscript... " >&6; }
29331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29332$as_echo "" >&6; }
29333    framework=0
29334    failed=0
29335    passed=0
29336    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
29337if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
29338  passed=`expr $passed + 1`
29339else
29340  failed=`expr $failed + 1`
29341fi
29342
29343
29344    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
29345if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
29346  passed=`expr $passed + 1`
29347else
29348  failed=`expr $failed + 1`
29349fi
29350
29351
29352    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29353$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
29354if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
29355  $as_echo_n "(cached) " >&6
29356else
29357  ac_check_framework_save_LIBS=$LIBS
29358LIBS="-framework Ghostscript  $LIBS"
29359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360/* end confdefs.h.  */
29361
29362/* Override any GCC internal prototype to avoid an error.
29363   Use char because int might match the return type of a GCC
29364   builtin and then its argument prototype would still apply.  */
29365#ifdef __cplusplus
29366extern "C"
29367#endif
29368char gsapi_new_instance ();
29369int
29370main ()
29371{
29372return gsapi_new_instance ();
29373  ;
29374  return 0;
29375}
29376_ACEOF
29377if ac_fn_c_try_link "$LINENO"; then :
29378  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29379else
29380  ac_cv_framework_Ghostscript_gsapi_new_instance=no
29381fi
29382rm -f core conftest.err conftest.$ac_objext \
29383    conftest$ac_exeext conftest.$ac_ext
29384LIBS=$ac_check_framework_save_LIBS
29385fi
29386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29387$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29388if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29389  framework=`expr $framework + 1`
29390else
29391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29392$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29393if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29394  $as_echo_n "(cached) " >&6
29395else
29396  ac_check_lib_save_LIBS=$LIBS
29397LIBS="-lgs  $LIBS"
29398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29399/* end confdefs.h.  */
29400
29401/* Override any GCC internal prototype to avoid an error.
29402   Use char because int might match the return type of a GCC
29403   builtin and then its argument prototype would still apply.  */
29404#ifdef __cplusplus
29405extern "C"
29406#endif
29407char gsapi_new_instance ();
29408int
29409main ()
29410{
29411return gsapi_new_instance ();
29412  ;
29413  return 0;
29414}
29415_ACEOF
29416if ac_fn_c_try_link "$LINENO"; then :
29417  ac_cv_lib_gs_gsapi_new_instance=yes
29418else
29419  ac_cv_lib_gs_gsapi_new_instance=no
29420fi
29421rm -f core conftest.err conftest.$ac_objext \
29422    conftest$ac_exeext conftest.$ac_ext
29423LIBS=$ac_check_lib_save_LIBS
29424fi
29425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29426$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29427if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29428  passed=`expr $passed + 1`
29429else
29430  failed=`expr $failed + 1`
29431fi
29432
29433fi
29434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29435$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29436    if test $passed -gt 0; then
29437        if test $failed -gt 0; then
29438            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29439$as_echo "no -- some components failed test" >&6; }
29440            have_gslib='no (failed tests)'
29441        else
29442            if test $framework -gt 0; then
29443                GS_LIBS='-framework Ghostscript'
29444                gslib_framework='yes'
29445                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29446$as_echo "yes, using framework." >&6; }
29447            else
29448                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29449$as_echo "yes, using library." >&6; }
29450                GS_LIBS='-lgs'
29451            fi
29452            LIBS="$GS_LIBS $LIBS"
29453
29454$as_echo "#define GS_DELEGATE 1" >>confdefs.h
29455
29456            have_gslib='yes'
29457        fi
29458    else
29459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29460$as_echo "no" >&6; }
29461    fi
29462fi
29463 if test "$have_gslib" = 'yes'; then
29464  GS_DELEGATE_TRUE=
29465  GS_DELEGATE_FALSE='#'
29466else
29467  GS_DELEGATE_TRUE='#'
29468  GS_DELEGATE_FALSE=
29469fi
29470
29471
29472
29473# Set default font search path
29474
29475# Check whether --with-fontpath was given.
29476if test "${with_fontpath+set}" = set; then :
29477  withval=$with_fontpath; with_fontpath=$withval
29478else
29479  with_fontpath=''
29480fi
29481
29482
29483if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29484    with_fontpath=''
29485else
29486
29487cat >>confdefs.h <<_ACEOF
29488#define MAGICK_FONT_PATH "$with_fontpath"
29489_ACEOF
29490
29491fi
29492if test "$with_fontpath=" != ''; then
29493    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29494fi
29495
29496# Set Ghostscript font directory
29497
29498# Check whether --with-gs-font-dir was given.
29499if test "${with_gs_font_dir+set}" = set; then :
29500  withval=$with_gs_font_dir; with_gs_font_dir=$withval
29501else
29502  with_gs_font_dir='default'
29503fi
29504
29505
29506if test "$with_gs_font_dir" != 'default'; then
29507    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29508fi
29509
29510
29511#
29512# Check for GVC delegate library.
29513#
29514
29515# Check whether --with-gvc was given.
29516if test "${with_gvc+set}" = set; then :
29517  withval=$with_gvc; with_gvc=$withval
29518else
29519  with_gvc='no'
29520fi
29521
29522
29523if test "$with_gvc" != 'yes'; then
29524    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29525fi
29526
29527GVC_PKG=""
29528if test "x$with_gvc" = "xyes"; then
29529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29530$as_echo "-------------------------------------------------------------" >&6; }
29531
29532pkg_failed=no
29533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29534$as_echo_n "checking for GVC... " >&6; }
29535
29536if test -n "$GVC_CFLAGS"; then
29537    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29538 elif test -n "$PKG_CONFIG"; then
29539    if test -n "$PKG_CONFIG" && \
29540    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29541  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29542  ac_status=$?
29543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29544  test $ac_status = 0; }; then
29545  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29546else
29547  pkg_failed=yes
29548fi
29549 else
29550    pkg_failed=untried
29551fi
29552if test -n "$GVC_LIBS"; then
29553    pkg_cv_GVC_LIBS="$GVC_LIBS"
29554 elif test -n "$PKG_CONFIG"; then
29555    if test -n "$PKG_CONFIG" && \
29556    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29557  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29558  ac_status=$?
29559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29560  test $ac_status = 0; }; then
29561  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29562else
29563  pkg_failed=yes
29564fi
29565 else
29566    pkg_failed=untried
29567fi
29568
29569
29570
29571if test $pkg_failed = yes; then
29572
29573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29574        _pkg_short_errors_supported=yes
29575else
29576        _pkg_short_errors_supported=no
29577fi
29578        if test $_pkg_short_errors_supported = yes; then
29579	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29580        else
29581	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29582        fi
29583	# Put the nasty error message in config.log where it belongs
29584	echo "$GVC_PKG_ERRORS" >&5
29585
29586	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29587$as_echo "no" >&6; }
29588                have_gvc=no
29589elif test $pkg_failed = untried; then
29590	have_gvc=no
29591else
29592	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29593	GVC_LIBS=$pkg_cv_GVC_LIBS
29594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29595$as_echo "yes" >&6; }
29596	have_gvc=yes
29597fi
29598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29599$as_echo "" >&6; }
29600fi
29601
29602if test "$have_gvc" = 'yes'; then
29603
29604$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29605
29606    if test "$build_modules" = 'no'; then
29607        CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29608    fi
29609fi
29610
29611 if test "$have_gvc" = 'yes'; then
29612  GVC_DELEGATE_TRUE=
29613  GVC_DELEGATE_FALSE='#'
29614else
29615  GVC_DELEGATE_TRUE='#'
29616  GVC_DELEGATE_FALSE=
29617fi
29618
29619
29620
29621
29622
29623#
29624# Check for JBIG delegate library.
29625#
29626
29627
29628# Check whether --with-jbig was given.
29629if test "${with_jbig+set}" = set; then :
29630  withval=$with_jbig; with_jbig=$withval
29631else
29632  with_jbig='yes'
29633fi
29634
29635
29636have_jbig='no'
29637JBIG_LIBS=''
29638if test "$with_jbig" != 'no'; then
29639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29640$as_echo "-------------------------------------------------------------" >&6; }
29641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29642$as_echo_n "checking for JBIG... " >&6; }
29643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29644$as_echo "" >&6; }
29645    failed=0
29646    passed=0
29647    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29648if test "x$ac_cv_header_jbig_h" = xyes; then :
29649  passed=`expr $passed + 1`
29650else
29651  failed=`expr $failed + 1`
29652fi
29653
29654
29655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29656$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29657if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29658  $as_echo_n "(cached) " >&6
29659else
29660  ac_check_lib_save_LIBS=$LIBS
29661LIBS="-ljbig  $LIBS"
29662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29663/* end confdefs.h.  */
29664
29665/* Override any GCC internal prototype to avoid an error.
29666   Use char because int might match the return type of a GCC
29667   builtin and then its argument prototype would still apply.  */
29668#ifdef __cplusplus
29669extern "C"
29670#endif
29671char jbg_dec_init ();
29672int
29673main ()
29674{
29675return jbg_dec_init ();
29676  ;
29677  return 0;
29678}
29679_ACEOF
29680if ac_fn_c_try_link "$LINENO"; then :
29681  ac_cv_lib_jbig_jbg_dec_init=yes
29682else
29683  ac_cv_lib_jbig_jbg_dec_init=no
29684fi
29685rm -f core conftest.err conftest.$ac_objext \
29686    conftest$ac_exeext conftest.$ac_ext
29687LIBS=$ac_check_lib_save_LIBS
29688fi
29689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29690$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29691if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29692  passed=`expr $passed + 1`
29693else
29694  failed=`expr $failed + 1`
29695fi
29696
29697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29698$as_echo_n "checking if JBIG package is complete... " >&6; }
29699    if test $passed -gt 0; then
29700        if test $failed -gt 0; then
29701            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29702$as_echo "no -- some components failed test" >&6; }
29703            have_jbig='no (failed tests)'
29704        else
29705            JBIG_LIBS='-ljbig'
29706            LIBS="$JBIG_LIBS $LIBS"
29707
29708$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29709
29710            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29711$as_echo "yes" >&6; }
29712            have_jbig='yes'
29713        fi
29714    else
29715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29716$as_echo "no" >&6; }
29717    fi
29718fi
29719 if test "$have_jbig" = 'yes'; then
29720  JBIG_DELEGATE_TRUE=
29721  JBIG_DELEGATE_FALSE='#'
29722else
29723  JBIG_DELEGATE_TRUE='#'
29724  JBIG_DELEGATE_FALSE=
29725fi
29726
29727
29728
29729
29730#
29731# Check for JPEG delegate library.
29732#
29733
29734# Check whether --with-jpeg was given.
29735if test "${with_jpeg+set}" = set; then :
29736  withval=$with_jpeg; with_jpeg=$withval
29737else
29738  with_jpeg='yes'
29739fi
29740
29741
29742if test "$with_jpeg" != 'yes'; then
29743    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29744fi
29745
29746have_jpeg='no'
29747JPEG_LIBS=''
29748if test "$with_jpeg" != 'no'; then
29749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29750$as_echo "-------------------------------------------------------------" >&6; }
29751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29752$as_echo_n "checking for JPEG... " >&6; }
29753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29754$as_echo "" >&6; }
29755    failed=0
29756    passed=0
29757    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29758if test "x$ac_cv_header_jconfig_h" = xyes; then :
29759  passed=`expr $passed + 1`
29760else
29761  failed=`expr $failed + 1`
29762fi
29763
29764
29765    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29766if test "x$ac_cv_header_jerror_h" = xyes; then :
29767  passed=`expr $passed + 1`
29768else
29769  failed=`expr $failed + 1`
29770fi
29771
29772
29773    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29774if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29775  passed=`expr $passed + 1`
29776else
29777  failed=`expr $failed + 1`
29778fi
29779
29780
29781    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29782if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29783  passed=`expr $passed + 1`
29784else
29785  failed=`expr $failed + 1`
29786fi
29787
29788
29789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29790$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29791if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29792  $as_echo_n "(cached) " >&6
29793else
29794  ac_check_lib_save_LIBS=$LIBS
29795LIBS="-ljpeg  $LIBS"
29796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29797/* end confdefs.h.  */
29798
29799/* Override any GCC internal prototype to avoid an error.
29800   Use char because int might match the return type of a GCC
29801   builtin and then its argument prototype would still apply.  */
29802#ifdef __cplusplus
29803extern "C"
29804#endif
29805char jpeg_read_header ();
29806int
29807main ()
29808{
29809return jpeg_read_header ();
29810  ;
29811  return 0;
29812}
29813_ACEOF
29814if ac_fn_c_try_link "$LINENO"; then :
29815  ac_cv_lib_jpeg_jpeg_read_header=yes
29816else
29817  ac_cv_lib_jpeg_jpeg_read_header=no
29818fi
29819rm -f core conftest.err conftest.$ac_objext \
29820    conftest$ac_exeext conftest.$ac_ext
29821LIBS=$ac_check_lib_save_LIBS
29822fi
29823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29824$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29825if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29826  passed=`expr $passed + 1`
29827else
29828  failed=`expr $failed + 1`
29829fi
29830
29831
29832# Test for compatible JPEG library
29833if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29835$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29836if ${ac_cv_jpeg_version_ok+:} false; then :
29837  $as_echo_n "(cached) " >&6
29838else
29839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29840/* end confdefs.h.  */
29841#include <stdio.h>
29842#include <stdlib.h>
29843#include <jpeglib.h>
29844
29845int
29846main ()
29847{
29848
29849#if JPEG_LIB_VERSION < 62
29850#error IJG JPEG library must be version 6b or newer!
29851#endif
29852return 0;
29853
29854  ;
29855  return 0;
29856}
29857_ACEOF
29858if ac_fn_c_try_compile "$LINENO"; then :
29859  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29860else
29861  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29862fi
29863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864fi
29865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29866$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29867fi
29868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29869$as_echo_n "checking if JPEG package is complete... " >&6; }
29870    if test $passed -gt 0; then
29871        if test $failed -gt 0; then
29872            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29873$as_echo "no -- some components failed test" >&6; }
29874            have_jpeg='no (failed tests)'
29875        else
29876            JPEG_LIBS='-ljpeg'
29877            LIBS="$JPEG_LIBS $LIBS"
29878
29879$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29880
29881            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29882$as_echo "yes" >&6; }
29883            have_jpeg='yes'
29884        fi
29885    else
29886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29887$as_echo "no" >&6; }
29888    fi
29889fi
29890 if test "$have_jpeg" = 'yes'; then
29891  JPEG_DELEGATE_TRUE=
29892  JPEG_DELEGATE_FALSE='#'
29893else
29894  JPEG_DELEGATE_TRUE='#'
29895  JPEG_DELEGATE_FALSE=
29896fi
29897
29898
29899
29900
29901#
29902# Check for LCMS delegate library.
29903#
29904# Disable LCMS.
29905
29906# Check whether --with-lcms was given.
29907if test "${with_lcms+set}" = set; then :
29908  withval=$with_lcms; with_lcms=$withval
29909else
29910  with_lcms='yes'
29911fi
29912
29913if test "$with_lcms" != 'yes' ; then
29914    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29915fi
29916
29917# Disable LCMS2.
29918
29919# Check whether --with-lcms2 was given.
29920if test "${with_lcms2+set}" = set; then :
29921  withval=$with_lcms2; with_lcms2=$withval
29922else
29923  with_lcms2='yes'
29924fi
29925
29926if test "$with_lcms2" != 'yes' ; then
29927    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29928fi
29929
29930have_lcms2='no'
29931LCMS_LIBS=''
29932if test "$with_lcms2" != 'no'; then
29933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29934$as_echo "-------------------------------------------------------------" >&6; }
29935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29936$as_echo_n "checking for LCMS v2... " >&6; }
29937    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29938$as_echo "" >&6; }
29939    failed=0
29940    passed=0
29941    have_lcms_header='no'
29942
29943    # Check for <lcms2.h>
29944    ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29945if test "x$ac_cv_header_lcms2_h" = xyes; then :
29946  have_lcms_header='yes'
29947fi
29948
29949
29950    if test "$have_lcms_header" = 'yes'; then
29951
29952$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29953
29954       passed=`expr $passed + 1`
29955    fi
29956
29957    # Check for <lcms2/lcms2.h)
29958    if test "$have_lcms_header" != 'yes'; then
29959      ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29960if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29961  have_lcms_header='yes'
29962fi
29963
29964
29965      if test "$have_lcms_header" = 'yes'; then
29966        passed=`expr $passed + 1`
29967
29968$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29969
29970      fi
29971    fi
29972
29973    # Failed to find lcms header?
29974    if test "$have_lcms_header" != 'yes'; then
29975      failed=`expr $failed + 1`
29976    fi
29977
29978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29979$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29980if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29981  $as_echo_n "(cached) " >&6
29982else
29983  ac_check_lib_save_LIBS=$LIBS
29984LIBS="-llcms2  $LIBS"
29985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29986/* end confdefs.h.  */
29987
29988/* Override any GCC internal prototype to avoid an error.
29989   Use char because int might match the return type of a GCC
29990   builtin and then its argument prototype would still apply.  */
29991#ifdef __cplusplus
29992extern "C"
29993#endif
29994char cmsSetLogErrorHandler ();
29995int
29996main ()
29997{
29998return cmsSetLogErrorHandler ();
29999  ;
30000  return 0;
30001}
30002_ACEOF
30003if ac_fn_c_try_link "$LINENO"; then :
30004  ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
30005else
30006  ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
30007fi
30008rm -f core conftest.err conftest.$ac_objext \
30009    conftest$ac_exeext conftest.$ac_ext
30010LIBS=$ac_check_lib_save_LIBS
30011fi
30012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30013$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
30014if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
30015  passed=`expr $passed + 1`
30016else
30017  failed=`expr $failed + 1`
30018fi
30019
30020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30021$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
30022    if test $passed -gt 0; then
30023      if test $failed -gt 0; then
30024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30025$as_echo "no -- some components failed test" >&6; }
30026        have_lcms2='no (failed tests)'
30027      else
30028        LCMS_LIBS='-llcms2'
30029        LIBS="$LCMS_LIBS $LIBS"
30030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30031$as_echo "yes" >&6; }
30032        have_lcms2='yes'
30033      fi
30034    else
30035      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30036$as_echo "no" >&6; }
30037    fi
30038fi
30039
30040#
30041# Check for LCMS v1 (1.11 or later)
30042#
30043if test $have_lcms2 = 'yes'; then
30044  with_lcms='no'
30045fi
30046
30047have_lcms='no'
30048if test "$with_lcms" != 'no'; then
30049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30050$as_echo "-------------------------------------------------------------" >&6; }
30051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30052$as_echo_n "checking for LCMS v1.1X... " >&6; }
30053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30054$as_echo "" >&6; }
30055    failed=0
30056    passed=0
30057    have_lcms_header='no'
30058
30059    # Check for <lcms.h>
30060    if test "$have_lcms_header" != 'yes'; then
30061      ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
30062if test "x$ac_cv_header_lcms_h" = xyes; then :
30063  have_lcms_header='yes'
30064fi
30065
30066
30067      if test "$have_lcms_header" = 'yes'; then
30068        passed=`expr $passed + 1`
30069
30070$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
30071
30072      fi
30073    fi
30074
30075    # Check for <lcms/lcms.h>
30076    if test "$have_lcms_header" != 'yes'; then
30077      ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30078if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30079  have_lcms_header='yes'
30080fi
30081
30082
30083      if test "$have_lcms_header" = 'yes'; then
30084        passed=`expr $passed + 1`
30085
30086$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30087
30088      fi
30089    fi
30090
30091    # Failed to find lcms header?
30092    if test "$have_lcms_header" != 'yes'; then
30093      failed=`expr $failed + 1`
30094    fi
30095
30096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30097$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
30098if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
30099  $as_echo_n "(cached) " >&6
30100else
30101  ac_check_lib_save_LIBS=$LIBS
30102LIBS="-llcms  $LIBS"
30103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30104/* end confdefs.h.  */
30105
30106/* Override any GCC internal prototype to avoid an error.
30107   Use char because int might match the return type of a GCC
30108   builtin and then its argument prototype would still apply.  */
30109#ifdef __cplusplus
30110extern "C"
30111#endif
30112char cmsSetErrorHandler ();
30113int
30114main ()
30115{
30116return cmsSetErrorHandler ();
30117  ;
30118  return 0;
30119}
30120_ACEOF
30121if ac_fn_c_try_link "$LINENO"; then :
30122  ac_cv_lib_lcms_cmsSetErrorHandler=yes
30123else
30124  ac_cv_lib_lcms_cmsSetErrorHandler=no
30125fi
30126rm -f core conftest.err conftest.$ac_objext \
30127    conftest$ac_exeext conftest.$ac_ext
30128LIBS=$ac_check_lib_save_LIBS
30129fi
30130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30131$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
30132if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
30133  passed=`expr $passed + 1`
30134else
30135  failed=`expr $failed + 1`
30136fi
30137
30138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
30139$as_echo_n "checking if LCMS package is complete... " >&6; }
30140    if test $passed -gt 0; then
30141      if test $failed -gt 0; then
30142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30143$as_echo "no -- some components failed test" >&6; }
30144        have_lcms='no (failed tests)'
30145      else
30146        LCMS_LIBS='-llcms'
30147        LIBS="$LCMS_LIBS $LIBS"
30148        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30149$as_echo "yes" >&6; }
30150        have_lcms='yes'
30151      fi
30152    else
30153      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30154$as_echo "no" >&6; }
30155    fi
30156fi
30157
30158 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30159  LCMS_DELEGATE_TRUE=
30160  LCMS_DELEGATE_FALSE='#'
30161else
30162  LCMS_DELEGATE_TRUE='#'
30163  LCMS_DELEGATE_FALSE=
30164fi
30165
30166if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30167
30168$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30169
30170fi
30171
30172
30173
30174
30175#
30176# Check for the OpenJP2 delegate library.
30177#
30178
30179# Check whether --with-openjp2 was given.
30180if test "${with_openjp2+set}" = set; then :
30181  withval=$with_openjp2; with_openjp2=$withval
30182else
30183  with_openjp2='yes'
30184fi
30185
30186
30187if test "$with_openjp2" != 'yes'; then
30188    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30189fi
30190
30191have_openjp2='no'
30192LIBOPENJP2_CFLAGS=""
30193LIBOPENJP2_LIBS=""
30194LIBOPENJP2_PKG=""
30195if test "x$with_openjp2" = "xyes"; then
30196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30197$as_echo "-------------------------------------------------------------" >&6; }
30198
30199pkg_failed=no
30200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30201$as_echo_n "checking for LIBOPENJP2... " >&6; }
30202
30203if test -n "$LIBOPENJP2_CFLAGS"; then
30204    pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30205 elif test -n "$PKG_CONFIG"; then
30206    if test -n "$PKG_CONFIG" && \
30207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30208  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
30209  ac_status=$?
30210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30211  test $ac_status = 0; }; then
30212  pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
30213else
30214  pkg_failed=yes
30215fi
30216 else
30217    pkg_failed=untried
30218fi
30219if test -n "$LIBOPENJP2_LIBS"; then
30220    pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30221 elif test -n "$PKG_CONFIG"; then
30222    if test -n "$PKG_CONFIG" && \
30223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30224  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
30225  ac_status=$?
30226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30227  test $ac_status = 0; }; then
30228  pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
30229else
30230  pkg_failed=yes
30231fi
30232 else
30233    pkg_failed=untried
30234fi
30235
30236
30237
30238if test $pkg_failed = yes; then
30239
30240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30241        _pkg_short_errors_supported=yes
30242else
30243        _pkg_short_errors_supported=no
30244fi
30245        if test $_pkg_short_errors_supported = yes; then
30246	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
30247        else
30248	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
30249        fi
30250	# Put the nasty error message in config.log where it belongs
30251	echo "$LIBOPENJP2_PKG_ERRORS" >&5
30252
30253	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30254$as_echo "no" >&6; }
30255                have_openjp2=no
30256elif test $pkg_failed = untried; then
30257	have_openjp2=no
30258else
30259	LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30260	LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30261        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30262$as_echo "yes" >&6; }
30263	have_openjp2=yes
30264fi
30265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30266$as_echo "" >&6; }
30267fi
30268
30269if test "$have_openjp2" = 'yes'; then
30270
30271$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30272
30273    if test "$build_modules" = 'no'; then
30274        CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30275    fi
30276fi
30277
30278 if test "$have_openjp2" = 'yes'; then
30279  LIBOPENJP2_DELEGATE_TRUE=
30280  LIBOPENJP2_DELEGATE_FALSE='#'
30281else
30282  LIBOPENJP2_DELEGATE_TRUE='#'
30283  LIBOPENJP2_DELEGATE_FALSE=
30284fi
30285
30286
30287
30288
30289
30290
30291#
30292# Check for the LQR (Liquid Rescale) delegate library.
30293#
30294
30295# Check whether --with-lqr was given.
30296if test "${with_lqr+set}" = set; then :
30297  withval=$with_lqr; with_lqr=$withval
30298else
30299  with_lqr='yes'
30300fi
30301
30302
30303if test "$with_lqr" != 'yes'; then
30304    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30305fi
30306
30307have_lqr='no'
30308LQR_CFLAGS=""
30309LQR_LIBS=""
30310LQR_PKG=""
30311if test "x$with_lqr" = "xyes"; then
30312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30313$as_echo "-------------------------------------------------------------" >&6; }
30314
30315pkg_failed=no
30316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30317$as_echo_n "checking for LQR... " >&6; }
30318
30319if test -n "$LQR_CFLAGS"; then
30320    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30321 elif test -n "$PKG_CONFIG"; then
30322    if test -n "$PKG_CONFIG" && \
30323    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30324  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30325  ac_status=$?
30326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30327  test $ac_status = 0; }; then
30328  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30329else
30330  pkg_failed=yes
30331fi
30332 else
30333    pkg_failed=untried
30334fi
30335if test -n "$LQR_LIBS"; then
30336    pkg_cv_LQR_LIBS="$LQR_LIBS"
30337 elif test -n "$PKG_CONFIG"; then
30338    if test -n "$PKG_CONFIG" && \
30339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30340  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30341  ac_status=$?
30342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30343  test $ac_status = 0; }; then
30344  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30345else
30346  pkg_failed=yes
30347fi
30348 else
30349    pkg_failed=untried
30350fi
30351
30352
30353
30354if test $pkg_failed = yes; then
30355
30356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30357        _pkg_short_errors_supported=yes
30358else
30359        _pkg_short_errors_supported=no
30360fi
30361        if test $_pkg_short_errors_supported = yes; then
30362	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30363        else
30364	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30365        fi
30366	# Put the nasty error message in config.log where it belongs
30367	echo "$LQR_PKG_ERRORS" >&5
30368
30369	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30370$as_echo "no" >&6; }
30371                have_lqr=no
30372elif test $pkg_failed = untried; then
30373	have_lqr=no
30374else
30375	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30376	LQR_LIBS=$pkg_cv_LQR_LIBS
30377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30378$as_echo "yes" >&6; }
30379	have_lqr=yes
30380fi
30381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30382$as_echo "" >&6; }
30383fi
30384
30385if test "$have_lqr" = 'yes'; then
30386
30387$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30388
30389    CFLAGS="$LQR_CFLAGS $CFLAGS"
30390fi
30391
30392 if test "$have_lqr" = 'yes'; then
30393  LQR_DELEGATE_TRUE=
30394  LQR_DELEGATE_FALSE='#'
30395else
30396  LQR_DELEGATE_TRUE='#'
30397  LQR_DELEGATE_FALSE=
30398fi
30399
30400
30401
30402
30403
30404# Disable LZMA (lzma library)
30405
30406# Check whether --with-lzma was given.
30407if test "${with_lzma+set}" = set; then :
30408  withval=$with_lzma; with_lzma=$withval
30409else
30410  with_lzma='yes'
30411fi
30412
30413if test "$with_lzma" != 'yes' ; then
30414    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30415fi
30416
30417LZMA_PKG=""
30418if test "x$with_lzma" = "xyes"; then
30419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30420$as_echo "-------------------------------------------------------------" >&6; }
30421
30422pkg_failed=no
30423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30424$as_echo_n "checking for LZMA... " >&6; }
30425
30426if test -n "$LZMA_CFLAGS"; then
30427    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30428 elif test -n "$PKG_CONFIG"; then
30429    if test -n "$PKG_CONFIG" && \
30430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30431  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30432  ac_status=$?
30433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30434  test $ac_status = 0; }; then
30435  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30436else
30437  pkg_failed=yes
30438fi
30439 else
30440    pkg_failed=untried
30441fi
30442if test -n "$LZMA_LIBS"; then
30443    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30444 elif test -n "$PKG_CONFIG"; then
30445    if test -n "$PKG_CONFIG" && \
30446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30447  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30448  ac_status=$?
30449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30450  test $ac_status = 0; }; then
30451  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30452else
30453  pkg_failed=yes
30454fi
30455 else
30456    pkg_failed=untried
30457fi
30458
30459
30460
30461if test $pkg_failed = yes; then
30462
30463if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30464        _pkg_short_errors_supported=yes
30465else
30466        _pkg_short_errors_supported=no
30467fi
30468        if test $_pkg_short_errors_supported = yes; then
30469	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30470        else
30471	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30472        fi
30473	# Put the nasty error message in config.log where it belongs
30474	echo "$LZMA_PKG_ERRORS" >&5
30475
30476	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30477$as_echo "no" >&6; }
30478                have_lzma=no
30479elif test $pkg_failed = untried; then
30480	have_lzma=no
30481else
30482	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30483	LZMA_LIBS=$pkg_cv_LZMA_LIBS
30484        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30485$as_echo "yes" >&6; }
30486	have_lzma=yes
30487fi
30488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30489$as_echo "" >&6; }
30490fi
30491
30492if test "$have_lzma" = 'yes'; then
30493
30494$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30495
30496    if test "$build_modules" = 'no'; then
30497        CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
30498    fi
30499fi
30500
30501 if test "$have_lzma" = 'yes'; then
30502  LZMA_DELEGATE_TRUE=
30503  LZMA_DELEGATE_FALSE='#'
30504else
30505  LZMA_DELEGATE_TRUE='#'
30506  LZMA_DELEGATE_FALSE=
30507fi
30508
30509
30510
30511
30512
30513#
30514# Check for the OpenEXR delegate library.
30515#
30516
30517# Check whether --with-openexr was given.
30518if test "${with_openexr+set}" = set; then :
30519  withval=$with_openexr; with_openexr=$withval
30520else
30521  with_openexr='yes'
30522fi
30523
30524
30525if test "$with_openexr" != 'yes'; then
30526    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30527fi
30528
30529have_openexr='no'
30530OPENEXR_CFLAGS=""
30531OPENEXR_LIBS=""
30532OPENEXR_PKG=""
30533if test "x$with_openexr" = "xyes"; then
30534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30535$as_echo "-------------------------------------------------------------" >&6; }
30536
30537pkg_failed=no
30538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30539$as_echo_n "checking for OPENEXR... " >&6; }
30540
30541if test -n "$OPENEXR_CFLAGS"; then
30542    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30543 elif test -n "$PKG_CONFIG"; then
30544    if test -n "$PKG_CONFIG" && \
30545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30546  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30547  ac_status=$?
30548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30549  test $ac_status = 0; }; then
30550  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30551else
30552  pkg_failed=yes
30553fi
30554 else
30555    pkg_failed=untried
30556fi
30557if test -n "$OPENEXR_LIBS"; then
30558    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30559 elif test -n "$PKG_CONFIG"; then
30560    if test -n "$PKG_CONFIG" && \
30561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30562  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30563  ac_status=$?
30564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565  test $ac_status = 0; }; then
30566  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30567else
30568  pkg_failed=yes
30569fi
30570 else
30571    pkg_failed=untried
30572fi
30573
30574
30575
30576if test $pkg_failed = yes; then
30577
30578if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30579        _pkg_short_errors_supported=yes
30580else
30581        _pkg_short_errors_supported=no
30582fi
30583        if test $_pkg_short_errors_supported = yes; then
30584	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30585        else
30586	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30587        fi
30588	# Put the nasty error message in config.log where it belongs
30589	echo "$OPENEXR_PKG_ERRORS" >&5
30590
30591	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30592$as_echo "no" >&6; }
30593                have_openexr=no
30594elif test $pkg_failed = untried; then
30595	have_openexr=no
30596else
30597	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30598	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30599        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30600$as_echo "yes" >&6; }
30601	have_openexr=yes
30602fi
30603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30604$as_echo "" >&6; }
30605fi
30606
30607if test "$have_openexr" = 'yes'; then
30608
30609$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30610
30611    if test "$build_modules" = 'no'; then
30612        CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30613    fi
30614fi
30615
30616 if test "$have_openexr" = 'yes'; then
30617  OPENEXR_DELEGATE_TRUE=
30618  OPENEXR_DELEGATE_FALSE='#'
30619else
30620  OPENEXR_DELEGATE_TRUE='#'
30621  OPENEXR_DELEGATE_FALSE=
30622fi
30623
30624
30625
30626
30627
30628#
30629# Check for PANGO delegate library.
30630#
30631
30632# Check whether --with-pango was given.
30633if test "${with_pango+set}" = set; then :
30634  withval=$with_pango; with_pango=$withval
30635else
30636  with_pango='yes'
30637fi
30638
30639
30640if test "$with_pango" != 'yes'; then
30641    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30642fi
30643
30644have_pango='no'
30645have_pangocairo='no'
30646PANGO_CFLAGS=""
30647PANGO_LIBS=""
30648PANGO_PKG=""
30649if test "x$with_pango" = "xyes"; then
30650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30651$as_echo "-------------------------------------------------------------" >&6; }
30652
30653pkg_failed=no
30654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30655$as_echo_n "checking for PANGO... " >&6; }
30656
30657if test -n "$PANGO_CFLAGS"; then
30658    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30659 elif test -n "$PKG_CONFIG"; then
30660    if test -n "$PKG_CONFIG" && \
30661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30662  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
30663  ac_status=$?
30664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30665  test $ac_status = 0; }; then
30666  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
30667else
30668  pkg_failed=yes
30669fi
30670 else
30671    pkg_failed=untried
30672fi
30673if test -n "$PANGO_LIBS"; then
30674    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30675 elif test -n "$PKG_CONFIG"; then
30676    if test -n "$PKG_CONFIG" && \
30677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30678  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
30679  ac_status=$?
30680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30681  test $ac_status = 0; }; then
30682  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
30683else
30684  pkg_failed=yes
30685fi
30686 else
30687    pkg_failed=untried
30688fi
30689
30690
30691
30692if test $pkg_failed = yes; then
30693
30694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30695        _pkg_short_errors_supported=yes
30696else
30697        _pkg_short_errors_supported=no
30698fi
30699        if test $_pkg_short_errors_supported = yes; then
30700	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
30701        else
30702	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
30703        fi
30704	# Put the nasty error message in config.log where it belongs
30705	echo "$PANGO_PKG_ERRORS" >&5
30706
30707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708$as_echo "no" >&6; }
30709                have_pangocairo=no
30710elif test $pkg_failed = untried; then
30711	have_pangocairo=no
30712else
30713	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30714	PANGO_LIBS=$pkg_cv_PANGO_LIBS
30715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30716$as_echo "yes" >&6; }
30717	have_pangocairo=yes
30718fi
30719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30720$as_echo "" >&6; }
30721
30722pkg_failed=no
30723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30724$as_echo_n "checking for PANGO... " >&6; }
30725
30726if test -n "$PANGO_CFLAGS"; then
30727    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30728 elif test -n "$PKG_CONFIG"; then
30729    if test -n "$PKG_CONFIG" && \
30730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30731  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
30732  ac_status=$?
30733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30734  test $ac_status = 0; }; then
30735  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
30736else
30737  pkg_failed=yes
30738fi
30739 else
30740    pkg_failed=untried
30741fi
30742if test -n "$PANGO_LIBS"; then
30743    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30744 elif test -n "$PKG_CONFIG"; then
30745    if test -n "$PKG_CONFIG" && \
30746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30747  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
30748  ac_status=$?
30749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30750  test $ac_status = 0; }; then
30751  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
30752else
30753  pkg_failed=yes
30754fi
30755 else
30756    pkg_failed=untried
30757fi
30758
30759
30760
30761if test $pkg_failed = yes; then
30762
30763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30764        _pkg_short_errors_supported=yes
30765else
30766        _pkg_short_errors_supported=no
30767fi
30768        if test $_pkg_short_errors_supported = yes; then
30769	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
30770        else
30771	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
30772        fi
30773	# Put the nasty error message in config.log where it belongs
30774	echo "$PANGO_PKG_ERRORS" >&5
30775
30776	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30777$as_echo "no" >&6; }
30778                have_pango=no
30779elif test $pkg_failed = untried; then
30780	have_pango=no
30781else
30782	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30783	PANGO_LIBS=$pkg_cv_PANGO_LIBS
30784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30785$as_echo "yes" >&6; }
30786	have_pango=yes
30787fi
30788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30789$as_echo "" >&6; }
30790fi
30791
30792if test "$have_pango" = 'yes'; then
30793
30794$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30795
30796    if test "$build_modules" = 'no'; then
30797        CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30798    fi
30799fi
30800
30801if test "$have_pangocairo" = 'yes'; then
30802
30803$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
30804
30805    if test "$build_modules" = 'no'; then
30806        CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
30807    fi
30808fi
30809
30810 if test "$have_pango" = 'yes'; then
30811  PANGO_DELEGATE_TRUE=
30812  PANGO_DELEGATE_FALSE='#'
30813else
30814  PANGO_DELEGATE_TRUE='#'
30815  PANGO_DELEGATE_FALSE=
30816fi
30817
30818 if test "$have_pangocairo" = 'yes'; then
30819  PANGOCAIRO_DELEGATE_TRUE=
30820  PANGOCAIRO_DELEGATE_FALSE='#'
30821else
30822  PANGOCAIRO_DELEGATE_TRUE='#'
30823  PANGOCAIRO_DELEGATE_FALSE=
30824fi
30825
30826
30827
30828
30829
30830#
30831# Check for PNG delegate library.
30832#
30833
30834# Check whether --with-png was given.
30835if test "${with_png+set}" = set; then :
30836  withval=$with_png; with_png=$withval
30837else
30838  with_png='yes'
30839fi
30840
30841
30842if test "$with_png" != 'yes'; then
30843    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30844fi
30845
30846have_png='no'
30847PNG_LIBS=''
30848
30849if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then
30850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30851$as_echo "-------------------------------------------------------------" >&6; }
30852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30853$as_echo_n "checking for PNG support ... " >&6; }
30854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30855$as_echo "" >&6; }
30856  failed=0
30857  passed=0
30858  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30859if test "x$ac_cv_header_png_h" = xyes; then :
30860  passed=`expr $passed + 1`
30861else
30862  failed=`expr $failed + 1`
30863fi
30864
30865
30866
30867  if test $passed -gt 0; then
30868    for var in 7 6 5 4 2 '' ; do
30869      if test "$have_png" = 'no' ; then
30870        if test "x${var}" = 'x' ; then
30871          pnglib='png'
30872        else
30873          pnglib="png1${var}"
30874        fi
30875
30876#       Test for compatible LIBPNG library
30877        failed=0
30878        passed=0
30879        if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
30880          if test "${pnglib}" != 'png' ; then
30881            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30882$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30883            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30884/* end confdefs.h.  */
30885#include <stdio.h>
30886#include <stdlib.h>
30887#include <png.h>
30888
30889int
30890main ()
30891{
30892
30893#if PNG_LIBPNG_VER_MINOR != ${var}
30894#error LIBPNG library must be version 1${var}!
30895Kaboom, Kaboom
30896#endif
30897return 0;
30898
30899  ;
30900  return 0;
30901}
30902_ACEOF
30903if ac_fn_c_try_compile "$LINENO"; then :
30904              ac_cv_libpng_ok='yes'
30905else
30906  ac_cv_libpng_ok='no'
30907fi
30908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30909            if test "$ac_cv_libpng_ok" = 'yes' ; then
30910              passed=`expr $passed + 1`
30911              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30912$as_echo "yes" >&6; }
30913            else
30914              failed=`expr $failed + 1`
30915              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30916$as_echo "no" >&6; }
30917            fi
30918          else
30919            passed=`expr $passed + 1`
30920            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30921$as_echo "yes" >&6; }
30922          fi
30923        fi
30924
30925        if test $passed -gt 0 -a $failed -le 0; then
30926          if test "1${var}" = '17' ; then
30927            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30928$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30929if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30930  $as_echo_n "(cached) " >&6
30931else
30932  ac_check_lib_save_LIBS=$LIBS
30933LIBS="-lpng17  $LIBS"
30934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30935/* end confdefs.h.  */
30936
30937/* Override any GCC internal prototype to avoid an error.
30938   Use char because int might match the return type of a GCC
30939   builtin and then its argument prototype would still apply.  */
30940#ifdef __cplusplus
30941extern "C"
30942#endif
30943char png_get_io_ptr ();
30944int
30945main ()
30946{
30947return png_get_io_ptr ();
30948  ;
30949  return 0;
30950}
30951_ACEOF
30952if ac_fn_c_try_link "$LINENO"; then :
30953  ac_cv_lib_png17_png_get_io_ptr=yes
30954else
30955  ac_cv_lib_png17_png_get_io_ptr=no
30956fi
30957rm -f core conftest.err conftest.$ac_objext \
30958    conftest$ac_exeext conftest.$ac_ext
30959LIBS=$ac_check_lib_save_LIBS
30960fi
30961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30962$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30963if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30964  passed=`expr $passed + 1`
30965else
30966  failed=`expr $failed + 1`
30967fi
30968
30969            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30970$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30971if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30972  $as_echo_n "(cached) " >&6
30973else
30974  ac_check_lib_save_LIBS=$LIBS
30975LIBS="-lpng17  $LIBS"
30976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30977/* end confdefs.h.  */
30978
30979/* Override any GCC internal prototype to avoid an error.
30980   Use char because int might match the return type of a GCC
30981   builtin and then its argument prototype would still apply.  */
30982#ifdef __cplusplus
30983extern "C"
30984#endif
30985char png_longjmp ();
30986int
30987main ()
30988{
30989return png_longjmp ();
30990  ;
30991  return 0;
30992}
30993_ACEOF
30994if ac_fn_c_try_link "$LINENO"; then :
30995  ac_cv_lib_png17_png_longjmp=yes
30996else
30997  ac_cv_lib_png17_png_longjmp=no
30998fi
30999rm -f core conftest.err conftest.$ac_objext \
31000    conftest$ac_exeext conftest.$ac_ext
31001LIBS=$ac_check_lib_save_LIBS
31002fi
31003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31004$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31005if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31006  passed=`expr $passed + 1`
31007else
31008  failed=`expr $failed + 1`
31009fi
31010
31011          fi
31012          if test "1${var}" = '16' ; then
31013            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31014$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31015if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31016  $as_echo_n "(cached) " >&6
31017else
31018  ac_check_lib_save_LIBS=$LIBS
31019LIBS="-lpng16  $LIBS"
31020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31021/* end confdefs.h.  */
31022
31023/* Override any GCC internal prototype to avoid an error.
31024   Use char because int might match the return type of a GCC
31025   builtin and then its argument prototype would still apply.  */
31026#ifdef __cplusplus
31027extern "C"
31028#endif
31029char png_get_io_ptr ();
31030int
31031main ()
31032{
31033return png_get_io_ptr ();
31034  ;
31035  return 0;
31036}
31037_ACEOF
31038if ac_fn_c_try_link "$LINENO"; then :
31039  ac_cv_lib_png16_png_get_io_ptr=yes
31040else
31041  ac_cv_lib_png16_png_get_io_ptr=no
31042fi
31043rm -f core conftest.err conftest.$ac_objext \
31044    conftest$ac_exeext conftest.$ac_ext
31045LIBS=$ac_check_lib_save_LIBS
31046fi
31047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31048$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31049if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31050  passed=`expr $passed + 1`
31051else
31052  failed=`expr $failed + 1`
31053fi
31054
31055            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31056$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31057if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31058  $as_echo_n "(cached) " >&6
31059else
31060  ac_check_lib_save_LIBS=$LIBS
31061LIBS="-lpng16  $LIBS"
31062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31063/* end confdefs.h.  */
31064
31065/* Override any GCC internal prototype to avoid an error.
31066   Use char because int might match the return type of a GCC
31067   builtin and then its argument prototype would still apply.  */
31068#ifdef __cplusplus
31069extern "C"
31070#endif
31071char png_longjmp ();
31072int
31073main ()
31074{
31075return png_longjmp ();
31076  ;
31077  return 0;
31078}
31079_ACEOF
31080if ac_fn_c_try_link "$LINENO"; then :
31081  ac_cv_lib_png16_png_longjmp=yes
31082else
31083  ac_cv_lib_png16_png_longjmp=no
31084fi
31085rm -f core conftest.err conftest.$ac_objext \
31086    conftest$ac_exeext conftest.$ac_ext
31087LIBS=$ac_check_lib_save_LIBS
31088fi
31089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31090$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31091if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31092  passed=`expr $passed + 1`
31093else
31094  failed=`expr $failed + 1`
31095fi
31096
31097          fi
31098          if test "1${var}" = '15' ; then
31099            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31100$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31101if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31102  $as_echo_n "(cached) " >&6
31103else
31104  ac_check_lib_save_LIBS=$LIBS
31105LIBS="-lpng15  $LIBS"
31106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31107/* end confdefs.h.  */
31108
31109/* Override any GCC internal prototype to avoid an error.
31110   Use char because int might match the return type of a GCC
31111   builtin and then its argument prototype would still apply.  */
31112#ifdef __cplusplus
31113extern "C"
31114#endif
31115char png_get_io_ptr ();
31116int
31117main ()
31118{
31119return png_get_io_ptr ();
31120  ;
31121  return 0;
31122}
31123_ACEOF
31124if ac_fn_c_try_link "$LINENO"; then :
31125  ac_cv_lib_png15_png_get_io_ptr=yes
31126else
31127  ac_cv_lib_png15_png_get_io_ptr=no
31128fi
31129rm -f core conftest.err conftest.$ac_objext \
31130    conftest$ac_exeext conftest.$ac_ext
31131LIBS=$ac_check_lib_save_LIBS
31132fi
31133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31134$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31135if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31136  passed=`expr $passed + 1`
31137else
31138  failed=`expr $failed + 1`
31139fi
31140
31141            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31142$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31143if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31144  $as_echo_n "(cached) " >&6
31145else
31146  ac_check_lib_save_LIBS=$LIBS
31147LIBS="-lpng15  $LIBS"
31148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31149/* end confdefs.h.  */
31150
31151/* Override any GCC internal prototype to avoid an error.
31152   Use char because int might match the return type of a GCC
31153   builtin and then its argument prototype would still apply.  */
31154#ifdef __cplusplus
31155extern "C"
31156#endif
31157char png_longjmp ();
31158int
31159main ()
31160{
31161return png_longjmp ();
31162  ;
31163  return 0;
31164}
31165_ACEOF
31166if ac_fn_c_try_link "$LINENO"; then :
31167  ac_cv_lib_png15_png_longjmp=yes
31168else
31169  ac_cv_lib_png15_png_longjmp=no
31170fi
31171rm -f core conftest.err conftest.$ac_objext \
31172    conftest$ac_exeext conftest.$ac_ext
31173LIBS=$ac_check_lib_save_LIBS
31174fi
31175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31176$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31177if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31178  passed=`expr $passed + 1`
31179else
31180  failed=`expr $failed + 1`
31181fi
31182
31183          fi
31184          if test "1${var}" = '14' ; then
31185            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31186$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31187if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31188  $as_echo_n "(cached) " >&6
31189else
31190  ac_check_lib_save_LIBS=$LIBS
31191LIBS="-lpng14  $LIBS"
31192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31193/* end confdefs.h.  */
31194
31195/* Override any GCC internal prototype to avoid an error.
31196   Use char because int might match the return type of a GCC
31197   builtin and then its argument prototype would still apply.  */
31198#ifdef __cplusplus
31199extern "C"
31200#endif
31201char png_get_io_ptr ();
31202int
31203main ()
31204{
31205return png_get_io_ptr ();
31206  ;
31207  return 0;
31208}
31209_ACEOF
31210if ac_fn_c_try_link "$LINENO"; then :
31211  ac_cv_lib_png14_png_get_io_ptr=yes
31212else
31213  ac_cv_lib_png14_png_get_io_ptr=no
31214fi
31215rm -f core conftest.err conftest.$ac_objext \
31216    conftest$ac_exeext conftest.$ac_ext
31217LIBS=$ac_check_lib_save_LIBS
31218fi
31219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31220$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31221if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31222  passed=`expr $passed + 1`
31223else
31224  failed=`expr $failed + 1`
31225fi
31226
31227            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31228$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31229if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31230  $as_echo_n "(cached) " >&6
31231else
31232  ac_check_lib_save_LIBS=$LIBS
31233LIBS="-lpng14  $LIBS"
31234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235/* end confdefs.h.  */
31236
31237/* Override any GCC internal prototype to avoid an error.
31238   Use char because int might match the return type of a GCC
31239   builtin and then its argument prototype would still apply.  */
31240#ifdef __cplusplus
31241extern "C"
31242#endif
31243char png_get_io_state ();
31244int
31245main ()
31246{
31247return png_get_io_state ();
31248  ;
31249  return 0;
31250}
31251_ACEOF
31252if ac_fn_c_try_link "$LINENO"; then :
31253  ac_cv_lib_png14_png_get_io_state=yes
31254else
31255  ac_cv_lib_png14_png_get_io_state=no
31256fi
31257rm -f core conftest.err conftest.$ac_objext \
31258    conftest$ac_exeext conftest.$ac_ext
31259LIBS=$ac_check_lib_save_LIBS
31260fi
31261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31262$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31263if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31264  passed=`expr $passed + 1`
31265else
31266  failed=`expr $failed + 1`
31267fi
31268
31269          fi
31270          if test "1${var}" = '12' ; then
31271            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31272$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31273if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31274  $as_echo_n "(cached) " >&6
31275else
31276  ac_check_lib_save_LIBS=$LIBS
31277LIBS="-lpng12  $LIBS"
31278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31279/* end confdefs.h.  */
31280
31281/* Override any GCC internal prototype to avoid an error.
31282   Use char because int might match the return type of a GCC
31283   builtin and then its argument prototype would still apply.  */
31284#ifdef __cplusplus
31285extern "C"
31286#endif
31287char png_get_io_ptr ();
31288int
31289main ()
31290{
31291return png_get_io_ptr ();
31292  ;
31293  return 0;
31294}
31295_ACEOF
31296if ac_fn_c_try_link "$LINENO"; then :
31297  ac_cv_lib_png12_png_get_io_ptr=yes
31298else
31299  ac_cv_lib_png12_png_get_io_ptr=no
31300fi
31301rm -f core conftest.err conftest.$ac_objext \
31302    conftest$ac_exeext conftest.$ac_ext
31303LIBS=$ac_check_lib_save_LIBS
31304fi
31305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31306$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31307if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31308  passed=`expr $passed + 1`
31309else
31310  failed=`expr $failed + 1`
31311fi
31312
31313          fi
31314          if test "1${var}" = '1' ; then
31315              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31316$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31317if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31318  $as_echo_n "(cached) " >&6
31319else
31320  ac_check_lib_save_LIBS=$LIBS
31321LIBS="-lpng  $LIBS"
31322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323/* end confdefs.h.  */
31324
31325/* Override any GCC internal prototype to avoid an error.
31326   Use char because int might match the return type of a GCC
31327   builtin and then its argument prototype would still apply.  */
31328#ifdef __cplusplus
31329extern "C"
31330#endif
31331char png_get_io_ptr ();
31332int
31333main ()
31334{
31335return png_get_io_ptr ();
31336  ;
31337  return 0;
31338}
31339_ACEOF
31340if ac_fn_c_try_link "$LINENO"; then :
31341  ac_cv_lib_png_png_get_io_ptr=yes
31342else
31343  ac_cv_lib_png_png_get_io_ptr=no
31344fi
31345rm -f core conftest.err conftest.$ac_objext \
31346    conftest$ac_exeext conftest.$ac_ext
31347LIBS=$ac_check_lib_save_LIBS
31348fi
31349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31350$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31351if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31352  passed=`expr $passed + 1`
31353else
31354  failed=`expr $failed + 1`
31355fi
31356
31357          fi
31358          if test $passed -gt 0 -a $failed -le 0 ; then
31359            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31360$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31361            if test $passed -gt 0 ; then
31362              if test $failed -gt 0 ; then
31363                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31364$as_echo "no -- some components failed test" >&6; }
31365                  have_png='no (failed tests)'
31366              else
31367                  PNG_LIBS="-l${pnglib}"
31368                  LIBS="$PNG_LIBS $LIBS"
31369
31370$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
31371
31372                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31373$as_echo "yes" >&6; }
31374                  have_png='yes'
31375              fi
31376            fi
31377          fi
31378        fi
31379      fi
31380    done
31381  fi
31382fi
31383
31384 if test "$have_png" = 'yes'; then
31385  PNG_DELEGATE_TRUE=
31386  PNG_DELEGATE_FALSE='#'
31387else
31388  PNG_DELEGATE_TRUE='#'
31389  PNG_DELEGATE_FALSE=
31390fi
31391
31392
31393
31394
31395
31396#
31397# Check for RSVG delegate library.
31398#
31399
31400# Check whether --with-rsvg was given.
31401if test "${with_rsvg+set}" = set; then :
31402  withval=$with_rsvg; with_rsvg=$withval
31403else
31404  with_rsvg='no'
31405fi
31406
31407
31408if test "$with_rsvg" != 'yes'; then
31409    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31410fi
31411
31412have_rsvg='no'
31413have_cairo='no'
31414RSVG_CFLAGS=""
31415RSVG_LIBS=""
31416RSVG_PKG=""
31417if test "x$with_rsvg" = "xyes"; then
31418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31419$as_echo "-------------------------------------------------------------" >&6; }
31420
31421pkg_failed=no
31422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31423$as_echo_n "checking for RSVG... " >&6; }
31424
31425if test -n "$RSVG_CFLAGS"; then
31426    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31427 elif test -n "$PKG_CONFIG"; then
31428    if test -n "$PKG_CONFIG" && \
31429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31430  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31431  ac_status=$?
31432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31433  test $ac_status = 0; }; then
31434  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31435else
31436  pkg_failed=yes
31437fi
31438 else
31439    pkg_failed=untried
31440fi
31441if test -n "$RSVG_LIBS"; then
31442    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31443 elif test -n "$PKG_CONFIG"; then
31444    if test -n "$PKG_CONFIG" && \
31445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31446  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31447  ac_status=$?
31448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31449  test $ac_status = 0; }; then
31450  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31451else
31452  pkg_failed=yes
31453fi
31454 else
31455    pkg_failed=untried
31456fi
31457
31458
31459
31460if test $pkg_failed = yes; then
31461
31462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31463        _pkg_short_errors_supported=yes
31464else
31465        _pkg_short_errors_supported=no
31466fi
31467        if test $_pkg_short_errors_supported = yes; then
31468	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31469        else
31470	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31471        fi
31472	# Put the nasty error message in config.log where it belongs
31473	echo "$RSVG_PKG_ERRORS" >&5
31474
31475	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31476$as_echo "no" >&6; }
31477                have_rsvg=no
31478elif test $pkg_failed = untried; then
31479	have_rsvg=no
31480else
31481	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31482	RSVG_LIBS=$pkg_cv_RSVG_LIBS
31483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31484$as_echo "yes" >&6; }
31485	have_rsvg=yes
31486fi
31487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31488$as_echo "" >&6; }
31489
31490pkg_failed=no
31491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31492$as_echo_n "checking for CAIRO_SVG... " >&6; }
31493
31494if test -n "$CAIRO_SVG_CFLAGS"; then
31495    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31496 elif test -n "$PKG_CONFIG"; then
31497    if test -n "$PKG_CONFIG" && \
31498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31499  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31500  ac_status=$?
31501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31502  test $ac_status = 0; }; then
31503  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31504else
31505  pkg_failed=yes
31506fi
31507 else
31508    pkg_failed=untried
31509fi
31510if test -n "$CAIRO_SVG_LIBS"; then
31511    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31512 elif test -n "$PKG_CONFIG"; then
31513    if test -n "$PKG_CONFIG" && \
31514    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31515  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31516  ac_status=$?
31517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31518  test $ac_status = 0; }; then
31519  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31520else
31521  pkg_failed=yes
31522fi
31523 else
31524    pkg_failed=untried
31525fi
31526
31527
31528
31529if test $pkg_failed = yes; then
31530
31531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31532        _pkg_short_errors_supported=yes
31533else
31534        _pkg_short_errors_supported=no
31535fi
31536        if test $_pkg_short_errors_supported = yes; then
31537	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31538        else
31539	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31540        fi
31541	# Put the nasty error message in config.log where it belongs
31542	echo "$CAIRO_SVG_PKG_ERRORS" >&5
31543
31544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31545$as_echo "no" >&6; }
31546                have_cairo=no
31547elif test $pkg_failed = untried; then
31548	have_cairo=no
31549else
31550	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31551	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31552        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31553$as_echo "yes" >&6; }
31554	have_cairo=yes
31555fi
31556    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31557$as_echo "" >&6; }
31558fi
31559
31560if test "$have_rsvg" = 'yes'; then
31561
31562$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31563
31564    if test "$build_modules" = 'no'; then
31565        CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31566    fi
31567fi
31568
31569if test "$have_cairo" = 'yes'; then
31570
31571$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31572
31573    if test "$build_modules" = 'no'; then
31574        CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31575    fi
31576fi
31577
31578 if test "$have_rsvg" = 'yes'; then
31579  RSVG_DELEGATE_TRUE=
31580  RSVG_DELEGATE_FALSE='#'
31581else
31582  RSVG_DELEGATE_TRUE='#'
31583  RSVG_DELEGATE_FALSE=
31584fi
31585
31586 if test "$have_cairo" = 'yes'; then
31587  CAIRO_DELEGATE_TRUE=
31588  CAIRO_DELEGATE_FALSE='#'
31589else
31590  CAIRO_DELEGATE_TRUE='#'
31591  CAIRO_DELEGATE_FALSE=
31592fi
31593
31594
31595
31596
31597
31598#
31599# Check for TIFF delegate library.
31600#
31601
31602# Check whether --with-tiff was given.
31603if test "${with_tiff+set}" = set; then :
31604  withval=$with_tiff; with_tiff=$withval
31605else
31606  with_tiff='yes'
31607fi
31608
31609
31610if test "$with_tiff" != 'yes'; then
31611    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31612fi
31613
31614have_tiff='no'
31615TIFF_LIBS=''
31616if test "$with_tiff" != 'no'; then
31617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31618$as_echo "-------------------------------------------------------------" >&6; }
31619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31620$as_echo_n "checking for TIFF... " >&6; }
31621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31622$as_echo "" >&6; }
31623    failed=0
31624    passed=0
31625    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31626if test "x$ac_cv_header_tiff_h" = xyes; then :
31627  passed=`expr $passed + 1`
31628else
31629  failed=`expr $failed + 1`
31630fi
31631
31632
31633    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31634if test "x$ac_cv_header_tiffio_h" = xyes; then :
31635  passed=`expr $passed + 1`
31636else
31637  failed=`expr $failed + 1`
31638fi
31639
31640
31641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31642$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31643if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
31644  $as_echo_n "(cached) " >&6
31645else
31646  ac_check_lib_save_LIBS=$LIBS
31647LIBS="-ltiff  $LIBS"
31648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31649/* end confdefs.h.  */
31650
31651/* Override any GCC internal prototype to avoid an error.
31652   Use char because int might match the return type of a GCC
31653   builtin and then its argument prototype would still apply.  */
31654#ifdef __cplusplus
31655extern "C"
31656#endif
31657char TIFFOpen ();
31658int
31659main ()
31660{
31661return TIFFOpen ();
31662  ;
31663  return 0;
31664}
31665_ACEOF
31666if ac_fn_c_try_link "$LINENO"; then :
31667  ac_cv_lib_tiff_TIFFOpen=yes
31668else
31669  ac_cv_lib_tiff_TIFFOpen=no
31670fi
31671rm -f core conftest.err conftest.$ac_objext \
31672    conftest$ac_exeext conftest.$ac_ext
31673LIBS=$ac_check_lib_save_LIBS
31674fi
31675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31676$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31677if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
31678  passed=`expr $passed + 1`
31679else
31680  failed=`expr $failed + 1`
31681fi
31682
31683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
31684$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31685if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
31686  $as_echo_n "(cached) " >&6
31687else
31688  ac_check_lib_save_LIBS=$LIBS
31689LIBS="-ltiff  $LIBS"
31690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31691/* end confdefs.h.  */
31692
31693/* Override any GCC internal prototype to avoid an error.
31694   Use char because int might match the return type of a GCC
31695   builtin and then its argument prototype would still apply.  */
31696#ifdef __cplusplus
31697extern "C"
31698#endif
31699char TIFFClientOpen ();
31700int
31701main ()
31702{
31703return TIFFClientOpen ();
31704  ;
31705  return 0;
31706}
31707_ACEOF
31708if ac_fn_c_try_link "$LINENO"; then :
31709  ac_cv_lib_tiff_TIFFClientOpen=yes
31710else
31711  ac_cv_lib_tiff_TIFFClientOpen=no
31712fi
31713rm -f core conftest.err conftest.$ac_objext \
31714    conftest$ac_exeext conftest.$ac_ext
31715LIBS=$ac_check_lib_save_LIBS
31716fi
31717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
31718$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31719if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
31720  passed=`expr $passed + 1`
31721else
31722  failed=`expr $failed + 1`
31723fi
31724
31725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
31726$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31727if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
31728  $as_echo_n "(cached) " >&6
31729else
31730  ac_check_lib_save_LIBS=$LIBS
31731LIBS="-ltiff  $LIBS"
31732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31733/* end confdefs.h.  */
31734
31735/* Override any GCC internal prototype to avoid an error.
31736   Use char because int might match the return type of a GCC
31737   builtin and then its argument prototype would still apply.  */
31738#ifdef __cplusplus
31739extern "C"
31740#endif
31741char TIFFIsByteSwapped ();
31742int
31743main ()
31744{
31745return TIFFIsByteSwapped ();
31746  ;
31747  return 0;
31748}
31749_ACEOF
31750if ac_fn_c_try_link "$LINENO"; then :
31751  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31752else
31753  ac_cv_lib_tiff_TIFFIsByteSwapped=no
31754fi
31755rm -f core conftest.err conftest.$ac_objext \
31756    conftest$ac_exeext conftest.$ac_ext
31757LIBS=$ac_check_lib_save_LIBS
31758fi
31759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
31760$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31761if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
31762  passed=`expr $passed + 1`
31763else
31764  failed=`expr $failed + 1`
31765fi
31766
31767    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
31768$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31769if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
31770  $as_echo_n "(cached) " >&6
31771else
31772  ac_check_lib_save_LIBS=$LIBS
31773LIBS="-ltiff  $LIBS"
31774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31775/* end confdefs.h.  */
31776
31777/* Override any GCC internal prototype to avoid an error.
31778   Use char because int might match the return type of a GCC
31779   builtin and then its argument prototype would still apply.  */
31780#ifdef __cplusplus
31781extern "C"
31782#endif
31783char TIFFReadRGBATile ();
31784int
31785main ()
31786{
31787return TIFFReadRGBATile ();
31788  ;
31789  return 0;
31790}
31791_ACEOF
31792if ac_fn_c_try_link "$LINENO"; then :
31793  ac_cv_lib_tiff_TIFFReadRGBATile=yes
31794else
31795  ac_cv_lib_tiff_TIFFReadRGBATile=no
31796fi
31797rm -f core conftest.err conftest.$ac_objext \
31798    conftest$ac_exeext conftest.$ac_ext
31799LIBS=$ac_check_lib_save_LIBS
31800fi
31801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
31802$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
31803if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
31804  passed=`expr $passed + 1`
31805else
31806  failed=`expr $failed + 1`
31807fi
31808
31809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
31810$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
31811if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
31812  $as_echo_n "(cached) " >&6
31813else
31814  ac_check_lib_save_LIBS=$LIBS
31815LIBS="-ltiff  $LIBS"
31816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31817/* end confdefs.h.  */
31818
31819/* Override any GCC internal prototype to avoid an error.
31820   Use char because int might match the return type of a GCC
31821   builtin and then its argument prototype would still apply.  */
31822#ifdef __cplusplus
31823extern "C"
31824#endif
31825char TIFFReadRGBAStrip ();
31826int
31827main ()
31828{
31829return TIFFReadRGBAStrip ();
31830  ;
31831  return 0;
31832}
31833_ACEOF
31834if ac_fn_c_try_link "$LINENO"; then :
31835  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31836else
31837  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
31838fi
31839rm -f core conftest.err conftest.$ac_objext \
31840    conftest$ac_exeext conftest.$ac_ext
31841LIBS=$ac_check_lib_save_LIBS
31842fi
31843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
31844$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
31845if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
31846  passed=`expr $passed + 1`
31847else
31848  failed=`expr $failed + 1`
31849fi
31850
31851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
31852$as_echo_n "checking if TIFF package is complete... " >&6; }
31853    if test $passed -gt 0; then
31854        if test $failed -gt 0; then
31855            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31856$as_echo "no -- some components failed test" >&6; }
31857            have_tiff='no (failed tests)'
31858        else
31859            TIFF_LIBS='-ltiff'
31860            LIBS="$TIFF_LIBS $LIBS"
31861
31862$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
31863
31864            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31865$as_echo "yes" >&6; }
31866            have_tiff='yes'
31867            for ac_header in tiffconf.h
31868do :
31869  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
31870if test "x$ac_cv_header_tiffconf_h" = xyes; then :
31871  cat >>confdefs.h <<_ACEOF
31872#define HAVE_TIFFCONF_H 1
31873_ACEOF
31874
31875fi
31876
31877done
31878
31879            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
31880              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31881              TIFFSetTagExtender TIFFSetWarningHandlerExt \
31882              TIFFSwabArrayOfTriples
31883do :
31884  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31886if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31887  cat >>confdefs.h <<_ACEOF
31888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31889_ACEOF
31890
31891fi
31892done
31893
31894        fi
31895    else
31896        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897$as_echo "no" >&6; }
31898    fi
31899fi
31900 if test "$have_tiff" = 'yes'; then
31901  TIFF_DELEGATE_TRUE=
31902  TIFF_DELEGATE_FALSE='#'
31903else
31904  TIFF_DELEGATE_TRUE='#'
31905  TIFF_DELEGATE_FALSE=
31906fi
31907
31908
31909
31910
31911#
31912# Check for WEBP delegate library.
31913#
31914
31915# Check whether --with-webp was given.
31916if test "${with_webp+set}" = set; then :
31917  withval=$with_webp; with_webp=$withval
31918else
31919  with_webp='yes'
31920fi
31921
31922
31923if test "$with_webp" != 'yes'; then
31924    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31925fi
31926
31927have_webp='no'
31928WEBP_LIBS=''
31929if test "$with_webp" != 'no'; then
31930    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31931$as_echo "-------------------------------------------------------------" >&6; }
31932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31933$as_echo_n "checking for WEBP... " >&6; }
31934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31935$as_echo "" >&6; }
31936    failed=0
31937    passed=0
31938    ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31939if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31940  passed=`expr $passed + 1`
31941else
31942  failed=`expr $failed + 1`
31943fi
31944
31945
31946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31947$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31948if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
31949  $as_echo_n "(cached) " >&6
31950else
31951  ac_check_lib_save_LIBS=$LIBS
31952LIBS="-lwebp  $LIBS"
31953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31954/* end confdefs.h.  */
31955
31956/* Override any GCC internal prototype to avoid an error.
31957   Use char because int might match the return type of a GCC
31958   builtin and then its argument prototype would still apply.  */
31959#ifdef __cplusplus
31960extern "C"
31961#endif
31962char WebPPictureInitInternal ();
31963int
31964main ()
31965{
31966return WebPPictureInitInternal ();
31967  ;
31968  return 0;
31969}
31970_ACEOF
31971if ac_fn_c_try_link "$LINENO"; then :
31972  ac_cv_lib_webp_WebPPictureInitInternal=yes
31973else
31974  ac_cv_lib_webp_WebPPictureInitInternal=no
31975fi
31976rm -f core conftest.err conftest.$ac_objext \
31977    conftest$ac_exeext conftest.$ac_ext
31978LIBS=$ac_check_lib_save_LIBS
31979fi
31980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31981$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31982if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
31983  passed=`expr $passed + 1`
31984else
31985  failed=`expr $failed + 1`
31986fi
31987
31988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31989$as_echo_n "checking if WEBP package is complete... " >&6; }
31990    if test $passed -gt 0; then
31991        if test $failed -gt 0; then
31992            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31993$as_echo "no -- some components failed test" >&6; }
31994            have_webp='no (failed tests)'
31995        else
31996            WEBP_LIBS='-lwebp'
31997            LIBS="$WEBP_LIBS $LIBS"
31998
31999$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32000
32001            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32002$as_echo "yes" >&6; }
32003            have_webp='yes'
32004        fi
32005    else
32006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007$as_echo "no" >&6; }
32008    fi
32009fi
32010 if test "$have_webp" = 'yes'; then
32011  WEBP_DELEGATE_TRUE=
32012  WEBP_DELEGATE_FALSE='#'
32013else
32014  WEBP_DELEGATE_TRUE='#'
32015  WEBP_DELEGATE_FALSE=
32016fi
32017
32018
32019
32020
32021#
32022# Set Windows font directory.
32023#
32024
32025# Check whether --with-windows-font-dir was given.
32026if test "${with_windows_font_dir+set}" = set; then :
32027  withval=$with_windows_font_dir; with_windows_font_dir=$withval
32028else
32029  with_windows_font_dir=''
32030fi
32031
32032if test "$with_windows_font_dir" != '' ; then
32033    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32034fi
32035
32036
32037#
32038# Check for WMF delegate library.
32039#
32040
32041# Check whether --with-wmf was given.
32042if test "${with_wmf+set}" = set; then :
32043  withval=$with_wmf; with_wmf=$withval
32044else
32045  with_wmf='no'
32046fi
32047
32048
32049if test "$with_wmf" != 'yes'; then
32050    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32051fi
32052
32053have_wmf='no'
32054WMF_LIBS=''
32055WMF_LIBS_DEPS=''
32056OLIBS="$LIBS"
32057if test "$with_wmf" != 'no'; then
32058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32059$as_echo "-------------------------------------------------------------" >&6; }
32060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
32061$as_echo_n "checking for WMF... " >&6; }
32062    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32063$as_echo "" >&6; }
32064    have_libwmf='no'
32065    have_libwmflite='no'
32066    have_libwmf_ipa_h='no'
32067
32068    ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32069"
32070if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32071  have_libwmf_ipa_h='yes'
32072fi
32073
32074
32075    if test "$have_libwmf_ipa_h" = 'yes'; then
32076        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32077$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32078if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32079  $as_echo_n "(cached) " >&6
32080else
32081  ac_check_lib_save_LIBS=$LIBS
32082LIBS="-lwmflite  $LIBS"
32083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32084/* end confdefs.h.  */
32085
32086/* Override any GCC internal prototype to avoid an error.
32087   Use char because int might match the return type of a GCC
32088   builtin and then its argument prototype would still apply.  */
32089#ifdef __cplusplus
32090extern "C"
32091#endif
32092char wmf_lite_create ();
32093int
32094main ()
32095{
32096return wmf_lite_create ();
32097  ;
32098  return 0;
32099}
32100_ACEOF
32101if ac_fn_c_try_link "$LINENO"; then :
32102  ac_cv_lib_wmflite_wmf_lite_create=yes
32103else
32104  ac_cv_lib_wmflite_wmf_lite_create=no
32105fi
32106rm -f core conftest.err conftest.$ac_objext \
32107    conftest$ac_exeext conftest.$ac_ext
32108LIBS=$ac_check_lib_save_LIBS
32109fi
32110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32111$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32112if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32113  have_libwmflite='yes'
32114fi
32115
32116        if test "$have_libwmflite" = 'yes'; then
32117
32118$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32119
32120            WMF_LIBS='-lwmflite'
32121            LIBS="$WMF_LIBS $LIBS"
32122            have_wmf='yes'
32123        else
32124            WMF_LIBS_DEPS=''
32125            WMF_CONFIG_LIBS=`libwmf-config --libs`
32126            for lib in xml2 expat freetype jpeg png z; do
32127                testlib="-l${lib}"
32128                echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32129            done
32130            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32131$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32132if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32133  $as_echo_n "(cached) " >&6
32134else
32135  ac_check_lib_save_LIBS=$LIBS
32136LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32138/* end confdefs.h.  */
32139
32140/* Override any GCC internal prototype to avoid an error.
32141   Use char because int might match the return type of a GCC
32142   builtin and then its argument prototype would still apply.  */
32143#ifdef __cplusplus
32144extern "C"
32145#endif
32146char wmf_api_create ();
32147int
32148main ()
32149{
32150return wmf_api_create ();
32151  ;
32152  return 0;
32153}
32154_ACEOF
32155if ac_fn_c_try_link "$LINENO"; then :
32156  ac_cv_lib_wmf_wmf_api_create=yes
32157else
32158  ac_cv_lib_wmf_wmf_api_create=no
32159fi
32160rm -f core conftest.err conftest.$ac_objext \
32161    conftest$ac_exeext conftest.$ac_ext
32162LIBS=$ac_check_lib_save_LIBS
32163fi
32164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32165$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32166if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32167  have_libwmf='yes'
32168fi
32169
32170            if test "$have_libwmf" = 'yes'; then
32171
32172$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
32173
32174                WMF_LIBS='-lwmf'
32175                LIBS="$WMF_LIBS $LIBS"
32176                have_wmf='yes'
32177            else
32178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32179$as_echo "no -- some components failed test" >&6; }
32180                have_wmf='no (failed tests)'
32181                have_wmflite='no (failed tests)'
32182                LIBS="$OLIBS"
32183                WMF_LIBS=''
32184            fi
32185        fi
32186    fi
32187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32188$as_echo_n "checking if WMF package is complete... " >&6; }
32189    if test "$have_wmf" = 'yes'; then
32190        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32191$as_echo "yes" >&6; }
32192    else
32193        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32194$as_echo "no" >&6; }
32195    fi
32196fi
32197 if test "$have_wmf" = 'yes'; then
32198  WMF_DELEGATE_TRUE=
32199  WMF_DELEGATE_FALSE='#'
32200else
32201  WMF_DELEGATE_TRUE='#'
32202  WMF_DELEGATE_FALSE=
32203fi
32204
32205
32206
32207
32208
32209
32210#
32211# Check for XML delegate library.
32212#
32213
32214# Check whether --with-xml was given.
32215if test "${with_xml+set}" = set; then :
32216  withval=$with_xml; with_xml=$withval
32217else
32218  with_xml='yes'
32219fi
32220
32221
32222if test "$with_xml" != 'yes' ; then
32223    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32224fi
32225
32226have_xml='no'
32227XML_LIBS=''
32228if test "$with_xml" != 'no'; then
32229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32230$as_echo "-------------------------------------------------------------" >&6; }
32231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32232$as_echo_n "checking for XML... " >&6; }
32233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32234$as_echo "" >&6; }
32235    PERSIST_LDFLAGS=$LDFLAGS
32236    PERSIST_CPPFLAGS=$CPPFLAGS
32237    xml2_config=''
32238    # Extract the first word of "xml2-config", so it can be a program name with args.
32239set dummy xml2-config; ac_word=$2
32240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32241$as_echo_n "checking for $ac_word... " >&6; }
32242if ${ac_cv_path_xml2_config+:} false; then :
32243  $as_echo_n "(cached) " >&6
32244else
32245  case $xml2_config in
32246  [\\/]* | ?:[\\/]*)
32247  ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32248  ;;
32249  *)
32250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32251for as_dir in $PATH
32252do
32253  IFS=$as_save_IFS
32254  test -z "$as_dir" && as_dir=.
32255    for ac_exec_ext in '' $ac_executable_extensions; do
32256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32257    ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32259    break 2
32260  fi
32261done
32262  done
32263IFS=$as_save_IFS
32264
32265  ;;
32266esac
32267fi
32268xml2_config=$ac_cv_path_xml2_config
32269if test -n "$xml2_config"; then
32270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32271$as_echo "$xml2_config" >&6; }
32272else
32273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32274$as_echo "no" >&6; }
32275fi
32276
32277    if test -n "$xml2_config"; then
32278        # Debian installs libxml headers under /usr/include/libxml2/libxml with
32279        # the shared library installed under /usr/lib, whereas the package
32280        # installs itself under $prefix/libxml and $prefix/lib.
32281        xml2_prefix=`${xml2_config} --prefix`
32282        if test -d "${xml2_prefix}/include/libxml2"; then
32283            CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32284        fi
32285        if test "${xml2_prefix}" != '/usr'; then
32286            LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32287        fi
32288    fi
32289    failed=0
32290    passed=0
32291    ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32292if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32293  passed=`expr $passed + 1`
32294else
32295  failed=`expr $failed + 1`
32296fi
32297
32298
32299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32300$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32301if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32302  $as_echo_n "(cached) " >&6
32303else
32304  ac_check_lib_save_LIBS=$LIBS
32305LIBS="-lxml2  $LIBS"
32306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32307/* end confdefs.h.  */
32308
32309/* Override any GCC internal prototype to avoid an error.
32310   Use char because int might match the return type of a GCC
32311   builtin and then its argument prototype would still apply.  */
32312#ifdef __cplusplus
32313extern "C"
32314#endif
32315char xmlSAXVersion ();
32316int
32317main ()
32318{
32319return xmlSAXVersion ();
32320  ;
32321  return 0;
32322}
32323_ACEOF
32324if ac_fn_c_try_link "$LINENO"; then :
32325  ac_cv_lib_xml2_xmlSAXVersion=yes
32326else
32327  ac_cv_lib_xml2_xmlSAXVersion=no
32328fi
32329rm -f core conftest.err conftest.$ac_objext \
32330    conftest$ac_exeext conftest.$ac_ext
32331LIBS=$ac_check_lib_save_LIBS
32332fi
32333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32334$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32335if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32336  passed=`expr $passed + 1`
32337else
32338  failed=`expr $failed + 1`
32339fi
32340
32341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32342$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32343if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32344  $as_echo_n "(cached) " >&6
32345else
32346  ac_check_lib_save_LIBS=$LIBS
32347LIBS="-lxml2  $LIBS"
32348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349/* end confdefs.h.  */
32350
32351/* Override any GCC internal prototype to avoid an error.
32352   Use char because int might match the return type of a GCC
32353   builtin and then its argument prototype would still apply.  */
32354#ifdef __cplusplus
32355extern "C"
32356#endif
32357char xmlParseChunk ();
32358int
32359main ()
32360{
32361return xmlParseChunk ();
32362  ;
32363  return 0;
32364}
32365_ACEOF
32366if ac_fn_c_try_link "$LINENO"; then :
32367  ac_cv_lib_xml2_xmlParseChunk=yes
32368else
32369  ac_cv_lib_xml2_xmlParseChunk=no
32370fi
32371rm -f core conftest.err conftest.$ac_objext \
32372    conftest$ac_exeext conftest.$ac_ext
32373LIBS=$ac_check_lib_save_LIBS
32374fi
32375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32376$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32377if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32378  passed=`expr $passed + 1`
32379else
32380  failed=`expr $failed + 1`
32381fi
32382
32383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32384$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32385if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32386  $as_echo_n "(cached) " >&6
32387else
32388  ac_check_lib_save_LIBS=$LIBS
32389LIBS="-lxml2  $LIBS"
32390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32391/* end confdefs.h.  */
32392
32393/* Override any GCC internal prototype to avoid an error.
32394   Use char because int might match the return type of a GCC
32395   builtin and then its argument prototype would still apply.  */
32396#ifdef __cplusplus
32397extern "C"
32398#endif
32399char xmlCreatePushParserCtxt ();
32400int
32401main ()
32402{
32403return xmlCreatePushParserCtxt ();
32404  ;
32405  return 0;
32406}
32407_ACEOF
32408if ac_fn_c_try_link "$LINENO"; then :
32409  ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32410else
32411  ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32412fi
32413rm -f core conftest.err conftest.$ac_objext \
32414    conftest$ac_exeext conftest.$ac_ext
32415LIBS=$ac_check_lib_save_LIBS
32416fi
32417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32418$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32419if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32420  passed=`expr $passed + 1`
32421else
32422  failed=`expr $failed + 1`
32423fi
32424
32425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32426$as_echo_n "checking if XML package is complete... " >&6; }
32427    if test $passed -gt 0; then
32428        if test $failed -gt 0; then
32429            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32430$as_echo "no -- some components failed test" >&6; }
32431            have_xml='no (failed tests)'
32432            LDFLAGS="$PERSIST_LDFLAGS"
32433            CPPFLAGS="$PERSIST_CPPFLAGS"
32434        else
32435            XML_LIBS='-lxml2'
32436            LIBS="$XML_LIBS $LIBS"
32437
32438$as_echo "#define XML_DELEGATE 1" >>confdefs.h
32439
32440            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32441$as_echo "yes" >&6; }
32442            have_xml='yes'
32443        fi
32444    else
32445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32446$as_echo "no" >&6; }
32447    fi
32448fi
32449 if test "$have_xml" = 'yes'; then
32450  XML_DELEGATE_TRUE=
32451  XML_DELEGATE_FALSE='#'
32452else
32453  XML_DELEGATE_TRUE='#'
32454  XML_DELEGATE_FALSE=
32455fi
32456
32457
32458
32459
32460# Substitute compiler name to build/link PerlMagick
32461#
32462
32463
32464#
32465# Configure install Paths
32466#
32467
32468# Path to ImageMagick header files
32469INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32470INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32471DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
32472case "${build_os}" in
32473  mingw* )
32474    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32475    ;;
32476esac
32477
32478cat >>confdefs.h <<_ACEOF
32479#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32480_ACEOF
32481
32482
32483
32484# Path to ImageMagick header files (arch part)
32485INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32486DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32487case "${build_os}" in
32488  mingw* )
32489    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32490    ;;
32491esac
32492
32493cat >>confdefs.h <<_ACEOF
32494#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32495_ACEOF
32496
32497
32498
32499# Subdirectory under lib to place ImageMagick lib files
32500LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32501
32502cat >>confdefs.h <<_ACEOF
32503#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32504_ACEOF
32505
32506
32507# Path to ImageMagick bin directory
32508EXECUTABLE_PATH="${BIN_DIR}"
32509DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32510case "${build_os}" in
32511  mingw* )
32512    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32513    ;;
32514esac
32515
32516cat >>confdefs.h <<_ACEOF
32517#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32518_ACEOF
32519
32520
32521
32522# Path to ImageMagick lib
32523LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32524DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32525case "${build_os}" in
32526  mingw* )
32527    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32528    ;;
32529esac
32530
32531cat >>confdefs.h <<_ACEOF
32532#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32533_ACEOF
32534
32535
32536
32537#
32538# path to local binaries
32539if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32540   LIB_BIN_BASEDIRNAME="bin"
32541fi
32542
32543cat >>confdefs.h <<_ACEOF
32544#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32545_ACEOF
32546
32547
32548
32549if test "x$LIB_BIN_DIR" = "x"; then
32550   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32551fi
32552
32553
32554LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32555
32556LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32557
32558
32559#
32560# path to modules lib
32561if test "x$MODULES_BASEDIRNAME" = "x"; then
32562   MODULES_BASEDIRNAME="modules"
32563fi
32564
32565cat >>confdefs.h <<_ACEOF
32566#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
32567_ACEOF
32568
32569
32570
32571if test "x$MODULES_DIRNAME" = "x"; then
32572  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32573else
32574
32575cat >>confdefs.h <<_ACEOF
32576#define MODULES_DIRNAME "$MODULES_DIRNAME"
32577_ACEOF
32578
32579fi
32580
32581
32582MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
32583
32584MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32585
32586
32587#
32588# path to coders lib
32589if test "x$CODER_DIRNAME" = "x"; then
32590   CODER_DIRNAME="coders"
32591fi
32592
32593cat >>confdefs.h <<_ACEOF
32594#define CODER_DIRNAME "$CODER_DIRNAME"
32595_ACEOF
32596
32597
32598
32599CODER_RELATIVE_PATH="${CODER_DIRNAME}"
32600CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
32601
32602
32603#
32604# Subdirectory under lib to place ImageMagick filter module files
32605#
32606# path to coders lib
32607if test "x$FILTER_DIRNAME" = "x"; then
32608   FILTER_DIRNAME="filters"
32609fi
32610
32611cat >>confdefs.h <<_ACEOF
32612#define FILTER_DIRNAME "$FILTER_DIRNAME"
32613_ACEOF
32614
32615
32616
32617FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
32618FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
32619
32620
32621#
32622# Path to ImageMagick documentation files
32623DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32624DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32625DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
32626case "${build_os}" in
32627  mingw* )
32628    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32629    ;;
32630esac
32631
32632cat >>confdefs.h <<_ACEOF
32633#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32634_ACEOF
32635
32636
32637
32638#
32639# Enable/Disable documentation
32640# Check whether --enable-docs was given.
32641if test "${enable_docs+set}" = set; then :
32642  enableval=$enable_docs; wantdocs=$enableval
32643else
32644  wantdocs=yes
32645fi
32646
32647 if test "$wantdocs" = "yes"; then
32648  INSTALL_DOC_TRUE=
32649  INSTALL_DOC_FALSE='#'
32650else
32651  INSTALL_DOC_TRUE='#'
32652  INSTALL_DOC_FALSE=
32653fi
32654
32655
32656# Subdirectory to place architecture-dependent configuration files
32657CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32658
32659cat >>confdefs.h <<_ACEOF
32660#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32661_ACEOF
32662
32663CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32664DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32665case "${build_os}" in
32666  mingw* )
32667    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32668    ;;
32669esac
32670
32671cat >>confdefs.h <<_ACEOF
32672#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32673_ACEOF
32674
32675
32676
32677# Subdirectory to place architecture-independent configuration files
32678SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32679
32680cat >>confdefs.h <<_ACEOF
32681#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32682_ACEOF
32683
32684SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32685DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32686case "${build_os}" in
32687  mingw* )
32688    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32689    ;;
32690esac
32691
32692cat >>confdefs.h <<_ACEOF
32693#define SHARE_PATH "$DEFINE_SHARE_PATH"
32694_ACEOF
32695
32696
32697
32698#
32699# Subdirectory to place architecture-dependent configuration files.
32700if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32701   SHAREARCH_BASEDIRNAME="config"
32702fi
32703
32704cat >>confdefs.h <<_ACEOF
32705#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
32706_ACEOF
32707
32708
32709
32710if test "x$SHAREARCH_DIRNAME" = "x"; then
32711  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32712else
32713
32714cat >>confdefs.h <<_ACEOF
32715#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
32716_ACEOF
32717
32718fi
32719
32720
32721SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32722
32723SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
32724
32725
32726#
32727# program_transform_name is formed for use in a Makefile, so create a
32728# modified version for use in a shell script.
32729configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32730
32731# Default delegate definitions
32732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32733$as_echo "-------------------------------------------------------------" >&6; }
32734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32735$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32737$as_echo "" >&6; }
32738AutotraceDecodeDelegateDefault='autotrace'
32739BlenderDecodeDelegateDefault='blender'
32740BZIPDelegateDefault='bzip2'
32741BrowseDelegateDefault='xdg-open'
32742CatDelegateDefault='cat'
32743DNGDecodeDelegateDefault='ufraw-batch'
32744DOCDecodeDelegateDefault='soffice'
32745GVCDecodeDelegateDefault='dot'
32746DVIDecodeDelegateDefault='dvips'
32747EchoDelegateDefault='echo'
32748EditorDelegateDefault='xterm'
32749ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32750DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32751MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32752GnuplotDecodeDelegateDefault='gnuplot'
32753HPGLDecodeDelegateDefault='hp2xx'
32754HTMLDecodeDelegateDefault='html2ps'
32755ILBMDecodeDelegateDefault='ilbmtoppm'
32756ILBMEncodeDelegateDefault='ppmtoilbm'
32757JXRDecodeDelegateDefault='JxrDecApp'
32758JXREncodeDelegateDefault='JxrEncApp'
32759LPDelegateDefault='lp'
32760LPRDelegateDefault='lpr'
32761LaunchDelegateDefault='gimp'
32762MANDelegateDefault='groff'
32763MPEGDecodeDelegateDefault='avconv'
32764MPEGEncodeDelegateDefault='avconv'
32765MrSIDDecodeDelegateDefault='mrsidgeodecode'
32766MVDelegateDefault='mv'
32767PCLDelegateDefault='pcl6'
32768PGPDecodeDelegateDefault='pgpv'
32769POVDelegateDefault='povray'
32770if test "$native_win32_build" = 'yes'; then
32771    PSDelegateDefault='gswin32c'
32772elif test "$gslib_framework" = 'yes'; then
32773    PSDelegateDefault='gsc'
32774else
32775    PSDelegateDefault='gs'
32776fi
32777RLEEncodeDelegateDefault='rawtorle'
32778RMDelegateDefault='rm'
32779RSVGDecodeDelegateDefault='rsvg-convert'
32780SCANDecodeDelegateDefault='scanimage'
32781SVGDecodeDelegateDefault='inkscape'
32782TXTDelegateDefault='enscript'
32783UniconvertorDelegateDefault='uniconvertor'
32784WebPDecodeDelegateDefault='dwebp'
32785WebPEncodeDelegateDefault='cwebp'
32786WMFDecodeDelegateDefault='wmf2eps'
32787WWWDecodeDelegateDefault='curl'
32788XPSDelegateDefault='gxps'
32789ZipDelegateDefault='gzip'
32790
32791# Search for delegates
32792# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32793set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32795$as_echo_n "checking for $ac_word... " >&6; }
32796if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32797  $as_echo_n "(cached) " >&6
32798else
32799  case $AutotraceDecodeDelegate in
32800  [\\/]* | ?:[\\/]*)
32801  ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32802  ;;
32803  *)
32804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32805for as_dir in $PATH
32806do
32807  IFS=$as_save_IFS
32808  test -z "$as_dir" && as_dir=.
32809    for ac_exec_ext in '' $ac_executable_extensions; do
32810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32811    ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32813    break 2
32814  fi
32815done
32816  done
32817IFS=$as_save_IFS
32818
32819  test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32820  ;;
32821esac
32822fi
32823AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32824if test -n "$AutotraceDecodeDelegate"; then
32825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32826$as_echo "$AutotraceDecodeDelegate" >&6; }
32827else
32828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32829$as_echo "no" >&6; }
32830fi
32831
32832
32833# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32834set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32836$as_echo_n "checking for $ac_word... " >&6; }
32837if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32838  $as_echo_n "(cached) " >&6
32839else
32840  case $BlenderDecodeDelegate in
32841  [\\/]* | ?:[\\/]*)
32842  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32843  ;;
32844  *)
32845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848  IFS=$as_save_IFS
32849  test -z "$as_dir" && as_dir=.
32850    for ac_exec_ext in '' $ac_executable_extensions; do
32851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32852    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32854    break 2
32855  fi
32856done
32857  done
32858IFS=$as_save_IFS
32859
32860  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32861  ;;
32862esac
32863fi
32864BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32865if test -n "$BlenderDecodeDelegate"; then
32866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
32867$as_echo "$BlenderDecodeDelegate" >&6; }
32868else
32869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32870$as_echo "no" >&6; }
32871fi
32872
32873
32874# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32875set dummy "$BZIPDelegateDefault"; ac_word=$2
32876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32877$as_echo_n "checking for $ac_word... " >&6; }
32878if ${ac_cv_path_BZIPDelegate+:} false; then :
32879  $as_echo_n "(cached) " >&6
32880else
32881  case $BZIPDelegate in
32882  [\\/]* | ?:[\\/]*)
32883  ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32884  ;;
32885  *)
32886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32887for as_dir in $PATH
32888do
32889  IFS=$as_save_IFS
32890  test -z "$as_dir" && as_dir=.
32891    for ac_exec_ext in '' $ac_executable_extensions; do
32892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32893    ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
32894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32895    break 2
32896  fi
32897done
32898  done
32899IFS=$as_save_IFS
32900
32901  test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32902  ;;
32903esac
32904fi
32905BZIPDelegate=$ac_cv_path_BZIPDelegate
32906if test -n "$BZIPDelegate"; then
32907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
32908$as_echo "$BZIPDelegate" >&6; }
32909else
32910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32911$as_echo "no" >&6; }
32912fi
32913
32914
32915for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32916do
32917  # Extract the first word of "$ac_prog", so it can be a program name with args.
32918set dummy $ac_prog; ac_word=$2
32919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32920$as_echo_n "checking for $ac_word... " >&6; }
32921if ${ac_cv_path_BrowseDelegate+:} false; then :
32922  $as_echo_n "(cached) " >&6
32923else
32924  case $BrowseDelegate in
32925  [\\/]* | ?:[\\/]*)
32926  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32927  ;;
32928  *)
32929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32930for as_dir in $PATH
32931do
32932  IFS=$as_save_IFS
32933  test -z "$as_dir" && as_dir=.
32934    for ac_exec_ext in '' $ac_executable_extensions; do
32935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32936    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
32937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32938    break 2
32939  fi
32940done
32941  done
32942IFS=$as_save_IFS
32943
32944  ;;
32945esac
32946fi
32947BrowseDelegate=$ac_cv_path_BrowseDelegate
32948if test -n "$BrowseDelegate"; then
32949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
32950$as_echo "$BrowseDelegate" >&6; }
32951else
32952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32953$as_echo "no" >&6; }
32954fi
32955
32956
32957  test -n "$BrowseDelegate" && break
32958done
32959test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32960
32961# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32962set dummy "$CatDelegateDefault"; ac_word=$2
32963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32964$as_echo_n "checking for $ac_word... " >&6; }
32965if ${ac_cv_path_CatDelegate+:} false; then :
32966  $as_echo_n "(cached) " >&6
32967else
32968  case $CatDelegate in
32969  [\\/]* | ?:[\\/]*)
32970  ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32971  ;;
32972  *)
32973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32974for as_dir in $PATH
32975do
32976  IFS=$as_save_IFS
32977  test -z "$as_dir" && as_dir=.
32978    for ac_exec_ext in '' $ac_executable_extensions; do
32979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32980    ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
32981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32982    break 2
32983  fi
32984done
32985  done
32986IFS=$as_save_IFS
32987
32988  test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32989  ;;
32990esac
32991fi
32992CatDelegate=$ac_cv_path_CatDelegate
32993if test -n "$CatDelegate"; then
32994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
32995$as_echo "$CatDelegate" >&6; }
32996else
32997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32998$as_echo "no" >&6; }
32999fi
33000
33001
33002# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33003set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
33004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33005$as_echo_n "checking for $ac_word... " >&6; }
33006if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
33007  $as_echo_n "(cached) " >&6
33008else
33009  case $DNGDecodeDelegate in
33010  [\\/]* | ?:[\\/]*)
33011  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33012  ;;
33013  *)
33014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015for as_dir in $PATH
33016do
33017  IFS=$as_save_IFS
33018  test -z "$as_dir" && as_dir=.
33019    for ac_exec_ext in '' $ac_executable_extensions; do
33020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33021    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33023    break 2
33024  fi
33025done
33026  done
33027IFS=$as_save_IFS
33028
33029  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33030  ;;
33031esac
33032fi
33033DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33034if test -n "$DNGDecodeDelegate"; then
33035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
33036$as_echo "$DNGDecodeDelegate" >&6; }
33037else
33038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33039$as_echo "no" >&6; }
33040fi
33041
33042
33043# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33044set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
33045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33046$as_echo_n "checking for $ac_word... " >&6; }
33047if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
33048  $as_echo_n "(cached) " >&6
33049else
33050  case $DOCDecodeDelegate in
33051  [\\/]* | ?:[\\/]*)
33052  ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
33053  ;;
33054  *)
33055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33056for as_dir in $PATH
33057do
33058  IFS=$as_save_IFS
33059  test -z "$as_dir" && as_dir=.
33060    for ac_exec_ext in '' $ac_executable_extensions; do
33061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33062    ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33064    break 2
33065  fi
33066done
33067  done
33068IFS=$as_save_IFS
33069
33070  test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
33071  ;;
33072esac
33073fi
33074DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33075if test -n "$DOCDecodeDelegate"; then
33076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33077$as_echo "$DOCDecodeDelegate" >&6; }
33078else
33079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33080$as_echo "no" >&6; }
33081fi
33082
33083
33084# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33085set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33087$as_echo_n "checking for $ac_word... " >&6; }
33088if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33089  $as_echo_n "(cached) " >&6
33090else
33091  case $DVIDecodeDelegate in
33092  [\\/]* | ?:[\\/]*)
33093  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33094  ;;
33095  *)
33096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33097for as_dir in $PATH
33098do
33099  IFS=$as_save_IFS
33100  test -z "$as_dir" && as_dir=.
33101    for ac_exec_ext in '' $ac_executable_extensions; do
33102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33103    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33105    break 2
33106  fi
33107done
33108  done
33109IFS=$as_save_IFS
33110
33111  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33112  ;;
33113esac
33114fi
33115DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33116if test -n "$DVIDecodeDelegate"; then
33117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33118$as_echo "$DVIDecodeDelegate" >&6; }
33119else
33120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33121$as_echo "no" >&6; }
33122fi
33123
33124
33125# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33126set dummy "$ConvertDelegateDefault"; ac_word=$2
33127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33128$as_echo_n "checking for $ac_word... " >&6; }
33129if ${ac_cv_path_ConvertDelegate+:} false; then :
33130  $as_echo_n "(cached) " >&6
33131else
33132  case $ConvertDelegate in
33133  [\\/]* | ?:[\\/]*)
33134  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33135  ;;
33136  *)
33137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33138for as_dir in $PATH
33139do
33140  IFS=$as_save_IFS
33141  test -z "$as_dir" && as_dir=.
33142    for ac_exec_ext in '' $ac_executable_extensions; do
33143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33144    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33146    break 2
33147  fi
33148done
33149  done
33150IFS=$as_save_IFS
33151
33152  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33153  ;;
33154esac
33155fi
33156ConvertDelegate=$ac_cv_path_ConvertDelegate
33157if test -n "$ConvertDelegate"; then
33158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33159$as_echo "$ConvertDelegate" >&6; }
33160else
33161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33162$as_echo "no" >&6; }
33163fi
33164
33165
33166# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33167set dummy "$DisplayDelegateDefault"; ac_word=$2
33168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33169$as_echo_n "checking for $ac_word... " >&6; }
33170if ${ac_cv_path_DisplayDelegate+:} false; then :
33171  $as_echo_n "(cached) " >&6
33172else
33173  case $DisplayDelegate in
33174  [\\/]* | ?:[\\/]*)
33175  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33176  ;;
33177  *)
33178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33179for as_dir in $PATH
33180do
33181  IFS=$as_save_IFS
33182  test -z "$as_dir" && as_dir=.
33183    for ac_exec_ext in '' $ac_executable_extensions; do
33184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33185    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33187    break 2
33188  fi
33189done
33190  done
33191IFS=$as_save_IFS
33192
33193  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33194  ;;
33195esac
33196fi
33197DisplayDelegate=$ac_cv_path_DisplayDelegate
33198if test -n "$DisplayDelegate"; then
33199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33200$as_echo "$DisplayDelegate" >&6; }
33201else
33202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33203$as_echo "no" >&6; }
33204fi
33205
33206
33207# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33208set dummy "$EchoDelegateDefault"; ac_word=$2
33209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33210$as_echo_n "checking for $ac_word... " >&6; }
33211if ${ac_cv_path_EchoDelegate+:} false; then :
33212  $as_echo_n "(cached) " >&6
33213else
33214  case $EchoDelegate in
33215  [\\/]* | ?:[\\/]*)
33216  ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33217  ;;
33218  *)
33219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33220for as_dir in $PATH
33221do
33222  IFS=$as_save_IFS
33223  test -z "$as_dir" && as_dir=.
33224    for ac_exec_ext in '' $ac_executable_extensions; do
33225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33226    ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
33227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33228    break 2
33229  fi
33230done
33231  done
33232IFS=$as_save_IFS
33233
33234  test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33235  ;;
33236esac
33237fi
33238EchoDelegate=$ac_cv_path_EchoDelegate
33239if test -n "$EchoDelegate"; then
33240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33241$as_echo "$EchoDelegate" >&6; }
33242else
33243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33244$as_echo "no" >&6; }
33245fi
33246
33247
33248# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33249set dummy "$EditorDelegateDefault"; ac_word=$2
33250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33251$as_echo_n "checking for $ac_word... " >&6; }
33252if ${ac_cv_path_EditorDelegate+:} false; then :
33253  $as_echo_n "(cached) " >&6
33254else
33255  case $EditorDelegate in
33256  [\\/]* | ?:[\\/]*)
33257  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33258  ;;
33259  *)
33260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33261for as_dir in $PATH
33262do
33263  IFS=$as_save_IFS
33264  test -z "$as_dir" && as_dir=.
33265    for ac_exec_ext in '' $ac_executable_extensions; do
33266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33267    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33269    break 2
33270  fi
33271done
33272  done
33273IFS=$as_save_IFS
33274
33275  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33276  ;;
33277esac
33278fi
33279EditorDelegate=$ac_cv_path_EditorDelegate
33280if test -n "$EditorDelegate"; then
33281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33282$as_echo "$EditorDelegate" >&6; }
33283else
33284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33285$as_echo "no" >&6; }
33286fi
33287
33288
33289# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33290set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
33291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33292$as_echo_n "checking for $ac_word... " >&6; }
33293if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
33294  $as_echo_n "(cached) " >&6
33295else
33296  case $GnuplotDecodeDelegate in
33297  [\\/]* | ?:[\\/]*)
33298  ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33299  ;;
33300  *)
33301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33302for as_dir in $PATH
33303do
33304  IFS=$as_save_IFS
33305  test -z "$as_dir" && as_dir=.
33306    for ac_exec_ext in '' $ac_executable_extensions; do
33307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33308    ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33310    break 2
33311  fi
33312done
33313  done
33314IFS=$as_save_IFS
33315
33316  test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33317  ;;
33318esac
33319fi
33320GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33321if test -n "$GnuplotDecodeDelegate"; then
33322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
33323$as_echo "$GnuplotDecodeDelegate" >&6; }
33324else
33325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33326$as_echo "no" >&6; }
33327fi
33328
33329
33330# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33331set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33333$as_echo_n "checking for $ac_word... " >&6; }
33334if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33335  $as_echo_n "(cached) " >&6
33336else
33337  case $GVCDecodeDelegate in
33338  [\\/]* | ?:[\\/]*)
33339  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33340  ;;
33341  *)
33342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33343for as_dir in $PATH
33344do
33345  IFS=$as_save_IFS
33346  test -z "$as_dir" && as_dir=.
33347    for ac_exec_ext in '' $ac_executable_extensions; do
33348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33349    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33351    break 2
33352  fi
33353done
33354  done
33355IFS=$as_save_IFS
33356
33357  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33358  ;;
33359esac
33360fi
33361GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33362if test -n "$GVCDecodeDelegate"; then
33363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33364$as_echo "$GVCDecodeDelegate" >&6; }
33365else
33366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33367$as_echo "no" >&6; }
33368fi
33369
33370
33371# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33372set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
33373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33374$as_echo_n "checking for $ac_word... " >&6; }
33375if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
33376  $as_echo_n "(cached) " >&6
33377else
33378  case $HPGLDecodeDelegate in
33379  [\\/]* | ?:[\\/]*)
33380  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33381  ;;
33382  *)
33383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33384for as_dir in $PATH
33385do
33386  IFS=$as_save_IFS
33387  test -z "$as_dir" && as_dir=.
33388    for ac_exec_ext in '' $ac_executable_extensions; do
33389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33390    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33392    break 2
33393  fi
33394done
33395  done
33396IFS=$as_save_IFS
33397
33398  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33399  ;;
33400esac
33401fi
33402HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33403if test -n "$HPGLDecodeDelegate"; then
33404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
33405$as_echo "$HPGLDecodeDelegate" >&6; }
33406else
33407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33408$as_echo "no" >&6; }
33409fi
33410
33411
33412# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33413set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
33414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33415$as_echo_n "checking for $ac_word... " >&6; }
33416if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
33417  $as_echo_n "(cached) " >&6
33418else
33419  case $HTMLDecodeDelegate in
33420  [\\/]* | ?:[\\/]*)
33421  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33422  ;;
33423  *)
33424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33425for as_dir in $PATH
33426do
33427  IFS=$as_save_IFS
33428  test -z "$as_dir" && as_dir=.
33429    for ac_exec_ext in '' $ac_executable_extensions; do
33430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33431    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33433    break 2
33434  fi
33435done
33436  done
33437IFS=$as_save_IFS
33438
33439  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33440  ;;
33441esac
33442fi
33443HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33444if test -n "$HTMLDecodeDelegate"; then
33445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
33446$as_echo "$HTMLDecodeDelegate" >&6; }
33447else
33448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33449$as_echo "no" >&6; }
33450fi
33451
33452
33453# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33454set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
33455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33456$as_echo_n "checking for $ac_word... " >&6; }
33457if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
33458  $as_echo_n "(cached) " >&6
33459else
33460  case $ILBMDecodeDelegate in
33461  [\\/]* | ?:[\\/]*)
33462  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33463  ;;
33464  *)
33465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468  IFS=$as_save_IFS
33469  test -z "$as_dir" && as_dir=.
33470    for ac_exec_ext in '' $ac_executable_extensions; do
33471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33472    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33474    break 2
33475  fi
33476done
33477  done
33478IFS=$as_save_IFS
33479
33480  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33481  ;;
33482esac
33483fi
33484ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33485if test -n "$ILBMDecodeDelegate"; then
33486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
33487$as_echo "$ILBMDecodeDelegate" >&6; }
33488else
33489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33490$as_echo "no" >&6; }
33491fi
33492
33493
33494# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33495set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
33496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33497$as_echo_n "checking for $ac_word... " >&6; }
33498if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
33499  $as_echo_n "(cached) " >&6
33500else
33501  case $ILBMEncodeDelegate in
33502  [\\/]* | ?:[\\/]*)
33503  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33504  ;;
33505  *)
33506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33507for as_dir in $PATH
33508do
33509  IFS=$as_save_IFS
33510  test -z "$as_dir" && as_dir=.
33511    for ac_exec_ext in '' $ac_executable_extensions; do
33512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33513    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33515    break 2
33516  fi
33517done
33518  done
33519IFS=$as_save_IFS
33520
33521  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33522  ;;
33523esac
33524fi
33525ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33526if test -n "$ILBMEncodeDelegate"; then
33527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
33528$as_echo "$ILBMEncodeDelegate" >&6; }
33529else
33530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33531$as_echo "no" >&6; }
33532fi
33533
33534
33535# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33536set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33538$as_echo_n "checking for $ac_word... " >&6; }
33539if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33540  $as_echo_n "(cached) " >&6
33541else
33542  case $JXRDecodeDelegate in
33543  [\\/]* | ?:[\\/]*)
33544  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33545  ;;
33546  *)
33547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33548for as_dir in $PATH
33549do
33550  IFS=$as_save_IFS
33551  test -z "$as_dir" && as_dir=.
33552    for ac_exec_ext in '' $ac_executable_extensions; do
33553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33554    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33556    break 2
33557  fi
33558done
33559  done
33560IFS=$as_save_IFS
33561
33562  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33563  ;;
33564esac
33565fi
33566JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33567if test -n "$JXRDecodeDelegate"; then
33568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33569$as_echo "$JXRDecodeDelegate" >&6; }
33570else
33571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33572$as_echo "no" >&6; }
33573fi
33574
33575
33576# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33577set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33579$as_echo_n "checking for $ac_word... " >&6; }
33580if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33581  $as_echo_n "(cached) " >&6
33582else
33583  case $JXREncodeDelegate in
33584  [\\/]* | ?:[\\/]*)
33585  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33586  ;;
33587  *)
33588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33589for as_dir in $PATH
33590do
33591  IFS=$as_save_IFS
33592  test -z "$as_dir" && as_dir=.
33593    for ac_exec_ext in '' $ac_executable_extensions; do
33594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33595    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33597    break 2
33598  fi
33599done
33600  done
33601IFS=$as_save_IFS
33602
33603  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33604  ;;
33605esac
33606fi
33607JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33608if test -n "$JXREncodeDelegate"; then
33609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33610$as_echo "$JXREncodeDelegate" >&6; }
33611else
33612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614fi
33615
33616
33617# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33618set dummy "$LPDelegateDefault"; ac_word=$2
33619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33620$as_echo_n "checking for $ac_word... " >&6; }
33621if ${ac_cv_path_LPDelegate+:} false; then :
33622  $as_echo_n "(cached) " >&6
33623else
33624  case $LPDelegate in
33625  [\\/]* | ?:[\\/]*)
33626  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33627  ;;
33628  *)
33629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33630for as_dir in $PATH
33631do
33632  IFS=$as_save_IFS
33633  test -z "$as_dir" && as_dir=.
33634    for ac_exec_ext in '' $ac_executable_extensions; do
33635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33636    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
33637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33638    break 2
33639  fi
33640done
33641  done
33642IFS=$as_save_IFS
33643
33644  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33645  ;;
33646esac
33647fi
33648LPDelegate=$ac_cv_path_LPDelegate
33649if test -n "$LPDelegate"; then
33650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
33651$as_echo "$LPDelegate" >&6; }
33652else
33653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33654$as_echo "no" >&6; }
33655fi
33656
33657
33658# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33659set dummy "$LPRDelegateDefault"; ac_word=$2
33660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33661$as_echo_n "checking for $ac_word... " >&6; }
33662if ${ac_cv_path_LPRDelegate+:} false; then :
33663  $as_echo_n "(cached) " >&6
33664else
33665  case $LPRDelegate in
33666  [\\/]* | ?:[\\/]*)
33667  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33668  ;;
33669  *)
33670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33671for as_dir in $PATH
33672do
33673  IFS=$as_save_IFS
33674  test -z "$as_dir" && as_dir=.
33675    for ac_exec_ext in '' $ac_executable_extensions; do
33676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33677    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
33678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33679    break 2
33680  fi
33681done
33682  done
33683IFS=$as_save_IFS
33684
33685  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33686  ;;
33687esac
33688fi
33689LPRDelegate=$ac_cv_path_LPRDelegate
33690if test -n "$LPRDelegate"; then
33691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33692$as_echo "$LPRDelegate" >&6; }
33693else
33694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33695$as_echo "no" >&6; }
33696fi
33697
33698
33699# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33700set dummy "$LaunchDelegateDefault"; ac_word=$2
33701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33702$as_echo_n "checking for $ac_word... " >&6; }
33703if ${ac_cv_path_LaunchDelegate+:} false; then :
33704  $as_echo_n "(cached) " >&6
33705else
33706  case $LaunchDelegate in
33707  [\\/]* | ?:[\\/]*)
33708  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33709  ;;
33710  *)
33711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33712for as_dir in $PATH
33713do
33714  IFS=$as_save_IFS
33715  test -z "$as_dir" && as_dir=.
33716    for ac_exec_ext in '' $ac_executable_extensions; do
33717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33718    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33720    break 2
33721  fi
33722done
33723  done
33724IFS=$as_save_IFS
33725
33726  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33727  ;;
33728esac
33729fi
33730LaunchDelegate=$ac_cv_path_LaunchDelegate
33731if test -n "$LaunchDelegate"; then
33732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33733$as_echo "$LaunchDelegate" >&6; }
33734else
33735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33736$as_echo "no" >&6; }
33737fi
33738
33739
33740# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33741set dummy "$MANDelegateDefault"; ac_word=$2
33742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33743$as_echo_n "checking for $ac_word... " >&6; }
33744if ${ac_cv_path_MANDelegate+:} false; then :
33745  $as_echo_n "(cached) " >&6
33746else
33747  case $MANDelegate in
33748  [\\/]* | ?:[\\/]*)
33749  ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33750  ;;
33751  *)
33752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33753for as_dir in $PATH
33754do
33755  IFS=$as_save_IFS
33756  test -z "$as_dir" && as_dir=.
33757    for ac_exec_ext in '' $ac_executable_extensions; do
33758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33759    ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33761    break 2
33762  fi
33763done
33764  done
33765IFS=$as_save_IFS
33766
33767  test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33768  ;;
33769esac
33770fi
33771MANDelegate=$ac_cv_path_MANDelegate
33772if test -n "$MANDelegate"; then
33773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33774$as_echo "$MANDelegate" >&6; }
33775else
33776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33777$as_echo "no" >&6; }
33778fi
33779
33780
33781# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33782set dummy "$MogrifyDelegateDefault"; ac_word=$2
33783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33784$as_echo_n "checking for $ac_word... " >&6; }
33785if ${ac_cv_path_MogrifyDelegate+:} false; then :
33786  $as_echo_n "(cached) " >&6
33787else
33788  case $MogrifyDelegate in
33789  [\\/]* | ?:[\\/]*)
33790  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33791  ;;
33792  *)
33793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33794for as_dir in $PATH
33795do
33796  IFS=$as_save_IFS
33797  test -z "$as_dir" && as_dir=.
33798    for ac_exec_ext in '' $ac_executable_extensions; do
33799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33800    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33802    break 2
33803  fi
33804done
33805  done
33806IFS=$as_save_IFS
33807
33808  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33809  ;;
33810esac
33811fi
33812MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33813if test -n "$MogrifyDelegate"; then
33814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33815$as_echo "$MogrifyDelegate" >&6; }
33816else
33817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33818$as_echo "no" >&6; }
33819fi
33820
33821
33822# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33823set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33825$as_echo_n "checking for $ac_word... " >&6; }
33826if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33827  $as_echo_n "(cached) " >&6
33828else
33829  case $MPEGDecodeDelegate in
33830  [\\/]* | ?:[\\/]*)
33831  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33832  ;;
33833  *)
33834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33835for as_dir in $PATH
33836do
33837  IFS=$as_save_IFS
33838  test -z "$as_dir" && as_dir=.
33839    for ac_exec_ext in '' $ac_executable_extensions; do
33840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33841    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33843    break 2
33844  fi
33845done
33846  done
33847IFS=$as_save_IFS
33848
33849  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33850  ;;
33851esac
33852fi
33853MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33854if test -n "$MPEGDecodeDelegate"; then
33855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33856$as_echo "$MPEGDecodeDelegate" >&6; }
33857else
33858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33859$as_echo "no" >&6; }
33860fi
33861
33862
33863if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
33864  MPEGDecodeDelegateDefault='ffmpeg'
33865  # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33866set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33868$as_echo_n "checking for $ac_word... " >&6; }
33869if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33870  $as_echo_n "(cached) " >&6
33871else
33872  case $MPEGDecodeDelegate in
33873  [\\/]* | ?:[\\/]*)
33874  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33875  ;;
33876  *)
33877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33878for as_dir in $PATH
33879do
33880  IFS=$as_save_IFS
33881  test -z "$as_dir" && as_dir=.
33882    for ac_exec_ext in '' $ac_executable_extensions; do
33883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33884    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33886    break 2
33887  fi
33888done
33889  done
33890IFS=$as_save_IFS
33891
33892  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33893  ;;
33894esac
33895fi
33896MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33897if test -n "$MPEGDecodeDelegate"; then
33898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33899$as_echo "$MPEGDecodeDelegate" >&6; }
33900else
33901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33902$as_echo "no" >&6; }
33903fi
33904
33905
33906fi;
33907# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33908set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33910$as_echo_n "checking for $ac_word... " >&6; }
33911if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33912  $as_echo_n "(cached) " >&6
33913else
33914  case $MPEGEncodeDelegate in
33915  [\\/]* | ?:[\\/]*)
33916  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33917  ;;
33918  *)
33919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33920for as_dir in $PATH
33921do
33922  IFS=$as_save_IFS
33923  test -z "$as_dir" && as_dir=.
33924    for ac_exec_ext in '' $ac_executable_extensions; do
33925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33926    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33928    break 2
33929  fi
33930done
33931  done
33932IFS=$as_save_IFS
33933
33934  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33935  ;;
33936esac
33937fi
33938MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33939if test -n "$MPEGEncodeDelegate"; then
33940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33941$as_echo "$MPEGEncodeDelegate" >&6; }
33942else
33943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33944$as_echo "no" >&6; }
33945fi
33946
33947
33948if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
33949  MPEGEncodeDelegateDefault='ffmpeg'
33950  # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33951set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33953$as_echo_n "checking for $ac_word... " >&6; }
33954if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33955  $as_echo_n "(cached) " >&6
33956else
33957  case $MPEGEncodeDelegate in
33958  [\\/]* | ?:[\\/]*)
33959  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33960  ;;
33961  *)
33962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33963for as_dir in $PATH
33964do
33965  IFS=$as_save_IFS
33966  test -z "$as_dir" && as_dir=.
33967    for ac_exec_ext in '' $ac_executable_extensions; do
33968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33969    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33971    break 2
33972  fi
33973done
33974  done
33975IFS=$as_save_IFS
33976
33977  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33978  ;;
33979esac
33980fi
33981MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33982if test -n "$MPEGEncodeDelegate"; then
33983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33984$as_echo "$MPEGEncodeDelegate" >&6; }
33985else
33986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33987$as_echo "no" >&6; }
33988fi
33989
33990
33991fi;
33992# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33993set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33995$as_echo_n "checking for $ac_word... " >&6; }
33996if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
33997  $as_echo_n "(cached) " >&6
33998else
33999  case $MrSIDDecodeDelegate in
34000  [\\/]* | ?:[\\/]*)
34001  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34002  ;;
34003  *)
34004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34005for as_dir in $PATH
34006do
34007  IFS=$as_save_IFS
34008  test -z "$as_dir" && as_dir=.
34009    for ac_exec_ext in '' $ac_executable_extensions; do
34010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34011    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34013    break 2
34014  fi
34015done
34016  done
34017IFS=$as_save_IFS
34018
34019  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34020  ;;
34021esac
34022fi
34023MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34024if test -n "$MrSIDDecodeDelegate"; then
34025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34026$as_echo "$MrSIDDecodeDelegate" >&6; }
34027else
34028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34029$as_echo "no" >&6; }
34030fi
34031
34032
34033# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34034set dummy "$MVDelegateDefault"; ac_word=$2
34035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34036$as_echo_n "checking for $ac_word... " >&6; }
34037if ${ac_cv_path_MVDelegate+:} false; then :
34038  $as_echo_n "(cached) " >&6
34039else
34040  case $MVDelegate in
34041  [\\/]* | ?:[\\/]*)
34042  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34043  ;;
34044  *)
34045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34046for as_dir in $PATH
34047do
34048  IFS=$as_save_IFS
34049  test -z "$as_dir" && as_dir=.
34050    for ac_exec_ext in '' $ac_executable_extensions; do
34051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34052    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
34053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34054    break 2
34055  fi
34056done
34057  done
34058IFS=$as_save_IFS
34059
34060  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34061  ;;
34062esac
34063fi
34064MVDelegate=$ac_cv_path_MVDelegate
34065if test -n "$MVDelegate"; then
34066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
34067$as_echo "$MVDelegate" >&6; }
34068else
34069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34070$as_echo "no" >&6; }
34071fi
34072
34073
34074# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34075set dummy "$PCLDelegateDefault"; ac_word=$2
34076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34077$as_echo_n "checking for $ac_word... " >&6; }
34078if ${ac_cv_path_PCLDelegate+:} false; then :
34079  $as_echo_n "(cached) " >&6
34080else
34081  case $PCLDelegate in
34082  [\\/]* | ?:[\\/]*)
34083  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34084  ;;
34085  *)
34086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34087for as_dir in $PATH
34088do
34089  IFS=$as_save_IFS
34090  test -z "$as_dir" && as_dir=.
34091    for ac_exec_ext in '' $ac_executable_extensions; do
34092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34093    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
34094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34095    break 2
34096  fi
34097done
34098  done
34099IFS=$as_save_IFS
34100
34101  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34102  ;;
34103esac
34104fi
34105PCLDelegate=$ac_cv_path_PCLDelegate
34106if test -n "$PCLDelegate"; then
34107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34108$as_echo "$PCLDelegate" >&6; }
34109else
34110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34111$as_echo "no" >&6; }
34112fi
34113
34114
34115# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34116set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
34117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34118$as_echo_n "checking for $ac_word... " >&6; }
34119if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
34120  $as_echo_n "(cached) " >&6
34121else
34122  case $PGPDecodeDelegate in
34123  [\\/]* | ?:[\\/]*)
34124  ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34125  ;;
34126  *)
34127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34128for as_dir in $PATH
34129do
34130  IFS=$as_save_IFS
34131  test -z "$as_dir" && as_dir=.
34132    for ac_exec_ext in '' $ac_executable_extensions; do
34133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34134    ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34136    break 2
34137  fi
34138done
34139  done
34140IFS=$as_save_IFS
34141
34142  test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34143  ;;
34144esac
34145fi
34146PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34147if test -n "$PGPDecodeDelegate"; then
34148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
34149$as_echo "$PGPDecodeDelegate" >&6; }
34150else
34151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34152$as_echo "no" >&6; }
34153fi
34154
34155
34156# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34157set dummy "$POVDelegateDefault"; ac_word=$2
34158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34159$as_echo_n "checking for $ac_word... " >&6; }
34160if ${ac_cv_path_POVDelegate+:} false; then :
34161  $as_echo_n "(cached) " >&6
34162else
34163  case $POVDelegate in
34164  [\\/]* | ?:[\\/]*)
34165  ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34166  ;;
34167  *)
34168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34169for as_dir in $PATH
34170do
34171  IFS=$as_save_IFS
34172  test -z "$as_dir" && as_dir=.
34173    for ac_exec_ext in '' $ac_executable_extensions; do
34174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34175    ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
34176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34177    break 2
34178  fi
34179done
34180  done
34181IFS=$as_save_IFS
34182
34183  test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34184  ;;
34185esac
34186fi
34187POVDelegate=$ac_cv_path_POVDelegate
34188if test -n "$POVDelegate"; then
34189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
34190$as_echo "$POVDelegate" >&6; }
34191else
34192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34193$as_echo "no" >&6; }
34194fi
34195
34196
34197for ac_prog in gsx gsc "$PSDelegateDefault"
34198do
34199  # Extract the first word of "$ac_prog", so it can be a program name with args.
34200set dummy $ac_prog; ac_word=$2
34201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34202$as_echo_n "checking for $ac_word... " >&6; }
34203if ${ac_cv_path_PSDelegate+:} false; then :
34204  $as_echo_n "(cached) " >&6
34205else
34206  case $PSDelegate in
34207  [\\/]* | ?:[\\/]*)
34208  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34209  ;;
34210  *)
34211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34212for as_dir in $PATH
34213do
34214  IFS=$as_save_IFS
34215  test -z "$as_dir" && as_dir=.
34216    for ac_exec_ext in '' $ac_executable_extensions; do
34217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34218    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
34219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34220    break 2
34221  fi
34222done
34223  done
34224IFS=$as_save_IFS
34225
34226  ;;
34227esac
34228fi
34229PSDelegate=$ac_cv_path_PSDelegate
34230if test -n "$PSDelegate"; then
34231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34232$as_echo "$PSDelegate" >&6; }
34233else
34234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34235$as_echo "no" >&6; }
34236fi
34237
34238
34239  test -n "$PSDelegate" && break
34240done
34241test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34242
34243# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34244set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
34245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34246$as_echo_n "checking for $ac_word... " >&6; }
34247if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
34248  $as_echo_n "(cached) " >&6
34249else
34250  case $RLEEncodeDelegate in
34251  [\\/]* | ?:[\\/]*)
34252  ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34253  ;;
34254  *)
34255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34256for as_dir in $PATH
34257do
34258  IFS=$as_save_IFS
34259  test -z "$as_dir" && as_dir=.
34260    for ac_exec_ext in '' $ac_executable_extensions; do
34261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34262    ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34264    break 2
34265  fi
34266done
34267  done
34268IFS=$as_save_IFS
34269
34270  test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34271  ;;
34272esac
34273fi
34274RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34275if test -n "$RLEEncodeDelegate"; then
34276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
34277$as_echo "$RLEEncodeDelegate" >&6; }
34278else
34279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34280$as_echo "no" >&6; }
34281fi
34282
34283
34284# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34285set dummy "$RMDelegateDefault"; ac_word=$2
34286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34287$as_echo_n "checking for $ac_word... " >&6; }
34288if ${ac_cv_path_RMDelegate+:} false; then :
34289  $as_echo_n "(cached) " >&6
34290else
34291  case $RMDelegate in
34292  [\\/]* | ?:[\\/]*)
34293  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34294  ;;
34295  *)
34296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34297for as_dir in $PATH
34298do
34299  IFS=$as_save_IFS
34300  test -z "$as_dir" && as_dir=.
34301    for ac_exec_ext in '' $ac_executable_extensions; do
34302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34303    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34305    break 2
34306  fi
34307done
34308  done
34309IFS=$as_save_IFS
34310
34311  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34312  ;;
34313esac
34314fi
34315RMDelegate=$ac_cv_path_RMDelegate
34316if test -n "$RMDelegate"; then
34317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34318$as_echo "$RMDelegate" >&6; }
34319else
34320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34321$as_echo "no" >&6; }
34322fi
34323
34324
34325# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34326set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34328$as_echo_n "checking for $ac_word... " >&6; }
34329if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34330  $as_echo_n "(cached) " >&6
34331else
34332  case $RSVGDecodeDelegate in
34333  [\\/]* | ?:[\\/]*)
34334  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34335  ;;
34336  *)
34337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34338for as_dir in $PATH
34339do
34340  IFS=$as_save_IFS
34341  test -z "$as_dir" && as_dir=.
34342    for ac_exec_ext in '' $ac_executable_extensions; do
34343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34344    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34346    break 2
34347  fi
34348done
34349  done
34350IFS=$as_save_IFS
34351
34352  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34353  ;;
34354esac
34355fi
34356RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34357if test -n "$RSVGDecodeDelegate"; then
34358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34359$as_echo "$RSVGDecodeDelegate" >&6; }
34360else
34361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34362$as_echo "no" >&6; }
34363fi
34364
34365
34366# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34367set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
34368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34369$as_echo_n "checking for $ac_word... " >&6; }
34370if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
34371  $as_echo_n "(cached) " >&6
34372else
34373  case $SCANDecodeDelegate in
34374  [\\/]* | ?:[\\/]*)
34375  ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34376  ;;
34377  *)
34378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34379for as_dir in $PATH
34380do
34381  IFS=$as_save_IFS
34382  test -z "$as_dir" && as_dir=.
34383    for ac_exec_ext in '' $ac_executable_extensions; do
34384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34385    ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34387    break 2
34388  fi
34389done
34390  done
34391IFS=$as_save_IFS
34392
34393  test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34394  ;;
34395esac
34396fi
34397SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34398if test -n "$SCANDecodeDelegate"; then
34399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
34400$as_echo "$SCANDecodeDelegate" >&6; }
34401else
34402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34403$as_echo "no" >&6; }
34404fi
34405
34406
34407# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34408set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34410$as_echo_n "checking for $ac_word... " >&6; }
34411if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34412  $as_echo_n "(cached) " >&6
34413else
34414  case $SVGDecodeDelegate in
34415  [\\/]* | ?:[\\/]*)
34416  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34417  ;;
34418  *)
34419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34420for as_dir in $PATH
34421do
34422  IFS=$as_save_IFS
34423  test -z "$as_dir" && as_dir=.
34424    for ac_exec_ext in '' $ac_executable_extensions; do
34425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34426    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34428    break 2
34429  fi
34430done
34431  done
34432IFS=$as_save_IFS
34433
34434  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34435  ;;
34436esac
34437fi
34438SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34439if test -n "$SVGDecodeDelegate"; then
34440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34441$as_echo "$SVGDecodeDelegate" >&6; }
34442else
34443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34444$as_echo "no" >&6; }
34445fi
34446
34447
34448# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34449set dummy "$TXTDelegateDefault"; ac_word=$2
34450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34451$as_echo_n "checking for $ac_word... " >&6; }
34452if ${ac_cv_path_TXTDelegate+:} false; then :
34453  $as_echo_n "(cached) " >&6
34454else
34455  case $TXTDelegate in
34456  [\\/]* | ?:[\\/]*)
34457  ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34458  ;;
34459  *)
34460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34461for as_dir in $PATH
34462do
34463  IFS=$as_save_IFS
34464  test -z "$as_dir" && as_dir=.
34465    for ac_exec_ext in '' $ac_executable_extensions; do
34466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34467    ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
34468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34469    break 2
34470  fi
34471done
34472  done
34473IFS=$as_save_IFS
34474
34475  test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34476  ;;
34477esac
34478fi
34479TXTDelegate=$ac_cv_path_TXTDelegate
34480if test -n "$TXTDelegate"; then
34481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
34482$as_echo "$TXTDelegate" >&6; }
34483else
34484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34485$as_echo "no" >&6; }
34486fi
34487
34488
34489# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34490set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34492$as_echo_n "checking for $ac_word... " >&6; }
34493if ${ac_cv_path_UniconvertorDelegate+:} false; then :
34494  $as_echo_n "(cached) " >&6
34495else
34496  case $UniconvertorDelegate in
34497  [\\/]* | ?:[\\/]*)
34498  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34499  ;;
34500  *)
34501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34502for as_dir in $PATH
34503do
34504  IFS=$as_save_IFS
34505  test -z "$as_dir" && as_dir=.
34506    for ac_exec_ext in '' $ac_executable_extensions; do
34507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34508    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34510    break 2
34511  fi
34512done
34513  done
34514IFS=$as_save_IFS
34515
34516  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34517  ;;
34518esac
34519fi
34520UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34521if test -n "$UniconvertorDelegate"; then
34522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34523$as_echo "$UniconvertorDelegate" >&6; }
34524else
34525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34526$as_echo "no" >&6; }
34527fi
34528
34529
34530# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34531set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34533$as_echo_n "checking for $ac_word... " >&6; }
34534if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34535  $as_echo_n "(cached) " >&6
34536else
34537  case $WebPDecodeDelegate in
34538  [\\/]* | ?:[\\/]*)
34539  ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34540  ;;
34541  *)
34542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34543for as_dir in $PATH
34544do
34545  IFS=$as_save_IFS
34546  test -z "$as_dir" && as_dir=.
34547    for ac_exec_ext in '' $ac_executable_extensions; do
34548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34549    ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34551    break 2
34552  fi
34553done
34554  done
34555IFS=$as_save_IFS
34556
34557  test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34558  ;;
34559esac
34560fi
34561WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34562if test -n "$WebPDecodeDelegate"; then
34563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34564$as_echo "$WebPDecodeDelegate" >&6; }
34565else
34566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34567$as_echo "no" >&6; }
34568fi
34569
34570
34571# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34572set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34574$as_echo_n "checking for $ac_word... " >&6; }
34575if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34576  $as_echo_n "(cached) " >&6
34577else
34578  case $WebPEncodeDelegate in
34579  [\\/]* | ?:[\\/]*)
34580  ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34581  ;;
34582  *)
34583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34584for as_dir in $PATH
34585do
34586  IFS=$as_save_IFS
34587  test -z "$as_dir" && as_dir=.
34588    for ac_exec_ext in '' $ac_executable_extensions; do
34589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34590    ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34592    break 2
34593  fi
34594done
34595  done
34596IFS=$as_save_IFS
34597
34598  test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34599  ;;
34600esac
34601fi
34602WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34603if test -n "$WebPEncodeDelegate"; then
34604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34605$as_echo "$WebPEncodeDelegate" >&6; }
34606else
34607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34608$as_echo "no" >&6; }
34609fi
34610
34611
34612# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34613set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
34614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34615$as_echo_n "checking for $ac_word... " >&6; }
34616if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
34617  $as_echo_n "(cached) " >&6
34618else
34619  case $WMFDecodeDelegate in
34620  [\\/]* | ?:[\\/]*)
34621  ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34622  ;;
34623  *)
34624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34625for as_dir in $PATH
34626do
34627  IFS=$as_save_IFS
34628  test -z "$as_dir" && as_dir=.
34629    for ac_exec_ext in '' $ac_executable_extensions; do
34630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34631    ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34633    break 2
34634  fi
34635done
34636  done
34637IFS=$as_save_IFS
34638
34639  test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34640  ;;
34641esac
34642fi
34643WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34644if test -n "$WMFDecodeDelegate"; then
34645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
34646$as_echo "$WMFDecodeDelegate" >&6; }
34647else
34648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34649$as_echo "no" >&6; }
34650fi
34651
34652
34653# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34654set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
34655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34656$as_echo_n "checking for $ac_word... " >&6; }
34657if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
34658  $as_echo_n "(cached) " >&6
34659else
34660  case $WWWDecodeDelegate in
34661  [\\/]* | ?:[\\/]*)
34662  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34663  ;;
34664  *)
34665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34666for as_dir in $PATH
34667do
34668  IFS=$as_save_IFS
34669  test -z "$as_dir" && as_dir=.
34670    for ac_exec_ext in '' $ac_executable_extensions; do
34671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34672    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34674    break 2
34675  fi
34676done
34677  done
34678IFS=$as_save_IFS
34679
34680  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34681  ;;
34682esac
34683fi
34684WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34685if test -n "$WWWDecodeDelegate"; then
34686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
34687$as_echo "$WWWDecodeDelegate" >&6; }
34688else
34689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34690$as_echo "no" >&6; }
34691fi
34692
34693
34694# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34695set dummy "$XPSDelegateDefault"; ac_word=$2
34696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34697$as_echo_n "checking for $ac_word... " >&6; }
34698if ${ac_cv_path_XPSDelegate+:} false; then :
34699  $as_echo_n "(cached) " >&6
34700else
34701  case $XPSDelegate in
34702  [\\/]* | ?:[\\/]*)
34703  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34704  ;;
34705  *)
34706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34707for as_dir in $PATH
34708do
34709  IFS=$as_save_IFS
34710  test -z "$as_dir" && as_dir=.
34711    for ac_exec_ext in '' $ac_executable_extensions; do
34712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34713    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
34714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34715    break 2
34716  fi
34717done
34718  done
34719IFS=$as_save_IFS
34720
34721  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34722  ;;
34723esac
34724fi
34725XPSDelegate=$ac_cv_path_XPSDelegate
34726if test -n "$XPSDelegate"; then
34727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
34728$as_echo "$XPSDelegate" >&6; }
34729else
34730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34731$as_echo "no" >&6; }
34732fi
34733
34734
34735# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34736set dummy "$ZipDelegateDefault"; ac_word=$2
34737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34738$as_echo_n "checking for $ac_word... " >&6; }
34739if ${ac_cv_path_ZipDelegate+:} false; then :
34740  $as_echo_n "(cached) " >&6
34741else
34742  case $ZipDelegate in
34743  [\\/]* | ?:[\\/]*)
34744  ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34745  ;;
34746  *)
34747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34748for as_dir in $PATH
34749do
34750  IFS=$as_save_IFS
34751  test -z "$as_dir" && as_dir=.
34752    for ac_exec_ext in '' $ac_executable_extensions; do
34753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34754    ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
34755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34756    break 2
34757  fi
34758done
34759  done
34760IFS=$as_save_IFS
34761
34762  test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34763  ;;
34764esac
34765fi
34766ZipDelegate=$ac_cv_path_ZipDelegate
34767if test -n "$ZipDelegate"; then
34768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
34769$as_echo "$ZipDelegate" >&6; }
34770else
34771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34772$as_echo "no" >&6; }
34773fi
34774
34775
34776
34777# Prefer lpr to lp; lp needs options tacked on.
34778if test "$LPRDelegate" != no; then
34779    PrintDelegate="$LPRDelegate"
34780else
34781    PrintDelegate="$LPDelegate -c -s"
34782fi
34783
34784
34785# Installed ImageMagick utiltity paths
34786ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34787DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34788MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34789
34790# Set delegate booleans
34791have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
34792have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34793have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34794have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
34795have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
34796have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34797have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
34798have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34799
34800#
34801# Test for font directories
34802#
34803type_include_files=''
34804
34805# Dejavu fonts.
34806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34807$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34808dejavu_font_dir=''
34809if test "${with_dejavu_font_dir}" != 'default'; then
34810  dejavu_font_dir="${with_dejavu_font_dir}/"
34811else
34812  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34813    if test -f "${font_dir}DejaVuSerif.ttf"; then
34814      dejavu_font_dir="${font_dir}"
34815      break 1
34816    fi
34817  done
34818fi
34819if test "${dejavu_font_dir}x" != 'x'; then
34820  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
34821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34822$as_echo "$dejavu_font_dir" >&6; }
34823else
34824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34825$as_echo "not found!" >&6; };
34826fi
34827
34828
34829# Windows
34830windows_font_dir=''
34831if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34832   windows_font_dir="${with_windows_font_dir}/"
34833fi
34834if test "${windows_font_dir}x" != 'x'; then
34835    if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34836      windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34837    fi
34838    if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34839      windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34840    fi
34841    if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34842      windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34843    fi
34844fi
34845if test "${windows_font_dir}x" != 'x'; then
34846  type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34847fi
34848
34849
34850# Ghostscript
34851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34852$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34853ghostscript_font_dir=''
34854if test "${with_gs_font_dir}" != 'default'; then
34855  ghostscript_font_dir="${with_gs_font_dir}/"
34856else
34857  if test "${native_win32_build}" = 'yes'; then
34858    # Native Windows Build
34859    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34860      if test -f "${font_dir}a010013l.pfb"; then
34861        ghostscript_font_dir="$font_dir"
34862        break 1
34863      fi
34864    done
34865    if test "${PSDelegate}" != 'gswin32c'; then
34866      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34867    fi
34868  else
34869    # Linux / Mac OS X / Unix Build
34870    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
34871      if test -f "${font_dir}a010013l.pfb"; then
34872        ghostscript_font_dir="${font_dir}"
34873        break 1
34874      fi
34875    done
34876    if test "${ghostscript_font_dir}x" = 'x'; then
34877      if test "$PSDelegate" != 'gs'; then
34878        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34879      fi
34880    fi
34881  fi
34882fi
34883if test "${ghostscript_font_dir}x" != 'x'; then
34884  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34886$as_echo "$ghostscript_font_dir" >&6; }
34887else
34888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34889$as_echo "not found!" >&6; };
34890fi
34891
34892case "${build_os}" in
34893  mingw* )
34894    PSDelegate=`$WinPathScript "$PSDelegate" 1`
34895    ;;
34896esac
34897
34898
34899
34900#
34901# Handle case where user doesn't want frozen paths
34902#
34903if test "$with_frozenpaths" != 'yes'; then
34904  # Re-set delegate definitions to default (no paths)
34905  AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34906  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34907  BZIPDelegate="$BZIPDelegateDefault"
34908  BrowseDelegate="$BrowseDelegateDefault"
34909  CatDelegate="$CatDelegateDefault"
34910  ConvertDelegate="$ConvertDelegateDefault"
34911  DisplayDelegate="$DisplayDelegateDefault"
34912  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
34913  DOCDecodeDelegate="$DOCDecodeDelegateDefault"
34914  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34915  EchoDelegate="$EchoDelegateDefault"
34916  EditorDelegate="$EditorDelegateDefault"
34917  GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34918  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34919  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34920  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34921  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34922  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34923  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34924  JXREncodeDelegate="$JXREncodeDelegateDefault"
34925  LPDelegate="$LPDelegateDefault"
34926  LaunchDelegate="$LaunchDelegateDefault"
34927  MANDelegate="$MANDelegateDefault"
34928  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34929  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34930  MogrifyDelegate="$MogrifyDelegateDefault"
34931  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34932  MVDelegate="$MVDelegateDefault"
34933  PCLDelegate="$PCLDelegateDefault"
34934  PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34935  POVDelegate="$POVDelegateDefault"
34936  PSDelegate="$PSDelegateDefault"
34937  RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34938  RMDelegate="$RMDelegateDefault"
34939  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34940  SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34941  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
34942  ShowImageDelegate="$ShowImageDelegateDefault"
34943  TXTDelegate="$TXTDelegateDefault"
34944  UniconvertorDelegate="$UniconvertorDelegateDefault"
34945  WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34946  WebPEncodeDelegate="$WebPEncodeDelegateDefault"
34947  WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34948  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34949  XPSDelegate="$XPSDelegateDefault"
34950  ZipDelegate="$ZipDelegateDefault"
34951fi
34952
34953# Delegate substitutions
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996#
34997# RPM support.
34998#
34999RPM=''
35000for ac_prog in gnutar gtar tar
35001do
35002  # Extract the first word of "$ac_prog", so it can be a program name with args.
35003set dummy $ac_prog; ac_word=$2
35004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35005$as_echo_n "checking for $ac_word... " >&6; }
35006if ${ac_cv_prog_TAR+:} false; then :
35007  $as_echo_n "(cached) " >&6
35008else
35009  if test -n "$TAR"; then
35010  ac_cv_prog_TAR="$TAR" # Let the user override the test.
35011else
35012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35013for as_dir in $PATH
35014do
35015  IFS=$as_save_IFS
35016  test -z "$as_dir" && as_dir=.
35017    for ac_exec_ext in '' $ac_executable_extensions; do
35018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35019    ac_cv_prog_TAR="$ac_prog"
35020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35021    break 2
35022  fi
35023done
35024  done
35025IFS=$as_save_IFS
35026
35027fi
35028fi
35029TAR=$ac_cv_prog_TAR
35030if test -n "$TAR"; then
35031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
35032$as_echo "$TAR" >&6; }
35033else
35034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35035$as_echo "no" >&6; }
35036fi
35037
35038
35039  test -n "$TAR" && break
35040done
35041
35042for ac_prog in perl
35043do
35044  # Extract the first word of "$ac_prog", so it can be a program name with args.
35045set dummy $ac_prog; ac_word=$2
35046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35047$as_echo_n "checking for $ac_word... " >&6; }
35048if ${ac_cv_prog_PERL+:} false; then :
35049  $as_echo_n "(cached) " >&6
35050else
35051  if test -n "$PERL"; then
35052  ac_cv_prog_PERL="$PERL" # Let the user override the test.
35053else
35054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35055for as_dir in $PATH
35056do
35057  IFS=$as_save_IFS
35058  test -z "$as_dir" && as_dir=.
35059    for ac_exec_ext in '' $ac_executable_extensions; do
35060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35061    ac_cv_prog_PERL="$ac_prog"
35062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35063    break 2
35064  fi
35065done
35066  done
35067IFS=$as_save_IFS
35068
35069fi
35070fi
35071PERL=$ac_cv_prog_PERL
35072if test -n "$PERL"; then
35073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35074$as_echo "$PERL" >&6; }
35075else
35076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35077$as_echo "no" >&6; }
35078fi
35079
35080
35081  test -n "$PERL" && break
35082done
35083
35084for ac_prog in rpmbuild rpm
35085do
35086  # Extract the first word of "$ac_prog", so it can be a program name with args.
35087set dummy $ac_prog; ac_word=$2
35088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35089$as_echo_n "checking for $ac_word... " >&6; }
35090if ${ac_cv_prog_RPM+:} false; then :
35091  $as_echo_n "(cached) " >&6
35092else
35093  if test -n "$RPM"; then
35094  ac_cv_prog_RPM="$RPM" # Let the user override the test.
35095else
35096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35097for as_dir in $PATH
35098do
35099  IFS=$as_save_IFS
35100  test -z "$as_dir" && as_dir=.
35101    for ac_exec_ext in '' $ac_executable_extensions; do
35102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35103    ac_cv_prog_RPM="$ac_prog"
35104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35105    break 2
35106  fi
35107done
35108  done
35109IFS=$as_save_IFS
35110
35111fi
35112fi
35113RPM=$ac_cv_prog_RPM
35114if test -n "$RPM"; then
35115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
35116$as_echo "$RPM" >&6; }
35117else
35118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35119$as_echo "no" >&6; }
35120fi
35121
35122
35123  test -n "$RPM" && break
35124done
35125
35126
35127ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35128
35129
35130AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35131
35132
35133AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35134
35135
35136AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35137
35138
35139 if test "x$RPM" != "x" ; then
35140  RPM_DELEGATE_TRUE=
35141  RPM_DELEGATE_FALSE='#'
35142else
35143  RPM_DELEGATE_TRUE='#'
35144  RPM_DELEGATE_FALSE=
35145fi
35146
35147
35148#
35149# 7ZIP support (http://p7zip.sourceforge.net/)
35150#
35151P7ZIP=''
35152for ac_prog in 7za
35153do
35154  # Extract the first word of "$ac_prog", so it can be a program name with args.
35155set dummy $ac_prog; ac_word=$2
35156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35157$as_echo_n "checking for $ac_word... " >&6; }
35158if ${ac_cv_prog_P7ZIP+:} false; then :
35159  $as_echo_n "(cached) " >&6
35160else
35161  if test -n "$P7ZIP"; then
35162  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35163else
35164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35165for as_dir in $PATH
35166do
35167  IFS=$as_save_IFS
35168  test -z "$as_dir" && as_dir=.
35169    for ac_exec_ext in '' $ac_executable_extensions; do
35170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35171    ac_cv_prog_P7ZIP="$ac_prog"
35172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35173    break 2
35174  fi
35175done
35176  done
35177IFS=$as_save_IFS
35178
35179fi
35180fi
35181P7ZIP=$ac_cv_prog_P7ZIP
35182if test -n "$P7ZIP"; then
35183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35184$as_echo "$P7ZIP" >&6; }
35185else
35186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35187$as_echo "no" >&6; }
35188fi
35189
35190
35191  test -n "$P7ZIP" && break
35192done
35193
35194
35195 if test "x$P7ZIP" != "x" ; then
35196  P7ZIP_DELEGATE_TRUE=
35197  P7ZIP_DELEGATE_FALSE='#'
35198else
35199  P7ZIP_DELEGATE_TRUE='#'
35200  P7ZIP_DELEGATE_FALSE=
35201fi
35202
35203
35204#
35205# ZIP support (http://www.info-zip.org/Zip.html)
35206#
35207ZIP=''
35208for ac_prog in zip
35209do
35210  # Extract the first word of "$ac_prog", so it can be a program name with args.
35211set dummy $ac_prog; ac_word=$2
35212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35213$as_echo_n "checking for $ac_word... " >&6; }
35214if ${ac_cv_prog_ZIP+:} false; then :
35215  $as_echo_n "(cached) " >&6
35216else
35217  if test -n "$ZIP"; then
35218  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35219else
35220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35221for as_dir in $PATH
35222do
35223  IFS=$as_save_IFS
35224  test -z "$as_dir" && as_dir=.
35225    for ac_exec_ext in '' $ac_executable_extensions; do
35226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35227    ac_cv_prog_ZIP="$ac_prog"
35228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35229    break 2
35230  fi
35231done
35232  done
35233IFS=$as_save_IFS
35234
35235fi
35236fi
35237ZIP=$ac_cv_prog_ZIP
35238if test -n "$ZIP"; then
35239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35240$as_echo "$ZIP" >&6; }
35241else
35242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35243$as_echo "no" >&6; }
35244fi
35245
35246
35247  test -n "$ZIP" && break
35248done
35249
35250
35251 if test "x$ZIP" != "x" ; then
35252  ZIP_DELEGATE_TRUE=
35253  ZIP_DELEGATE_FALSE='#'
35254else
35255  ZIP_DELEGATE_TRUE='#'
35256  ZIP_DELEGATE_FALSE=
35257fi
35258
35259
35260#
35261# GhostPCL related configuration.
35262#
35263PCLColorDevice=ppmraw
35264PCLCMYKDevice=pamcmyk32
35265PCLMonoDevice=pbmraw
35266if test -z "$PCLVersion"; then
35267    PCLVersion='unknown'
35268fi
35269if test $have_pcl = 'yes'; then
35270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35271$as_echo "-------------------------------------------------------------" >&6; }
35272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35273$as_echo_n "checking for PCL... " >&6; }
35274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35275$as_echo "" >&6; }
35276    # PCLColorDevice
35277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35278$as_echo_n "checking for pcl color device... " >&6; }
35279    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35280        :
35281    else
35282        PCLColorDevice=ppmraw
35283    fi
35284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35285$as_echo "$PCLColorDevice" >&6; }
35286
35287    # PCLCMYKDevice
35288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35289$as_echo_n "checking for pcl CMYK device... " >&6; }
35290    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35291        :
35292    else
35293        PCLCMYKDevice=$PCLColorDevice
35294    fi
35295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35296$as_echo "$PCLCMYKDevice" >&6; }
35297
35298    # PCLMonoDevice
35299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35300$as_echo_n "checking for pcl mono device... " >&6; }
35301    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35302        :
35303    else
35304        PCLMonoDevice=$PCLColorDevice
35305    fi
35306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35307$as_echo "$PCLMonoDevice" >&6; }
35308fi
35309
35310
35311
35312
35313
35314
35315#
35316# GhostXPS related configuration.
35317#
35318XPSColorDevice=ppmraw
35319XPSCMYKDevice=bmpsep8
35320XPSMonoDevice=pbmraw
35321if test -z "$XPSVersion"; then
35322    XPSVersion='unknown'
35323fi
35324if test $have_xps = 'yes'; then
35325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35326$as_echo "-------------------------------------------------------------" >&6; }
35327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35328$as_echo_n "checking for XPS... " >&6; }
35329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35330$as_echo "" >&6; }
35331    # XPSColorDevice
35332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35333$as_echo_n "checking for xps color device... " >&6; }
35334    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35335        :
35336    else
35337        XPSColorDevice=ppmraw
35338    fi
35339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35340$as_echo "$XPSColorDevice" >&6; }
35341
35342    # XPSCMYKDevice
35343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35344$as_echo_n "checking for xps CMYK device... " >&6; }
35345    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35346        :
35347    else
35348        XPSCMYKDevice=$XPSColorDevice
35349    fi
35350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35351$as_echo "$XPSCMYKDevice" >&6; }
35352
35353    # XPSMonoDevice
35354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35355$as_echo_n "checking for xps mono device... " >&6; }
35356    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35357        :
35358    else
35359        XPSMonoDevice=$XPSColorDevice
35360    fi
35361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35362$as_echo "$XPSMonoDevice" >&6; }
35363fi
35364
35365
35366
35367
35368
35369
35370#
35371# Ghostscript related configuration.
35372#
35373GSAlphaDevice=pngalpha
35374GSColorDevice=pnmraw
35375GSCMYKDevice=pam
35376GSMonoDevice=pbmraw
35377GSPDFDevice=pdfwrite
35378GSPSDevice=ps2write
35379GSEPSDevice=epswrite
35380GSVersion='unknown'
35381if test $have_gs = 'yes'; then
35382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35383$as_echo "-------------------------------------------------------------" >&6; }
35384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35385$as_echo_n "checking for Ghostscript... " >&6; }
35386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35387$as_echo "" >&6; }
35388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35389$as_echo_n "checking for Ghostscript version... " >&6; }
35390    if GSVersion=`$PSDelegate --version`; then
35391        :
35392    else
35393        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35394    fi
35395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35396$as_echo "$GSVersion" >&6; }
35397
35398    # GSAlphaDevice
35399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35400$as_echo_n "checking for gs alpha device... " >&6; }
35401    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35402        :
35403    else
35404        GSAlphaDevice=pnmraw
35405    fi
35406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35407$as_echo "$GSAlphaDevice" >&6; }
35408
35409    # GSColorDevice
35410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35411$as_echo_n "checking for gs color device... " >&6; }
35412    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35413        :
35414    else
35415        GSColorDevice=pnmraw
35416    fi
35417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35418$as_echo "$GSColorDevice" >&6; }
35419
35420    # GSCMYKDevice
35421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35422$as_echo_n "checking for gs CMYK device... " >&6; }
35423    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35424        :
35425    else
35426        GSCMYKDevice=bmpsep8
35427    fi
35428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35429$as_echo "$GSCMYKDevice" >&6; }
35430
35431    # GSMonoDevice
35432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35433$as_echo_n "checking for gs mono device... " >&6; }
35434    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35435        :
35436    else
35437        GSMonoDevice=$GSColorDevice
35438    fi
35439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35440$as_echo "$GSMonoDevice" >&6; }
35441
35442    # GSPDFDevice
35443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35444$as_echo_n "checking for gs PDF writing device... " >&6; }
35445    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35446        :
35447    else
35448        GSPDFDevice=nodevice
35449    fi
35450        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35451$as_echo "$GSPDFDevice" >&6; }
35452
35453    # GSPSDevice
35454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35455$as_echo_n "checking for gs PS writing device... " >&6; }
35456    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35457        :
35458    else
35459        GSPSDevice=nodevice
35460    fi
35461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35462$as_echo "$GSPSDevice" >&6; }
35463
35464    # GSEPSDevice
35465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35466$as_echo_n "checking for gs EPS writing device... " >&6; }
35467    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35468        :
35469    else
35470        GSEPSDevice=nodevice
35471    fi
35472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35473$as_echo "$GSEPSDevice" >&6; }
35474fi
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485#
35486# PerlMagick-related configuration
35487#
35488
35489# Look for PERL if PerlMagick requested
35490# If name/path of desired PERL interpreter is specified, look for that one first
35491have_perl='no'
35492if test "$with_perl" != 'no'; then
35493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35494$as_echo "-------------------------------------------------------------" >&6; }
35495    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35496$as_echo_n "checking for Perl... " >&6; }
35497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35498$as_echo "" >&6; }
35499    if test "$with_perl" != 'yes'; then
35500        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35501$as_echo_n "checking for perl... " >&6; }
35502if ${ac_cv_path_PERL+:} false; then :
35503  $as_echo_n "(cached) " >&6
35504else
35505  ac_cv_path_PERL="$with_perl"
35506fi
35507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
35508$as_echo "$ac_cv_path_PERL" >&6; };
35509        PERL=$ac_cv_path_PERL
35510                have_perl="$ac_cv_path_PERL"
35511    else
35512        for ac_prog in perl perl5
35513do
35514  # Extract the first word of "$ac_prog", so it can be a program name with args.
35515set dummy $ac_prog; ac_word=$2
35516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35517$as_echo_n "checking for $ac_word... " >&6; }
35518if ${ac_cv_path_PERL+:} false; then :
35519  $as_echo_n "(cached) " >&6
35520else
35521  case $PERL in
35522  [\\/]* | ?:[\\/]*)
35523  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35524  ;;
35525  *)
35526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35527for as_dir in $PATH
35528do
35529  IFS=$as_save_IFS
35530  test -z "$as_dir" && as_dir=.
35531    for ac_exec_ext in '' $ac_executable_extensions; do
35532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35533    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
35534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35535    break 2
35536  fi
35537done
35538  done
35539IFS=$as_save_IFS
35540
35541  ;;
35542esac
35543fi
35544PERL=$ac_cv_path_PERL
35545if test -n "$PERL"; then
35546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35547$as_echo "$PERL" >&6; }
35548else
35549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550$as_echo "no" >&6; }
35551fi
35552
35553
35554  test -n "$PERL" && break
35555done
35556        if test "$ac_cv_path_PERL"; then
35557            have_perl="$ac_cv_path_PERL"
35558        fi
35559    fi
35560fi
35561
35562if test "$with_perl" != 'yes' ; then
35563    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35564fi
35565
35566PERL_SUPPORTS_DESTDIR='no'
35567
35568with_perl_static='no'
35569with_perl_dynamic='no'
35570if test "$have_perl" != 'no'; then
35571    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35572        with_perl_static='yes'
35573    fi
35574    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35575        with_perl_dynamic='yes'
35576    fi
35577    # Is PERL's MakeMaker new enough to support DESTDIR?
35578
35579
35580
35581
35582    if test -n "$PERL"; then :
35583
35584        ax_perl_version="5.8.1"
35585
35586        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35587$as_echo_n "checking for perl version... " >&6; }
35588
35589        perl_version=`$PERL --version 2>&1 \
35590          | $SED -n -e '/This is perl/b inspect
35591b
35592: inspect
35593s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
35594
35595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35596$as_echo "$perl_version" >&6; }
35597
35598	PERL_VERSION=$perl_version
35599
35600
35601
35602
35603
35604  # Used to indicate true or false condition
35605  ax_compare_version=false
35606
35607  # Convert the two version strings to be compared into a format that
35608  # allows a simple string comparison.  The end result is that a version
35609  # string of the form 1.12.5-r617 will be converted to the form
35610  # 0001001200050617.  In other words, each number is zero padded to four
35611  # digits, and non digits are removed.
35612
35613  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35614                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35615                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35616                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35617                     -e 's/[^0-9]//g'`
35618
35619
35620  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35621                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35622                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35623                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35624                     -e 's/[^0-9]//g'`
35625
35626
35627    ax_compare_version=`echo "x$ax_compare_version_A
35628x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35629
35630
35631
35632    if test "$ax_compare_version" = "true" ; then
35633
35634	    :
35635            PERL_SUPPORTS_DESTDIR='yes'
35636
35637    else
35638	    :
35639            PERL_SUPPORTS_DESTDIR='no'
35640
35641  fi
35642
35643
35644else
35645
35646        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35647$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35648        PERL_SUPPORTS_DESTDIR='no'
35649
35650fi
35651
35652fi
35653 if test "$have_perl" != 'no'; then
35654  WITH_PERL_TRUE=
35655  WITH_PERL_FALSE='#'
35656else
35657  WITH_PERL_TRUE='#'
35658  WITH_PERL_FALSE=
35659fi
35660
35661 if test $with_perl_static = 'yes'; then
35662  WITH_PERL_STATIC_TRUE=
35663  WITH_PERL_STATIC_FALSE='#'
35664else
35665  WITH_PERL_STATIC_TRUE='#'
35666  WITH_PERL_STATIC_FALSE=
35667fi
35668
35669 if test $with_perl_dynamic = 'yes'; then
35670  WITH_PERL_DYNAMIC_TRUE=
35671  WITH_PERL_DYNAMIC_FALSE='#'
35672else
35673  WITH_PERL_DYNAMIC_TRUE='#'
35674  WITH_PERL_DYNAMIC_FALSE=
35675fi
35676
35677
35678
35679# Determine path to pick up MagickCore library from for use with building PerlMagick
35680MAGICKCORE_PATH="${LIB_DIR}"
35681if test $with_perl_static = 'yes'; then
35682    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35683    libtool_objdir=$objdir
35684
35685    # Linker search path to library, followed by -lMagickCore
35686    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
35687fi
35688
35689
35690# Create a simple string containing format names for all delegate libraries.
35691MAGICK_DELEGATES=''
35692if test "$have_autotrace"  = 'yes' ; then
35693   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
35694fi
35695if test "$have_bzlib"  = 'yes' ; then
35696   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
35697fi
35698if test "$have_dps"    = 'yes' ; then
35699   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
35700fi
35701if test "$have_djvu"    = 'yes' ; then
35702   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
35703fi
35704if test "$have_avconv"   = 'yes' ; then
35705   MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
35706fi
35707if test "$have_fftw"    = 'yes' ; then
35708   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
35709fi
35710if test "$have_fpx"    = 'yes' ; then
35711   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
35712fi
35713if test "$have_fontconfig"    = 'yes' ; then
35714   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
35715fi
35716if test "$have_freetype"    = 'yes' ; then
35717   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
35718fi
35719if test "$have_gslib"    = 'yes' ; then
35720   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
35721fi
35722if test "$have_jbig"    = 'yes' ; then
35723   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
35724fi
35725if test "$have_png$have_jpeg" = 'yesyes' ; then
35726   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
35727fi
35728if test "$have_jp2"   = 'yes' ; then
35729   MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
35730fi
35731if test "$have_jpeg"   = 'yes' ; then
35732   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
35733fi
35734if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
35735   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
35736fi
35737if test "$have_lqr"    = 'yes' ; then
35738   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
35739fi
35740if test "$have_lzma"    = 'yes' ; then
35741   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
35742fi
35743if test "$have_openexr"    = 'yes' ; then
35744   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
35745fi
35746if test "$have_openjp2"    = 'yes' ; then
35747   MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
35748fi
35749if test "$have_pango"    = 'yes' ; then
35750   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
35751fi
35752if test "$have_png"    = 'yes' ; then
35753   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
35754fi
35755have_ps='no'
35756if test "$have_dps"    = 'yes' || \
35757   test "$have_gs" = 'yes' || \
35758   test "${native_win32_build}" = 'yes' ; then
35759   have_ps='yes'
35760fi
35761if test "$have_ps"     = 'yes' ; then
35762   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
35763fi
35764if test "$have_ra_ppm" = 'yes' ; then
35765   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
35766fi
35767if test "$have_rsvg"   = 'yes' ; then
35768   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
35769fi
35770if test "$have_tiff"   = 'yes' ; then
35771   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
35772fi
35773if test "$have_ttf"    = 'yes' ; then
35774   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
35775fi
35776if test "$have_webp"    = 'yes' ; then
35777   MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35778fi
35779if test "$have_wmf"    = 'yes' ; then
35780   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
35781fi
35782if test "$have_x"      = 'yes' ; then
35783   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
35784fi
35785if test "$have_xml"      = 'yes' ; then
35786   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
35787fi
35788if test "$have_zlib"   = 'yes' ; then
35789   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
35790fi
35791# Remove extraneous spaces from output variables (asthetic)
35792MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
35793MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
35794
35795
35796
35797#
35798# Handle special compiler flags
35799#
35800
35801# Add '-p' if prof source profiling support enabled
35802if test "$enable_prof" = 'yes'; then
35803    CFLAGS="-p $CFLAGS"
35804    CXXFLAGS="-p $CXXFLAGS"
35805    LDFLAGS="-p $LDFLAGS"
35806fi
35807
35808# Add '-pg' if gprof source profiling support enabled
35809if test "$enable_gprof" = 'yes'; then
35810    CFLAGS="-pg $CFLAGS"
35811    CXXFLAGS="-pg $CXXFLAGS"
35812    LDFLAGS="-pg $LDFLAGS"
35813fi
35814
35815# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35816# This is a gcc-specific feature
35817if test "$enable_gcov" = 'yes'; then
35818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
35819$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
35820if ${ac_cv_lib_gcov__gcov_init+:} false; then :
35821  $as_echo_n "(cached) " >&6
35822else
35823  ac_check_lib_save_LIBS=$LIBS
35824LIBS="-lgcov  $LIBS"
35825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35826/* end confdefs.h.  */
35827
35828/* Override any GCC internal prototype to avoid an error.
35829   Use char because int might match the return type of a GCC
35830   builtin and then its argument prototype would still apply.  */
35831#ifdef __cplusplus
35832extern "C"
35833#endif
35834char _gcov_init ();
35835int
35836main ()
35837{
35838return _gcov_init ();
35839  ;
35840  return 0;
35841}
35842_ACEOF
35843if ac_fn_c_try_link "$LINENO"; then :
35844  ac_cv_lib_gcov__gcov_init=yes
35845else
35846  ac_cv_lib_gcov__gcov_init=no
35847fi
35848rm -f core conftest.err conftest.$ac_objext \
35849    conftest$ac_exeext conftest.$ac_ext
35850LIBS=$ac_check_lib_save_LIBS
35851fi
35852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
35853$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
35854if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
35855  cat >>confdefs.h <<_ACEOF
35856#define HAVE_LIBGCOV 1
35857_ACEOF
35858
35859  LIBS="-lgcov $LIBS"
35860
35861fi
35862
35863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
35864$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
35865if ${ac_cv_lib_gcov___gcov_init+:} false; then :
35866  $as_echo_n "(cached) " >&6
35867else
35868  ac_check_lib_save_LIBS=$LIBS
35869LIBS="-lgcov  $LIBS"
35870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35871/* end confdefs.h.  */
35872
35873/* Override any GCC internal prototype to avoid an error.
35874   Use char because int might match the return type of a GCC
35875   builtin and then its argument prototype would still apply.  */
35876#ifdef __cplusplus
35877extern "C"
35878#endif
35879char __gcov_init ();
35880int
35881main ()
35882{
35883return __gcov_init ();
35884  ;
35885  return 0;
35886}
35887_ACEOF
35888if ac_fn_c_try_link "$LINENO"; then :
35889  ac_cv_lib_gcov___gcov_init=yes
35890else
35891  ac_cv_lib_gcov___gcov_init=no
35892fi
35893rm -f core conftest.err conftest.$ac_objext \
35894    conftest$ac_exeext conftest.$ac_ext
35895LIBS=$ac_check_lib_save_LIBS
35896fi
35897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
35898$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
35899if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
35900  cat >>confdefs.h <<_ACEOF
35901#define HAVE_LIBGCOV 1
35902_ACEOF
35903
35904  LIBS="-lgcov $LIBS"
35905
35906fi
35907
35908    case "$target_os" in
35909        darwin*)
35910            OSX_GCOV_LDFLAG="-Wl,-single_module"
35911        ;;
35912        *)
35913            OSX_GCOV_LDFLAG=""
35914        ;;
35915    esac
35916
35917    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
35918    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
35919    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35920fi
35921
35922#
35923# Build library dependency list for libMagickCore
35924#
35925
35926if test "$build_modules" != 'no'; then
35927    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"
35928else
35929    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"
35930fi
35931
35932
35933#
35934# Remove extraneous spaces from output variables (asthetic)
35935#
35936X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
35937X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
35938X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
35939X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
35940
35941CC=`echo $CC | sed -e 's/  */ /g'`
35942CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
35943CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
35944CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
35945DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
35946LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
35947TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35948MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
35949#LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35950
35951# Pass only user-provided LIBS as "global" libraries
35952LIBS=$USER_LIBS
35953
35954#AC_SUBST(CPPFLAGS)
35955
35956#AC_SUBST(LDFLAGS)
35957#AC_SUBST(X_PRE_LIBS)
35958#AC_SUBST(X_LIBS)
35959#AC_SUBST(X_EXTRA_LIBS)
35960
35961MAGICK_CFLAGS=$CFLAGS
35962MAGICK_CXXFLAGS="$CXXFLAGS"
35963MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
35964MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
35965MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35966MAGICK_LIBS="$MAGICK_DEP_LIBS"
35967
35968
35969
35970
35971
35972
35973
35974
35975# Set configured scripts to executable.
35976ac_config_commands="$ac_config_commands default"
35977
35978ac_config_commands="$ac_config_commands magick.sh.in"
35979
35980ac_config_commands="$ac_config_commands MagickCore-config.in"
35981
35982ac_config_commands="$ac_config_commands MagickWand-config.in"
35983
35984ac_config_commands="$ac_config_commands Magick++-config.in"
35985
35986ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35987
35988
35989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35990$as_echo "-------------------------------------------------------------" >&6; }
35991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35992$as_echo "Update ImageMagick configuration" >&6; }
35993cat >confcache <<\_ACEOF
35994# This file is a shell script that caches the results of configure
35995# tests run on this system so they can be shared between configure
35996# scripts and configure runs, see configure's option --config-cache.
35997# It is not useful on other systems.  If it contains results you don't
35998# want to keep, you may remove or edit it.
35999#
36000# config.status only pays attention to the cache file if you give it
36001# the --recheck option to rerun configure.
36002#
36003# `ac_cv_env_foo' variables (set or unset) will be overridden when
36004# loading this file, other *unset* `ac_cv_foo' will be assigned the
36005# following values.
36006
36007_ACEOF
36008
36009# The following way of writing the cache mishandles newlines in values,
36010# but we know of no workaround that is simple, portable, and efficient.
36011# So, we kill variables containing newlines.
36012# Ultrix sh set writes to stderr and can't be redirected directly,
36013# and sets the high bit in the cache file unless we assign to the vars.
36014(
36015  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36016    eval ac_val=\$$ac_var
36017    case $ac_val in #(
36018    *${as_nl}*)
36019      case $ac_var in #(
36020      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36021$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36022      esac
36023      case $ac_var in #(
36024      _ | IFS | as_nl) ;; #(
36025      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36026      *) { eval $ac_var=; unset $ac_var;} ;;
36027      esac ;;
36028    esac
36029  done
36030
36031  (set) 2>&1 |
36032    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36033    *${as_nl}ac_space=\ *)
36034      # `set' does not quote correctly, so add quotes: double-quote
36035      # substitution turns \\\\ into \\, and sed turns \\ into \.
36036      sed -n \
36037	"s/'/'\\\\''/g;
36038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36039      ;; #(
36040    *)
36041      # `set' quotes correctly as required by POSIX, so do not add quotes.
36042      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36043      ;;
36044    esac |
36045    sort
36046) |
36047  sed '
36048     /^ac_cv_env_/b end
36049     t clear
36050     :clear
36051     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36052     t end
36053     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36054     :end' >>confcache
36055if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36056  if test -w "$cache_file"; then
36057    if test "x$cache_file" != "x/dev/null"; then
36058      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36059$as_echo "$as_me: updating cache $cache_file" >&6;}
36060      if test ! -f "$cache_file" || test -h "$cache_file"; then
36061	cat confcache >"$cache_file"
36062      else
36063        case $cache_file in #(
36064        */* | ?:*)
36065	  mv -f confcache "$cache_file"$$ &&
36066	  mv -f "$cache_file"$$ "$cache_file" ;; #(
36067        *)
36068	  mv -f confcache "$cache_file" ;;
36069	esac
36070      fi
36071    fi
36072  else
36073    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36074$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36075  fi
36076fi
36077rm -f confcache
36078
36079test "x$prefix" = xNONE && prefix=$ac_default_prefix
36080# Let make expand exec_prefix.
36081test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36082
36083DEFS=-DHAVE_CONFIG_H
36084
36085ac_libobjs=
36086ac_ltlibobjs=
36087U=
36088for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36089  # 1. Remove the extension, and $U if already installed.
36090  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36091  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36092  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36093  #    will be set to the directory where LIBOBJS objects are built.
36094  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36095  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36096done
36097LIBOBJS=$ac_libobjs
36098
36099LTLIBOBJS=$ac_ltlibobjs
36100
36101
36102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36103$as_echo_n "checking that generated files are newer than configure... " >&6; }
36104   if test -n "$am_sleep_pid"; then
36105     # Hide warnings about reused PIDs.
36106     wait $am_sleep_pid 2>/dev/null
36107   fi
36108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36109$as_echo "done" >&6; }
36110 if test -n "$EXEEXT"; then
36111  am__EXEEXT_TRUE=
36112  am__EXEEXT_FALSE='#'
36113else
36114  am__EXEEXT_TRUE='#'
36115  am__EXEEXT_FALSE=
36116fi
36117
36118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36119  as_fn_error $? "conditional \"AMDEP\" was never defined.
36120Usually this means the macro was only invoked conditionally." "$LINENO" 5
36121fi
36122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36123  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36124Usually this means the macro was only invoked conditionally." "$LINENO" 5
36125fi
36126if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36127  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36128Usually this means the macro was only invoked conditionally." "$LINENO" 5
36129fi
36130if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36131  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36132Usually this means the macro was only invoked conditionally." "$LINENO" 5
36133fi
36134if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36135  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36136Usually this means the macro was only invoked conditionally." "$LINENO" 5
36137fi
36138if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
36139  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
36140Usually this means the macro was only invoked conditionally." "$LINENO" 5
36141fi
36142if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
36143  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
36144Usually this means the macro was only invoked conditionally." "$LINENO" 5
36145fi
36146if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
36147  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
36148Usually this means the macro was only invoked conditionally." "$LINENO" 5
36149fi
36150if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
36151  as_fn_error $? "conditional \"USING_CL\" was never defined.
36152Usually this means the macro was only invoked conditionally." "$LINENO" 5
36153fi
36154if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36155  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36156Usually this means the macro was only invoked conditionally." "$LINENO" 5
36157fi
36158if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36159  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36160Usually this means the macro was only invoked conditionally." "$LINENO" 5
36161fi
36162if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36163  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36164Usually this means the macro was only invoked conditionally." "$LINENO" 5
36165fi
36166if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36167  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36168Usually this means the macro was only invoked conditionally." "$LINENO" 5
36169fi
36170
36171if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36172  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36173Usually this means the macro was only invoked conditionally." "$LINENO" 5
36174fi
36175if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36176  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36177Usually this means the macro was only invoked conditionally." "$LINENO" 5
36178fi
36179if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
36180  as_fn_error $? "conditional \"HasUMEM\" was never defined.
36181Usually this means the macro was only invoked conditionally." "$LINENO" 5
36182fi
36183if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36184  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36185Usually this means the macro was only invoked conditionally." "$LINENO" 5
36186fi
36187if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36188  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36189Usually this means the macro was only invoked conditionally." "$LINENO" 5
36190fi
36191if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36192  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36193Usually this means the macro was only invoked conditionally." "$LINENO" 5
36194fi
36195if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36196  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36197Usually this means the macro was only invoked conditionally." "$LINENO" 5
36198fi
36199if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36200  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36201Usually this means the macro was only invoked conditionally." "$LINENO" 5
36202fi
36203if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36204  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36205Usually this means the macro was only invoked conditionally." "$LINENO" 5
36206fi
36207if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36208  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36209Usually this means the macro was only invoked conditionally." "$LINENO" 5
36210fi
36211if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36212  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36213Usually this means the macro was only invoked conditionally." "$LINENO" 5
36214fi
36215if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36216  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36217Usually this means the macro was only invoked conditionally." "$LINENO" 5
36218fi
36219if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36220  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36221Usually this means the macro was only invoked conditionally." "$LINENO" 5
36222fi
36223if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
36224  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
36225Usually this means the macro was only invoked conditionally." "$LINENO" 5
36226fi
36227if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36228  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36229Usually this means the macro was only invoked conditionally." "$LINENO" 5
36230fi
36231if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36232  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36233Usually this means the macro was only invoked conditionally." "$LINENO" 5
36234fi
36235if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36236  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36237Usually this means the macro was only invoked conditionally." "$LINENO" 5
36238fi
36239if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36240  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36241Usually this means the macro was only invoked conditionally." "$LINENO" 5
36242fi
36243if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36244  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36245Usually this means the macro was only invoked conditionally." "$LINENO" 5
36246fi
36247if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36248  as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36249Usually this means the macro was only invoked conditionally." "$LINENO" 5
36250fi
36251if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36252  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36253Usually this means the macro was only invoked conditionally." "$LINENO" 5
36254fi
36255if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36256  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36257Usually this means the macro was only invoked conditionally." "$LINENO" 5
36258fi
36259if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36260  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36261Usually this means the macro was only invoked conditionally." "$LINENO" 5
36262fi
36263if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36264  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36265Usually this means the macro was only invoked conditionally." "$LINENO" 5
36266fi
36267if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36268  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36269Usually this means the macro was only invoked conditionally." "$LINENO" 5
36270fi
36271if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36272  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36273Usually this means the macro was only invoked conditionally." "$LINENO" 5
36274fi
36275if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36276  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36277Usually this means the macro was only invoked conditionally." "$LINENO" 5
36278fi
36279if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36280  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36281Usually this means the macro was only invoked conditionally." "$LINENO" 5
36282fi
36283if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36284  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36285Usually this means the macro was only invoked conditionally." "$LINENO" 5
36286fi
36287if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36288  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36289Usually this means the macro was only invoked conditionally." "$LINENO" 5
36290fi
36291if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36292  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36293Usually this means the macro was only invoked conditionally." "$LINENO" 5
36294fi
36295if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36296  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36297Usually this means the macro was only invoked conditionally." "$LINENO" 5
36298fi
36299if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36300  as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36301Usually this means the macro was only invoked conditionally." "$LINENO" 5
36302fi
36303if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36304  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36305Usually this means the macro was only invoked conditionally." "$LINENO" 5
36306fi
36307if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36308  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36309Usually this means the macro was only invoked conditionally." "$LINENO" 5
36310fi
36311if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36312  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36313Usually this means the macro was only invoked conditionally." "$LINENO" 5
36314fi
36315if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36316  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36317Usually this means the macro was only invoked conditionally." "$LINENO" 5
36318fi
36319if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36320  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36321Usually this means the macro was only invoked conditionally." "$LINENO" 5
36322fi
36323if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36324  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36325Usually this means the macro was only invoked conditionally." "$LINENO" 5
36326fi
36327
36328: "${CONFIG_STATUS=./config.status}"
36329ac_write_fail=0
36330ac_clean_files_save=$ac_clean_files
36331ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36332{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36333$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36334as_write_fail=0
36335cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36336#! $SHELL
36337# Generated by $as_me.
36338# Run this file to recreate the current configuration.
36339# Compiler output produced by configure, useful for debugging
36340# configure, is in config.log if it exists.
36341
36342debug=false
36343ac_cs_recheck=false
36344ac_cs_silent=false
36345
36346SHELL=\${CONFIG_SHELL-$SHELL}
36347export SHELL
36348_ASEOF
36349cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36350## -------------------- ##
36351## M4sh Initialization. ##
36352## -------------------- ##
36353
36354# Be more Bourne compatible
36355DUALCASE=1; export DUALCASE # for MKS sh
36356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36357  emulate sh
36358  NULLCMD=:
36359  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36360  # is contrary to our usage.  Disable this feature.
36361  alias -g '${1+"$@"}'='"$@"'
36362  setopt NO_GLOB_SUBST
36363else
36364  case `(set -o) 2>/dev/null` in #(
36365  *posix*) :
36366    set -o posix ;; #(
36367  *) :
36368     ;;
36369esac
36370fi
36371
36372
36373as_nl='
36374'
36375export as_nl
36376# Printing a long string crashes Solaris 7 /usr/bin/printf.
36377as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36379as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36380# Prefer a ksh shell builtin over an external printf program on Solaris,
36381# but without wasting forks for bash or zsh.
36382if test -z "$BASH_VERSION$ZSH_VERSION" \
36383    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36384  as_echo='print -r --'
36385  as_echo_n='print -rn --'
36386elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36387  as_echo='printf %s\n'
36388  as_echo_n='printf %s'
36389else
36390  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36391    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36392    as_echo_n='/usr/ucb/echo -n'
36393  else
36394    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36395    as_echo_n_body='eval
36396      arg=$1;
36397      case $arg in #(
36398      *"$as_nl"*)
36399	expr "X$arg" : "X\\(.*\\)$as_nl";
36400	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36401      esac;
36402      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36403    '
36404    export as_echo_n_body
36405    as_echo_n='sh -c $as_echo_n_body as_echo'
36406  fi
36407  export as_echo_body
36408  as_echo='sh -c $as_echo_body as_echo'
36409fi
36410
36411# The user is always right.
36412if test "${PATH_SEPARATOR+set}" != set; then
36413  PATH_SEPARATOR=:
36414  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36415    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36416      PATH_SEPARATOR=';'
36417  }
36418fi
36419
36420
36421# IFS
36422# We need space, tab and new line, in precisely that order.  Quoting is
36423# there to prevent editors from complaining about space-tab.
36424# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36425# splitting by setting IFS to empty value.)
36426IFS=" ""	$as_nl"
36427
36428# Find who we are.  Look in the path if we contain no directory separator.
36429as_myself=
36430case $0 in #((
36431  *[\\/]* ) as_myself=$0 ;;
36432  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36433for as_dir in $PATH
36434do
36435  IFS=$as_save_IFS
36436  test -z "$as_dir" && as_dir=.
36437    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36438  done
36439IFS=$as_save_IFS
36440
36441     ;;
36442esac
36443# We did not find ourselves, most probably we were run as `sh COMMAND'
36444# in which case we are not to be found in the path.
36445if test "x$as_myself" = x; then
36446  as_myself=$0
36447fi
36448if test ! -f "$as_myself"; then
36449  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36450  exit 1
36451fi
36452
36453# Unset variables that we do not need and which cause bugs (e.g. in
36454# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36455# suppresses any "Segmentation fault" message there.  '((' could
36456# trigger a bug in pdksh 5.2.14.
36457for as_var in BASH_ENV ENV MAIL MAILPATH
36458do eval test x\${$as_var+set} = xset \
36459  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36460done
36461PS1='$ '
36462PS2='> '
36463PS4='+ '
36464
36465# NLS nuisances.
36466LC_ALL=C
36467export LC_ALL
36468LANGUAGE=C
36469export LANGUAGE
36470
36471# CDPATH.
36472(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36473
36474
36475# as_fn_error STATUS ERROR [LINENO LOG_FD]
36476# ----------------------------------------
36477# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36478# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36479# script with STATUS, using 1 if that was 0.
36480as_fn_error ()
36481{
36482  as_status=$1; test $as_status -eq 0 && as_status=1
36483  if test "$4"; then
36484    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36485    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36486  fi
36487  $as_echo "$as_me: error: $2" >&2
36488  as_fn_exit $as_status
36489} # as_fn_error
36490
36491
36492# as_fn_set_status STATUS
36493# -----------------------
36494# Set $? to STATUS, without forking.
36495as_fn_set_status ()
36496{
36497  return $1
36498} # as_fn_set_status
36499
36500# as_fn_exit STATUS
36501# -----------------
36502# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36503as_fn_exit ()
36504{
36505  set +e
36506  as_fn_set_status $1
36507  exit $1
36508} # as_fn_exit
36509
36510# as_fn_unset VAR
36511# ---------------
36512# Portably unset VAR.
36513as_fn_unset ()
36514{
36515  { eval $1=; unset $1;}
36516}
36517as_unset=as_fn_unset
36518# as_fn_append VAR VALUE
36519# ----------------------
36520# Append the text in VALUE to the end of the definition contained in VAR. Take
36521# advantage of any shell optimizations that allow amortized linear growth over
36522# repeated appends, instead of the typical quadratic growth present in naive
36523# implementations.
36524if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36525  eval 'as_fn_append ()
36526  {
36527    eval $1+=\$2
36528  }'
36529else
36530  as_fn_append ()
36531  {
36532    eval $1=\$$1\$2
36533  }
36534fi # as_fn_append
36535
36536# as_fn_arith ARG...
36537# ------------------
36538# Perform arithmetic evaluation on the ARGs, and store the result in the
36539# global $as_val. Take advantage of shells that can avoid forks. The arguments
36540# must be portable across $(()) and expr.
36541if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36542  eval 'as_fn_arith ()
36543  {
36544    as_val=$(( $* ))
36545  }'
36546else
36547  as_fn_arith ()
36548  {
36549    as_val=`expr "$@" || test $? -eq 1`
36550  }
36551fi # as_fn_arith
36552
36553
36554if expr a : '\(a\)' >/dev/null 2>&1 &&
36555   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36556  as_expr=expr
36557else
36558  as_expr=false
36559fi
36560
36561if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36562  as_basename=basename
36563else
36564  as_basename=false
36565fi
36566
36567if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36568  as_dirname=dirname
36569else
36570  as_dirname=false
36571fi
36572
36573as_me=`$as_basename -- "$0" ||
36574$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36575	 X"$0" : 'X\(//\)$' \| \
36576	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36577$as_echo X/"$0" |
36578    sed '/^.*\/\([^/][^/]*\)\/*$/{
36579	    s//\1/
36580	    q
36581	  }
36582	  /^X\/\(\/\/\)$/{
36583	    s//\1/
36584	    q
36585	  }
36586	  /^X\/\(\/\).*/{
36587	    s//\1/
36588	    q
36589	  }
36590	  s/.*/./; q'`
36591
36592# Avoid depending upon Character Ranges.
36593as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36594as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36595as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36596as_cr_digits='0123456789'
36597as_cr_alnum=$as_cr_Letters$as_cr_digits
36598
36599ECHO_C= ECHO_N= ECHO_T=
36600case `echo -n x` in #(((((
36601-n*)
36602  case `echo 'xy\c'` in
36603  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36604  xy)  ECHO_C='\c';;
36605  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36606       ECHO_T='	';;
36607  esac;;
36608*)
36609  ECHO_N='-n';;
36610esac
36611
36612rm -f conf$$ conf$$.exe conf$$.file
36613if test -d conf$$.dir; then
36614  rm -f conf$$.dir/conf$$.file
36615else
36616  rm -f conf$$.dir
36617  mkdir conf$$.dir 2>/dev/null
36618fi
36619if (echo >conf$$.file) 2>/dev/null; then
36620  if ln -s conf$$.file conf$$ 2>/dev/null; then
36621    as_ln_s='ln -s'
36622    # ... but there are two gotchas:
36623    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36624    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36625    # In both cases, we have to default to `cp -pR'.
36626    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36627      as_ln_s='cp -pR'
36628  elif ln conf$$.file conf$$ 2>/dev/null; then
36629    as_ln_s=ln
36630  else
36631    as_ln_s='cp -pR'
36632  fi
36633else
36634  as_ln_s='cp -pR'
36635fi
36636rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36637rmdir conf$$.dir 2>/dev/null
36638
36639
36640# as_fn_mkdir_p
36641# -------------
36642# Create "$as_dir" as a directory, including parents if necessary.
36643as_fn_mkdir_p ()
36644{
36645
36646  case $as_dir in #(
36647  -*) as_dir=./$as_dir;;
36648  esac
36649  test -d "$as_dir" || eval $as_mkdir_p || {
36650    as_dirs=
36651    while :; do
36652      case $as_dir in #(
36653      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36654      *) as_qdir=$as_dir;;
36655      esac
36656      as_dirs="'$as_qdir' $as_dirs"
36657      as_dir=`$as_dirname -- "$as_dir" ||
36658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36659	 X"$as_dir" : 'X\(//\)[^/]' \| \
36660	 X"$as_dir" : 'X\(//\)$' \| \
36661	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36662$as_echo X"$as_dir" |
36663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36664	    s//\1/
36665	    q
36666	  }
36667	  /^X\(\/\/\)[^/].*/{
36668	    s//\1/
36669	    q
36670	  }
36671	  /^X\(\/\/\)$/{
36672	    s//\1/
36673	    q
36674	  }
36675	  /^X\(\/\).*/{
36676	    s//\1/
36677	    q
36678	  }
36679	  s/.*/./; q'`
36680      test -d "$as_dir" && break
36681    done
36682    test -z "$as_dirs" || eval "mkdir $as_dirs"
36683  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36684
36685
36686} # as_fn_mkdir_p
36687if mkdir -p . 2>/dev/null; then
36688  as_mkdir_p='mkdir -p "$as_dir"'
36689else
36690  test -d ./-p && rmdir ./-p
36691  as_mkdir_p=false
36692fi
36693
36694
36695# as_fn_executable_p FILE
36696# -----------------------
36697# Test if FILE is an executable regular file.
36698as_fn_executable_p ()
36699{
36700  test -f "$1" && test -x "$1"
36701} # as_fn_executable_p
36702as_test_x='test -x'
36703as_executable_p=as_fn_executable_p
36704
36705# Sed expression to map a string onto a valid CPP name.
36706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36707
36708# Sed expression to map a string onto a valid variable name.
36709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36710
36711
36712exec 6>&1
36713## ----------------------------------- ##
36714## Main body of $CONFIG_STATUS script. ##
36715## ----------------------------------- ##
36716_ASEOF
36717test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36718
36719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36720# Save the log message, to keep $0 and so on meaningful, and to
36721# report actual input values of CONFIG_FILES etc. instead of their
36722# values after options handling.
36723ac_log="
36724This file was extended by ImageMagick $as_me 7.0.0-0, which was
36725generated by GNU Autoconf 2.69.  Invocation command line was
36726
36727  CONFIG_FILES    = $CONFIG_FILES
36728  CONFIG_HEADERS  = $CONFIG_HEADERS
36729  CONFIG_LINKS    = $CONFIG_LINKS
36730  CONFIG_COMMANDS = $CONFIG_COMMANDS
36731  $ $0 $@
36732
36733on `(hostname || uname -n) 2>/dev/null | sed 1q`
36734"
36735
36736_ACEOF
36737
36738case $ac_config_files in *"
36739"*) set x $ac_config_files; shift; ac_config_files=$*;;
36740esac
36741
36742case $ac_config_headers in *"
36743"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36744esac
36745
36746
36747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36748# Files that config.status was made for.
36749config_files="$ac_config_files"
36750config_headers="$ac_config_headers"
36751config_commands="$ac_config_commands"
36752
36753_ACEOF
36754
36755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36756ac_cs_usage="\
36757\`$as_me' instantiates files and other configuration actions
36758from templates according to the current configuration.  Unless the files
36759and actions are specified as TAGs, all are instantiated by default.
36760
36761Usage: $0 [OPTION]... [TAG]...
36762
36763  -h, --help       print this help, then exit
36764  -V, --version    print version number and configuration settings, then exit
36765      --config     print configuration, then exit
36766  -q, --quiet, --silent
36767                   do not print progress messages
36768  -d, --debug      don't remove temporary files
36769      --recheck    update $as_me by reconfiguring in the same conditions
36770      --file=FILE[:TEMPLATE]
36771                   instantiate the configuration file FILE
36772      --header=FILE[:TEMPLATE]
36773                   instantiate the configuration header FILE
36774
36775Configuration files:
36776$config_files
36777
36778Configuration headers:
36779$config_headers
36780
36781Configuration commands:
36782$config_commands
36783
36784Report bugs to <http://www.imagemagick.org>."
36785
36786_ACEOF
36787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36789ac_cs_version="\\
36790ImageMagick config.status 7.0.0-0
36791configured by $0, generated by GNU Autoconf 2.69,
36792  with options \\"\$ac_cs_config\\"
36793
36794Copyright (C) 2012 Free Software Foundation, Inc.
36795This config.status script is free software; the Free Software Foundation
36796gives unlimited permission to copy, distribute and modify it."
36797
36798ac_pwd='$ac_pwd'
36799srcdir='$srcdir'
36800INSTALL='$INSTALL'
36801MKDIR_P='$MKDIR_P'
36802AWK='$AWK'
36803test -n "\$AWK" || AWK=awk
36804_ACEOF
36805
36806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36807# The default lists apply if the user does not specify any file.
36808ac_need_defaults=:
36809while test $# != 0
36810do
36811  case $1 in
36812  --*=?*)
36813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36815    ac_shift=:
36816    ;;
36817  --*=)
36818    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36819    ac_optarg=
36820    ac_shift=:
36821    ;;
36822  *)
36823    ac_option=$1
36824    ac_optarg=$2
36825    ac_shift=shift
36826    ;;
36827  esac
36828
36829  case $ac_option in
36830  # Handling of the options.
36831  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36832    ac_cs_recheck=: ;;
36833  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36834    $as_echo "$ac_cs_version"; exit ;;
36835  --config | --confi | --conf | --con | --co | --c )
36836    $as_echo "$ac_cs_config"; exit ;;
36837  --debug | --debu | --deb | --de | --d | -d )
36838    debug=: ;;
36839  --file | --fil | --fi | --f )
36840    $ac_shift
36841    case $ac_optarg in
36842    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36843    '') as_fn_error $? "missing file argument" ;;
36844    esac
36845    as_fn_append CONFIG_FILES " '$ac_optarg'"
36846    ac_need_defaults=false;;
36847  --header | --heade | --head | --hea )
36848    $ac_shift
36849    case $ac_optarg in
36850    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36851    esac
36852    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36853    ac_need_defaults=false;;
36854  --he | --h)
36855    # Conflict between --help and --header
36856    as_fn_error $? "ambiguous option: \`$1'
36857Try \`$0 --help' for more information.";;
36858  --help | --hel | -h )
36859    $as_echo "$ac_cs_usage"; exit ;;
36860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36862    ac_cs_silent=: ;;
36863
36864  # This is an error.
36865  -*) as_fn_error $? "unrecognized option: \`$1'
36866Try \`$0 --help' for more information." ;;
36867
36868  *) as_fn_append ac_config_targets " $1"
36869     ac_need_defaults=false ;;
36870
36871  esac
36872  shift
36873done
36874
36875ac_configure_extra_args=
36876
36877if $ac_cs_silent; then
36878  exec 6>/dev/null
36879  ac_configure_extra_args="$ac_configure_extra_args --silent"
36880fi
36881
36882_ACEOF
36883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36884if \$ac_cs_recheck; then
36885  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36886  shift
36887  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36888  CONFIG_SHELL='$SHELL'
36889  export CONFIG_SHELL
36890  exec "\$@"
36891fi
36892
36893_ACEOF
36894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36895exec 5>>config.log
36896{
36897  echo
36898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36899## Running $as_me. ##
36900_ASBOX
36901  $as_echo "$ac_log"
36902} >&5
36903
36904_ACEOF
36905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36906#
36907# INIT-COMMANDS
36908#
36909PACKAGE="$PACKAGE"
36910AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36911
36912
36913# The HP-UX ksh and POSIX shell print the target directory to stdout
36914# if CDPATH is set.
36915(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36916
36917sed_quote_subst='$sed_quote_subst'
36918double_quote_subst='$double_quote_subst'
36919delay_variable_subst='$delay_variable_subst'
36920SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36921Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36922GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36923EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36924FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36927LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36928macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36929macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36930AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36931DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36932OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36933enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36934enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36937PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36938host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36939host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36940host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36941build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36942build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36943build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36944NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36945LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36946max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36947ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36948exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36949lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36950lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36951lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36952lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36953lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36954reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36955reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36956deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36957file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36958file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36959want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36960sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36961AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36962AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36963archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36964STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36965RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36966old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36967old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36968old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36969lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36970CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36971CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36972compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36973GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36974lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36975lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36976lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36977lt_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"`'
36978nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36979lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36980objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36981MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36982lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36983lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36984lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36985lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36986lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36987need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36988MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36989DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36990NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36991LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36992OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36993OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36994libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36995shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36996extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36997archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36998enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36999export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37000whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37001compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37002old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37003old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37004archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37005archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37006module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37007module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37008with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37009allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37010no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37011hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37012hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37013hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37014hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37015hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37016hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37017hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37018inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37019link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37020always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37021export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37022exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37023include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37024prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37025postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37026file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37027variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37028need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37029need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37030version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37031runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37032shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37033shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37034libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37035library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37036soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37037install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37038postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37039postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37040finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37041finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37042hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37043sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37044sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37045hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37046enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37047enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37048enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37049old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37050striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37051compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37052predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37053postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37054predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37055postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37056compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37057LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37058reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37059reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37060old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37061compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37062GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37063lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37064lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37065lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37066lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37067lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37068archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37069enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37070export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37071whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37072compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37073old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37074old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37075archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37076archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37077module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37078module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37079with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37080allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37081no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37082hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37083hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37084hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37085hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37086hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37087hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37088hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37089inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37090link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37091always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37092export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37093exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37094include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37095prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37096postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37097file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37098hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37099compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37100predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37101postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37102predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37103postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37104compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37105
37106LTCC='$LTCC'
37107LTCFLAGS='$LTCFLAGS'
37108compiler='$compiler_DEFAULT'
37109
37110# A function that is used when there is no print builtin or printf.
37111func_fallback_echo ()
37112{
37113  eval 'cat <<_LTECHO_EOF
37114\$1
37115_LTECHO_EOF'
37116}
37117
37118# Quote evaled strings.
37119for var in SED \
37120GREP \
37121EGREP \
37122FGREP \
37123SHELL \
37124ECHO \
37125LD \
37126AS \
37127DLLTOOL \
37128OBJDUMP \
37129PATH_SEPARATOR \
37130NM \
37131LN_S \
37132lt_SP2NL \
37133lt_NL2SP \
37134reload_flag \
37135deplibs_check_method \
37136file_magic_cmd \
37137file_magic_glob \
37138want_nocaseglob \
37139sharedlib_from_linklib_cmd \
37140AR \
37141AR_FLAGS \
37142archiver_list_spec \
37143STRIP \
37144RANLIB \
37145CC \
37146CFLAGS \
37147compiler \
37148lt_cv_sys_global_symbol_pipe \
37149lt_cv_sys_global_symbol_to_cdecl \
37150lt_cv_sys_global_symbol_to_c_name_address \
37151lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37152nm_file_list_spec \
37153lt_prog_compiler_no_builtin_flag \
37154lt_prog_compiler_pic \
37155lt_prog_compiler_wl \
37156lt_prog_compiler_static \
37157lt_cv_prog_compiler_c_o \
37158need_locks \
37159MANIFEST_TOOL \
37160DSYMUTIL \
37161NMEDIT \
37162LIPO \
37163OTOOL \
37164OTOOL64 \
37165shrext_cmds \
37166export_dynamic_flag_spec \
37167whole_archive_flag_spec \
37168compiler_needs_object \
37169with_gnu_ld \
37170allow_undefined_flag \
37171no_undefined_flag \
37172hardcode_libdir_flag_spec \
37173hardcode_libdir_separator \
37174exclude_expsyms \
37175include_expsyms \
37176file_list_spec \
37177variables_saved_for_relink \
37178libname_spec \
37179library_names_spec \
37180soname_spec \
37181install_override_mode \
37182finish_eval \
37183old_striplib \
37184striplib \
37185compiler_lib_search_dirs \
37186predep_objects \
37187postdep_objects \
37188predeps \
37189postdeps \
37190compiler_lib_search_path \
37191LD_CXX \
37192reload_flag_CXX \
37193compiler_CXX \
37194lt_prog_compiler_no_builtin_flag_CXX \
37195lt_prog_compiler_pic_CXX \
37196lt_prog_compiler_wl_CXX \
37197lt_prog_compiler_static_CXX \
37198lt_cv_prog_compiler_c_o_CXX \
37199export_dynamic_flag_spec_CXX \
37200whole_archive_flag_spec_CXX \
37201compiler_needs_object_CXX \
37202with_gnu_ld_CXX \
37203allow_undefined_flag_CXX \
37204no_undefined_flag_CXX \
37205hardcode_libdir_flag_spec_CXX \
37206hardcode_libdir_separator_CXX \
37207exclude_expsyms_CXX \
37208include_expsyms_CXX \
37209file_list_spec_CXX \
37210compiler_lib_search_dirs_CXX \
37211predep_objects_CXX \
37212postdep_objects_CXX \
37213predeps_CXX \
37214postdeps_CXX \
37215compiler_lib_search_path_CXX; do
37216    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37217    *[\\\\\\\`\\"\\\$]*)
37218      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37219      ;;
37220    *)
37221      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37222      ;;
37223    esac
37224done
37225
37226# Double-quote double-evaled strings.
37227for var in reload_cmds \
37228old_postinstall_cmds \
37229old_postuninstall_cmds \
37230old_archive_cmds \
37231extract_expsyms_cmds \
37232old_archive_from_new_cmds \
37233old_archive_from_expsyms_cmds \
37234archive_cmds \
37235archive_expsym_cmds \
37236module_cmds \
37237module_expsym_cmds \
37238export_symbols_cmds \
37239prelink_cmds \
37240postlink_cmds \
37241postinstall_cmds \
37242postuninstall_cmds \
37243finish_cmds \
37244sys_lib_search_path_spec \
37245sys_lib_dlsearch_path_spec \
37246reload_cmds_CXX \
37247old_archive_cmds_CXX \
37248old_archive_from_new_cmds_CXX \
37249old_archive_from_expsyms_cmds_CXX \
37250archive_cmds_CXX \
37251archive_expsym_cmds_CXX \
37252module_cmds_CXX \
37253module_expsym_cmds_CXX \
37254export_symbols_cmds_CXX \
37255prelink_cmds_CXX \
37256postlink_cmds_CXX; do
37257    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37258    *[\\\\\\\`\\"\\\$]*)
37259      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37260      ;;
37261    *)
37262      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37263      ;;
37264    esac
37265done
37266
37267ac_aux_dir='$ac_aux_dir'
37268xsi_shell='$xsi_shell'
37269lt_shell_append='$lt_shell_append'
37270
37271# See if we are running on zsh, and set the options which allow our
37272# commands through without removal of \ escapes INIT.
37273if test -n "\${ZSH_VERSION+set}" ; then
37274   setopt NO_GLOB_SUBST
37275fi
37276
37277
37278    PACKAGE='$PACKAGE'
37279    VERSION='$VERSION'
37280    TIMESTAMP='$TIMESTAMP'
37281    RM='$RM'
37282    ofile='$ofile'
37283
37284
37285
37286
37287
37288
37289_ACEOF
37290
37291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37292
37293# Handling of arguments.
37294for ac_config_target in $ac_config_targets
37295do
37296  case $ac_config_target in
37297    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37298    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
37299    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
37300    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37301    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37302    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37303    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37304    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37305    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
37306    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37307    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37308    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37309    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37310    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37311    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37312    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37313    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37314    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37315    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37316    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37317    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37318    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37319    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37320    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
37321    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37322    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
37323    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37324    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37325    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37326    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
37327    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37328    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37329    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37330    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37331    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37332    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37333    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37334    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37335    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37336    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37337    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37338    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37339    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37340    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37341    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37342    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37343    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37344    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37345    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37346    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37347    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37348    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37349
37350  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37351  esac
37352done
37353
37354
37355# If the user did not use the arguments to specify the items to instantiate,
37356# then the envvar interface is used.  Set only those that are not.
37357# We use the long form for the default assignment because of an extremely
37358# bizarre bug on SunOS 4.1.3.
37359if $ac_need_defaults; then
37360  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37361  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37362  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37363fi
37364
37365# Have a temporary directory for convenience.  Make it in the build tree
37366# simply because there is no reason against having it here, and in addition,
37367# creating and moving files from /tmp can sometimes cause problems.
37368# Hook for its removal unless debugging.
37369# Note that there is a small window in which the directory will not be cleaned:
37370# after its creation but before its name has been assigned to `$tmp'.
37371$debug ||
37372{
37373  tmp= ac_tmp=
37374  trap 'exit_status=$?
37375  : "${ac_tmp:=$tmp}"
37376  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37377' 0
37378  trap 'as_fn_exit 1' 1 2 13 15
37379}
37380# Create a (secure) tmp directory for tmp files.
37381
37382{
37383  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37384  test -d "$tmp"
37385}  ||
37386{
37387  tmp=./conf$$-$RANDOM
37388  (umask 077 && mkdir "$tmp")
37389} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37390ac_tmp=$tmp
37391
37392# Set up the scripts for CONFIG_FILES section.
37393# No need to generate them if there are no CONFIG_FILES.
37394# This happens for instance with `./config.status config.h'.
37395if test -n "$CONFIG_FILES"; then
37396
37397
37398ac_cr=`echo X | tr X '\015'`
37399# On cygwin, bash can eat \r inside `` if the user requested igncr.
37400# But we know of no other shell where ac_cr would be empty at this
37401# point, so we can use a bashism as a fallback.
37402if test "x$ac_cr" = x; then
37403  eval ac_cr=\$\'\\r\'
37404fi
37405ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37406if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37407  ac_cs_awk_cr='\\r'
37408else
37409  ac_cs_awk_cr=$ac_cr
37410fi
37411
37412echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37413_ACEOF
37414
37415
37416{
37417  echo "cat >conf$$subs.awk <<_ACEOF" &&
37418  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37419  echo "_ACEOF"
37420} >conf$$subs.sh ||
37421  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37422ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37423ac_delim='%!_!# '
37424for ac_last_try in false false false false false :; do
37425  . ./conf$$subs.sh ||
37426    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37427
37428  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37429  if test $ac_delim_n = $ac_delim_num; then
37430    break
37431  elif $ac_last_try; then
37432    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37433  else
37434    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37435  fi
37436done
37437rm -f conf$$subs.sh
37438
37439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37440cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37441_ACEOF
37442sed -n '
37443h
37444s/^/S["/; s/!.*/"]=/
37445p
37446g
37447s/^[^!]*!//
37448:repl
37449t repl
37450s/'"$ac_delim"'$//
37451t delim
37452:nl
37453h
37454s/\(.\{148\}\)..*/\1/
37455t more1
37456s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37457p
37458n
37459b repl
37460:more1
37461s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37462p
37463g
37464s/.\{148\}//
37465t nl
37466:delim
37467h
37468s/\(.\{148\}\)..*/\1/
37469t more2
37470s/["\\]/\\&/g; s/^/"/; s/$/"/
37471p
37472b
37473:more2
37474s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37475p
37476g
37477s/.\{148\}//
37478t delim
37479' <conf$$subs.awk | sed '
37480/^[^""]/{
37481  N
37482  s/\n//
37483}
37484' >>$CONFIG_STATUS || ac_write_fail=1
37485rm -f conf$$subs.awk
37486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37487_ACAWK
37488cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37489  for (key in S) S_is_set[key] = 1
37490  FS = ""
37491
37492}
37493{
37494  line = $ 0
37495  nfields = split(line, field, "@")
37496  substed = 0
37497  len = length(field[1])
37498  for (i = 2; i < nfields; i++) {
37499    key = field[i]
37500    keylen = length(key)
37501    if (S_is_set[key]) {
37502      value = S[key]
37503      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37504      len += length(value) + length(field[++i])
37505      substed = 1
37506    } else
37507      len += 1 + keylen
37508  }
37509
37510  print line
37511}
37512
37513_ACAWK
37514_ACEOF
37515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37516if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37517  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37518else
37519  cat
37520fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37521  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37522_ACEOF
37523
37524# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37525# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37526# trailing colons and then remove the whole line if VPATH becomes empty
37527# (actually we leave an empty line to preserve line numbers).
37528if test "x$srcdir" = x.; then
37529  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37530h
37531s///
37532s/^/:/
37533s/[	 ]*$/:/
37534s/:\$(srcdir):/:/g
37535s/:\${srcdir}:/:/g
37536s/:@srcdir@:/:/g
37537s/^:*//
37538s/:*$//
37539x
37540s/\(=[	 ]*\).*/\1/
37541G
37542s/\n//
37543s/^[^=]*=[	 ]*$//
37544}'
37545fi
37546
37547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37548fi # test -n "$CONFIG_FILES"
37549
37550# Set up the scripts for CONFIG_HEADERS section.
37551# No need to generate them if there are no CONFIG_HEADERS.
37552# This happens for instance with `./config.status Makefile'.
37553if test -n "$CONFIG_HEADERS"; then
37554cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37555BEGIN {
37556_ACEOF
37557
37558# Transform confdefs.h into an awk script `defines.awk', embedded as
37559# here-document in config.status, that substitutes the proper values into
37560# config.h.in to produce config.h.
37561
37562# Create a delimiter string that does not exist in confdefs.h, to ease
37563# handling of long lines.
37564ac_delim='%!_!# '
37565for ac_last_try in false false :; do
37566  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37567  if test -z "$ac_tt"; then
37568    break
37569  elif $ac_last_try; then
37570    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37571  else
37572    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37573  fi
37574done
37575
37576# For the awk script, D is an array of macro values keyed by name,
37577# likewise P contains macro parameters if any.  Preserve backslash
37578# newline sequences.
37579
37580ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37581sed -n '
37582s/.\{148\}/&'"$ac_delim"'/g
37583t rset
37584:rset
37585s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37586t def
37587d
37588:def
37589s/\\$//
37590t bsnl
37591s/["\\]/\\&/g
37592s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37593D["\1"]=" \3"/p
37594s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37595d
37596:bsnl
37597s/["\\]/\\&/g
37598s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37599D["\1"]=" \3\\\\\\n"\\/p
37600t cont
37601s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37602t cont
37603d
37604:cont
37605n
37606s/.\{148\}/&'"$ac_delim"'/g
37607t clear
37608:clear
37609s/\\$//
37610t bsnlc
37611s/["\\]/\\&/g; s/^/"/; s/$/"/p
37612d
37613:bsnlc
37614s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37615b cont
37616' <confdefs.h | sed '
37617s/'"$ac_delim"'/"\\\
37618"/g' >>$CONFIG_STATUS || ac_write_fail=1
37619
37620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37621  for (key in D) D_is_set[key] = 1
37622  FS = ""
37623}
37624/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37625  line = \$ 0
37626  split(line, arg, " ")
37627  if (arg[1] == "#") {
37628    defundef = arg[2]
37629    mac1 = arg[3]
37630  } else {
37631    defundef = substr(arg[1], 2)
37632    mac1 = arg[2]
37633  }
37634  split(mac1, mac2, "(") #)
37635  macro = mac2[1]
37636  prefix = substr(line, 1, index(line, defundef) - 1)
37637  if (D_is_set[macro]) {
37638    # Preserve the white space surrounding the "#".
37639    print prefix "define", macro P[macro] D[macro]
37640    next
37641  } else {
37642    # Replace #undef with comments.  This is necessary, for example,
37643    # in the case of _POSIX_SOURCE, which is predefined and required
37644    # on some systems where configure will not decide to define it.
37645    if (defundef == "undef") {
37646      print "/*", prefix defundef, macro, "*/"
37647      next
37648    }
37649  }
37650}
37651{ print }
37652_ACAWK
37653_ACEOF
37654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37655  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37656fi # test -n "$CONFIG_HEADERS"
37657
37658
37659eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37660shift
37661for ac_tag
37662do
37663  case $ac_tag in
37664  :[FHLC]) ac_mode=$ac_tag; continue;;
37665  esac
37666  case $ac_mode$ac_tag in
37667  :[FHL]*:*);;
37668  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37669  :[FH]-) ac_tag=-:-;;
37670  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37671  esac
37672  ac_save_IFS=$IFS
37673  IFS=:
37674  set x $ac_tag
37675  IFS=$ac_save_IFS
37676  shift
37677  ac_file=$1
37678  shift
37679
37680  case $ac_mode in
37681  :L) ac_source=$1;;
37682  :[FH])
37683    ac_file_inputs=
37684    for ac_f
37685    do
37686      case $ac_f in
37687      -) ac_f="$ac_tmp/stdin";;
37688      *) # Look for the file first in the build tree, then in the source tree
37689	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37690	 # because $ac_f cannot contain `:'.
37691	 test -f "$ac_f" ||
37692	   case $ac_f in
37693	   [\\/$]*) false;;
37694	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37695	   esac ||
37696	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37697      esac
37698      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37699      as_fn_append ac_file_inputs " '$ac_f'"
37700    done
37701
37702    # Let's still pretend it is `configure' which instantiates (i.e., don't
37703    # use $as_me), people would be surprised to read:
37704    #    /* config.h.  Generated by config.status.  */
37705    configure_input='Generated from '`
37706	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37707	`' by configure.'
37708    if test x"$ac_file" != x-; then
37709      configure_input="$ac_file.  $configure_input"
37710      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37711$as_echo "$as_me: creating $ac_file" >&6;}
37712    fi
37713    # Neutralize special characters interpreted by sed in replacement strings.
37714    case $configure_input in #(
37715    *\&* | *\|* | *\\* )
37716       ac_sed_conf_input=`$as_echo "$configure_input" |
37717       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37718    *) ac_sed_conf_input=$configure_input;;
37719    esac
37720
37721    case $ac_tag in
37722    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37723      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37724    esac
37725    ;;
37726  esac
37727
37728  ac_dir=`$as_dirname -- "$ac_file" ||
37729$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37730	 X"$ac_file" : 'X\(//\)[^/]' \| \
37731	 X"$ac_file" : 'X\(//\)$' \| \
37732	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37733$as_echo X"$ac_file" |
37734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37735	    s//\1/
37736	    q
37737	  }
37738	  /^X\(\/\/\)[^/].*/{
37739	    s//\1/
37740	    q
37741	  }
37742	  /^X\(\/\/\)$/{
37743	    s//\1/
37744	    q
37745	  }
37746	  /^X\(\/\).*/{
37747	    s//\1/
37748	    q
37749	  }
37750	  s/.*/./; q'`
37751  as_dir="$ac_dir"; as_fn_mkdir_p
37752  ac_builddir=.
37753
37754case "$ac_dir" in
37755.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37756*)
37757  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37758  # A ".." for each directory in $ac_dir_suffix.
37759  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37760  case $ac_top_builddir_sub in
37761  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37762  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37763  esac ;;
37764esac
37765ac_abs_top_builddir=$ac_pwd
37766ac_abs_builddir=$ac_pwd$ac_dir_suffix
37767# for backward compatibility:
37768ac_top_builddir=$ac_top_build_prefix
37769
37770case $srcdir in
37771  .)  # We are building in place.
37772    ac_srcdir=.
37773    ac_top_srcdir=$ac_top_builddir_sub
37774    ac_abs_top_srcdir=$ac_pwd ;;
37775  [\\/]* | ?:[\\/]* )  # Absolute name.
37776    ac_srcdir=$srcdir$ac_dir_suffix;
37777    ac_top_srcdir=$srcdir
37778    ac_abs_top_srcdir=$srcdir ;;
37779  *) # Relative name.
37780    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37781    ac_top_srcdir=$ac_top_build_prefix$srcdir
37782    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37783esac
37784ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37785
37786
37787  case $ac_mode in
37788  :F)
37789  #
37790  # CONFIG_FILE
37791  #
37792
37793  case $INSTALL in
37794  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37795  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37796  esac
37797  ac_MKDIR_P=$MKDIR_P
37798  case $MKDIR_P in
37799  [\\/$]* | ?:[\\/]* ) ;;
37800  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37801  esac
37802_ACEOF
37803
37804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37805# If the template does not know about datarootdir, expand it.
37806# FIXME: This hack should be removed a few years after 2.60.
37807ac_datarootdir_hack=; ac_datarootdir_seen=
37808ac_sed_dataroot='
37809/datarootdir/ {
37810  p
37811  q
37812}
37813/@datadir@/p
37814/@docdir@/p
37815/@infodir@/p
37816/@localedir@/p
37817/@mandir@/p'
37818case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37819*datarootdir*) ac_datarootdir_seen=yes;;
37820*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37821  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37822$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37823_ACEOF
37824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37825  ac_datarootdir_hack='
37826  s&@datadir@&$datadir&g
37827  s&@docdir@&$docdir&g
37828  s&@infodir@&$infodir&g
37829  s&@localedir@&$localedir&g
37830  s&@mandir@&$mandir&g
37831  s&\\\${datarootdir}&$datarootdir&g' ;;
37832esac
37833_ACEOF
37834
37835# Neutralize VPATH when `$srcdir' = `.'.
37836# Shell code in configure.ac might set extrasub.
37837# FIXME: do we really want to maintain this feature?
37838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37839ac_sed_extra="$ac_vpsub
37840$extrasub
37841_ACEOF
37842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37843:t
37844/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37845s|@configure_input@|$ac_sed_conf_input|;t t
37846s&@top_builddir@&$ac_top_builddir_sub&;t t
37847s&@top_build_prefix@&$ac_top_build_prefix&;t t
37848s&@srcdir@&$ac_srcdir&;t t
37849s&@abs_srcdir@&$ac_abs_srcdir&;t t
37850s&@top_srcdir@&$ac_top_srcdir&;t t
37851s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37852s&@builddir@&$ac_builddir&;t t
37853s&@abs_builddir@&$ac_abs_builddir&;t t
37854s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37855s&@INSTALL@&$ac_INSTALL&;t t
37856s&@MKDIR_P@&$ac_MKDIR_P&;t t
37857$ac_datarootdir_hack
37858"
37859eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37860  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37861
37862test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37863  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37864  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
37865      "$ac_tmp/out"`; test -z "$ac_out"; } &&
37866  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37867which seems to be undefined.  Please make sure it is defined" >&5
37868$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37869which seems to be undefined.  Please make sure it is defined" >&2;}
37870
37871  rm -f "$ac_tmp/stdin"
37872  case $ac_file in
37873  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37874  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37875  esac \
37876  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37877 ;;
37878  :H)
37879  #
37880  # CONFIG_HEADER
37881  #
37882  if test x"$ac_file" != x-; then
37883    {
37884      $as_echo "/* $configure_input  */" \
37885      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37886    } >"$ac_tmp/config.h" \
37887      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37888    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37889      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37890$as_echo "$as_me: $ac_file is unchanged" >&6;}
37891    else
37892      rm -f "$ac_file"
37893      mv "$ac_tmp/config.h" "$ac_file" \
37894	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
37895    fi
37896  else
37897    $as_echo "/* $configure_input  */" \
37898      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37899      || as_fn_error $? "could not create -" "$LINENO" 5
37900  fi
37901# Compute "$ac_file"'s index in $config_headers.
37902_am_arg="$ac_file"
37903_am_stamp_count=1
37904for _am_header in $config_headers :; do
37905  case $_am_header in
37906    $_am_arg | $_am_arg:* )
37907      break ;;
37908    * )
37909      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37910  esac
37911done
37912echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37913$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37914	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37915	 X"$_am_arg" : 'X\(//\)$' \| \
37916	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37917$as_echo X"$_am_arg" |
37918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37919	    s//\1/
37920	    q
37921	  }
37922	  /^X\(\/\/\)[^/].*/{
37923	    s//\1/
37924	    q
37925	  }
37926	  /^X\(\/\/\)$/{
37927	    s//\1/
37928	    q
37929	  }
37930	  /^X\(\/\).*/{
37931	    s//\1/
37932	    q
37933	  }
37934	  s/.*/./; q'`/stamp-h$_am_stamp_count
37935 ;;
37936
37937  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37938$as_echo "$as_me: executing $ac_file commands" >&6;}
37939 ;;
37940  esac
37941
37942
37943  case $ac_file$ac_mode in
37944    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
37945ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37946ac_prefix_conf_PKG=`echo MagickCore`
37947ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37948ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
37949ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37950if test ".$ac_prefix_conf_INP" = "."; then
37951   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37952     case "$ac_file" in
37953        *.h) ac_prefix_conf_INP=$ac_file ;;
37954        *)
37955     esac
37956     test ".$ac_prefix_conf_INP" != "." && break
37957   done
37958fi
37959if test ".$ac_prefix_conf_INP" = "."; then
37960   case "$ac_prefix_conf_OUT" in
37961      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37962      ;;
37963      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37964      ;;
37965      *) ac_prefix_conf_INP=config.h
37966      ;;
37967   esac
37968fi
37969if test -z "$ac_prefix_conf_PKG" ; then
37970   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37971else
37972  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37973     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37974  fi fi
37975  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37976$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37977  if test -f $ac_prefix_conf_INP ; then
37978    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37979    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37980    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37981    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37982    $as_echo "#endif/" >> conftest.prefix
37983    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37984    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37985    $as_echo "#endif/" >> conftest.prefix
37986    # now executing _script on _DEF input to create _OUT output file
37987    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
37988    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37989    echo ' ' >>$tmp/pconfig.h
37990    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37991
37992    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37993    echo ' ' >>$tmp/pconfig.h
37994    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37995    echo "#endif" >>$tmp/pconfig.h
37996    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37997      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37998$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37999    else
38000      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38001$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38002	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38003	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38004	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38005$as_echo X"$ac_prefix_conf_OUT" |
38006    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38007	    s//\1/
38008	    q
38009	  }
38010	  /^X\(\/\/\)[^/].*/{
38011	    s//\1/
38012	    q
38013	  }
38014	  /^X\(\/\/\)$/{
38015	    s//\1/
38016	    q
38017	  }
38018	  /^X\(\/\).*/{
38019	    s//\1/
38020	    q
38021	  }
38022	  s/.*/./; q'`
38023      as_dir="$ac_dir"; as_fn_mkdir_p
38024      rm -f "$ac_prefix_conf_OUT"
38025      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38026    fi
38027  else
38028    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
38029  fi
38030  rm -f conftest.*
38031fi
38032 ;;
38033    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38034  # Older Autoconf quotes --file arguments for eval, but not when files
38035  # are listed without --file.  Let's play safe and only enable the eval
38036  # if we detect the quoting.
38037  case $CONFIG_FILES in
38038  *\'*) eval set x "$CONFIG_FILES" ;;
38039  *)   set x $CONFIG_FILES ;;
38040  esac
38041  shift
38042  for mf
38043  do
38044    # Strip MF so we end up with the name of the file.
38045    mf=`echo "$mf" | sed -e 's/:.*$//'`
38046    # Check whether this is an Automake generated Makefile or not.
38047    # We used to match only the files named 'Makefile.in', but
38048    # some people rename them; so instead we look at the file content.
38049    # Grep'ing the first line is not enough: some people post-process
38050    # each Makefile.in and add a new line on top of each file to say so.
38051    # Grep'ing the whole file is not good either: AIX grep has a line
38052    # limit of 2048, but all sed's we know have understand at least 4000.
38053    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38054      dirpart=`$as_dirname -- "$mf" ||
38055$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38056	 X"$mf" : 'X\(//\)[^/]' \| \
38057	 X"$mf" : 'X\(//\)$' \| \
38058	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38059$as_echo X"$mf" |
38060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38061	    s//\1/
38062	    q
38063	  }
38064	  /^X\(\/\/\)[^/].*/{
38065	    s//\1/
38066	    q
38067	  }
38068	  /^X\(\/\/\)$/{
38069	    s//\1/
38070	    q
38071	  }
38072	  /^X\(\/\).*/{
38073	    s//\1/
38074	    q
38075	  }
38076	  s/.*/./; q'`
38077    else
38078      continue
38079    fi
38080    # Extract the definition of DEPDIR, am__include, and am__quote
38081    # from the Makefile without running 'make'.
38082    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38083    test -z "$DEPDIR" && continue
38084    am__include=`sed -n 's/^am__include = //p' < "$mf"`
38085    test -z "$am__include" && continue
38086    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
38087    # Find all dependency output files, they are included files with
38088    # $(DEPDIR) in their names.  We invoke sed twice because it is the
38089    # simplest approach to changing $(DEPDIR) to its actual value in the
38090    # expansion.
38091    for file in `sed -n "
38092      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38093	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
38094      # Make sure the directory exists.
38095      test -f "$dirpart/$file" && continue
38096      fdir=`$as_dirname -- "$file" ||
38097$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38098	 X"$file" : 'X\(//\)[^/]' \| \
38099	 X"$file" : 'X\(//\)$' \| \
38100	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38101$as_echo X"$file" |
38102    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38103	    s//\1/
38104	    q
38105	  }
38106	  /^X\(\/\/\)[^/].*/{
38107	    s//\1/
38108	    q
38109	  }
38110	  /^X\(\/\/\)$/{
38111	    s//\1/
38112	    q
38113	  }
38114	  /^X\(\/\).*/{
38115	    s//\1/
38116	    q
38117	  }
38118	  s/.*/./; q'`
38119      as_dir=$dirpart/$fdir; as_fn_mkdir_p
38120      # echo "creating $dirpart/$file"
38121      echo '# dummy' > "$dirpart/$file"
38122    done
38123  done
38124}
38125 ;;
38126    "libtool":C)
38127
38128    # See if we are running on zsh, and set the options which allow our
38129    # commands through without removal of \ escapes.
38130    if test -n "${ZSH_VERSION+set}" ; then
38131      setopt NO_GLOB_SUBST
38132    fi
38133
38134    cfgfile="${ofile}T"
38135    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38136    $RM "$cfgfile"
38137
38138    cat <<_LT_EOF >> "$cfgfile"
38139#! $SHELL
38140
38141# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38142# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38143# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38144# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38145#
38146#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38147#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38148#                 Foundation, Inc.
38149#   Written by Gordon Matzigkeit, 1996
38150#
38151#   This file is part of GNU Libtool.
38152#
38153# GNU Libtool is free software; you can redistribute it and/or
38154# modify it under the terms of the GNU General Public License as
38155# published by the Free Software Foundation; either version 2 of
38156# the License, or (at your option) any later version.
38157#
38158# As a special exception to the GNU General Public License,
38159# if you distribute this file as part of a program or library that
38160# is built using GNU Libtool, you may include this file under the
38161# same distribution terms that you use for the rest of that program.
38162#
38163# GNU Libtool is distributed in the hope that it will be useful,
38164# but WITHOUT ANY WARRANTY; without even the implied warranty of
38165# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38166# GNU General Public License for more details.
38167#
38168# You should have received a copy of the GNU General Public License
38169# along with GNU Libtool; see the file COPYING.  If not, a copy
38170# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38171# obtained by writing to the Free Software Foundation, Inc.,
38172# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38173
38174
38175# The names of the tagged configurations supported by this script.
38176available_tags="CXX "
38177
38178# ### BEGIN LIBTOOL CONFIG
38179
38180# A sed program that does not truncate output.
38181SED=$lt_SED
38182
38183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38184Xsed="\$SED -e 1s/^X//"
38185
38186# A grep program that handles long lines.
38187GREP=$lt_GREP
38188
38189# An ERE matcher.
38190EGREP=$lt_EGREP
38191
38192# A literal string matcher.
38193FGREP=$lt_FGREP
38194
38195# Shell to use when invoking shell scripts.
38196SHELL=$lt_SHELL
38197
38198# An echo program that protects backslashes.
38199ECHO=$lt_ECHO
38200
38201# Which release of libtool.m4 was used?
38202macro_version=$macro_version
38203macro_revision=$macro_revision
38204
38205# Assembler program.
38206AS=$lt_AS
38207
38208# DLL creation program.
38209DLLTOOL=$lt_DLLTOOL
38210
38211# Object dumper program.
38212OBJDUMP=$lt_OBJDUMP
38213
38214# Whether or not to build shared libraries.
38215build_libtool_libs=$enable_shared
38216
38217# Whether or not to build static libraries.
38218build_old_libs=$enable_static
38219
38220# What type of objects to build.
38221pic_mode=$pic_mode
38222
38223# Whether or not to optimize for fast installation.
38224fast_install=$enable_fast_install
38225
38226# The PATH separator for the build system.
38227PATH_SEPARATOR=$lt_PATH_SEPARATOR
38228
38229# The host system.
38230host_alias=$host_alias
38231host=$host
38232host_os=$host_os
38233
38234# The build system.
38235build_alias=$build_alias
38236build=$build
38237build_os=$build_os
38238
38239# A BSD- or MS-compatible name lister.
38240NM=$lt_NM
38241
38242# Whether we need soft or hard links.
38243LN_S=$lt_LN_S
38244
38245# What is the maximum length of a command?
38246max_cmd_len=$max_cmd_len
38247
38248# Object file suffix (normally "o").
38249objext=$ac_objext
38250
38251# Executable file suffix (normally "").
38252exeext=$exeext
38253
38254# whether the shell understands "unset".
38255lt_unset=$lt_unset
38256
38257# turn spaces into newlines.
38258SP2NL=$lt_lt_SP2NL
38259
38260# turn newlines into spaces.
38261NL2SP=$lt_lt_NL2SP
38262
38263# convert \$build file names to \$host format.
38264to_host_file_cmd=$lt_cv_to_host_file_cmd
38265
38266# convert \$build files to toolchain format.
38267to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38268
38269# Method to check whether dependent libraries are shared objects.
38270deplibs_check_method=$lt_deplibs_check_method
38271
38272# Command to use when deplibs_check_method = "file_magic".
38273file_magic_cmd=$lt_file_magic_cmd
38274
38275# How to find potential files when deplibs_check_method = "file_magic".
38276file_magic_glob=$lt_file_magic_glob
38277
38278# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38279want_nocaseglob=$lt_want_nocaseglob
38280
38281# Command to associate shared and link libraries.
38282sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38283
38284# The archiver.
38285AR=$lt_AR
38286
38287# Flags to create an archive.
38288AR_FLAGS=$lt_AR_FLAGS
38289
38290# How to feed a file listing to the archiver.
38291archiver_list_spec=$lt_archiver_list_spec
38292
38293# A symbol stripping program.
38294STRIP=$lt_STRIP
38295
38296# Commands used to install an old-style archive.
38297RANLIB=$lt_RANLIB
38298old_postinstall_cmds=$lt_old_postinstall_cmds
38299old_postuninstall_cmds=$lt_old_postuninstall_cmds
38300
38301# Whether to use a lock for old archive extraction.
38302lock_old_archive_extraction=$lock_old_archive_extraction
38303
38304# A C compiler.
38305LTCC=$lt_CC
38306
38307# LTCC compiler flags.
38308LTCFLAGS=$lt_CFLAGS
38309
38310# Take the output of nm and produce a listing of raw symbols and C names.
38311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38312
38313# Transform the output of nm in a proper C declaration.
38314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38315
38316# Transform the output of nm in a C name address pair.
38317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38318
38319# Transform the output of nm in a C name address pair when lib prefix is needed.
38320global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38321
38322# Specify filename containing input files for \$NM.
38323nm_file_list_spec=$lt_nm_file_list_spec
38324
38325# The root where to search for dependent libraries,and in which our libraries should be installed.
38326lt_sysroot=$lt_sysroot
38327
38328# The name of the directory that contains temporary libtool files.
38329objdir=$objdir
38330
38331# Used to examine libraries when file_magic_cmd begins with "file".
38332MAGIC_CMD=$MAGIC_CMD
38333
38334# Must we lock files when doing compilation?
38335need_locks=$lt_need_locks
38336
38337# Manifest tool.
38338MANIFEST_TOOL=$lt_MANIFEST_TOOL
38339
38340# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38341DSYMUTIL=$lt_DSYMUTIL
38342
38343# Tool to change global to local symbols on Mac OS X.
38344NMEDIT=$lt_NMEDIT
38345
38346# Tool to manipulate fat objects and archives on Mac OS X.
38347LIPO=$lt_LIPO
38348
38349# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38350OTOOL=$lt_OTOOL
38351
38352# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38353OTOOL64=$lt_OTOOL64
38354
38355# Old archive suffix (normally "a").
38356libext=$libext
38357
38358# Shared library suffix (normally ".so").
38359shrext_cmds=$lt_shrext_cmds
38360
38361# The commands to extract the exported symbol list from a shared archive.
38362extract_expsyms_cmds=$lt_extract_expsyms_cmds
38363
38364# Variables whose values should be saved in libtool wrapper scripts and
38365# restored at link time.
38366variables_saved_for_relink=$lt_variables_saved_for_relink
38367
38368# Do we need the "lib" prefix for modules?
38369need_lib_prefix=$need_lib_prefix
38370
38371# Do we need a version for libraries?
38372need_version=$need_version
38373
38374# Library versioning type.
38375version_type=$version_type
38376
38377# Shared library runtime path variable.
38378runpath_var=$runpath_var
38379
38380# Shared library path variable.
38381shlibpath_var=$shlibpath_var
38382
38383# Is shlibpath searched before the hard-coded library search path?
38384shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38385
38386# Format of library name prefix.
38387libname_spec=$lt_libname_spec
38388
38389# List of archive names.  First name is the real one, the rest are links.
38390# The last name is the one that the linker finds with -lNAME
38391library_names_spec=$lt_library_names_spec
38392
38393# The coded name of the library, if different from the real name.
38394soname_spec=$lt_soname_spec
38395
38396# Permission mode override for installation of shared libraries.
38397install_override_mode=$lt_install_override_mode
38398
38399# Command to use after installation of a shared archive.
38400postinstall_cmds=$lt_postinstall_cmds
38401
38402# Command to use after uninstallation of a shared archive.
38403postuninstall_cmds=$lt_postuninstall_cmds
38404
38405# Commands used to finish a libtool library installation in a directory.
38406finish_cmds=$lt_finish_cmds
38407
38408# As "finish_cmds", except a single script fragment to be evaled but
38409# not shown.
38410finish_eval=$lt_finish_eval
38411
38412# Whether we should hardcode library paths into libraries.
38413hardcode_into_libs=$hardcode_into_libs
38414
38415# Compile-time system search path for libraries.
38416sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38417
38418# Run-time system search path for libraries.
38419sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38420
38421# Whether dlopen is supported.
38422dlopen_support=$enable_dlopen
38423
38424# Whether dlopen of programs is supported.
38425dlopen_self=$enable_dlopen_self
38426
38427# Whether dlopen of statically linked programs is supported.
38428dlopen_self_static=$enable_dlopen_self_static
38429
38430# Commands to strip libraries.
38431old_striplib=$lt_old_striplib
38432striplib=$lt_striplib
38433
38434
38435# The linker used to build libraries.
38436LD=$lt_LD
38437
38438# How to create reloadable object files.
38439reload_flag=$lt_reload_flag
38440reload_cmds=$lt_reload_cmds
38441
38442# Commands used to build an old-style archive.
38443old_archive_cmds=$lt_old_archive_cmds
38444
38445# A language specific compiler.
38446CC=$lt_compiler
38447
38448# Is the compiler the GNU compiler?
38449with_gcc=$GCC
38450
38451# Compiler flag to turn off builtin functions.
38452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38453
38454# Additional compiler flags for building library objects.
38455pic_flag=$lt_lt_prog_compiler_pic
38456
38457# How to pass a linker flag through the compiler.
38458wl=$lt_lt_prog_compiler_wl
38459
38460# Compiler flag to prevent dynamic linking.
38461link_static_flag=$lt_lt_prog_compiler_static
38462
38463# Does compiler simultaneously support -c and -o options?
38464compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38465
38466# Whether or not to add -lc for building shared libraries.
38467build_libtool_need_lc=$archive_cmds_need_lc
38468
38469# Whether or not to disallow shared libs when runtime libs are static.
38470allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38471
38472# Compiler flag to allow reflexive dlopens.
38473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38474
38475# Compiler flag to generate shared objects directly from archives.
38476whole_archive_flag_spec=$lt_whole_archive_flag_spec
38477
38478# Whether the compiler copes with passing no objects directly.
38479compiler_needs_object=$lt_compiler_needs_object
38480
38481# Create an old-style archive from a shared archive.
38482old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38483
38484# Create a temporary old-style archive to link instead of a shared archive.
38485old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38486
38487# Commands used to build a shared archive.
38488archive_cmds=$lt_archive_cmds
38489archive_expsym_cmds=$lt_archive_expsym_cmds
38490
38491# Commands used to build a loadable module if different from building
38492# a shared archive.
38493module_cmds=$lt_module_cmds
38494module_expsym_cmds=$lt_module_expsym_cmds
38495
38496# Whether we are building with GNU ld or not.
38497with_gnu_ld=$lt_with_gnu_ld
38498
38499# Flag that allows shared libraries with undefined symbols to be built.
38500allow_undefined_flag=$lt_allow_undefined_flag
38501
38502# Flag that enforces no undefined symbols.
38503no_undefined_flag=$lt_no_undefined_flag
38504
38505# Flag to hardcode \$libdir into a binary during linking.
38506# This must work even if \$libdir does not exist
38507hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38508
38509# Whether we need a single "-rpath" flag with a separated argument.
38510hardcode_libdir_separator=$lt_hardcode_libdir_separator
38511
38512# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38513# DIR into the resulting binary.
38514hardcode_direct=$hardcode_direct
38515
38516# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38517# DIR into the resulting binary and the resulting library dependency is
38518# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38519# library is relocated.
38520hardcode_direct_absolute=$hardcode_direct_absolute
38521
38522# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38523# into the resulting binary.
38524hardcode_minus_L=$hardcode_minus_L
38525
38526# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38527# into the resulting binary.
38528hardcode_shlibpath_var=$hardcode_shlibpath_var
38529
38530# Set to "yes" if building a shared library automatically hardcodes DIR
38531# into the library and all subsequent libraries and executables linked
38532# against it.
38533hardcode_automatic=$hardcode_automatic
38534
38535# Set to yes if linker adds runtime paths of dependent libraries
38536# to runtime path list.
38537inherit_rpath=$inherit_rpath
38538
38539# Whether libtool must link a program against all its dependency libraries.
38540link_all_deplibs=$link_all_deplibs
38541
38542# Set to "yes" if exported symbols are required.
38543always_export_symbols=$always_export_symbols
38544
38545# The commands to list exported symbols.
38546export_symbols_cmds=$lt_export_symbols_cmds
38547
38548# Symbols that should not be listed in the preloaded symbols.
38549exclude_expsyms=$lt_exclude_expsyms
38550
38551# Symbols that must always be exported.
38552include_expsyms=$lt_include_expsyms
38553
38554# Commands necessary for linking programs (against libraries) with templates.
38555prelink_cmds=$lt_prelink_cmds
38556
38557# Commands necessary for finishing linking programs.
38558postlink_cmds=$lt_postlink_cmds
38559
38560# Specify filename containing input files.
38561file_list_spec=$lt_file_list_spec
38562
38563# How to hardcode a shared library path into an executable.
38564hardcode_action=$hardcode_action
38565
38566# The directories searched by this compiler when creating a shared library.
38567compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38568
38569# Dependencies to place before and after the objects being linked to
38570# create a shared library.
38571predep_objects=$lt_predep_objects
38572postdep_objects=$lt_postdep_objects
38573predeps=$lt_predeps
38574postdeps=$lt_postdeps
38575
38576# The library search path used internally by the compiler when linking
38577# a shared library.
38578compiler_lib_search_path=$lt_compiler_lib_search_path
38579
38580# ### END LIBTOOL CONFIG
38581
38582_LT_EOF
38583
38584  case $host_os in
38585  aix3*)
38586    cat <<\_LT_EOF >> "$cfgfile"
38587# AIX sometimes has problems with the GCC collect2 program.  For some
38588# reason, if we set the COLLECT_NAMES environment variable, the problems
38589# vanish in a puff of smoke.
38590if test "X${COLLECT_NAMES+set}" != Xset; then
38591  COLLECT_NAMES=
38592  export COLLECT_NAMES
38593fi
38594_LT_EOF
38595    ;;
38596  esac
38597
38598
38599ltmain="$ac_aux_dir/ltmain.sh"
38600
38601
38602  # We use sed instead of cat because bash on DJGPP gets confused if
38603  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38604  # text mode, it properly converts lines to CR/LF.  This bash problem
38605  # is reportedly fixed, but why not run on old versions too?
38606  sed '$q' "$ltmain" >> "$cfgfile" \
38607     || (rm -f "$cfgfile"; exit 1)
38608
38609  if test x"$xsi_shell" = xyes; then
38610  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38611func_dirname ()\
38612{\
38613\    case ${1} in\
38614\      */*) func_dirname_result="${1%/*}${2}" ;;\
38615\      *  ) func_dirname_result="${3}" ;;\
38616\    esac\
38617} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38618  && mv -f "$cfgfile.tmp" "$cfgfile" \
38619    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38620test 0 -eq $? || _lt_function_replace_fail=:
38621
38622
38623  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38624func_basename ()\
38625{\
38626\    func_basename_result="${1##*/}"\
38627} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38628  && mv -f "$cfgfile.tmp" "$cfgfile" \
38629    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38630test 0 -eq $? || _lt_function_replace_fail=:
38631
38632
38633  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38634func_dirname_and_basename ()\
38635{\
38636\    case ${1} in\
38637\      */*) func_dirname_result="${1%/*}${2}" ;;\
38638\      *  ) func_dirname_result="${3}" ;;\
38639\    esac\
38640\    func_basename_result="${1##*/}"\
38641} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38642  && mv -f "$cfgfile.tmp" "$cfgfile" \
38643    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38644test 0 -eq $? || _lt_function_replace_fail=:
38645
38646
38647  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38648func_stripname ()\
38649{\
38650\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38651\    # positional parameters, so assign one to ordinary parameter first.\
38652\    func_stripname_result=${3}\
38653\    func_stripname_result=${func_stripname_result#"${1}"}\
38654\    func_stripname_result=${func_stripname_result%"${2}"}\
38655} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38656  && mv -f "$cfgfile.tmp" "$cfgfile" \
38657    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38658test 0 -eq $? || _lt_function_replace_fail=:
38659
38660
38661  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38662func_split_long_opt ()\
38663{\
38664\    func_split_long_opt_name=${1%%=*}\
38665\    func_split_long_opt_arg=${1#*=}\
38666} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38667  && mv -f "$cfgfile.tmp" "$cfgfile" \
38668    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38669test 0 -eq $? || _lt_function_replace_fail=:
38670
38671
38672  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38673func_split_short_opt ()\
38674{\
38675\    func_split_short_opt_arg=${1#??}\
38676\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38677} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38678  && mv -f "$cfgfile.tmp" "$cfgfile" \
38679    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38680test 0 -eq $? || _lt_function_replace_fail=:
38681
38682
38683  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38684func_lo2o ()\
38685{\
38686\    case ${1} in\
38687\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38688\      *)    func_lo2o_result=${1} ;;\
38689\    esac\
38690} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38691  && mv -f "$cfgfile.tmp" "$cfgfile" \
38692    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38693test 0 -eq $? || _lt_function_replace_fail=:
38694
38695
38696  sed -e '/^func_xform ()$/,/^} # func_xform /c\
38697func_xform ()\
38698{\
38699    func_xform_result=${1%.*}.lo\
38700} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38701  && mv -f "$cfgfile.tmp" "$cfgfile" \
38702    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38703test 0 -eq $? || _lt_function_replace_fail=:
38704
38705
38706  sed -e '/^func_arith ()$/,/^} # func_arith /c\
38707func_arith ()\
38708{\
38709    func_arith_result=$(( $* ))\
38710} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38711  && mv -f "$cfgfile.tmp" "$cfgfile" \
38712    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38713test 0 -eq $? || _lt_function_replace_fail=:
38714
38715
38716  sed -e '/^func_len ()$/,/^} # func_len /c\
38717func_len ()\
38718{\
38719    func_len_result=${#1}\
38720} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38721  && mv -f "$cfgfile.tmp" "$cfgfile" \
38722    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38723test 0 -eq $? || _lt_function_replace_fail=:
38724
38725fi
38726
38727if test x"$lt_shell_append" = xyes; then
38728  sed -e '/^func_append ()$/,/^} # func_append /c\
38729func_append ()\
38730{\
38731    eval "${1}+=\\${2}"\
38732} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38733  && mv -f "$cfgfile.tmp" "$cfgfile" \
38734    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38735test 0 -eq $? || _lt_function_replace_fail=:
38736
38737
38738  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38739func_append_quoted ()\
38740{\
38741\    func_quote_for_eval "${2}"\
38742\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38743} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38744  && mv -f "$cfgfile.tmp" "$cfgfile" \
38745    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38746test 0 -eq $? || _lt_function_replace_fail=:
38747
38748
38749  # Save a `func_append' function call where possible by direct use of '+='
38750  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38751    && mv -f "$cfgfile.tmp" "$cfgfile" \
38752      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38753  test 0 -eq $? || _lt_function_replace_fail=:
38754else
38755  # Save a `func_append' function call even when '+=' is not available
38756  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38757    && mv -f "$cfgfile.tmp" "$cfgfile" \
38758      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38759  test 0 -eq $? || _lt_function_replace_fail=:
38760fi
38761
38762if test x"$_lt_function_replace_fail" = x":"; then
38763  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38764$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38765fi
38766
38767
38768   mv -f "$cfgfile" "$ofile" ||
38769    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38770  chmod +x "$ofile"
38771
38772
38773    cat <<_LT_EOF >> "$ofile"
38774
38775# ### BEGIN LIBTOOL TAG CONFIG: CXX
38776
38777# The linker used to build libraries.
38778LD=$lt_LD_CXX
38779
38780# How to create reloadable object files.
38781reload_flag=$lt_reload_flag_CXX
38782reload_cmds=$lt_reload_cmds_CXX
38783
38784# Commands used to build an old-style archive.
38785old_archive_cmds=$lt_old_archive_cmds_CXX
38786
38787# A language specific compiler.
38788CC=$lt_compiler_CXX
38789
38790# Is the compiler the GNU compiler?
38791with_gcc=$GCC_CXX
38792
38793# Compiler flag to turn off builtin functions.
38794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38795
38796# Additional compiler flags for building library objects.
38797pic_flag=$lt_lt_prog_compiler_pic_CXX
38798
38799# How to pass a linker flag through the compiler.
38800wl=$lt_lt_prog_compiler_wl_CXX
38801
38802# Compiler flag to prevent dynamic linking.
38803link_static_flag=$lt_lt_prog_compiler_static_CXX
38804
38805# Does compiler simultaneously support -c and -o options?
38806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38807
38808# Whether or not to add -lc for building shared libraries.
38809build_libtool_need_lc=$archive_cmds_need_lc_CXX
38810
38811# Whether or not to disallow shared libs when runtime libs are static.
38812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38813
38814# Compiler flag to allow reflexive dlopens.
38815export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38816
38817# Compiler flag to generate shared objects directly from archives.
38818whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38819
38820# Whether the compiler copes with passing no objects directly.
38821compiler_needs_object=$lt_compiler_needs_object_CXX
38822
38823# Create an old-style archive from a shared archive.
38824old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38825
38826# Create a temporary old-style archive to link instead of a shared archive.
38827old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38828
38829# Commands used to build a shared archive.
38830archive_cmds=$lt_archive_cmds_CXX
38831archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38832
38833# Commands used to build a loadable module if different from building
38834# a shared archive.
38835module_cmds=$lt_module_cmds_CXX
38836module_expsym_cmds=$lt_module_expsym_cmds_CXX
38837
38838# Whether we are building with GNU ld or not.
38839with_gnu_ld=$lt_with_gnu_ld_CXX
38840
38841# Flag that allows shared libraries with undefined symbols to be built.
38842allow_undefined_flag=$lt_allow_undefined_flag_CXX
38843
38844# Flag that enforces no undefined symbols.
38845no_undefined_flag=$lt_no_undefined_flag_CXX
38846
38847# Flag to hardcode \$libdir into a binary during linking.
38848# This must work even if \$libdir does not exist
38849hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38850
38851# Whether we need a single "-rpath" flag with a separated argument.
38852hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38853
38854# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38855# DIR into the resulting binary.
38856hardcode_direct=$hardcode_direct_CXX
38857
38858# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38859# DIR into the resulting binary and the resulting library dependency is
38860# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38861# library is relocated.
38862hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38863
38864# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38865# into the resulting binary.
38866hardcode_minus_L=$hardcode_minus_L_CXX
38867
38868# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38869# into the resulting binary.
38870hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38871
38872# Set to "yes" if building a shared library automatically hardcodes DIR
38873# into the library and all subsequent libraries and executables linked
38874# against it.
38875hardcode_automatic=$hardcode_automatic_CXX
38876
38877# Set to yes if linker adds runtime paths of dependent libraries
38878# to runtime path list.
38879inherit_rpath=$inherit_rpath_CXX
38880
38881# Whether libtool must link a program against all its dependency libraries.
38882link_all_deplibs=$link_all_deplibs_CXX
38883
38884# Set to "yes" if exported symbols are required.
38885always_export_symbols=$always_export_symbols_CXX
38886
38887# The commands to list exported symbols.
38888export_symbols_cmds=$lt_export_symbols_cmds_CXX
38889
38890# Symbols that should not be listed in the preloaded symbols.
38891exclude_expsyms=$lt_exclude_expsyms_CXX
38892
38893# Symbols that must always be exported.
38894include_expsyms=$lt_include_expsyms_CXX
38895
38896# Commands necessary for linking programs (against libraries) with templates.
38897prelink_cmds=$lt_prelink_cmds_CXX
38898
38899# Commands necessary for finishing linking programs.
38900postlink_cmds=$lt_postlink_cmds_CXX
38901
38902# Specify filename containing input files.
38903file_list_spec=$lt_file_list_spec_CXX
38904
38905# How to hardcode a shared library path into an executable.
38906hardcode_action=$hardcode_action_CXX
38907
38908# The directories searched by this compiler when creating a shared library.
38909compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38910
38911# Dependencies to place before and after the objects being linked to
38912# create a shared library.
38913predep_objects=$lt_predep_objects_CXX
38914postdep_objects=$lt_postdep_objects_CXX
38915predeps=$lt_predeps_CXX
38916postdeps=$lt_postdeps_CXX
38917
38918# The library search path used internally by the compiler when linking
38919# a shared library.
38920compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38921
38922# ### END LIBTOOL TAG CONFIG: CXX
38923_LT_EOF
38924
38925 ;;
38926    "magick.sh.in":C) chmod +x magick.sh ;;
38927    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38928    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38929    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38930    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38931
38932  esac
38933done # for ac_tag
38934
38935
38936as_fn_exit 0
38937_ACEOF
38938ac_clean_files=$ac_clean_files_save
38939
38940test $ac_write_fail = 0 ||
38941  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38942
38943
38944# configure is writing to config.log, and then calls config.status.
38945# config.status does its own redirection, appending to config.log.
38946# Unfortunately, on DOS this fails, as config.log is still kept open
38947# by configure, so config.status won't be able to write to it; its
38948# output is simply discarded.  So we exec the FD to /dev/null,
38949# effectively closing config.log, so it can be properly (re)opened and
38950# appended to by config.status.  When coming back to configure, we
38951# need to make the FD available again.
38952if test "$no_create" != yes; then
38953  ac_cs_success=:
38954  ac_config_status_args=
38955  test "$silent" = yes &&
38956    ac_config_status_args="$ac_config_status_args --quiet"
38957  exec 5>/dev/null
38958  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38959  exec 5>>config.log
38960  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38961  # would make configure fail if this is the last instruction.
38962  $ac_cs_success || as_fn_exit 1
38963fi
38964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38965  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38966$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38967fi
38968
38969
38970rm -f magick-version
38971
38972result_dejavu_font_dir='none'
38973if test "${dejavu_font_dir}x" != 'x'; then
38974    result_dejavu_font_dir=$dejavu_font_dir
38975fi
38976
38977result_ghostscript_font_dir='none'
38978if test "${ghostscript_font_dir}x" != 'x'; then
38979    result_ghostscript_font_dir=$ghostscript_font_dir
38980fi
38981
38982result_windows_font_dir='none'
38983if test "${windows_font_dir}x" != 'x'; then
38984    result_windows_font_dir=${windows_font_dir}
38985fi
38986
38987{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
38988ImageMagick is configured as follows. Please verify that this configuration
38989matches your expectations.
38990
38991Host system type: $host
38992Build system type: $build
38993
38994                  Option                        Value
38995-------------------------------------------------------------------------------
38996Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38997Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38998Module support    --with-modules=$build_modules		$build_modules
38999GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39000Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39001High Dynamic Range Imagery
39002                  --enable-hdri=$enable_hdri		$enable_hdri
39003
39004Delegate Configuration:
39005BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39006Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39007Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39008DJVU              --with-djvu=$with_djvu		$have_djvu
39009DPS               --with-dps=$with_dps		$have_dps
39010FFTW              --with-fftw=$with_fftw		$have_fftw
39011FlashPIX          --with-fpx=$with_fpx		$have_fpx
39012FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
39013FreeType          --with-freetype=$with_freetype		$have_freetype
39014GhostPCL          None				$PCLDelegate ($PCLVersion)
39015GhostXPS          None				$XPSDelegate ($XPSVersion)
39016Ghostscript       None				$PSDelegate ($GSVersion)
39017Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
39018Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39019Graphviz          --with-gvc=$with_gvc		$have_gvc
39020JBIG              --with-jbig=$with_jbig		$have_jbig
39021JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39022JPEG-2000         --with-jp2=$with_jp2		$have_jp2
39023LCMS v1           --with-lcms=$with_lcms		$have_lcms
39024LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
39025LIBJPEG2          --with-openjp2=$with_openjp2	$have_openjp2
39026LQR               --with-lqr=$with_lqr		$have_lqr
39027LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39028LZMA              --with-lzma=$with_lzma		$have_lzma
39029Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39030OpenEXR           --with-openexr=$with_openexr		$have_openexr
39031PANGO             --with-pango=$with_pango		$have_pango
39032PERL              --with-perl=$with_perl		$have_perl
39033PNG               --with-png=$with_png		$have_png
39034RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39035TIFF              --with-tiff=$with_tiff		$have_tiff
39036WEBP              --with-webp=$with_webp		$have_webp
39037Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39038WMF               --with-wmf=$with_wmf		$have_wmf
39039X11               --with-x=$with_x			$have_x
39040XML               --with-xml=$with_xml		$have_xml
39041ZLIB              --with-zlib=$with_zlib		$have_zlib
39042
39043X11 Configuration:
39044      X_CFLAGS        = $X_CFLAGS
39045      X_PRE_LIBS      = $X_PRE_LIBS
39046      X_LIBS          = $X_LIBS
39047      X_EXTRA_LIBS    = $X_EXTRA_LIBS
39048
39049Options used to compile and link:
39050  PREFIX          = $PREFIX_DIR
39051  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39052  VERSION         = $PACKAGE_VERSION
39053  CC              = $CC
39054  CFLAGS          = $CFLAGS
39055  CPPFLAGS        = $CPPFLAGS
39056  PCFLAGS         = $PCFLAGS
39057  DEFS            = $DEFS
39058  LDFLAGS         = $LDFLAGS
39059  LIBS            = $LIBS
39060  CXX             = $CXX
39061  CXXFLAGS        = $CXXFLAGS
39062  FEATURES        = $MAGICK_FEATURES
39063  DELEGATES       = $MAGICK_DELEGATES
39064" >&5
39065$as_echo "
39066ImageMagick is configured as follows. Please verify that this configuration
39067matches your expectations.
39068
39069Host system type: $host
39070Build system type: $build
39071
39072                  Option                        Value
39073-------------------------------------------------------------------------------
39074Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39075Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39076Module support    --with-modules=$build_modules		$build_modules
39077GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39078Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39079High Dynamic Range Imagery
39080                  --enable-hdri=$enable_hdri		$enable_hdri
39081
39082Delegate Configuration:
39083BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39084Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39085Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39086DJVU              --with-djvu=$with_djvu		$have_djvu
39087DPS               --with-dps=$with_dps		$have_dps
39088FFTW              --with-fftw=$with_fftw		$have_fftw
39089FlashPIX          --with-fpx=$with_fpx		$have_fpx
39090FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
39091FreeType          --with-freetype=$with_freetype		$have_freetype
39092GhostPCL          None				$PCLDelegate ($PCLVersion)
39093GhostXPS          None				$XPSDelegate ($XPSVersion)
39094Ghostscript       None				$PSDelegate ($GSVersion)
39095Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
39096Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39097Graphviz          --with-gvc=$with_gvc		$have_gvc
39098JBIG              --with-jbig=$with_jbig		$have_jbig
39099JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39100JPEG-2000         --with-jp2=$with_jp2		$have_jp2
39101LCMS v1           --with-lcms=$with_lcms		$have_lcms
39102LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
39103LIBJPEG2          --with-openjp2=$with_openjp2	$have_openjp2
39104LQR               --with-lqr=$with_lqr		$have_lqr
39105LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39106LZMA              --with-lzma=$with_lzma		$have_lzma
39107Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39108OpenEXR           --with-openexr=$with_openexr		$have_openexr
39109PANGO             --with-pango=$with_pango		$have_pango
39110PERL              --with-perl=$with_perl		$have_perl
39111PNG               --with-png=$with_png		$have_png
39112RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39113TIFF              --with-tiff=$with_tiff		$have_tiff
39114WEBP              --with-webp=$with_webp		$have_webp
39115Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39116WMF               --with-wmf=$with_wmf		$have_wmf
39117X11               --with-x=$with_x			$have_x
39118XML               --with-xml=$with_xml		$have_xml
39119ZLIB              --with-zlib=$with_zlib		$have_zlib
39120
39121X11 Configuration:
39122      X_CFLAGS        = $X_CFLAGS
39123      X_PRE_LIBS      = $X_PRE_LIBS
39124      X_LIBS          = $X_LIBS
39125      X_EXTRA_LIBS    = $X_EXTRA_LIBS
39126
39127Options used to compile and link:
39128  PREFIX          = $PREFIX_DIR
39129  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39130  VERSION         = $PACKAGE_VERSION
39131  CC              = $CC
39132  CFLAGS          = $CFLAGS
39133  CPPFLAGS        = $CPPFLAGS
39134  PCFLAGS         = $PCFLAGS
39135  DEFS            = $DEFS
39136  LDFLAGS         = $LDFLAGS
39137  LIBS            = $LIBS
39138  CXX             = $CXX
39139  CXXFLAGS        = $CXXFLAGS
39140  FEATURES        = $MAGICK_FEATURES
39141  DELEGATES       = $MAGICK_DELEGATES
39142" >&6; }
39143