configure revision 02c94cb389883ae936e2056f83a419a63082c559
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
695UniconvertorDelegate
696TXTDelegate
697SVGDecodeDelegate
698SCANDecodeDelegate
699RSVGDecodeDelegate
700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
707MrSIDDecodeDelegate
708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
712LPRDelegate
713LPDelegate
714JXREncodeDelegate
715JXRDecodeDelegate
716ILBMEncodeDelegate
717ILBMDecodeDelegate
718HTMLDecodeDelegate
719HPGLDecodeDelegate
720GnuplotDecodeDelegate
721MogrifyDelegate
722DisplayDelegate
723ConvertDelegate
724FIGDecodeDelegate
725EditorDelegate
726EchoDelegate
727DVIDecodeDelegate
728GVCDecodeDelegate
729DNGDecodeDelegate
730CatDelegate
731CGMDecodeDelegate
732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
735AutotraceDecodeDelegate
736SHAREARCH_PATH
737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
740SHARE_PATH
741CONFIGURE_PATH
742DOCUMENTATION_PATH
743FILTER_PATH
744FILTER_DIRNAME
745CODER_PATH
746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
755LIBRARY_PATH
756EXECUTABLE_PATH
757INCLUDEARCH_PATH
758INCLUDE_PATH
759PERLMAINCC
760XML_LIBS
761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
763xml2_config
764WMF_LIBS_DEPS
765WMF_LIBS
766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
771TIFF_LIBS
772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
780RSVG_LIBS
781RSVG_CFLAGS
782PNG_LIBS
783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
793OPENEXR_LIBS
794OPENEXR_CFLAGS
795LZMA_DELEGATE_FALSE
796LZMA_DELEGATE_TRUE
797LZMA_LIBS
798LZMA_CFLAGS
799LQR_DELEGATE_FALSE
800LQR_DELEGATE_TRUE
801LQR_LIBS
802LQR_CFLAGS
803LCMS_LIBS
804LCMS_DELEGATE_FALSE
805LCMS_DELEGATE_TRUE
806JP2_LIBS
807JP2_DELEGATE_FALSE
808JP2_DELEGATE_TRUE
809JPEG_LIBS
810JPEG_DELEGATE_FALSE
811JPEG_DELEGATE_TRUE
812JBIG_LIBS
813JBIG_DELEGATE_FALSE
814JBIG_DELEGATE_TRUE
815GVC_DELEGATE_FALSE
816GVC_DELEGATE_TRUE
817GVC_LIBS
818GVC_CFLAGS
819GS_LIBS
820GS_DELEGATE_FALSE
821GS_DELEGATE_TRUE
822FREETYPE_DELEGATE_FALSE
823FREETYPE_DELEGATE_TRUE
824FREETYPE_LIBS
825FREETYPE_CFLAGS
826FONTCONFIG_DELEGATE_FALSE
827FONTCONFIG_DELEGATE_TRUE
828FONTCONFIG_LIBS
829FONTCONFIG_CFLAGS
830FPX_LIBS
831FPX_DELEGATE_FALSE
832FPX_DELEGATE_TRUE
833FFTW_LIBS
834FFTW_DELEGATE_FALSE
835FFTW_DELEGATE_TRUE
836DJVU_LIBS
837DJVU_DELEGATE_FALSE
838DJVU_DELEGATE_TRUE
839DPS_LIBS
840DPS_DELEGATE_FALSE
841DPS_DELEGATE_TRUE
842AUTOTRACE_DELEGATE_FALSE
843AUTOTRACE_DELEGATE_TRUE
844AUTOTRACE_LIBS
845AUTOTRACE_CFLAGS
846LIB_DL
847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849ZLIB_LIBS
850ZLIB_DELEGATE_FALSE
851ZLIB_DELEGATE_TRUE
852XEXT_LIBS
853X11_LIBS
854X11_DELEGATE_FALSE
855X11_DELEGATE_TRUE
856X_EXTRA_LIBS
857X_LIBS
858X_PRE_LIBS
859X_CFLAGS
860XMKMF
861BZLIB_LIBS
862BZLIB_DELEGATE_FALSE
863BZLIB_DELEGATE_TRUE
864CCMALLOCDelegate
865UMEM_LIBS
866HasUMEM_FALSE
867HasUMEM_TRUE
868THREAD_LIBS
869GOMP_LIBS
870WITH_MAGICK_PLUS_PLUS_FALSE
871WITH_MAGICK_PLUS_PLUS_TRUE
872OPENMP_CXXFLAGS
873MATH_LIBS
874POW_LIB
875LIBOBJS
876UINTPTR_F
877UINTPTR_T
878UINTMAX_F
879UINTMAX_T
880UINT64_F
881UINT64_T
882INT64_F
883INT64_T
884UINT32_F
885UINT32_T
886INT32_F
887INT32_T
888UINT16_T
889INT16_T
890UINT8_T
891INT8_T
892LIBRARY_EXTRA_CPPFLAGS
893MODULE_EXTRA_CPPFLAGS
894LIBSTDCLDFLAGS
895PERL_MAKE_OPTIONS
896MAGICK_LT_RELEASE_OPTS
897MAGICK_ABI_SUFFIX
898QUANTUM_DEPTH
899LEGACY_SUPPORT_FALSE
900LEGACY_SUPPORT_TRUE
901MAINT
902MAINTAINER_MODE_FALSE
903MAINTAINER_MODE_TRUE
904MAGICK_HDRI
905WITH_MODULES_FALSE
906WITH_MODULES_TRUE
907WITH_SHARED_LIBS_FALSE
908WITH_SHARED_LIBS_TRUE
909LIBTOOL_DEPS
910CXXCPP
911OTOOL64
912OTOOL
913LIPO
914NMEDIT
915DSYMUTIL
916MANIFEST_TOOL
917RANLIB
918ac_ct_AR
919AR
920NM
921ac_ct_DUMPBIN
922DUMPBIN
923LIBTOOL
924OBJDUMP
925DLLTOOL
926AS
927LFS_CPPFLAGS
928CL_LIBS
929CL_CFLAGS
930OPENMP_CFLAGS
931PTHREAD_CFLAGS
932PTHREAD_LIBS
933PTHREAD_CC
934ax_pthread_config
935pkgconfigdir
936SHAREARCH_DIR
937INCLUDEARCH_DIR
938WinPathScript
939USING_CL_FALSE
940USING_CL_TRUE
941CYGWIN_BUILD_FALSE
942CYGWIN_BUILD_TRUE
943WIN32_NATIVE_BUILD_FALSE
944WIN32_NATIVE_BUILD_TRUE
945WINGDI32_DELEGATE_FALSE
946WINGDI32_DELEGATE_TRUE
947GDI32_LIBS
948HAVE_LD_VERSION_SCRIPT_FALSE
949HAVE_LD_VERSION_SCRIPT_TRUE
950PKG_CONFIG
951PRTDIAG
952LN_S
953LD
954FGREP
955SED
956am__fastdepCXX_FALSE
957am__fastdepCXX_TRUE
958CXXDEPMODE
959ac_ct_CXX
960CXXFLAGS
961CXX
962EGREP
963GREP
964CPP
965am__fastdepCC_FALSE
966am__fastdepCC_TRUE
967CCDEPMODE
968am__nodep
969AMDEPBACKSLASH
970AMDEP_FALSE
971AMDEP_TRUE
972am__quote
973am__include
974DEPDIR
975OBJEXT
976EXEEXT
977ac_ct_CC
978CPPFLAGS
979LDFLAGS
980CFLAGS
981CC
982DIRSEP
983MAGICK_FILTER_MODULE_PATH
984MAGICK_CONFIGURE_BUILD_PATH
985MAGICK_CONFIGURE_SRC_PATH
986MAGICK_CODER_MODULE_PATH
987MAN_DIR
988INFO_DIR
989PERSISTINCLUDE_DIR
990INCLUDE_DIR
991LIB_DIR
992LOCALSTATE_DIR
993SHAREDSTATE_DIR
994SYSCONF_DIR
995DOC_DIR
996DATA_DIR
997LIBEXEC_DIR
998SBIN_DIR
999BIN_DIR
1000EXEC_PREFIX_DIR
1001PREFIX_DIR
1002CONFIG_STATUS_DEPENDENCIES
1003MAGICK_LIB_VERSION_NUMBER
1004MAGICK_LIB_VERSION_TEXT
1005MAGICK_LIB_VERSION
1006AM_BACKSLASH
1007AM_DEFAULT_VERBOSITY
1008AM_DEFAULT_V
1009AM_V
1010am__untar
1011am__tar
1012AMTAR
1013am__leading_dot
1014SET_MAKE
1015AWK
1016mkdir_p
1017MKDIR_P
1018INSTALL_STRIP_PROGRAM
1019STRIP
1020install_sh
1021MAKEINFO
1022AUTOHEADER
1023AUTOMAKE
1024AUTOCONF
1025ACLOCAL
1026VERSION
1027PACKAGE
1028CYGPATH_W
1029am__isrc
1030INSTALL_DATA
1031INSTALL_SCRIPT
1032INSTALL_PROGRAM
1033PACKAGE_VERSION_ADDENDUM
1034PACKAGE_RELEASE_DATE
1035PACKAGE_LIB_VERSION_NUMBER
1036PACKAGE_LIB_VERSION
1037PACKAGE_CHANGE_DATE
1038PACKAGE_RELEASE
1039PACKAGE_PERL_VERSION
1040MAGICK_LIBRARY_VERSION_INFO
1041MAGICK_LIBRARY_CURRENT_MIN
1042MAGICK_LIBRARY_AGE
1043MAGICK_LIBRARY_REVISION
1044MAGICK_LIBRARY_CURRENT
1045MAGICK_SVN_REVISION
1046MAGICK_VERSION
1047MAGICK_PATCHLEVEL_VERSION
1048MAGICK_MICRO_VERSION
1049MAGICK_MINOR_VERSION
1050MAGICK_MAJOR_VERSION
1051MAGICK_TARGET_OS
1052MAGICK_TARGET_VENDOR
1053MAGICK_TARGET_CPU
1054target_os
1055target_vendor
1056target_cpu
1057target
1058host_os
1059host_vendor
1060host_cpu
1061host
1062build_os
1063build_vendor
1064build_cpu
1065build
1066CONFIGURE_ARGS
1067DISTCHECK_CONFIG_FLAGS
1068target_alias
1069host_alias
1070build_alias
1071LIBS
1072ECHO_T
1073ECHO_N
1074ECHO_C
1075DEFS
1076mandir
1077localedir
1078libdir
1079psdir
1080pdfdir
1081dvidir
1082htmldir
1083infodir
1084docdir
1085oldincludedir
1086includedir
1087localstatedir
1088sharedstatedir
1089sysconfdir
1090datadir
1091datarootdir
1092libexecdir
1093sbindir
1094bindir
1095program_transform_name
1096prefix
1097exec_prefix
1098PACKAGE_URL
1099PACKAGE_BUGREPORT
1100PACKAGE_STRING
1101PACKAGE_VERSION
1102PACKAGE_TARNAME
1103PACKAGE_NAME
1104PATH_SEPARATOR
1105SHELL'
1106ac_subst_files=''
1107ac_user_opts='
1108enable_option_checking
1109enable_silent_rules
1110enable_dependency_tracking
1111with_gnu_ld
1112with_dmalloc
1113with_gcc_arch
1114enable_ld_version_script
1115enable_bounds_checking
1116enable_osx_universal_binary
1117with_includearch_dir
1118with_sharearch_dir
1119with_pkgconfigdir
1120with_threads
1121enable_openmp
1122enable_opencl
1123enable_largefile
1124enable_shared
1125enable_static
1126with_pic
1127enable_fast_install
1128with_sysroot
1129enable_libtool_lock
1130with_modules
1131enable_delegate_build
1132enable_deprecated
1133enable_installed
1134enable_cipher
1135enable_zero_configuration
1136enable_hdri
1137enable_assert
1138enable_maintainer_mode
1139enable_hugepages
1140enable_ccmalloc
1141enable_efence
1142enable_prof
1143enable_gprof
1144enable_gcov
1145with_method_prefix
1146enable_legacy_support
1147with_quantum_depth
1148with_cache
1149with_frozenpaths
1150with_magick_plus_plus
1151with_package_release_name
1152with_perl
1153with_perl_options
1154with_umem
1155with_libstdc
1156with_bzlib
1157with_x
1158with_zlib
1159with_autotrace
1160with_dps
1161with_djvu
1162with_dejavu_font_dir
1163with_fftw
1164with_fpx
1165with_fontconfig
1166with_freetype
1167with_gslib
1168with_fontpath
1169with_gs_font_dir
1170with_gvc
1171with_jbig
1172with_jpeg
1173with_jp2
1174with_lcms
1175with_lcms2
1176with_lqr
1177with_lzma
1178with_openexr
1179with_pango
1180with_png
1181with_rsvg
1182with_tiff
1183with_webp
1184with_windows_font_dir
1185with_wmf
1186with_xml
1187'
1188      ac_precious_vars='build_alias
1189host_alias
1190target_alias
1191CC
1192CFLAGS
1193LDFLAGS
1194LIBS
1195CPPFLAGS
1196CPP
1197CXX
1198CXXFLAGS
1199CCC
1200PKG_CONFIG
1201CXXCPP
1202XMKMF
1203AUTOTRACE_CFLAGS
1204AUTOTRACE_LIBS
1205FONTCONFIG_CFLAGS
1206FONTCONFIG_LIBS
1207FREETYPE_CFLAGS
1208FREETYPE_LIBS
1209GVC_CFLAGS
1210GVC_LIBS
1211LQR_CFLAGS
1212LQR_LIBS
1213LZMA_CFLAGS
1214LZMA_LIBS
1215OPENEXR_CFLAGS
1216OPENEXR_LIBS
1217PANGO_CFLAGS
1218PANGO_LIBS
1219RSVG_CFLAGS
1220RSVG_LIBS
1221CAIRO_SVG_CFLAGS
1222CAIRO_SVG_LIBS'
1223
1224
1225# Initialize some variables set by options.
1226ac_init_help=
1227ac_init_version=false
1228ac_unrecognized_opts=
1229ac_unrecognized_sep=
1230# The variables have the same names as the options, with
1231# dashes changed to underlines.
1232cache_file=/dev/null
1233exec_prefix=NONE
1234no_create=
1235no_recursion=
1236prefix=NONE
1237program_prefix=NONE
1238program_suffix=NONE
1239program_transform_name=s,x,x,
1240silent=
1241site=
1242srcdir=
1243verbose=
1244x_includes=NONE
1245x_libraries=NONE
1246
1247# Installation directory options.
1248# These are left unexpanded so users can "make install exec_prefix=/foo"
1249# and all the variables that are supposed to be based on exec_prefix
1250# by default will actually change.
1251# Use braces instead of parens because sh, perl, etc. also accept them.
1252# (The list follows the same order as the GNU Coding Standards.)
1253bindir='${exec_prefix}/bin'
1254sbindir='${exec_prefix}/sbin'
1255libexecdir='${exec_prefix}/libexec'
1256datarootdir='${prefix}/share'
1257datadir='${datarootdir}'
1258sysconfdir='${prefix}/etc'
1259sharedstatedir='${prefix}/com'
1260localstatedir='${prefix}/var'
1261includedir='${prefix}/include'
1262oldincludedir='/usr/include'
1263docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264infodir='${datarootdir}/info'
1265htmldir='${docdir}'
1266dvidir='${docdir}'
1267pdfdir='${docdir}'
1268psdir='${docdir}'
1269libdir='${exec_prefix}/lib'
1270localedir='${datarootdir}/locale'
1271mandir='${datarootdir}/man'
1272
1273ac_prev=
1274ac_dashdash=
1275for ac_option
1276do
1277  # If the previous option needs an argument, assign it.
1278  if test -n "$ac_prev"; then
1279    eval $ac_prev=\$ac_option
1280    ac_prev=
1281    continue
1282  fi
1283
1284  case $ac_option in
1285  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1286  *=)   ac_optarg= ;;
1287  *)    ac_optarg=yes ;;
1288  esac
1289
1290  # Accept the important Cygnus configure options, so we can diagnose typos.
1291
1292  case $ac_dashdash$ac_option in
1293  --)
1294    ac_dashdash=yes ;;
1295
1296  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297    ac_prev=bindir ;;
1298  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299    bindir=$ac_optarg ;;
1300
1301  -build | --build | --buil | --bui | --bu)
1302    ac_prev=build_alias ;;
1303  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304    build_alias=$ac_optarg ;;
1305
1306  -cache-file | --cache-file | --cache-fil | --cache-fi \
1307  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308    ac_prev=cache_file ;;
1309  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311    cache_file=$ac_optarg ;;
1312
1313  --config-cache | -C)
1314    cache_file=config.cache ;;
1315
1316  -datadir | --datadir | --datadi | --datad)
1317    ac_prev=datadir ;;
1318  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319    datadir=$ac_optarg ;;
1320
1321  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322  | --dataroo | --dataro | --datar)
1323    ac_prev=datarootdir ;;
1324  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326    datarootdir=$ac_optarg ;;
1327
1328  -disable-* | --disable-*)
1329    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330    # Reject names that are not valid shell variable names.
1331    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332      as_fn_error $? "invalid feature name: $ac_useropt"
1333    ac_useropt_orig=$ac_useropt
1334    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335    case $ac_user_opts in
1336      *"
1337"enable_$ac_useropt"
1338"*) ;;
1339      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340	 ac_unrecognized_sep=', ';;
1341    esac
1342    eval enable_$ac_useropt=no ;;
1343
1344  -docdir | --docdir | --docdi | --doc | --do)
1345    ac_prev=docdir ;;
1346  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347    docdir=$ac_optarg ;;
1348
1349  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1350    ac_prev=dvidir ;;
1351  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352    dvidir=$ac_optarg ;;
1353
1354  -enable-* | --enable-*)
1355    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356    # Reject names that are not valid shell variable names.
1357    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358      as_fn_error $? "invalid feature name: $ac_useropt"
1359    ac_useropt_orig=$ac_useropt
1360    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361    case $ac_user_opts in
1362      *"
1363"enable_$ac_useropt"
1364"*) ;;
1365      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366	 ac_unrecognized_sep=', ';;
1367    esac
1368    eval enable_$ac_useropt=\$ac_optarg ;;
1369
1370  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372  | --exec | --exe | --ex)
1373    ac_prev=exec_prefix ;;
1374  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376  | --exec=* | --exe=* | --ex=*)
1377    exec_prefix=$ac_optarg ;;
1378
1379  -gas | --gas | --ga | --g)
1380    # Obsolete; use --with-gas.
1381    with_gas=yes ;;
1382
1383  -help | --help | --hel | --he | -h)
1384    ac_init_help=long ;;
1385  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386    ac_init_help=recursive ;;
1387  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388    ac_init_help=short ;;
1389
1390  -host | --host | --hos | --ho)
1391    ac_prev=host_alias ;;
1392  -host=* | --host=* | --hos=* | --ho=*)
1393    host_alias=$ac_optarg ;;
1394
1395  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1396    ac_prev=htmldir ;;
1397  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1398  | --ht=*)
1399    htmldir=$ac_optarg ;;
1400
1401  -includedir | --includedir | --includedi | --included | --include \
1402  | --includ | --inclu | --incl | --inc)
1403    ac_prev=includedir ;;
1404  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405  | --includ=* | --inclu=* | --incl=* | --inc=*)
1406    includedir=$ac_optarg ;;
1407
1408  -infodir | --infodir | --infodi | --infod | --info | --inf)
1409    ac_prev=infodir ;;
1410  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411    infodir=$ac_optarg ;;
1412
1413  -libdir | --libdir | --libdi | --libd)
1414    ac_prev=libdir ;;
1415  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416    libdir=$ac_optarg ;;
1417
1418  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419  | --libexe | --libex | --libe)
1420    ac_prev=libexecdir ;;
1421  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422  | --libexe=* | --libex=* | --libe=*)
1423    libexecdir=$ac_optarg ;;
1424
1425  -localedir | --localedir | --localedi | --localed | --locale)
1426    ac_prev=localedir ;;
1427  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428    localedir=$ac_optarg ;;
1429
1430  -localstatedir | --localstatedir | --localstatedi | --localstated \
1431  | --localstate | --localstat | --localsta | --localst | --locals)
1432    ac_prev=localstatedir ;;
1433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435    localstatedir=$ac_optarg ;;
1436
1437  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1438    ac_prev=mandir ;;
1439  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440    mandir=$ac_optarg ;;
1441
1442  -nfp | --nfp | --nf)
1443    # Obsolete; use --without-fp.
1444    with_fp=no ;;
1445
1446  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447  | --no-cr | --no-c | -n)
1448    no_create=yes ;;
1449
1450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1452    no_recursion=yes ;;
1453
1454  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456  | --oldin | --oldi | --old | --ol | --o)
1457    ac_prev=oldincludedir ;;
1458  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461    oldincludedir=$ac_optarg ;;
1462
1463  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1464    ac_prev=prefix ;;
1465  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466    prefix=$ac_optarg ;;
1467
1468  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469  | --program-pre | --program-pr | --program-p)
1470    ac_prev=program_prefix ;;
1471  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473    program_prefix=$ac_optarg ;;
1474
1475  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476  | --program-suf | --program-su | --program-s)
1477    ac_prev=program_suffix ;;
1478  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480    program_suffix=$ac_optarg ;;
1481
1482  -program-transform-name | --program-transform-name \
1483  | --program-transform-nam | --program-transform-na \
1484  | --program-transform-n | --program-transform- \
1485  | --program-transform | --program-transfor \
1486  | --program-transfo | --program-transf \
1487  | --program-trans | --program-tran \
1488  | --progr-tra | --program-tr | --program-t)
1489    ac_prev=program_transform_name ;;
1490  -program-transform-name=* | --program-transform-name=* \
1491  | --program-transform-nam=* | --program-transform-na=* \
1492  | --program-transform-n=* | --program-transform-=* \
1493  | --program-transform=* | --program-transfor=* \
1494  | --program-transfo=* | --program-transf=* \
1495  | --program-trans=* | --program-tran=* \
1496  | --progr-tra=* | --program-tr=* | --program-t=*)
1497    program_transform_name=$ac_optarg ;;
1498
1499  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1500    ac_prev=pdfdir ;;
1501  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502    pdfdir=$ac_optarg ;;
1503
1504  -psdir | --psdir | --psdi | --psd | --ps)
1505    ac_prev=psdir ;;
1506  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1507    psdir=$ac_optarg ;;
1508
1509  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510  | -silent | --silent | --silen | --sile | --sil)
1511    silent=yes ;;
1512
1513  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1514    ac_prev=sbindir ;;
1515  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1516  | --sbi=* | --sb=*)
1517    sbindir=$ac_optarg ;;
1518
1519  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1520  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1521  | --sharedst | --shareds | --shared | --share | --shar \
1522  | --sha | --sh)
1523    ac_prev=sharedstatedir ;;
1524  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1525  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1526  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1527  | --sha=* | --sh=*)
1528    sharedstatedir=$ac_optarg ;;
1529
1530  -site | --site | --sit)
1531    ac_prev=site ;;
1532  -site=* | --site=* | --sit=*)
1533    site=$ac_optarg ;;
1534
1535  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1536    ac_prev=srcdir ;;
1537  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1538    srcdir=$ac_optarg ;;
1539
1540  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1541  | --syscon | --sysco | --sysc | --sys | --sy)
1542    ac_prev=sysconfdir ;;
1543  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1544  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1545    sysconfdir=$ac_optarg ;;
1546
1547  -target | --target | --targe | --targ | --tar | --ta | --t)
1548    ac_prev=target_alias ;;
1549  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1550    target_alias=$ac_optarg ;;
1551
1552  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1553    verbose=yes ;;
1554
1555  -version | --version | --versio | --versi | --vers | -V)
1556    ac_init_version=: ;;
1557
1558  -with-* | --with-*)
1559    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1560    # Reject names that are not valid shell variable names.
1561    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1562      as_fn_error $? "invalid package name: $ac_useropt"
1563    ac_useropt_orig=$ac_useropt
1564    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565    case $ac_user_opts in
1566      *"
1567"with_$ac_useropt"
1568"*) ;;
1569      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1570	 ac_unrecognized_sep=', ';;
1571    esac
1572    eval with_$ac_useropt=\$ac_optarg ;;
1573
1574  -without-* | --without-*)
1575    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1576    # Reject names that are not valid shell variable names.
1577    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1578      as_fn_error $? "invalid package name: $ac_useropt"
1579    ac_useropt_orig=$ac_useropt
1580    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1581    case $ac_user_opts in
1582      *"
1583"with_$ac_useropt"
1584"*) ;;
1585      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1586	 ac_unrecognized_sep=', ';;
1587    esac
1588    eval with_$ac_useropt=no ;;
1589
1590  --x)
1591    # Obsolete; use --with-x.
1592    with_x=yes ;;
1593
1594  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1595  | --x-incl | --x-inc | --x-in | --x-i)
1596    ac_prev=x_includes ;;
1597  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1598  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1599    x_includes=$ac_optarg ;;
1600
1601  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1602  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1603    ac_prev=x_libraries ;;
1604  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1605  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1606    x_libraries=$ac_optarg ;;
1607
1608  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1609Try \`$0 --help' for more information"
1610    ;;
1611
1612  *=*)
1613    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1614    # Reject names that are not valid shell variable names.
1615    case $ac_envvar in #(
1616      '' | [0-9]* | *[!_$as_cr_alnum]* )
1617      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1618    esac
1619    eval $ac_envvar=\$ac_optarg
1620    export $ac_envvar ;;
1621
1622  *)
1623    # FIXME: should be removed in autoconf 3.0.
1624    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1625    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1626      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1627    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1628    ;;
1629
1630  esac
1631done
1632
1633if test -n "$ac_prev"; then
1634  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1635  as_fn_error $? "missing argument to $ac_option"
1636fi
1637
1638if test -n "$ac_unrecognized_opts"; then
1639  case $enable_option_checking in
1640    no) ;;
1641    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1642    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1643  esac
1644fi
1645
1646# Check all directory arguments for consistency.
1647for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1648		datadir sysconfdir sharedstatedir localstatedir includedir \
1649		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1650		libdir localedir mandir
1651do
1652  eval ac_val=\$$ac_var
1653  # Remove trailing slashes.
1654  case $ac_val in
1655    */ )
1656      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1657      eval $ac_var=\$ac_val;;
1658  esac
1659  # Be sure to have absolute directory names.
1660  case $ac_val in
1661    [\\/$]* | ?:[\\/]* )  continue;;
1662    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1663  esac
1664  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1665done
1666
1667# There might be people who depend on the old broken behavior: `$host'
1668# used to hold the argument of --host etc.
1669# FIXME: To remove some day.
1670build=$build_alias
1671host=$host_alias
1672target=$target_alias
1673
1674# FIXME: To remove some day.
1675if test "x$host_alias" != x; then
1676  if test "x$build_alias" = x; then
1677    cross_compiling=maybe
1678  elif test "x$build_alias" != "x$host_alias"; then
1679    cross_compiling=yes
1680  fi
1681fi
1682
1683ac_tool_prefix=
1684test -n "$host_alias" && ac_tool_prefix=$host_alias-
1685
1686test "$silent" = yes && exec 6>/dev/null
1687
1688
1689ac_pwd=`pwd` && test -n "$ac_pwd" &&
1690ac_ls_di=`ls -di .` &&
1691ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1692  as_fn_error $? "working directory cannot be determined"
1693test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1694  as_fn_error $? "pwd does not report name of working directory"
1695
1696
1697# Find the source files, if location was not specified.
1698if test -z "$srcdir"; then
1699  ac_srcdir_defaulted=yes
1700  # Try the directory containing this script, then the parent directory.
1701  ac_confdir=`$as_dirname -- "$as_myself" ||
1702$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1703	 X"$as_myself" : 'X\(//\)[^/]' \| \
1704	 X"$as_myself" : 'X\(//\)$' \| \
1705	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1706$as_echo X"$as_myself" |
1707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1708	    s//\1/
1709	    q
1710	  }
1711	  /^X\(\/\/\)[^/].*/{
1712	    s//\1/
1713	    q
1714	  }
1715	  /^X\(\/\/\)$/{
1716	    s//\1/
1717	    q
1718	  }
1719	  /^X\(\/\).*/{
1720	    s//\1/
1721	    q
1722	  }
1723	  s/.*/./; q'`
1724  srcdir=$ac_confdir
1725  if test ! -r "$srcdir/$ac_unique_file"; then
1726    srcdir=..
1727  fi
1728else
1729  ac_srcdir_defaulted=no
1730fi
1731if test ! -r "$srcdir/$ac_unique_file"; then
1732  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1733  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1734fi
1735ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1736ac_abs_confdir=`(
1737	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1738	pwd)`
1739# When building in place, set srcdir=.
1740if test "$ac_abs_confdir" = "$ac_pwd"; then
1741  srcdir=.
1742fi
1743# Remove unnecessary trailing slashes from srcdir.
1744# Double slashes in file names in object file debugging info
1745# mess up M-x gdb in Emacs.
1746case $srcdir in
1747*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1748esac
1749for ac_var in $ac_precious_vars; do
1750  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1751  eval ac_env_${ac_var}_value=\$${ac_var}
1752  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1753  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1754done
1755
1756#
1757# Report the --help message.
1758#
1759if test "$ac_init_help" = "long"; then
1760  # Omit some internal or obsolete options to make the list less imposing.
1761  # This message is too long to be a string in the A/UX 3.1 sh.
1762  cat <<_ACEOF
1763\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
1764
1765Usage: $0 [OPTION]... [VAR=VALUE]...
1766
1767To assign environment variables (e.g., CC, CFLAGS...), specify them as
1768VAR=VALUE.  See below for descriptions of some of the useful variables.
1769
1770Defaults for the options are specified in brackets.
1771
1772Configuration:
1773  -h, --help              display this help and exit
1774      --help=short        display options specific to this package
1775      --help=recursive    display the short help of all the included packages
1776  -V, --version           display version information and exit
1777  -q, --quiet, --silent   do not print \`checking ...' messages
1778      --cache-file=FILE   cache test results in FILE [disabled]
1779  -C, --config-cache      alias for \`--cache-file=config.cache'
1780  -n, --no-create         do not create output files
1781      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1782
1783Installation directories:
1784  --prefix=PREFIX         install architecture-independent files in PREFIX
1785                          [$ac_default_prefix]
1786  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1787                          [PREFIX]
1788
1789By default, \`make install' will install all the files in
1790\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1791an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1792for instance \`--prefix=\$HOME'.
1793
1794For better control, use the options below.
1795
1796Fine tuning of the installation directories:
1797  --bindir=DIR            user executables [EPREFIX/bin]
1798  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1799  --libexecdir=DIR        program executables [EPREFIX/libexec]
1800  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1801  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1802  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1803  --libdir=DIR            object code libraries [EPREFIX/lib]
1804  --includedir=DIR        C header files [PREFIX/include]
1805  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1806  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1807  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1808  --infodir=DIR           info documentation [DATAROOTDIR/info]
1809  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1810  --mandir=DIR            man documentation [DATAROOTDIR/man]
1811  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1812  --htmldir=DIR           html documentation [DOCDIR]
1813  --dvidir=DIR            dvi documentation [DOCDIR]
1814  --pdfdir=DIR            pdf documentation [DOCDIR]
1815  --psdir=DIR             ps documentation [DOCDIR]
1816_ACEOF
1817
1818  cat <<\_ACEOF
1819
1820Program names:
1821  --program-prefix=PREFIX            prepend PREFIX to installed program names
1822  --program-suffix=SUFFIX            append SUFFIX to installed program names
1823  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1824
1825X features:
1826  --x-includes=DIR    X include files are in DIR
1827  --x-libraries=DIR   X library files are in DIR
1828
1829System types:
1830  --build=BUILD     configure for building on BUILD [guessed]
1831  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1832  --target=TARGET   configure for building compilers for TARGET [HOST]
1833_ACEOF
1834fi
1835
1836if test -n "$ac_init_help"; then
1837  case $ac_init_help in
1838     short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
1839   esac
1840  cat <<\_ACEOF
1841
1842Optional Features:
1843  --disable-option-checking  ignore unrecognized --enable/--with options
1844  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1845  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1846  --enable-silent-rules   less verbose build output (undo: "make V=1")
1847  --disable-silent-rules  verbose build output (undo: "make V=0")
1848  --enable-dependency-tracking
1849                          do not reject slow dependency extractors
1850  --disable-dependency-tracking
1851                          speeds up one-time build
1852  --enable-ld-version-script
1853                          enable linker version script (default is enabled
1854                          when possible)
1855  --enable-bounds-checking
1856                          enable run-time bounds-checking
1857  --enable-osx-universal-binary
1858                          build universal binary on OS X [[default=no]]
1859  --disable-openmp        do not use OpenMP
1860  --enable-opencl         enable OpenCL support
1861  --disable-largefile     omit support for large files
1862  --enable-shared[=PKGS]  build shared libraries [default=yes]
1863  --enable-static[=PKGS]  build static libraries [default=yes]
1864  --enable-fast-install[=PKGS]
1865                          optimize for fast installation [default=yes]
1866  --disable-libtool-lock  avoid locking (might break parallel builds)
1867  --enable-delegate-build look for delegate libraries in build directory
1868  --disable-deprecated    exclude deprecated methods in MagickCore and
1869                          MagickWand APIs
1870  --disable-installed     Formally install ImageMagick under PREFIX
1871  --disable-cipher        disable enciphering and deciphering image pixels
1872  --enable-zero-configuration
1873                          enable self-contained, embeddable,
1874                          zero-configuration ImageMagick
1875  --enable-hdri           accurately represent the wide range of intensity
1876                          levels found in real scenes
1877  --disable-assert        disable assert() statements in build
1878  --enable-maintainer-mode
1879                          enable make rules and dependencies not useful (and
1880                          sometimes confusing) to the casual installer
1881  --enable-hugepages      enable 'huge pages' support
1882  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1883  --enable-efence         enable 'efence' memory debug support
1884  --enable-prof           enable 'prof' profiling support
1885  --enable-gprof          enable 'gprof' profiling support
1886  --enable-gcov           enable 'gcov' profiling support
1887  --enable-legacy-support  install legacy command-line utilities (default disabled)
1888  --disable-assert        turn off assertions
1889
1890Optional Packages:
1891  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1892  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1893  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1894  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1895  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1896                          instead of guessing
1897  --includearch-dir=DIR   ARCH specific include directory
1898  --sharearch-dir=DIR     ARCH specific config directory
1899  --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1900  --without-threads       disable threads support
1901  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1902                          both]
1903  --with-sysroot=DIR Search for dependent libraries within DIR
1904                        (or the compiler's sysroot if not specified).
1905  --with-modules          enable building dynamically loadable modules
1906  --with-method-prefix=PREFIX
1907                          prefix MagickCore API methods
1908  --with-quantum-depth=DEPTH
1909                          number of bits in a pixel quantum (default 16)
1910  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1911                          memory)
1912  --with-frozenpaths      freeze delegate paths
1913  --without-magick-plus-plus
1914                          disable build/install of Magick++
1915  --with-package-release-name=NAME
1916                          encode this name into the shared library
1917  --with-perl             enable build/install of PerlMagick
1918  --with-perl-options=OPTIONS
1919                          options to pass on command-line when generating
1920                          PerlMagick build file
1921  --with-umem             enable umem memory allocation library support
1922  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1923  --without-bzlib         disable BZLIB support
1924  --with-x                use the X Window System
1925  --without-zlib          disable ZLIB support
1926  --with-autotrace        enable autotrace support
1927  --without-dps           disable Display Postscript support
1928  --without-djvu          disable DjVu support
1929  --with-dejavu-font-dir=DIR
1930                          DejaVu font directory
1931  --without-fftw          disable FFTW support
1932  --without-fpx           disable FlashPIX support
1933  --without-fontconfig    disable fontconfig support
1934  --without-freetype      disable Freetype support
1935  --with-gslib            enable Ghostscript library support
1936  --with-fontpath=DIR     prepend to default font search path
1937  --with-gs-font-dir=DIR  Ghostscript font directory
1938  --with-gvc              enable GVC support
1939  --without-jbig          disable JBIG support
1940  --without-jpeg          disable JPEG support
1941  --without-jp2           disable JPEG-2000 support
1942  --without-lcms          disable lcms (v1.1X) support
1943  --without-lcms2         disable lcms (v2.X) support
1944  --without-lqr           disable Liquid Rescale support
1945  --without-lzma          disable LZMA support
1946  --without-openexr       disable OpenEXR support
1947  --without-pango         disable PANGO support
1948  --without-png           disable PNG support
1949  --with-rsvg             enable RSVG support
1950  --without-tiff          disable TIFF support
1951  --without-webp          disable WEBP support
1952  --with-windows-font-dir=DIR
1953                          directory containing MS-Windows fonts
1954  --with-wmf              enable WMF support
1955  --without-xml           disable XML support
1956
1957Some influential environment variables:
1958  CC          C compiler command
1959  CFLAGS      C compiler flags
1960  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1961              nonstandard directory <lib dir>
1962  LIBS        libraries to pass to the linker, e.g. -l<library>
1963  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1964              you have headers in a nonstandard directory <include dir>
1965  CPP         C preprocessor
1966  CXX         C++ compiler command
1967  CXXFLAGS    C++ compiler flags
1968  PKG_CONFIG  path to pkg-config utility
1969  CXXCPP      C++ preprocessor
1970  XMKMF       Path to xmkmf, Makefile generator for X Window System
1971  AUTOTRACE_CFLAGS
1972              C compiler flags for AUTOTRACE, overriding pkg-config
1973  AUTOTRACE_LIBS
1974              linker flags for AUTOTRACE, overriding pkg-config
1975  FONTCONFIG_CFLAGS
1976              C compiler flags for FONTCONFIG, overriding pkg-config
1977  FONTCONFIG_LIBS
1978              linker flags for FONTCONFIG, overriding pkg-config
1979  FREETYPE_CFLAGS
1980              C compiler flags for FREETYPE, overriding pkg-config
1981  FREETYPE_LIBS
1982              linker flags for FREETYPE, overriding pkg-config
1983  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1984  GVC_LIBS    linker flags for GVC, overriding pkg-config
1985  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1986  LQR_LIBS    linker flags for LQR, overriding pkg-config
1987  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1988  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
1989  OPENEXR_CFLAGS
1990              C compiler flags for OPENEXR, overriding pkg-config
1991  OPENEXR_LIBS
1992              linker flags for OPENEXR, overriding pkg-config
1993  PANGO_CFLAGS
1994              C compiler flags for PANGO, overriding pkg-config
1995  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
1996  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1997  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1998  CAIRO_SVG_CFLAGS
1999              C compiler flags for CAIRO_SVG, overriding pkg-config
2000  CAIRO_SVG_LIBS
2001              linker flags for CAIRO_SVG, overriding pkg-config
2002
2003Use these variables to override the choices made by `configure' or to help
2004it to find libraries and programs with nonstandard names/locations.
2005
2006Report bugs to <http://www.imagemagick.org>.
2007_ACEOF
2008ac_status=$?
2009fi
2010
2011if test "$ac_init_help" = "recursive"; then
2012  # If there are subdirs, report their specific --help.
2013  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2014    test -d "$ac_dir" ||
2015      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2016      continue
2017    ac_builddir=.
2018
2019case "$ac_dir" in
2020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2021*)
2022  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2023  # A ".." for each directory in $ac_dir_suffix.
2024  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2025  case $ac_top_builddir_sub in
2026  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2027  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2028  esac ;;
2029esac
2030ac_abs_top_builddir=$ac_pwd
2031ac_abs_builddir=$ac_pwd$ac_dir_suffix
2032# for backward compatibility:
2033ac_top_builddir=$ac_top_build_prefix
2034
2035case $srcdir in
2036  .)  # We are building in place.
2037    ac_srcdir=.
2038    ac_top_srcdir=$ac_top_builddir_sub
2039    ac_abs_top_srcdir=$ac_pwd ;;
2040  [\\/]* | ?:[\\/]* )  # Absolute name.
2041    ac_srcdir=$srcdir$ac_dir_suffix;
2042    ac_top_srcdir=$srcdir
2043    ac_abs_top_srcdir=$srcdir ;;
2044  *) # Relative name.
2045    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2046    ac_top_srcdir=$ac_top_build_prefix$srcdir
2047    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2048esac
2049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2050
2051    cd "$ac_dir" || { ac_status=$?; continue; }
2052    # Check for guested configure.
2053    if test -f "$ac_srcdir/configure.gnu"; then
2054      echo &&
2055      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2056    elif test -f "$ac_srcdir/configure"; then
2057      echo &&
2058      $SHELL "$ac_srcdir/configure" --help=recursive
2059    else
2060      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2061    fi || ac_status=$?
2062    cd "$ac_pwd" || { ac_status=$?; break; }
2063  done
2064fi
2065
2066test -n "$ac_init_help" && exit $ac_status
2067if $ac_init_version; then
2068  cat <<\_ACEOF
2069ImageMagick configure 7.0.0-0
2070generated by GNU Autoconf 2.69
2071
2072Copyright (C) 2012 Free Software Foundation, Inc.
2073This configure script is free software; the Free Software Foundation
2074gives unlimited permission to copy, distribute and modify it.
2075_ACEOF
2076  exit
2077fi
2078
2079## ------------------------ ##
2080## Autoconf initialization. ##
2081## ------------------------ ##
2082
2083# ac_fn_c_try_compile LINENO
2084# --------------------------
2085# Try to compile conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_c_try_compile ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  rm -f conftest.$ac_objext
2090  if { { ac_try="$ac_compile"
2091case "(($ac_try" in
2092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093  *) ac_try_echo=$ac_try;;
2094esac
2095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096$as_echo "$ac_try_echo"; } >&5
2097  (eval "$ac_compile") 2>conftest.err
2098  ac_status=$?
2099  if test -s conftest.err; then
2100    grep -v '^ *+' conftest.err >conftest.er1
2101    cat conftest.er1 >&5
2102    mv -f conftest.er1 conftest.err
2103  fi
2104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105  test $ac_status = 0; } && {
2106	 test -z "$ac_c_werror_flag" ||
2107	 test ! -s conftest.err
2108       } && test -s conftest.$ac_objext; then :
2109  ac_retval=0
2110else
2111  $as_echo "$as_me: failed program was:" >&5
2112sed 's/^/| /' conftest.$ac_ext >&5
2113
2114	ac_retval=1
2115fi
2116  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117  as_fn_set_status $ac_retval
2118
2119} # ac_fn_c_try_compile
2120
2121# ac_fn_c_try_cpp LINENO
2122# ----------------------
2123# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124ac_fn_c_try_cpp ()
2125{
2126  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127  if { { ac_try="$ac_cpp conftest.$ac_ext"
2128case "(($ac_try" in
2129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130  *) ac_try_echo=$ac_try;;
2131esac
2132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133$as_echo "$ac_try_echo"; } >&5
2134  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135  ac_status=$?
2136  if test -s conftest.err; then
2137    grep -v '^ *+' conftest.err >conftest.er1
2138    cat conftest.er1 >&5
2139    mv -f conftest.er1 conftest.err
2140  fi
2141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142  test $ac_status = 0; } > conftest.i && {
2143	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2144	 test ! -s conftest.err
2145       }; then :
2146  ac_retval=0
2147else
2148  $as_echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151    ac_retval=1
2152fi
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154  as_fn_set_status $ac_retval
2155
2156} # ac_fn_c_try_cpp
2157
2158# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2159# -------------------------------------------------------
2160# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2161# the include files in INCLUDES and setting the cache variable VAR
2162# accordingly.
2163ac_fn_c_check_header_mongrel ()
2164{
2165  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166  if eval \${$3+:} false; then :
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
2169if eval \${$3+:} false; then :
2170  $as_echo_n "(cached) " >&6
2171fi
2172eval ac_res=\$$3
2173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175else
2176  # Is the header compilable?
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2178$as_echo_n "checking $2 usability... " >&6; }
2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h.  */
2181$4
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185  ac_header_compiler=yes
2186else
2187  ac_header_compiler=no
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2191$as_echo "$ac_header_compiler" >&6; }
2192
2193# Is the header present?
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2195$as_echo_n "checking $2 presence... " >&6; }
2196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h.  */
2198#include <$2>
2199_ACEOF
2200if ac_fn_c_try_cpp "$LINENO"; then :
2201  ac_header_preproc=yes
2202else
2203  ac_header_preproc=no
2204fi
2205rm -f conftest.err conftest.i conftest.$ac_ext
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2207$as_echo "$ac_header_preproc" >&6; }
2208
2209# So?  What about this header?
2210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2211  yes:no: )
2212    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2213$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216    ;;
2217  no:yes:* )
2218    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2219$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2221$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2223$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2224    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2225$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2226    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228( $as_echo "## ----------------------------------------- ##
2229## Report this to http://www.imagemagick.org ##
2230## ----------------------------------------- ##"
2231     ) | sed "s/^/$as_me: WARNING:     /" >&2
2232    ;;
2233esac
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
2236if eval \${$3+:} false; then :
2237  $as_echo_n "(cached) " >&6
2238else
2239  eval "$3=\$ac_header_compiler"
2240fi
2241eval ac_res=\$$3
2242	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244fi
2245  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246
2247} # ac_fn_c_check_header_mongrel
2248
2249# ac_fn_c_try_run LINENO
2250# ----------------------
2251# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2252# that executables *can* be run.
2253ac_fn_c_try_run ()
2254{
2255  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256  if { { ac_try="$ac_link"
2257case "(($ac_try" in
2258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259  *) ac_try_echo=$ac_try;;
2260esac
2261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262$as_echo "$ac_try_echo"; } >&5
2263  (eval "$ac_link") 2>&5
2264  ac_status=$?
2265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2267  { { case "(($ac_try" in
2268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269  *) ac_try_echo=$ac_try;;
2270esac
2271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272$as_echo "$ac_try_echo"; } >&5
2273  (eval "$ac_try") 2>&5
2274  ac_status=$?
2275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2276  test $ac_status = 0; }; }; then :
2277  ac_retval=0
2278else
2279  $as_echo "$as_me: program exited with status $ac_status" >&5
2280       $as_echo "$as_me: failed program was:" >&5
2281sed 's/^/| /' conftest.$ac_ext >&5
2282
2283       ac_retval=$ac_status
2284fi
2285  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287  as_fn_set_status $ac_retval
2288
2289} # ac_fn_c_try_run
2290
2291# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2292# -------------------------------------------------------
2293# Tests whether HEADER exists and can be compiled using the include files in
2294# INCLUDES, setting the cache variable VAR accordingly.
2295ac_fn_c_check_header_compile ()
2296{
2297  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299$as_echo_n "checking for $2... " >&6; }
2300if eval \${$3+:} false; then :
2301  $as_echo_n "(cached) " >&6
2302else
2303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h.  */
2305$4
2306#include <$2>
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309  eval "$3=yes"
2310else
2311  eval "$3=no"
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315eval ac_res=\$$3
2316	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317$as_echo "$ac_res" >&6; }
2318  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319
2320} # ac_fn_c_check_header_compile
2321
2322# ac_fn_cxx_try_compile LINENO
2323# ----------------------------
2324# Try to compile conftest.$ac_ext, and return whether this succeeded.
2325ac_fn_cxx_try_compile ()
2326{
2327  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328  rm -f conftest.$ac_objext
2329  if { { ac_try="$ac_compile"
2330case "(($ac_try" in
2331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332  *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335$as_echo "$ac_try_echo"; } >&5
2336  (eval "$ac_compile") 2>conftest.err
2337  ac_status=$?
2338  if test -s conftest.err; then
2339    grep -v '^ *+' conftest.err >conftest.er1
2340    cat conftest.er1 >&5
2341    mv -f conftest.er1 conftest.err
2342  fi
2343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344  test $ac_status = 0; } && {
2345	 test -z "$ac_cxx_werror_flag" ||
2346	 test ! -s conftest.err
2347       } && test -s conftest.$ac_objext; then :
2348  ac_retval=0
2349else
2350  $as_echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353	ac_retval=1
2354fi
2355  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356  as_fn_set_status $ac_retval
2357
2358} # ac_fn_cxx_try_compile
2359
2360# ac_fn_c_try_link LINENO
2361# -----------------------
2362# Try to link conftest.$ac_ext, and return whether this succeeded.
2363ac_fn_c_try_link ()
2364{
2365  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366  rm -f conftest.$ac_objext conftest$ac_exeext
2367  if { { ac_try="$ac_link"
2368case "(($ac_try" in
2369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370  *) ac_try_echo=$ac_try;;
2371esac
2372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373$as_echo "$ac_try_echo"; } >&5
2374  (eval "$ac_link") 2>conftest.err
2375  ac_status=$?
2376  if test -s conftest.err; then
2377    grep -v '^ *+' conftest.err >conftest.er1
2378    cat conftest.er1 >&5
2379    mv -f conftest.er1 conftest.err
2380  fi
2381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382  test $ac_status = 0; } && {
2383	 test -z "$ac_c_werror_flag" ||
2384	 test ! -s conftest.err
2385       } && test -s conftest$ac_exeext && {
2386	 test "$cross_compiling" = yes ||
2387	 test -x conftest$ac_exeext
2388       }; then :
2389  ac_retval=0
2390else
2391  $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394	ac_retval=1
2395fi
2396  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2397  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2398  # interfere with the next link command; also delete a directory that is
2399  # left behind by Apple's compiler.  We do this before executing the actions.
2400  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2401  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402  as_fn_set_status $ac_retval
2403
2404} # ac_fn_c_try_link
2405
2406# ac_fn_c_check_func LINENO FUNC VAR
2407# ----------------------------------
2408# Tests whether FUNC exists, setting the cache variable VAR accordingly
2409ac_fn_c_check_func ()
2410{
2411  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
2414if eval \${$3+:} false; then :
2415  $as_echo_n "(cached) " >&6
2416else
2417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h.  */
2419/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2420   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2421#define $2 innocuous_$2
2422
2423/* System header to define __stub macros and hopefully few prototypes,
2424    which can conflict with char $2 (); below.
2425    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2426    <limits.h> exists even on freestanding compilers.  */
2427
2428#ifdef __STDC__
2429# include <limits.h>
2430#else
2431# include <assert.h>
2432#endif
2433
2434#undef $2
2435
2436/* Override any GCC internal prototype to avoid an error.
2437   Use char because int might match the return type of a GCC
2438   builtin and then its argument prototype would still apply.  */
2439#ifdef __cplusplus
2440extern "C"
2441#endif
2442char $2 ();
2443/* The GNU C library defines this for functions which it implements
2444    to always fail with ENOSYS.  Some functions are actually named
2445    something starting with __ and the normal name is an alias.  */
2446#if defined __stub_$2 || defined __stub___$2
2447choke me
2448#endif
2449
2450int
2451main ()
2452{
2453return $2 ();
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_link "$LINENO"; then :
2459  eval "$3=yes"
2460else
2461  eval "$3=no"
2462fi
2463rm -f core conftest.err conftest.$ac_objext \
2464    conftest$ac_exeext conftest.$ac_ext
2465fi
2466eval ac_res=\$$3
2467	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468$as_echo "$ac_res" >&6; }
2469  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470
2471} # ac_fn_c_check_func
2472
2473# ac_fn_cxx_try_cpp LINENO
2474# ------------------------
2475# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2476ac_fn_cxx_try_cpp ()
2477{
2478  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479  if { { ac_try="$ac_cpp conftest.$ac_ext"
2480case "(($ac_try" in
2481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482  *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2487  ac_status=$?
2488  if test -s conftest.err; then
2489    grep -v '^ *+' conftest.err >conftest.er1
2490    cat conftest.er1 >&5
2491    mv -f conftest.er1 conftest.err
2492  fi
2493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494  test $ac_status = 0; } > conftest.i && {
2495	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2496	 test ! -s conftest.err
2497       }; then :
2498  ac_retval=0
2499else
2500  $as_echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503    ac_retval=1
2504fi
2505  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2506  as_fn_set_status $ac_retval
2507
2508} # ac_fn_cxx_try_cpp
2509
2510# ac_fn_cxx_try_link LINENO
2511# -------------------------
2512# Try to link conftest.$ac_ext, and return whether this succeeded.
2513ac_fn_cxx_try_link ()
2514{
2515  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516  rm -f conftest.$ac_objext conftest$ac_exeext
2517  if { { ac_try="$ac_link"
2518case "(($ac_try" in
2519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520  *) ac_try_echo=$ac_try;;
2521esac
2522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523$as_echo "$ac_try_echo"; } >&5
2524  (eval "$ac_link") 2>conftest.err
2525  ac_status=$?
2526  if test -s conftest.err; then
2527    grep -v '^ *+' conftest.err >conftest.er1
2528    cat conftest.er1 >&5
2529    mv -f conftest.er1 conftest.err
2530  fi
2531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532  test $ac_status = 0; } && {
2533	 test -z "$ac_cxx_werror_flag" ||
2534	 test ! -s conftest.err
2535       } && test -s conftest$ac_exeext && {
2536	 test "$cross_compiling" = yes ||
2537	 test -x conftest$ac_exeext
2538       }; then :
2539  ac_retval=0
2540else
2541  $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544	ac_retval=1
2545fi
2546  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2547  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2548  # interfere with the next link command; also delete a directory that is
2549  # left behind by Apple's compiler.  We do this before executing the actions.
2550  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2551  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552  as_fn_set_status $ac_retval
2553
2554} # ac_fn_cxx_try_link
2555
2556# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557# -------------------------------------------
2558# Tests whether TYPE exists after having included INCLUDES, setting cache
2559# variable VAR accordingly.
2560ac_fn_c_check_type ()
2561{
2562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564$as_echo_n "checking for $2... " >&6; }
2565if eval \${$3+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  eval "$3=no"
2569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h.  */
2571$4
2572int
2573main ()
2574{
2575if (sizeof ($2))
2576	 return 0;
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"; then :
2582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583/* end confdefs.h.  */
2584$4
2585int
2586main ()
2587{
2588if (sizeof (($2)))
2589	    return 0;
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594if ac_fn_c_try_compile "$LINENO"; then :
2595
2596else
2597  eval "$3=yes"
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603eval ac_res=\$$3
2604	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605$as_echo "$ac_res" >&6; }
2606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2607
2608} # ac_fn_c_check_type
2609
2610# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2611# ----------------------------------------------------
2612# Tries to find if the field MEMBER exists in type AGGR, after including
2613# INCLUDES, setting cache variable VAR accordingly.
2614ac_fn_c_check_member ()
2615{
2616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2618$as_echo_n "checking for $2.$3... " >&6; }
2619if eval \${$4+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h.  */
2624$5
2625int
2626main ()
2627{
2628static $2 ac_aggr;
2629if (ac_aggr.$3)
2630return 0;
2631  ;
2632  return 0;
2633}
2634_ACEOF
2635if ac_fn_c_try_compile "$LINENO"; then :
2636  eval "$4=yes"
2637else
2638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h.  */
2640$5
2641int
2642main ()
2643{
2644static $2 ac_aggr;
2645if (sizeof ac_aggr.$3)
2646return 0;
2647  ;
2648  return 0;
2649}
2650_ACEOF
2651if ac_fn_c_try_compile "$LINENO"; then :
2652  eval "$4=yes"
2653else
2654  eval "$4=no"
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659fi
2660eval ac_res=\$$4
2661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662$as_echo "$ac_res" >&6; }
2663  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664
2665} # ac_fn_c_check_member
2666
2667# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2668# ---------------------------------------------
2669# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2670# accordingly.
2671ac_fn_c_check_decl ()
2672{
2673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674  as_decl_name=`echo $2|sed 's/ *(.*//'`
2675  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2677$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2678if eval \${$3+:} false; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h.  */
2683$4
2684int
2685main ()
2686{
2687#ifndef $as_decl_name
2688#ifdef __cplusplus
2689  (void) $as_decl_use;
2690#else
2691  (void) $as_decl_name;
2692#endif
2693#endif
2694
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699if ac_fn_c_try_compile "$LINENO"; then :
2700  eval "$3=yes"
2701else
2702  eval "$3=no"
2703fi
2704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705fi
2706eval ac_res=\$$3
2707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708$as_echo "$ac_res" >&6; }
2709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710
2711} # ac_fn_c_check_decl
2712
2713# ac_fn_c_find_intX_t LINENO BITS VAR
2714# -----------------------------------
2715# Finds a signed integer type with width BITS, setting cache variable VAR
2716# accordingly.
2717ac_fn_c_find_intX_t ()
2718{
2719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2721$as_echo_n "checking for int$2_t... " >&6; }
2722if eval \${$3+:} false; then :
2723  $as_echo_n "(cached) " >&6
2724else
2725  eval "$3=no"
2726     # Order is important - never check a type that is potentially smaller
2727     # than half of the expected target width.
2728     for ac_type in int$2_t 'int' 'long int' \
2729	 'long long int' 'short int' 'signed char'; do
2730       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731/* end confdefs.h.  */
2732$ac_includes_default
2733	     enum { N = $2 / 2 - 1 };
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2738test_array [0] = 0;
2739return test_array [0];
2740
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745if ac_fn_c_try_compile "$LINENO"; then :
2746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747/* end confdefs.h.  */
2748$ac_includes_default
2749	        enum { N = $2 / 2 - 1 };
2750int
2751main ()
2752{
2753static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2754		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2755test_array [0] = 0;
2756return test_array [0];
2757
2758  ;
2759  return 0;
2760}
2761_ACEOF
2762if ac_fn_c_try_compile "$LINENO"; then :
2763
2764else
2765  case $ac_type in #(
2766  int$2_t) :
2767    eval "$3=yes" ;; #(
2768  *) :
2769    eval "$3=\$ac_type" ;;
2770esac
2771fi
2772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773fi
2774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775       if eval test \"x\$"$3"\" = x"no"; then :
2776
2777else
2778  break
2779fi
2780     done
2781fi
2782eval ac_res=\$$3
2783	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2784$as_echo "$ac_res" >&6; }
2785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2786
2787} # ac_fn_c_find_intX_t
2788
2789# ac_fn_c_find_uintX_t LINENO BITS VAR
2790# ------------------------------------
2791# Finds an unsigned integer type with width BITS, setting cache variable VAR
2792# accordingly.
2793ac_fn_c_find_uintX_t ()
2794{
2795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2797$as_echo_n "checking for uint$2_t... " >&6; }
2798if eval \${$3+:} false; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  eval "$3=no"
2802     # Order is important - never check a type that is potentially smaller
2803     # than half of the expected target width.
2804     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2805	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2806       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h.  */
2808$ac_includes_default
2809int
2810main ()
2811{
2812static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2813test_array [0] = 0;
2814return test_array [0];
2815
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820if ac_fn_c_try_compile "$LINENO"; then :
2821  case $ac_type in #(
2822  uint$2_t) :
2823    eval "$3=yes" ;; #(
2824  *) :
2825    eval "$3=\$ac_type" ;;
2826esac
2827fi
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829       if eval test \"x\$"$3"\" = x"no"; then :
2830
2831else
2832  break
2833fi
2834     done
2835fi
2836eval ac_res=\$$3
2837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2838$as_echo "$ac_res" >&6; }
2839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840
2841} # ac_fn_c_find_uintX_t
2842
2843# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2844# --------------------------------------------
2845# Tries to find the compile-time value of EXPR in a program that includes
2846# INCLUDES, setting VAR accordingly. Returns whether the value could be
2847# computed
2848ac_fn_c_compute_int ()
2849{
2850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851  if test "$cross_compiling" = yes; then
2852    # Depending upon the size, compute the lo and hi bounds.
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h.  */
2855$4
2856int
2857main ()
2858{
2859static int test_array [1 - 2 * !(($2) >= 0)];
2860test_array [0] = 0;
2861return test_array [0];
2862
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868  ac_lo=0 ac_mid=0
2869  while :; do
2870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h.  */
2872$4
2873int
2874main ()
2875{
2876static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2877test_array [0] = 0;
2878return test_array [0];
2879
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884if ac_fn_c_try_compile "$LINENO"; then :
2885  ac_hi=$ac_mid; break
2886else
2887  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2888			if test $ac_lo -le $ac_mid; then
2889			  ac_lo= ac_hi=
2890			  break
2891			fi
2892			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895  done
2896else
2897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h.  */
2899$4
2900int
2901main ()
2902{
2903static int test_array [1 - 2 * !(($2) < 0)];
2904test_array [0] = 0;
2905return test_array [0];
2906
2907  ;
2908  return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_compile "$LINENO"; then :
2912  ac_hi=-1 ac_mid=-1
2913  while :; do
2914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h.  */
2916$4
2917int
2918main ()
2919{
2920static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2921test_array [0] = 0;
2922return test_array [0];
2923
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928if ac_fn_c_try_compile "$LINENO"; then :
2929  ac_lo=$ac_mid; break
2930else
2931  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2932			if test $ac_mid -le $ac_hi; then
2933			  ac_lo= ac_hi=
2934			  break
2935			fi
2936			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2937fi
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939  done
2940else
2941  ac_lo= ac_hi=
2942fi
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946# Binary search between lo and hi bounds.
2947while test "x$ac_lo" != "x$ac_hi"; do
2948  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h.  */
2951$4
2952int
2953main ()
2954{
2955static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2956test_array [0] = 0;
2957return test_array [0];
2958
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963if ac_fn_c_try_compile "$LINENO"; then :
2964  ac_hi=$ac_mid
2965else
2966  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2967fi
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969done
2970case $ac_lo in #((
2971?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2972'') ac_retval=1 ;;
2973esac
2974  else
2975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976/* end confdefs.h.  */
2977$4
2978static long int longval () { return $2; }
2979static unsigned long int ulongval () { return $2; }
2980#include <stdio.h>
2981#include <stdlib.h>
2982int
2983main ()
2984{
2985
2986  FILE *f = fopen ("conftest.val", "w");
2987  if (! f)
2988    return 1;
2989  if (($2) < 0)
2990    {
2991      long int i = longval ();
2992      if (i != ($2))
2993	return 1;
2994      fprintf (f, "%ld", i);
2995    }
2996  else
2997    {
2998      unsigned long int i = ulongval ();
2999      if (i != ($2))
3000	return 1;
3001      fprintf (f, "%lu", i);
3002    }
3003  /* Do not output a trailing newline, as this causes \r\n confusion
3004     on some platforms.  */
3005  return ferror (f) || fclose (f) != 0;
3006
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_run "$LINENO"; then :
3012  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3013else
3014  ac_retval=1
3015fi
3016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3017  conftest.$ac_objext conftest.beam conftest.$ac_ext
3018rm -f conftest.val
3019
3020  fi
3021  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3022  as_fn_set_status $ac_retval
3023
3024} # ac_fn_c_compute_int
3025
3026# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3027# ---------------------------------------------------------
3028# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3029# the include files in INCLUDES and setting the cache variable VAR
3030# accordingly.
3031ac_fn_cxx_check_header_mongrel ()
3032{
3033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3034  if eval \${$3+:} false; then :
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3036$as_echo_n "checking for $2... " >&6; }
3037if eval \${$3+:} false; then :
3038  $as_echo_n "(cached) " >&6
3039fi
3040eval ac_res=\$$3
3041	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3042$as_echo "$ac_res" >&6; }
3043else
3044  # Is the header compilable?
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3046$as_echo_n "checking $2 usability... " >&6; }
3047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048/* end confdefs.h.  */
3049$4
3050#include <$2>
3051_ACEOF
3052if ac_fn_cxx_try_compile "$LINENO"; then :
3053  ac_header_compiler=yes
3054else
3055  ac_header_compiler=no
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3059$as_echo "$ac_header_compiler" >&6; }
3060
3061# Is the header present?
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3063$as_echo_n "checking $2 presence... " >&6; }
3064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h.  */
3066#include <$2>
3067_ACEOF
3068if ac_fn_cxx_try_cpp "$LINENO"; then :
3069  ac_header_preproc=yes
3070else
3071  ac_header_preproc=no
3072fi
3073rm -f conftest.err conftest.i conftest.$ac_ext
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3075$as_echo "$ac_header_preproc" >&6; }
3076
3077# So?  What about this header?
3078case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3079  yes:no: )
3080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3081$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3083$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3084    ;;
3085  no:yes:* )
3086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3087$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3089$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3091$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3093$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3094    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3096( $as_echo "## ----------------------------------------- ##
3097## Report this to http://www.imagemagick.org ##
3098## ----------------------------------------- ##"
3099     ) | sed "s/^/$as_me: WARNING:     /" >&2
3100    ;;
3101esac
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3103$as_echo_n "checking for $2... " >&6; }
3104if eval \${$3+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  eval "$3=\$ac_header_compiler"
3108fi
3109eval ac_res=\$$3
3110	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3111$as_echo "$ac_res" >&6; }
3112fi
3113  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3114
3115} # ac_fn_cxx_check_header_mongrel
3116cat >config.log <<_ACEOF
3117This file contains any messages produced by compilers while
3118running configure, to aid debugging if configure makes a mistake.
3119
3120It was created by ImageMagick $as_me 7.0.0-0, which was
3121generated by GNU Autoconf 2.69.  Invocation command line was
3122
3123  $ $0 $@
3124
3125_ACEOF
3126exec 5>>config.log
3127{
3128cat <<_ASUNAME
3129## --------- ##
3130## Platform. ##
3131## --------- ##
3132
3133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3134uname -m = `(uname -m) 2>/dev/null || echo unknown`
3135uname -r = `(uname -r) 2>/dev/null || echo unknown`
3136uname -s = `(uname -s) 2>/dev/null || echo unknown`
3137uname -v = `(uname -v) 2>/dev/null || echo unknown`
3138
3139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3140/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3141
3142/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3143/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3145/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3146/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3147/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3148/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3149
3150_ASUNAME
3151
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155  IFS=$as_save_IFS
3156  test -z "$as_dir" && as_dir=.
3157    $as_echo "PATH: $as_dir"
3158  done
3159IFS=$as_save_IFS
3160
3161} >&5
3162
3163cat >&5 <<_ACEOF
3164
3165
3166## ----------- ##
3167## Core tests. ##
3168## ----------- ##
3169
3170_ACEOF
3171
3172
3173# Keep a trace of the command line.
3174# Strip out --no-create and --no-recursion so they do not pile up.
3175# Strip out --silent because we don't want to record it for future runs.
3176# Also quote any args containing shell meta-characters.
3177# Make two passes to allow for proper duplicate-argument suppression.
3178ac_configure_args=
3179ac_configure_args0=
3180ac_configure_args1=
3181ac_must_keep_next=false
3182for ac_pass in 1 2
3183do
3184  for ac_arg
3185  do
3186    case $ac_arg in
3187    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3188    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3189    | -silent | --silent | --silen | --sile | --sil)
3190      continue ;;
3191    *\'*)
3192      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3193    esac
3194    case $ac_pass in
3195    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3196    2)
3197      as_fn_append ac_configure_args1 " '$ac_arg'"
3198      if test $ac_must_keep_next = true; then
3199	ac_must_keep_next=false # Got value, back to normal.
3200      else
3201	case $ac_arg in
3202	  *=* | --config-cache | -C | -disable-* | --disable-* \
3203	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3204	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3205	  | -with-* | --with-* | -without-* | --without-* | --x)
3206	    case "$ac_configure_args0 " in
3207	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3208	    esac
3209	    ;;
3210	  -* ) ac_must_keep_next=true ;;
3211	esac
3212      fi
3213      as_fn_append ac_configure_args " '$ac_arg'"
3214      ;;
3215    esac
3216  done
3217done
3218{ ac_configure_args0=; unset ac_configure_args0;}
3219{ ac_configure_args1=; unset ac_configure_args1;}
3220
3221# When interrupted or exit'd, cleanup temporary files, and complete
3222# config.log.  We remove comments because anyway the quotes in there
3223# would cause problems or look ugly.
3224# WARNING: Use '\'' to represent an apostrophe within the trap.
3225# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3226trap 'exit_status=$?
3227  # Save into config.log some information that might help in debugging.
3228  {
3229    echo
3230
3231    $as_echo "## ---------------- ##
3232## Cache variables. ##
3233## ---------------- ##"
3234    echo
3235    # The following way of writing the cache mishandles newlines in values,
3236(
3237  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3238    eval ac_val=\$$ac_var
3239    case $ac_val in #(
3240    *${as_nl}*)
3241      case $ac_var in #(
3242      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3243$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3244      esac
3245      case $ac_var in #(
3246      _ | IFS | as_nl) ;; #(
3247      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3248      *) { eval $ac_var=; unset $ac_var;} ;;
3249      esac ;;
3250    esac
3251  done
3252  (set) 2>&1 |
3253    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3254    *${as_nl}ac_space=\ *)
3255      sed -n \
3256	"s/'\''/'\''\\\\'\'''\''/g;
3257	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3258      ;; #(
3259    *)
3260      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3261      ;;
3262    esac |
3263    sort
3264)
3265    echo
3266
3267    $as_echo "## ----------------- ##
3268## Output variables. ##
3269## ----------------- ##"
3270    echo
3271    for ac_var in $ac_subst_vars
3272    do
3273      eval ac_val=\$$ac_var
3274      case $ac_val in
3275      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3276      esac
3277      $as_echo "$ac_var='\''$ac_val'\''"
3278    done | sort
3279    echo
3280
3281    if test -n "$ac_subst_files"; then
3282      $as_echo "## ------------------- ##
3283## File substitutions. ##
3284## ------------------- ##"
3285      echo
3286      for ac_var in $ac_subst_files
3287      do
3288	eval ac_val=\$$ac_var
3289	case $ac_val in
3290	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3291	esac
3292	$as_echo "$ac_var='\''$ac_val'\''"
3293      done | sort
3294      echo
3295    fi
3296
3297    if test -s confdefs.h; then
3298      $as_echo "## ----------- ##
3299## confdefs.h. ##
3300## ----------- ##"
3301      echo
3302      cat confdefs.h
3303      echo
3304    fi
3305    test "$ac_signal" != 0 &&
3306      $as_echo "$as_me: caught signal $ac_signal"
3307    $as_echo "$as_me: exit $exit_status"
3308  } >&5
3309  rm -f core *.core core.conftest.* &&
3310    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3311    exit $exit_status
3312' 0
3313for ac_signal in 1 2 13 15; do
3314  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3315done
3316ac_signal=0
3317
3318# confdefs.h avoids OS command line length limits that DEFS can exceed.
3319rm -f -r conftest* confdefs.h
3320
3321$as_echo "/* confdefs.h */" > confdefs.h
3322
3323# Predefined preprocessor variables.
3324
3325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_NAME "$PACKAGE_NAME"
3327_ACEOF
3328
3329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3331_ACEOF
3332
3333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_VERSION "$PACKAGE_VERSION"
3335_ACEOF
3336
3337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_STRING "$PACKAGE_STRING"
3339_ACEOF
3340
3341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3343_ACEOF
3344
3345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_URL "$PACKAGE_URL"
3347_ACEOF
3348
3349
3350# Let the site file select an alternate cache file if it wants to.
3351# Prefer an explicitly selected file to automatically selected ones.
3352ac_site_file1=NONE
3353ac_site_file2=NONE
3354if test -n "$CONFIG_SITE"; then
3355  # We do not want a PATH search for config.site.
3356  case $CONFIG_SITE in #((
3357    -*)  ac_site_file1=./$CONFIG_SITE;;
3358    */*) ac_site_file1=$CONFIG_SITE;;
3359    *)   ac_site_file1=./$CONFIG_SITE;;
3360  esac
3361elif test "x$prefix" != xNONE; then
3362  ac_site_file1=$prefix/share/config.site
3363  ac_site_file2=$prefix/etc/config.site
3364else
3365  ac_site_file1=$ac_default_prefix/share/config.site
3366  ac_site_file2=$ac_default_prefix/etc/config.site
3367fi
3368for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3369do
3370  test "x$ac_site_file" = xNONE && continue
3371  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3372    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3373$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3374    sed 's/^/| /' "$ac_site_file" >&5
3375    . "$ac_site_file" \
3376      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378as_fn_error $? "failed to load site script $ac_site_file
3379See \`config.log' for more details" "$LINENO" 5; }
3380  fi
3381done
3382
3383if test -r "$cache_file"; then
3384  # Some versions of bash will fail to source /dev/null (special files
3385  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3386  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3387    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3388$as_echo "$as_me: loading cache $cache_file" >&6;}
3389    case $cache_file in
3390      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3391      *)                      . "./$cache_file";;
3392    esac
3393  fi
3394else
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3396$as_echo "$as_me: creating cache $cache_file" >&6;}
3397  >$cache_file
3398fi
3399
3400as_fn_append ac_header_list " stdlib.h"
3401as_fn_append ac_header_list " unistd.h"
3402as_fn_append ac_header_list " sys/param.h"
3403# Check that the precious variables saved in the cache have kept the same
3404# value.
3405ac_cache_corrupted=false
3406for ac_var in $ac_precious_vars; do
3407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3408  eval ac_new_set=\$ac_env_${ac_var}_set
3409  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3410  eval ac_new_val=\$ac_env_${ac_var}_value
3411  case $ac_old_set,$ac_new_set in
3412    set,)
3413      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3414$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3415      ac_cache_corrupted=: ;;
3416    ,set)
3417      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3418$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3419      ac_cache_corrupted=: ;;
3420    ,);;
3421    *)
3422      if test "x$ac_old_val" != "x$ac_new_val"; then
3423	# differences in whitespace do not lead to failure.
3424	ac_old_val_w=`echo x $ac_old_val`
3425	ac_new_val_w=`echo x $ac_new_val`
3426	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3427	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3428$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3429	  ac_cache_corrupted=:
3430	else
3431	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3432$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3433	  eval $ac_var=\$ac_old_val
3434	fi
3435	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3436$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3437	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3438$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3439      fi;;
3440  esac
3441  # Pass precious variables to config.status.
3442  if test "$ac_new_set" = set; then
3443    case $ac_new_val in
3444    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3445    *) ac_arg=$ac_var=$ac_new_val ;;
3446    esac
3447    case " $ac_configure_args " in
3448      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3449      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3450    esac
3451  fi
3452done
3453if $ac_cache_corrupted; then
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3457$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3458  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3459fi
3460## -------------------- ##
3461## Main body of script. ##
3462## -------------------- ##
3463
3464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472ac_aux_dir=
3473for ac_dir in config "$srcdir"/config; do
3474  if test -f "$ac_dir/install-sh"; then
3475    ac_aux_dir=$ac_dir
3476    ac_install_sh="$ac_aux_dir/install-sh -c"
3477    break
3478  elif test -f "$ac_dir/install.sh"; then
3479    ac_aux_dir=$ac_dir
3480    ac_install_sh="$ac_aux_dir/install.sh -c"
3481    break
3482  elif test -f "$ac_dir/shtool"; then
3483    ac_aux_dir=$ac_dir
3484    ac_install_sh="$ac_aux_dir/shtool install -c"
3485    break
3486  fi
3487done
3488if test -z "$ac_aux_dir"; then
3489  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3490fi
3491
3492# These three variables are undocumented and unsupported,
3493# and are intended to be withdrawn in a future Autoconf release.
3494# They can cause serious problems if a builder's source tree is in a directory
3495# whose full name contains unusual characters.
3496ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3497ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3498ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3499
3500
3501
3502
3503ac_config_headers="$ac_config_headers config/config.h"
3504
3505
3506ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
3507
3508ac_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"
3509
3510
3511#
3512# Save initial user-tunable values
3513#
3514USER_LIBS=$LIBS
3515for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3516  eval isset=\${$var+set}
3517    if test "$isset" = 'set'; then
3518        eval val=$`echo $var`
3519        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3520    fi
3521done
3522
3523
3524CONFIGURE_ARGS="$0 ${ac_configure_args}"
3525
3526
3527# Source file containing package/library versioning information.
3528. ${srcdir}/version.sh
3529
3530echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3531# Make sure we can run config.sub.
3532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3533  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3534
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3536$as_echo_n "checking build system type... " >&6; }
3537if ${ac_cv_build+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  ac_build_alias=$build_alias
3541test "x$ac_build_alias" = x &&
3542  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3543test "x$ac_build_alias" = x &&
3544  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3546  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3547
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3550$as_echo "$ac_cv_build" >&6; }
3551case $ac_cv_build in
3552*-*-*) ;;
3553*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3554esac
3555build=$ac_cv_build
3556ac_save_IFS=$IFS; IFS='-'
3557set x $ac_cv_build
3558shift
3559build_cpu=$1
3560build_vendor=$2
3561shift; shift
3562# Remember, the first character of IFS is used to create $*,
3563# except with old shells:
3564build_os=$*
3565IFS=$ac_save_IFS
3566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3567
3568
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3570$as_echo_n "checking host system type... " >&6; }
3571if ${ac_cv_host+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  if test "x$host_alias" = x; then
3575  ac_cv_host=$ac_cv_build
3576else
3577  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3578    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3579fi
3580
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3583$as_echo "$ac_cv_host" >&6; }
3584case $ac_cv_host in
3585*-*-*) ;;
3586*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3587esac
3588host=$ac_cv_host
3589ac_save_IFS=$IFS; IFS='-'
3590set x $ac_cv_host
3591shift
3592host_cpu=$1
3593host_vendor=$2
3594shift; shift
3595# Remember, the first character of IFS is used to create $*,
3596# except with old shells:
3597host_os=$*
3598IFS=$ac_save_IFS
3599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3600
3601
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3603$as_echo_n "checking target system type... " >&6; }
3604if ${ac_cv_target+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  if test "x$target_alias" = x; then
3608  ac_cv_target=$ac_cv_host
3609else
3610  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3611    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3612fi
3613
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3616$as_echo "$ac_cv_target" >&6; }
3617case $ac_cv_target in
3618*-*-*) ;;
3619*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3620esac
3621target=$ac_cv_target
3622ac_save_IFS=$IFS; IFS='-'
3623set x $ac_cv_target
3624shift
3625target_cpu=$1
3626target_vendor=$2
3627shift; shift
3628# Remember, the first character of IFS is used to create $*,
3629# except with old shells:
3630target_os=$*
3631IFS=$ac_save_IFS
3632case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3633
3634
3635# The aliases save the names the user supplied, while $host etc.
3636# will get canonicalized.
3637test -n "$target_alias" &&
3638  test "$program_prefix$program_suffix$program_transform_name" = \
3639    NONENONEs,x,x, &&
3640  program_prefix=${target_alias}-
3641
3642
3643
3644
3645
3646MAGICK_TARGET_CPU=$host_cpu
3647
3648
3649cat >>confdefs.h <<_ACEOF
3650#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3651_ACEOF
3652
3653
3654MAGICK_TARGET_VENDOR=$host_vendor
3655
3656
3657cat >>confdefs.h <<_ACEOF
3658#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3659_ACEOF
3660
3661
3662MAGICK_TARGET_OS=$host_os
3663
3664
3665cat >>confdefs.h <<_ACEOF
3666#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3667_ACEOF
3668
3669
3670
3671# Substitute versioning
3672MAGICK_MAJOR_VERSION=7
3673
3674MAGICK_MINOR_VERSION=0
3675
3676MAGICK_MICRO_VERSION=0
3677
3678MAGICK_PATCHLEVEL_VERSION=0
3679
3680MAGICK_VERSION=7.0.0-0
3681
3682MAGICK_SVN_REVISION=12369:12371M
3683
3684
3685# Substitute library versioning
3686MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3687
3688MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3689
3690
3691
3692# Ensure that make can run correctly
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3694$as_echo_n "checking whether build environment is sane... " >&6; }
3695# Reject unsafe characters in $srcdir or the absolute working directory
3696# name.  Accept space and tab only in the latter.
3697am_lf='
3698'
3699case `pwd` in
3700  *[\\\"\#\$\&\'\`$am_lf]*)
3701    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3702esac
3703case $srcdir in
3704  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3705    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3706esac
3707
3708# Do 'set' in a subshell so we don't clobber the current shell's
3709# arguments.  Must try -L first in case configure is actually a
3710# symlink; some systems play weird games with the mod time of symlinks
3711# (eg FreeBSD returns the mod time of the symlink's containing
3712# directory).
3713if (
3714   am_has_slept=no
3715   for am_try in 1 2; do
3716     echo "timestamp, slept: $am_has_slept" > conftest.file
3717     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3718     if test "$*" = "X"; then
3719	# -L didn't work.
3720	set X `ls -t "$srcdir/configure" conftest.file`
3721     fi
3722     if test "$*" != "X $srcdir/configure conftest.file" \
3723	&& test "$*" != "X conftest.file $srcdir/configure"; then
3724
3725	# If neither matched, then we have a broken ls.  This can happen
3726	# if, for instance, CONFIG_SHELL is bash and it inherits a
3727	# broken ls alias from the environment.  This has actually
3728	# happened.  Such a system could not be considered "sane".
3729	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3730  alias in your environment" "$LINENO" 5
3731     fi
3732     if test "$2" = conftest.file || test $am_try -eq 2; then
3733       break
3734     fi
3735     # Just in case.
3736     sleep 1
3737     am_has_slept=yes
3738   done
3739   test "$2" = conftest.file
3740   )
3741then
3742   # Ok.
3743   :
3744else
3745   as_fn_error $? "newly created file is older than distributed files!
3746Check your system clock" "$LINENO" 5
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749$as_echo "yes" >&6; }
3750# If we didn't sleep, we still need to ensure time stamps of config.status and
3751# generated files are strictly newer.
3752am_sleep_pid=
3753if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3754  ( sleep 1 ) &
3755  am_sleep_pid=$!
3756fi
3757
3758rm -f conftest.file
3759
3760
3761am__api_version='1.13'
3762
3763# Find a good install program.  We prefer a C program (faster),
3764# so one script is as good as another.  But avoid the broken or
3765# incompatible versions:
3766# SysV /etc/install, /usr/sbin/install
3767# SunOS /usr/etc/install
3768# IRIX /sbin/install
3769# AIX /bin/install
3770# AmigaOS /C/install, which installs bootblocks on floppy discs
3771# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3772# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3773# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3774# OS/2's system install, which has a completely different semantic
3775# ./install, which can be erroneously created by make from ./install.sh.
3776# Reject install programs that cannot install multiple files.
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3778$as_echo_n "checking for a BSD-compatible install... " >&6; }
3779if test -z "$INSTALL"; then
3780if ${ac_cv_path_install+:} false; then :
3781  $as_echo_n "(cached) " >&6
3782else
3783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786  IFS=$as_save_IFS
3787  test -z "$as_dir" && as_dir=.
3788    # Account for people who put trailing slashes in PATH elements.
3789case $as_dir/ in #((
3790  ./ | .// | /[cC]/* | \
3791  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3792  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3793  /usr/ucb/* ) ;;
3794  *)
3795    # OSF1 and SCO ODT 3.0 have their own names for install.
3796    # Don't use installbsd from OSF since it installs stuff as root
3797    # by default.
3798    for ac_prog in ginstall scoinst install; do
3799      for ac_exec_ext in '' $ac_executable_extensions; do
3800	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3801	  if test $ac_prog = install &&
3802	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803	    # AIX install.  It has an incompatible calling convention.
3804	    :
3805	  elif test $ac_prog = install &&
3806	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3807	    # program-specific install script used by HP pwplus--don't use.
3808	    :
3809	  else
3810	    rm -rf conftest.one conftest.two conftest.dir
3811	    echo one > conftest.one
3812	    echo two > conftest.two
3813	    mkdir conftest.dir
3814	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3815	      test -s conftest.one && test -s conftest.two &&
3816	      test -s conftest.dir/conftest.one &&
3817	      test -s conftest.dir/conftest.two
3818	    then
3819	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820	      break 3
3821	    fi
3822	  fi
3823	fi
3824      done
3825    done
3826    ;;
3827esac
3828
3829  done
3830IFS=$as_save_IFS
3831
3832rm -rf conftest.one conftest.two conftest.dir
3833
3834fi
3835  if test "${ac_cv_path_install+set}" = set; then
3836    INSTALL=$ac_cv_path_install
3837  else
3838    # As a last resort, use the slow shell script.  Don't cache a
3839    # value for INSTALL within a source directory, because that will
3840    # break other packages using the cache if that directory is
3841    # removed, or if the value is a relative name.
3842    INSTALL=$ac_install_sh
3843  fi
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3846$as_echo "$INSTALL" >&6; }
3847
3848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849# It thinks the first close brace ends the variable substitution.
3850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3851
3852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3853
3854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3855
3856test "$program_prefix" != NONE &&
3857  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3858# Use a double $ so make ignores it.
3859test "$program_suffix" != NONE &&
3860  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3861# Double any \ or $.
3862# By default was `s,x,x', remove it if useless.
3863ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3864program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3865
3866# expand $ac_aux_dir to an absolute path
3867am_aux_dir=`cd $ac_aux_dir && pwd`
3868
3869if test x"${MISSING+set}" != xset; then
3870  case $am_aux_dir in
3871  *\ * | *\	*)
3872    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3873  *)
3874    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3875  esac
3876fi
3877# Use eval to expand $SHELL
3878if eval "$MISSING --is-lightweight"; then
3879  am_missing_run="$MISSING "
3880else
3881  am_missing_run=
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3883$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3884fi
3885
3886if test x"${install_sh}" != xset; then
3887  case $am_aux_dir in
3888  *\ * | *\	*)
3889    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3890  *)
3891    install_sh="\${SHELL} $am_aux_dir/install-sh"
3892  esac
3893fi
3894
3895# Installed binaries are usually stripped using 'strip' when the user
3896# run "make install-strip".  However 'strip' might not be the right
3897# tool to use in cross-compilation environments, therefore Automake
3898# will honor the 'STRIP' environment variable to overrule this program.
3899if test "$cross_compiling" != no; then
3900  if test -n "$ac_tool_prefix"; then
3901  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3902set dummy ${ac_tool_prefix}strip; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if ${ac_cv_prog_STRIP+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -n "$STRIP"; then
3909  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928STRIP=$ac_cv_prog_STRIP
3929if test -n "$STRIP"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3931$as_echo "$STRIP" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938fi
3939if test -z "$ac_cv_prog_STRIP"; then
3940  ac_ct_STRIP=$STRIP
3941  # Extract the first word of "strip", so it can be a program name with args.
3942set dummy strip; ac_word=$2
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
3945if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  if test -n "$ac_ct_STRIP"; then
3949  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  test -z "$as_dir" && as_dir=.
3956    for ac_exec_ext in '' $ac_executable_extensions; do
3957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958    ac_cv_prog_ac_ct_STRIP="strip"
3959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960    break 2
3961  fi
3962done
3963  done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3969if test -n "$ac_ct_STRIP"; then
3970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3971$as_echo "$ac_ct_STRIP" >&6; }
3972else
3973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
3975fi
3976
3977  if test "x$ac_ct_STRIP" = x; then
3978    STRIP=":"
3979  else
3980    case $cross_compiling:$ac_tool_warned in
3981yes:)
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984ac_tool_warned=yes ;;
3985esac
3986    STRIP=$ac_ct_STRIP
3987  fi
3988else
3989  STRIP="$ac_cv_prog_STRIP"
3990fi
3991
3992fi
3993INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3996$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3997if test -z "$MKDIR_P"; then
3998  if ${ac_cv_path_mkdir+:} false; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4003do
4004  IFS=$as_save_IFS
4005  test -z "$as_dir" && as_dir=.
4006    for ac_prog in mkdir gmkdir; do
4007	 for ac_exec_ext in '' $ac_executable_extensions; do
4008	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4009	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4010	     'mkdir (GNU coreutils) '* | \
4011	     'mkdir (coreutils) '* | \
4012	     'mkdir (fileutils) '4.1*)
4013	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4014	       break 3;;
4015	   esac
4016	 done
4017       done
4018  done
4019IFS=$as_save_IFS
4020
4021fi
4022
4023  test -d ./--version && rmdir ./--version
4024  if test "${ac_cv_path_mkdir+set}" = set; then
4025    MKDIR_P="$ac_cv_path_mkdir -p"
4026  else
4027    # As a last resort, use the slow shell script.  Don't cache a
4028    # value for MKDIR_P within a source directory, because that will
4029    # break other packages using the cache if that directory is
4030    # removed, or if the value is a relative name.
4031    MKDIR_P="$ac_install_sh -d"
4032  fi
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4035$as_echo "$MKDIR_P" >&6; }
4036
4037for ac_prog in gawk mawk nawk awk
4038do
4039  # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if ${ac_cv_prog_AWK+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  if test -n "$AWK"; then
4047  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_AWK="$ac_prog"
4057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076  test -n "$AWK" && break
4077done
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4080$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4081set x ${MAKE-make}
4082ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4083if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  cat >conftest.make <<\_ACEOF
4087SHELL = /bin/sh
4088all:
4089	@echo '@@@%%%=$(MAKE)=@@@%%%'
4090_ACEOF
4091# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4092case `${MAKE-make} -f conftest.make 2>/dev/null` in
4093  *@@@%%%=?*=@@@%%%*)
4094    eval ac_cv_prog_make_${ac_make}_set=yes;;
4095  *)
4096    eval ac_cv_prog_make_${ac_make}_set=no;;
4097esac
4098rm -f conftest.make
4099fi
4100if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
4103  SET_MAKE=
4104else
4105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
4107  SET_MAKE="MAKE=${MAKE-make}"
4108fi
4109
4110rm -rf .tst 2>/dev/null
4111mkdir .tst 2>/dev/null
4112if test -d .tst; then
4113  am__leading_dot=.
4114else
4115  am__leading_dot=_
4116fi
4117rmdir .tst 2>/dev/null
4118
4119# Check whether --enable-silent-rules was given.
4120if test "${enable_silent_rules+set}" = set; then :
4121  enableval=$enable_silent_rules;
4122fi
4123
4124case $enable_silent_rules in # (((
4125  yes) AM_DEFAULT_VERBOSITY=0;;
4126   no) AM_DEFAULT_VERBOSITY=1;;
4127    *) AM_DEFAULT_VERBOSITY=1;;
4128esac
4129am_make=${MAKE-make}
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4131$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4132if ${am_cv_make_support_nested_variables+:} false; then :
4133  $as_echo_n "(cached) " >&6
4134else
4135  if $as_echo 'TRUE=$(BAR$(V))
4136BAR0=false
4137BAR1=true
4138V=1
4139am__doit:
4140	@$(TRUE)
4141.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4142  am_cv_make_support_nested_variables=yes
4143else
4144  am_cv_make_support_nested_variables=no
4145fi
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4148$as_echo "$am_cv_make_support_nested_variables" >&6; }
4149if test $am_cv_make_support_nested_variables = yes; then
4150    AM_V='$(V)'
4151  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4152else
4153  AM_V=$AM_DEFAULT_VERBOSITY
4154  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4155fi
4156AM_BACKSLASH='\'
4157
4158if test "`cd $srcdir && pwd`" != "`pwd`"; then
4159  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4160  # is not polluted with repeated "-I."
4161  am__isrc=' -I$(srcdir)'
4162  # test to see if srcdir already configured
4163  if test -f $srcdir/config.status; then
4164    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4165  fi
4166fi
4167
4168# test whether we have cygpath
4169if test -z "$CYGPATH_W"; then
4170  if (cygpath --version) >/dev/null 2>/dev/null; then
4171    CYGPATH_W='cygpath -w'
4172  else
4173    CYGPATH_W=echo
4174  fi
4175fi
4176
4177
4178# Define the identity of the package.
4179 PACKAGE='ImageMagick'
4180 VERSION='7.0.0-0'
4181
4182
4183cat >>confdefs.h <<_ACEOF
4184#define PACKAGE "$PACKAGE"
4185_ACEOF
4186
4187
4188cat >>confdefs.h <<_ACEOF
4189#define VERSION "$VERSION"
4190_ACEOF
4191
4192# Some tools Automake needs.
4193
4194ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4195
4196
4197AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4198
4199
4200AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4201
4202
4203AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4204
4205
4206MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4207
4208# For better backward compatibility.  To be removed once Automake 1.9.x
4209# dies out for good.  For more background, see:
4210# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4212mkdir_p='$(MKDIR_P)'
4213
4214# We need awk for the "check" target.  The system "awk" is bad on
4215# some platforms.
4216# Always define AMTAR for backward compatibility.  Yes, it's still used
4217# in the wild :-(  We should find a proper way to deprecate it ...
4218AMTAR='$${TAR-tar}'
4219
4220
4221# We'll loop over all known methods to create a tar archive until one works.
4222_am_tools='gnutar  pax cpio none'
4223
4224am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4225
4226
4227
4228
4229
4230
4231
4232# Enable support for silent build rules
4233# Check whether --enable-silent-rules was given.
4234if test "${enable_silent_rules+set}" = set; then :
4235  enableval=$enable_silent_rules;
4236fi
4237
4238case $enable_silent_rules in # (((
4239  yes) AM_DEFAULT_VERBOSITY=0;;
4240   no) AM_DEFAULT_VERBOSITY=1;;
4241    *) AM_DEFAULT_VERBOSITY=0;;
4242esac
4243am_make=${MAKE-make}
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4245$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4246if ${am_cv_make_support_nested_variables+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if $as_echo 'TRUE=$(BAR$(V))
4250BAR0=false
4251BAR1=true
4252V=1
4253am__doit:
4254	@$(TRUE)
4255.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4256  am_cv_make_support_nested_variables=yes
4257else
4258  am_cv_make_support_nested_variables=no
4259fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4262$as_echo "$am_cv_make_support_nested_variables" >&6; }
4263if test $am_cv_make_support_nested_variables = yes; then
4264    AM_V='$(V)'
4265  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4266else
4267  AM_V=$AM_DEFAULT_VERBOSITY
4268  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4269fi
4270AM_BACKSLASH='\'
4271
4272
4273MAGICK_LIB_VERSION="0x"
4274if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4275  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4276fi
4277MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4278if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4279  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4280fi
4281MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4282if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4283  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4284fi
4285MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4286
4287
4288# Definition used to define MagickLibVersionText in version.h
4289MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4290
4291
4292# Definition used to define MagickLibVersionNumber in version.h
4293MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4294
4295
4296# Regenerate config.status if ChangeLog or version.sh is updated.
4297CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4298
4299
4300PERLMAINCC=$CC
4301
4302MAGICK_CFLAGS=''
4303MAGICK_CPPFLAGS=$CPPFLAGS_USER
4304MAGICK_PCFLAGS=$CPPFLAGS_USER
4305MAGICK_LDFLAGS=''
4306MAGICK_LIBS=''
4307MAGICK_FEATURES=''
4308
4309#
4310# Evaluate shell variable equivalents to Makefile directory variables
4311#
4312if test "x$prefix" = xNONE; then
4313    prefix=$ac_default_prefix
4314fi
4315# Let make expand exec_prefix.
4316if test "x$exec_prefix" = xNONE; then
4317    exec_prefix='${prefix}'
4318fi
4319
4320#
4321eval "eval PREFIX_DIR=${prefix}"
4322
4323eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4324
4325eval "eval BIN_DIR=$bindir"
4326
4327eval "eval SBIN_DIR=$sbindir"
4328
4329eval "eval LIBEXEC_DIR=$libexecdir"
4330
4331eval "eval DATA_DIR=$datadir"
4332
4333eval "eval DOC_DIR=$datadir/doc"
4334
4335eval "eval SYSCONF_DIR=$sysconfdir"
4336
4337eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4338
4339eval "eval LOCALSTATE_DIR=$localstatedir"
4340
4341eval "eval LIB_DIR=$libdir"
4342
4343eval "eval INCLUDE_DIR=$includedir"
4344
4345eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4346
4347eval "eval INFO_DIR=$infodir"
4348
4349eval "eval MAN_DIR=$mandir"
4350
4351
4352# Get full paths to source and build directories
4353srcdirfull="`cd $srcdir && pwd`"
4354builddir="`pwd`"
4355
4356#
4357# Compute variables useful for running uninstalled software.
4358#
4359MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4360MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4361MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4362MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4363DIRSEP=':'
4364case "${build_os}" in
4365    mingw* )
4366        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4367        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4368        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4369        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4370        DIRSEP=';'
4371    ;;
4372esac
4373case "${host_os}" in
4374  mingw* )
4375    DIRSEP=';'
4376    ;;
4377esac
4378
4379
4380
4381
4382
4383
4384
4385#
4386# Enable OS features.
4387#
4388DEPDIR="${am__leading_dot}deps"
4389
4390ac_config_commands="$ac_config_commands depfiles"
4391
4392
4393am_make=${MAKE-make}
4394cat > confinc << 'END'
4395am__doit:
4396	@echo this is the am__doit target
4397.PHONY: am__doit
4398END
4399# If we don't find an include directive, just comment out the code.
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4401$as_echo_n "checking for style of include used by $am_make... " >&6; }
4402am__include="#"
4403am__quote=
4404_am_result=none
4405# First try GNU make style include.
4406echo "include confinc" > confmf
4407# Ignore all kinds of additional output from 'make'.
4408case `$am_make -s -f confmf 2> /dev/null` in #(
4409*the\ am__doit\ target*)
4410  am__include=include
4411  am__quote=
4412  _am_result=GNU
4413  ;;
4414esac
4415# Now try BSD make style include.
4416if test "$am__include" = "#"; then
4417   echo '.include "confinc"' > confmf
4418   case `$am_make -s -f confmf 2> /dev/null` in #(
4419   *the\ am__doit\ target*)
4420     am__include=.include
4421     am__quote="\""
4422     _am_result=BSD
4423     ;;
4424   esac
4425fi
4426
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4429$as_echo "$_am_result" >&6; }
4430rm -f confinc confmf
4431
4432# Check whether --enable-dependency-tracking was given.
4433if test "${enable_dependency_tracking+set}" = set; then :
4434  enableval=$enable_dependency_tracking;
4435fi
4436
4437if test "x$enable_dependency_tracking" != xno; then
4438  am_depcomp="$ac_aux_dir/depcomp"
4439  AMDEPBACKSLASH='\'
4440  am__nodep='_no'
4441fi
4442 if test "x$enable_dependency_tracking" != xno; then
4443  AMDEP_TRUE=
4444  AMDEP_FALSE='#'
4445else
4446  AMDEP_TRUE='#'
4447  AMDEP_FALSE=
4448fi
4449
4450
4451ac_ext=c
4452ac_cpp='$CPP $CPPFLAGS'
4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456if test -n "$ac_tool_prefix"; then
4457  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4458set dummy ${ac_tool_prefix}gcc; ac_word=$2
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460$as_echo_n "checking for $ac_word... " >&6; }
4461if ${ac_cv_prog_CC+:} false; then :
4462  $as_echo_n "(cached) " >&6
4463else
4464  if test -n "$CC"; then
4465  ac_cv_prog_CC="$CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476    break 2
4477  fi
4478done
4479  done
4480IFS=$as_save_IFS
4481
4482fi
4483fi
4484CC=$ac_cv_prog_CC
4485if test -n "$CC"; then
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4487$as_echo "$CC" >&6; }
4488else
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$ac_cv_prog_CC"; then
4496  ac_ct_CC=$CC
4497  # Extract the first word of "gcc", so it can be a program name with args.
4498set dummy gcc; ac_word=$2
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500$as_echo_n "checking for $ac_word... " >&6; }
4501if ${ac_cv_prog_ac_ct_CC+:} false; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  if test -n "$ac_ct_CC"; then
4505  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510  IFS=$as_save_IFS
4511  test -z "$as_dir" && as_dir=.
4512    for ac_exec_ext in '' $ac_executable_extensions; do
4513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514    ac_cv_prog_ac_ct_CC="gcc"
4515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516    break 2
4517  fi
4518done
4519  done
4520IFS=$as_save_IFS
4521
4522fi
4523fi
4524ac_ct_CC=$ac_cv_prog_ac_ct_CC
4525if test -n "$ac_ct_CC"; then
4526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4527$as_echo "$ac_ct_CC" >&6; }
4528else
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531fi
4532
4533  if test "x$ac_ct_CC" = x; then
4534    CC=""
4535  else
4536    case $cross_compiling:$ac_tool_warned in
4537yes:)
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4540ac_tool_warned=yes ;;
4541esac
4542    CC=$ac_ct_CC
4543  fi
4544else
4545  CC="$ac_cv_prog_CC"
4546fi
4547
4548if test -z "$CC"; then
4549          if test -n "$ac_tool_prefix"; then
4550    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4551set dummy ${ac_tool_prefix}cc; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if ${ac_cv_prog_CC+:} false; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test -n "$CC"; then
4558  ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565    for ac_exec_ext in '' $ac_executable_extensions; do
4566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567    ac_cv_prog_CC="${ac_tool_prefix}cc"
4568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572  done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4580$as_echo "$CC" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586
4587  fi
4588fi
4589if test -z "$CC"; then
4590  # Extract the first word of "cc", so it can be a program name with args.
4591set dummy cc; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_CC+:} false; then :
4595  $as_echo_n "(cached) " >&6
4596else
4597  if test -n "$CC"; then
4598  ac_cv_prog_CC="$CC" # Let the user override the test.
4599else
4600  ac_prog_rejected=no
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604  IFS=$as_save_IFS
4605  test -z "$as_dir" && as_dir=.
4606    for ac_exec_ext in '' $ac_executable_extensions; do
4607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4609       ac_prog_rejected=yes
4610       continue
4611     fi
4612    ac_cv_prog_CC="cc"
4613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617  done
4618IFS=$as_save_IFS
4619
4620if test $ac_prog_rejected = yes; then
4621  # We found a bogon in the path, so make sure we never use it.
4622  set dummy $ac_cv_prog_CC
4623  shift
4624  if test $# != 0; then
4625    # We chose a different compiler from the bogus one.
4626    # However, it has the same basename, so the bogon will be chosen
4627    # first if we set CC to just the basename; use the full file name.
4628    shift
4629    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4630  fi
4631fi
4632fi
4633fi
4634CC=$ac_cv_prog_CC
4635if test -n "$CC"; then
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4637$as_echo "$CC" >&6; }
4638else
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$CC"; then
4646  if test -n "$ac_tool_prefix"; then
4647  for ac_prog in cl.exe
4648  do
4649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if ${ac_cv_prog_CC+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656  if test -n "$CC"; then
4657  ac_cv_prog_CC="$CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664    for ac_exec_ext in '' $ac_executable_extensions; do
4665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671  done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676CC=$ac_cv_prog_CC
4677if test -n "$CC"; then
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4679$as_echo "$CC" >&6; }
4680else
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
4684
4685
4686    test -n "$CC" && break
4687  done
4688fi
4689if test -z "$CC"; then
4690  ac_ct_CC=$CC
4691  for ac_prog in cl.exe
4692do
4693  # Extract the first word of "$ac_prog", so it can be a program name with args.
4694set dummy $ac_prog; ac_word=$2
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696$as_echo_n "checking for $ac_word... " >&6; }
4697if ${ac_cv_prog_ac_ct_CC+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  if test -n "$ac_ct_CC"; then
4701  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708    for ac_exec_ext in '' $ac_executable_extensions; do
4709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710    ac_cv_prog_ac_ct_CC="$ac_prog"
4711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715  done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_CC=$ac_cv_prog_ac_ct_CC
4721if test -n "$ac_ct_CC"; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4723$as_echo "$ac_ct_CC" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727fi
4728
4729
4730  test -n "$ac_ct_CC" && break
4731done
4732
4733  if test "x$ac_ct_CC" = x; then
4734    CC=""
4735  else
4736    case $cross_compiling:$ac_tool_warned in
4737yes:)
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740ac_tool_warned=yes ;;
4741esac
4742    CC=$ac_ct_CC
4743  fi
4744fi
4745
4746fi
4747
4748
4749test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751as_fn_error $? "no acceptable C compiler found in \$PATH
4752See \`config.log' for more details" "$LINENO" 5; }
4753
4754# Provide some information about the compiler.
4755$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4756set X $ac_compile
4757ac_compiler=$2
4758for ac_option in --version -v -V -qversion; do
4759  { { ac_try="$ac_compiler $ac_option >&5"
4760case "(($ac_try" in
4761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762  *) ac_try_echo=$ac_try;;
4763esac
4764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4765$as_echo "$ac_try_echo"; } >&5
4766  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4767  ac_status=$?
4768  if test -s conftest.err; then
4769    sed '10a\
4770... rest of stderr output deleted ...
4771         10q' conftest.err >conftest.er1
4772    cat conftest.er1 >&5
4773  fi
4774  rm -f conftest.er1 conftest.err
4775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4776  test $ac_status = 0; }
4777done
4778
4779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781
4782int
4783main ()
4784{
4785
4786  ;
4787  return 0;
4788}
4789_ACEOF
4790ac_clean_files_save=$ac_clean_files
4791ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4792# Try to create an executable without -o first, disregard a.out.
4793# It will help us diagnose broken compilers, and finding out an intuition
4794# of exeext.
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4796$as_echo_n "checking whether the C compiler works... " >&6; }
4797ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4798
4799# The possible output files:
4800ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4801
4802ac_rmfiles=
4803for ac_file in $ac_files
4804do
4805  case $ac_file in
4806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4807    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4808  esac
4809done
4810rm -f $ac_rmfiles
4811
4812if { { ac_try="$ac_link_default"
4813case "(($ac_try" in
4814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815  *) ac_try_echo=$ac_try;;
4816esac
4817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4818$as_echo "$ac_try_echo"; } >&5
4819  (eval "$ac_link_default") 2>&5
4820  ac_status=$?
4821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4822  test $ac_status = 0; }; then :
4823  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4824# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4825# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4826# so that the user can short-circuit this test for compilers unknown to
4827# Autoconf.
4828for ac_file in $ac_files ''
4829do
4830  test -f "$ac_file" || continue
4831  case $ac_file in
4832    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4833	;;
4834    [ab].out )
4835	# We found the default executable, but exeext='' is most
4836	# certainly right.
4837	break;;
4838    *.* )
4839	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4840	then :; else
4841	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4842	fi
4843	# We set ac_cv_exeext here because the later test for it is not
4844	# safe: cross compilers may not add the suffix if given an `-o'
4845	# argument, so we may need to know it at that point already.
4846	# Even if this section looks crufty: it has the advantage of
4847	# actually working.
4848	break;;
4849    * )
4850	break;;
4851  esac
4852done
4853test "$ac_cv_exeext" = no && ac_cv_exeext=
4854
4855else
4856  ac_file=''
4857fi
4858if test -z "$ac_file"; then :
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861$as_echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866as_fn_error 77 "C compiler cannot create executables
4867See \`config.log' for more details" "$LINENO" 5; }
4868else
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4870$as_echo "yes" >&6; }
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4873$as_echo_n "checking for C compiler default output file name... " >&6; }
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4875$as_echo "$ac_file" >&6; }
4876ac_exeext=$ac_cv_exeext
4877
4878rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4879ac_clean_files=$ac_clean_files_save
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4881$as_echo_n "checking for suffix of executables... " >&6; }
4882if { { ac_try="$ac_link"
4883case "(($ac_try" in
4884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885  *) ac_try_echo=$ac_try;;
4886esac
4887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888$as_echo "$ac_try_echo"; } >&5
4889  (eval "$ac_link") 2>&5
4890  ac_status=$?
4891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892  test $ac_status = 0; }; then :
4893  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4894# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4895# work properly (i.e., refer to `conftest.exe'), while it won't with
4896# `rm'.
4897for ac_file in conftest.exe conftest conftest.*; do
4898  test -f "$ac_file" || continue
4899  case $ac_file in
4900    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4901    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4902	  break;;
4903    * ) break;;
4904  esac
4905done
4906else
4907  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4909as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4910See \`config.log' for more details" "$LINENO" 5; }
4911fi
4912rm -f conftest conftest$ac_cv_exeext
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4914$as_echo "$ac_cv_exeext" >&6; }
4915
4916rm -f conftest.$ac_ext
4917EXEEXT=$ac_cv_exeext
4918ac_exeext=$EXEEXT
4919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h.  */
4921#include <stdio.h>
4922int
4923main ()
4924{
4925FILE *f = fopen ("conftest.out", "w");
4926 return ferror (f) || fclose (f) != 0;
4927
4928  ;
4929  return 0;
4930}
4931_ACEOF
4932ac_clean_files="$ac_clean_files conftest.out"
4933# Check that the compiler produces executables we can run.  If not, either
4934# the compiler is broken, or we cross compile.
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4936$as_echo_n "checking whether we are cross compiling... " >&6; }
4937if test "$cross_compiling" != yes; then
4938  { { ac_try="$ac_link"
4939case "(($ac_try" in
4940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941  *) ac_try_echo=$ac_try;;
4942esac
4943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
4945  (eval "$ac_link") 2>&5
4946  ac_status=$?
4947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948  test $ac_status = 0; }
4949  if { ac_try='./conftest$ac_cv_exeext'
4950  { { case "(($ac_try" in
4951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952  *) ac_try_echo=$ac_try;;
4953esac
4954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955$as_echo "$ac_try_echo"; } >&5
4956  (eval "$ac_try") 2>&5
4957  ac_status=$?
4958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959  test $ac_status = 0; }; }; then
4960    cross_compiling=no
4961  else
4962    if test "$cross_compiling" = maybe; then
4963	cross_compiling=yes
4964    else
4965	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4967as_fn_error $? "cannot run C compiled programs.
4968If you meant to cross compile, use \`--host'.
4969See \`config.log' for more details" "$LINENO" 5; }
4970    fi
4971  fi
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4974$as_echo "$cross_compiling" >&6; }
4975
4976rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4977ac_clean_files=$ac_clean_files_save
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4979$as_echo_n "checking for suffix of object files... " >&6; }
4980if ${ac_cv_objext+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985
4986int
4987main ()
4988{
4989
4990  ;
4991  return 0;
4992}
4993_ACEOF
4994rm -f conftest.o conftest.obj
4995if { { ac_try="$ac_compile"
4996case "(($ac_try" in
4997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998  *) ac_try_echo=$ac_try;;
4999esac
5000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5001$as_echo "$ac_try_echo"; } >&5
5002  (eval "$ac_compile") 2>&5
5003  ac_status=$?
5004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5005  test $ac_status = 0; }; then :
5006  for ac_file in conftest.o conftest.obj conftest.*; do
5007  test -f "$ac_file" || continue;
5008  case $ac_file in
5009    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5010    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5011       break;;
5012  esac
5013done
5014else
5015  $as_echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5020as_fn_error $? "cannot compute suffix of object files: cannot compile
5021See \`config.log' for more details" "$LINENO" 5; }
5022fi
5023rm -f conftest.$ac_cv_objext conftest.$ac_ext
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5026$as_echo "$ac_cv_objext" >&6; }
5027OBJEXT=$ac_cv_objext
5028ac_objext=$OBJEXT
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5030$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5031if ${ac_cv_c_compiler_gnu+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h.  */
5036
5037int
5038main ()
5039{
5040#ifndef __GNUC__
5041       choke me
5042#endif
5043
5044  ;
5045  return 0;
5046}
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"; then :
5049  ac_compiler_gnu=yes
5050else
5051  ac_compiler_gnu=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054ac_cv_c_compiler_gnu=$ac_compiler_gnu
5055
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5058$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5059if test $ac_compiler_gnu = yes; then
5060  GCC=yes
5061else
5062  GCC=
5063fi
5064ac_test_CFLAGS=${CFLAGS+set}
5065ac_save_CFLAGS=$CFLAGS
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5067$as_echo_n "checking whether $CC accepts -g... " >&6; }
5068if ${ac_cv_prog_cc_g+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  ac_save_c_werror_flag=$ac_c_werror_flag
5072   ac_c_werror_flag=yes
5073   ac_cv_prog_cc_g=no
5074   CFLAGS="-g"
5075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077
5078int
5079main ()
5080{
5081
5082  ;
5083  return 0;
5084}
5085_ACEOF
5086if ac_fn_c_try_compile "$LINENO"; then :
5087  ac_cv_prog_cc_g=yes
5088else
5089  CFLAGS=""
5090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h.  */
5092
5093int
5094main ()
5095{
5096
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"; then :
5102
5103else
5104  ac_c_werror_flag=$ac_save_c_werror_flag
5105	 CFLAGS="-g"
5106	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108
5109int
5110main ()
5111{
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117if ac_fn_c_try_compile "$LINENO"; then :
5118  ac_cv_prog_cc_g=yes
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123fi
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125   ac_c_werror_flag=$ac_save_c_werror_flag
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5128$as_echo "$ac_cv_prog_cc_g" >&6; }
5129if test "$ac_test_CFLAGS" = set; then
5130  CFLAGS=$ac_save_CFLAGS
5131elif test $ac_cv_prog_cc_g = yes; then
5132  if test "$GCC" = yes; then
5133    CFLAGS="-g -O2"
5134  else
5135    CFLAGS="-g"
5136  fi
5137else
5138  if test "$GCC" = yes; then
5139    CFLAGS="-O2"
5140  else
5141    CFLAGS=
5142  fi
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5145$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5146if ${ac_cv_prog_cc_c89+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  ac_cv_prog_cc_c89=no
5150ac_save_CC=$CC
5151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153#include <stdarg.h>
5154#include <stdio.h>
5155struct stat;
5156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5157struct buf { int x; };
5158FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159static char *e (p, i)
5160     char **p;
5161     int i;
5162{
5163  return p[i];
5164}
5165static char *f (char * (*g) (char **, int), char **p, ...)
5166{
5167  char *s;
5168  va_list v;
5169  va_start (v,p);
5170  s = g (p, va_arg (v,int));
5171  va_end (v);
5172  return s;
5173}
5174
5175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5176   function prototypes and stuff, but not '\xHH' hex character constants.
5177   These don't provoke an error unfortunately, instead are silently treated
5178   as 'x'.  The following induces an error, until -std is added to get
5179   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5180   array size at least.  It's necessary to write '\x00'==0 to get something
5181   that's true only with -std.  */
5182int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5183
5184/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185   inside strings and character constants.  */
5186#define FOO(x) 'x'
5187int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5188
5189int test (int i, double x);
5190struct s1 {int (*f) (int a);};
5191struct s2 {int (*f) (double a);};
5192int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5193int argc;
5194char **argv;
5195int
5196main ()
5197{
5198return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5199  ;
5200  return 0;
5201}
5202_ACEOF
5203for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5205do
5206  CC="$ac_save_CC $ac_arg"
5207  if ac_fn_c_try_compile "$LINENO"; then :
5208  ac_cv_prog_cc_c89=$ac_arg
5209fi
5210rm -f core conftest.err conftest.$ac_objext
5211  test "x$ac_cv_prog_cc_c89" != "xno" && break
5212done
5213rm -f conftest.$ac_ext
5214CC=$ac_save_CC
5215
5216fi
5217# AC_CACHE_VAL
5218case "x$ac_cv_prog_cc_c89" in
5219  x)
5220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5221$as_echo "none needed" >&6; } ;;
5222  xno)
5223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5224$as_echo "unsupported" >&6; } ;;
5225  *)
5226    CC="$CC $ac_cv_prog_cc_c89"
5227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5229esac
5230if test "x$ac_cv_prog_cc_c89" != xno; then :
5231
5232fi
5233
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240depcc="$CC"   am_compiler_list=
5241
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5243$as_echo_n "checking dependency style of $depcc... " >&6; }
5244if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5248  # We make a subdir and do the tests there.  Otherwise we can end up
5249  # making bogus files that we don't know about and never remove.  For
5250  # instance it was reported that on HP-UX the gcc test will end up
5251  # making a dummy file named 'D' -- because '-MD' means "put the output
5252  # in D".
5253  rm -rf conftest.dir
5254  mkdir conftest.dir
5255  # Copy depcomp to subdir because otherwise we won't find it if we're
5256  # using a relative directory.
5257  cp "$am_depcomp" conftest.dir
5258  cd conftest.dir
5259  # We will build objects and dependencies in a subdirectory because
5260  # it helps to detect inapplicable dependency modes.  For instance
5261  # both Tru64's cc and ICC support -MD to output dependencies as a
5262  # side effect of compilation, but ICC will put the dependencies in
5263  # the current directory while Tru64 will put them in the object
5264  # directory.
5265  mkdir sub
5266
5267  am_cv_CC_dependencies_compiler_type=none
5268  if test "$am_compiler_list" = ""; then
5269     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5270  fi
5271  am__universal=false
5272  case " $depcc " in #(
5273     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5274     esac
5275
5276  for depmode in $am_compiler_list; do
5277    # Setup a source with many dependencies, because some compilers
5278    # like to wrap large dependency lists on column 80 (with \), and
5279    # we should not choose a depcomp mode which is confused by this.
5280    #
5281    # We need to recreate these files for each test, as the compiler may
5282    # overwrite some of them when testing with obscure command lines.
5283    # This happens at least with the AIX C compiler.
5284    : > sub/conftest.c
5285    for i in 1 2 3 4 5 6; do
5286      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5287      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5288      # Solaris 10 /bin/sh.
5289      echo '/* dummy */' > sub/conftst$i.h
5290    done
5291    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292
5293    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5294    # mode.  It turns out that the SunPro C++ compiler does not properly
5295    # handle '-M -o', and we need to detect this.  Also, some Intel
5296    # versions had trouble with output in subdirs.
5297    am__obj=sub/conftest.${OBJEXT-o}
5298    am__minus_obj="-o $am__obj"
5299    case $depmode in
5300    gcc)
5301      # This depmode causes a compiler race in universal mode.
5302      test "$am__universal" = false || continue
5303      ;;
5304    nosideeffect)
5305      # After this tag, mechanisms are not by side-effect, so they'll
5306      # only be used when explicitly requested.
5307      if test "x$enable_dependency_tracking" = xyes; then
5308	continue
5309      else
5310	break
5311      fi
5312      ;;
5313    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5314      # This compiler won't grok '-c -o', but also, the minuso test has
5315      # not run yet.  These depmodes are late enough in the game, and
5316      # so weak that their functioning should not be impacted.
5317      am__obj=conftest.${OBJEXT-o}
5318      am__minus_obj=
5319      ;;
5320    none) break ;;
5321    esac
5322    if depmode=$depmode \
5323       source=sub/conftest.c object=$am__obj \
5324       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5325       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5326         >/dev/null 2>conftest.err &&
5327       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5328       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5329       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5330       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5331      # icc doesn't choke on unknown options, it will just issue warnings
5332      # or remarks (even with -Werror).  So we grep stderr for any message
5333      # that says an option was ignored or not supported.
5334      # When given -MP, icc 7.0 and 7.1 complain thusly:
5335      #   icc: Command line warning: ignoring option '-M'; no argument required
5336      # The diagnosis changed in icc 8.0:
5337      #   icc: Command line remark: option '-MP' not supported
5338      if (grep 'ignoring option' conftest.err ||
5339          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5340        am_cv_CC_dependencies_compiler_type=$depmode
5341        break
5342      fi
5343    fi
5344  done
5345
5346  cd ..
5347  rm -rf conftest.dir
5348else
5349  am_cv_CC_dependencies_compiler_type=none
5350fi
5351
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5354$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5355CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5356
5357 if
5358  test "x$enable_dependency_tracking" != xno \
5359  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5360  am__fastdepCC_TRUE=
5361  am__fastdepCC_FALSE='#'
5362else
5363  am__fastdepCC_TRUE='#'
5364  am__fastdepCC_FALSE=
5365fi
5366
5367
5368
5369ac_ext=c
5370ac_cpp='$CPP $CPPFLAGS'
5371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5375$as_echo_n "checking how to run the C preprocessor... " >&6; }
5376# On Suns, sometimes $CPP names a directory.
5377if test -n "$CPP" && test -d "$CPP"; then
5378  CPP=
5379fi
5380if test -z "$CPP"; then
5381  if ${ac_cv_prog_CPP+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384      # Double quotes because CPP needs to be expanded
5385    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5386    do
5387      ac_preproc_ok=false
5388for ac_c_preproc_warn_flag in '' yes
5389do
5390  # Use a header file that comes with gcc, so configuring glibc
5391  # with a fresh cross-compiler works.
5392  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5393  # <limits.h> exists even on freestanding compilers.
5394  # On the NeXT, cc -E runs the code through the compiler's parser,
5395  # not just through cpp. "Syntax error" is here to catch this case.
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398#ifdef __STDC__
5399# include <limits.h>
5400#else
5401# include <assert.h>
5402#endif
5403		     Syntax error
5404_ACEOF
5405if ac_fn_c_try_cpp "$LINENO"; then :
5406
5407else
5408  # Broken: fails on valid input.
5409continue
5410fi
5411rm -f conftest.err conftest.i conftest.$ac_ext
5412
5413  # OK, works on sane cases.  Now check whether nonexistent headers
5414  # can be detected and how.
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417#include <ac_nonexistent.h>
5418_ACEOF
5419if ac_fn_c_try_cpp "$LINENO"; then :
5420  # Broken: success on invalid input.
5421continue
5422else
5423  # Passes both tests.
5424ac_preproc_ok=:
5425break
5426fi
5427rm -f conftest.err conftest.i conftest.$ac_ext
5428
5429done
5430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431rm -f conftest.i conftest.err conftest.$ac_ext
5432if $ac_preproc_ok; then :
5433  break
5434fi
5435
5436    done
5437    ac_cv_prog_CPP=$CPP
5438
5439fi
5440  CPP=$ac_cv_prog_CPP
5441else
5442  ac_cv_prog_CPP=$CPP
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5445$as_echo "$CPP" >&6; }
5446ac_preproc_ok=false
5447for ac_c_preproc_warn_flag in '' yes
5448do
5449  # Use a header file that comes with gcc, so configuring glibc
5450  # with a fresh cross-compiler works.
5451  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452  # <limits.h> exists even on freestanding compilers.
5453  # On the NeXT, cc -E runs the code through the compiler's parser,
5454  # not just through cpp. "Syntax error" is here to catch this case.
5455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457#ifdef __STDC__
5458# include <limits.h>
5459#else
5460# include <assert.h>
5461#endif
5462		     Syntax error
5463_ACEOF
5464if ac_fn_c_try_cpp "$LINENO"; then :
5465
5466else
5467  # Broken: fails on valid input.
5468continue
5469fi
5470rm -f conftest.err conftest.i conftest.$ac_ext
5471
5472  # OK, works on sane cases.  Now check whether nonexistent headers
5473  # can be detected and how.
5474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h.  */
5476#include <ac_nonexistent.h>
5477_ACEOF
5478if ac_fn_c_try_cpp "$LINENO"; then :
5479  # Broken: success on invalid input.
5480continue
5481else
5482  # Passes both tests.
5483ac_preproc_ok=:
5484break
5485fi
5486rm -f conftest.err conftest.i conftest.$ac_ext
5487
5488done
5489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490rm -f conftest.i conftest.err conftest.$ac_ext
5491if $ac_preproc_ok; then :
5492
5493else
5494  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5496as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5497See \`config.log' for more details" "$LINENO" 5; }
5498fi
5499
5500ac_ext=c
5501ac_cpp='$CPP $CPPFLAGS'
5502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5508$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5509if ${ac_cv_path_GREP+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  if test -z "$GREP"; then
5513  ac_path_GREP_found=false
5514  # Loop through the user's path and test for each of PROGNAME-LIST
5515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5517do
5518  IFS=$as_save_IFS
5519  test -z "$as_dir" && as_dir=.
5520    for ac_prog in grep ggrep; do
5521    for ac_exec_ext in '' $ac_executable_extensions; do
5522      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5523      as_fn_executable_p "$ac_path_GREP" || continue
5524# Check for GNU ac_path_GREP and select it if it is found.
5525  # Check for GNU $ac_path_GREP
5526case `"$ac_path_GREP" --version 2>&1` in
5527*GNU*)
5528  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5529*)
5530  ac_count=0
5531  $as_echo_n 0123456789 >"conftest.in"
5532  while :
5533  do
5534    cat "conftest.in" "conftest.in" >"conftest.tmp"
5535    mv "conftest.tmp" "conftest.in"
5536    cp "conftest.in" "conftest.nl"
5537    $as_echo 'GREP' >> "conftest.nl"
5538    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5539    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5540    as_fn_arith $ac_count + 1 && ac_count=$as_val
5541    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5542      # Best one so far, save it but keep looking for a better one
5543      ac_cv_path_GREP="$ac_path_GREP"
5544      ac_path_GREP_max=$ac_count
5545    fi
5546    # 10*(2^10) chars as input seems more than enough
5547    test $ac_count -gt 10 && break
5548  done
5549  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550esac
5551
5552      $ac_path_GREP_found && break 3
5553    done
5554  done
5555  done
5556IFS=$as_save_IFS
5557  if test -z "$ac_cv_path_GREP"; then
5558    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5559  fi
5560else
5561  ac_cv_path_GREP=$GREP
5562fi
5563
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5566$as_echo "$ac_cv_path_GREP" >&6; }
5567 GREP="$ac_cv_path_GREP"
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5571$as_echo_n "checking for egrep... " >&6; }
5572if ${ac_cv_path_EGREP+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5576   then ac_cv_path_EGREP="$GREP -E"
5577   else
5578     if test -z "$EGREP"; then
5579  ac_path_EGREP_found=false
5580  # Loop through the user's path and test for each of PROGNAME-LIST
5581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5583do
5584  IFS=$as_save_IFS
5585  test -z "$as_dir" && as_dir=.
5586    for ac_prog in egrep; do
5587    for ac_exec_ext in '' $ac_executable_extensions; do
5588      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5589      as_fn_executable_p "$ac_path_EGREP" || continue
5590# Check for GNU ac_path_EGREP and select it if it is found.
5591  # Check for GNU $ac_path_EGREP
5592case `"$ac_path_EGREP" --version 2>&1` in
5593*GNU*)
5594  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5595*)
5596  ac_count=0
5597  $as_echo_n 0123456789 >"conftest.in"
5598  while :
5599  do
5600    cat "conftest.in" "conftest.in" >"conftest.tmp"
5601    mv "conftest.tmp" "conftest.in"
5602    cp "conftest.in" "conftest.nl"
5603    $as_echo 'EGREP' >> "conftest.nl"
5604    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5605    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5606    as_fn_arith $ac_count + 1 && ac_count=$as_val
5607    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5608      # Best one so far, save it but keep looking for a better one
5609      ac_cv_path_EGREP="$ac_path_EGREP"
5610      ac_path_EGREP_max=$ac_count
5611    fi
5612    # 10*(2^10) chars as input seems more than enough
5613    test $ac_count -gt 10 && break
5614  done
5615  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5616esac
5617
5618      $ac_path_EGREP_found && break 3
5619    done
5620  done
5621  done
5622IFS=$as_save_IFS
5623  if test -z "$ac_cv_path_EGREP"; then
5624    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5625  fi
5626else
5627  ac_cv_path_EGREP=$EGREP
5628fi
5629
5630   fi
5631fi
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5633$as_echo "$ac_cv_path_EGREP" >&6; }
5634 EGREP="$ac_cv_path_EGREP"
5635
5636
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5638$as_echo_n "checking for ANSI C header files... " >&6; }
5639if ${ac_cv_header_stdc+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644#include <stdlib.h>
5645#include <stdarg.h>
5646#include <string.h>
5647#include <float.h>
5648
5649int
5650main ()
5651{
5652
5653  ;
5654  return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658  ac_cv_header_stdc=yes
5659else
5660  ac_cv_header_stdc=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663
5664if test $ac_cv_header_stdc = yes; then
5665  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h.  */
5668#include <string.h>
5669
5670_ACEOF
5671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5672  $EGREP "memchr" >/dev/null 2>&1; then :
5673
5674else
5675  ac_cv_header_stdc=no
5676fi
5677rm -f conftest*
5678
5679fi
5680
5681if test $ac_cv_header_stdc = yes; then
5682  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685#include <stdlib.h>
5686
5687_ACEOF
5688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689  $EGREP "free" >/dev/null 2>&1; then :
5690
5691else
5692  ac_cv_header_stdc=no
5693fi
5694rm -f conftest*
5695
5696fi
5697
5698if test $ac_cv_header_stdc = yes; then
5699  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5700  if test "$cross_compiling" = yes; then :
5701  :
5702else
5703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h.  */
5705#include <ctype.h>
5706#include <stdlib.h>
5707#if ((' ' & 0x0FF) == 0x020)
5708# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5709# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5710#else
5711# define ISLOWER(c) \
5712		   (('a' <= (c) && (c) <= 'i') \
5713		     || ('j' <= (c) && (c) <= 'r') \
5714		     || ('s' <= (c) && (c) <= 'z'))
5715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5716#endif
5717
5718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5719int
5720main ()
5721{
5722  int i;
5723  for (i = 0; i < 256; i++)
5724    if (XOR (islower (i), ISLOWER (i))
5725	|| toupper (i) != TOUPPER (i))
5726      return 2;
5727  return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_run "$LINENO"; then :
5731
5732else
5733  ac_cv_header_stdc=no
5734fi
5735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5736  conftest.$ac_objext conftest.beam conftest.$ac_ext
5737fi
5738
5739fi
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5742$as_echo "$ac_cv_header_stdc" >&6; }
5743if test $ac_cv_header_stdc = yes; then
5744
5745$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5746
5747fi
5748
5749# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5750for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5751		  inttypes.h stdint.h unistd.h
5752do :
5753  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5754ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5755"
5756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5757  cat >>confdefs.h <<_ACEOF
5758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5759_ACEOF
5760
5761fi
5762
5763done
5764
5765
5766
5767  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5768if test "x$ac_cv_header_minix_config_h" = xyes; then :
5769  MINIX=yes
5770else
5771  MINIX=
5772fi
5773
5774
5775  if test "$MINIX" = yes; then
5776
5777$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5778
5779
5780$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5781
5782
5783$as_echo "#define _MINIX 1" >>confdefs.h
5784
5785  fi
5786
5787
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5789$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5790if ${ac_cv_safe_to_define___extensions__+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795
5796#         define __EXTENSIONS__ 1
5797          $ac_includes_default
5798int
5799main ()
5800{
5801
5802  ;
5803  return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807  ac_cv_safe_to_define___extensions__=yes
5808else
5809  ac_cv_safe_to_define___extensions__=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5814$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5815  test $ac_cv_safe_to_define___extensions__ = yes &&
5816    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5817
5818  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5819
5820  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5821
5822  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5823
5824  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5825
5826
5827
5828# Check for programs
5829ac_ext=c
5830ac_cpp='$CPP $CPPFLAGS'
5831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834if test -n "$ac_tool_prefix"; then
5835  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5836set dummy ${ac_tool_prefix}gcc; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
5839if ${ac_cv_prog_CC+:} false; then :
5840  $as_echo_n "(cached) " >&6
5841else
5842  if test -n "$CC"; then
5843  ac_cv_prog_CC="$CC" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_exec_ext in '' $ac_executable_extensions; do
5851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857  done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862CC=$ac_cv_prog_CC
5863if test -n "$CC"; then
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5865$as_echo "$CC" >&6; }
5866else
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871
5872fi
5873if test -z "$ac_cv_prog_CC"; then
5874  ac_ct_CC=$CC
5875  # Extract the first word of "gcc", so it can be a program name with args.
5876set dummy gcc; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
5879if ${ac_cv_prog_ac_ct_CC+:} false; then :
5880  $as_echo_n "(cached) " >&6
5881else
5882  if test -n "$ac_ct_CC"; then
5883  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888  IFS=$as_save_IFS
5889  test -z "$as_dir" && as_dir=.
5890    for ac_exec_ext in '' $ac_executable_extensions; do
5891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892    ac_cv_prog_ac_ct_CC="gcc"
5893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894    break 2
5895  fi
5896done
5897  done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902ac_ct_CC=$ac_cv_prog_ac_ct_CC
5903if test -n "$ac_ct_CC"; then
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5905$as_echo "$ac_ct_CC" >&6; }
5906else
5907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911  if test "x$ac_ct_CC" = x; then
5912    CC=""
5913  else
5914    case $cross_compiling:$ac_tool_warned in
5915yes:)
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5918ac_tool_warned=yes ;;
5919esac
5920    CC=$ac_ct_CC
5921  fi
5922else
5923  CC="$ac_cv_prog_CC"
5924fi
5925
5926if test -z "$CC"; then
5927          if test -n "$ac_tool_prefix"; then
5928    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5929set dummy ${ac_tool_prefix}cc; ac_word=$2
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931$as_echo_n "checking for $ac_word... " >&6; }
5932if ${ac_cv_prog_CC+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  if test -n "$CC"; then
5936  ac_cv_prog_CC="$CC" # Let the user override the test.
5937else
5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941  IFS=$as_save_IFS
5942  test -z "$as_dir" && as_dir=.
5943    for ac_exec_ext in '' $ac_executable_extensions; do
5944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945    ac_cv_prog_CC="${ac_tool_prefix}cc"
5946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947    break 2
5948  fi
5949done
5950  done
5951IFS=$as_save_IFS
5952
5953fi
5954fi
5955CC=$ac_cv_prog_CC
5956if test -n "$CC"; then
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5958$as_echo "$CC" >&6; }
5959else
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963
5964
5965  fi
5966fi
5967if test -z "$CC"; then
5968  # Extract the first word of "cc", so it can be a program name with args.
5969set dummy cc; ac_word=$2
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
5972if ${ac_cv_prog_CC+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  if test -n "$CC"; then
5976  ac_cv_prog_CC="$CC" # Let the user override the test.
5977else
5978  ac_prog_rejected=no
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984    for ac_exec_ext in '' $ac_executable_extensions; do
5985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5987       ac_prog_rejected=yes
5988       continue
5989     fi
5990    ac_cv_prog_CC="cc"
5991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992    break 2
5993  fi
5994done
5995  done
5996IFS=$as_save_IFS
5997
5998if test $ac_prog_rejected = yes; then
5999  # We found a bogon in the path, so make sure we never use it.
6000  set dummy $ac_cv_prog_CC
6001  shift
6002  if test $# != 0; then
6003    # We chose a different compiler from the bogus one.
6004    # However, it has the same basename, so the bogon will be chosen
6005    # first if we set CC to just the basename; use the full file name.
6006    shift
6007    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6008  fi
6009fi
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 "$CC"; then
6024  if test -n "$ac_tool_prefix"; then
6025  for ac_prog in cl.exe
6026  do
6027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
6031if ${ac_cv_prog_CC+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  if test -n "$CC"; then
6035  ac_cv_prog_CC="$CC" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040  IFS=$as_save_IFS
6041  test -z "$as_dir" && as_dir=.
6042    for ac_exec_ext in '' $ac_executable_extensions; do
6043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046    break 2
6047  fi
6048done
6049  done
6050IFS=$as_save_IFS
6051
6052fi
6053fi
6054CC=$ac_cv_prog_CC
6055if test -n "$CC"; then
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6057$as_echo "$CC" >&6; }
6058else
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
6062
6063
6064    test -n "$CC" && break
6065  done
6066fi
6067if test -z "$CC"; then
6068  ac_ct_CC=$CC
6069  for ac_prog in cl.exe
6070do
6071  # Extract the first word of "$ac_prog", so it can be a program name with args.
6072set dummy $ac_prog; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
6075if ${ac_cv_prog_ac_ct_CC+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  if test -n "$ac_ct_CC"; then
6079  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086    for ac_exec_ext in '' $ac_executable_extensions; do
6087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088    ac_cv_prog_ac_ct_CC="$ac_prog"
6089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090    break 2
6091  fi
6092done
6093  done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_CC=$ac_cv_prog_ac_ct_CC
6099if test -n "$ac_ct_CC"; then
6100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6101$as_echo "$ac_ct_CC" >&6; }
6102else
6103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107
6108  test -n "$ac_ct_CC" && break
6109done
6110
6111  if test "x$ac_ct_CC" = x; then
6112    CC=""
6113  else
6114    case $cross_compiling:$ac_tool_warned in
6115yes:)
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120    CC=$ac_ct_CC
6121  fi
6122fi
6123
6124fi
6125
6126
6127test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6129as_fn_error $? "no acceptable C compiler found in \$PATH
6130See \`config.log' for more details" "$LINENO" 5; }
6131
6132# Provide some information about the compiler.
6133$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6134set X $ac_compile
6135ac_compiler=$2
6136for ac_option in --version -v -V -qversion; do
6137  { { ac_try="$ac_compiler $ac_option >&5"
6138case "(($ac_try" in
6139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140  *) ac_try_echo=$ac_try;;
6141esac
6142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6143$as_echo "$ac_try_echo"; } >&5
6144  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6145  ac_status=$?
6146  if test -s conftest.err; then
6147    sed '10a\
6148... rest of stderr output deleted ...
6149         10q' conftest.err >conftest.er1
6150    cat conftest.er1 >&5
6151  fi
6152  rm -f conftest.er1 conftest.err
6153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154  test $ac_status = 0; }
6155done
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6158$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6159if ${ac_cv_c_compiler_gnu+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164
6165int
6166main ()
6167{
6168#ifndef __GNUC__
6169       choke me
6170#endif
6171
6172  ;
6173  return 0;
6174}
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"; then :
6177  ac_compiler_gnu=yes
6178else
6179  ac_compiler_gnu=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182ac_cv_c_compiler_gnu=$ac_compiler_gnu
6183
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6186$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6187if test $ac_compiler_gnu = yes; then
6188  GCC=yes
6189else
6190  GCC=
6191fi
6192ac_test_CFLAGS=${CFLAGS+set}
6193ac_save_CFLAGS=$CFLAGS
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6195$as_echo_n "checking whether $CC accepts -g... " >&6; }
6196if ${ac_cv_prog_cc_g+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  ac_save_c_werror_flag=$ac_c_werror_flag
6200   ac_c_werror_flag=yes
6201   ac_cv_prog_cc_g=no
6202   CFLAGS="-g"
6203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h.  */
6205
6206int
6207main ()
6208{
6209
6210  ;
6211  return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  ac_cv_prog_cc_g=yes
6216else
6217  CFLAGS=""
6218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220
6221int
6222main ()
6223{
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_compile "$LINENO"; then :
6230
6231else
6232  ac_c_werror_flag=$ac_save_c_werror_flag
6233	 CFLAGS="-g"
6234	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236
6237int
6238main ()
6239{
6240
6241  ;
6242  return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246  ac_cv_prog_cc_g=yes
6247fi
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251fi
6252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253   ac_c_werror_flag=$ac_save_c_werror_flag
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6256$as_echo "$ac_cv_prog_cc_g" >&6; }
6257if test "$ac_test_CFLAGS" = set; then
6258  CFLAGS=$ac_save_CFLAGS
6259elif test $ac_cv_prog_cc_g = yes; then
6260  if test "$GCC" = yes; then
6261    CFLAGS="-g -O2"
6262  else
6263    CFLAGS="-g"
6264  fi
6265else
6266  if test "$GCC" = yes; then
6267    CFLAGS="-O2"
6268  else
6269    CFLAGS=
6270  fi
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6273$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6274if ${ac_cv_prog_cc_c89+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  ac_cv_prog_cc_c89=no
6278ac_save_CC=$CC
6279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h.  */
6281#include <stdarg.h>
6282#include <stdio.h>
6283struct stat;
6284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6285struct buf { int x; };
6286FILE * (*rcsopen) (struct buf *, struct stat *, int);
6287static char *e (p, i)
6288     char **p;
6289     int i;
6290{
6291  return p[i];
6292}
6293static char *f (char * (*g) (char **, int), char **p, ...)
6294{
6295  char *s;
6296  va_list v;
6297  va_start (v,p);
6298  s = g (p, va_arg (v,int));
6299  va_end (v);
6300  return s;
6301}
6302
6303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6304   function prototypes and stuff, but not '\xHH' hex character constants.
6305   These don't provoke an error unfortunately, instead are silently treated
6306   as 'x'.  The following induces an error, until -std is added to get
6307   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6308   array size at least.  It's necessary to write '\x00'==0 to get something
6309   that's true only with -std.  */
6310int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6311
6312/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6313   inside strings and character constants.  */
6314#define FOO(x) 'x'
6315int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6316
6317int test (int i, double x);
6318struct s1 {int (*f) (int a);};
6319struct s2 {int (*f) (double a);};
6320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6321int argc;
6322char **argv;
6323int
6324main ()
6325{
6326return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6327  ;
6328  return 0;
6329}
6330_ACEOF
6331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6332	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6333do
6334  CC="$ac_save_CC $ac_arg"
6335  if ac_fn_c_try_compile "$LINENO"; then :
6336  ac_cv_prog_cc_c89=$ac_arg
6337fi
6338rm -f core conftest.err conftest.$ac_objext
6339  test "x$ac_cv_prog_cc_c89" != "xno" && break
6340done
6341rm -f conftest.$ac_ext
6342CC=$ac_save_CC
6343
6344fi
6345# AC_CACHE_VAL
6346case "x$ac_cv_prog_cc_c89" in
6347  x)
6348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6349$as_echo "none needed" >&6; } ;;
6350  xno)
6351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6352$as_echo "unsupported" >&6; } ;;
6353  *)
6354    CC="$CC $ac_cv_prog_cc_c89"
6355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6356$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6357esac
6358if test "x$ac_cv_prog_cc_c89" != xno; then :
6359
6360fi
6361
6362ac_ext=c
6363ac_cpp='$CPP $CPPFLAGS'
6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368depcc="$CC"   am_compiler_list=
6369
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6371$as_echo_n "checking dependency style of $depcc... " >&6; }
6372if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6376  # We make a subdir and do the tests there.  Otherwise we can end up
6377  # making bogus files that we don't know about and never remove.  For
6378  # instance it was reported that on HP-UX the gcc test will end up
6379  # making a dummy file named 'D' -- because '-MD' means "put the output
6380  # in D".
6381  rm -rf conftest.dir
6382  mkdir conftest.dir
6383  # Copy depcomp to subdir because otherwise we won't find it if we're
6384  # using a relative directory.
6385  cp "$am_depcomp" conftest.dir
6386  cd conftest.dir
6387  # We will build objects and dependencies in a subdirectory because
6388  # it helps to detect inapplicable dependency modes.  For instance
6389  # both Tru64's cc and ICC support -MD to output dependencies as a
6390  # side effect of compilation, but ICC will put the dependencies in
6391  # the current directory while Tru64 will put them in the object
6392  # directory.
6393  mkdir sub
6394
6395  am_cv_CC_dependencies_compiler_type=none
6396  if test "$am_compiler_list" = ""; then
6397     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6398  fi
6399  am__universal=false
6400  case " $depcc " in #(
6401     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6402     esac
6403
6404  for depmode in $am_compiler_list; do
6405    # Setup a source with many dependencies, because some compilers
6406    # like to wrap large dependency lists on column 80 (with \), and
6407    # we should not choose a depcomp mode which is confused by this.
6408    #
6409    # We need to recreate these files for each test, as the compiler may
6410    # overwrite some of them when testing with obscure command lines.
6411    # This happens at least with the AIX C compiler.
6412    : > sub/conftest.c
6413    for i in 1 2 3 4 5 6; do
6414      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6415      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6416      # Solaris 10 /bin/sh.
6417      echo '/* dummy */' > sub/conftst$i.h
6418    done
6419    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6420
6421    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6422    # mode.  It turns out that the SunPro C++ compiler does not properly
6423    # handle '-M -o', and we need to detect this.  Also, some Intel
6424    # versions had trouble with output in subdirs.
6425    am__obj=sub/conftest.${OBJEXT-o}
6426    am__minus_obj="-o $am__obj"
6427    case $depmode in
6428    gcc)
6429      # This depmode causes a compiler race in universal mode.
6430      test "$am__universal" = false || continue
6431      ;;
6432    nosideeffect)
6433      # After this tag, mechanisms are not by side-effect, so they'll
6434      # only be used when explicitly requested.
6435      if test "x$enable_dependency_tracking" = xyes; then
6436	continue
6437      else
6438	break
6439      fi
6440      ;;
6441    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6442      # This compiler won't grok '-c -o', but also, the minuso test has
6443      # not run yet.  These depmodes are late enough in the game, and
6444      # so weak that their functioning should not be impacted.
6445      am__obj=conftest.${OBJEXT-o}
6446      am__minus_obj=
6447      ;;
6448    none) break ;;
6449    esac
6450    if depmode=$depmode \
6451       source=sub/conftest.c object=$am__obj \
6452       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6453       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6454         >/dev/null 2>conftest.err &&
6455       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6456       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6457       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6458       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6459      # icc doesn't choke on unknown options, it will just issue warnings
6460      # or remarks (even with -Werror).  So we grep stderr for any message
6461      # that says an option was ignored or not supported.
6462      # When given -MP, icc 7.0 and 7.1 complain thusly:
6463      #   icc: Command line warning: ignoring option '-M'; no argument required
6464      # The diagnosis changed in icc 8.0:
6465      #   icc: Command line remark: option '-MP' not supported
6466      if (grep 'ignoring option' conftest.err ||
6467          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6468        am_cv_CC_dependencies_compiler_type=$depmode
6469        break
6470      fi
6471    fi
6472  done
6473
6474  cd ..
6475  rm -rf conftest.dir
6476else
6477  am_cv_CC_dependencies_compiler_type=none
6478fi
6479
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6482$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6483CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6484
6485 if
6486  test "x$enable_dependency_tracking" != xno \
6487  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6488  am__fastdepCC_TRUE=
6489  am__fastdepCC_FALSE='#'
6490else
6491  am__fastdepCC_TRUE='#'
6492  am__fastdepCC_FALSE=
6493fi
6494
6495
6496ac_ext=cpp
6497ac_cpp='$CXXCPP $CPPFLAGS'
6498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6501if test -z "$CXX"; then
6502  if test -n "$CCC"; then
6503    CXX=$CCC
6504  else
6505    if test -n "$ac_tool_prefix"; then
6506  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6507  do
6508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
6512if ${ac_cv_prog_CXX+:} false; then :
6513  $as_echo_n "(cached) " >&6
6514else
6515  if test -n "$CXX"; then
6516  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521  IFS=$as_save_IFS
6522  test -z "$as_dir" && as_dir=.
6523    for ac_exec_ext in '' $ac_executable_extensions; do
6524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527    break 2
6528  fi
6529done
6530  done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535CXX=$ac_cv_prog_CXX
6536if test -n "$CXX"; then
6537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6538$as_echo "$CXX" >&6; }
6539else
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545    test -n "$CXX" && break
6546  done
6547fi
6548if test -z "$CXX"; then
6549  ac_ct_CXX=$CXX
6550  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6551do
6552  # Extract the first word of "$ac_prog", so it can be a program name with args.
6553set dummy $ac_prog; ac_word=$2
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555$as_echo_n "checking for $ac_word... " >&6; }
6556if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  if test -n "$ac_ct_CXX"; then
6560  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565  IFS=$as_save_IFS
6566  test -z "$as_dir" && as_dir=.
6567    for ac_exec_ext in '' $ac_executable_extensions; do
6568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569    ac_cv_prog_ac_ct_CXX="$ac_prog"
6570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571    break 2
6572  fi
6573done
6574  done
6575IFS=$as_save_IFS
6576
6577fi
6578fi
6579ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6580if test -n "$ac_ct_CXX"; then
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6582$as_echo "$ac_ct_CXX" >&6; }
6583else
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585$as_echo "no" >&6; }
6586fi
6587
6588
6589  test -n "$ac_ct_CXX" && break
6590done
6591
6592  if test "x$ac_ct_CXX" = x; then
6593    CXX="g++"
6594  else
6595    case $cross_compiling:$ac_tool_warned in
6596yes:)
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599ac_tool_warned=yes ;;
6600esac
6601    CXX=$ac_ct_CXX
6602  fi
6603fi
6604
6605  fi
6606fi
6607# Provide some information about the compiler.
6608$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6609set X $ac_compile
6610ac_compiler=$2
6611for ac_option in --version -v -V -qversion; do
6612  { { ac_try="$ac_compiler $ac_option >&5"
6613case "(($ac_try" in
6614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615  *) ac_try_echo=$ac_try;;
6616esac
6617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6618$as_echo "$ac_try_echo"; } >&5
6619  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6620  ac_status=$?
6621  if test -s conftest.err; then
6622    sed '10a\
6623... rest of stderr output deleted ...
6624         10q' conftest.err >conftest.er1
6625    cat conftest.er1 >&5
6626  fi
6627  rm -f conftest.er1 conftest.err
6628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629  test $ac_status = 0; }
6630done
6631
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6633$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6634if ${ac_cv_cxx_compiler_gnu+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639
6640int
6641main ()
6642{
6643#ifndef __GNUC__
6644       choke me
6645#endif
6646
6647  ;
6648  return 0;
6649}
6650_ACEOF
6651if ac_fn_cxx_try_compile "$LINENO"; then :
6652  ac_compiler_gnu=yes
6653else
6654  ac_compiler_gnu=no
6655fi
6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6658
6659fi
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6661$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6662if test $ac_compiler_gnu = yes; then
6663  GXX=yes
6664else
6665  GXX=
6666fi
6667ac_test_CXXFLAGS=${CXXFLAGS+set}
6668ac_save_CXXFLAGS=$CXXFLAGS
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6670$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6671if ${ac_cv_prog_cxx_g+:} false; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6675   ac_cxx_werror_flag=yes
6676   ac_cv_prog_cxx_g=no
6677   CXXFLAGS="-g"
6678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680
6681int
6682main ()
6683{
6684
6685  ;
6686  return 0;
6687}
6688_ACEOF
6689if ac_fn_cxx_try_compile "$LINENO"; then :
6690  ac_cv_prog_cxx_g=yes
6691else
6692  CXXFLAGS=""
6693      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695
6696int
6697main ()
6698{
6699
6700  ;
6701  return 0;
6702}
6703_ACEOF
6704if ac_fn_cxx_try_compile "$LINENO"; then :
6705
6706else
6707  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6708	 CXXFLAGS="-g"
6709	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h.  */
6711
6712int
6713main ()
6714{
6715
6716  ;
6717  return 0;
6718}
6719_ACEOF
6720if ac_fn_cxx_try_compile "$LINENO"; then :
6721  ac_cv_prog_cxx_g=yes
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726fi
6727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6731$as_echo "$ac_cv_prog_cxx_g" >&6; }
6732if test "$ac_test_CXXFLAGS" = set; then
6733  CXXFLAGS=$ac_save_CXXFLAGS
6734elif test $ac_cv_prog_cxx_g = yes; then
6735  if test "$GXX" = yes; then
6736    CXXFLAGS="-g -O2"
6737  else
6738    CXXFLAGS="-g"
6739  fi
6740else
6741  if test "$GXX" = yes; then
6742    CXXFLAGS="-O2"
6743  else
6744    CXXFLAGS=
6745  fi
6746fi
6747ac_ext=c
6748ac_cpp='$CPP $CPPFLAGS'
6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
6753depcc="$CXX"  am_compiler_list=
6754
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6756$as_echo_n "checking dependency style of $depcc... " >&6; }
6757if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6761  # We make a subdir and do the tests there.  Otherwise we can end up
6762  # making bogus files that we don't know about and never remove.  For
6763  # instance it was reported that on HP-UX the gcc test will end up
6764  # making a dummy file named 'D' -- because '-MD' means "put the output
6765  # in D".
6766  rm -rf conftest.dir
6767  mkdir conftest.dir
6768  # Copy depcomp to subdir because otherwise we won't find it if we're
6769  # using a relative directory.
6770  cp "$am_depcomp" conftest.dir
6771  cd conftest.dir
6772  # We will build objects and dependencies in a subdirectory because
6773  # it helps to detect inapplicable dependency modes.  For instance
6774  # both Tru64's cc and ICC support -MD to output dependencies as a
6775  # side effect of compilation, but ICC will put the dependencies in
6776  # the current directory while Tru64 will put them in the object
6777  # directory.
6778  mkdir sub
6779
6780  am_cv_CXX_dependencies_compiler_type=none
6781  if test "$am_compiler_list" = ""; then
6782     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6783  fi
6784  am__universal=false
6785  case " $depcc " in #(
6786     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6787     esac
6788
6789  for depmode in $am_compiler_list; do
6790    # Setup a source with many dependencies, because some compilers
6791    # like to wrap large dependency lists on column 80 (with \), and
6792    # we should not choose a depcomp mode which is confused by this.
6793    #
6794    # We need to recreate these files for each test, as the compiler may
6795    # overwrite some of them when testing with obscure command lines.
6796    # This happens at least with the AIX C compiler.
6797    : > sub/conftest.c
6798    for i in 1 2 3 4 5 6; do
6799      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6800      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6801      # Solaris 10 /bin/sh.
6802      echo '/* dummy */' > sub/conftst$i.h
6803    done
6804    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6805
6806    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6807    # mode.  It turns out that the SunPro C++ compiler does not properly
6808    # handle '-M -o', and we need to detect this.  Also, some Intel
6809    # versions had trouble with output in subdirs.
6810    am__obj=sub/conftest.${OBJEXT-o}
6811    am__minus_obj="-o $am__obj"
6812    case $depmode in
6813    gcc)
6814      # This depmode causes a compiler race in universal mode.
6815      test "$am__universal" = false || continue
6816      ;;
6817    nosideeffect)
6818      # After this tag, mechanisms are not by side-effect, so they'll
6819      # only be used when explicitly requested.
6820      if test "x$enable_dependency_tracking" = xyes; then
6821	continue
6822      else
6823	break
6824      fi
6825      ;;
6826    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6827      # This compiler won't grok '-c -o', but also, the minuso test has
6828      # not run yet.  These depmodes are late enough in the game, and
6829      # so weak that their functioning should not be impacted.
6830      am__obj=conftest.${OBJEXT-o}
6831      am__minus_obj=
6832      ;;
6833    none) break ;;
6834    esac
6835    if depmode=$depmode \
6836       source=sub/conftest.c object=$am__obj \
6837       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6838       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6839         >/dev/null 2>conftest.err &&
6840       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6841       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6842       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6843       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6844      # icc doesn't choke on unknown options, it will just issue warnings
6845      # or remarks (even with -Werror).  So we grep stderr for any message
6846      # that says an option was ignored or not supported.
6847      # When given -MP, icc 7.0 and 7.1 complain thusly:
6848      #   icc: Command line warning: ignoring option '-M'; no argument required
6849      # The diagnosis changed in icc 8.0:
6850      #   icc: Command line remark: option '-MP' not supported
6851      if (grep 'ignoring option' conftest.err ||
6852          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6853        am_cv_CXX_dependencies_compiler_type=$depmode
6854        break
6855      fi
6856    fi
6857  done
6858
6859  cd ..
6860  rm -rf conftest.dir
6861else
6862  am_cv_CXX_dependencies_compiler_type=none
6863fi
6864
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6867$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6868CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6869
6870 if
6871  test "x$enable_dependency_tracking" != xno \
6872  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6873  am__fastdepCXX_TRUE=
6874  am__fastdepCXX_FALSE='#'
6875else
6876  am__fastdepCXX_TRUE='#'
6877  am__fastdepCXX_FALSE=
6878fi
6879
6880
6881   case $ac_cv_prog_cc_stdc in #(
6882  no) :
6883    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6884  *) :
6885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6886$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6887if ${ac_cv_prog_cc_c99+:} false; then :
6888  $as_echo_n "(cached) " >&6
6889else
6890  ac_cv_prog_cc_c99=no
6891ac_save_CC=$CC
6892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894#include <stdarg.h>
6895#include <stdbool.h>
6896#include <stdlib.h>
6897#include <wchar.h>
6898#include <stdio.h>
6899
6900// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6901#define debug(...) fprintf (stderr, __VA_ARGS__)
6902#define showlist(...) puts (#__VA_ARGS__)
6903#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6904static void
6905test_varargs_macros (void)
6906{
6907  int x = 1234;
6908  int y = 5678;
6909  debug ("Flag");
6910  debug ("X = %d\n", x);
6911  showlist (The first, second, and third items.);
6912  report (x>y, "x is %d but y is %d", x, y);
6913}
6914
6915// Check long long types.
6916#define BIG64 18446744073709551615ull
6917#define BIG32 4294967295ul
6918#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6919#if !BIG_OK
6920  your preprocessor is broken;
6921#endif
6922#if BIG_OK
6923#else
6924  your preprocessor is broken;
6925#endif
6926static long long int bignum = -9223372036854775807LL;
6927static unsigned long long int ubignum = BIG64;
6928
6929struct incomplete_array
6930{
6931  int datasize;
6932  double data[];
6933};
6934
6935struct named_init {
6936  int number;
6937  const wchar_t *name;
6938  double average;
6939};
6940
6941typedef const char *ccp;
6942
6943static inline int
6944test_restrict (ccp restrict text)
6945{
6946  // See if C++-style comments work.
6947  // Iterate through items via the restricted pointer.
6948  // Also check for declarations in for loops.
6949  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6950    continue;
6951  return 0;
6952}
6953
6954// Check varargs and va_copy.
6955static void
6956test_varargs (const char *format, ...)
6957{
6958  va_list args;
6959  va_start (args, format);
6960  va_list args_copy;
6961  va_copy (args_copy, args);
6962
6963  const char *str;
6964  int number;
6965  float fnumber;
6966
6967  while (*format)
6968    {
6969      switch (*format++)
6970	{
6971	case 's': // string
6972	  str = va_arg (args_copy, const char *);
6973	  break;
6974	case 'd': // int
6975	  number = va_arg (args_copy, int);
6976	  break;
6977	case 'f': // float
6978	  fnumber = va_arg (args_copy, double);
6979	  break;
6980	default:
6981	  break;
6982	}
6983    }
6984  va_end (args_copy);
6985  va_end (args);
6986}
6987
6988int
6989main ()
6990{
6991
6992  // Check bool.
6993  _Bool success = false;
6994
6995  // Check restrict.
6996  if (test_restrict ("String literal") == 0)
6997    success = true;
6998  char *restrict newvar = "Another string";
6999
7000  // Check varargs.
7001  test_varargs ("s, d' f .", "string", 65, 34.234);
7002  test_varargs_macros ();
7003
7004  // Check flexible array members.
7005  struct incomplete_array *ia =
7006    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7007  ia->datasize = 10;
7008  for (int i = 0; i < ia->datasize; ++i)
7009    ia->data[i] = i * 1.234;
7010
7011  // Check named initializers.
7012  struct named_init ni = {
7013    .number = 34,
7014    .name = L"Test wide string",
7015    .average = 543.34343,
7016  };
7017
7018  ni.number = 58;
7019
7020  int dynamic_array[ni.number];
7021  dynamic_array[ni.number - 1] = 543;
7022
7023  // work around unused variable warnings
7024  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7025	  || dynamic_array[ni.number - 1] != 543);
7026
7027  ;
7028  return 0;
7029}
7030_ACEOF
7031for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7032do
7033  CC="$ac_save_CC $ac_arg"
7034  if ac_fn_c_try_compile "$LINENO"; then :
7035  ac_cv_prog_cc_c99=$ac_arg
7036fi
7037rm -f core conftest.err conftest.$ac_objext
7038  test "x$ac_cv_prog_cc_c99" != "xno" && break
7039done
7040rm -f conftest.$ac_ext
7041CC=$ac_save_CC
7042
7043fi
7044# AC_CACHE_VAL
7045case "x$ac_cv_prog_cc_c99" in
7046  x)
7047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7048$as_echo "none needed" >&6; } ;;
7049  xno)
7050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7051$as_echo "unsupported" >&6; } ;;
7052  *)
7053    CC="$CC $ac_cv_prog_cc_c99"
7054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7055$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7056esac
7057if test "x$ac_cv_prog_cc_c99" != xno; then :
7058  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7059else
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7061$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7062if ${ac_cv_prog_cc_c89+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  ac_cv_prog_cc_c89=no
7066ac_save_CC=$CC
7067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069#include <stdarg.h>
7070#include <stdio.h>
7071struct stat;
7072/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7073struct buf { int x; };
7074FILE * (*rcsopen) (struct buf *, struct stat *, int);
7075static char *e (p, i)
7076     char **p;
7077     int i;
7078{
7079  return p[i];
7080}
7081static char *f (char * (*g) (char **, int), char **p, ...)
7082{
7083  char *s;
7084  va_list v;
7085  va_start (v,p);
7086  s = g (p, va_arg (v,int));
7087  va_end (v);
7088  return s;
7089}
7090
7091/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7092   function prototypes and stuff, but not '\xHH' hex character constants.
7093   These don't provoke an error unfortunately, instead are silently treated
7094   as 'x'.  The following induces an error, until -std is added to get
7095   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7096   array size at least.  It's necessary to write '\x00'==0 to get something
7097   that's true only with -std.  */
7098int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7099
7100/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7101   inside strings and character constants.  */
7102#define FOO(x) 'x'
7103int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7104
7105int test (int i, double x);
7106struct s1 {int (*f) (int a);};
7107struct s2 {int (*f) (double a);};
7108int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7109int argc;
7110char **argv;
7111int
7112main ()
7113{
7114return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7115  ;
7116  return 0;
7117}
7118_ACEOF
7119for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7120	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7121do
7122  CC="$ac_save_CC $ac_arg"
7123  if ac_fn_c_try_compile "$LINENO"; then :
7124  ac_cv_prog_cc_c89=$ac_arg
7125fi
7126rm -f core conftest.err conftest.$ac_objext
7127  test "x$ac_cv_prog_cc_c89" != "xno" && break
7128done
7129rm -f conftest.$ac_ext
7130CC=$ac_save_CC
7131
7132fi
7133# AC_CACHE_VAL
7134case "x$ac_cv_prog_cc_c89" in
7135  x)
7136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7137$as_echo "none needed" >&6; } ;;
7138  xno)
7139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7140$as_echo "unsupported" >&6; } ;;
7141  *)
7142    CC="$CC $ac_cv_prog_cc_c89"
7143    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7144$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7145esac
7146if test "x$ac_cv_prog_cc_c89" != xno; then :
7147  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7148else
7149  ac_cv_prog_cc_stdc=no
7150fi
7151
7152fi
7153 ;;
7154esac
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7156$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7157  if ${ac_cv_prog_cc_stdc+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159fi
7160
7161  case $ac_cv_prog_cc_stdc in #(
7162  no) :
7163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7164$as_echo "unsupported" >&6; } ;; #(
7165  '') :
7166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7167$as_echo "none needed" >&6; } ;; #(
7168  *) :
7169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7170$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7171esac
7172
7173ac_ext=c
7174ac_cpp='$CPP $CPPFLAGS'
7175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7179$as_echo_n "checking how to run the C preprocessor... " >&6; }
7180# On Suns, sometimes $CPP names a directory.
7181if test -n "$CPP" && test -d "$CPP"; then
7182  CPP=
7183fi
7184if test -z "$CPP"; then
7185  if ${ac_cv_prog_CPP+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188      # Double quotes because CPP needs to be expanded
7189    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7190    do
7191      ac_preproc_ok=false
7192for ac_c_preproc_warn_flag in '' yes
7193do
7194  # Use a header file that comes with gcc, so configuring glibc
7195  # with a fresh cross-compiler works.
7196  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197  # <limits.h> exists even on freestanding compilers.
7198  # On the NeXT, cc -E runs the code through the compiler's parser,
7199  # not just through cpp. "Syntax error" is here to catch this case.
7200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202#ifdef __STDC__
7203# include <limits.h>
7204#else
7205# include <assert.h>
7206#endif
7207		     Syntax error
7208_ACEOF
7209if ac_fn_c_try_cpp "$LINENO"; then :
7210
7211else
7212  # Broken: fails on valid input.
7213continue
7214fi
7215rm -f conftest.err conftest.i conftest.$ac_ext
7216
7217  # OK, works on sane cases.  Now check whether nonexistent headers
7218  # can be detected and how.
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221#include <ac_nonexistent.h>
7222_ACEOF
7223if ac_fn_c_try_cpp "$LINENO"; then :
7224  # Broken: success on invalid input.
7225continue
7226else
7227  # Passes both tests.
7228ac_preproc_ok=:
7229break
7230fi
7231rm -f conftest.err conftest.i conftest.$ac_ext
7232
7233done
7234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7235rm -f conftest.i conftest.err conftest.$ac_ext
7236if $ac_preproc_ok; then :
7237  break
7238fi
7239
7240    done
7241    ac_cv_prog_CPP=$CPP
7242
7243fi
7244  CPP=$ac_cv_prog_CPP
7245else
7246  ac_cv_prog_CPP=$CPP
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7249$as_echo "$CPP" >&6; }
7250ac_preproc_ok=false
7251for ac_c_preproc_warn_flag in '' yes
7252do
7253  # Use a header file that comes with gcc, so configuring glibc
7254  # with a fresh cross-compiler works.
7255  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7256  # <limits.h> exists even on freestanding compilers.
7257  # On the NeXT, cc -E runs the code through the compiler's parser,
7258  # not just through cpp. "Syntax error" is here to catch this case.
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261#ifdef __STDC__
7262# include <limits.h>
7263#else
7264# include <assert.h>
7265#endif
7266		     Syntax error
7267_ACEOF
7268if ac_fn_c_try_cpp "$LINENO"; then :
7269
7270else
7271  # Broken: fails on valid input.
7272continue
7273fi
7274rm -f conftest.err conftest.i conftest.$ac_ext
7275
7276  # OK, works on sane cases.  Now check whether nonexistent headers
7277  # can be detected and how.
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280#include <ac_nonexistent.h>
7281_ACEOF
7282if ac_fn_c_try_cpp "$LINENO"; then :
7283  # Broken: success on invalid input.
7284continue
7285else
7286  # Passes both tests.
7287ac_preproc_ok=:
7288break
7289fi
7290rm -f conftest.err conftest.i conftest.$ac_ext
7291
7292done
7293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7294rm -f conftest.i conftest.err conftest.$ac_ext
7295if $ac_preproc_ok; then :
7296
7297else
7298  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7300as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7301See \`config.log' for more details" "$LINENO" 5; }
7302fi
7303
7304ac_ext=c
7305ac_cpp='$CPP $CPPFLAGS'
7306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7311$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7312if ${ac_cv_path_SED+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7316     for ac_i in 1 2 3 4 5 6 7; do
7317       ac_script="$ac_script$as_nl$ac_script"
7318     done
7319     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7320     { ac_script=; unset ac_script;}
7321     if test -z "$SED"; then
7322  ac_path_SED_found=false
7323  # Loop through the user's path and test for each of PROGNAME-LIST
7324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327  IFS=$as_save_IFS
7328  test -z "$as_dir" && as_dir=.
7329    for ac_prog in sed gsed; do
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7332      as_fn_executable_p "$ac_path_SED" || continue
7333# Check for GNU ac_path_SED and select it if it is found.
7334  # Check for GNU $ac_path_SED
7335case `"$ac_path_SED" --version 2>&1` in
7336*GNU*)
7337  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7338*)
7339  ac_count=0
7340  $as_echo_n 0123456789 >"conftest.in"
7341  while :
7342  do
7343    cat "conftest.in" "conftest.in" >"conftest.tmp"
7344    mv "conftest.tmp" "conftest.in"
7345    cp "conftest.in" "conftest.nl"
7346    $as_echo '' >> "conftest.nl"
7347    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7348    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7349    as_fn_arith $ac_count + 1 && ac_count=$as_val
7350    if test $ac_count -gt ${ac_path_SED_max-0}; then
7351      # Best one so far, save it but keep looking for a better one
7352      ac_cv_path_SED="$ac_path_SED"
7353      ac_path_SED_max=$ac_count
7354    fi
7355    # 10*(2^10) chars as input seems more than enough
7356    test $ac_count -gt 10 && break
7357  done
7358  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7359esac
7360
7361      $ac_path_SED_found && break 3
7362    done
7363  done
7364  done
7365IFS=$as_save_IFS
7366  if test -z "$ac_cv_path_SED"; then
7367    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7368  fi
7369else
7370  ac_cv_path_SED=$SED
7371fi
7372
7373fi
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7375$as_echo "$ac_cv_path_SED" >&6; }
7376 SED="$ac_cv_path_SED"
7377  rm -f conftest.sed
7378
7379test -z "$SED" && SED=sed
7380Xsed="$SED -e 1s/^X//"
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7393$as_echo_n "checking for fgrep... " >&6; }
7394if ${ac_cv_path_FGREP+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7398   then ac_cv_path_FGREP="$GREP -F"
7399   else
7400     if test -z "$FGREP"; then
7401  ac_path_FGREP_found=false
7402  # Loop through the user's path and test for each of PROGNAME-LIST
7403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7405do
7406  IFS=$as_save_IFS
7407  test -z "$as_dir" && as_dir=.
7408    for ac_prog in fgrep; do
7409    for ac_exec_ext in '' $ac_executable_extensions; do
7410      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7411      as_fn_executable_p "$ac_path_FGREP" || continue
7412# Check for GNU ac_path_FGREP and select it if it is found.
7413  # Check for GNU $ac_path_FGREP
7414case `"$ac_path_FGREP" --version 2>&1` in
7415*GNU*)
7416  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7417*)
7418  ac_count=0
7419  $as_echo_n 0123456789 >"conftest.in"
7420  while :
7421  do
7422    cat "conftest.in" "conftest.in" >"conftest.tmp"
7423    mv "conftest.tmp" "conftest.in"
7424    cp "conftest.in" "conftest.nl"
7425    $as_echo 'FGREP' >> "conftest.nl"
7426    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7427    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7428    as_fn_arith $ac_count + 1 && ac_count=$as_val
7429    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7430      # Best one so far, save it but keep looking for a better one
7431      ac_cv_path_FGREP="$ac_path_FGREP"
7432      ac_path_FGREP_max=$ac_count
7433    fi
7434    # 10*(2^10) chars as input seems more than enough
7435    test $ac_count -gt 10 && break
7436  done
7437  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7438esac
7439
7440      $ac_path_FGREP_found && break 3
7441    done
7442  done
7443  done
7444IFS=$as_save_IFS
7445  if test -z "$ac_cv_path_FGREP"; then
7446    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7447  fi
7448else
7449  ac_cv_path_FGREP=$FGREP
7450fi
7451
7452   fi
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7455$as_echo "$ac_cv_path_FGREP" >&6; }
7456 FGREP="$ac_cv_path_FGREP"
7457
7458
7459test -z "$GREP" && GREP=grep
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7478ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7479ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7480
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7482$as_echo_n "checking how to print strings... " >&6; }
7483# Test print first, because it will be a builtin if present.
7484if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7485   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7486  ECHO='print -r --'
7487elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7488  ECHO='printf %s\n'
7489else
7490  # Use this function as a fallback that always works.
7491  func_fallback_echo ()
7492  {
7493    eval 'cat <<_LTECHO_EOF
7494$1
7495_LTECHO_EOF'
7496  }
7497  ECHO='func_fallback_echo'
7498fi
7499
7500# func_echo_all arg...
7501# Invoke $ECHO with all args, space-separated.
7502func_echo_all ()
7503{
7504    $ECHO ""
7505}
7506
7507case "$ECHO" in
7508  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7509$as_echo "printf" >&6; } ;;
7510  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7511$as_echo "print -r" >&6; } ;;
7512  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7513$as_echo "cat" >&6; } ;;
7514esac
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531# Check whether --with-gnu-ld was given.
7532if test "${with_gnu_ld+set}" = set; then :
7533  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7534else
7535  with_gnu_ld=no
7536fi
7537
7538ac_prog=ld
7539if test "$GCC" = yes; then
7540  # Check if gcc -print-prog-name=ld gives a path.
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7542$as_echo_n "checking for ld used by $CC... " >&6; }
7543  case $host in
7544  *-*-mingw*)
7545    # gcc leaves a trailing carriage return which upsets mingw
7546    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7547  *)
7548    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7549  esac
7550  case $ac_prog in
7551    # Accept absolute paths.
7552    [\\/]* | ?:[\\/]*)
7553      re_direlt='/[^/][^/]*/\.\./'
7554      # Canonicalize the pathname of ld
7555      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7556      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7557	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7558      done
7559      test -z "$LD" && LD="$ac_prog"
7560      ;;
7561  "")
7562    # If it fails, then pretend we aren't using GCC.
7563    ac_prog=ld
7564    ;;
7565  *)
7566    # If it is relative, then search for the first ld in PATH.
7567    with_gnu_ld=unknown
7568    ;;
7569  esac
7570elif test "$with_gnu_ld" = yes; then
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7572$as_echo_n "checking for GNU ld... " >&6; }
7573else
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7575$as_echo_n "checking for non-GNU ld... " >&6; }
7576fi
7577if ${lt_cv_path_LD+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  if test -z "$LD"; then
7581  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7582  for ac_dir in $PATH; do
7583    IFS="$lt_save_ifs"
7584    test -z "$ac_dir" && ac_dir=.
7585    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7586      lt_cv_path_LD="$ac_dir/$ac_prog"
7587      # Check to see if the program is GNU ld.  I'd rather use --version,
7588      # but apparently some variants of GNU ld only accept -v.
7589      # Break only if it was the GNU/non-GNU ld that we prefer.
7590      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7591      *GNU* | *'with BFD'*)
7592	test "$with_gnu_ld" != no && break
7593	;;
7594      *)
7595	test "$with_gnu_ld" != yes && break
7596	;;
7597      esac
7598    fi
7599  done
7600  IFS="$lt_save_ifs"
7601else
7602  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7603fi
7604fi
7605
7606LD="$lt_cv_path_LD"
7607if test -n "$LD"; then
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7609$as_echo "$LD" >&6; }
7610else
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7616$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7617if ${lt_cv_prog_gnu_ld+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7621case `$LD -v 2>&1 </dev/null` in
7622*GNU* | *'with BFD'*)
7623  lt_cv_prog_gnu_ld=yes
7624  ;;
7625*)
7626  lt_cv_prog_gnu_ld=no
7627  ;;
7628esac
7629fi
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7631$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7632with_gnu_ld=$lt_cv_prog_gnu_ld
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7644$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7645if ${ac_cv_prog_cc_c99+:} false; then :
7646  $as_echo_n "(cached) " >&6
7647else
7648  ac_cv_prog_cc_c99=no
7649ac_save_CC=$CC
7650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652#include <stdarg.h>
7653#include <stdbool.h>
7654#include <stdlib.h>
7655#include <wchar.h>
7656#include <stdio.h>
7657
7658// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7659#define debug(...) fprintf (stderr, __VA_ARGS__)
7660#define showlist(...) puts (#__VA_ARGS__)
7661#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7662static void
7663test_varargs_macros (void)
7664{
7665  int x = 1234;
7666  int y = 5678;
7667  debug ("Flag");
7668  debug ("X = %d\n", x);
7669  showlist (The first, second, and third items.);
7670  report (x>y, "x is %d but y is %d", x, y);
7671}
7672
7673// Check long long types.
7674#define BIG64 18446744073709551615ull
7675#define BIG32 4294967295ul
7676#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7677#if !BIG_OK
7678  your preprocessor is broken;
7679#endif
7680#if BIG_OK
7681#else
7682  your preprocessor is broken;
7683#endif
7684static long long int bignum = -9223372036854775807LL;
7685static unsigned long long int ubignum = BIG64;
7686
7687struct incomplete_array
7688{
7689  int datasize;
7690  double data[];
7691};
7692
7693struct named_init {
7694  int number;
7695  const wchar_t *name;
7696  double average;
7697};
7698
7699typedef const char *ccp;
7700
7701static inline int
7702test_restrict (ccp restrict text)
7703{
7704  // See if C++-style comments work.
7705  // Iterate through items via the restricted pointer.
7706  // Also check for declarations in for loops.
7707  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7708    continue;
7709  return 0;
7710}
7711
7712// Check varargs and va_copy.
7713static void
7714test_varargs (const char *format, ...)
7715{
7716  va_list args;
7717  va_start (args, format);
7718  va_list args_copy;
7719  va_copy (args_copy, args);
7720
7721  const char *str;
7722  int number;
7723  float fnumber;
7724
7725  while (*format)
7726    {
7727      switch (*format++)
7728	{
7729	case 's': // string
7730	  str = va_arg (args_copy, const char *);
7731	  break;
7732	case 'd': // int
7733	  number = va_arg (args_copy, int);
7734	  break;
7735	case 'f': // float
7736	  fnumber = va_arg (args_copy, double);
7737	  break;
7738	default:
7739	  break;
7740	}
7741    }
7742  va_end (args_copy);
7743  va_end (args);
7744}
7745
7746int
7747main ()
7748{
7749
7750  // Check bool.
7751  _Bool success = false;
7752
7753  // Check restrict.
7754  if (test_restrict ("String literal") == 0)
7755    success = true;
7756  char *restrict newvar = "Another string";
7757
7758  // Check varargs.
7759  test_varargs ("s, d' f .", "string", 65, 34.234);
7760  test_varargs_macros ();
7761
7762  // Check flexible array members.
7763  struct incomplete_array *ia =
7764    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7765  ia->datasize = 10;
7766  for (int i = 0; i < ia->datasize; ++i)
7767    ia->data[i] = i * 1.234;
7768
7769  // Check named initializers.
7770  struct named_init ni = {
7771    .number = 34,
7772    .name = L"Test wide string",
7773    .average = 543.34343,
7774  };
7775
7776  ni.number = 58;
7777
7778  int dynamic_array[ni.number];
7779  dynamic_array[ni.number - 1] = 543;
7780
7781  // work around unused variable warnings
7782  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7783	  || dynamic_array[ni.number - 1] != 543);
7784
7785  ;
7786  return 0;
7787}
7788_ACEOF
7789for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7790do
7791  CC="$ac_save_CC $ac_arg"
7792  if ac_fn_c_try_compile "$LINENO"; then :
7793  ac_cv_prog_cc_c99=$ac_arg
7794fi
7795rm -f core conftest.err conftest.$ac_objext
7796  test "x$ac_cv_prog_cc_c99" != "xno" && break
7797done
7798rm -f conftest.$ac_ext
7799CC=$ac_save_CC
7800
7801fi
7802# AC_CACHE_VAL
7803case "x$ac_cv_prog_cc_c99" in
7804  x)
7805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7806$as_echo "none needed" >&6; } ;;
7807  xno)
7808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7809$as_echo "unsupported" >&6; } ;;
7810  *)
7811    CC="$CC $ac_cv_prog_cc_c99"
7812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7813$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7814esac
7815if test "x$ac_cv_prog_cc_c99" != xno; then :
7816
7817fi
7818
7819
7820if test "x$CC" != xcc; then
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7822$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7823else
7824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7825$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7826fi
7827set dummy $CC; ac_cc=`$as_echo "$2" |
7828		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7829if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834
7835int
7836main ()
7837{
7838
7839  ;
7840  return 0;
7841}
7842_ACEOF
7843# Make sure it works both with $CC and with simple cc.
7844# We do the test twice because some compilers refuse to overwrite an
7845# existing .o file with -o, though they will create one.
7846ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7847rm -f conftest2.*
7848if { { case "(($ac_try" in
7849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850  *) ac_try_echo=$ac_try;;
7851esac
7852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7853$as_echo "$ac_try_echo"; } >&5
7854  (eval "$ac_try") 2>&5
7855  ac_status=$?
7856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857  test $ac_status = 0; } &&
7858   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860  *) ac_try_echo=$ac_try;;
7861esac
7862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7863$as_echo "$ac_try_echo"; } >&5
7864  (eval "$ac_try") 2>&5
7865  ac_status=$?
7866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867  test $ac_status = 0; };
7868then
7869  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7870  if test "x$CC" != xcc; then
7871    # Test first that cc exists at all.
7872    if { ac_try='cc -c conftest.$ac_ext >&5'
7873  { { case "(($ac_try" in
7874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875  *) ac_try_echo=$ac_try;;
7876esac
7877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7878$as_echo "$ac_try_echo"; } >&5
7879  (eval "$ac_try") 2>&5
7880  ac_status=$?
7881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882  test $ac_status = 0; }; }; then
7883      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7884      rm -f conftest2.*
7885      if { { case "(($ac_try" in
7886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887  *) ac_try_echo=$ac_try;;
7888esac
7889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7890$as_echo "$ac_try_echo"; } >&5
7891  (eval "$ac_try") 2>&5
7892  ac_status=$?
7893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894  test $ac_status = 0; } &&
7895	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897  *) ac_try_echo=$ac_try;;
7898esac
7899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7900$as_echo "$ac_try_echo"; } >&5
7901  (eval "$ac_try") 2>&5
7902  ac_status=$?
7903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904  test $ac_status = 0; };
7905      then
7906	# cc works too.
7907	:
7908      else
7909	# cc exists but doesn't like -o.
7910	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7911      fi
7912    fi
7913  fi
7914else
7915  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7916fi
7917rm -f core conftest*
7918
7919fi
7920if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7922$as_echo "yes" >&6; }
7923else
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926
7927$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7928
7929fi
7930
7931# FIXME: we rely on the cache variable name because
7932# there is no other way.
7933set dummy $CC
7934am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7935eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7936if test "$am_t" != yes; then
7937   # Losing compiler, so override with the script.
7938   # FIXME: It is wrong to rewrite CC.
7939   # But if we don't then we get into trouble of one sort or another.
7940   # A longer-term fix would be to have automake use am__CC in this case,
7941   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7942   CC="$am_aux_dir/compile $CC"
7943fi
7944
7945
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7947$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7948if ${ac_cv_cflags_warn_all+:} false; then :
7949  $as_echo_n "(cached) " >&6
7950else
7951  ac_cv_cflags_warn_all="no, unknown"
7952 ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958 ac_save_CFLAGS="$CFLAGS"
7959for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
7960do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963
7964int
7965main ()
7966{
7967
7968  ;
7969  return 0;
7970}
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"; then :
7973  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7974fi
7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976done
7977 CFLAGS="$ac_save_CFLAGS"
7978 ac_ext=c
7979ac_cpp='$CPP $CPPFLAGS'
7980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7987$as_echo "$ac_cv_cflags_warn_all" >&6; }
7988case ".$ac_cv_cflags_warn_all" in
7989     .ok|.ok,*)  ;;
7990   .|.no|.no,*)
7991 ;;
7992   *)
7993   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7994   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7995  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7996  ac_status=$?
7997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998  test $ac_status = 0; }
7999   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8000  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8001  ac_status=$?
8002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8003  test $ac_status = 0; }
8004                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8005   fi
8006 ;;
8007esac
8008
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8010$as_echo_n "checking for C compiler vendor... " >&6; }
8011if ${ax_cv_c_compiler_vendor+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  # note: don't check for gcc first since some other compilers define __GNUC__
8015  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
8016           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
8017           pathscale: __PATHCC__,__PATHSCALE__
8018           clang:     __clang__
8019           gnu:       __GNUC__
8020           sun:       __SUNPRO_C,__SUNPRO_CC
8021           hp:        __HP_cc,__HP_aCC
8022           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8023           borland:   __BORLANDC__,__TURBOC__
8024           comeau:    __COMO__
8025           cray:      _CRAYC
8026           kai:       __KCC
8027           lcc:       __LCC__
8028           sgi:       __sgi,sgi
8029           microsoft: _MSC_VER
8030           metrowerks: __MWERKS__
8031           watcom:    __WATCOMC__
8032           portland:  __PGI
8033           unknown:   UNKNOWN"
8034  for ventest in $vendors; do
8035    case $ventest in
8036      *:) vendor=$ventest; continue ;;
8037      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8038    esac
8039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041
8042int
8043main ()
8044{
8045
8046      #if !($vencpp)
8047        thisisanerror;
8048      #endif
8049
8050  ;
8051  return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_compile "$LINENO"; then :
8055  break
8056fi
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058  done
8059  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8060
8061fi
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8063$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8064
8065
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8067$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8068set x ${MAKE-make}
8069ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8070if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat >conftest.make <<\_ACEOF
8074SHELL = /bin/sh
8075all:
8076	@echo '@@@%%%=$(MAKE)=@@@%%%'
8077_ACEOF
8078# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8079case `${MAKE-make} -f conftest.make 2>/dev/null` in
8080  *@@@%%%=?*=@@@%%%*)
8081    eval ac_cv_prog_make_${ac_make}_set=yes;;
8082  *)
8083    eval ac_cv_prog_make_${ac_make}_set=no;;
8084esac
8085rm -f conftest.make
8086fi
8087if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8089$as_echo "yes" >&6; }
8090  SET_MAKE=
8091else
8092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
8094  SET_MAKE="MAKE=${MAKE-make}"
8095fi
8096
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8098$as_echo_n "checking whether ln -s works... " >&6; }
8099LN_S=$as_ln_s
8100if test "$LN_S" = "ln -s"; then
8101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8102$as_echo "yes" >&6; }
8103else
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8105$as_echo "no, using $LN_S" >&6; }
8106fi
8107
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8109$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8110if ${ac_cv_path_SED+:} false; then :
8111  $as_echo_n "(cached) " >&6
8112else
8113            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8114     for ac_i in 1 2 3 4 5 6 7; do
8115       ac_script="$ac_script$as_nl$ac_script"
8116     done
8117     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8118     { ac_script=; unset ac_script;}
8119     if test -z "$SED"; then
8120  ac_path_SED_found=false
8121  # Loop through the user's path and test for each of PROGNAME-LIST
8122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  test -z "$as_dir" && as_dir=.
8127    for ac_prog in sed gsed; do
8128    for ac_exec_ext in '' $ac_executable_extensions; do
8129      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8130      as_fn_executable_p "$ac_path_SED" || continue
8131# Check for GNU ac_path_SED and select it if it is found.
8132  # Check for GNU $ac_path_SED
8133case `"$ac_path_SED" --version 2>&1` in
8134*GNU*)
8135  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8136*)
8137  ac_count=0
8138  $as_echo_n 0123456789 >"conftest.in"
8139  while :
8140  do
8141    cat "conftest.in" "conftest.in" >"conftest.tmp"
8142    mv "conftest.tmp" "conftest.in"
8143    cp "conftest.in" "conftest.nl"
8144    $as_echo '' >> "conftest.nl"
8145    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8146    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8147    as_fn_arith $ac_count + 1 && ac_count=$as_val
8148    if test $ac_count -gt ${ac_path_SED_max-0}; then
8149      # Best one so far, save it but keep looking for a better one
8150      ac_cv_path_SED="$ac_path_SED"
8151      ac_path_SED_max=$ac_count
8152    fi
8153    # 10*(2^10) chars as input seems more than enough
8154    test $ac_count -gt 10 && break
8155  done
8156  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8157esac
8158
8159      $ac_path_SED_found && break 3
8160    done
8161  done
8162  done
8163IFS=$as_save_IFS
8164  if test -z "$ac_cv_path_SED"; then
8165    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8166  fi
8167else
8168  ac_cv_path_SED=$SED
8169fi
8170
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8173$as_echo "$ac_cv_path_SED" >&6; }
8174 SED="$ac_cv_path_SED"
8175  rm -f conftest.sed
8176
8177for ac_prog in gawk mawk nawk awk
8178do
8179  # Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182$as_echo_n "checking for $ac_word... " >&6; }
8183if ${ac_cv_prog_AWK+:} false; then :
8184  $as_echo_n "(cached) " >&6
8185else
8186  if test -n "$AWK"; then
8187  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8188else
8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192  IFS=$as_save_IFS
8193  test -z "$as_dir" && as_dir=.
8194    for ac_exec_ext in '' $ac_executable_extensions; do
8195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196    ac_cv_prog_AWK="$ac_prog"
8197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198    break 2
8199  fi
8200done
8201  done
8202IFS=$as_save_IFS
8203
8204fi
8205fi
8206AWK=$ac_cv_prog_AWK
8207if test -n "$AWK"; then
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8209$as_echo "$AWK" >&6; }
8210else
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8213fi
8214
8215
8216  test -n "$AWK" && break
8217done
8218
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8220$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8221
8222# Check whether --with-dmalloc was given.
8223if test "${with_dmalloc+set}" = set; then :
8224  withval=$with_dmalloc; if test "$withval" = yes; then
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8226$as_echo "yes" >&6; }
8227
8228$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8229
8230  LIBS="$LIBS -ldmalloc"
8231  LDFLAGS="$LDFLAGS -g"
8232else
8233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
8235fi
8236else
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
8239fi
8240
8241
8242
8243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8244$as_echo_n "checking for __attribute__... " >&6; }
8245if ${ax_cv___attribute__+:} false; then :
8246  $as_echo_n "(cached) " >&6
8247else
8248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249/* end confdefs.h.  */
8250#include <stdlib.h>
8251	  static void foo(void) __attribute__ ((__unused__));
8252	  static void
8253	  foo(void) {
8254	      exit(1);
8255	  }
8256
8257int
8258main ()
8259{
8260
8261  ;
8262  return 0;
8263}
8264_ACEOF
8265if ac_fn_c_try_compile "$LINENO"; then :
8266  ax_cv___attribute__=yes
8267else
8268  ax_cv___attribute__=no
8269
8270fi
8271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8275$as_echo "$ax_cv___attribute__" >&6; }
8276  if test "$ax_cv___attribute__" = "yes"; then
8277
8278$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8279
8280  fi
8281
8282
8283
8284
8285
8286# Check whether --with-gcc-arch was given.
8287if test "${with_gcc_arch+set}" = set; then :
8288  withval=$with_gcc_arch; ax_gcc_arch=$withval
8289else
8290  ax_gcc_arch=no
8291fi
8292
8293
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8295$as_echo_n "checking for gcc architecture flag... " >&6; }
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8297$as_echo "" >&6; }
8298if ${ax_cv_gcc_archflag+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301
8302ax_cv_gcc_archflag="unknown"
8303
8304if test "$GCC" = yes; then
8305
8306if test "x$ax_gcc_arch" = xyes; then
8307ax_gcc_arch=""
8308if test "$cross_compiling" = no; then
8309case $host_cpu in
8310  i[3456]86*|x86_64*) # use cpuid codes
8311
8312ac_ext=c
8313ac_cpp='$CPP $CPPFLAGS'
8314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8319$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8320if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  if test "$cross_compiling" = yes; then :
8324  ax_cv_gcc_x86_cpuid_0=unknown
8325else
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328#include <stdio.h>
8329int
8330main ()
8331{
8332
8333     int op = 0, eax, ebx, ecx, edx;
8334     FILE *f;
8335      __asm__("cpuid"
8336        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8337        : "a" (op));
8338     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8339     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8340     fclose(f);
8341     return 0;
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_run "$LINENO"; then :
8348  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8349else
8350  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8351fi
8352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8353  conftest.$ac_objext conftest.beam conftest.$ac_ext
8354fi
8355
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8358$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8359ac_ext=c
8360ac_cpp='$CPP $CPPFLAGS'
8361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365
8366
8367ac_ext=c
8368ac_cpp='$CPP $CPPFLAGS'
8369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8374$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8375if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8376  $as_echo_n "(cached) " >&6
8377else
8378  if test "$cross_compiling" = yes; then :
8379  ax_cv_gcc_x86_cpuid_1=unknown
8380else
8381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383#include <stdio.h>
8384int
8385main ()
8386{
8387
8388     int op = 1, eax, ebx, ecx, edx;
8389     FILE *f;
8390      __asm__("cpuid"
8391        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8392        : "a" (op));
8393     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8394     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8395     fclose(f);
8396     return 0;
8397
8398  ;
8399  return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_run "$LINENO"; then :
8403  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8404else
8405  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8406fi
8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408  conftest.$ac_objext conftest.beam conftest.$ac_ext
8409fi
8410
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8413$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420
8421     case $ax_cv_gcc_x86_cpuid_0 in
8422       *:756e6547:*:*) # Intel
8423          case $ax_cv_gcc_x86_cpuid_1 in
8424	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8425	    *5??:*:*:*) ax_gcc_arch=pentium ;;
8426	    *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8427	    *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8428	    *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8429	    *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8430	    *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8431	    *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8432	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8433	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8434	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8435	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8436	    *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8437	    *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8438	    ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8439		case $host_cpu in
8440	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8441	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8442	        esac ;;
8443	    ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8444          esac ;;
8445       *:68747541:*:*) # AMD
8446          case $ax_cv_gcc_x86_cpuid_1 in
8447	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8448	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8449	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8450	    *60?:*:*:*) ax_gcc_arch=k7 ;;
8451	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8452	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8453	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8454	    *6[68a]?:*:*:*)
8455
8456ac_ext=c
8457ac_cpp='$CPP $CPPFLAGS'
8458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8460ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8463$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8464if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8465  $as_echo_n "(cached) " >&6
8466else
8467  if test "$cross_compiling" = yes; then :
8468  ax_cv_gcc_x86_cpuid_0x80000006=unknown
8469else
8470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h.  */
8472#include <stdio.h>
8473int
8474main ()
8475{
8476
8477     int op = 0x80000006, eax, ebx, ecx, edx;
8478     FILE *f;
8479      __asm__("cpuid"
8480        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8481        : "a" (op));
8482     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8483     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8484     fclose(f);
8485     return 0;
8486
8487  ;
8488  return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_run "$LINENO"; then :
8492  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8493else
8494  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8495fi
8496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8497  conftest.$ac_objext conftest.beam conftest.$ac_ext
8498fi
8499
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8502$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8503ac_ext=c
8504ac_cpp='$CPP $CPPFLAGS'
8505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509 # L2 cache size
8510	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
8511                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8512			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8513                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8514	       esac ;;
8515	    ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8516	    ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8517	    ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8518	    ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8519	    ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8520	    ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8521	    *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8522          esac ;;
8523	*:746e6543:*:*) # IDT
8524	   case $ax_cv_gcc_x86_cpuid_1 in
8525	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8526	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8527	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8528	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8529	   esac ;;
8530     esac
8531     if test x"$ax_gcc_arch" = x; then # fallback
8532	case $host_cpu in
8533	  i586*) ax_gcc_arch=pentium ;;
8534	  i686*) ax_gcc_arch=pentiumpro ;;
8535        esac
8536     fi
8537     ;;
8538
8539  sparc*)
8540     # Extract the first word of "prtdiag", so it can be a program name with args.
8541set dummy prtdiag; ac_word=$2
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543$as_echo_n "checking for $ac_word... " >&6; }
8544if ${ac_cv_path_PRTDIAG+:} false; then :
8545  $as_echo_n "(cached) " >&6
8546else
8547  case $PRTDIAG in
8548  [\\/]* | ?:[\\/]*)
8549  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8550  ;;
8551  *)
8552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8554for as_dir in $as_dummy
8555do
8556  IFS=$as_save_IFS
8557  test -z "$as_dir" && as_dir=.
8558    for ac_exec_ext in '' $ac_executable_extensions; do
8559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8560    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562    break 2
8563  fi
8564done
8565  done
8566IFS=$as_save_IFS
8567
8568  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8569  ;;
8570esac
8571fi
8572PRTDIAG=$ac_cv_path_PRTDIAG
8573if test -n "$PRTDIAG"; then
8574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8575$as_echo "$PRTDIAG" >&6; }
8576else
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579fi
8580
8581
8582     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`
8583     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8584     case $cputype in
8585         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8586         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8587         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8588         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8589         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8590         *cypress*) ax_gcc_arch=cypress ;;
8591     esac ;;
8592
8593  alphaev5) ax_gcc_arch=ev5 ;;
8594  alphaev56) ax_gcc_arch=ev56 ;;
8595  alphapca56) ax_gcc_arch="pca56 ev56" ;;
8596  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8597  alphaev6) ax_gcc_arch=ev6 ;;
8598  alphaev67) ax_gcc_arch=ev67 ;;
8599  alphaev68) ax_gcc_arch="ev68 ev67" ;;
8600  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8601  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8602  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8603
8604  powerpc*)
8605     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`
8606     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8607     case $cputype in
8608       *750*) ax_gcc_arch="750 G3" ;;
8609       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8610       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8611       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8612       *970*) ax_gcc_arch="970 G5 power4";;
8613       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8614       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8615       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8616       *) ax_gcc_arch=$cputype ;;
8617     esac
8618     ax_gcc_arch="$ax_gcc_arch powerpc"
8619     ;;
8620esac
8621fi # not cross-compiling
8622fi # guess arch
8623
8624if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8625for arch in $ax_gcc_arch; do
8626  if test "xno" = xyes; then # if we require portable code
8627    flags="-mtune=$arch"
8628    # -mcpu=$arch and m$arch generate nonportable code on every arch except
8629    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
8630    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8631  else
8632    flags="-march=$arch -mcpu=$arch -m$arch"
8633  fi
8634  for flag in $flags; do
8635    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8637$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8638if eval \${$as_CACHEVAR+:} false; then :
8639  $as_echo_n "(cached) " >&6
8640else
8641
8642  ax_check_save_flags=$CFLAGS
8643  CFLAGS="$CFLAGS  $flag"
8644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h.  */
8646
8647int
8648main ()
8649{
8650
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655if ac_fn_c_try_compile "$LINENO"; then :
8656  eval "$as_CACHEVAR=yes"
8657else
8658  eval "$as_CACHEVAR=no"
8659fi
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661  CFLAGS=$ax_check_save_flags
8662fi
8663eval ac_res=\$$as_CACHEVAR
8664	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8665$as_echo "$ac_res" >&6; }
8666if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8667  ax_cv_gcc_archflag=$flag; break
8668else
8669  :
8670fi
8671
8672  done
8673  test "x$ax_cv_gcc_archflag" = xunknown || break
8674done
8675fi
8676
8677fi # $GCC=yes
8678
8679fi
8680
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8682$as_echo_n "checking for gcc architecture flag... " >&6; }
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8684$as_echo "$ax_cv_gcc_archflag" >&6; }
8685if test "x$ax_cv_gcc_archflag" = xunknown; then
8686  :
8687else
8688  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8689fi
8690
8691
8692
8693if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8694	if test -n "$ac_tool_prefix"; then
8695  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8696set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
8699if ${ac_cv_path_PKG_CONFIG+:} false; then :
8700  $as_echo_n "(cached) " >&6
8701else
8702  case $PKG_CONFIG in
8703  [\\/]* | ?:[\\/]*)
8704  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8705  ;;
8706  *)
8707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710  IFS=$as_save_IFS
8711  test -z "$as_dir" && as_dir=.
8712    for ac_exec_ext in '' $ac_executable_extensions; do
8713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716    break 2
8717  fi
8718done
8719  done
8720IFS=$as_save_IFS
8721
8722  ;;
8723esac
8724fi
8725PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8726if test -n "$PKG_CONFIG"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8728$as_echo "$PKG_CONFIG" >&6; }
8729else
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
8732fi
8733
8734
8735fi
8736if test -z "$ac_cv_path_PKG_CONFIG"; then
8737  ac_pt_PKG_CONFIG=$PKG_CONFIG
8738  # Extract the first word of "pkg-config", so it can be a program name with args.
8739set dummy pkg-config; ac_word=$2
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
8742if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  case $ac_pt_PKG_CONFIG in
8746  [\\/]* | ?:[\\/]*)
8747  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8748  ;;
8749  *)
8750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753  IFS=$as_save_IFS
8754  test -z "$as_dir" && as_dir=.
8755    for ac_exec_ext in '' $ac_executable_extensions; do
8756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759    break 2
8760  fi
8761done
8762  done
8763IFS=$as_save_IFS
8764
8765  ;;
8766esac
8767fi
8768ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8769if test -n "$ac_pt_PKG_CONFIG"; then
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8771$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8772else
8773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775fi
8776
8777  if test "x$ac_pt_PKG_CONFIG" = x; then
8778    PKG_CONFIG=""
8779  else
8780    case $cross_compiling:$ac_tool_warned in
8781yes:)
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8784ac_tool_warned=yes ;;
8785esac
8786    PKG_CONFIG=$ac_pt_PKG_CONFIG
8787  fi
8788else
8789  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8790fi
8791
8792fi
8793if test -n "$PKG_CONFIG"; then
8794	_pkg_min_version=0.9.0
8795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8796$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8797	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799$as_echo "yes" >&6; }
8800	else
8801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803		PKG_CONFIG=""
8804	fi
8805
8806fi
8807
8808# Check for linker script support
8809
8810  # Check whether --enable-ld-version-script was given.
8811if test "${enable_ld_version_script+set}" = set; then :
8812  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8813fi
8814
8815  if test -z "$have_ld_version_script"; then
8816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8817$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8818    save_LDFLAGS="$LDFLAGS"
8819    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8820    cat > conftest.map <<EOF
8821foo
8822EOF
8823    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825
8826int
8827main ()
8828{
8829
8830  ;
8831  return 0;
8832}
8833_ACEOF
8834if ac_fn_c_try_link "$LINENO"; then :
8835  accepts_syntax_errors=yes
8836else
8837  accepts_syntax_errors=no
8838fi
8839rm -f core conftest.err conftest.$ac_objext \
8840    conftest$ac_exeext conftest.$ac_ext
8841    if test "$accepts_syntax_errors" = no; then
8842      cat > conftest.map <<EOF
8843VERS_1 {
8844        global: sym;
8845};
8846
8847VERS_2 {
8848        global: sym;
8849} VERS_1;
8850EOF
8851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853
8854int
8855main ()
8856{
8857
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862if ac_fn_c_try_link "$LINENO"; then :
8863  have_ld_version_script=yes
8864else
8865  have_ld_version_script=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext \
8868    conftest$ac_exeext conftest.$ac_ext
8869    else
8870      have_ld_version_script=no
8871    fi
8872    rm -f conftest.map
8873    LDFLAGS="$save_LDFLAGS"
8874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8875$as_echo "$have_ld_version_script" >&6; }
8876  fi
8877   if test "$have_ld_version_script" = "yes"; then
8878  HAVE_LD_VERSION_SCRIPT_TRUE=
8879  HAVE_LD_VERSION_SCRIPT_FALSE='#'
8880else
8881  HAVE_LD_VERSION_SCRIPT_TRUE='#'
8882  HAVE_LD_VERSION_SCRIPT_FALSE=
8883fi
8884
8885
8886
8887#
8888# Enable run-time checking.
8889#
8890# Check whether --enable-bounds-checking was given.
8891if test "${enable_bounds_checking+set}" = set; then :
8892  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8893else
8894  enable_bounds_checking='no'
8895fi
8896
8897
8898if test "$enable_bounds_checking" = yes; then
8899
8900$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8901
8902fi
8903
8904#
8905# Tests for Windows
8906#
8907
8908
8909
8910GDI32_LIBS=''
8911native_win32_build='no'
8912cygwin_build='no'
8913case "${host_os}" in
8914    cygwin* )
8915        cygwin_build='yes'
8916        GDI32_LIBS='-lgdi32'
8917    ;;
8918    mingw* )
8919        native_win32_build='yes'
8920        GDI32_LIBS='-lgdi32'
8921    ;;
8922esac
8923if test "${GDI32_LIBS}x" != 'x'; then
8924
8925$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8926
8927fi
8928
8929 if test "${GDI32_LIBS}x" != 'x' ; then
8930  WINGDI32_DELEGATE_TRUE=
8931  WINGDI32_DELEGATE_FALSE='#'
8932else
8933  WINGDI32_DELEGATE_TRUE='#'
8934  WINGDI32_DELEGATE_FALSE=
8935fi
8936
8937 if test "${native_win32_build}" = 'yes' ; then
8938  WIN32_NATIVE_BUILD_TRUE=
8939  WIN32_NATIVE_BUILD_FALSE='#'
8940else
8941  WIN32_NATIVE_BUILD_TRUE='#'
8942  WIN32_NATIVE_BUILD_FALSE=
8943fi
8944
8945 if test "${cygwin_build}" = 'yes' ; then
8946  CYGWIN_BUILD_TRUE=
8947  CYGWIN_BUILD_FALSE='#'
8948else
8949  CYGWIN_BUILD_TRUE='#'
8950  CYGWIN_BUILD_FALSE=
8951fi
8952
8953 if test "x${CC}" = 'xcl.exe' ; then
8954  USING_CL_TRUE=
8955  USING_CL_FALSE='#'
8956else
8957  USING_CL_TRUE='#'
8958  USING_CL_FALSE=
8959fi
8960
8961
8962WinPathScript="${srcdirfull}/winpath.sh"
8963
8964
8965#
8966# Compiler flags tweaks
8967#
8968if test "${GCC}" != "yes"; then
8969    case "${host}" in
8970        *-*-hpux* )
8971            # aCC: HP ANSI C++ B3910B A.03.34
8972            CFLAGS="${CFLAGS} -Wp,-H30000"
8973            if test -n "${CXXFLAGS}"; then
8974                CXXFLAGS='-AA'
8975            else
8976                CXXFLAGS="${CXXFLAGS} -AA"
8977            fi
8978        ;;
8979        *-dec-osf5.* )
8980            # Compaq alphaev68-dec-osf5.1 compiler
8981            if test -n "${CXXFLAGS}"; then
8982                CXXFLAGS='-std strict_ansi -noimplicit_include'
8983            else
8984                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8985            fi
8986  esac
8987fi
8988
8989# Check for lazy-loading.
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8991$as_echo_n "checking for linker lazyload option... " >&6; }
8992if ${im_cv_ld_lazyload+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995
8996im_cv_ld_lazyload='none'
8997case "${host}" in
8998  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8999    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9000       im_cv_ld_lazyload='-Wl,-zlazyload'
9001    fi
9002    ;;
9003esac
9004
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
9007$as_echo "$im_cv_ld_lazyload" >&6; }
9008if test "${im_cv_ld_lazyload}" != 'none' ; then
9009  if test -z "${LDFLAGS}" ; then
9010    LDFLAGS="${im_cv_ld_lazyload}"
9011  else
9012    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9013  fi
9014fi
9015
9016case "$host" in
9017  *darwin* | *-macos10*)
9018        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
9019        # Check whether --enable-osx-universal-binary was given.
9020if test "${enable_osx_universal_binary+set}" = set; then :
9021  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9022else
9023  build_osxuniversal=no
9024fi
9025
9026
9027    if test "${build_osxuniversal}" != no ; then
9028      if test "$enable_dependency_tracking" != no ; then
9029        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
9030Please re-run configure with these options:
9031  --disable-dependency-tracking --enable-osx-universal-binary
9032        " "$LINENO" 5
9033      fi
9034      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9035      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9036      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9037  fi
9038  ;;
9039esac
9040
9041#
9042# ARCH specific include directory
9043#
9044
9045# Check whether --with-includearch-dir was given.
9046if test "${with_includearch_dir+set}" = set; then :
9047  withval=$with_includearch_dir; includearch_dir=$withval
9048else
9049  includearch_dir=$INCLUDE_DIR
9050fi
9051
9052
9053eval "eval INCLUDEARCH_DIR=$includearch_dir"
9054
9055
9056#
9057# ARCH specific configuration directory
9058#
9059
9060# Check whether --with-sharearch-dir was given.
9061if test "${with_sharearch_dir+set}" = set; then :
9062  withval=$with_sharearch_dir; sharearch_dir=$withval
9063else
9064  sharearch_dir="${LIB_DIR}"
9065fi
9066
9067
9068eval "eval SHAREARCH_DIR=$sharearch_dir"
9069
9070
9071# Path to the pkgconfig folder
9072
9073# Check whether --with-pkgconfigdir was given.
9074if test "${with_pkgconfigdir+set}" = set; then :
9075  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9076else
9077  pkgconfigdir='${libdir}/pkgconfig'
9078fi
9079
9080
9081
9082#
9083# Enable support for threads
9084
9085# Check whether --with-threads was given.
9086if test "${with_threads+set}" = set; then :
9087  withval=$with_threads; with_threads=$withval
9088else
9089  with_threads='yes'
9090fi
9091
9092
9093have_threads=no
9094if test "$with_threads" != 'no'; then
9095
9096
9097ac_ext=c
9098ac_cpp='$CPP $CPPFLAGS'
9099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101ac_compiler_gnu=$ac_cv_c_compiler_gnu
9102
9103ax_pthread_ok=no
9104
9105# We used to check for pthread.h first, but this fails if pthread.h
9106# requires special compiler flags (e.g. on True64 or Sequent).
9107# It gets checked for in the link test anyway.
9108
9109# First of all, check if the user has set any of the PTHREAD_LIBS,
9110# etcetera environment variables, and if threads linking works using
9111# them:
9112if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9113        save_CFLAGS="$CFLAGS"
9114        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9115        save_LIBS="$LIBS"
9116        LIBS="$PTHREAD_LIBS $LIBS"
9117        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9118$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9119        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h.  */
9121
9122/* Override any GCC internal prototype to avoid an error.
9123   Use char because int might match the return type of a GCC
9124   builtin and then its argument prototype would still apply.  */
9125#ifdef __cplusplus
9126extern "C"
9127#endif
9128char pthread_join ();
9129int
9130main ()
9131{
9132return pthread_join ();
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137if ac_fn_c_try_link "$LINENO"; then :
9138  ax_pthread_ok=yes
9139fi
9140rm -f core conftest.err conftest.$ac_objext \
9141    conftest$ac_exeext conftest.$ac_ext
9142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9143$as_echo "$ax_pthread_ok" >&6; }
9144        if test x"$ax_pthread_ok" = xno; then
9145                PTHREAD_LIBS=""
9146                PTHREAD_CFLAGS=""
9147        fi
9148        LIBS="$save_LIBS"
9149        CFLAGS="$save_CFLAGS"
9150fi
9151
9152# We must check for the threads library under a number of different
9153# names; the ordering is very important because some systems
9154# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9155# libraries is broken (non-POSIX).
9156
9157# Create a list of thread flags to try.  Items starting with a "-" are
9158# C compiler flags, and other items are library names, except for "none"
9159# which indicates that we try without any flags at all, and "pthread-config"
9160# which is a program returning the flags for the Pth emulation library.
9161
9162ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9163
9164# The ordering *is* (sometimes) important.  Some notes on the
9165# individual items follow:
9166
9167# pthreads: AIX (must check this before -lpthread)
9168# none: in case threads are in libc; should be tried before -Kthread and
9169#       other compiler flags to prevent continual compiler warnings
9170# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9171# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9172# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9173# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9174# -pthreads: Solaris/gcc
9175# -mthreads: Mingw32/gcc, Lynx/gcc
9176# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9177#      doesn't hurt to check since this sometimes defines pthreads too;
9178#      also defines -D_REENTRANT)
9179#      ... -mt is also the pthreads flag for HP/aCC
9180# pthread: Linux, etcetera
9181# --thread-safe: KAI C++
9182# pthread-config: use pthread-config program (for GNU Pth library)
9183
9184case ${host_os} in
9185        solaris*)
9186
9187        # On Solaris (at least, for some versions), libc contains stubbed
9188        # (non-functional) versions of the pthreads routines, so link-based
9189        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9190        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9191        # a function called by this macro, so we could check for that, but
9192        # who knows whether they'll stub that too in a future libc.)  So,
9193        # we'll just look for -pthreads and -lpthread first:
9194
9195        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9196        ;;
9197
9198        darwin*)
9199        ax_pthread_flags="-pthread $ax_pthread_flags"
9200        ;;
9201esac
9202
9203if test x"$ax_pthread_ok" = xno; then
9204for flag in $ax_pthread_flags; do
9205
9206        case $flag in
9207                none)
9208                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9209$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9210                ;;
9211
9212                -*)
9213                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9214$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9215                PTHREAD_CFLAGS="$flag"
9216                ;;
9217
9218                pthread-config)
9219                # Extract the first word of "pthread-config", so it can be a program name with args.
9220set dummy pthread-config; ac_word=$2
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222$as_echo_n "checking for $ac_word... " >&6; }
9223if ${ac_cv_prog_ax_pthread_config+:} false; then :
9224  $as_echo_n "(cached) " >&6
9225else
9226  if test -n "$ax_pthread_config"; then
9227  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9228else
9229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230for as_dir in $PATH
9231do
9232  IFS=$as_save_IFS
9233  test -z "$as_dir" && as_dir=.
9234    for ac_exec_ext in '' $ac_executable_extensions; do
9235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9236    ac_cv_prog_ax_pthread_config="yes"
9237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238    break 2
9239  fi
9240done
9241  done
9242IFS=$as_save_IFS
9243
9244  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9245fi
9246fi
9247ax_pthread_config=$ac_cv_prog_ax_pthread_config
9248if test -n "$ax_pthread_config"; then
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9250$as_echo "$ax_pthread_config" >&6; }
9251else
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253$as_echo "no" >&6; }
9254fi
9255
9256
9257                if test x"$ax_pthread_config" = xno; then continue; fi
9258                PTHREAD_CFLAGS="`pthread-config --cflags`"
9259                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9260                ;;
9261
9262                *)
9263                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9264$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9265                PTHREAD_LIBS="-l$flag"
9266                ;;
9267        esac
9268
9269        save_LIBS="$LIBS"
9270        save_CFLAGS="$CFLAGS"
9271        LIBS="$PTHREAD_LIBS $LIBS"
9272        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9273
9274        # Check for various functions.  We must include pthread.h,
9275        # since some functions may be macros.  (On the Sequent, we
9276        # need a special flag -Kthread to make this header compile.)
9277        # We check for pthread_join because it is in -lpthread on IRIX
9278        # while pthread_create is in libc.  We check for pthread_attr_init
9279        # due to DEC craziness with -lpthreads.  We check for
9280        # pthread_cleanup_push because it is one of the few pthread
9281        # functions on Solaris that doesn't have a non-functional libc stub.
9282        # We try pthread_create on general principles.
9283        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h.  */
9285#include <pthread.h>
9286                        static void routine(void *a) { a = 0; }
9287                        static void *start_routine(void *a) { return a; }
9288int
9289main ()
9290{
9291pthread_t th; pthread_attr_t attr;
9292                        pthread_create(&th, 0, start_routine, 0);
9293                        pthread_join(th, 0);
9294                        pthread_attr_init(&attr);
9295                        pthread_cleanup_push(routine, 0);
9296                        pthread_cleanup_pop(0) /* ; */
9297  ;
9298  return 0;
9299}
9300_ACEOF
9301if ac_fn_c_try_link "$LINENO"; then :
9302  ax_pthread_ok=yes
9303fi
9304rm -f core conftest.err conftest.$ac_objext \
9305    conftest$ac_exeext conftest.$ac_ext
9306
9307        LIBS="$save_LIBS"
9308        CFLAGS="$save_CFLAGS"
9309
9310        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9311$as_echo "$ax_pthread_ok" >&6; }
9312        if test "x$ax_pthread_ok" = xyes; then
9313                break;
9314        fi
9315
9316        PTHREAD_LIBS=""
9317        PTHREAD_CFLAGS=""
9318done
9319fi
9320
9321# Various other checks:
9322if test "x$ax_pthread_ok" = xyes; then
9323        save_LIBS="$LIBS"
9324        LIBS="$PTHREAD_LIBS $LIBS"
9325        save_CFLAGS="$CFLAGS"
9326        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9327
9328        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9329        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9330$as_echo_n "checking for joinable pthread attribute... " >&6; }
9331        attr_name=unknown
9332        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9333            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335#include <pthread.h>
9336int
9337main ()
9338{
9339int attr = $attr; return attr /* ; */
9340  ;
9341  return 0;
9342}
9343_ACEOF
9344if ac_fn_c_try_link "$LINENO"; then :
9345  attr_name=$attr; break
9346fi
9347rm -f core conftest.err conftest.$ac_objext \
9348    conftest$ac_exeext conftest.$ac_ext
9349        done
9350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9351$as_echo "$attr_name" >&6; }
9352        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9353
9354cat >>confdefs.h <<_ACEOF
9355#define PTHREAD_CREATE_JOINABLE $attr_name
9356_ACEOF
9357
9358        fi
9359
9360        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9361$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9362        flag=no
9363        case ${host_os} in
9364            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9365            osf* | hpux*) flag="-D_REENTRANT";;
9366            solaris*)
9367            if test "$GCC" = "yes"; then
9368                flag="-D_REENTRANT"
9369            else
9370                flag="-mt -D_REENTRANT"
9371            fi
9372            ;;
9373        esac
9374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9375$as_echo "${flag}" >&6; }
9376        if test "x$flag" != xno; then
9377            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9378        fi
9379
9380        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9381$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9382if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385
9386                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h.  */
9388
9389                    #include <pthread.h>
9390int
9391main ()
9392{
9393int i = PTHREAD_PRIO_INHERIT;
9394  ;
9395  return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399  ax_cv_PTHREAD_PRIO_INHERIT=yes
9400else
9401  ax_cv_PTHREAD_PRIO_INHERIT=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext \
9404    conftest$ac_exeext conftest.$ac_ext
9405
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9408$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9409        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9410
9411$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9412
9413fi
9414
9415        LIBS="$save_LIBS"
9416        CFLAGS="$save_CFLAGS"
9417
9418        # More AIX lossage: compile with *_r variant
9419        if test "x$GCC" != xyes; then
9420            case $host_os in
9421                aix*)
9422                case "x/$CC" in #(
9423  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9424    #handle absolute path differently from PATH based program lookup
9425                   case "x$CC" in #(
9426  x/*) :
9427    if as_fn_executable_p ${CC}_r; then :
9428  PTHREAD_CC="${CC}_r"
9429fi ;; #(
9430  *) :
9431    for ac_prog in ${CC}_r
9432do
9433  # Extract the first word of "$ac_prog", so it can be a program name with args.
9434set dummy $ac_prog; ac_word=$2
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436$as_echo_n "checking for $ac_word... " >&6; }
9437if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  if test -n "$PTHREAD_CC"; then
9441  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9442else
9443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444for as_dir in $PATH
9445do
9446  IFS=$as_save_IFS
9447  test -z "$as_dir" && as_dir=.
9448    for ac_exec_ext in '' $ac_executable_extensions; do
9449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9450    ac_cv_prog_PTHREAD_CC="$ac_prog"
9451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452    break 2
9453  fi
9454done
9455  done
9456IFS=$as_save_IFS
9457
9458fi
9459fi
9460PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9461if test -n "$PTHREAD_CC"; then
9462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9463$as_echo "$PTHREAD_CC" >&6; }
9464else
9465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466$as_echo "no" >&6; }
9467fi
9468
9469
9470  test -n "$PTHREAD_CC" && break
9471done
9472test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9473 ;;
9474esac ;; #(
9475  *) :
9476     ;;
9477esac
9478                ;;
9479            esac
9480        fi
9481fi
9482
9483test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9484
9485
9486
9487
9488
9489# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9490if test x"$ax_pthread_ok" = xyes; then
9491
9492$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9493
9494        :
9495else
9496        ax_pthread_ok=no
9497
9498fi
9499ac_ext=c
9500ac_cpp='$CPP $CPPFLAGS'
9501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9503ac_compiler_gnu=$ac_cv_c_compiler_gnu
9504
9505
9506    if test "$ax_pthread_ok" = yes; then
9507        have_threads=yes
9508        DEF_THREAD="$PTHREAD_CFLAGS"
9509        CFLAGS="$CFLAGS $DEF_THREAD"
9510        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9511        if test "$CC" != "$PTHREAD_CC"; then
9512            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
9513$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9514            CC="$PTHREAD_CC"
9515        fi
9516
9517$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9518
9519    fi
9520fi
9521
9522# Enable support for OpenMP
9523if test "$have_threads" != 'yes'; then
9524  ac_cv_prog_c_openmp=unsupported
9525fi
9526
9527  OPENMP_CFLAGS=
9528  # Check whether --enable-openmp was given.
9529if test "${enable_openmp+set}" = set; then :
9530  enableval=$enable_openmp;
9531fi
9532
9533  if test "$enable_openmp" != no; then
9534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
9535$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
9536if ${ac_cv_prog_c_openmp+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541
9542#ifndef _OPENMP
9543 choke me
9544#endif
9545#include <omp.h>
9546int main () { return omp_get_num_threads (); }
9547
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"; then :
9550  ac_cv_prog_c_openmp='none needed'
9551else
9552  ac_cv_prog_c_openmp='unsupported'
9553	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9554                           -Popenmp --openmp; do
9555	    ac_save_CFLAGS=$CFLAGS
9556	    CFLAGS="$CFLAGS $ac_option"
9557	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559
9560#ifndef _OPENMP
9561 choke me
9562#endif
9563#include <omp.h>
9564int main () { return omp_get_num_threads (); }
9565
9566_ACEOF
9567if ac_fn_c_try_link "$LINENO"; then :
9568  ac_cv_prog_c_openmp=$ac_option
9569fi
9570rm -f core conftest.err conftest.$ac_objext \
9571    conftest$ac_exeext conftest.$ac_ext
9572	    CFLAGS=$ac_save_CFLAGS
9573	    if test "$ac_cv_prog_c_openmp" != unsupported; then
9574	      break
9575	    fi
9576	  done
9577fi
9578rm -f core conftest.err conftest.$ac_objext \
9579    conftest$ac_exeext conftest.$ac_ext
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
9582$as_echo "$ac_cv_prog_c_openmp" >&6; }
9583    case $ac_cv_prog_c_openmp in #(
9584      "none needed" | unsupported)
9585	;; #(
9586      *)
9587	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
9588    esac
9589  fi
9590
9591
9592CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9593MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9594
9595if test "$enable_openmp" != no; then
9596  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9597    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9598  fi
9599fi
9600
9601# Enable support for OpenCL
9602
9603
9604ac_ext=c
9605ac_cpp='$CPP $CPPFLAGS'
9606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609
9610ax_pthread_ok=no
9611
9612# We used to check for pthread.h first, but this fails if pthread.h
9613# requires special compiler flags (e.g. on True64 or Sequent).
9614# It gets checked for in the link test anyway.
9615
9616# First of all, check if the user has set any of the PTHREAD_LIBS,
9617# etcetera environment variables, and if threads linking works using
9618# them:
9619if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9620        save_CFLAGS="$CFLAGS"
9621        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9622        save_LIBS="$LIBS"
9623        LIBS="$PTHREAD_LIBS $LIBS"
9624        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9625$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9626        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628
9629/* Override any GCC internal prototype to avoid an error.
9630   Use char because int might match the return type of a GCC
9631   builtin and then its argument prototype would still apply.  */
9632#ifdef __cplusplus
9633extern "C"
9634#endif
9635char pthread_join ();
9636int
9637main ()
9638{
9639return pthread_join ();
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"; then :
9645  ax_pthread_ok=yes
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648    conftest$ac_exeext conftest.$ac_ext
9649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9650$as_echo "$ax_pthread_ok" >&6; }
9651        if test x"$ax_pthread_ok" = xno; then
9652                PTHREAD_LIBS=""
9653                PTHREAD_CFLAGS=""
9654        fi
9655        LIBS="$save_LIBS"
9656        CFLAGS="$save_CFLAGS"
9657fi
9658
9659# We must check for the threads library under a number of different
9660# names; the ordering is very important because some systems
9661# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9662# libraries is broken (non-POSIX).
9663
9664# Create a list of thread flags to try.  Items starting with a "-" are
9665# C compiler flags, and other items are library names, except for "none"
9666# which indicates that we try without any flags at all, and "pthread-config"
9667# which is a program returning the flags for the Pth emulation library.
9668
9669ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9670
9671# The ordering *is* (sometimes) important.  Some notes on the
9672# individual items follow:
9673
9674# pthreads: AIX (must check this before -lpthread)
9675# none: in case threads are in libc; should be tried before -Kthread and
9676#       other compiler flags to prevent continual compiler warnings
9677# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9678# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9679# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9680# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9681# -pthreads: Solaris/gcc
9682# -mthreads: Mingw32/gcc, Lynx/gcc
9683# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9684#      doesn't hurt to check since this sometimes defines pthreads too;
9685#      also defines -D_REENTRANT)
9686#      ... -mt is also the pthreads flag for HP/aCC
9687# pthread: Linux, etcetera
9688# --thread-safe: KAI C++
9689# pthread-config: use pthread-config program (for GNU Pth library)
9690
9691case ${host_os} in
9692        solaris*)
9693
9694        # On Solaris (at least, for some versions), libc contains stubbed
9695        # (non-functional) versions of the pthreads routines, so link-based
9696        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9697        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9698        # a function called by this macro, so we could check for that, but
9699        # who knows whether they'll stub that too in a future libc.)  So,
9700        # we'll just look for -pthreads and -lpthread first:
9701
9702        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9703        ;;
9704
9705        darwin*)
9706        ax_pthread_flags="-pthread $ax_pthread_flags"
9707        ;;
9708esac
9709
9710if test x"$ax_pthread_ok" = xno; then
9711for flag in $ax_pthread_flags; do
9712
9713        case $flag in
9714                none)
9715                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9716$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9717                ;;
9718
9719                -*)
9720                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9721$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9722                PTHREAD_CFLAGS="$flag"
9723                ;;
9724
9725                pthread-config)
9726                # Extract the first word of "pthread-config", so it can be a program name with args.
9727set dummy pthread-config; ac_word=$2
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729$as_echo_n "checking for $ac_word... " >&6; }
9730if ${ac_cv_prog_ax_pthread_config+:} false; then :
9731  $as_echo_n "(cached) " >&6
9732else
9733  if test -n "$ax_pthread_config"; then
9734  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9735else
9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737for as_dir in $PATH
9738do
9739  IFS=$as_save_IFS
9740  test -z "$as_dir" && as_dir=.
9741    for ac_exec_ext in '' $ac_executable_extensions; do
9742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743    ac_cv_prog_ax_pthread_config="yes"
9744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745    break 2
9746  fi
9747done
9748  done
9749IFS=$as_save_IFS
9750
9751  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9752fi
9753fi
9754ax_pthread_config=$ac_cv_prog_ax_pthread_config
9755if test -n "$ax_pthread_config"; then
9756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9757$as_echo "$ax_pthread_config" >&6; }
9758else
9759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760$as_echo "no" >&6; }
9761fi
9762
9763
9764                if test x"$ax_pthread_config" = xno; then continue; fi
9765                PTHREAD_CFLAGS="`pthread-config --cflags`"
9766                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9767                ;;
9768
9769                *)
9770                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9771$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9772                PTHREAD_LIBS="-l$flag"
9773                ;;
9774        esac
9775
9776        save_LIBS="$LIBS"
9777        save_CFLAGS="$CFLAGS"
9778        LIBS="$PTHREAD_LIBS $LIBS"
9779        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9780
9781        # Check for various functions.  We must include pthread.h,
9782        # since some functions may be macros.  (On the Sequent, we
9783        # need a special flag -Kthread to make this header compile.)
9784        # We check for pthread_join because it is in -lpthread on IRIX
9785        # while pthread_create is in libc.  We check for pthread_attr_init
9786        # due to DEC craziness with -lpthreads.  We check for
9787        # pthread_cleanup_push because it is one of the few pthread
9788        # functions on Solaris that doesn't have a non-functional libc stub.
9789        # We try pthread_create on general principles.
9790        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792#include <pthread.h>
9793                        static void routine(void *a) { a = 0; }
9794                        static void *start_routine(void *a) { return a; }
9795int
9796main ()
9797{
9798pthread_t th; pthread_attr_t attr;
9799                        pthread_create(&th, 0, start_routine, 0);
9800                        pthread_join(th, 0);
9801                        pthread_attr_init(&attr);
9802                        pthread_cleanup_push(routine, 0);
9803                        pthread_cleanup_pop(0) /* ; */
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809  ax_pthread_ok=yes
9810fi
9811rm -f core conftest.err conftest.$ac_objext \
9812    conftest$ac_exeext conftest.$ac_ext
9813
9814        LIBS="$save_LIBS"
9815        CFLAGS="$save_CFLAGS"
9816
9817        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9818$as_echo "$ax_pthread_ok" >&6; }
9819        if test "x$ax_pthread_ok" = xyes; then
9820                break;
9821        fi
9822
9823        PTHREAD_LIBS=""
9824        PTHREAD_CFLAGS=""
9825done
9826fi
9827
9828# Various other checks:
9829if test "x$ax_pthread_ok" = xyes; then
9830        save_LIBS="$LIBS"
9831        LIBS="$PTHREAD_LIBS $LIBS"
9832        save_CFLAGS="$CFLAGS"
9833        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9834
9835        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9836        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9837$as_echo_n "checking for joinable pthread attribute... " >&6; }
9838        attr_name=unknown
9839        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9840            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h.  */
9842#include <pthread.h>
9843int
9844main ()
9845{
9846int attr = $attr; return attr /* ; */
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852  attr_name=$attr; break
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855    conftest$ac_exeext conftest.$ac_ext
9856        done
9857        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9858$as_echo "$attr_name" >&6; }
9859        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9860
9861cat >>confdefs.h <<_ACEOF
9862#define PTHREAD_CREATE_JOINABLE $attr_name
9863_ACEOF
9864
9865        fi
9866
9867        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9868$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9869        flag=no
9870        case ${host_os} in
9871            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9872            osf* | hpux*) flag="-D_REENTRANT";;
9873            solaris*)
9874            if test "$GCC" = "yes"; then
9875                flag="-D_REENTRANT"
9876            else
9877                flag="-mt -D_REENTRANT"
9878            fi
9879            ;;
9880        esac
9881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9882$as_echo "${flag}" >&6; }
9883        if test "x$flag" != xno; then
9884            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9885        fi
9886
9887        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9888$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9889if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892
9893                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895
9896                    #include <pthread.h>
9897int
9898main ()
9899{
9900int i = PTHREAD_PRIO_INHERIT;
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906  ax_cv_PTHREAD_PRIO_INHERIT=yes
9907else
9908  ax_cv_PTHREAD_PRIO_INHERIT=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911    conftest$ac_exeext conftest.$ac_ext
9912
9913fi
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9915$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9916        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9917
9918$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9919
9920fi
9921
9922        LIBS="$save_LIBS"
9923        CFLAGS="$save_CFLAGS"
9924
9925        # More AIX lossage: compile with *_r variant
9926        if test "x$GCC" != xyes; then
9927            case $host_os in
9928                aix*)
9929                case "x/$CC" in #(
9930  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9931    #handle absolute path differently from PATH based program lookup
9932                   case "x$CC" in #(
9933  x/*) :
9934    if as_fn_executable_p ${CC}_r; then :
9935  PTHREAD_CC="${CC}_r"
9936fi ;; #(
9937  *) :
9938    for ac_prog in ${CC}_r
9939do
9940  # Extract the first word of "$ac_prog", so it can be a program name with args.
9941set dummy $ac_prog; ac_word=$2
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943$as_echo_n "checking for $ac_word... " >&6; }
9944if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  if test -n "$PTHREAD_CC"; then
9948  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9949else
9950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951for as_dir in $PATH
9952do
9953  IFS=$as_save_IFS
9954  test -z "$as_dir" && as_dir=.
9955    for ac_exec_ext in '' $ac_executable_extensions; do
9956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957    ac_cv_prog_PTHREAD_CC="$ac_prog"
9958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959    break 2
9960  fi
9961done
9962  done
9963IFS=$as_save_IFS
9964
9965fi
9966fi
9967PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9968if test -n "$PTHREAD_CC"; then
9969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9970$as_echo "$PTHREAD_CC" >&6; }
9971else
9972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973$as_echo "no" >&6; }
9974fi
9975
9976
9977  test -n "$PTHREAD_CC" && break
9978done
9979test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9980 ;;
9981esac ;; #(
9982  *) :
9983     ;;
9984esac
9985                ;;
9986            esac
9987        fi
9988fi
9989
9990test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9991
9992
9993
9994
9995
9996# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9997if test x"$ax_pthread_ok" = xyes; then
9998
9999$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10000
10001        :
10002else
10003        ax_pthread_ok=no
10004
10005fi
10006ac_ext=c
10007ac_cpp='$CPP $CPPFLAGS'
10008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010ac_compiler_gnu=$ac_cv_c_compiler_gnu
10011
10012
10013
10014# Check whether --enable-opencl was given.
10015if test "${enable_opencl+set}" = set; then :
10016  enableval=$enable_opencl; enable_opencl=$enableval
10017else
10018  enable_opencl='no'
10019fi
10020
10021
10022if test "$enable_opencl" = 'yes'; then
10023  ac_ext=c
10024ac_cpp='$CPP $CPPFLAGS'
10025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
10029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10030$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10031if ${ax_cv_c_compiler_ms+:} false; then :
10032  $as_echo_n "(cached) " >&6
10033else
10034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h.  */
10036
10037int
10038main ()
10039{
10040#ifndef _MSC_VER
10041       choke me
10042#endif
10043
10044  ;
10045  return 0;
10046}
10047_ACEOF
10048if ac_fn_c_try_compile "$LINENO"; then :
10049  ax_compiler_ms=yes
10050else
10051  ax_compiler_ms=no
10052fi
10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054ax_cv_c_compiler_ms=$ax_compiler_ms
10055
10056fi
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10058$as_echo "$ax_cv_c_compiler_ms" >&6; }
10059  if test X$ax_compiler_ms = Xno; then :
10060  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10061fi
10062
10063  ax_save_CPPFLAGS=$CPPFLAGS
10064  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10065  for ac_header in CL/cl.h OpenCL/cl.h
10066do :
10067  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10070  cat >>confdefs.h <<_ACEOF
10071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072_ACEOF
10073
10074fi
10075
10076done
10077
10078  CPPFLAGS=$ax_save_CPPFLAGS
10079
10080  for ac_header in windows.h
10081do :
10082  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10083if test "x$ac_cv_header_windows_h" = xyes; then :
10084  cat >>confdefs.h <<_ACEOF
10085#define HAVE_WINDOWS_H 1
10086_ACEOF
10087
10088fi
10089
10090done
10091
10092
10093
10094
10095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10096$as_echo_n "checking for OpenCL library... " >&6; }
10097if ${ax_cv_check_cl_libcl+:} false; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  ax_cv_check_cl_libcl=no
10101  case $host_cpu in
10102    x86_64) ax_check_cl_libdir=lib64 ;;
10103    *)      ax_check_cl_libdir=lib ;;
10104  esac
10105  ax_save_CPPFLAGS=$CPPFLAGS
10106  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10107  ax_save_LIBS=$LIBS
10108  LIBS=""
10109  ax_check_libs="-lOpenCL -lCL -lclparser"
10110  for ax_lib in $ax_check_libs; do
10111    if test X$ax_compiler_ms = Xyes; then :
10112  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10113else
10114  ax_try_lib=$ax_lib
10115fi
10116    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119
10120  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10121  #   include <windows.h>
10122  # endif
10123  # ifdef HAVE_CL_CL_H
10124  #   include <CL/cl.h>
10125  # elif defined(HAVE_OPENCL_CL_H)
10126  #   include <OpenCL/cl.h>
10127  # else
10128  #   error no CL.h
10129  # endif
10130int
10131main ()
10132{
10133clCreateContextFromType(0,0,0,0,0)
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"; then :
10139  ax_cv_check_cl_libcl=$ax_try_lib; break
10140else
10141  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"
10142                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144
10145  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10146  #   include <windows.h>
10147  # endif
10148  # ifdef HAVE_CL_CL_H
10149  #   include <CL/cl.h>
10150  # elif defined(HAVE_OPENCL_CL_H)
10151  #   include <OpenCL/cl.h>
10152  # else
10153  #   error no CL.h
10154  # endif
10155int
10156main ()
10157{
10158clCreateContextFromType(0,0,0,0,0)
10159  ;
10160  return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"; then :
10164  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10165else
10166  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"
10167                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169
10170  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10171  #   include <windows.h>
10172  # endif
10173  # ifdef HAVE_CL_CL_H
10174  #   include <CL/cl.h>
10175  # elif defined(HAVE_OPENCL_CL_H)
10176  #   include <OpenCL/cl.h>
10177  # else
10178  #   error no CL.h
10179  # endif
10180int
10181main ()
10182{
10183clCreateContextFromType(0,0,0,0,0)
10184  ;
10185  return 0;
10186}
10187_ACEOF
10188if ac_fn_c_try_link "$LINENO"; then :
10189  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10190fi
10191rm -f core conftest.err conftest.$ac_objext \
10192    conftest$ac_exeext conftest.$ac_ext
10193fi
10194rm -f core conftest.err conftest.$ac_objext \
10195    conftest$ac_exeext conftest.$ac_ext
10196fi
10197rm -f core conftest.err conftest.$ac_objext \
10198    conftest$ac_exeext conftest.$ac_ext
10199  done
10200
10201  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10202  LIBS='-Wl,-framework,OpenCL'
10203        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205
10206  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10207  #   include <windows.h>
10208  # endif
10209  # ifdef HAVE_CL_CL_H
10210  #   include <CL/cl.h>
10211  # elif defined(HAVE_OPENCL_CL_H)
10212  #   include <OpenCL/cl.h>
10213  # else
10214  #   error no CL.h
10215  # endif
10216int
10217main ()
10218{
10219clCreateContextFromType(0,0,0,0,0)
10220  ;
10221  return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225  ax_cv_check_cl_libcl=$LIBS
10226fi
10227rm -f core conftest.err conftest.$ac_objext \
10228    conftest$ac_exeext conftest.$ac_ext
10229fi
10230
10231  LIBS=$ax_save_LIBS
10232  CPPFLAGS=$ax_save_CPPFLAGS
10233fi
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10235$as_echo "$ax_cv_check_cl_libcl" >&6; }
10236
10237  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10238  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10239else
10240  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10241$as_echo "#define _OPENCL 1" >>confdefs.h
10242
10243fi
10244  ac_ext=c
10245ac_cpp='$CPP $CPPFLAGS'
10246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248ac_compiler_gnu=$ac_cv_c_compiler_gnu
10249
10250fi
10251
10252
10253
10254
10255CFLAGS="$CL_CFLAGS $CFLAGS"
10256LIBS="$CL_LIBS $LIBS"
10257
10258if test "$enable_opencl" != no; then
10259  if test "X$ax_cv_check_cl_libcl" != Xno; then :
10260    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10261  fi
10262fi
10263
10264########
10265#
10266# Check for large file support
10267#
10268########
10269# Check whether --enable-largefile was given.
10270if test "${enable_largefile+set}" = set; then :
10271  enableval=$enable_largefile;
10272fi
10273
10274if test "$enable_largefile" != no; then
10275
10276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10277$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10278if ${ac_cv_sys_largefile_CC+:} false; then :
10279  $as_echo_n "(cached) " >&6
10280else
10281  ac_cv_sys_largefile_CC=no
10282     if test "$GCC" != yes; then
10283       ac_save_CC=$CC
10284       while :; do
10285	 # IRIX 6.2 and later do not support large files by default,
10286	 # so use the C compiler's -n32 option if that helps.
10287	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289#include <sys/types.h>
10290 /* Check that off_t can represent 2**63 - 1 correctly.
10291    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10292    since some C++ compilers masquerading as C compilers
10293    incorrectly reject 9223372036854775807.  */
10294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10295  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10296		       && LARGE_OFF_T % 2147483647 == 1)
10297		      ? 1 : -1];
10298int
10299main ()
10300{
10301
10302  ;
10303  return 0;
10304}
10305_ACEOF
10306	 if ac_fn_c_try_compile "$LINENO"; then :
10307  break
10308fi
10309rm -f core conftest.err conftest.$ac_objext
10310	 CC="$CC -n32"
10311	 if ac_fn_c_try_compile "$LINENO"; then :
10312  ac_cv_sys_largefile_CC=' -n32'; break
10313fi
10314rm -f core conftest.err conftest.$ac_objext
10315	 break
10316       done
10317       CC=$ac_save_CC
10318       rm -f conftest.$ac_ext
10319    fi
10320fi
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10322$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10323  if test "$ac_cv_sys_largefile_CC" != no; then
10324    CC=$CC$ac_cv_sys_largefile_CC
10325  fi
10326
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10328$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10329if ${ac_cv_sys_file_offset_bits+:} false; then :
10330  $as_echo_n "(cached) " >&6
10331else
10332  while :; do
10333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334/* end confdefs.h.  */
10335#include <sys/types.h>
10336 /* Check that off_t can represent 2**63 - 1 correctly.
10337    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10338    since some C++ compilers masquerading as C compilers
10339    incorrectly reject 9223372036854775807.  */
10340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10341  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10342		       && LARGE_OFF_T % 2147483647 == 1)
10343		      ? 1 : -1];
10344int
10345main ()
10346{
10347
10348  ;
10349  return 0;
10350}
10351_ACEOF
10352if ac_fn_c_try_compile "$LINENO"; then :
10353  ac_cv_sys_file_offset_bits=no; break
10354fi
10355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358#define _FILE_OFFSET_BITS 64
10359#include <sys/types.h>
10360 /* Check that off_t can represent 2**63 - 1 correctly.
10361    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10362    since some C++ compilers masquerading as C compilers
10363    incorrectly reject 9223372036854775807.  */
10364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10365  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10366		       && LARGE_OFF_T % 2147483647 == 1)
10367		      ? 1 : -1];
10368int
10369main ()
10370{
10371
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_compile "$LINENO"; then :
10377  ac_cv_sys_file_offset_bits=64; break
10378fi
10379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380  ac_cv_sys_file_offset_bits=unknown
10381  break
10382done
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10385$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10386case $ac_cv_sys_file_offset_bits in #(
10387  no | unknown) ;;
10388  *)
10389cat >>confdefs.h <<_ACEOF
10390#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10391_ACEOF
10392;;
10393esac
10394rm -rf conftest*
10395  if test $ac_cv_sys_file_offset_bits = unknown; then
10396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10397$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10398if ${ac_cv_sys_large_files+:} false; then :
10399  $as_echo_n "(cached) " >&6
10400else
10401  while :; do
10402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404#include <sys/types.h>
10405 /* Check that off_t can represent 2**63 - 1 correctly.
10406    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10407    since some C++ compilers masquerading as C compilers
10408    incorrectly reject 9223372036854775807.  */
10409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10410  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10411		       && LARGE_OFF_T % 2147483647 == 1)
10412		      ? 1 : -1];
10413int
10414main ()
10415{
10416
10417  ;
10418  return 0;
10419}
10420_ACEOF
10421if ac_fn_c_try_compile "$LINENO"; then :
10422  ac_cv_sys_large_files=no; break
10423fi
10424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427#define _LARGE_FILES 1
10428#include <sys/types.h>
10429 /* Check that off_t can represent 2**63 - 1 correctly.
10430    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10431    since some C++ compilers masquerading as C compilers
10432    incorrectly reject 9223372036854775807.  */
10433#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10434  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10435		       && LARGE_OFF_T % 2147483647 == 1)
10436		      ? 1 : -1];
10437int
10438main ()
10439{
10440
10441  ;
10442  return 0;
10443}
10444_ACEOF
10445if ac_fn_c_try_compile "$LINENO"; then :
10446  ac_cv_sys_large_files=1; break
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449  ac_cv_sys_large_files=unknown
10450  break
10451done
10452fi
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10454$as_echo "$ac_cv_sys_large_files" >&6; }
10455case $ac_cv_sys_large_files in #(
10456  no | unknown) ;;
10457  *)
10458cat >>confdefs.h <<_ACEOF
10459#define _LARGE_FILES $ac_cv_sys_large_files
10460_ACEOF
10461;;
10462esac
10463rm -rf conftest*
10464  fi
10465
10466
10467fi
10468
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10470$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10471if ${ac_cv_sys_largefile_source+:} false; then :
10472  $as_echo_n "(cached) " >&6
10473else
10474  while :; do
10475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h.  */
10477#include <sys/types.h> /* for off_t */
10478     #include <stdio.h>
10479int
10480main ()
10481{
10482int (*fp) (FILE *, off_t, int) = fseeko;
10483     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10484  ;
10485  return 0;
10486}
10487_ACEOF
10488if ac_fn_c_try_link "$LINENO"; then :
10489  ac_cv_sys_largefile_source=no; break
10490fi
10491rm -f core conftest.err conftest.$ac_objext \
10492    conftest$ac_exeext conftest.$ac_ext
10493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495#define _LARGEFILE_SOURCE 1
10496#include <sys/types.h> /* for off_t */
10497     #include <stdio.h>
10498int
10499main ()
10500{
10501int (*fp) (FILE *, off_t, int) = fseeko;
10502     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10503  ;
10504  return 0;
10505}
10506_ACEOF
10507if ac_fn_c_try_link "$LINENO"; then :
10508  ac_cv_sys_largefile_source=1; break
10509fi
10510rm -f core conftest.err conftest.$ac_objext \
10511    conftest$ac_exeext conftest.$ac_ext
10512  ac_cv_sys_largefile_source=unknown
10513  break
10514done
10515fi
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10517$as_echo "$ac_cv_sys_largefile_source" >&6; }
10518case $ac_cv_sys_largefile_source in #(
10519  no | unknown) ;;
10520  *)
10521cat >>confdefs.h <<_ACEOF
10522#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10523_ACEOF
10524;;
10525esac
10526rm -rf conftest*
10527
10528# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10529# in glibc 2.1.3, but that breaks too many other things.
10530# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10531if test $ac_cv_sys_largefile_source != unknown; then
10532
10533$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10534
10535fi
10536
10537LFS_CPPFLAGS=''
10538if test "$enable_largefile" != no; then
10539    case $ac_cv_sys_file_offset_bits in
10540    no)
10541        # nothing to do here as the host supports LFS fine
10542        ;;
10543    unknown)
10544        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
10545$as_echo_n "checking for native large file support... " >&6; }
10546        if test "$cross_compiling" = yes; then :
10547  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10549as_fn_error $? "cannot run test program while cross compiling
10550See \`config.log' for more details" "$LINENO" 5; }
10551else
10552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h.  */
10554#include <unistd.h>
10555          main () {
10556          exit(!(sizeof(off_t) == 8));
10557        }
10558int
10559main ()
10560{
10561
10562  ;
10563  return 0;
10564}
10565_ACEOF
10566if ac_fn_c_try_run "$LINENO"; then :
10567  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
10568
10569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570$as_echo "yes" >&6; }
10571else
10572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
10574fi
10575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10576  conftest.$ac_objext conftest.beam conftest.$ac_ext
10577fi
10578
10579        ;;
10580    *)
10581        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10582        ;;
10583    esac
10584    if test "$ac_cv_sys_large_files" != 'no'; then
10585        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10586    fi
10587    if test "$ac_cv_sys_largefile_source" != 'no'; then
10588        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10589    fi
10590fi
10591
10592
10593# Configure libtool
10594enable_dlopen=yes
10595
10596
10597
10598case `pwd` in
10599  *\ * | *\	*)
10600    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10601$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10602esac
10603
10604
10605
10606macro_version='2.4.2'
10607macro_revision='1.3337'
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621ltmain="$ac_aux_dir/ltmain.sh"
10622
10623# Backslashify metacharacters that are still active within
10624# double-quoted strings.
10625sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10626
10627# Same as above, but do not quote variable references.
10628double_quote_subst='s/\(["`\\]\)/\\\1/g'
10629
10630# Sed substitution to delay expansion of an escaped shell variable in a
10631# double_quote_subst'ed string.
10632delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10633
10634# Sed substitution to delay expansion of an escaped single quote.
10635delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10636
10637# Sed substitution to avoid accidental globbing in evaled expressions
10638no_glob_subst='s/\*/\\\*/g'
10639
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10641$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10642if ${lt_cv_path_NM+:} false; then :
10643  $as_echo_n "(cached) " >&6
10644else
10645  if test -n "$NM"; then
10646  # Let the user override the test.
10647  lt_cv_path_NM="$NM"
10648else
10649  lt_nm_to_check="${ac_tool_prefix}nm"
10650  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10651    lt_nm_to_check="$lt_nm_to_check nm"
10652  fi
10653  for lt_tmp_nm in $lt_nm_to_check; do
10654    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10655    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10656      IFS="$lt_save_ifs"
10657      test -z "$ac_dir" && ac_dir=.
10658      tmp_nm="$ac_dir/$lt_tmp_nm"
10659      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10660	# Check to see if the nm accepts a BSD-compat flag.
10661	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10662	#   nm: unknown option "B" ignored
10663	# Tru64's nm complains that /dev/null is an invalid object file
10664	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10665	*/dev/null* | *'Invalid file or object type'*)
10666	  lt_cv_path_NM="$tmp_nm -B"
10667	  break
10668	  ;;
10669	*)
10670	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10671	  */dev/null*)
10672	    lt_cv_path_NM="$tmp_nm -p"
10673	    break
10674	    ;;
10675	  *)
10676	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10677	    continue # so that we can try to find one that supports BSD flags
10678	    ;;
10679	  esac
10680	  ;;
10681	esac
10682      fi
10683    done
10684    IFS="$lt_save_ifs"
10685  done
10686  : ${lt_cv_path_NM=no}
10687fi
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10690$as_echo "$lt_cv_path_NM" >&6; }
10691if test "$lt_cv_path_NM" != "no"; then
10692  NM="$lt_cv_path_NM"
10693else
10694  # Didn't find any BSD compatible name lister, look for dumpbin.
10695  if test -n "$DUMPBIN"; then :
10696    # Let the user override the test.
10697  else
10698    if test -n "$ac_tool_prefix"; then
10699  for ac_prog in dumpbin "link -dump"
10700  do
10701    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10702set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
10705if ${ac_cv_prog_DUMPBIN+:} false; then :
10706  $as_echo_n "(cached) " >&6
10707else
10708  if test -n "$DUMPBIN"; then
10709  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714  IFS=$as_save_IFS
10715  test -z "$as_dir" && as_dir=.
10716    for ac_exec_ext in '' $ac_executable_extensions; do
10717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720    break 2
10721  fi
10722done
10723  done
10724IFS=$as_save_IFS
10725
10726fi
10727fi
10728DUMPBIN=$ac_cv_prog_DUMPBIN
10729if test -n "$DUMPBIN"; then
10730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10731$as_echo "$DUMPBIN" >&6; }
10732else
10733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
10735fi
10736
10737
10738    test -n "$DUMPBIN" && break
10739  done
10740fi
10741if test -z "$DUMPBIN"; then
10742  ac_ct_DUMPBIN=$DUMPBIN
10743  for ac_prog in dumpbin "link -dump"
10744do
10745  # Extract the first word of "$ac_prog", so it can be a program name with args.
10746set dummy $ac_prog; ac_word=$2
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748$as_echo_n "checking for $ac_word... " >&6; }
10749if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10750  $as_echo_n "(cached) " >&6
10751else
10752  if test -n "$ac_ct_DUMPBIN"; then
10753  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10754else
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758  IFS=$as_save_IFS
10759  test -z "$as_dir" && as_dir=.
10760    for ac_exec_ext in '' $ac_executable_extensions; do
10761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764    break 2
10765  fi
10766done
10767  done
10768IFS=$as_save_IFS
10769
10770fi
10771fi
10772ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10773if test -n "$ac_ct_DUMPBIN"; then
10774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10775$as_echo "$ac_ct_DUMPBIN" >&6; }
10776else
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778$as_echo "no" >&6; }
10779fi
10780
10781
10782  test -n "$ac_ct_DUMPBIN" && break
10783done
10784
10785  if test "x$ac_ct_DUMPBIN" = x; then
10786    DUMPBIN=":"
10787  else
10788    case $cross_compiling:$ac_tool_warned in
10789yes:)
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10792ac_tool_warned=yes ;;
10793esac
10794    DUMPBIN=$ac_ct_DUMPBIN
10795  fi
10796fi
10797
10798    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10799    *COFF*)
10800      DUMPBIN="$DUMPBIN -symbols"
10801      ;;
10802    *)
10803      DUMPBIN=:
10804      ;;
10805    esac
10806  fi
10807
10808  if test "$DUMPBIN" != ":"; then
10809    NM="$DUMPBIN"
10810  fi
10811fi
10812test -z "$NM" && NM=nm
10813
10814
10815
10816
10817
10818
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10820$as_echo_n "checking the name lister ($NM) interface... " >&6; }
10821if ${lt_cv_nm_interface+:} false; then :
10822  $as_echo_n "(cached) " >&6
10823else
10824  lt_cv_nm_interface="BSD nm"
10825  echo "int some_variable = 0;" > conftest.$ac_ext
10826  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10827  (eval "$ac_compile" 2>conftest.err)
10828  cat conftest.err >&5
10829  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10830  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10831  cat conftest.err >&5
10832  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10833  cat conftest.out >&5
10834  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10835    lt_cv_nm_interface="MS dumpbin"
10836  fi
10837  rm -f conftest*
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10840$as_echo "$lt_cv_nm_interface" >&6; }
10841
10842# find the maximum length of command line arguments
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10844$as_echo_n "checking the maximum length of command line arguments... " >&6; }
10845if ${lt_cv_sys_max_cmd_len+:} false; then :
10846  $as_echo_n "(cached) " >&6
10847else
10848    i=0
10849  teststring="ABCD"
10850
10851  case $build_os in
10852  msdosdjgpp*)
10853    # On DJGPP, this test can blow up pretty badly due to problems in libc
10854    # (any single argument exceeding 2000 bytes causes a buffer overrun
10855    # during glob expansion).  Even if it were fixed, the result of this
10856    # check would be larger than it should be.
10857    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10858    ;;
10859
10860  gnu*)
10861    # Under GNU Hurd, this test is not required because there is
10862    # no limit to the length of command line arguments.
10863    # Libtool will interpret -1 as no limit whatsoever
10864    lt_cv_sys_max_cmd_len=-1;
10865    ;;
10866
10867  cygwin* | mingw* | cegcc*)
10868    # On Win9x/ME, this test blows up -- it succeeds, but takes
10869    # about 5 minutes as the teststring grows exponentially.
10870    # Worse, since 9x/ME are not pre-emptively multitasking,
10871    # you end up with a "frozen" computer, even though with patience
10872    # the test eventually succeeds (with a max line length of 256k).
10873    # Instead, let's just punt: use the minimum linelength reported by
10874    # all of the supported platforms: 8192 (on NT/2K/XP).
10875    lt_cv_sys_max_cmd_len=8192;
10876    ;;
10877
10878  mint*)
10879    # On MiNT this can take a long time and run out of memory.
10880    lt_cv_sys_max_cmd_len=8192;
10881    ;;
10882
10883  amigaos*)
10884    # On AmigaOS with pdksh, this test takes hours, literally.
10885    # So we just punt and use a minimum line length of 8192.
10886    lt_cv_sys_max_cmd_len=8192;
10887    ;;
10888
10889  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10890    # This has been around since 386BSD, at least.  Likely further.
10891    if test -x /sbin/sysctl; then
10892      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10893    elif test -x /usr/sbin/sysctl; then
10894      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10895    else
10896      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
10897    fi
10898    # And add a safety zone
10899    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10900    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10901    ;;
10902
10903  interix*)
10904    # We know the value 262144 and hardcode it with a safety zone (like BSD)
10905    lt_cv_sys_max_cmd_len=196608
10906    ;;
10907
10908  os2*)
10909    # The test takes a long time on OS/2.
10910    lt_cv_sys_max_cmd_len=8192
10911    ;;
10912
10913  osf*)
10914    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10915    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10916    # nice to cause kernel panics so lets avoid the loop below.
10917    # First set a reasonable default.
10918    lt_cv_sys_max_cmd_len=16384
10919    #
10920    if test -x /sbin/sysconfig; then
10921      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10922        *1*) lt_cv_sys_max_cmd_len=-1 ;;
10923      esac
10924    fi
10925    ;;
10926  sco3.2v5*)
10927    lt_cv_sys_max_cmd_len=102400
10928    ;;
10929  sysv5* | sco5v6* | sysv4.2uw2*)
10930    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10931    if test -n "$kargmax"; then
10932      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
10933    else
10934      lt_cv_sys_max_cmd_len=32768
10935    fi
10936    ;;
10937  *)
10938    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10939    if test -n "$lt_cv_sys_max_cmd_len"; then
10940      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10941      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10942    else
10943      # Make teststring a little bigger before we do anything with it.
10944      # a 1K string should be a reasonable start.
10945      for i in 1 2 3 4 5 6 7 8 ; do
10946        teststring=$teststring$teststring
10947      done
10948      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10949      # If test is not a shell built-in, we'll probably end up computing a
10950      # maximum length that is only half of the actual maximum length, but
10951      # we can't tell.
10952      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10953	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10954	      test $i != 17 # 1/2 MB should be enough
10955      do
10956        i=`expr $i + 1`
10957        teststring=$teststring$teststring
10958      done
10959      # Only check the string length outside the loop.
10960      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10961      teststring=
10962      # Add a significant safety factor because C++ compilers can tack on
10963      # massive amounts of additional arguments before passing them to the
10964      # linker.  It appears as though 1/2 is a usable value.
10965      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10966    fi
10967    ;;
10968  esac
10969
10970fi
10971
10972if test -n $lt_cv_sys_max_cmd_len ; then
10973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10974$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10975else
10976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10977$as_echo "none" >&6; }
10978fi
10979max_cmd_len=$lt_cv_sys_max_cmd_len
10980
10981
10982
10983
10984
10985
10986: ${CP="cp -f"}
10987: ${MV="mv -f"}
10988: ${RM="rm -f"}
10989
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10991$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10992# Try some XSI features
10993xsi_shell=no
10994( _lt_dummy="a/b/c"
10995  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10996      = c,a/b,b/c, \
10997    && eval 'test $(( 1 + 1 )) -eq 2 \
10998    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10999  && xsi_shell=yes
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11001$as_echo "$xsi_shell" >&6; }
11002
11003
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11005$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11006lt_shell_append=no
11007( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11008    >/dev/null 2>&1 \
11009  && lt_shell_append=yes
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11011$as_echo "$lt_shell_append" >&6; }
11012
11013
11014if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11015  lt_unset=unset
11016else
11017  lt_unset=false
11018fi
11019
11020
11021
11022
11023
11024# test EBCDIC or ASCII
11025case `echo X|tr X '\101'` in
11026 A) # ASCII based system
11027    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11028  lt_SP2NL='tr \040 \012'
11029  lt_NL2SP='tr \015\012 \040\040'
11030  ;;
11031 *) # EBCDIC based system
11032  lt_SP2NL='tr \100 \n'
11033  lt_NL2SP='tr \r\n \100\100'
11034  ;;
11035esac
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11046$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11047if ${lt_cv_to_host_file_cmd+:} false; then :
11048  $as_echo_n "(cached) " >&6
11049else
11050  case $host in
11051  *-*-mingw* )
11052    case $build in
11053      *-*-mingw* ) # actually msys
11054        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11055        ;;
11056      *-*-cygwin* )
11057        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11058        ;;
11059      * ) # otherwise, assume *nix
11060        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11061        ;;
11062    esac
11063    ;;
11064  *-*-cygwin* )
11065    case $build in
11066      *-*-mingw* ) # actually msys
11067        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11068        ;;
11069      *-*-cygwin* )
11070        lt_cv_to_host_file_cmd=func_convert_file_noop
11071        ;;
11072      * ) # otherwise, assume *nix
11073        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11074        ;;
11075    esac
11076    ;;
11077  * ) # unhandled hosts (and "normal" native builds)
11078    lt_cv_to_host_file_cmd=func_convert_file_noop
11079    ;;
11080esac
11081
11082fi
11083
11084to_host_file_cmd=$lt_cv_to_host_file_cmd
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11086$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11087
11088
11089
11090
11091
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11093$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11094if ${lt_cv_to_tool_file_cmd+:} false; then :
11095  $as_echo_n "(cached) " >&6
11096else
11097  #assume ordinary cross tools, or native build.
11098lt_cv_to_tool_file_cmd=func_convert_file_noop
11099case $host in
11100  *-*-mingw* )
11101    case $build in
11102      *-*-mingw* ) # actually msys
11103        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11104        ;;
11105    esac
11106    ;;
11107esac
11108
11109fi
11110
11111to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11113$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11114
11115
11116
11117
11118
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11120$as_echo_n "checking for $LD option to reload object files... " >&6; }
11121if ${lt_cv_ld_reload_flag+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  lt_cv_ld_reload_flag='-r'
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11127$as_echo "$lt_cv_ld_reload_flag" >&6; }
11128reload_flag=$lt_cv_ld_reload_flag
11129case $reload_flag in
11130"" | " "*) ;;
11131*) reload_flag=" $reload_flag" ;;
11132esac
11133reload_cmds='$LD$reload_flag -o $output$reload_objs'
11134case $host_os in
11135  cygwin* | mingw* | pw32* | cegcc*)
11136    if test "$GCC" != yes; then
11137      reload_cmds=false
11138    fi
11139    ;;
11140  darwin*)
11141    if test "$GCC" = yes; then
11142      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11143    else
11144      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11145    fi
11146    ;;
11147esac
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157if test -n "$ac_tool_prefix"; then
11158  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11159set dummy ${ac_tool_prefix}objdump; ac_word=$2
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
11162if ${ac_cv_prog_OBJDUMP+:} false; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165  if test -n "$OBJDUMP"; then
11166  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11167else
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171  IFS=$as_save_IFS
11172  test -z "$as_dir" && as_dir=.
11173    for ac_exec_ext in '' $ac_executable_extensions; do
11174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177    break 2
11178  fi
11179done
11180  done
11181IFS=$as_save_IFS
11182
11183fi
11184fi
11185OBJDUMP=$ac_cv_prog_OBJDUMP
11186if test -n "$OBJDUMP"; then
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11188$as_echo "$OBJDUMP" >&6; }
11189else
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192fi
11193
11194
11195fi
11196if test -z "$ac_cv_prog_OBJDUMP"; then
11197  ac_ct_OBJDUMP=$OBJDUMP
11198  # Extract the first word of "objdump", so it can be a program name with args.
11199set dummy objdump; ac_word=$2
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201$as_echo_n "checking for $ac_word... " >&6; }
11202if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11203  $as_echo_n "(cached) " >&6
11204else
11205  if test -n "$ac_ct_OBJDUMP"; then
11206  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11207else
11208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209for as_dir in $PATH
11210do
11211  IFS=$as_save_IFS
11212  test -z "$as_dir" && as_dir=.
11213    for ac_exec_ext in '' $ac_executable_extensions; do
11214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217    break 2
11218  fi
11219done
11220  done
11221IFS=$as_save_IFS
11222
11223fi
11224fi
11225ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11226if test -n "$ac_ct_OBJDUMP"; then
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11228$as_echo "$ac_ct_OBJDUMP" >&6; }
11229else
11230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232fi
11233
11234  if test "x$ac_ct_OBJDUMP" = x; then
11235    OBJDUMP="false"
11236  else
11237    case $cross_compiling:$ac_tool_warned in
11238yes:)
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241ac_tool_warned=yes ;;
11242esac
11243    OBJDUMP=$ac_ct_OBJDUMP
11244  fi
11245else
11246  OBJDUMP="$ac_cv_prog_OBJDUMP"
11247fi
11248
11249test -z "$OBJDUMP" && OBJDUMP=objdump
11250
11251
11252
11253
11254
11255
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11257$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11258if ${lt_cv_deplibs_check_method+:} false; then :
11259  $as_echo_n "(cached) " >&6
11260else
11261  lt_cv_file_magic_cmd='$MAGIC_CMD'
11262lt_cv_file_magic_test_file=
11263lt_cv_deplibs_check_method='unknown'
11264# Need to set the preceding variable on all platforms that support
11265# interlibrary dependencies.
11266# 'none' -- dependencies not supported.
11267# `unknown' -- same as none, but documents that we really don't know.
11268# 'pass_all' -- all dependencies passed with no checks.
11269# 'test_compile' -- check by making test program.
11270# 'file_magic [[regex]]' -- check by looking for files in library path
11271# which responds to the $file_magic_cmd with a given extended regex.
11272# If you have `file' or equivalent on your system and you're not sure
11273# whether `pass_all' will *always* work, you probably want this one.
11274
11275case $host_os in
11276aix[4-9]*)
11277  lt_cv_deplibs_check_method=pass_all
11278  ;;
11279
11280beos*)
11281  lt_cv_deplibs_check_method=pass_all
11282  ;;
11283
11284bsdi[45]*)
11285  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11286  lt_cv_file_magic_cmd='/usr/bin/file -L'
11287  lt_cv_file_magic_test_file=/shlib/libc.so
11288  ;;
11289
11290cygwin*)
11291  # func_win32_libid is a shell function defined in ltmain.sh
11292  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11293  lt_cv_file_magic_cmd='func_win32_libid'
11294  ;;
11295
11296mingw* | pw32*)
11297  # Base MSYS/MinGW do not provide the 'file' command needed by
11298  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11299  # unless we find 'file', for example because we are cross-compiling.
11300  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11301  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11302    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11303    lt_cv_file_magic_cmd='func_win32_libid'
11304  else
11305    # Keep this pattern in sync with the one in func_win32_libid.
11306    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11307    lt_cv_file_magic_cmd='$OBJDUMP -f'
11308  fi
11309  ;;
11310
11311cegcc*)
11312  # use the weaker test based on 'objdump'. See mingw*.
11313  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11314  lt_cv_file_magic_cmd='$OBJDUMP -f'
11315  ;;
11316
11317darwin* | rhapsody*)
11318  lt_cv_deplibs_check_method=pass_all
11319  ;;
11320
11321freebsd* | dragonfly*)
11322  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11323    case $host_cpu in
11324    i*86 )
11325      # Not sure whether the presence of OpenBSD here was a mistake.
11326      # Let's accept both of them until this is cleared up.
11327      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11328      lt_cv_file_magic_cmd=/usr/bin/file
11329      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11330      ;;
11331    esac
11332  else
11333    lt_cv_deplibs_check_method=pass_all
11334  fi
11335  ;;
11336
11337gnu*)
11338  lt_cv_deplibs_check_method=pass_all
11339  ;;
11340
11341haiku*)
11342  lt_cv_deplibs_check_method=pass_all
11343  ;;
11344
11345hpux10.20* | hpux11*)
11346  lt_cv_file_magic_cmd=/usr/bin/file
11347  case $host_cpu in
11348  ia64*)
11349    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11350    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11351    ;;
11352  hppa*64*)
11353    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]'
11354    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11355    ;;
11356  *)
11357    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11358    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11359    ;;
11360  esac
11361  ;;
11362
11363interix[3-9]*)
11364  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11365  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11366  ;;
11367
11368irix5* | irix6* | nonstopux*)
11369  case $LD in
11370  *-32|*"-32 ") libmagic=32-bit;;
11371  *-n32|*"-n32 ") libmagic=N32;;
11372  *-64|*"-64 ") libmagic=64-bit;;
11373  *) libmagic=never-match;;
11374  esac
11375  lt_cv_deplibs_check_method=pass_all
11376  ;;
11377
11378# This must be glibc/ELF.
11379linux* | k*bsd*-gnu | kopensolaris*-gnu)
11380  lt_cv_deplibs_check_method=pass_all
11381  ;;
11382
11383netbsd*)
11384  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11385    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11386  else
11387    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11388  fi
11389  ;;
11390
11391newos6*)
11392  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11393  lt_cv_file_magic_cmd=/usr/bin/file
11394  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11395  ;;
11396
11397*nto* | *qnx*)
11398  lt_cv_deplibs_check_method=pass_all
11399  ;;
11400
11401openbsd*)
11402  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11403    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11404  else
11405    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11406  fi
11407  ;;
11408
11409osf3* | osf4* | osf5*)
11410  lt_cv_deplibs_check_method=pass_all
11411  ;;
11412
11413rdos*)
11414  lt_cv_deplibs_check_method=pass_all
11415  ;;
11416
11417solaris*)
11418  lt_cv_deplibs_check_method=pass_all
11419  ;;
11420
11421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11422  lt_cv_deplibs_check_method=pass_all
11423  ;;
11424
11425sysv4 | sysv4.3*)
11426  case $host_vendor in
11427  motorola)
11428    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]'
11429    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11430    ;;
11431  ncr)
11432    lt_cv_deplibs_check_method=pass_all
11433    ;;
11434  sequent)
11435    lt_cv_file_magic_cmd='/bin/file'
11436    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11437    ;;
11438  sni)
11439    lt_cv_file_magic_cmd='/bin/file'
11440    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11441    lt_cv_file_magic_test_file=/lib/libc.so
11442    ;;
11443  siemens)
11444    lt_cv_deplibs_check_method=pass_all
11445    ;;
11446  pc)
11447    lt_cv_deplibs_check_method=pass_all
11448    ;;
11449  esac
11450  ;;
11451
11452tpf*)
11453  lt_cv_deplibs_check_method=pass_all
11454  ;;
11455esac
11456
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11459$as_echo "$lt_cv_deplibs_check_method" >&6; }
11460
11461file_magic_glob=
11462want_nocaseglob=no
11463if test "$build" = "$host"; then
11464  case $host_os in
11465  mingw* | pw32*)
11466    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11467      want_nocaseglob=yes
11468    else
11469      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11470    fi
11471    ;;
11472  esac
11473fi
11474
11475file_magic_cmd=$lt_cv_file_magic_cmd
11476deplibs_check_method=$lt_cv_deplibs_check_method
11477test -z "$deplibs_check_method" && deplibs_check_method=unknown
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500if test -n "$ac_tool_prefix"; then
11501  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11502set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
11505if ${ac_cv_prog_DLLTOOL+:} false; then :
11506  $as_echo_n "(cached) " >&6
11507else
11508  if test -n "$DLLTOOL"; then
11509  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514  IFS=$as_save_IFS
11515  test -z "$as_dir" && as_dir=.
11516    for ac_exec_ext in '' $ac_executable_extensions; do
11517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520    break 2
11521  fi
11522done
11523  done
11524IFS=$as_save_IFS
11525
11526fi
11527fi
11528DLLTOOL=$ac_cv_prog_DLLTOOL
11529if test -n "$DLLTOOL"; then
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11531$as_echo "$DLLTOOL" >&6; }
11532else
11533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535fi
11536
11537
11538fi
11539if test -z "$ac_cv_prog_DLLTOOL"; then
11540  ac_ct_DLLTOOL=$DLLTOOL
11541  # Extract the first word of "dlltool", so it can be a program name with args.
11542set dummy dlltool; ac_word=$2
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
11545if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  if test -n "$ac_ct_DLLTOOL"; then
11549  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554  IFS=$as_save_IFS
11555  test -z "$as_dir" && as_dir=.
11556    for ac_exec_ext in '' $ac_executable_extensions; do
11557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560    break 2
11561  fi
11562done
11563  done
11564IFS=$as_save_IFS
11565
11566fi
11567fi
11568ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11569if test -n "$ac_ct_DLLTOOL"; then
11570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11571$as_echo "$ac_ct_DLLTOOL" >&6; }
11572else
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
11575fi
11576
11577  if test "x$ac_ct_DLLTOOL" = x; then
11578    DLLTOOL="false"
11579  else
11580    case $cross_compiling:$ac_tool_warned in
11581yes:)
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11584ac_tool_warned=yes ;;
11585esac
11586    DLLTOOL=$ac_ct_DLLTOOL
11587  fi
11588else
11589  DLLTOOL="$ac_cv_prog_DLLTOOL"
11590fi
11591
11592test -z "$DLLTOOL" && DLLTOOL=dlltool
11593
11594
11595
11596
11597
11598
11599
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11601$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11602if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  lt_cv_sharedlib_from_linklib_cmd='unknown'
11606
11607case $host_os in
11608cygwin* | mingw* | pw32* | cegcc*)
11609  # two different shell functions defined in ltmain.sh
11610  # decide which to use based on capabilities of $DLLTOOL
11611  case `$DLLTOOL --help 2>&1` in
11612  *--identify-strict*)
11613    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11614    ;;
11615  *)
11616    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11617    ;;
11618  esac
11619  ;;
11620*)
11621  # fallback: assume linklib IS sharedlib
11622  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11623  ;;
11624esac
11625
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11628$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11629sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11630test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11631
11632
11633
11634
11635
11636
11637
11638if test -n "$ac_tool_prefix"; then
11639  for ac_prog in ar
11640  do
11641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11644$as_echo_n "checking for $ac_word... " >&6; }
11645if ${ac_cv_prog_AR+:} false; then :
11646  $as_echo_n "(cached) " >&6
11647else
11648  if test -n "$AR"; then
11649  ac_cv_prog_AR="$AR" # Let the user override the test.
11650else
11651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654  IFS=$as_save_IFS
11655  test -z "$as_dir" && as_dir=.
11656    for ac_exec_ext in '' $ac_executable_extensions; do
11657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660    break 2
11661  fi
11662done
11663  done
11664IFS=$as_save_IFS
11665
11666fi
11667fi
11668AR=$ac_cv_prog_AR
11669if test -n "$AR"; then
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11671$as_echo "$AR" >&6; }
11672else
11673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674$as_echo "no" >&6; }
11675fi
11676
11677
11678    test -n "$AR" && break
11679  done
11680fi
11681if test -z "$AR"; then
11682  ac_ct_AR=$AR
11683  for ac_prog in ar
11684do
11685  # Extract the first word of "$ac_prog", so it can be a program name with args.
11686set dummy $ac_prog; ac_word=$2
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
11689if ${ac_cv_prog_ac_ct_AR+:} false; then :
11690  $as_echo_n "(cached) " >&6
11691else
11692  if test -n "$ac_ct_AR"; then
11693  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698  IFS=$as_save_IFS
11699  test -z "$as_dir" && as_dir=.
11700    for ac_exec_ext in '' $ac_executable_extensions; do
11701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11702    ac_cv_prog_ac_ct_AR="$ac_prog"
11703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704    break 2
11705  fi
11706done
11707  done
11708IFS=$as_save_IFS
11709
11710fi
11711fi
11712ac_ct_AR=$ac_cv_prog_ac_ct_AR
11713if test -n "$ac_ct_AR"; then
11714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11715$as_echo "$ac_ct_AR" >&6; }
11716else
11717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719fi
11720
11721
11722  test -n "$ac_ct_AR" && break
11723done
11724
11725  if test "x$ac_ct_AR" = x; then
11726    AR="false"
11727  else
11728    case $cross_compiling:$ac_tool_warned in
11729yes:)
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11732ac_tool_warned=yes ;;
11733esac
11734    AR=$ac_ct_AR
11735  fi
11736fi
11737
11738: ${AR=ar}
11739: ${AR_FLAGS=cru}
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11752$as_echo_n "checking for archiver @FILE support... " >&6; }
11753if ${lt_cv_ar_at_file+:} false; then :
11754  $as_echo_n "(cached) " >&6
11755else
11756  lt_cv_ar_at_file=no
11757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758/* end confdefs.h.  */
11759
11760int
11761main ()
11762{
11763
11764  ;
11765  return 0;
11766}
11767_ACEOF
11768if ac_fn_c_try_compile "$LINENO"; then :
11769  echo conftest.$ac_objext > conftest.lst
11770      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11771      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11772  (eval $lt_ar_try) 2>&5
11773  ac_status=$?
11774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775  test $ac_status = 0; }
11776      if test "$ac_status" -eq 0; then
11777	# Ensure the archiver fails upon bogus file names.
11778	rm -f conftest.$ac_objext libconftest.a
11779	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11780  (eval $lt_ar_try) 2>&5
11781  ac_status=$?
11782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783  test $ac_status = 0; }
11784	if test "$ac_status" -ne 0; then
11785          lt_cv_ar_at_file=@
11786        fi
11787      fi
11788      rm -f conftest.* libconftest.a
11789
11790fi
11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792
11793fi
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11795$as_echo "$lt_cv_ar_at_file" >&6; }
11796
11797if test "x$lt_cv_ar_at_file" = xno; then
11798  archiver_list_spec=
11799else
11800  archiver_list_spec=$lt_cv_ar_at_file
11801fi
11802
11803
11804
11805
11806
11807
11808
11809if test -n "$ac_tool_prefix"; then
11810  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11811set dummy ${ac_tool_prefix}strip; ac_word=$2
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
11814if ${ac_cv_prog_STRIP+:} false; then :
11815  $as_echo_n "(cached) " >&6
11816else
11817  if test -n "$STRIP"; then
11818  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823  IFS=$as_save_IFS
11824  test -z "$as_dir" && as_dir=.
11825    for ac_exec_ext in '' $ac_executable_extensions; do
11826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829    break 2
11830  fi
11831done
11832  done
11833IFS=$as_save_IFS
11834
11835fi
11836fi
11837STRIP=$ac_cv_prog_STRIP
11838if test -n "$STRIP"; then
11839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11840$as_echo "$STRIP" >&6; }
11841else
11842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
11844fi
11845
11846
11847fi
11848if test -z "$ac_cv_prog_STRIP"; then
11849  ac_ct_STRIP=$STRIP
11850  # Extract the first word of "strip", so it can be a program name with args.
11851set dummy strip; ac_word=$2
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853$as_echo_n "checking for $ac_word... " >&6; }
11854if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11855  $as_echo_n "(cached) " >&6
11856else
11857  if test -n "$ac_ct_STRIP"; then
11858  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11859else
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863  IFS=$as_save_IFS
11864  test -z "$as_dir" && as_dir=.
11865    for ac_exec_ext in '' $ac_executable_extensions; do
11866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867    ac_cv_prog_ac_ct_STRIP="strip"
11868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869    break 2
11870  fi
11871done
11872  done
11873IFS=$as_save_IFS
11874
11875fi
11876fi
11877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11878if test -n "$ac_ct_STRIP"; then
11879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11880$as_echo "$ac_ct_STRIP" >&6; }
11881else
11882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
11884fi
11885
11886  if test "x$ac_ct_STRIP" = x; then
11887    STRIP=":"
11888  else
11889    case $cross_compiling:$ac_tool_warned in
11890yes:)
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11893ac_tool_warned=yes ;;
11894esac
11895    STRIP=$ac_ct_STRIP
11896  fi
11897else
11898  STRIP="$ac_cv_prog_STRIP"
11899fi
11900
11901test -z "$STRIP" && STRIP=:
11902
11903
11904
11905
11906
11907
11908if test -n "$ac_tool_prefix"; then
11909  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
11913if ${ac_cv_prog_RANLIB+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  if test -n "$RANLIB"; then
11917  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11918else
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922  IFS=$as_save_IFS
11923  test -z "$as_dir" && as_dir=.
11924    for ac_exec_ext in '' $ac_executable_extensions; do
11925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11926    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928    break 2
11929  fi
11930done
11931  done
11932IFS=$as_save_IFS
11933
11934fi
11935fi
11936RANLIB=$ac_cv_prog_RANLIB
11937if test -n "$RANLIB"; then
11938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11939$as_echo "$RANLIB" >&6; }
11940else
11941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
11943fi
11944
11945
11946fi
11947if test -z "$ac_cv_prog_RANLIB"; then
11948  ac_ct_RANLIB=$RANLIB
11949  # Extract the first word of "ranlib", so it can be a program name with args.
11950set dummy ranlib; ac_word=$2
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952$as_echo_n "checking for $ac_word... " >&6; }
11953if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11954  $as_echo_n "(cached) " >&6
11955else
11956  if test -n "$ac_ct_RANLIB"; then
11957  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11958else
11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960for as_dir in $PATH
11961do
11962  IFS=$as_save_IFS
11963  test -z "$as_dir" && as_dir=.
11964    for ac_exec_ext in '' $ac_executable_extensions; do
11965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966    ac_cv_prog_ac_ct_RANLIB="ranlib"
11967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968    break 2
11969  fi
11970done
11971  done
11972IFS=$as_save_IFS
11973
11974fi
11975fi
11976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11977if test -n "$ac_ct_RANLIB"; then
11978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11979$as_echo "$ac_ct_RANLIB" >&6; }
11980else
11981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
11983fi
11984
11985  if test "x$ac_ct_RANLIB" = x; then
11986    RANLIB=":"
11987  else
11988    case $cross_compiling:$ac_tool_warned in
11989yes:)
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11992ac_tool_warned=yes ;;
11993esac
11994    RANLIB=$ac_ct_RANLIB
11995  fi
11996else
11997  RANLIB="$ac_cv_prog_RANLIB"
11998fi
11999
12000test -z "$RANLIB" && RANLIB=:
12001
12002
12003
12004
12005
12006
12007# Determine commands to create old-style static archives.
12008old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12009old_postinstall_cmds='chmod 644 $oldlib'
12010old_postuninstall_cmds=
12011
12012if test -n "$RANLIB"; then
12013  case $host_os in
12014  openbsd*)
12015    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12016    ;;
12017  *)
12018    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12019    ;;
12020  esac
12021  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12022fi
12023
12024case $host_os in
12025  darwin*)
12026    lock_old_archive_extraction=yes ;;
12027  *)
12028    lock_old_archive_extraction=no ;;
12029esac
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069# If no C compiler was specified, use CC.
12070LTCC=${LTCC-"$CC"}
12071
12072# If no C compiler flags were specified, use CFLAGS.
12073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12074
12075# Allow CC to be a program name with arguments.
12076compiler=$CC
12077
12078
12079# Check for command to grab the raw symbol name followed by C symbol from nm.
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12081$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12082if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12083  $as_echo_n "(cached) " >&6
12084else
12085
12086# These are sane defaults that work on at least a few old systems.
12087# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12088
12089# Character class describing NM global symbol codes.
12090symcode='[BCDEGRST]'
12091
12092# Regexp to match symbols that can be accessed directly from C.
12093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12094
12095# Define system-specific variables.
12096case $host_os in
12097aix*)
12098  symcode='[BCDT]'
12099  ;;
12100cygwin* | mingw* | pw32* | cegcc*)
12101  symcode='[ABCDGISTW]'
12102  ;;
12103hpux*)
12104  if test "$host_cpu" = ia64; then
12105    symcode='[ABCDEGRST]'
12106  fi
12107  ;;
12108irix* | nonstopux*)
12109  symcode='[BCDEGRST]'
12110  ;;
12111osf*)
12112  symcode='[BCDEGQRST]'
12113  ;;
12114solaris*)
12115  symcode='[BDRT]'
12116  ;;
12117sco3.2v5*)
12118  symcode='[DT]'
12119  ;;
12120sysv4.2uw2*)
12121  symcode='[DT]'
12122  ;;
12123sysv5* | sco5v6* | unixware* | OpenUNIX*)
12124  symcode='[ABDT]'
12125  ;;
12126sysv4)
12127  symcode='[DFNSTU]'
12128  ;;
12129esac
12130
12131# If we're using GNU nm, then use its standard symbol codes.
12132case `$NM -V 2>&1` in
12133*GNU* | *'with BFD'*)
12134  symcode='[ABCDGIRSTW]' ;;
12135esac
12136
12137# Transform an extracted symbol line into a proper C declaration.
12138# Some systems (esp. on ia64) link data and code symbols differently,
12139# so use this general approach.
12140lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12141
12142# Transform an extracted symbol line into symbol name and symbol address
12143lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12144lt_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'"
12145
12146# Handle CRLF in mingw tool chain
12147opt_cr=
12148case $build_os in
12149mingw*)
12150  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12151  ;;
12152esac
12153
12154# Try without a prefix underscore, then with it.
12155for ac_symprfx in "" "_"; do
12156
12157  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12158  symxfrm="\\1 $ac_symprfx\\2 \\2"
12159
12160  # Write the raw and C identifiers.
12161  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12162    # Fake it for dumpbin and say T for any non-static function
12163    # and D for any global variable.
12164    # Also find C++ and __fastcall symbols from MSVC++,
12165    # which start with @ or ?.
12166    lt_cv_sys_global_symbol_pipe="$AWK '"\
12167"     {last_section=section; section=\$ 3};"\
12168"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12169"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12170"     \$ 0!~/External *\|/{next};"\
12171"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12172"     {if(hide[section]) next};"\
12173"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12174"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12175"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12176"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12177"     ' prfx=^$ac_symprfx"
12178  else
12179    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12180  fi
12181  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12182
12183  # Check to see that the pipe works correctly.
12184  pipe_works=no
12185
12186  rm -f conftest*
12187  cat > conftest.$ac_ext <<_LT_EOF
12188#ifdef __cplusplus
12189extern "C" {
12190#endif
12191char nm_test_var;
12192void nm_test_func(void);
12193void nm_test_func(void){}
12194#ifdef __cplusplus
12195}
12196#endif
12197int main(){nm_test_var='a';nm_test_func();return(0);}
12198_LT_EOF
12199
12200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12201  (eval $ac_compile) 2>&5
12202  ac_status=$?
12203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204  test $ac_status = 0; }; then
12205    # Now try to grab the symbols.
12206    nlist=conftest.nm
12207    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12208  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12209  ac_status=$?
12210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211  test $ac_status = 0; } && test -s "$nlist"; then
12212      # Try sorting and uniquifying the output.
12213      if sort "$nlist" | uniq > "$nlist"T; then
12214	mv -f "$nlist"T "$nlist"
12215      else
12216	rm -f "$nlist"T
12217      fi
12218
12219      # Make sure that we snagged all the symbols we need.
12220      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12221	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12222	  cat <<_LT_EOF > conftest.$ac_ext
12223/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12224#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12225/* DATA imports from DLLs on WIN32 con't be const, because runtime
12226   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12227# define LT_DLSYM_CONST
12228#elif defined(__osf__)
12229/* This system does not cope well with relocations in const data.  */
12230# define LT_DLSYM_CONST
12231#else
12232# define LT_DLSYM_CONST const
12233#endif
12234
12235#ifdef __cplusplus
12236extern "C" {
12237#endif
12238
12239_LT_EOF
12240	  # Now generate the symbol file.
12241	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12242
12243	  cat <<_LT_EOF >> conftest.$ac_ext
12244
12245/* The mapping between symbol names and symbols.  */
12246LT_DLSYM_CONST struct {
12247  const char *name;
12248  void       *address;
12249}
12250lt__PROGRAM__LTX_preloaded_symbols[] =
12251{
12252  { "@PROGRAM@", (void *) 0 },
12253_LT_EOF
12254	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12255	  cat <<\_LT_EOF >> conftest.$ac_ext
12256  {0, (void *) 0}
12257};
12258
12259/* This works around a problem in FreeBSD linker */
12260#ifdef FREEBSD_WORKAROUND
12261static const void *lt_preloaded_setup() {
12262  return lt__PROGRAM__LTX_preloaded_symbols;
12263}
12264#endif
12265
12266#ifdef __cplusplus
12267}
12268#endif
12269_LT_EOF
12270	  # Now try linking the two files.
12271	  mv conftest.$ac_objext conftstm.$ac_objext
12272	  lt_globsym_save_LIBS=$LIBS
12273	  lt_globsym_save_CFLAGS=$CFLAGS
12274	  LIBS="conftstm.$ac_objext"
12275	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12276	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12277  (eval $ac_link) 2>&5
12278  ac_status=$?
12279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12281	    pipe_works=yes
12282	  fi
12283	  LIBS=$lt_globsym_save_LIBS
12284	  CFLAGS=$lt_globsym_save_CFLAGS
12285	else
12286	  echo "cannot find nm_test_func in $nlist" >&5
12287	fi
12288      else
12289	echo "cannot find nm_test_var in $nlist" >&5
12290      fi
12291    else
12292      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12293    fi
12294  else
12295    echo "$progname: failed program was:" >&5
12296    cat conftest.$ac_ext >&5
12297  fi
12298  rm -rf conftest* conftst*
12299
12300  # Do not use the global_symbol_pipe unless it works.
12301  if test "$pipe_works" = yes; then
12302    break
12303  else
12304    lt_cv_sys_global_symbol_pipe=
12305  fi
12306done
12307
12308fi
12309
12310if test -z "$lt_cv_sys_global_symbol_pipe"; then
12311  lt_cv_sys_global_symbol_to_cdecl=
12312fi
12313if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12315$as_echo "failed" >&6; }
12316else
12317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12318$as_echo "ok" >&6; }
12319fi
12320
12321# Response file support.
12322if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12323  nm_file_list_spec='@'
12324elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12325  nm_file_list_spec='@'
12326fi
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12355$as_echo_n "checking for sysroot... " >&6; }
12356
12357# Check whether --with-sysroot was given.
12358if test "${with_sysroot+set}" = set; then :
12359  withval=$with_sysroot;
12360else
12361  with_sysroot=no
12362fi
12363
12364
12365lt_sysroot=
12366case ${with_sysroot} in #(
12367 yes)
12368   if test "$GCC" = yes; then
12369     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12370   fi
12371   ;; #(
12372 /*)
12373   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12374   ;; #(
12375 no|'')
12376   ;; #(
12377 *)
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12379$as_echo "${with_sysroot}" >&6; }
12380   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12381   ;;
12382esac
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12385$as_echo "${lt_sysroot:-no}" >&6; }
12386
12387
12388
12389
12390
12391# Check whether --enable-libtool-lock was given.
12392if test "${enable_libtool_lock+set}" = set; then :
12393  enableval=$enable_libtool_lock;
12394fi
12395
12396test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12397
12398# Some flags need to be propagated to the compiler or linker for good
12399# libtool support.
12400case $host in
12401ia64-*-hpux*)
12402  # Find out which ABI we are using.
12403  echo 'int i;' > conftest.$ac_ext
12404  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12405  (eval $ac_compile) 2>&5
12406  ac_status=$?
12407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12408  test $ac_status = 0; }; then
12409    case `/usr/bin/file conftest.$ac_objext` in
12410      *ELF-32*)
12411	HPUX_IA64_MODE="32"
12412	;;
12413      *ELF-64*)
12414	HPUX_IA64_MODE="64"
12415	;;
12416    esac
12417  fi
12418  rm -rf conftest*
12419  ;;
12420*-*-irix6*)
12421  # Find out which ABI we are using.
12422  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12423  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12424  (eval $ac_compile) 2>&5
12425  ac_status=$?
12426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427  test $ac_status = 0; }; then
12428    if test "$lt_cv_prog_gnu_ld" = yes; then
12429      case `/usr/bin/file conftest.$ac_objext` in
12430	*32-bit*)
12431	  LD="${LD-ld} -melf32bsmip"
12432	  ;;
12433	*N32*)
12434	  LD="${LD-ld} -melf32bmipn32"
12435	  ;;
12436	*64-bit*)
12437	  LD="${LD-ld} -melf64bmip"
12438	;;
12439      esac
12440    else
12441      case `/usr/bin/file conftest.$ac_objext` in
12442	*32-bit*)
12443	  LD="${LD-ld} -32"
12444	  ;;
12445	*N32*)
12446	  LD="${LD-ld} -n32"
12447	  ;;
12448	*64-bit*)
12449	  LD="${LD-ld} -64"
12450	  ;;
12451      esac
12452    fi
12453  fi
12454  rm -rf conftest*
12455  ;;
12456
12457x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12458s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12459  # Find out which ABI we are using.
12460  echo 'int i;' > conftest.$ac_ext
12461  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12462  (eval $ac_compile) 2>&5
12463  ac_status=$?
12464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465  test $ac_status = 0; }; then
12466    case `/usr/bin/file conftest.o` in
12467      *32-bit*)
12468	case $host in
12469	  x86_64-*kfreebsd*-gnu)
12470	    LD="${LD-ld} -m elf_i386_fbsd"
12471	    ;;
12472	  x86_64-*linux*)
12473	    LD="${LD-ld} -m elf_i386"
12474	    ;;
12475	  ppc64-*linux*|powerpc64-*linux*)
12476	    LD="${LD-ld} -m elf32ppclinux"
12477	    ;;
12478	  s390x-*linux*)
12479	    LD="${LD-ld} -m elf_s390"
12480	    ;;
12481	  sparc64-*linux*)
12482	    LD="${LD-ld} -m elf32_sparc"
12483	    ;;
12484	esac
12485	;;
12486      *64-bit*)
12487	case $host in
12488	  x86_64-*kfreebsd*-gnu)
12489	    LD="${LD-ld} -m elf_x86_64_fbsd"
12490	    ;;
12491	  x86_64-*linux*)
12492	    LD="${LD-ld} -m elf_x86_64"
12493	    ;;
12494	  ppc*-*linux*|powerpc*-*linux*)
12495	    LD="${LD-ld} -m elf64ppc"
12496	    ;;
12497	  s390*-*linux*|s390*-*tpf*)
12498	    LD="${LD-ld} -m elf64_s390"
12499	    ;;
12500	  sparc*-*linux*)
12501	    LD="${LD-ld} -m elf64_sparc"
12502	    ;;
12503	esac
12504	;;
12505    esac
12506  fi
12507  rm -rf conftest*
12508  ;;
12509
12510*-*-sco3.2v5*)
12511  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12512  SAVE_CFLAGS="$CFLAGS"
12513  CFLAGS="$CFLAGS -belf"
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12515$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12516if ${lt_cv_cc_needs_belf+:} false; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  ac_ext=c
12520ac_cpp='$CPP $CPPFLAGS'
12521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h.  */
12527
12528int
12529main ()
12530{
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_link "$LINENO"; then :
12537  lt_cv_cc_needs_belf=yes
12538else
12539  lt_cv_cc_needs_belf=no
12540fi
12541rm -f core conftest.err conftest.$ac_objext \
12542    conftest$ac_exeext conftest.$ac_ext
12543     ac_ext=c
12544ac_cpp='$CPP $CPPFLAGS'
12545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
12549fi
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12551$as_echo "$lt_cv_cc_needs_belf" >&6; }
12552  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12553    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12554    CFLAGS="$SAVE_CFLAGS"
12555  fi
12556  ;;
12557*-*solaris*)
12558  # Find out which ABI we are using.
12559  echo 'int i;' > conftest.$ac_ext
12560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12561  (eval $ac_compile) 2>&5
12562  ac_status=$?
12563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12564  test $ac_status = 0; }; then
12565    case `/usr/bin/file conftest.o` in
12566    *64-bit*)
12567      case $lt_cv_prog_gnu_ld in
12568      yes*)
12569        case $host in
12570        i?86-*-solaris*)
12571          LD="${LD-ld} -m elf_x86_64"
12572          ;;
12573        sparc*-*-solaris*)
12574          LD="${LD-ld} -m elf64_sparc"
12575          ;;
12576        esac
12577        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12578        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12579          LD="${LD-ld}_sol2"
12580        fi
12581        ;;
12582      *)
12583	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12584	  LD="${LD-ld} -64"
12585	fi
12586	;;
12587      esac
12588      ;;
12589    esac
12590  fi
12591  rm -rf conftest*
12592  ;;
12593esac
12594
12595need_locks="$enable_libtool_lock"
12596
12597if test -n "$ac_tool_prefix"; then
12598  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12599set dummy ${ac_tool_prefix}mt; ac_word=$2
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601$as_echo_n "checking for $ac_word... " >&6; }
12602if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12603  $as_echo_n "(cached) " >&6
12604else
12605  if test -n "$MANIFEST_TOOL"; then
12606  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12607else
12608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611  IFS=$as_save_IFS
12612  test -z "$as_dir" && as_dir=.
12613    for ac_exec_ext in '' $ac_executable_extensions; do
12614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12615    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617    break 2
12618  fi
12619done
12620  done
12621IFS=$as_save_IFS
12622
12623fi
12624fi
12625MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12626if test -n "$MANIFEST_TOOL"; then
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12628$as_echo "$MANIFEST_TOOL" >&6; }
12629else
12630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632fi
12633
12634
12635fi
12636if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12637  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12638  # Extract the first word of "mt", so it can be a program name with args.
12639set dummy mt; ac_word=$2
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12641$as_echo_n "checking for $ac_word... " >&6; }
12642if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12643  $as_echo_n "(cached) " >&6
12644else
12645  if test -n "$ac_ct_MANIFEST_TOOL"; then
12646  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12647else
12648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649for as_dir in $PATH
12650do
12651  IFS=$as_save_IFS
12652  test -z "$as_dir" && as_dir=.
12653    for ac_exec_ext in '' $ac_executable_extensions; do
12654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12655    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657    break 2
12658  fi
12659done
12660  done
12661IFS=$as_save_IFS
12662
12663fi
12664fi
12665ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12666if test -n "$ac_ct_MANIFEST_TOOL"; then
12667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12668$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12669else
12670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671$as_echo "no" >&6; }
12672fi
12673
12674  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12675    MANIFEST_TOOL=":"
12676  else
12677    case $cross_compiling:$ac_tool_warned in
12678yes:)
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12681ac_tool_warned=yes ;;
12682esac
12683    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12684  fi
12685else
12686  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12687fi
12688
12689test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12691$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12692if ${lt_cv_path_mainfest_tool+:} false; then :
12693  $as_echo_n "(cached) " >&6
12694else
12695  lt_cv_path_mainfest_tool=no
12696  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12697  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12698  cat conftest.err >&5
12699  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12700    lt_cv_path_mainfest_tool=yes
12701  fi
12702  rm -f conftest*
12703fi
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12705$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12706if test "x$lt_cv_path_mainfest_tool" != xyes; then
12707  MANIFEST_TOOL=:
12708fi
12709
12710
12711
12712
12713
12714
12715  case $host_os in
12716    rhapsody* | darwin*)
12717    if test -n "$ac_tool_prefix"; then
12718  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12719set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721$as_echo_n "checking for $ac_word... " >&6; }
12722if ${ac_cv_prog_DSYMUTIL+:} false; then :
12723  $as_echo_n "(cached) " >&6
12724else
12725  if test -n "$DSYMUTIL"; then
12726  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12727else
12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729for as_dir in $PATH
12730do
12731  IFS=$as_save_IFS
12732  test -z "$as_dir" && as_dir=.
12733    for ac_exec_ext in '' $ac_executable_extensions; do
12734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737    break 2
12738  fi
12739done
12740  done
12741IFS=$as_save_IFS
12742
12743fi
12744fi
12745DSYMUTIL=$ac_cv_prog_DSYMUTIL
12746if test -n "$DSYMUTIL"; then
12747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12748$as_echo "$DSYMUTIL" >&6; }
12749else
12750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752fi
12753
12754
12755fi
12756if test -z "$ac_cv_prog_DSYMUTIL"; then
12757  ac_ct_DSYMUTIL=$DSYMUTIL
12758  # Extract the first word of "dsymutil", so it can be a program name with args.
12759set dummy dsymutil; ac_word=$2
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
12762if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12763  $as_echo_n "(cached) " >&6
12764else
12765  if test -n "$ac_ct_DSYMUTIL"; then
12766  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12767else
12768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769for as_dir in $PATH
12770do
12771  IFS=$as_save_IFS
12772  test -z "$as_dir" && as_dir=.
12773    for ac_exec_ext in '' $ac_executable_extensions; do
12774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12775    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777    break 2
12778  fi
12779done
12780  done
12781IFS=$as_save_IFS
12782
12783fi
12784fi
12785ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12786if test -n "$ac_ct_DSYMUTIL"; then
12787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12788$as_echo "$ac_ct_DSYMUTIL" >&6; }
12789else
12790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792fi
12793
12794  if test "x$ac_ct_DSYMUTIL" = x; then
12795    DSYMUTIL=":"
12796  else
12797    case $cross_compiling:$ac_tool_warned in
12798yes:)
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12801ac_tool_warned=yes ;;
12802esac
12803    DSYMUTIL=$ac_ct_DSYMUTIL
12804  fi
12805else
12806  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12807fi
12808
12809    if test -n "$ac_tool_prefix"; then
12810  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12811set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
12814if ${ac_cv_prog_NMEDIT+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817  if test -n "$NMEDIT"; then
12818  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823  IFS=$as_save_IFS
12824  test -z "$as_dir" && as_dir=.
12825    for ac_exec_ext in '' $ac_executable_extensions; do
12826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12827    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829    break 2
12830  fi
12831done
12832  done
12833IFS=$as_save_IFS
12834
12835fi
12836fi
12837NMEDIT=$ac_cv_prog_NMEDIT
12838if test -n "$NMEDIT"; then
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12840$as_echo "$NMEDIT" >&6; }
12841else
12842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846
12847fi
12848if test -z "$ac_cv_prog_NMEDIT"; then
12849  ac_ct_NMEDIT=$NMEDIT
12850  # Extract the first word of "nmedit", so it can be a program name with args.
12851set dummy nmedit; ac_word=$2
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
12854if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12855  $as_echo_n "(cached) " >&6
12856else
12857  if test -n "$ac_ct_NMEDIT"; then
12858  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12859else
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863  IFS=$as_save_IFS
12864  test -z "$as_dir" && as_dir=.
12865    for ac_exec_ext in '' $ac_executable_extensions; do
12866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12867    ac_cv_prog_ac_ct_NMEDIT="nmedit"
12868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869    break 2
12870  fi
12871done
12872  done
12873IFS=$as_save_IFS
12874
12875fi
12876fi
12877ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12878if test -n "$ac_ct_NMEDIT"; then
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12880$as_echo "$ac_ct_NMEDIT" >&6; }
12881else
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886  if test "x$ac_ct_NMEDIT" = x; then
12887    NMEDIT=":"
12888  else
12889    case $cross_compiling:$ac_tool_warned in
12890yes:)
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12893ac_tool_warned=yes ;;
12894esac
12895    NMEDIT=$ac_ct_NMEDIT
12896  fi
12897else
12898  NMEDIT="$ac_cv_prog_NMEDIT"
12899fi
12900
12901    if test -n "$ac_tool_prefix"; then
12902  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12903set dummy ${ac_tool_prefix}lipo; ac_word=$2
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905$as_echo_n "checking for $ac_word... " >&6; }
12906if ${ac_cv_prog_LIPO+:} false; then :
12907  $as_echo_n "(cached) " >&6
12908else
12909  if test -n "$LIPO"; then
12910  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12911else
12912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913for as_dir in $PATH
12914do
12915  IFS=$as_save_IFS
12916  test -z "$as_dir" && as_dir=.
12917    for ac_exec_ext in '' $ac_executable_extensions; do
12918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12919    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921    break 2
12922  fi
12923done
12924  done
12925IFS=$as_save_IFS
12926
12927fi
12928fi
12929LIPO=$ac_cv_prog_LIPO
12930if test -n "$LIPO"; then
12931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12932$as_echo "$LIPO" >&6; }
12933else
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936fi
12937
12938
12939fi
12940if test -z "$ac_cv_prog_LIPO"; then
12941  ac_ct_LIPO=$LIPO
12942  # Extract the first word of "lipo", so it can be a program name with args.
12943set dummy lipo; ac_word=$2
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945$as_echo_n "checking for $ac_word... " >&6; }
12946if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12947  $as_echo_n "(cached) " >&6
12948else
12949  if test -n "$ac_ct_LIPO"; then
12950  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12951else
12952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955  IFS=$as_save_IFS
12956  test -z "$as_dir" && as_dir=.
12957    for ac_exec_ext in '' $ac_executable_extensions; do
12958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959    ac_cv_prog_ac_ct_LIPO="lipo"
12960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961    break 2
12962  fi
12963done
12964  done
12965IFS=$as_save_IFS
12966
12967fi
12968fi
12969ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12970if test -n "$ac_ct_LIPO"; then
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12972$as_echo "$ac_ct_LIPO" >&6; }
12973else
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976fi
12977
12978  if test "x$ac_ct_LIPO" = x; then
12979    LIPO=":"
12980  else
12981    case $cross_compiling:$ac_tool_warned in
12982yes:)
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12985ac_tool_warned=yes ;;
12986esac
12987    LIPO=$ac_ct_LIPO
12988  fi
12989else
12990  LIPO="$ac_cv_prog_LIPO"
12991fi
12992
12993    if test -n "$ac_tool_prefix"; then
12994  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12995set dummy ${ac_tool_prefix}otool; ac_word=$2
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997$as_echo_n "checking for $ac_word... " >&6; }
12998if ${ac_cv_prog_OTOOL+:} false; then :
12999  $as_echo_n "(cached) " >&6
13000else
13001  if test -n "$OTOOL"; then
13002  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007  IFS=$as_save_IFS
13008  test -z "$as_dir" && as_dir=.
13009    for ac_exec_ext in '' $ac_executable_extensions; do
13010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013    break 2
13014  fi
13015done
13016  done
13017IFS=$as_save_IFS
13018
13019fi
13020fi
13021OTOOL=$ac_cv_prog_OTOOL
13022if test -n "$OTOOL"; then
13023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13024$as_echo "$OTOOL" >&6; }
13025else
13026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
13028fi
13029
13030
13031fi
13032if test -z "$ac_cv_prog_OTOOL"; then
13033  ac_ct_OTOOL=$OTOOL
13034  # Extract the first word of "otool", so it can be a program name with args.
13035set dummy otool; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13039  $as_echo_n "(cached) " >&6
13040else
13041  if test -n "$ac_ct_OTOOL"; then
13042  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13043else
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047  IFS=$as_save_IFS
13048  test -z "$as_dir" && as_dir=.
13049    for ac_exec_ext in '' $ac_executable_extensions; do
13050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051    ac_cv_prog_ac_ct_OTOOL="otool"
13052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053    break 2
13054  fi
13055done
13056  done
13057IFS=$as_save_IFS
13058
13059fi
13060fi
13061ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13062if test -n "$ac_ct_OTOOL"; then
13063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13064$as_echo "$ac_ct_OTOOL" >&6; }
13065else
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070  if test "x$ac_ct_OTOOL" = x; then
13071    OTOOL=":"
13072  else
13073    case $cross_compiling:$ac_tool_warned in
13074yes:)
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077ac_tool_warned=yes ;;
13078esac
13079    OTOOL=$ac_ct_OTOOL
13080  fi
13081else
13082  OTOOL="$ac_cv_prog_OTOOL"
13083fi
13084
13085    if test -n "$ac_tool_prefix"; then
13086  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13087set dummy ${ac_tool_prefix}otool64; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
13090if ${ac_cv_prog_OTOOL64+:} false; then :
13091  $as_echo_n "(cached) " >&6
13092else
13093  if test -n "$OTOOL64"; then
13094  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099  IFS=$as_save_IFS
13100  test -z "$as_dir" && as_dir=.
13101    for ac_exec_ext in '' $ac_executable_extensions; do
13102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13103    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105    break 2
13106  fi
13107done
13108  done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113OTOOL64=$ac_cv_prog_OTOOL64
13114if test -n "$OTOOL64"; then
13115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13116$as_echo "$OTOOL64" >&6; }
13117else
13118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122
13123fi
13124if test -z "$ac_cv_prog_OTOOL64"; then
13125  ac_ct_OTOOL64=$OTOOL64
13126  # Extract the first word of "otool64", so it can be a program name with args.
13127set dummy otool64; ac_word=$2
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129$as_echo_n "checking for $ac_word... " >&6; }
13130if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13131  $as_echo_n "(cached) " >&6
13132else
13133  if test -n "$ac_ct_OTOOL64"; then
13134  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13135else
13136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $PATH
13138do
13139  IFS=$as_save_IFS
13140  test -z "$as_dir" && as_dir=.
13141    for ac_exec_ext in '' $ac_executable_extensions; do
13142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143    ac_cv_prog_ac_ct_OTOOL64="otool64"
13144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145    break 2
13146  fi
13147done
13148  done
13149IFS=$as_save_IFS
13150
13151fi
13152fi
13153ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13154if test -n "$ac_ct_OTOOL64"; then
13155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13156$as_echo "$ac_ct_OTOOL64" >&6; }
13157else
13158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160fi
13161
13162  if test "x$ac_ct_OTOOL64" = x; then
13163    OTOOL64=":"
13164  else
13165    case $cross_compiling:$ac_tool_warned in
13166yes:)
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13169ac_tool_warned=yes ;;
13170esac
13171    OTOOL64=$ac_ct_OTOOL64
13172  fi
13173else
13174  OTOOL64="$ac_cv_prog_OTOOL64"
13175fi
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13204$as_echo_n "checking for -single_module linker flag... " >&6; }
13205if ${lt_cv_apple_cc_single_mod+:} false; then :
13206  $as_echo_n "(cached) " >&6
13207else
13208  lt_cv_apple_cc_single_mod=no
13209      if test -z "${LT_MULTI_MODULE}"; then
13210	# By default we will add the -single_module flag. You can override
13211	# by either setting the environment variable LT_MULTI_MODULE
13212	# non-empty at configure time, or by adding -multi_module to the
13213	# link flags.
13214	rm -rf libconftest.dylib*
13215	echo "int foo(void){return 1;}" > conftest.c
13216	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13217-dynamiclib -Wl,-single_module conftest.c" >&5
13218	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13219	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13220        _lt_result=$?
13221	# If there is a non-empty error log, and "single_module"
13222	# appears in it, assume the flag caused a linker warning
13223        if test -s conftest.err && $GREP single_module conftest.err; then
13224	  cat conftest.err >&5
13225	# Otherwise, if the output was created with a 0 exit code from
13226	# the compiler, it worked.
13227	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13228	  lt_cv_apple_cc_single_mod=yes
13229	else
13230	  cat conftest.err >&5
13231	fi
13232	rm -rf libconftest.dylib*
13233	rm -f conftest.*
13234      fi
13235fi
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13237$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13238
13239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13240$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13241if ${lt_cv_ld_exported_symbols_list+:} false; then :
13242  $as_echo_n "(cached) " >&6
13243else
13244  lt_cv_ld_exported_symbols_list=no
13245      save_LDFLAGS=$LDFLAGS
13246      echo "_main" > conftest.sym
13247      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13248      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h.  */
13250
13251int
13252main ()
13253{
13254
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259if ac_fn_c_try_link "$LINENO"; then :
13260  lt_cv_ld_exported_symbols_list=yes
13261else
13262  lt_cv_ld_exported_symbols_list=no
13263fi
13264rm -f core conftest.err conftest.$ac_objext \
13265    conftest$ac_exeext conftest.$ac_ext
13266	LDFLAGS="$save_LDFLAGS"
13267
13268fi
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13270$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13271
13272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13273$as_echo_n "checking for -force_load linker flag... " >&6; }
13274if ${lt_cv_ld_force_load+:} false; then :
13275  $as_echo_n "(cached) " >&6
13276else
13277  lt_cv_ld_force_load=no
13278      cat > conftest.c << _LT_EOF
13279int forced_loaded() { return 2;}
13280_LT_EOF
13281      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13282      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13283      echo "$AR cru libconftest.a conftest.o" >&5
13284      $AR cru libconftest.a conftest.o 2>&5
13285      echo "$RANLIB libconftest.a" >&5
13286      $RANLIB libconftest.a 2>&5
13287      cat > conftest.c << _LT_EOF
13288int main() { return 0;}
13289_LT_EOF
13290      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13291      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13292      _lt_result=$?
13293      if test -s conftest.err && $GREP force_load conftest.err; then
13294	cat conftest.err >&5
13295      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13296	lt_cv_ld_force_load=yes
13297      else
13298	cat conftest.err >&5
13299      fi
13300        rm -f conftest.err libconftest.a conftest conftest.c
13301        rm -rf conftest.dSYM
13302
13303fi
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13305$as_echo "$lt_cv_ld_force_load" >&6; }
13306    case $host_os in
13307    rhapsody* | darwin1.[012])
13308      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13309    darwin1.*)
13310      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13311    darwin*) # darwin 5.x on
13312      # if running on 10.5 or later, the deployment target defaults
13313      # to the OS version, if on x86, and 10.4, the deployment
13314      # target defaults to 10.4. Don't you love it?
13315      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13316	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13317	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13318	10.[012]*)
13319	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13320	10.*)
13321	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13322      esac
13323    ;;
13324  esac
13325    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13326      _lt_dar_single_mod='$single_module'
13327    fi
13328    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13329      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13330    else
13331      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13332    fi
13333    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13334      _lt_dsymutil='~$DSYMUTIL $lib || :'
13335    else
13336      _lt_dsymutil=
13337    fi
13338    ;;
13339  esac
13340
13341for ac_header in dlfcn.h
13342do :
13343  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13344"
13345if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13346  cat >>confdefs.h <<_ACEOF
13347#define HAVE_DLFCN_H 1
13348_ACEOF
13349
13350fi
13351
13352done
13353
13354
13355
13356
13357func_stripname_cnf ()
13358{
13359  case ${2} in
13360  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13361  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13362  esac
13363} # func_stripname_cnf
13364
13365
13366
13367
13368
13369# Set options
13370enable_win32_dll=yes
13371
13372case $host in
13373*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13374  if test -n "$ac_tool_prefix"; then
13375  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13376set dummy ${ac_tool_prefix}as; ac_word=$2
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
13379if ${ac_cv_prog_AS+:} false; then :
13380  $as_echo_n "(cached) " >&6
13381else
13382  if test -n "$AS"; then
13383  ac_cv_prog_AS="$AS" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388  IFS=$as_save_IFS
13389  test -z "$as_dir" && as_dir=.
13390    for ac_exec_ext in '' $ac_executable_extensions; do
13391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13392    ac_cv_prog_AS="${ac_tool_prefix}as"
13393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394    break 2
13395  fi
13396done
13397  done
13398IFS=$as_save_IFS
13399
13400fi
13401fi
13402AS=$ac_cv_prog_AS
13403if test -n "$AS"; then
13404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13405$as_echo "$AS" >&6; }
13406else
13407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
13409fi
13410
13411
13412fi
13413if test -z "$ac_cv_prog_AS"; then
13414  ac_ct_AS=$AS
13415  # Extract the first word of "as", so it can be a program name with args.
13416set dummy as; ac_word=$2
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418$as_echo_n "checking for $ac_word... " >&6; }
13419if ${ac_cv_prog_ac_ct_AS+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  if test -n "$ac_ct_AS"; then
13423  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13424else
13425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $PATH
13427do
13428  IFS=$as_save_IFS
13429  test -z "$as_dir" && as_dir=.
13430    for ac_exec_ext in '' $ac_executable_extensions; do
13431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432    ac_cv_prog_ac_ct_AS="as"
13433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434    break 2
13435  fi
13436done
13437  done
13438IFS=$as_save_IFS
13439
13440fi
13441fi
13442ac_ct_AS=$ac_cv_prog_ac_ct_AS
13443if test -n "$ac_ct_AS"; then
13444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13445$as_echo "$ac_ct_AS" >&6; }
13446else
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451  if test "x$ac_ct_AS" = x; then
13452    AS="false"
13453  else
13454    case $cross_compiling:$ac_tool_warned in
13455yes:)
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13458ac_tool_warned=yes ;;
13459esac
13460    AS=$ac_ct_AS
13461  fi
13462else
13463  AS="$ac_cv_prog_AS"
13464fi
13465
13466  if test -n "$ac_tool_prefix"; then
13467  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13468set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470$as_echo_n "checking for $ac_word... " >&6; }
13471if ${ac_cv_prog_DLLTOOL+:} false; then :
13472  $as_echo_n "(cached) " >&6
13473else
13474  if test -n "$DLLTOOL"; then
13475  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13476else
13477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $PATH
13479do
13480  IFS=$as_save_IFS
13481  test -z "$as_dir" && as_dir=.
13482    for ac_exec_ext in '' $ac_executable_extensions; do
13483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486    break 2
13487  fi
13488done
13489  done
13490IFS=$as_save_IFS
13491
13492fi
13493fi
13494DLLTOOL=$ac_cv_prog_DLLTOOL
13495if test -n "$DLLTOOL"; then
13496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13497$as_echo "$DLLTOOL" >&6; }
13498else
13499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
13501fi
13502
13503
13504fi
13505if test -z "$ac_cv_prog_DLLTOOL"; then
13506  ac_ct_DLLTOOL=$DLLTOOL
13507  # Extract the first word of "dlltool", so it can be a program name with args.
13508set dummy dlltool; ac_word=$2
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510$as_echo_n "checking for $ac_word... " >&6; }
13511if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13512  $as_echo_n "(cached) " >&6
13513else
13514  if test -n "$ac_ct_DLLTOOL"; then
13515  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13516else
13517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518for as_dir in $PATH
13519do
13520  IFS=$as_save_IFS
13521  test -z "$as_dir" && as_dir=.
13522    for ac_exec_ext in '' $ac_executable_extensions; do
13523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13524    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526    break 2
13527  fi
13528done
13529  done
13530IFS=$as_save_IFS
13531
13532fi
13533fi
13534ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13535if test -n "$ac_ct_DLLTOOL"; then
13536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13537$as_echo "$ac_ct_DLLTOOL" >&6; }
13538else
13539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540$as_echo "no" >&6; }
13541fi
13542
13543  if test "x$ac_ct_DLLTOOL" = x; then
13544    DLLTOOL="false"
13545  else
13546    case $cross_compiling:$ac_tool_warned in
13547yes:)
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13550ac_tool_warned=yes ;;
13551esac
13552    DLLTOOL=$ac_ct_DLLTOOL
13553  fi
13554else
13555  DLLTOOL="$ac_cv_prog_DLLTOOL"
13556fi
13557
13558  if test -n "$ac_tool_prefix"; then
13559  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13560set dummy ${ac_tool_prefix}objdump; ac_word=$2
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562$as_echo_n "checking for $ac_word... " >&6; }
13563if ${ac_cv_prog_OBJDUMP+:} false; then :
13564  $as_echo_n "(cached) " >&6
13565else
13566  if test -n "$OBJDUMP"; then
13567  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13568else
13569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570for as_dir in $PATH
13571do
13572  IFS=$as_save_IFS
13573  test -z "$as_dir" && as_dir=.
13574    for ac_exec_ext in '' $ac_executable_extensions; do
13575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13576    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578    break 2
13579  fi
13580done
13581  done
13582IFS=$as_save_IFS
13583
13584fi
13585fi
13586OBJDUMP=$ac_cv_prog_OBJDUMP
13587if test -n "$OBJDUMP"; then
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13589$as_echo "$OBJDUMP" >&6; }
13590else
13591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592$as_echo "no" >&6; }
13593fi
13594
13595
13596fi
13597if test -z "$ac_cv_prog_OBJDUMP"; then
13598  ac_ct_OBJDUMP=$OBJDUMP
13599  # Extract the first word of "objdump", so it can be a program name with args.
13600set dummy objdump; ac_word=$2
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
13603if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13604  $as_echo_n "(cached) " >&6
13605else
13606  if test -n "$ac_ct_OBJDUMP"; then
13607  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612  IFS=$as_save_IFS
13613  test -z "$as_dir" && as_dir=.
13614    for ac_exec_ext in '' $ac_executable_extensions; do
13615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13616    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618    break 2
13619  fi
13620done
13621  done
13622IFS=$as_save_IFS
13623
13624fi
13625fi
13626ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13627if test -n "$ac_ct_OBJDUMP"; then
13628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13629$as_echo "$ac_ct_OBJDUMP" >&6; }
13630else
13631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
13633fi
13634
13635  if test "x$ac_ct_OBJDUMP" = x; then
13636    OBJDUMP="false"
13637  else
13638    case $cross_compiling:$ac_tool_warned in
13639yes:)
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642ac_tool_warned=yes ;;
13643esac
13644    OBJDUMP=$ac_ct_OBJDUMP
13645  fi
13646else
13647  OBJDUMP="$ac_cv_prog_OBJDUMP"
13648fi
13649
13650  ;;
13651esac
13652
13653test -z "$AS" && AS=as
13654
13655
13656
13657
13658
13659test -z "$DLLTOOL" && DLLTOOL=dlltool
13660
13661
13662
13663
13664
13665test -z "$OBJDUMP" && OBJDUMP=objdump
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675            # Check whether --enable-shared was given.
13676if test "${enable_shared+set}" = set; then :
13677  enableval=$enable_shared; p=${PACKAGE-default}
13678    case $enableval in
13679    yes) enable_shared=yes ;;
13680    no) enable_shared=no ;;
13681    *)
13682      enable_shared=no
13683      # Look at the argument we got.  We use all the common list separators.
13684      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13685      for pkg in $enableval; do
13686	IFS="$lt_save_ifs"
13687	if test "X$pkg" = "X$p"; then
13688	  enable_shared=yes
13689	fi
13690      done
13691      IFS="$lt_save_ifs"
13692      ;;
13693    esac
13694else
13695  enable_shared=yes
13696fi
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706  # Check whether --enable-static was given.
13707if test "${enable_static+set}" = set; then :
13708  enableval=$enable_static; p=${PACKAGE-default}
13709    case $enableval in
13710    yes) enable_static=yes ;;
13711    no) enable_static=no ;;
13712    *)
13713     enable_static=no
13714      # Look at the argument we got.  We use all the common list separators.
13715      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13716      for pkg in $enableval; do
13717	IFS="$lt_save_ifs"
13718	if test "X$pkg" = "X$p"; then
13719	  enable_static=yes
13720	fi
13721      done
13722      IFS="$lt_save_ifs"
13723      ;;
13724    esac
13725else
13726  enable_static=yes
13727fi
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738# Check whether --with-pic was given.
13739if test "${with_pic+set}" = set; then :
13740  withval=$with_pic; lt_p=${PACKAGE-default}
13741    case $withval in
13742    yes|no) pic_mode=$withval ;;
13743    *)
13744      pic_mode=default
13745      # Look at the argument we got.  We use all the common list separators.
13746      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13747      for lt_pkg in $withval; do
13748	IFS="$lt_save_ifs"
13749	if test "X$lt_pkg" = "X$lt_p"; then
13750	  pic_mode=yes
13751	fi
13752      done
13753      IFS="$lt_save_ifs"
13754      ;;
13755    esac
13756else
13757  pic_mode=default
13758fi
13759
13760
13761test -z "$pic_mode" && pic_mode=default
13762
13763
13764
13765
13766
13767
13768
13769  # Check whether --enable-fast-install was given.
13770if test "${enable_fast_install+set}" = set; then :
13771  enableval=$enable_fast_install; p=${PACKAGE-default}
13772    case $enableval in
13773    yes) enable_fast_install=yes ;;
13774    no) enable_fast_install=no ;;
13775    *)
13776      enable_fast_install=no
13777      # Look at the argument we got.  We use all the common list separators.
13778      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13779      for pkg in $enableval; do
13780	IFS="$lt_save_ifs"
13781	if test "X$pkg" = "X$p"; then
13782	  enable_fast_install=yes
13783	fi
13784      done
13785      IFS="$lt_save_ifs"
13786      ;;
13787    esac
13788else
13789  enable_fast_install=yes
13790fi
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802# This can be used to rebuild libtool when needed
13803LIBTOOL_DEPS="$ltmain"
13804
13805# Always use our own libtool.
13806LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837test -z "$LN_S" && LN_S="ln -s"
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852if test -n "${ZSH_VERSION+set}" ; then
13853   setopt NO_GLOB_SUBST
13854fi
13855
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13857$as_echo_n "checking for objdir... " >&6; }
13858if ${lt_cv_objdir+:} false; then :
13859  $as_echo_n "(cached) " >&6
13860else
13861  rm -f .libs 2>/dev/null
13862mkdir .libs 2>/dev/null
13863if test -d .libs; then
13864  lt_cv_objdir=.libs
13865else
13866  # MS-DOS does not allow filenames that begin with a dot.
13867  lt_cv_objdir=_libs
13868fi
13869rmdir .libs 2>/dev/null
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13872$as_echo "$lt_cv_objdir" >&6; }
13873objdir=$lt_cv_objdir
13874
13875
13876
13877
13878
13879cat >>confdefs.h <<_ACEOF
13880#define LT_OBJDIR "$lt_cv_objdir/"
13881_ACEOF
13882
13883
13884
13885
13886case $host_os in
13887aix3*)
13888  # AIX sometimes has problems with the GCC collect2 program.  For some
13889  # reason, if we set the COLLECT_NAMES environment variable, the problems
13890  # vanish in a puff of smoke.
13891  if test "X${COLLECT_NAMES+set}" != Xset; then
13892    COLLECT_NAMES=
13893    export COLLECT_NAMES
13894  fi
13895  ;;
13896esac
13897
13898# Global variables:
13899ofile=libtool
13900can_build_shared=yes
13901
13902# All known linkers require a `.a' archive for static linking (except MSVC,
13903# which needs '.lib').
13904libext=a
13905
13906with_gnu_ld="$lt_cv_prog_gnu_ld"
13907
13908old_CC="$CC"
13909old_CFLAGS="$CFLAGS"
13910
13911# Set sane defaults for various variables
13912test -z "$CC" && CC=cc
13913test -z "$LTCC" && LTCC=$CC
13914test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13915test -z "$LD" && LD=ld
13916test -z "$ac_objext" && ac_objext=o
13917
13918for cc_temp in $compiler""; do
13919  case $cc_temp in
13920    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13922    \-*) ;;
13923    *) break;;
13924  esac
13925done
13926cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13927
13928
13929# Only perform the check for file, if the check method requires it
13930test -z "$MAGIC_CMD" && MAGIC_CMD=file
13931case $deplibs_check_method in
13932file_magic*)
13933  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13935$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13936if ${lt_cv_path_MAGIC_CMD+:} false; then :
13937  $as_echo_n "(cached) " >&6
13938else
13939  case $MAGIC_CMD in
13940[\\/*] |  ?:[\\/]*)
13941  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13942  ;;
13943*)
13944  lt_save_MAGIC_CMD="$MAGIC_CMD"
13945  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13946  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13947  for ac_dir in $ac_dummy; do
13948    IFS="$lt_save_ifs"
13949    test -z "$ac_dir" && ac_dir=.
13950    if test -f $ac_dir/${ac_tool_prefix}file; then
13951      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13952      if test -n "$file_magic_test_file"; then
13953	case $deplibs_check_method in
13954	"file_magic "*)
13955	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13956	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13957	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13958	    $EGREP "$file_magic_regex" > /dev/null; then
13959	    :
13960	  else
13961	    cat <<_LT_EOF 1>&2
13962
13963*** Warning: the command libtool uses to detect shared libraries,
13964*** $file_magic_cmd, produces output that libtool cannot recognize.
13965*** The result is that libtool may fail to recognize shared libraries
13966*** as such.  This will affect the creation of libtool libraries that
13967*** depend on shared libraries, but programs linked with such libtool
13968*** libraries will work regardless of this problem.  Nevertheless, you
13969*** may want to report the problem to your system manager and/or to
13970*** bug-libtool@gnu.org
13971
13972_LT_EOF
13973	  fi ;;
13974	esac
13975      fi
13976      break
13977    fi
13978  done
13979  IFS="$lt_save_ifs"
13980  MAGIC_CMD="$lt_save_MAGIC_CMD"
13981  ;;
13982esac
13983fi
13984
13985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13986if test -n "$MAGIC_CMD"; then
13987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13988$as_echo "$MAGIC_CMD" >&6; }
13989else
13990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991$as_echo "no" >&6; }
13992fi
13993
13994
13995
13996
13997
13998if test -z "$lt_cv_path_MAGIC_CMD"; then
13999  if test -n "$ac_tool_prefix"; then
14000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14001$as_echo_n "checking for file... " >&6; }
14002if ${lt_cv_path_MAGIC_CMD+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  case $MAGIC_CMD in
14006[\\/*] |  ?:[\\/]*)
14007  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14008  ;;
14009*)
14010  lt_save_MAGIC_CMD="$MAGIC_CMD"
14011  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14012  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14013  for ac_dir in $ac_dummy; do
14014    IFS="$lt_save_ifs"
14015    test -z "$ac_dir" && ac_dir=.
14016    if test -f $ac_dir/file; then
14017      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14018      if test -n "$file_magic_test_file"; then
14019	case $deplibs_check_method in
14020	"file_magic "*)
14021	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14022	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14023	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14024	    $EGREP "$file_magic_regex" > /dev/null; then
14025	    :
14026	  else
14027	    cat <<_LT_EOF 1>&2
14028
14029*** Warning: the command libtool uses to detect shared libraries,
14030*** $file_magic_cmd, produces output that libtool cannot recognize.
14031*** The result is that libtool may fail to recognize shared libraries
14032*** as such.  This will affect the creation of libtool libraries that
14033*** depend on shared libraries, but programs linked with such libtool
14034*** libraries will work regardless of this problem.  Nevertheless, you
14035*** may want to report the problem to your system manager and/or to
14036*** bug-libtool@gnu.org
14037
14038_LT_EOF
14039	  fi ;;
14040	esac
14041      fi
14042      break
14043    fi
14044  done
14045  IFS="$lt_save_ifs"
14046  MAGIC_CMD="$lt_save_MAGIC_CMD"
14047  ;;
14048esac
14049fi
14050
14051MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14052if test -n "$MAGIC_CMD"; then
14053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14054$as_echo "$MAGIC_CMD" >&6; }
14055else
14056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057$as_echo "no" >&6; }
14058fi
14059
14060
14061  else
14062    MAGIC_CMD=:
14063  fi
14064fi
14065
14066  fi
14067  ;;
14068esac
14069
14070# Use C for the default configuration in the libtool script
14071
14072lt_save_CC="$CC"
14073ac_ext=c
14074ac_cpp='$CPP $CPPFLAGS'
14075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077ac_compiler_gnu=$ac_cv_c_compiler_gnu
14078
14079
14080# Source file extension for C test sources.
14081ac_ext=c
14082
14083# Object file extension for compiled C test sources.
14084objext=o
14085objext=$objext
14086
14087# Code to be used in simple compile tests
14088lt_simple_compile_test_code="int some_variable = 0;"
14089
14090# Code to be used in simple link tests
14091lt_simple_link_test_code='int main(){return(0);}'
14092
14093
14094
14095
14096
14097
14098
14099# If no C compiler was specified, use CC.
14100LTCC=${LTCC-"$CC"}
14101
14102# If no C compiler flags were specified, use CFLAGS.
14103LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14104
14105# Allow CC to be a program name with arguments.
14106compiler=$CC
14107
14108# Save the default compiler, since it gets overwritten when the other
14109# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14110compiler_DEFAULT=$CC
14111
14112# save warnings/boilerplate of simple test code
14113ac_outfile=conftest.$ac_objext
14114echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14115eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14116_lt_compiler_boilerplate=`cat conftest.err`
14117$RM conftest*
14118
14119ac_outfile=conftest.$ac_objext
14120echo "$lt_simple_link_test_code" >conftest.$ac_ext
14121eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14122_lt_linker_boilerplate=`cat conftest.err`
14123$RM -r conftest*
14124
14125
14126## CAVEAT EMPTOR:
14127## There is no encapsulation within the following macros, do not change
14128## the running order or otherwise move them around unless you know exactly
14129## what you are doing...
14130if test -n "$compiler"; then
14131
14132lt_prog_compiler_no_builtin_flag=
14133
14134if test "$GCC" = yes; then
14135  case $cc_basename in
14136  nvcc*)
14137    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14138  *)
14139    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14140  esac
14141
14142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14143$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14144if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14145  $as_echo_n "(cached) " >&6
14146else
14147  lt_cv_prog_compiler_rtti_exceptions=no
14148   ac_outfile=conftest.$ac_objext
14149   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150   lt_compiler_flag="-fno-rtti -fno-exceptions"
14151   # Insert the option either (1) after the last *FLAGS variable, or
14152   # (2) before a word containing "conftest.", or (3) at the end.
14153   # Note that $ac_compile itself does not contain backslashes and begins
14154   # with a dollar sign (not a hyphen), so the echo should work correctly.
14155   # The option is referenced via a variable to avoid confusing sed.
14156   lt_compile=`echo "$ac_compile" | $SED \
14157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159   -e 's:$: $lt_compiler_flag:'`
14160   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14161   (eval "$lt_compile" 2>conftest.err)
14162   ac_status=$?
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   if (exit $ac_status) && test -s "$ac_outfile"; then
14166     # The compiler can only warn and ignore the option if not recognized
14167     # So say no if there are warnings other than the usual output.
14168     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14169     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14170     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14171       lt_cv_prog_compiler_rtti_exceptions=yes
14172     fi
14173   fi
14174   $RM conftest*
14175
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14178$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14179
14180if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14181    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14182else
14183    :
14184fi
14185
14186fi
14187
14188
14189
14190
14191
14192
14193  lt_prog_compiler_wl=
14194lt_prog_compiler_pic=
14195lt_prog_compiler_static=
14196
14197
14198  if test "$GCC" = yes; then
14199    lt_prog_compiler_wl='-Wl,'
14200    lt_prog_compiler_static='-static'
14201
14202    case $host_os in
14203      aix*)
14204      # All AIX code is PIC.
14205      if test "$host_cpu" = ia64; then
14206	# AIX 5 now supports IA64 processor
14207	lt_prog_compiler_static='-Bstatic'
14208      fi
14209      ;;
14210
14211    amigaos*)
14212      case $host_cpu in
14213      powerpc)
14214            # see comment about AmigaOS4 .so support
14215            lt_prog_compiler_pic='-fPIC'
14216        ;;
14217      m68k)
14218            # FIXME: we need at least 68020 code to build shared libraries, but
14219            # adding the `-m68020' flag to GCC prevents building anything better,
14220            # like `-m68040'.
14221            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14222        ;;
14223      esac
14224      ;;
14225
14226    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14227      # PIC is the default for these OSes.
14228      ;;
14229
14230    mingw* | cygwin* | pw32* | os2* | cegcc*)
14231      # This hack is so that the source file can tell whether it is being
14232      # built for inclusion in a dll (and should export symbols for example).
14233      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14234      # (--disable-auto-import) libraries
14235      lt_prog_compiler_pic='-DDLL_EXPORT'
14236      ;;
14237
14238    darwin* | rhapsody*)
14239      # PIC is the default on this platform
14240      # Common symbols not allowed in MH_DYLIB files
14241      lt_prog_compiler_pic='-fno-common'
14242      ;;
14243
14244    haiku*)
14245      # PIC is the default for Haiku.
14246      # The "-static" flag exists, but is broken.
14247      lt_prog_compiler_static=
14248      ;;
14249
14250    hpux*)
14251      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14252      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14253      # sets the default TLS model and affects inlining.
14254      case $host_cpu in
14255      hppa*64*)
14256	# +Z the default
14257	;;
14258      *)
14259	lt_prog_compiler_pic='-fPIC'
14260	;;
14261      esac
14262      ;;
14263
14264    interix[3-9]*)
14265      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14266      # Instead, we relocate shared libraries at runtime.
14267      ;;
14268
14269    msdosdjgpp*)
14270      # Just because we use GCC doesn't mean we suddenly get shared libraries
14271      # on systems that don't support them.
14272      lt_prog_compiler_can_build_shared=no
14273      enable_shared=no
14274      ;;
14275
14276    *nto* | *qnx*)
14277      # QNX uses GNU C++, but need to define -shared option too, otherwise
14278      # it will coredump.
14279      lt_prog_compiler_pic='-fPIC -shared'
14280      ;;
14281
14282    sysv4*MP*)
14283      if test -d /usr/nec; then
14284	lt_prog_compiler_pic=-Kconform_pic
14285      fi
14286      ;;
14287
14288    *)
14289      lt_prog_compiler_pic='-fPIC'
14290      ;;
14291    esac
14292
14293    case $cc_basename in
14294    nvcc*) # Cuda Compiler Driver 2.2
14295      lt_prog_compiler_wl='-Xlinker '
14296      if test -n "$lt_prog_compiler_pic"; then
14297        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14298      fi
14299      ;;
14300    esac
14301  else
14302    # PORTME Check for flag to pass linker flags through the system compiler.
14303    case $host_os in
14304    aix*)
14305      lt_prog_compiler_wl='-Wl,'
14306      if test "$host_cpu" = ia64; then
14307	# AIX 5 now supports IA64 processor
14308	lt_prog_compiler_static='-Bstatic'
14309      else
14310	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14311      fi
14312      ;;
14313
14314    mingw* | cygwin* | pw32* | os2* | cegcc*)
14315      # This hack is so that the source file can tell whether it is being
14316      # built for inclusion in a dll (and should export symbols for example).
14317      lt_prog_compiler_pic='-DDLL_EXPORT'
14318      ;;
14319
14320    hpux9* | hpux10* | hpux11*)
14321      lt_prog_compiler_wl='-Wl,'
14322      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14323      # not for PA HP-UX.
14324      case $host_cpu in
14325      hppa*64*|ia64*)
14326	# +Z the default
14327	;;
14328      *)
14329	lt_prog_compiler_pic='+Z'
14330	;;
14331      esac
14332      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14333      lt_prog_compiler_static='${wl}-a ${wl}archive'
14334      ;;
14335
14336    irix5* | irix6* | nonstopux*)
14337      lt_prog_compiler_wl='-Wl,'
14338      # PIC (with -KPIC) is the default.
14339      lt_prog_compiler_static='-non_shared'
14340      ;;
14341
14342    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14343      case $cc_basename in
14344      # old Intel for x86_64 which still supported -KPIC.
14345      ecc*)
14346	lt_prog_compiler_wl='-Wl,'
14347	lt_prog_compiler_pic='-KPIC'
14348	lt_prog_compiler_static='-static'
14349        ;;
14350      # icc used to be incompatible with GCC.
14351      # ICC 10 doesn't accept -KPIC any more.
14352      icc* | ifort*)
14353	lt_prog_compiler_wl='-Wl,'
14354	lt_prog_compiler_pic='-fPIC'
14355	lt_prog_compiler_static='-static'
14356        ;;
14357      # Lahey Fortran 8.1.
14358      lf95*)
14359	lt_prog_compiler_wl='-Wl,'
14360	lt_prog_compiler_pic='--shared'
14361	lt_prog_compiler_static='--static'
14362	;;
14363      nagfor*)
14364	# NAG Fortran compiler
14365	lt_prog_compiler_wl='-Wl,-Wl,,'
14366	lt_prog_compiler_pic='-PIC'
14367	lt_prog_compiler_static='-Bstatic'
14368	;;
14369      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14370        # Portland Group compilers (*not* the Pentium gcc compiler,
14371	# which looks to be a dead project)
14372	lt_prog_compiler_wl='-Wl,'
14373	lt_prog_compiler_pic='-fpic'
14374	lt_prog_compiler_static='-Bstatic'
14375        ;;
14376      ccc*)
14377        lt_prog_compiler_wl='-Wl,'
14378        # All Alpha code is PIC.
14379        lt_prog_compiler_static='-non_shared'
14380        ;;
14381      xl* | bgxl* | bgf* | mpixl*)
14382	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14383	lt_prog_compiler_wl='-Wl,'
14384	lt_prog_compiler_pic='-qpic'
14385	lt_prog_compiler_static='-qstaticlink'
14386	;;
14387      *)
14388	case `$CC -V 2>&1 | sed 5q` in
14389	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14390	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14391	  lt_prog_compiler_pic='-KPIC'
14392	  lt_prog_compiler_static='-Bstatic'
14393	  lt_prog_compiler_wl=''
14394	  ;;
14395	*Sun\ F* | *Sun*Fortran*)
14396	  lt_prog_compiler_pic='-KPIC'
14397	  lt_prog_compiler_static='-Bstatic'
14398	  lt_prog_compiler_wl='-Qoption ld '
14399	  ;;
14400	*Sun\ C*)
14401	  # Sun C 5.9
14402	  lt_prog_compiler_pic='-KPIC'
14403	  lt_prog_compiler_static='-Bstatic'
14404	  lt_prog_compiler_wl='-Wl,'
14405	  ;;
14406        *Intel*\ [CF]*Compiler*)
14407	  lt_prog_compiler_wl='-Wl,'
14408	  lt_prog_compiler_pic='-fPIC'
14409	  lt_prog_compiler_static='-static'
14410	  ;;
14411	*Portland\ Group*)
14412	  lt_prog_compiler_wl='-Wl,'
14413	  lt_prog_compiler_pic='-fpic'
14414	  lt_prog_compiler_static='-Bstatic'
14415	  ;;
14416	esac
14417	;;
14418      esac
14419      ;;
14420
14421    newsos6)
14422      lt_prog_compiler_pic='-KPIC'
14423      lt_prog_compiler_static='-Bstatic'
14424      ;;
14425
14426    *nto* | *qnx*)
14427      # QNX uses GNU C++, but need to define -shared option too, otherwise
14428      # it will coredump.
14429      lt_prog_compiler_pic='-fPIC -shared'
14430      ;;
14431
14432    osf3* | osf4* | osf5*)
14433      lt_prog_compiler_wl='-Wl,'
14434      # All OSF/1 code is PIC.
14435      lt_prog_compiler_static='-non_shared'
14436      ;;
14437
14438    rdos*)
14439      lt_prog_compiler_static='-non_shared'
14440      ;;
14441
14442    solaris*)
14443      lt_prog_compiler_pic='-KPIC'
14444      lt_prog_compiler_static='-Bstatic'
14445      case $cc_basename in
14446      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14447	lt_prog_compiler_wl='-Qoption ld ';;
14448      *)
14449	lt_prog_compiler_wl='-Wl,';;
14450      esac
14451      ;;
14452
14453    sunos4*)
14454      lt_prog_compiler_wl='-Qoption ld '
14455      lt_prog_compiler_pic='-PIC'
14456      lt_prog_compiler_static='-Bstatic'
14457      ;;
14458
14459    sysv4 | sysv4.2uw2* | sysv4.3*)
14460      lt_prog_compiler_wl='-Wl,'
14461      lt_prog_compiler_pic='-KPIC'
14462      lt_prog_compiler_static='-Bstatic'
14463      ;;
14464
14465    sysv4*MP*)
14466      if test -d /usr/nec ;then
14467	lt_prog_compiler_pic='-Kconform_pic'
14468	lt_prog_compiler_static='-Bstatic'
14469      fi
14470      ;;
14471
14472    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14473      lt_prog_compiler_wl='-Wl,'
14474      lt_prog_compiler_pic='-KPIC'
14475      lt_prog_compiler_static='-Bstatic'
14476      ;;
14477
14478    unicos*)
14479      lt_prog_compiler_wl='-Wl,'
14480      lt_prog_compiler_can_build_shared=no
14481      ;;
14482
14483    uts4*)
14484      lt_prog_compiler_pic='-pic'
14485      lt_prog_compiler_static='-Bstatic'
14486      ;;
14487
14488    *)
14489      lt_prog_compiler_can_build_shared=no
14490      ;;
14491    esac
14492  fi
14493
14494case $host_os in
14495  # For platforms which do not support PIC, -DPIC is meaningless:
14496  *djgpp*)
14497    lt_prog_compiler_pic=
14498    ;;
14499  *)
14500    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14501    ;;
14502esac
14503
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14505$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14506if ${lt_cv_prog_compiler_pic+:} false; then :
14507  $as_echo_n "(cached) " >&6
14508else
14509  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14510fi
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14512$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14513lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14514
14515#
14516# Check to make sure the PIC flag actually works.
14517#
14518if test -n "$lt_prog_compiler_pic"; then
14519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14520$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14521if ${lt_cv_prog_compiler_pic_works+:} false; then :
14522  $as_echo_n "(cached) " >&6
14523else
14524  lt_cv_prog_compiler_pic_works=no
14525   ac_outfile=conftest.$ac_objext
14526   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14527   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14528   # Insert the option either (1) after the last *FLAGS variable, or
14529   # (2) before a word containing "conftest.", or (3) at the end.
14530   # Note that $ac_compile itself does not contain backslashes and begins
14531   # with a dollar sign (not a hyphen), so the echo should work correctly.
14532   # The option is referenced via a variable to avoid confusing sed.
14533   lt_compile=`echo "$ac_compile" | $SED \
14534   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14535   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14536   -e 's:$: $lt_compiler_flag:'`
14537   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14538   (eval "$lt_compile" 2>conftest.err)
14539   ac_status=$?
14540   cat conftest.err >&5
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   if (exit $ac_status) && test -s "$ac_outfile"; then
14543     # The compiler can only warn and ignore the option if not recognized
14544     # So say no if there are warnings other than the usual output.
14545     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14546     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14548       lt_cv_prog_compiler_pic_works=yes
14549     fi
14550   fi
14551   $RM conftest*
14552
14553fi
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14555$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14556
14557if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14558    case $lt_prog_compiler_pic in
14559     "" | " "*) ;;
14560     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14561     esac
14562else
14563    lt_prog_compiler_pic=
14564     lt_prog_compiler_can_build_shared=no
14565fi
14566
14567fi
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579#
14580# Check to make sure the static flag actually works.
14581#
14582wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14584$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14585if ${lt_cv_prog_compiler_static_works+:} false; then :
14586  $as_echo_n "(cached) " >&6
14587else
14588  lt_cv_prog_compiler_static_works=no
14589   save_LDFLAGS="$LDFLAGS"
14590   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14591   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14592   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14593     # The linker can only warn and ignore the option if not recognized
14594     # So say no if there are warnings
14595     if test -s conftest.err; then
14596       # Append any errors to the config.log.
14597       cat conftest.err 1>&5
14598       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14599       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14600       if diff conftest.exp conftest.er2 >/dev/null; then
14601         lt_cv_prog_compiler_static_works=yes
14602       fi
14603     else
14604       lt_cv_prog_compiler_static_works=yes
14605     fi
14606   fi
14607   $RM -r conftest*
14608   LDFLAGS="$save_LDFLAGS"
14609
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14612$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14613
14614if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14615    :
14616else
14617    lt_prog_compiler_static=
14618fi
14619
14620
14621
14622
14623
14624
14625
14626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14627$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14628if ${lt_cv_prog_compiler_c_o+:} false; then :
14629  $as_echo_n "(cached) " >&6
14630else
14631  lt_cv_prog_compiler_c_o=no
14632   $RM -r conftest 2>/dev/null
14633   mkdir conftest
14634   cd conftest
14635   mkdir out
14636   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14637
14638   lt_compiler_flag="-o out/conftest2.$ac_objext"
14639   # Insert the option either (1) after the last *FLAGS variable, or
14640   # (2) before a word containing "conftest.", or (3) at the end.
14641   # Note that $ac_compile itself does not contain backslashes and begins
14642   # with a dollar sign (not a hyphen), so the echo should work correctly.
14643   lt_compile=`echo "$ac_compile" | $SED \
14644   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14646   -e 's:$: $lt_compiler_flag:'`
14647   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14648   (eval "$lt_compile" 2>out/conftest.err)
14649   ac_status=$?
14650   cat out/conftest.err >&5
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14653   then
14654     # The compiler can only warn and ignore the option if not recognized
14655     # So say no if there are warnings
14656     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14657     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14658     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14659       lt_cv_prog_compiler_c_o=yes
14660     fi
14661   fi
14662   chmod u+w . 2>&5
14663   $RM conftest*
14664   # SGI C++ compiler will create directory out/ii_files/ for
14665   # template instantiation
14666   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14667   $RM out/* && rmdir out
14668   cd ..
14669   $RM -r conftest
14670   $RM conftest*
14671
14672fi
14673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14674$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14675
14676
14677
14678
14679
14680
14681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14682$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14683if ${lt_cv_prog_compiler_c_o+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686  lt_cv_prog_compiler_c_o=no
14687   $RM -r conftest 2>/dev/null
14688   mkdir conftest
14689   cd conftest
14690   mkdir out
14691   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14692
14693   lt_compiler_flag="-o out/conftest2.$ac_objext"
14694   # Insert the option either (1) after the last *FLAGS variable, or
14695   # (2) before a word containing "conftest.", or (3) at the end.
14696   # Note that $ac_compile itself does not contain backslashes and begins
14697   # with a dollar sign (not a hyphen), so the echo should work correctly.
14698   lt_compile=`echo "$ac_compile" | $SED \
14699   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14700   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14701   -e 's:$: $lt_compiler_flag:'`
14702   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14703   (eval "$lt_compile" 2>out/conftest.err)
14704   ac_status=$?
14705   cat out/conftest.err >&5
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14708   then
14709     # The compiler can only warn and ignore the option if not recognized
14710     # So say no if there are warnings
14711     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14712     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14713     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14714       lt_cv_prog_compiler_c_o=yes
14715     fi
14716   fi
14717   chmod u+w . 2>&5
14718   $RM conftest*
14719   # SGI C++ compiler will create directory out/ii_files/ for
14720   # template instantiation
14721   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14722   $RM out/* && rmdir out
14723   cd ..
14724   $RM -r conftest
14725   $RM conftest*
14726
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14729$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14730
14731
14732
14733
14734hard_links="nottested"
14735if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14736  # do not overwrite the value of need_locks provided by the user
14737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14738$as_echo_n "checking if we can lock with hard links... " >&6; }
14739  hard_links=yes
14740  $RM conftest*
14741  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14742  touch conftest.a
14743  ln conftest.a conftest.b 2>&5 || hard_links=no
14744  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14746$as_echo "$hard_links" >&6; }
14747  if test "$hard_links" = no; then
14748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14749$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14750    need_locks=warn
14751  fi
14752else
14753  need_locks=no
14754fi
14755
14756
14757
14758
14759
14760
14761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14762$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14763
14764  runpath_var=
14765  allow_undefined_flag=
14766  always_export_symbols=no
14767  archive_cmds=
14768  archive_expsym_cmds=
14769  compiler_needs_object=no
14770  enable_shared_with_static_runtimes=no
14771  export_dynamic_flag_spec=
14772  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14773  hardcode_automatic=no
14774  hardcode_direct=no
14775  hardcode_direct_absolute=no
14776  hardcode_libdir_flag_spec=
14777  hardcode_libdir_separator=
14778  hardcode_minus_L=no
14779  hardcode_shlibpath_var=unsupported
14780  inherit_rpath=no
14781  link_all_deplibs=unknown
14782  module_cmds=
14783  module_expsym_cmds=
14784  old_archive_from_new_cmds=
14785  old_archive_from_expsyms_cmds=
14786  thread_safe_flag_spec=
14787  whole_archive_flag_spec=
14788  # include_expsyms should be a list of space-separated symbols to be *always*
14789  # included in the symbol list
14790  include_expsyms=
14791  # exclude_expsyms can be an extended regexp of symbols to exclude
14792  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14793  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14794  # as well as any symbol that contains `d'.
14795  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14796  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14797  # platforms (ab)use it in PIC code, but their linkers get confused if
14798  # the symbol is explicitly referenced.  Since portable code cannot
14799  # rely on this symbol name, it's probably fine to never include it in
14800  # preloaded symbol tables.
14801  # Exclude shared library initialization/finalization symbols.
14802  extract_expsyms_cmds=
14803
14804  case $host_os in
14805  cygwin* | mingw* | pw32* | cegcc*)
14806    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14807    # When not using gcc, we currently assume that we are using
14808    # Microsoft Visual C++.
14809    if test "$GCC" != yes; then
14810      with_gnu_ld=no
14811    fi
14812    ;;
14813  interix*)
14814    # we just hope/assume this is gcc and not c89 (= MSVC++)
14815    with_gnu_ld=yes
14816    ;;
14817  openbsd*)
14818    with_gnu_ld=no
14819    ;;
14820  esac
14821
14822  ld_shlibs=yes
14823
14824  # On some targets, GNU ld is compatible enough with the native linker
14825  # that we're better off using the native interface for both.
14826  lt_use_gnu_ld_interface=no
14827  if test "$with_gnu_ld" = yes; then
14828    case $host_os in
14829      aix*)
14830	# The AIX port of GNU ld has always aspired to compatibility
14831	# with the native linker.  However, as the warning in the GNU ld
14832	# block says, versions before 2.19.5* couldn't really create working
14833	# shared libraries, regardless of the interface used.
14834	case `$LD -v 2>&1` in
14835	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14836	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14837	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14838	  *)
14839	    lt_use_gnu_ld_interface=yes
14840	    ;;
14841	esac
14842	;;
14843      *)
14844	lt_use_gnu_ld_interface=yes
14845	;;
14846    esac
14847  fi
14848
14849  if test "$lt_use_gnu_ld_interface" = yes; then
14850    # If archive_cmds runs LD, not CC, wlarc should be empty
14851    wlarc='${wl}'
14852
14853    # Set some defaults for GNU ld with shared library support. These
14854    # are reset later if shared libraries are not supported. Putting them
14855    # here allows them to be overridden if necessary.
14856    runpath_var=LD_RUN_PATH
14857    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14858    export_dynamic_flag_spec='${wl}--export-dynamic'
14859    # ancient GNU ld didn't support --whole-archive et. al.
14860    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14861      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14862    else
14863      whole_archive_flag_spec=
14864    fi
14865    supports_anon_versioning=no
14866    case `$LD -v 2>&1` in
14867      *GNU\ gold*) supports_anon_versioning=yes ;;
14868      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14869      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14870      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14871      *\ 2.11.*) ;; # other 2.11 versions
14872      *) supports_anon_versioning=yes ;;
14873    esac
14874
14875    # See if GNU ld supports shared libraries.
14876    case $host_os in
14877    aix[3-9]*)
14878      # On AIX/PPC, the GNU linker is very broken
14879      if test "$host_cpu" != ia64; then
14880	ld_shlibs=no
14881	cat <<_LT_EOF 1>&2
14882
14883*** Warning: the GNU linker, at least up to release 2.19, is reported
14884*** to be unable to reliably create shared libraries on AIX.
14885*** Therefore, libtool is disabling shared libraries support.  If you
14886*** really care for shared libraries, you may want to install binutils
14887*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14888*** You will then need to restart the configuration process.
14889
14890_LT_EOF
14891      fi
14892      ;;
14893
14894    amigaos*)
14895      case $host_cpu in
14896      powerpc)
14897            # see comment about AmigaOS4 .so support
14898            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14899            archive_expsym_cmds=''
14900        ;;
14901      m68k)
14902            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)'
14903            hardcode_libdir_flag_spec='-L$libdir'
14904            hardcode_minus_L=yes
14905        ;;
14906      esac
14907      ;;
14908
14909    beos*)
14910      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14911	allow_undefined_flag=unsupported
14912	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14913	# support --undefined.  This deserves some investigation.  FIXME
14914	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915      else
14916	ld_shlibs=no
14917      fi
14918      ;;
14919
14920    cygwin* | mingw* | pw32* | cegcc*)
14921      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14922      # as there is no search path for DLLs.
14923      hardcode_libdir_flag_spec='-L$libdir'
14924      export_dynamic_flag_spec='${wl}--export-all-symbols'
14925      allow_undefined_flag=unsupported
14926      always_export_symbols=no
14927      enable_shared_with_static_runtimes=yes
14928      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'
14929      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14930
14931      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14932        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14933	# If the export-symbols file already is a .def file (1st line
14934	# is EXPORTS), use it as is; otherwise, prepend...
14935	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14936	  cp $export_symbols $output_objdir/$soname.def;
14937	else
14938	  echo EXPORTS > $output_objdir/$soname.def;
14939	  cat $export_symbols >> $output_objdir/$soname.def;
14940	fi~
14941	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14942      else
14943	ld_shlibs=no
14944      fi
14945      ;;
14946
14947    haiku*)
14948      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949      link_all_deplibs=yes
14950      ;;
14951
14952    interix[3-9]*)
14953      hardcode_direct=no
14954      hardcode_shlibpath_var=no
14955      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14956      export_dynamic_flag_spec='${wl}-E'
14957      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14958      # Instead, shared libraries are loaded at an image base (0x10000000 by
14959      # default) and relocated if they conflict, which is a slow very memory
14960      # consuming and fragmenting process.  To avoid this, we pick a random,
14961      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14962      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14963      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14964      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'
14965      ;;
14966
14967    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14968      tmp_diet=no
14969      if test "$host_os" = linux-dietlibc; then
14970	case $cc_basename in
14971	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14972	esac
14973      fi
14974      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14975	 && test "$tmp_diet" = no
14976      then
14977	tmp_addflag=' $pic_flag'
14978	tmp_sharedflag='-shared'
14979	case $cc_basename,$host_cpu in
14980        pgcc*)				# Portland Group C compiler
14981	  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'
14982	  tmp_addflag=' $pic_flag'
14983	  ;;
14984	pgf77* | pgf90* | pgf95* | pgfortran*)
14985					# Portland Group f77 and f90 compilers
14986	  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'
14987	  tmp_addflag=' $pic_flag -Mnomain' ;;
14988	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14989	  tmp_addflag=' -i_dynamic' ;;
14990	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14991	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14992	ifc* | ifort*)			# Intel Fortran compiler
14993	  tmp_addflag=' -nofor_main' ;;
14994	lf95*)				# Lahey Fortran 8.1
14995	  whole_archive_flag_spec=
14996	  tmp_sharedflag='--shared' ;;
14997	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14998	  tmp_sharedflag='-qmkshrobj'
14999	  tmp_addflag= ;;
15000	nvcc*)	# Cuda Compiler Driver 2.2
15001	  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'
15002	  compiler_needs_object=yes
15003	  ;;
15004	esac
15005	case `$CC -V 2>&1 | sed 5q` in
15006	*Sun\ C*)			# Sun C 5.9
15007	  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'
15008	  compiler_needs_object=yes
15009	  tmp_sharedflag='-G' ;;
15010	*Sun\ F*)			# Sun Fortran 8.3
15011	  tmp_sharedflag='-G' ;;
15012	esac
15013	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014
15015        if test "x$supports_anon_versioning" = xyes; then
15016          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15017	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15018	    echo "local: *; };" >> $output_objdir/$libname.ver~
15019	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15020        fi
15021
15022	case $cc_basename in
15023	xlf* | bgf* | bgxlf* | mpixlf*)
15024	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15025	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15026	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15027	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15028	  if test "x$supports_anon_versioning" = xyes; then
15029	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15030	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15031	      echo "local: *; };" >> $output_objdir/$libname.ver~
15032	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15033	  fi
15034	  ;;
15035	esac
15036      else
15037        ld_shlibs=no
15038      fi
15039      ;;
15040
15041    netbsd*)
15042      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15043	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15044	wlarc=
15045      else
15046	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15048      fi
15049      ;;
15050
15051    solaris*)
15052      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15053	ld_shlibs=no
15054	cat <<_LT_EOF 1>&2
15055
15056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057*** create shared libraries on Solaris systems.  Therefore, libtool
15058*** is disabling shared libraries support.  We urge you to upgrade GNU
15059*** binutils to release 2.9.1 or newer.  Another option is to modify
15060*** your PATH or compiler configuration so that the native linker is
15061*** used, and then restart.
15062
15063_LT_EOF
15064      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15065	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15067      else
15068	ld_shlibs=no
15069      fi
15070      ;;
15071
15072    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15073      case `$LD -v 2>&1` in
15074        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15075	ld_shlibs=no
15076	cat <<_LT_EOF 1>&2
15077
15078*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15079*** reliably create shared libraries on SCO systems.  Therefore, libtool
15080*** is disabling shared libraries support.  We urge you to upgrade GNU
15081*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15082*** your PATH or compiler configuration so that the native linker is
15083*** used, and then restart.
15084
15085_LT_EOF
15086	;;
15087	*)
15088	  # For security reasons, it is highly recommended that you always
15089	  # use absolute paths for naming shared libraries, and exclude the
15090	  # DT_RUNPATH tag from executables and libraries.  But doing so
15091	  # requires that you compile everything twice, which is a pain.
15092	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15093	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15094	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15095	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15096	  else
15097	    ld_shlibs=no
15098	  fi
15099	;;
15100      esac
15101      ;;
15102
15103    sunos4*)
15104      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15105      wlarc=
15106      hardcode_direct=yes
15107      hardcode_shlibpath_var=no
15108      ;;
15109
15110    *)
15111      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15112	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15114      else
15115	ld_shlibs=no
15116      fi
15117      ;;
15118    esac
15119
15120    if test "$ld_shlibs" = no; then
15121      runpath_var=
15122      hardcode_libdir_flag_spec=
15123      export_dynamic_flag_spec=
15124      whole_archive_flag_spec=
15125    fi
15126  else
15127    # PORTME fill in a description of your system's linker (not GNU ld)
15128    case $host_os in
15129    aix3*)
15130      allow_undefined_flag=unsupported
15131      always_export_symbols=yes
15132      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'
15133      # Note: this linker hardcodes the directories in LIBPATH if there
15134      # are no directories specified by -L.
15135      hardcode_minus_L=yes
15136      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15137	# Neither direct hardcoding nor static linking is supported with a
15138	# broken collect2.
15139	hardcode_direct=unsupported
15140      fi
15141      ;;
15142
15143    aix[4-9]*)
15144      if test "$host_cpu" = ia64; then
15145	# On IA64, the linker does run time linking by default, so we don't
15146	# have to do anything special.
15147	aix_use_runtimelinking=no
15148	exp_sym_flag='-Bexport'
15149	no_entry_flag=""
15150      else
15151	# If we're using GNU nm, then we don't want the "-C" option.
15152	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15153	# Also, AIX nm treats weak defined symbols like other global
15154	# defined symbols, whereas GNU nm marks them as "W".
15155	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15156	  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'
15157	else
15158	  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'
15159	fi
15160	aix_use_runtimelinking=no
15161
15162	# Test if we are trying to use run time linking or normal
15163	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15164	# need to do runtime linking.
15165	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15166	  for ld_flag in $LDFLAGS; do
15167	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15168	    aix_use_runtimelinking=yes
15169	    break
15170	  fi
15171	  done
15172	  ;;
15173	esac
15174
15175	exp_sym_flag='-bexport'
15176	no_entry_flag='-bnoentry'
15177      fi
15178
15179      # When large executables or shared objects are built, AIX ld can
15180      # have problems creating the table of contents.  If linking a library
15181      # or program results in "error TOC overflow" add -mminimal-toc to
15182      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15183      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15184
15185      archive_cmds=''
15186      hardcode_direct=yes
15187      hardcode_direct_absolute=yes
15188      hardcode_libdir_separator=':'
15189      link_all_deplibs=yes
15190      file_list_spec='${wl}-f,'
15191
15192      if test "$GCC" = yes; then
15193	case $host_os in aix4.[012]|aix4.[012].*)
15194	# We only want to do this on AIX 4.2 and lower, the check
15195	# below for broken collect2 doesn't work under 4.3+
15196	  collect2name=`${CC} -print-prog-name=collect2`
15197	  if test -f "$collect2name" &&
15198	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15199	  then
15200	  # We have reworked collect2
15201	  :
15202	  else
15203	  # We have old collect2
15204	  hardcode_direct=unsupported
15205	  # It fails to find uninstalled libraries when the uninstalled
15206	  # path is not listed in the libpath.  Setting hardcode_minus_L
15207	  # to unsupported forces relinking
15208	  hardcode_minus_L=yes
15209	  hardcode_libdir_flag_spec='-L$libdir'
15210	  hardcode_libdir_separator=
15211	  fi
15212	  ;;
15213	esac
15214	shared_flag='-shared'
15215	if test "$aix_use_runtimelinking" = yes; then
15216	  shared_flag="$shared_flag "'${wl}-G'
15217	fi
15218      else
15219	# not using gcc
15220	if test "$host_cpu" = ia64; then
15221	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15222	# chokes on -Wl,-G. The following line is correct:
15223	  shared_flag='-G'
15224	else
15225	  if test "$aix_use_runtimelinking" = yes; then
15226	    shared_flag='${wl}-G'
15227	  else
15228	    shared_flag='${wl}-bM:SRE'
15229	  fi
15230	fi
15231      fi
15232
15233      export_dynamic_flag_spec='${wl}-bexpall'
15234      # It seems that -bexpall does not export symbols beginning with
15235      # underscore (_), so it is better to generate a list of symbols to export.
15236      always_export_symbols=yes
15237      if test "$aix_use_runtimelinking" = yes; then
15238	# Warning - without using the other runtime loading flags (-brtl),
15239	# -berok will link without error, but may produce a broken library.
15240	allow_undefined_flag='-berok'
15241        # Determine the default libpath from the value encoded in an
15242        # empty executable.
15243        if test "${lt_cv_aix_libpath+set}" = set; then
15244  aix_libpath=$lt_cv_aix_libpath
15245else
15246  if ${lt_cv_aix_libpath_+:} false; then :
15247  $as_echo_n "(cached) " >&6
15248else
15249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250/* end confdefs.h.  */
15251
15252int
15253main ()
15254{
15255
15256  ;
15257  return 0;
15258}
15259_ACEOF
15260if ac_fn_c_try_link "$LINENO"; then :
15261
15262  lt_aix_libpath_sed='
15263      /Import File Strings/,/^$/ {
15264	  /^0/ {
15265	      s/^0  *\([^ ]*\) *$/\1/
15266	      p
15267	  }
15268      }'
15269  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15270  # Check for a 64-bit object if we didn't find anything.
15271  if test -z "$lt_cv_aix_libpath_"; then
15272    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15273  fi
15274fi
15275rm -f core conftest.err conftest.$ac_objext \
15276    conftest$ac_exeext conftest.$ac_ext
15277  if test -z "$lt_cv_aix_libpath_"; then
15278    lt_cv_aix_libpath_="/usr/lib:/lib"
15279  fi
15280
15281fi
15282
15283  aix_libpath=$lt_cv_aix_libpath_
15284fi
15285
15286        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15287        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"
15288      else
15289	if test "$host_cpu" = ia64; then
15290	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15291	  allow_undefined_flag="-z nodefs"
15292	  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"
15293	else
15294	 # Determine the default libpath from the value encoded in an
15295	 # empty executable.
15296	 if test "${lt_cv_aix_libpath+set}" = set; then
15297  aix_libpath=$lt_cv_aix_libpath
15298else
15299  if ${lt_cv_aix_libpath_+:} false; then :
15300  $as_echo_n "(cached) " >&6
15301else
15302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303/* end confdefs.h.  */
15304
15305int
15306main ()
15307{
15308
15309  ;
15310  return 0;
15311}
15312_ACEOF
15313if ac_fn_c_try_link "$LINENO"; then :
15314
15315  lt_aix_libpath_sed='
15316      /Import File Strings/,/^$/ {
15317	  /^0/ {
15318	      s/^0  *\([^ ]*\) *$/\1/
15319	      p
15320	  }
15321      }'
15322  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15323  # Check for a 64-bit object if we didn't find anything.
15324  if test -z "$lt_cv_aix_libpath_"; then
15325    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15326  fi
15327fi
15328rm -f core conftest.err conftest.$ac_objext \
15329    conftest$ac_exeext conftest.$ac_ext
15330  if test -z "$lt_cv_aix_libpath_"; then
15331    lt_cv_aix_libpath_="/usr/lib:/lib"
15332  fi
15333
15334fi
15335
15336  aix_libpath=$lt_cv_aix_libpath_
15337fi
15338
15339	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15340	  # Warning - without using the other run time loading flags,
15341	  # -berok will link without error, but may produce a broken library.
15342	  no_undefined_flag=' ${wl}-bernotok'
15343	  allow_undefined_flag=' ${wl}-berok'
15344	  if test "$with_gnu_ld" = yes; then
15345	    # We only use this code for GNU lds that support --whole-archive.
15346	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15347	  else
15348	    # Exported symbols can be pulled into shared objects from archives
15349	    whole_archive_flag_spec='$convenience'
15350	  fi
15351	  archive_cmds_need_lc=yes
15352	  # This is similar to how AIX traditionally builds its shared libraries.
15353	  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'
15354	fi
15355      fi
15356      ;;
15357
15358    amigaos*)
15359      case $host_cpu in
15360      powerpc)
15361            # see comment about AmigaOS4 .so support
15362            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15363            archive_expsym_cmds=''
15364        ;;
15365      m68k)
15366            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)'
15367            hardcode_libdir_flag_spec='-L$libdir'
15368            hardcode_minus_L=yes
15369        ;;
15370      esac
15371      ;;
15372
15373    bsdi[45]*)
15374      export_dynamic_flag_spec=-rdynamic
15375      ;;
15376
15377    cygwin* | mingw* | pw32* | cegcc*)
15378      # When not using gcc, we currently assume that we are using
15379      # Microsoft Visual C++.
15380      # hardcode_libdir_flag_spec is actually meaningless, as there is
15381      # no search path for DLLs.
15382      case $cc_basename in
15383      cl*)
15384	# Native MSVC
15385	hardcode_libdir_flag_spec=' '
15386	allow_undefined_flag=unsupported
15387	always_export_symbols=yes
15388	file_list_spec='@'
15389	# Tell ltmain to make .lib files, not .a files.
15390	libext=lib
15391	# Tell ltmain to make .dll files, not .so files.
15392	shrext_cmds=".dll"
15393	# FIXME: Setting linknames here is a bad hack.
15394	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15395	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15396	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15397	  else
15398	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15399	  fi~
15400	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15401	  linknames='
15402	# The linker will not automatically build a static lib if we build a DLL.
15403	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15404	enable_shared_with_static_runtimes=yes
15405	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15406	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15407	# Don't use ranlib
15408	old_postinstall_cmds='chmod 644 $oldlib'
15409	postlink_cmds='lt_outputfile="@OUTPUT@"~
15410	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15411	  case $lt_outputfile in
15412	    *.exe|*.EXE) ;;
15413	    *)
15414	      lt_outputfile="$lt_outputfile.exe"
15415	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15416	      ;;
15417	  esac~
15418	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15419	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15420	    $RM "$lt_outputfile.manifest";
15421	  fi'
15422	;;
15423      *)
15424	# Assume MSVC wrapper
15425	hardcode_libdir_flag_spec=' '
15426	allow_undefined_flag=unsupported
15427	# Tell ltmain to make .lib files, not .a files.
15428	libext=lib
15429	# Tell ltmain to make .dll files, not .so files.
15430	shrext_cmds=".dll"
15431	# FIXME: Setting linknames here is a bad hack.
15432	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15433	# The linker will automatically build a .lib file if we build a DLL.
15434	old_archive_from_new_cmds='true'
15435	# FIXME: Should let the user specify the lib program.
15436	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15437	enable_shared_with_static_runtimes=yes
15438	;;
15439      esac
15440      ;;
15441
15442    darwin* | rhapsody*)
15443
15444
15445  archive_cmds_need_lc=no
15446  hardcode_direct=no
15447  hardcode_automatic=yes
15448  hardcode_shlibpath_var=unsupported
15449  if test "$lt_cv_ld_force_load" = "yes"; then
15450    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\"`'
15451
15452  else
15453    whole_archive_flag_spec=''
15454  fi
15455  link_all_deplibs=yes
15456  allow_undefined_flag="$_lt_dar_allow_undefined"
15457  case $cc_basename in
15458     ifort*) _lt_dar_can_shared=yes ;;
15459     *) _lt_dar_can_shared=$GCC ;;
15460  esac
15461  if test "$_lt_dar_can_shared" = "yes"; then
15462    output_verbose_link_cmd=func_echo_all
15463    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15464    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15465    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}"
15466    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}"
15467
15468  else
15469  ld_shlibs=no
15470  fi
15471
15472      ;;
15473
15474    dgux*)
15475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476      hardcode_libdir_flag_spec='-L$libdir'
15477      hardcode_shlibpath_var=no
15478      ;;
15479
15480    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481    # support.  Future versions do this automatically, but an explicit c++rt0.o
15482    # does not break anything, and helps significantly (at the cost of a little
15483    # extra space).
15484    freebsd2.2*)
15485      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486      hardcode_libdir_flag_spec='-R$libdir'
15487      hardcode_direct=yes
15488      hardcode_shlibpath_var=no
15489      ;;
15490
15491    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15492    freebsd2.*)
15493      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494      hardcode_direct=yes
15495      hardcode_minus_L=yes
15496      hardcode_shlibpath_var=no
15497      ;;
15498
15499    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15500    freebsd* | dragonfly*)
15501      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15502      hardcode_libdir_flag_spec='-R$libdir'
15503      hardcode_direct=yes
15504      hardcode_shlibpath_var=no
15505      ;;
15506
15507    hpux9*)
15508      if test "$GCC" = yes; then
15509	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'
15510      else
15511	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'
15512      fi
15513      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514      hardcode_libdir_separator=:
15515      hardcode_direct=yes
15516
15517      # hardcode_minus_L: Not really in the search PATH,
15518      # but as the default location of the library.
15519      hardcode_minus_L=yes
15520      export_dynamic_flag_spec='${wl}-E'
15521      ;;
15522
15523    hpux10*)
15524      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15525	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15526      else
15527	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15528      fi
15529      if test "$with_gnu_ld" = no; then
15530	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531	hardcode_libdir_separator=:
15532	hardcode_direct=yes
15533	hardcode_direct_absolute=yes
15534	export_dynamic_flag_spec='${wl}-E'
15535	# hardcode_minus_L: Not really in the search PATH,
15536	# but as the default location of the library.
15537	hardcode_minus_L=yes
15538      fi
15539      ;;
15540
15541    hpux11*)
15542      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15543	case $host_cpu in
15544	hppa*64*)
15545	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546	  ;;
15547	ia64*)
15548	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15549	  ;;
15550	*)
15551	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15552	  ;;
15553	esac
15554      else
15555	case $host_cpu in
15556	hppa*64*)
15557	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558	  ;;
15559	ia64*)
15560	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15561	  ;;
15562	*)
15563
15564	  # Older versions of the 11.00 compiler do not understand -b yet
15565	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15566	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15567$as_echo_n "checking if $CC understands -b... " >&6; }
15568if ${lt_cv_prog_compiler__b+:} false; then :
15569  $as_echo_n "(cached) " >&6
15570else
15571  lt_cv_prog_compiler__b=no
15572   save_LDFLAGS="$LDFLAGS"
15573   LDFLAGS="$LDFLAGS -b"
15574   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15575   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15576     # The linker can only warn and ignore the option if not recognized
15577     # So say no if there are warnings
15578     if test -s conftest.err; then
15579       # Append any errors to the config.log.
15580       cat conftest.err 1>&5
15581       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15582       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15583       if diff conftest.exp conftest.er2 >/dev/null; then
15584         lt_cv_prog_compiler__b=yes
15585       fi
15586     else
15587       lt_cv_prog_compiler__b=yes
15588     fi
15589   fi
15590   $RM -r conftest*
15591   LDFLAGS="$save_LDFLAGS"
15592
15593fi
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15595$as_echo "$lt_cv_prog_compiler__b" >&6; }
15596
15597if test x"$lt_cv_prog_compiler__b" = xyes; then
15598    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15599else
15600    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15601fi
15602
15603	  ;;
15604	esac
15605      fi
15606      if test "$with_gnu_ld" = no; then
15607	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608	hardcode_libdir_separator=:
15609
15610	case $host_cpu in
15611	hppa*64*|ia64*)
15612	  hardcode_direct=no
15613	  hardcode_shlibpath_var=no
15614	  ;;
15615	*)
15616	  hardcode_direct=yes
15617	  hardcode_direct_absolute=yes
15618	  export_dynamic_flag_spec='${wl}-E'
15619
15620	  # hardcode_minus_L: Not really in the search PATH,
15621	  # but as the default location of the library.
15622	  hardcode_minus_L=yes
15623	  ;;
15624	esac
15625      fi
15626      ;;
15627
15628    irix5* | irix6* | nonstopux*)
15629      if test "$GCC" = yes; then
15630	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'
15631	# Try to use the -exported_symbol ld option, if it does not
15632	# work, assume that -exports_file does not work either and
15633	# implicitly export all symbols.
15634	# This should be the same for all languages, so no per-tag cache variable.
15635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15636$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15637if ${lt_cv_irix_exported_symbol+:} false; then :
15638  $as_echo_n "(cached) " >&6
15639else
15640  save_LDFLAGS="$LDFLAGS"
15641	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15642	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643/* end confdefs.h.  */
15644int foo (void) { return 0; }
15645_ACEOF
15646if ac_fn_c_try_link "$LINENO"; then :
15647  lt_cv_irix_exported_symbol=yes
15648else
15649  lt_cv_irix_exported_symbol=no
15650fi
15651rm -f core conftest.err conftest.$ac_objext \
15652    conftest$ac_exeext conftest.$ac_ext
15653           LDFLAGS="$save_LDFLAGS"
15654fi
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15656$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15657	if test "$lt_cv_irix_exported_symbol" = yes; then
15658          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'
15659	fi
15660      else
15661	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'
15662	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'
15663      fi
15664      archive_cmds_need_lc='no'
15665      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15666      hardcode_libdir_separator=:
15667      inherit_rpath=yes
15668      link_all_deplibs=yes
15669      ;;
15670
15671    netbsd*)
15672      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15673	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15674      else
15675	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15676      fi
15677      hardcode_libdir_flag_spec='-R$libdir'
15678      hardcode_direct=yes
15679      hardcode_shlibpath_var=no
15680      ;;
15681
15682    newsos6)
15683      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684      hardcode_direct=yes
15685      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686      hardcode_libdir_separator=:
15687      hardcode_shlibpath_var=no
15688      ;;
15689
15690    *nto* | *qnx*)
15691      ;;
15692
15693    openbsd*)
15694      if test -f /usr/libexec/ld.so; then
15695	hardcode_direct=yes
15696	hardcode_shlibpath_var=no
15697	hardcode_direct_absolute=yes
15698	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15699	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15700	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15701	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15702	  export_dynamic_flag_spec='${wl}-E'
15703	else
15704	  case $host_os in
15705	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15706	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15707	     hardcode_libdir_flag_spec='-R$libdir'
15708	     ;;
15709	   *)
15710	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15711	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15712	     ;;
15713	  esac
15714	fi
15715      else
15716	ld_shlibs=no
15717      fi
15718      ;;
15719
15720    os2*)
15721      hardcode_libdir_flag_spec='-L$libdir'
15722      hardcode_minus_L=yes
15723      allow_undefined_flag=unsupported
15724      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'
15725      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15726      ;;
15727
15728    osf3*)
15729      if test "$GCC" = yes; then
15730	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15731	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'
15732      else
15733	allow_undefined_flag=' -expect_unresolved \*'
15734	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'
15735      fi
15736      archive_cmds_need_lc='no'
15737      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15738      hardcode_libdir_separator=:
15739      ;;
15740
15741    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15742      if test "$GCC" = yes; then
15743	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15744	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'
15745	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15746      else
15747	allow_undefined_flag=' -expect_unresolved \*'
15748	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'
15749	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~
15750	$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'
15751
15752	# Both c and cxx compiler support -rpath directly
15753	hardcode_libdir_flag_spec='-rpath $libdir'
15754      fi
15755      archive_cmds_need_lc='no'
15756      hardcode_libdir_separator=:
15757      ;;
15758
15759    solaris*)
15760      no_undefined_flag=' -z defs'
15761      if test "$GCC" = yes; then
15762	wlarc='${wl}'
15763	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15764	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15765	  $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'
15766      else
15767	case `$CC -V 2>&1` in
15768	*"Compilers 5.0"*)
15769	  wlarc=''
15770	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15771	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15772	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15773	  ;;
15774	*)
15775	  wlarc='${wl}'
15776	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15777	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15778	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15779	  ;;
15780	esac
15781      fi
15782      hardcode_libdir_flag_spec='-R$libdir'
15783      hardcode_shlibpath_var=no
15784      case $host_os in
15785      solaris2.[0-5] | solaris2.[0-5].*) ;;
15786      *)
15787	# The compiler driver will combine and reorder linker options,
15788	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15789	# but is careful enough not to reorder.
15790	# Supported since Solaris 2.6 (maybe 2.5.1?)
15791	if test "$GCC" = yes; then
15792	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15793	else
15794	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15795	fi
15796	;;
15797      esac
15798      link_all_deplibs=yes
15799      ;;
15800
15801    sunos4*)
15802      if test "x$host_vendor" = xsequent; then
15803	# Use $CC to link under sequent, because it throws in some extra .o
15804	# files that make .init and .fini sections work.
15805	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15806      else
15807	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15808      fi
15809      hardcode_libdir_flag_spec='-L$libdir'
15810      hardcode_direct=yes
15811      hardcode_minus_L=yes
15812      hardcode_shlibpath_var=no
15813      ;;
15814
15815    sysv4)
15816      case $host_vendor in
15817	sni)
15818	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819	  hardcode_direct=yes # is this really true???
15820	;;
15821	siemens)
15822	  ## LD is ld it makes a PLAMLIB
15823	  ## CC just makes a GrossModule.
15824	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15825	  reload_cmds='$CC -r -o $output$reload_objs'
15826	  hardcode_direct=no
15827        ;;
15828	motorola)
15829	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15831	;;
15832      esac
15833      runpath_var='LD_RUN_PATH'
15834      hardcode_shlibpath_var=no
15835      ;;
15836
15837    sysv4.3*)
15838      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839      hardcode_shlibpath_var=no
15840      export_dynamic_flag_spec='-Bexport'
15841      ;;
15842
15843    sysv4*MP*)
15844      if test -d /usr/nec; then
15845	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846	hardcode_shlibpath_var=no
15847	runpath_var=LD_RUN_PATH
15848	hardcode_runpath_var=yes
15849	ld_shlibs=yes
15850      fi
15851      ;;
15852
15853    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15854      no_undefined_flag='${wl}-z,text'
15855      archive_cmds_need_lc=no
15856      hardcode_shlibpath_var=no
15857      runpath_var='LD_RUN_PATH'
15858
15859      if test "$GCC" = yes; then
15860	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862      else
15863	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865      fi
15866      ;;
15867
15868    sysv5* | sco3.2v5* | sco5v6*)
15869      # Note: We can NOT use -z defs as we might desire, because we do not
15870      # link with -lc, and that would cause any symbols used from libc to
15871      # always be unresolved, which means just about no library would
15872      # ever link correctly.  If we're not using GNU ld we use -z text
15873      # though, which does catch some bad symbols but isn't as heavy-handed
15874      # as -z defs.
15875      no_undefined_flag='${wl}-z,text'
15876      allow_undefined_flag='${wl}-z,nodefs'
15877      archive_cmds_need_lc=no
15878      hardcode_shlibpath_var=no
15879      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15880      hardcode_libdir_separator=':'
15881      link_all_deplibs=yes
15882      export_dynamic_flag_spec='${wl}-Bexport'
15883      runpath_var='LD_RUN_PATH'
15884
15885      if test "$GCC" = yes; then
15886	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15887	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15888      else
15889	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15890	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15891      fi
15892      ;;
15893
15894    uts4*)
15895      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896      hardcode_libdir_flag_spec='-L$libdir'
15897      hardcode_shlibpath_var=no
15898      ;;
15899
15900    *)
15901      ld_shlibs=no
15902      ;;
15903    esac
15904
15905    if test x$host_vendor = xsni; then
15906      case $host in
15907      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15908	export_dynamic_flag_spec='${wl}-Blargedynsym'
15909	;;
15910      esac
15911    fi
15912  fi
15913
15914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15915$as_echo "$ld_shlibs" >&6; }
15916test "$ld_shlibs" = no && can_build_shared=no
15917
15918with_gnu_ld=$with_gnu_ld
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934#
15935# Do we need to explicitly link libc?
15936#
15937case "x$archive_cmds_need_lc" in
15938x|xyes)
15939  # Assume -lc should be added
15940  archive_cmds_need_lc=yes
15941
15942  if test "$enable_shared" = yes && test "$GCC" = yes; then
15943    case $archive_cmds in
15944    *'~'*)
15945      # FIXME: we may have to deal with multi-command sequences.
15946      ;;
15947    '$CC '*)
15948      # Test whether the compiler implicitly links with -lc since on some
15949      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15950      # to ld, don't add -lc before -lgcc.
15951      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15952$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15953if ${lt_cv_archive_cmds_need_lc+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  $RM conftest*
15957	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15958
15959	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15960  (eval $ac_compile) 2>&5
15961  ac_status=$?
15962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963  test $ac_status = 0; } 2>conftest.err; then
15964	  soname=conftest
15965	  lib=conftest
15966	  libobjs=conftest.$ac_objext
15967	  deplibs=
15968	  wl=$lt_prog_compiler_wl
15969	  pic_flag=$lt_prog_compiler_pic
15970	  compiler_flags=-v
15971	  linker_flags=-v
15972	  verstring=
15973	  output_objdir=.
15974	  libname=conftest
15975	  lt_save_allow_undefined_flag=$allow_undefined_flag
15976	  allow_undefined_flag=
15977	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15978  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15979  ac_status=$?
15980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981  test $ac_status = 0; }
15982	  then
15983	    lt_cv_archive_cmds_need_lc=no
15984	  else
15985	    lt_cv_archive_cmds_need_lc=yes
15986	  fi
15987	  allow_undefined_flag=$lt_save_allow_undefined_flag
15988	else
15989	  cat conftest.err 1>&5
15990	fi
15991	$RM conftest*
15992
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15995$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15996      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15997      ;;
15998    esac
15999  fi
16000  ;;
16001esac
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16155$as_echo_n "checking dynamic linker characteristics... " >&6; }
16156
16157if test "$GCC" = yes; then
16158  case $host_os in
16159    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16160    *) lt_awk_arg="/^libraries:/" ;;
16161  esac
16162  case $host_os in
16163    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16164    *) lt_sed_strip_eq="s,=/,/,g" ;;
16165  esac
16166  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16167  case $lt_search_path_spec in
16168  *\;*)
16169    # if the path contains ";" then we assume it to be the separator
16170    # otherwise default to the standard path separator (i.e. ":") - it is
16171    # assumed that no part of a normal pathname contains ";" but that should
16172    # okay in the real world where ";" in dirpaths is itself problematic.
16173    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16174    ;;
16175  *)
16176    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16177    ;;
16178  esac
16179  # Ok, now we have the path, separated by spaces, we can step through it
16180  # and add multilib dir if necessary.
16181  lt_tmp_lt_search_path_spec=
16182  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16183  for lt_sys_path in $lt_search_path_spec; do
16184    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16185      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16186    else
16187      test -d "$lt_sys_path" && \
16188	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16189    fi
16190  done
16191  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16192BEGIN {RS=" "; FS="/|\n";} {
16193  lt_foo="";
16194  lt_count=0;
16195  for (lt_i = NF; lt_i > 0; lt_i--) {
16196    if ($lt_i != "" && $lt_i != ".") {
16197      if ($lt_i == "..") {
16198        lt_count++;
16199      } else {
16200        if (lt_count == 0) {
16201          lt_foo="/" $lt_i lt_foo;
16202        } else {
16203          lt_count--;
16204        }
16205      }
16206    }
16207  }
16208  if (lt_foo != "") { lt_freq[lt_foo]++; }
16209  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16210}'`
16211  # AWK program above erroneously prepends '/' to C:/dos/paths
16212  # for these hosts.
16213  case $host_os in
16214    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16215      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16216  esac
16217  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16218else
16219  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16220fi
16221library_names_spec=
16222libname_spec='lib$name'
16223soname_spec=
16224shrext_cmds=".so"
16225postinstall_cmds=
16226postuninstall_cmds=
16227finish_cmds=
16228finish_eval=
16229shlibpath_var=
16230shlibpath_overrides_runpath=unknown
16231version_type=none
16232dynamic_linker="$host_os ld.so"
16233sys_lib_dlsearch_path_spec="/lib /usr/lib"
16234need_lib_prefix=unknown
16235hardcode_into_libs=no
16236
16237# when you set need_version to no, make sure it does not cause -set_version
16238# flags to be left without arguments
16239need_version=unknown
16240
16241case $host_os in
16242aix3*)
16243  version_type=linux # correct to gnu/linux during the next big refactor
16244  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16245  shlibpath_var=LIBPATH
16246
16247  # AIX 3 has no versioning support, so we append a major version to the name.
16248  soname_spec='${libname}${release}${shared_ext}$major'
16249  ;;
16250
16251aix[4-9]*)
16252  version_type=linux # correct to gnu/linux during the next big refactor
16253  need_lib_prefix=no
16254  need_version=no
16255  hardcode_into_libs=yes
16256  if test "$host_cpu" = ia64; then
16257    # AIX 5 supports IA64
16258    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16259    shlibpath_var=LD_LIBRARY_PATH
16260  else
16261    # With GCC up to 2.95.x, collect2 would create an import file
16262    # for dependence libraries.  The import file would start with
16263    # the line `#! .'.  This would cause the generated library to
16264    # depend on `.', always an invalid library.  This was fixed in
16265    # development snapshots of GCC prior to 3.0.
16266    case $host_os in
16267      aix4 | aix4.[01] | aix4.[01].*)
16268      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16269	   echo ' yes '
16270	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16271	:
16272      else
16273	can_build_shared=no
16274      fi
16275      ;;
16276    esac
16277    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16278    # soname into executable. Probably we can add versioning support to
16279    # collect2, so additional links can be useful in future.
16280    if test "$aix_use_runtimelinking" = yes; then
16281      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16282      # instead of lib<name>.a to let people know that these are not
16283      # typical AIX shared libraries.
16284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285    else
16286      # We preserve .a as extension for shared libraries through AIX4.2
16287      # and later when we are not doing run time linking.
16288      library_names_spec='${libname}${release}.a $libname.a'
16289      soname_spec='${libname}${release}${shared_ext}$major'
16290    fi
16291    shlibpath_var=LIBPATH
16292  fi
16293  ;;
16294
16295amigaos*)
16296  case $host_cpu in
16297  powerpc)
16298    # Since July 2007 AmigaOS4 officially supports .so libraries.
16299    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301    ;;
16302  m68k)
16303    library_names_spec='$libname.ixlibrary $libname.a'
16304    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16305    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'
16306    ;;
16307  esac
16308  ;;
16309
16310beos*)
16311  library_names_spec='${libname}${shared_ext}'
16312  dynamic_linker="$host_os ld.so"
16313  shlibpath_var=LIBRARY_PATH
16314  ;;
16315
16316bsdi[45]*)
16317  version_type=linux # correct to gnu/linux during the next big refactor
16318  need_version=no
16319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320  soname_spec='${libname}${release}${shared_ext}$major'
16321  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16322  shlibpath_var=LD_LIBRARY_PATH
16323  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16324  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16325  # the default ld.so.conf also contains /usr/contrib/lib and
16326  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16327  # libtool to hard-code these into programs
16328  ;;
16329
16330cygwin* | mingw* | pw32* | cegcc*)
16331  version_type=windows
16332  shrext_cmds=".dll"
16333  need_version=no
16334  need_lib_prefix=no
16335
16336  case $GCC,$cc_basename in
16337  yes,*)
16338    # gcc
16339    library_names_spec='$libname.dll.a'
16340    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16341    postinstall_cmds='base_file=`basename \${file}`~
16342      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16343      dldir=$destdir/`dirname \$dlpath`~
16344      test -d \$dldir || mkdir -p \$dldir~
16345      $install_prog $dir/$dlname \$dldir/$dlname~
16346      chmod a+x \$dldir/$dlname~
16347      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16348        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16349      fi'
16350    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16351      dlpath=$dir/\$dldll~
16352       $RM \$dlpath'
16353    shlibpath_overrides_runpath=yes
16354
16355    case $host_os in
16356    cygwin*)
16357      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16358      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16359
16360      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16361      ;;
16362    mingw* | cegcc*)
16363      # MinGW DLLs use traditional 'lib' prefix
16364      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16365      ;;
16366    pw32*)
16367      # pw32 DLLs use 'pw' prefix rather than 'lib'
16368      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16369      ;;
16370    esac
16371    dynamic_linker='Win32 ld.exe'
16372    ;;
16373
16374  *,cl*)
16375    # Native MSVC
16376    libname_spec='$name'
16377    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16378    library_names_spec='${libname}.dll.lib'
16379
16380    case $build_os in
16381    mingw*)
16382      sys_lib_search_path_spec=
16383      lt_save_ifs=$IFS
16384      IFS=';'
16385      for lt_path in $LIB
16386      do
16387        IFS=$lt_save_ifs
16388        # Let DOS variable expansion print the short 8.3 style file name.
16389        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16390        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16391      done
16392      IFS=$lt_save_ifs
16393      # Convert to MSYS style.
16394      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16395      ;;
16396    cygwin*)
16397      # Convert to unix form, then to dos form, then back to unix form
16398      # but this time dos style (no spaces!) so that the unix form looks
16399      # like /cygdrive/c/PROGRA~1:/cygdr...
16400      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16401      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16402      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16403      ;;
16404    *)
16405      sys_lib_search_path_spec="$LIB"
16406      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16407        # It is most probably a Windows format PATH.
16408        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16409      else
16410        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16411      fi
16412      # FIXME: find the short name or the path components, as spaces are
16413      # common. (e.g. "Program Files" -> "PROGRA~1")
16414      ;;
16415    esac
16416
16417    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418    postinstall_cmds='base_file=`basename \${file}`~
16419      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420      dldir=$destdir/`dirname \$dlpath`~
16421      test -d \$dldir || mkdir -p \$dldir~
16422      $install_prog $dir/$dlname \$dldir/$dlname'
16423    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16424      dlpath=$dir/\$dldll~
16425       $RM \$dlpath'
16426    shlibpath_overrides_runpath=yes
16427    dynamic_linker='Win32 link.exe'
16428    ;;
16429
16430  *)
16431    # Assume MSVC wrapper
16432    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16433    dynamic_linker='Win32 ld.exe'
16434    ;;
16435  esac
16436  # FIXME: first we should search . and the directory the executable is in
16437  shlibpath_var=PATH
16438  ;;
16439
16440darwin* | rhapsody*)
16441  dynamic_linker="$host_os dyld"
16442  version_type=darwin
16443  need_lib_prefix=no
16444  need_version=no
16445  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16446  soname_spec='${libname}${release}${major}$shared_ext'
16447  shlibpath_overrides_runpath=yes
16448  shlibpath_var=DYLD_LIBRARY_PATH
16449  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16450
16451  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16452  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16453  ;;
16454
16455dgux*)
16456  version_type=linux # correct to gnu/linux during the next big refactor
16457  need_lib_prefix=no
16458  need_version=no
16459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16460  soname_spec='${libname}${release}${shared_ext}$major'
16461  shlibpath_var=LD_LIBRARY_PATH
16462  ;;
16463
16464freebsd* | dragonfly*)
16465  # DragonFly does not have aout.  When/if they implement a new
16466  # versioning mechanism, adjust this.
16467  if test -x /usr/bin/objformat; then
16468    objformat=`/usr/bin/objformat`
16469  else
16470    case $host_os in
16471    freebsd[23].*) objformat=aout ;;
16472    *) objformat=elf ;;
16473    esac
16474  fi
16475  version_type=freebsd-$objformat
16476  case $version_type in
16477    freebsd-elf*)
16478      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16479      need_version=no
16480      need_lib_prefix=no
16481      ;;
16482    freebsd-*)
16483      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16484      need_version=yes
16485      ;;
16486  esac
16487  shlibpath_var=LD_LIBRARY_PATH
16488  case $host_os in
16489  freebsd2.*)
16490    shlibpath_overrides_runpath=yes
16491    ;;
16492  freebsd3.[01]* | freebsdelf3.[01]*)
16493    shlibpath_overrides_runpath=yes
16494    hardcode_into_libs=yes
16495    ;;
16496  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16497  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16498    shlibpath_overrides_runpath=no
16499    hardcode_into_libs=yes
16500    ;;
16501  *) # from 4.6 on, and DragonFly
16502    shlibpath_overrides_runpath=yes
16503    hardcode_into_libs=yes
16504    ;;
16505  esac
16506  ;;
16507
16508gnu*)
16509  version_type=linux # correct to gnu/linux during the next big refactor
16510  need_lib_prefix=no
16511  need_version=no
16512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16513  soname_spec='${libname}${release}${shared_ext}$major'
16514  shlibpath_var=LD_LIBRARY_PATH
16515  shlibpath_overrides_runpath=no
16516  hardcode_into_libs=yes
16517  ;;
16518
16519haiku*)
16520  version_type=linux # correct to gnu/linux during the next big refactor
16521  need_lib_prefix=no
16522  need_version=no
16523  dynamic_linker="$host_os runtime_loader"
16524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16525  soname_spec='${libname}${release}${shared_ext}$major'
16526  shlibpath_var=LIBRARY_PATH
16527  shlibpath_overrides_runpath=yes
16528  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16529  hardcode_into_libs=yes
16530  ;;
16531
16532hpux9* | hpux10* | hpux11*)
16533  # Give a soname corresponding to the major version so that dld.sl refuses to
16534  # link against other versions.
16535  version_type=sunos
16536  need_lib_prefix=no
16537  need_version=no
16538  case $host_cpu in
16539  ia64*)
16540    shrext_cmds='.so'
16541    hardcode_into_libs=yes
16542    dynamic_linker="$host_os dld.so"
16543    shlibpath_var=LD_LIBRARY_PATH
16544    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546    soname_spec='${libname}${release}${shared_ext}$major'
16547    if test "X$HPUX_IA64_MODE" = X32; then
16548      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16549    else
16550      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16551    fi
16552    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16553    ;;
16554  hppa*64*)
16555    shrext_cmds='.sl'
16556    hardcode_into_libs=yes
16557    dynamic_linker="$host_os dld.sl"
16558    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16559    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16560    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561    soname_spec='${libname}${release}${shared_ext}$major'
16562    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16563    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16564    ;;
16565  *)
16566    shrext_cmds='.sl'
16567    dynamic_linker="$host_os dld.sl"
16568    shlibpath_var=SHLIB_PATH
16569    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571    soname_spec='${libname}${release}${shared_ext}$major'
16572    ;;
16573  esac
16574  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16575  postinstall_cmds='chmod 555 $lib'
16576  # or fails outright, so override atomically:
16577  install_override_mode=555
16578  ;;
16579
16580interix[3-9]*)
16581  version_type=linux # correct to gnu/linux during the next big refactor
16582  need_lib_prefix=no
16583  need_version=no
16584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16585  soname_spec='${libname}${release}${shared_ext}$major'
16586  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16587  shlibpath_var=LD_LIBRARY_PATH
16588  shlibpath_overrides_runpath=no
16589  hardcode_into_libs=yes
16590  ;;
16591
16592irix5* | irix6* | nonstopux*)
16593  case $host_os in
16594    nonstopux*) version_type=nonstopux ;;
16595    *)
16596	if test "$lt_cv_prog_gnu_ld" = yes; then
16597		version_type=linux # correct to gnu/linux during the next big refactor
16598	else
16599		version_type=irix
16600	fi ;;
16601  esac
16602  need_lib_prefix=no
16603  need_version=no
16604  soname_spec='${libname}${release}${shared_ext}$major'
16605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16606  case $host_os in
16607  irix5* | nonstopux*)
16608    libsuff= shlibsuff=
16609    ;;
16610  *)
16611    case $LD in # libtool.m4 will add one of these switches to LD
16612    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16613      libsuff= shlibsuff= libmagic=32-bit;;
16614    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16615      libsuff=32 shlibsuff=N32 libmagic=N32;;
16616    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16617      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16618    *) libsuff= shlibsuff= libmagic=never-match;;
16619    esac
16620    ;;
16621  esac
16622  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16623  shlibpath_overrides_runpath=no
16624  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16625  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16626  hardcode_into_libs=yes
16627  ;;
16628
16629# No shared lib support for Linux oldld, aout, or coff.
16630linux*oldld* | linux*aout* | linux*coff*)
16631  dynamic_linker=no
16632  ;;
16633
16634# This must be glibc/ELF.
16635linux* | k*bsd*-gnu | kopensolaris*-gnu)
16636  version_type=linux # correct to gnu/linux during the next big refactor
16637  need_lib_prefix=no
16638  need_version=no
16639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640  soname_spec='${libname}${release}${shared_ext}$major'
16641  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16642  shlibpath_var=LD_LIBRARY_PATH
16643  shlibpath_overrides_runpath=no
16644
16645  # Some binutils ld are patched to set DT_RUNPATH
16646  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16647  $as_echo_n "(cached) " >&6
16648else
16649  lt_cv_shlibpath_overrides_runpath=no
16650    save_LDFLAGS=$LDFLAGS
16651    save_libdir=$libdir
16652    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16653	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h.  */
16656
16657int
16658main ()
16659{
16660
16661  ;
16662  return 0;
16663}
16664_ACEOF
16665if ac_fn_c_try_link "$LINENO"; then :
16666  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16667  lt_cv_shlibpath_overrides_runpath=yes
16668fi
16669fi
16670rm -f core conftest.err conftest.$ac_objext \
16671    conftest$ac_exeext conftest.$ac_ext
16672    LDFLAGS=$save_LDFLAGS
16673    libdir=$save_libdir
16674
16675fi
16676
16677  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16678
16679  # This implies no fast_install, which is unacceptable.
16680  # Some rework will be needed to allow for fast_install
16681  # before this can be enabled.
16682  hardcode_into_libs=yes
16683
16684  # Add ABI-specific directories to the system library path.
16685  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16686
16687  # Append ld.so.conf contents to the search path
16688  if test -f /etc/ld.so.conf; then
16689    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' ' '`
16690    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16691
16692  fi
16693
16694  # We used to test for /lib/ld.so.1 and disable shared libraries on
16695  # powerpc, because MkLinux only supported shared libraries with the
16696  # GNU dynamic linker.  Since this was broken with cross compilers,
16697  # most powerpc-linux boxes support dynamic linking these days and
16698  # people can always --disable-shared, the test was removed, and we
16699  # assume the GNU/Linux dynamic linker is in use.
16700  dynamic_linker='GNU/Linux ld.so'
16701  ;;
16702
16703netbsd*)
16704  version_type=sunos
16705  need_lib_prefix=no
16706  need_version=no
16707  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710    dynamic_linker='NetBSD (a.out) ld.so'
16711  else
16712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16713    soname_spec='${libname}${release}${shared_ext}$major'
16714    dynamic_linker='NetBSD ld.elf_so'
16715  fi
16716  shlibpath_var=LD_LIBRARY_PATH
16717  shlibpath_overrides_runpath=yes
16718  hardcode_into_libs=yes
16719  ;;
16720
16721newsos6)
16722  version_type=linux # correct to gnu/linux during the next big refactor
16723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724  shlibpath_var=LD_LIBRARY_PATH
16725  shlibpath_overrides_runpath=yes
16726  ;;
16727
16728*nto* | *qnx*)
16729  version_type=qnx
16730  need_lib_prefix=no
16731  need_version=no
16732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733  soname_spec='${libname}${release}${shared_ext}$major'
16734  shlibpath_var=LD_LIBRARY_PATH
16735  shlibpath_overrides_runpath=no
16736  hardcode_into_libs=yes
16737  dynamic_linker='ldqnx.so'
16738  ;;
16739
16740openbsd*)
16741  version_type=sunos
16742  sys_lib_dlsearch_path_spec="/usr/lib"
16743  need_lib_prefix=no
16744  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16745  case $host_os in
16746    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16747    *)				need_version=no  ;;
16748  esac
16749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16750  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16751  shlibpath_var=LD_LIBRARY_PATH
16752  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16753    case $host_os in
16754      openbsd2.[89] | openbsd2.[89].*)
16755	shlibpath_overrides_runpath=no
16756	;;
16757      *)
16758	shlibpath_overrides_runpath=yes
16759	;;
16760      esac
16761  else
16762    shlibpath_overrides_runpath=yes
16763  fi
16764  ;;
16765
16766os2*)
16767  libname_spec='$name'
16768  shrext_cmds=".dll"
16769  need_lib_prefix=no
16770  library_names_spec='$libname${shared_ext} $libname.a'
16771  dynamic_linker='OS/2 ld.exe'
16772  shlibpath_var=LIBPATH
16773  ;;
16774
16775osf3* | osf4* | osf5*)
16776  version_type=osf
16777  need_lib_prefix=no
16778  need_version=no
16779  soname_spec='${libname}${release}${shared_ext}$major'
16780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781  shlibpath_var=LD_LIBRARY_PATH
16782  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16783  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16784  ;;
16785
16786rdos*)
16787  dynamic_linker=no
16788  ;;
16789
16790solaris*)
16791  version_type=linux # correct to gnu/linux during the next big refactor
16792  need_lib_prefix=no
16793  need_version=no
16794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795  soname_spec='${libname}${release}${shared_ext}$major'
16796  shlibpath_var=LD_LIBRARY_PATH
16797  shlibpath_overrides_runpath=yes
16798  hardcode_into_libs=yes
16799  # ldd complains unless libraries are executable
16800  postinstall_cmds='chmod +x $lib'
16801  ;;
16802
16803sunos4*)
16804  version_type=sunos
16805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16806  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16807  shlibpath_var=LD_LIBRARY_PATH
16808  shlibpath_overrides_runpath=yes
16809  if test "$with_gnu_ld" = yes; then
16810    need_lib_prefix=no
16811  fi
16812  need_version=yes
16813  ;;
16814
16815sysv4 | sysv4.3*)
16816  version_type=linux # correct to gnu/linux during the next big refactor
16817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818  soname_spec='${libname}${release}${shared_ext}$major'
16819  shlibpath_var=LD_LIBRARY_PATH
16820  case $host_vendor in
16821    sni)
16822      shlibpath_overrides_runpath=no
16823      need_lib_prefix=no
16824      runpath_var=LD_RUN_PATH
16825      ;;
16826    siemens)
16827      need_lib_prefix=no
16828      ;;
16829    motorola)
16830      need_lib_prefix=no
16831      need_version=no
16832      shlibpath_overrides_runpath=no
16833      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16834      ;;
16835  esac
16836  ;;
16837
16838sysv4*MP*)
16839  if test -d /usr/nec ;then
16840    version_type=linux # correct to gnu/linux during the next big refactor
16841    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16842    soname_spec='$libname${shared_ext}.$major'
16843    shlibpath_var=LD_LIBRARY_PATH
16844  fi
16845  ;;
16846
16847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16848  version_type=freebsd-elf
16849  need_lib_prefix=no
16850  need_version=no
16851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16852  soname_spec='${libname}${release}${shared_ext}$major'
16853  shlibpath_var=LD_LIBRARY_PATH
16854  shlibpath_overrides_runpath=yes
16855  hardcode_into_libs=yes
16856  if test "$with_gnu_ld" = yes; then
16857    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16858  else
16859    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16860    case $host_os in
16861      sco3.2v5*)
16862        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16863	;;
16864    esac
16865  fi
16866  sys_lib_dlsearch_path_spec='/usr/lib'
16867  ;;
16868
16869tpf*)
16870  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16871  version_type=linux # correct to gnu/linux during the next big refactor
16872  need_lib_prefix=no
16873  need_version=no
16874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875  shlibpath_var=LD_LIBRARY_PATH
16876  shlibpath_overrides_runpath=no
16877  hardcode_into_libs=yes
16878  ;;
16879
16880uts4*)
16881  version_type=linux # correct to gnu/linux during the next big refactor
16882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883  soname_spec='${libname}${release}${shared_ext}$major'
16884  shlibpath_var=LD_LIBRARY_PATH
16885  ;;
16886
16887*)
16888  dynamic_linker=no
16889  ;;
16890esac
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16892$as_echo "$dynamic_linker" >&6; }
16893test "$dynamic_linker" = no && can_build_shared=no
16894
16895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16896if test "$GCC" = yes; then
16897  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16898fi
16899
16900if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16901  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16902fi
16903if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16904  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16905fi
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16999$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17000hardcode_action=
17001if test -n "$hardcode_libdir_flag_spec" ||
17002   test -n "$runpath_var" ||
17003   test "X$hardcode_automatic" = "Xyes" ; then
17004
17005  # We can hardcode non-existent directories.
17006  if test "$hardcode_direct" != no &&
17007     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17008     # have to relink, otherwise we might link with an installed library
17009     # when we should be linking with a yet-to-be-installed one
17010     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17011     test "$hardcode_minus_L" != no; then
17012    # Linking always hardcodes the temporary library directory.
17013    hardcode_action=relink
17014  else
17015    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17016    hardcode_action=immediate
17017  fi
17018else
17019  # We cannot hardcode anything, or else we can only hardcode existing
17020  # directories.
17021  hardcode_action=unsupported
17022fi
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17024$as_echo "$hardcode_action" >&6; }
17025
17026if test "$hardcode_action" = relink ||
17027   test "$inherit_rpath" = yes; then
17028  # Fast installation is not supported
17029  enable_fast_install=no
17030elif test "$shlibpath_overrides_runpath" = yes ||
17031     test "$enable_shared" = no; then
17032  # Fast installation is not necessary
17033  enable_fast_install=needless
17034fi
17035
17036
17037
17038
17039
17040
17041  if test "x$enable_dlopen" != xyes; then
17042  enable_dlopen=unknown
17043  enable_dlopen_self=unknown
17044  enable_dlopen_self_static=unknown
17045else
17046  lt_cv_dlopen=no
17047  lt_cv_dlopen_libs=
17048
17049  case $host_os in
17050  beos*)
17051    lt_cv_dlopen="load_add_on"
17052    lt_cv_dlopen_libs=
17053    lt_cv_dlopen_self=yes
17054    ;;
17055
17056  mingw* | pw32* | cegcc*)
17057    lt_cv_dlopen="LoadLibrary"
17058    lt_cv_dlopen_libs=
17059    ;;
17060
17061  cygwin*)
17062    lt_cv_dlopen="dlopen"
17063    lt_cv_dlopen_libs=
17064    ;;
17065
17066  darwin*)
17067  # if libdl is installed we need to link against it
17068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17069$as_echo_n "checking for dlopen in -ldl... " >&6; }
17070if ${ac_cv_lib_dl_dlopen+:} false; then :
17071  $as_echo_n "(cached) " >&6
17072else
17073  ac_check_lib_save_LIBS=$LIBS
17074LIBS="-ldl  $LIBS"
17075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076/* end confdefs.h.  */
17077
17078/* Override any GCC internal prototype to avoid an error.
17079   Use char because int might match the return type of a GCC
17080   builtin and then its argument prototype would still apply.  */
17081#ifdef __cplusplus
17082extern "C"
17083#endif
17084char dlopen ();
17085int
17086main ()
17087{
17088return dlopen ();
17089  ;
17090  return 0;
17091}
17092_ACEOF
17093if ac_fn_c_try_link "$LINENO"; then :
17094  ac_cv_lib_dl_dlopen=yes
17095else
17096  ac_cv_lib_dl_dlopen=no
17097fi
17098rm -f core conftest.err conftest.$ac_objext \
17099    conftest$ac_exeext conftest.$ac_ext
17100LIBS=$ac_check_lib_save_LIBS
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17103$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17104if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17105  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17106else
17107
17108    lt_cv_dlopen="dyld"
17109    lt_cv_dlopen_libs=
17110    lt_cv_dlopen_self=yes
17111
17112fi
17113
17114    ;;
17115
17116  *)
17117    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17118if test "x$ac_cv_func_shl_load" = xyes; then :
17119  lt_cv_dlopen="shl_load"
17120else
17121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17122$as_echo_n "checking for shl_load in -ldld... " >&6; }
17123if ${ac_cv_lib_dld_shl_load+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  ac_check_lib_save_LIBS=$LIBS
17127LIBS="-ldld  $LIBS"
17128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h.  */
17130
17131/* Override any GCC internal prototype to avoid an error.
17132   Use char because int might match the return type of a GCC
17133   builtin and then its argument prototype would still apply.  */
17134#ifdef __cplusplus
17135extern "C"
17136#endif
17137char shl_load ();
17138int
17139main ()
17140{
17141return shl_load ();
17142  ;
17143  return 0;
17144}
17145_ACEOF
17146if ac_fn_c_try_link "$LINENO"; then :
17147  ac_cv_lib_dld_shl_load=yes
17148else
17149  ac_cv_lib_dld_shl_load=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext \
17152    conftest$ac_exeext conftest.$ac_ext
17153LIBS=$ac_check_lib_save_LIBS
17154fi
17155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17156$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17157if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17158  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17159else
17160  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17161if test "x$ac_cv_func_dlopen" = xyes; then :
17162  lt_cv_dlopen="dlopen"
17163else
17164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17165$as_echo_n "checking for dlopen in -ldl... " >&6; }
17166if ${ac_cv_lib_dl_dlopen+:} false; then :
17167  $as_echo_n "(cached) " >&6
17168else
17169  ac_check_lib_save_LIBS=$LIBS
17170LIBS="-ldl  $LIBS"
17171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h.  */
17173
17174/* Override any GCC internal prototype to avoid an error.
17175   Use char because int might match the return type of a GCC
17176   builtin and then its argument prototype would still apply.  */
17177#ifdef __cplusplus
17178extern "C"
17179#endif
17180char dlopen ();
17181int
17182main ()
17183{
17184return dlopen ();
17185  ;
17186  return 0;
17187}
17188_ACEOF
17189if ac_fn_c_try_link "$LINENO"; then :
17190  ac_cv_lib_dl_dlopen=yes
17191else
17192  ac_cv_lib_dl_dlopen=no
17193fi
17194rm -f core conftest.err conftest.$ac_objext \
17195    conftest$ac_exeext conftest.$ac_ext
17196LIBS=$ac_check_lib_save_LIBS
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17199$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17200if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17201  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17202else
17203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17204$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17205if ${ac_cv_lib_svld_dlopen+:} false; then :
17206  $as_echo_n "(cached) " >&6
17207else
17208  ac_check_lib_save_LIBS=$LIBS
17209LIBS="-lsvld  $LIBS"
17210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211/* end confdefs.h.  */
17212
17213/* Override any GCC internal prototype to avoid an error.
17214   Use char because int might match the return type of a GCC
17215   builtin and then its argument prototype would still apply.  */
17216#ifdef __cplusplus
17217extern "C"
17218#endif
17219char dlopen ();
17220int
17221main ()
17222{
17223return dlopen ();
17224  ;
17225  return 0;
17226}
17227_ACEOF
17228if ac_fn_c_try_link "$LINENO"; then :
17229  ac_cv_lib_svld_dlopen=yes
17230else
17231  ac_cv_lib_svld_dlopen=no
17232fi
17233rm -f core conftest.err conftest.$ac_objext \
17234    conftest$ac_exeext conftest.$ac_ext
17235LIBS=$ac_check_lib_save_LIBS
17236fi
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17238$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17239if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17240  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17241else
17242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17243$as_echo_n "checking for dld_link in -ldld... " >&6; }
17244if ${ac_cv_lib_dld_dld_link+:} false; then :
17245  $as_echo_n "(cached) " >&6
17246else
17247  ac_check_lib_save_LIBS=$LIBS
17248LIBS="-ldld  $LIBS"
17249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250/* end confdefs.h.  */
17251
17252/* Override any GCC internal prototype to avoid an error.
17253   Use char because int might match the return type of a GCC
17254   builtin and then its argument prototype would still apply.  */
17255#ifdef __cplusplus
17256extern "C"
17257#endif
17258char dld_link ();
17259int
17260main ()
17261{
17262return dld_link ();
17263  ;
17264  return 0;
17265}
17266_ACEOF
17267if ac_fn_c_try_link "$LINENO"; then :
17268  ac_cv_lib_dld_dld_link=yes
17269else
17270  ac_cv_lib_dld_dld_link=no
17271fi
17272rm -f core conftest.err conftest.$ac_objext \
17273    conftest$ac_exeext conftest.$ac_ext
17274LIBS=$ac_check_lib_save_LIBS
17275fi
17276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17277$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17278if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17279  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291
17292fi
17293
17294
17295fi
17296
17297    ;;
17298  esac
17299
17300  if test "x$lt_cv_dlopen" != xno; then
17301    enable_dlopen=yes
17302  else
17303    enable_dlopen=no
17304  fi
17305
17306  case $lt_cv_dlopen in
17307  dlopen)
17308    save_CPPFLAGS="$CPPFLAGS"
17309    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17310
17311    save_LDFLAGS="$LDFLAGS"
17312    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17313
17314    save_LIBS="$LIBS"
17315    LIBS="$lt_cv_dlopen_libs $LIBS"
17316
17317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17318$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17319if ${lt_cv_dlopen_self+:} false; then :
17320  $as_echo_n "(cached) " >&6
17321else
17322  	  if test "$cross_compiling" = yes; then :
17323  lt_cv_dlopen_self=cross
17324else
17325  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17326  lt_status=$lt_dlunknown
17327  cat > conftest.$ac_ext <<_LT_EOF
17328#line $LINENO "configure"
17329#include "confdefs.h"
17330
17331#if HAVE_DLFCN_H
17332#include <dlfcn.h>
17333#endif
17334
17335#include <stdio.h>
17336
17337#ifdef RTLD_GLOBAL
17338#  define LT_DLGLOBAL		RTLD_GLOBAL
17339#else
17340#  ifdef DL_GLOBAL
17341#    define LT_DLGLOBAL		DL_GLOBAL
17342#  else
17343#    define LT_DLGLOBAL		0
17344#  endif
17345#endif
17346
17347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17348   find out it does not work in some platform. */
17349#ifndef LT_DLLAZY_OR_NOW
17350#  ifdef RTLD_LAZY
17351#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17352#  else
17353#    ifdef DL_LAZY
17354#      define LT_DLLAZY_OR_NOW		DL_LAZY
17355#    else
17356#      ifdef RTLD_NOW
17357#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17358#      else
17359#        ifdef DL_NOW
17360#          define LT_DLLAZY_OR_NOW	DL_NOW
17361#        else
17362#          define LT_DLLAZY_OR_NOW	0
17363#        endif
17364#      endif
17365#    endif
17366#  endif
17367#endif
17368
17369/* When -fvisbility=hidden is used, assume the code has been annotated
17370   correspondingly for the symbols needed.  */
17371#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17372int fnord () __attribute__((visibility("default")));
17373#endif
17374
17375int fnord () { return 42; }
17376int main ()
17377{
17378  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17379  int status = $lt_dlunknown;
17380
17381  if (self)
17382    {
17383      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17384      else
17385        {
17386	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17387          else puts (dlerror ());
17388	}
17389      /* dlclose (self); */
17390    }
17391  else
17392    puts (dlerror ());
17393
17394  return status;
17395}
17396_LT_EOF
17397  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17398  (eval $ac_link) 2>&5
17399  ac_status=$?
17400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17401  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17402    (./conftest; exit; ) >&5 2>/dev/null
17403    lt_status=$?
17404    case x$lt_status in
17405      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17406      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17407      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17408    esac
17409  else :
17410    # compilation failed
17411    lt_cv_dlopen_self=no
17412  fi
17413fi
17414rm -fr conftest*
17415
17416
17417fi
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17419$as_echo "$lt_cv_dlopen_self" >&6; }
17420
17421    if test "x$lt_cv_dlopen_self" = xyes; then
17422      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17423      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17424$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17425if ${lt_cv_dlopen_self_static+:} false; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  	  if test "$cross_compiling" = yes; then :
17429  lt_cv_dlopen_self_static=cross
17430else
17431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17432  lt_status=$lt_dlunknown
17433  cat > conftest.$ac_ext <<_LT_EOF
17434#line $LINENO "configure"
17435#include "confdefs.h"
17436
17437#if HAVE_DLFCN_H
17438#include <dlfcn.h>
17439#endif
17440
17441#include <stdio.h>
17442
17443#ifdef RTLD_GLOBAL
17444#  define LT_DLGLOBAL		RTLD_GLOBAL
17445#else
17446#  ifdef DL_GLOBAL
17447#    define LT_DLGLOBAL		DL_GLOBAL
17448#  else
17449#    define LT_DLGLOBAL		0
17450#  endif
17451#endif
17452
17453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17454   find out it does not work in some platform. */
17455#ifndef LT_DLLAZY_OR_NOW
17456#  ifdef RTLD_LAZY
17457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17458#  else
17459#    ifdef DL_LAZY
17460#      define LT_DLLAZY_OR_NOW		DL_LAZY
17461#    else
17462#      ifdef RTLD_NOW
17463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17464#      else
17465#        ifdef DL_NOW
17466#          define LT_DLLAZY_OR_NOW	DL_NOW
17467#        else
17468#          define LT_DLLAZY_OR_NOW	0
17469#        endif
17470#      endif
17471#    endif
17472#  endif
17473#endif
17474
17475/* When -fvisbility=hidden is used, assume the code has been annotated
17476   correspondingly for the symbols needed.  */
17477#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17478int fnord () __attribute__((visibility("default")));
17479#endif
17480
17481int fnord () { return 42; }
17482int main ()
17483{
17484  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17485  int status = $lt_dlunknown;
17486
17487  if (self)
17488    {
17489      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17490      else
17491        {
17492	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17493          else puts (dlerror ());
17494	}
17495      /* dlclose (self); */
17496    }
17497  else
17498    puts (dlerror ());
17499
17500  return status;
17501}
17502_LT_EOF
17503  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17504  (eval $ac_link) 2>&5
17505  ac_status=$?
17506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17507  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17508    (./conftest; exit; ) >&5 2>/dev/null
17509    lt_status=$?
17510    case x$lt_status in
17511      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17512      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17513      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17514    esac
17515  else :
17516    # compilation failed
17517    lt_cv_dlopen_self_static=no
17518  fi
17519fi
17520rm -fr conftest*
17521
17522
17523fi
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17525$as_echo "$lt_cv_dlopen_self_static" >&6; }
17526    fi
17527
17528    CPPFLAGS="$save_CPPFLAGS"
17529    LDFLAGS="$save_LDFLAGS"
17530    LIBS="$save_LIBS"
17531    ;;
17532  esac
17533
17534  case $lt_cv_dlopen_self in
17535  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17536  *) enable_dlopen_self=unknown ;;
17537  esac
17538
17539  case $lt_cv_dlopen_self_static in
17540  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17541  *) enable_dlopen_self_static=unknown ;;
17542  esac
17543fi
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561striplib=
17562old_striplib=
17563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17564$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17565if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17566  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17567  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17569$as_echo "yes" >&6; }
17570else
17571# FIXME - insert some real tests, host_os isn't really good enough
17572  case $host_os in
17573  darwin*)
17574    if test -n "$STRIP" ; then
17575      striplib="$STRIP -x"
17576      old_striplib="$STRIP -S"
17577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17578$as_echo "yes" >&6; }
17579    else
17580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581$as_echo "no" >&6; }
17582    fi
17583    ;;
17584  *)
17585    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17586$as_echo "no" >&6; }
17587    ;;
17588  esac
17589fi
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602  # Report which library types will actually be built
17603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17604$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17606$as_echo "$can_build_shared" >&6; }
17607
17608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17609$as_echo_n "checking whether to build shared libraries... " >&6; }
17610  test "$can_build_shared" = "no" && enable_shared=no
17611
17612  # On AIX, shared libraries and static libraries use the same namespace, and
17613  # are all built from PIC.
17614  case $host_os in
17615  aix3*)
17616    test "$enable_shared" = yes && enable_static=no
17617    if test -n "$RANLIB"; then
17618      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17619      postinstall_cmds='$RANLIB $lib'
17620    fi
17621    ;;
17622
17623  aix[4-9]*)
17624    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17625      test "$enable_shared" = yes && enable_static=no
17626    fi
17627    ;;
17628  esac
17629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17630$as_echo "$enable_shared" >&6; }
17631
17632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17633$as_echo_n "checking whether to build static libraries... " >&6; }
17634  # Make sure either enable_shared or enable_static is yes.
17635  test "$enable_shared" = yes || enable_static=yes
17636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17637$as_echo "$enable_static" >&6; }
17638
17639
17640
17641
17642fi
17643ac_ext=c
17644ac_cpp='$CPP $CPPFLAGS'
17645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17647ac_compiler_gnu=$ac_cv_c_compiler_gnu
17648
17649CC="$lt_save_CC"
17650
17651      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17652    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17653    (test "X$CXX" != "Xg++"))) ; then
17654  ac_ext=cpp
17655ac_cpp='$CXXCPP $CPPFLAGS'
17656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17660$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17661if test -z "$CXXCPP"; then
17662  if ${ac_cv_prog_CXXCPP+:} false; then :
17663  $as_echo_n "(cached) " >&6
17664else
17665      # Double quotes because CXXCPP needs to be expanded
17666    for CXXCPP in "$CXX -E" "/lib/cpp"
17667    do
17668      ac_preproc_ok=false
17669for ac_cxx_preproc_warn_flag in '' yes
17670do
17671  # Use a header file that comes with gcc, so configuring glibc
17672  # with a fresh cross-compiler works.
17673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674  # <limits.h> exists even on freestanding compilers.
17675  # On the NeXT, cc -E runs the code through the compiler's parser,
17676  # not just through cpp. "Syntax error" is here to catch this case.
17677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678/* end confdefs.h.  */
17679#ifdef __STDC__
17680# include <limits.h>
17681#else
17682# include <assert.h>
17683#endif
17684		     Syntax error
17685_ACEOF
17686if ac_fn_cxx_try_cpp "$LINENO"; then :
17687
17688else
17689  # Broken: fails on valid input.
17690continue
17691fi
17692rm -f conftest.err conftest.i conftest.$ac_ext
17693
17694  # OK, works on sane cases.  Now check whether nonexistent headers
17695  # can be detected and how.
17696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697/* end confdefs.h.  */
17698#include <ac_nonexistent.h>
17699_ACEOF
17700if ac_fn_cxx_try_cpp "$LINENO"; then :
17701  # Broken: success on invalid input.
17702continue
17703else
17704  # Passes both tests.
17705ac_preproc_ok=:
17706break
17707fi
17708rm -f conftest.err conftest.i conftest.$ac_ext
17709
17710done
17711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17712rm -f conftest.i conftest.err conftest.$ac_ext
17713if $ac_preproc_ok; then :
17714  break
17715fi
17716
17717    done
17718    ac_cv_prog_CXXCPP=$CXXCPP
17719
17720fi
17721  CXXCPP=$ac_cv_prog_CXXCPP
17722else
17723  ac_cv_prog_CXXCPP=$CXXCPP
17724fi
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17726$as_echo "$CXXCPP" >&6; }
17727ac_preproc_ok=false
17728for ac_cxx_preproc_warn_flag in '' yes
17729do
17730  # Use a header file that comes with gcc, so configuring glibc
17731  # with a fresh cross-compiler works.
17732  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733  # <limits.h> exists even on freestanding compilers.
17734  # On the NeXT, cc -E runs the code through the compiler's parser,
17735  # not just through cpp. "Syntax error" is here to catch this case.
17736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737/* end confdefs.h.  */
17738#ifdef __STDC__
17739# include <limits.h>
17740#else
17741# include <assert.h>
17742#endif
17743		     Syntax error
17744_ACEOF
17745if ac_fn_cxx_try_cpp "$LINENO"; then :
17746
17747else
17748  # Broken: fails on valid input.
17749continue
17750fi
17751rm -f conftest.err conftest.i conftest.$ac_ext
17752
17753  # OK, works on sane cases.  Now check whether nonexistent headers
17754  # can be detected and how.
17755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h.  */
17757#include <ac_nonexistent.h>
17758_ACEOF
17759if ac_fn_cxx_try_cpp "$LINENO"; then :
17760  # Broken: success on invalid input.
17761continue
17762else
17763  # Passes both tests.
17764ac_preproc_ok=:
17765break
17766fi
17767rm -f conftest.err conftest.i conftest.$ac_ext
17768
17769done
17770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17771rm -f conftest.i conftest.err conftest.$ac_ext
17772if $ac_preproc_ok; then :
17773
17774else
17775  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17777as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17778See \`config.log' for more details" "$LINENO" 5; }
17779fi
17780
17781ac_ext=c
17782ac_cpp='$CPP $CPPFLAGS'
17783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785ac_compiler_gnu=$ac_cv_c_compiler_gnu
17786
17787else
17788  _lt_caught_CXX_error=yes
17789fi
17790
17791ac_ext=cpp
17792ac_cpp='$CXXCPP $CPPFLAGS'
17793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17796
17797archive_cmds_need_lc_CXX=no
17798allow_undefined_flag_CXX=
17799always_export_symbols_CXX=no
17800archive_expsym_cmds_CXX=
17801compiler_needs_object_CXX=no
17802export_dynamic_flag_spec_CXX=
17803hardcode_direct_CXX=no
17804hardcode_direct_absolute_CXX=no
17805hardcode_libdir_flag_spec_CXX=
17806hardcode_libdir_separator_CXX=
17807hardcode_minus_L_CXX=no
17808hardcode_shlibpath_var_CXX=unsupported
17809hardcode_automatic_CXX=no
17810inherit_rpath_CXX=no
17811module_cmds_CXX=
17812module_expsym_cmds_CXX=
17813link_all_deplibs_CXX=unknown
17814old_archive_cmds_CXX=$old_archive_cmds
17815reload_flag_CXX=$reload_flag
17816reload_cmds_CXX=$reload_cmds
17817no_undefined_flag_CXX=
17818whole_archive_flag_spec_CXX=
17819enable_shared_with_static_runtimes_CXX=no
17820
17821# Source file extension for C++ test sources.
17822ac_ext=cpp
17823
17824# Object file extension for compiled C++ test sources.
17825objext=o
17826objext_CXX=$objext
17827
17828# No sense in running all these tests if we already determined that
17829# the CXX compiler isn't working.  Some variables (like enable_shared)
17830# are currently assumed to apply to all compilers on this platform,
17831# and will be corrupted by setting them based on a non-working compiler.
17832if test "$_lt_caught_CXX_error" != yes; then
17833  # Code to be used in simple compile tests
17834  lt_simple_compile_test_code="int some_variable = 0;"
17835
17836  # Code to be used in simple link tests
17837  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17838
17839  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17840
17841
17842
17843
17844
17845
17846# If no C compiler was specified, use CC.
17847LTCC=${LTCC-"$CC"}
17848
17849# If no C compiler flags were specified, use CFLAGS.
17850LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17851
17852# Allow CC to be a program name with arguments.
17853compiler=$CC
17854
17855
17856  # save warnings/boilerplate of simple test code
17857  ac_outfile=conftest.$ac_objext
17858echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17860_lt_compiler_boilerplate=`cat conftest.err`
17861$RM conftest*
17862
17863  ac_outfile=conftest.$ac_objext
17864echo "$lt_simple_link_test_code" >conftest.$ac_ext
17865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17866_lt_linker_boilerplate=`cat conftest.err`
17867$RM -r conftest*
17868
17869
17870  # Allow CC to be a program name with arguments.
17871  lt_save_CC=$CC
17872  lt_save_CFLAGS=$CFLAGS
17873  lt_save_LD=$LD
17874  lt_save_GCC=$GCC
17875  GCC=$GXX
17876  lt_save_with_gnu_ld=$with_gnu_ld
17877  lt_save_path_LD=$lt_cv_path_LD
17878  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17879    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17880  else
17881    $as_unset lt_cv_prog_gnu_ld
17882  fi
17883  if test -n "${lt_cv_path_LDCXX+set}"; then
17884    lt_cv_path_LD=$lt_cv_path_LDCXX
17885  else
17886    $as_unset lt_cv_path_LD
17887  fi
17888  test -z "${LDCXX+set}" || LD=$LDCXX
17889  CC=${CXX-"c++"}
17890  CFLAGS=$CXXFLAGS
17891  compiler=$CC
17892  compiler_CXX=$CC
17893  for cc_temp in $compiler""; do
17894  case $cc_temp in
17895    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17896    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17897    \-*) ;;
17898    *) break;;
17899  esac
17900done
17901cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17902
17903
17904  if test -n "$compiler"; then
17905    # We don't want -fno-exception when compiling C++ code, so set the
17906    # no_builtin_flag separately
17907    if test "$GXX" = yes; then
17908      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17909    else
17910      lt_prog_compiler_no_builtin_flag_CXX=
17911    fi
17912
17913    if test "$GXX" = yes; then
17914      # Set up default GNU C++ configuration
17915
17916
17917
17918# Check whether --with-gnu-ld was given.
17919if test "${with_gnu_ld+set}" = set; then :
17920  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17921else
17922  with_gnu_ld=no
17923fi
17924
17925ac_prog=ld
17926if test "$GCC" = yes; then
17927  # Check if gcc -print-prog-name=ld gives a path.
17928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17929$as_echo_n "checking for ld used by $CC... " >&6; }
17930  case $host in
17931  *-*-mingw*)
17932    # gcc leaves a trailing carriage return which upsets mingw
17933    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17934  *)
17935    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17936  esac
17937  case $ac_prog in
17938    # Accept absolute paths.
17939    [\\/]* | ?:[\\/]*)
17940      re_direlt='/[^/][^/]*/\.\./'
17941      # Canonicalize the pathname of ld
17942      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17943      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17944	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17945      done
17946      test -z "$LD" && LD="$ac_prog"
17947      ;;
17948  "")
17949    # If it fails, then pretend we aren't using GCC.
17950    ac_prog=ld
17951    ;;
17952  *)
17953    # If it is relative, then search for the first ld in PATH.
17954    with_gnu_ld=unknown
17955    ;;
17956  esac
17957elif test "$with_gnu_ld" = yes; then
17958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17959$as_echo_n "checking for GNU ld... " >&6; }
17960else
17961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17962$as_echo_n "checking for non-GNU ld... " >&6; }
17963fi
17964if ${lt_cv_path_LD+:} false; then :
17965  $as_echo_n "(cached) " >&6
17966else
17967  if test -z "$LD"; then
17968  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17969  for ac_dir in $PATH; do
17970    IFS="$lt_save_ifs"
17971    test -z "$ac_dir" && ac_dir=.
17972    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17973      lt_cv_path_LD="$ac_dir/$ac_prog"
17974      # Check to see if the program is GNU ld.  I'd rather use --version,
17975      # but apparently some variants of GNU ld only accept -v.
17976      # Break only if it was the GNU/non-GNU ld that we prefer.
17977      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17978      *GNU* | *'with BFD'*)
17979	test "$with_gnu_ld" != no && break
17980	;;
17981      *)
17982	test "$with_gnu_ld" != yes && break
17983	;;
17984      esac
17985    fi
17986  done
17987  IFS="$lt_save_ifs"
17988else
17989  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17990fi
17991fi
17992
17993LD="$lt_cv_path_LD"
17994if test -n "$LD"; then
17995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17996$as_echo "$LD" >&6; }
17997else
17998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17999$as_echo "no" >&6; }
18000fi
18001test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18003$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18004if ${lt_cv_prog_gnu_ld+:} false; then :
18005  $as_echo_n "(cached) " >&6
18006else
18007  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18008case `$LD -v 2>&1 </dev/null` in
18009*GNU* | *'with BFD'*)
18010  lt_cv_prog_gnu_ld=yes
18011  ;;
18012*)
18013  lt_cv_prog_gnu_ld=no
18014  ;;
18015esac
18016fi
18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18018$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18019with_gnu_ld=$lt_cv_prog_gnu_ld
18020
18021
18022
18023
18024
18025
18026
18027      # Check if GNU C++ uses GNU ld as the underlying linker, since the
18028      # archiving commands below assume that GNU ld is being used.
18029      if test "$with_gnu_ld" = yes; then
18030        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18031        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'
18032
18033        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18034        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18035
18036        # If archive_cmds runs LD, not CC, wlarc should be empty
18037        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18038        #     investigate it a little bit more. (MM)
18039        wlarc='${wl}'
18040
18041        # ancient GNU ld didn't support --whole-archive et. al.
18042        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18043	  $GREP 'no-whole-archive' > /dev/null; then
18044          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18045        else
18046          whole_archive_flag_spec_CXX=
18047        fi
18048      else
18049        with_gnu_ld=no
18050        wlarc=
18051
18052        # A generic and very simple default shared library creation
18053        # command for GNU C++ for the case where it uses the native
18054        # linker, instead of GNU ld.  If possible, this setting should
18055        # overridden to take advantage of the native linker features on
18056        # the platform it is being used on.
18057        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18058      fi
18059
18060      # Commands to make compiler produce verbose output that lists
18061      # what "hidden" libraries, object files and flags are used when
18062      # linking a shared library.
18063      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18064
18065    else
18066      GXX=no
18067      with_gnu_ld=no
18068      wlarc=
18069    fi
18070
18071    # PORTME: fill in a description of your system's C++ link characteristics
18072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18073$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18074    ld_shlibs_CXX=yes
18075    case $host_os in
18076      aix3*)
18077        # FIXME: insert proper C++ library support
18078        ld_shlibs_CXX=no
18079        ;;
18080      aix[4-9]*)
18081        if test "$host_cpu" = ia64; then
18082          # On IA64, the linker does run time linking by default, so we don't
18083          # have to do anything special.
18084          aix_use_runtimelinking=no
18085          exp_sym_flag='-Bexport'
18086          no_entry_flag=""
18087        else
18088          aix_use_runtimelinking=no
18089
18090          # Test if we are trying to use run time linking or normal
18091          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18092          # need to do runtime linking.
18093          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18094	    for ld_flag in $LDFLAGS; do
18095	      case $ld_flag in
18096	      *-brtl*)
18097	        aix_use_runtimelinking=yes
18098	        break
18099	        ;;
18100	      esac
18101	    done
18102	    ;;
18103          esac
18104
18105          exp_sym_flag='-bexport'
18106          no_entry_flag='-bnoentry'
18107        fi
18108
18109        # When large executables or shared objects are built, AIX ld can
18110        # have problems creating the table of contents.  If linking a library
18111        # or program results in "error TOC overflow" add -mminimal-toc to
18112        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18113        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18114
18115        archive_cmds_CXX=''
18116        hardcode_direct_CXX=yes
18117        hardcode_direct_absolute_CXX=yes
18118        hardcode_libdir_separator_CXX=':'
18119        link_all_deplibs_CXX=yes
18120        file_list_spec_CXX='${wl}-f,'
18121
18122        if test "$GXX" = yes; then
18123          case $host_os in aix4.[012]|aix4.[012].*)
18124          # We only want to do this on AIX 4.2 and lower, the check
18125          # below for broken collect2 doesn't work under 4.3+
18126	  collect2name=`${CC} -print-prog-name=collect2`
18127	  if test -f "$collect2name" &&
18128	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18129	  then
18130	    # We have reworked collect2
18131	    :
18132	  else
18133	    # We have old collect2
18134	    hardcode_direct_CXX=unsupported
18135	    # It fails to find uninstalled libraries when the uninstalled
18136	    # path is not listed in the libpath.  Setting hardcode_minus_L
18137	    # to unsupported forces relinking
18138	    hardcode_minus_L_CXX=yes
18139	    hardcode_libdir_flag_spec_CXX='-L$libdir'
18140	    hardcode_libdir_separator_CXX=
18141	  fi
18142          esac
18143          shared_flag='-shared'
18144	  if test "$aix_use_runtimelinking" = yes; then
18145	    shared_flag="$shared_flag "'${wl}-G'
18146	  fi
18147        else
18148          # not using gcc
18149          if test "$host_cpu" = ia64; then
18150	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18151	  # chokes on -Wl,-G. The following line is correct:
18152	  shared_flag='-G'
18153          else
18154	    if test "$aix_use_runtimelinking" = yes; then
18155	      shared_flag='${wl}-G'
18156	    else
18157	      shared_flag='${wl}-bM:SRE'
18158	    fi
18159          fi
18160        fi
18161
18162        export_dynamic_flag_spec_CXX='${wl}-bexpall'
18163        # It seems that -bexpall does not export symbols beginning with
18164        # underscore (_), so it is better to generate a list of symbols to
18165	# export.
18166        always_export_symbols_CXX=yes
18167        if test "$aix_use_runtimelinking" = yes; then
18168          # Warning - without using the other runtime loading flags (-brtl),
18169          # -berok will link without error, but may produce a broken library.
18170          allow_undefined_flag_CXX='-berok'
18171          # Determine the default libpath from the value encoded in an empty
18172          # executable.
18173          if test "${lt_cv_aix_libpath+set}" = set; then
18174  aix_libpath=$lt_cv_aix_libpath
18175else
18176  if ${lt_cv_aix_libpath__CXX+:} false; then :
18177  $as_echo_n "(cached) " >&6
18178else
18179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180/* end confdefs.h.  */
18181
18182int
18183main ()
18184{
18185
18186  ;
18187  return 0;
18188}
18189_ACEOF
18190if ac_fn_cxx_try_link "$LINENO"; then :
18191
18192  lt_aix_libpath_sed='
18193      /Import File Strings/,/^$/ {
18194	  /^0/ {
18195	      s/^0  *\([^ ]*\) *$/\1/
18196	      p
18197	  }
18198      }'
18199  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18200  # Check for a 64-bit object if we didn't find anything.
18201  if test -z "$lt_cv_aix_libpath__CXX"; then
18202    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18203  fi
18204fi
18205rm -f core conftest.err conftest.$ac_objext \
18206    conftest$ac_exeext conftest.$ac_ext
18207  if test -z "$lt_cv_aix_libpath__CXX"; then
18208    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18209  fi
18210
18211fi
18212
18213  aix_libpath=$lt_cv_aix_libpath__CXX
18214fi
18215
18216          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18217
18218          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"
18219        else
18220          if test "$host_cpu" = ia64; then
18221	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18222	    allow_undefined_flag_CXX="-z nodefs"
18223	    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"
18224          else
18225	    # Determine the default libpath from the value encoded in an
18226	    # empty executable.
18227	    if test "${lt_cv_aix_libpath+set}" = set; then
18228  aix_libpath=$lt_cv_aix_libpath
18229else
18230  if ${lt_cv_aix_libpath__CXX+:} false; then :
18231  $as_echo_n "(cached) " >&6
18232else
18233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234/* end confdefs.h.  */
18235
18236int
18237main ()
18238{
18239
18240  ;
18241  return 0;
18242}
18243_ACEOF
18244if ac_fn_cxx_try_link "$LINENO"; then :
18245
18246  lt_aix_libpath_sed='
18247      /Import File Strings/,/^$/ {
18248	  /^0/ {
18249	      s/^0  *\([^ ]*\) *$/\1/
18250	      p
18251	  }
18252      }'
18253  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18254  # Check for a 64-bit object if we didn't find anything.
18255  if test -z "$lt_cv_aix_libpath__CXX"; then
18256    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18257  fi
18258fi
18259rm -f core conftest.err conftest.$ac_objext \
18260    conftest$ac_exeext conftest.$ac_ext
18261  if test -z "$lt_cv_aix_libpath__CXX"; then
18262    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18263  fi
18264
18265fi
18266
18267  aix_libpath=$lt_cv_aix_libpath__CXX
18268fi
18269
18270	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18271	    # Warning - without using the other run time loading flags,
18272	    # -berok will link without error, but may produce a broken library.
18273	    no_undefined_flag_CXX=' ${wl}-bernotok'
18274	    allow_undefined_flag_CXX=' ${wl}-berok'
18275	    if test "$with_gnu_ld" = yes; then
18276	      # We only use this code for GNU lds that support --whole-archive.
18277	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18278	    else
18279	      # Exported symbols can be pulled into shared objects from archives
18280	      whole_archive_flag_spec_CXX='$convenience'
18281	    fi
18282	    archive_cmds_need_lc_CXX=yes
18283	    # This is similar to how AIX traditionally builds its shared
18284	    # libraries.
18285	    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'
18286          fi
18287        fi
18288        ;;
18289
18290      beos*)
18291	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18292	  allow_undefined_flag_CXX=unsupported
18293	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18294	  # support --undefined.  This deserves some investigation.  FIXME
18295	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18296	else
18297	  ld_shlibs_CXX=no
18298	fi
18299	;;
18300
18301      chorus*)
18302        case $cc_basename in
18303          *)
18304	  # FIXME: insert proper C++ library support
18305	  ld_shlibs_CXX=no
18306	  ;;
18307        esac
18308        ;;
18309
18310      cygwin* | mingw* | pw32* | cegcc*)
18311	case $GXX,$cc_basename in
18312	,cl* | no,cl*)
18313	  # Native MSVC
18314	  # hardcode_libdir_flag_spec is actually meaningless, as there is
18315	  # no search path for DLLs.
18316	  hardcode_libdir_flag_spec_CXX=' '
18317	  allow_undefined_flag_CXX=unsupported
18318	  always_export_symbols_CXX=yes
18319	  file_list_spec_CXX='@'
18320	  # Tell ltmain to make .lib files, not .a files.
18321	  libext=lib
18322	  # Tell ltmain to make .dll files, not .so files.
18323	  shrext_cmds=".dll"
18324	  # FIXME: Setting linknames here is a bad hack.
18325	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18326	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18327	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18328	    else
18329	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18330	    fi~
18331	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18332	    linknames='
18333	  # The linker will not automatically build a static lib if we build a DLL.
18334	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18335	  enable_shared_with_static_runtimes_CXX=yes
18336	  # Don't use ranlib
18337	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
18338	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18339	    lt_tool_outputfile="@TOOL_OUTPUT@"~
18340	    case $lt_outputfile in
18341	      *.exe|*.EXE) ;;
18342	      *)
18343		lt_outputfile="$lt_outputfile.exe"
18344		lt_tool_outputfile="$lt_tool_outputfile.exe"
18345		;;
18346	    esac~
18347	    func_to_tool_file "$lt_outputfile"~
18348	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18349	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18350	      $RM "$lt_outputfile.manifest";
18351	    fi'
18352	  ;;
18353	*)
18354	  # g++
18355	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18356	  # as there is no search path for DLLs.
18357	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18358	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18359	  allow_undefined_flag_CXX=unsupported
18360	  always_export_symbols_CXX=no
18361	  enable_shared_with_static_runtimes_CXX=yes
18362
18363	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18364	    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'
18365	    # If the export-symbols file already is a .def file (1st line
18366	    # is EXPORTS), use it as is; otherwise, prepend...
18367	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18368	      cp $export_symbols $output_objdir/$soname.def;
18369	    else
18370	      echo EXPORTS > $output_objdir/$soname.def;
18371	      cat $export_symbols >> $output_objdir/$soname.def;
18372	    fi~
18373	    $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'
18374	  else
18375	    ld_shlibs_CXX=no
18376	  fi
18377	  ;;
18378	esac
18379	;;
18380      darwin* | rhapsody*)
18381
18382
18383  archive_cmds_need_lc_CXX=no
18384  hardcode_direct_CXX=no
18385  hardcode_automatic_CXX=yes
18386  hardcode_shlibpath_var_CXX=unsupported
18387  if test "$lt_cv_ld_force_load" = "yes"; then
18388    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\"`'
18389
18390  else
18391    whole_archive_flag_spec_CXX=''
18392  fi
18393  link_all_deplibs_CXX=yes
18394  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18395  case $cc_basename in
18396     ifort*) _lt_dar_can_shared=yes ;;
18397     *) _lt_dar_can_shared=$GCC ;;
18398  esac
18399  if test "$_lt_dar_can_shared" = "yes"; then
18400    output_verbose_link_cmd=func_echo_all
18401    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}"
18402    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18403    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}"
18404    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}"
18405       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18406      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}"
18407      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}"
18408    fi
18409
18410  else
18411  ld_shlibs_CXX=no
18412  fi
18413
18414	;;
18415
18416      dgux*)
18417        case $cc_basename in
18418          ec++*)
18419	    # FIXME: insert proper C++ library support
18420	    ld_shlibs_CXX=no
18421	    ;;
18422          ghcx*)
18423	    # Green Hills C++ Compiler
18424	    # FIXME: insert proper C++ library support
18425	    ld_shlibs_CXX=no
18426	    ;;
18427          *)
18428	    # FIXME: insert proper C++ library support
18429	    ld_shlibs_CXX=no
18430	    ;;
18431        esac
18432        ;;
18433
18434      freebsd2.*)
18435        # C++ shared libraries reported to be fairly broken before
18436	# switch to ELF
18437        ld_shlibs_CXX=no
18438        ;;
18439
18440      freebsd-elf*)
18441        archive_cmds_need_lc_CXX=no
18442        ;;
18443
18444      freebsd* | dragonfly*)
18445        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18446        # conventions
18447        ld_shlibs_CXX=yes
18448        ;;
18449
18450      gnu*)
18451        ;;
18452
18453      haiku*)
18454        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18455        link_all_deplibs_CXX=yes
18456        ;;
18457
18458      hpux9*)
18459        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18460        hardcode_libdir_separator_CXX=:
18461        export_dynamic_flag_spec_CXX='${wl}-E'
18462        hardcode_direct_CXX=yes
18463        hardcode_minus_L_CXX=yes # Not in the search PATH,
18464				             # but as the default
18465				             # location of the library.
18466
18467        case $cc_basename in
18468          CC*)
18469            # FIXME: insert proper C++ library support
18470            ld_shlibs_CXX=no
18471            ;;
18472          aCC*)
18473            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'
18474            # Commands to make compiler produce verbose output that lists
18475            # what "hidden" libraries, object files and flags are used when
18476            # linking a shared library.
18477            #
18478            # There doesn't appear to be a way to prevent this compiler from
18479            # explicitly linking system object files so we need to strip them
18480            # from the output so that they don't get included in the library
18481            # dependencies.
18482            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"'
18483            ;;
18484          *)
18485            if test "$GXX" = yes; then
18486              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'
18487            else
18488              # FIXME: insert proper C++ library support
18489              ld_shlibs_CXX=no
18490            fi
18491            ;;
18492        esac
18493        ;;
18494
18495      hpux10*|hpux11*)
18496        if test $with_gnu_ld = no; then
18497	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18498	  hardcode_libdir_separator_CXX=:
18499
18500          case $host_cpu in
18501            hppa*64*|ia64*)
18502              ;;
18503            *)
18504	      export_dynamic_flag_spec_CXX='${wl}-E'
18505              ;;
18506          esac
18507        fi
18508        case $host_cpu in
18509          hppa*64*|ia64*)
18510            hardcode_direct_CXX=no
18511            hardcode_shlibpath_var_CXX=no
18512            ;;
18513          *)
18514            hardcode_direct_CXX=yes
18515            hardcode_direct_absolute_CXX=yes
18516            hardcode_minus_L_CXX=yes # Not in the search PATH,
18517					         # but as the default
18518					         # location of the library.
18519            ;;
18520        esac
18521
18522        case $cc_basename in
18523          CC*)
18524	    # FIXME: insert proper C++ library support
18525	    ld_shlibs_CXX=no
18526	    ;;
18527          aCC*)
18528	    case $host_cpu in
18529	      hppa*64*)
18530	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18531	        ;;
18532	      ia64*)
18533	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18534	        ;;
18535	      *)
18536	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18537	        ;;
18538	    esac
18539	    # Commands to make compiler produce verbose output that lists
18540	    # what "hidden" libraries, object files and flags are used when
18541	    # linking a shared library.
18542	    #
18543	    # There doesn't appear to be a way to prevent this compiler from
18544	    # explicitly linking system object files so we need to strip them
18545	    # from the output so that they don't get included in the library
18546	    # dependencies.
18547	    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"'
18548	    ;;
18549          *)
18550	    if test "$GXX" = yes; then
18551	      if test $with_gnu_ld = no; then
18552	        case $host_cpu in
18553	          hppa*64*)
18554	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18555	            ;;
18556	          ia64*)
18557	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18558	            ;;
18559	          *)
18560	            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'
18561	            ;;
18562	        esac
18563	      fi
18564	    else
18565	      # FIXME: insert proper C++ library support
18566	      ld_shlibs_CXX=no
18567	    fi
18568	    ;;
18569        esac
18570        ;;
18571
18572      interix[3-9]*)
18573	hardcode_direct_CXX=no
18574	hardcode_shlibpath_var_CXX=no
18575	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18576	export_dynamic_flag_spec_CXX='${wl}-E'
18577	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18578	# Instead, shared libraries are loaded at an image base (0x10000000 by
18579	# default) and relocated if they conflict, which is a slow very memory
18580	# consuming and fragmenting process.  To avoid this, we pick a random,
18581	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18582	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18583	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'
18584	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'
18585	;;
18586      irix5* | irix6*)
18587        case $cc_basename in
18588          CC*)
18589	    # SGI C++
18590	    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'
18591
18592	    # Archives containing C++ object files must be created using
18593	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18594	    # necessary to make sure instantiated templates are included
18595	    # in the archive.
18596	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18597	    ;;
18598          *)
18599	    if test "$GXX" = yes; then
18600	      if test "$with_gnu_ld" = no; then
18601	        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'
18602	      else
18603	        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'
18604	      fi
18605	    fi
18606	    link_all_deplibs_CXX=yes
18607	    ;;
18608        esac
18609        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18610        hardcode_libdir_separator_CXX=:
18611        inherit_rpath_CXX=yes
18612        ;;
18613
18614      linux* | k*bsd*-gnu | kopensolaris*-gnu)
18615        case $cc_basename in
18616          KCC*)
18617	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18618
18619	    # KCC will only create a shared library if the output file
18620	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18621	    # to its proper name (with version) after linking.
18622	    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'
18623	    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'
18624	    # Commands to make compiler produce verbose output that lists
18625	    # what "hidden" libraries, object files and flags are used when
18626	    # linking a shared library.
18627	    #
18628	    # There doesn't appear to be a way to prevent this compiler from
18629	    # explicitly linking system object files so we need to strip them
18630	    # from the output so that they don't get included in the library
18631	    # dependencies.
18632	    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"'
18633
18634	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18635	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18636
18637	    # Archives containing C++ object files must be created using
18638	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18639	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18640	    ;;
18641	  icpc* | ecpc* )
18642	    # Intel C++
18643	    with_gnu_ld=yes
18644	    # version 8.0 and above of icpc choke on multiply defined symbols
18645	    # if we add $predep_objects and $postdep_objects, however 7.1 and
18646	    # earlier do not add the objects themselves.
18647	    case `$CC -V 2>&1` in
18648	      *"Version 7."*)
18649	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18650		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'
18651		;;
18652	      *)  # Version 8.0 or newer
18653	        tmp_idyn=
18654	        case $host_cpu in
18655		  ia64*) tmp_idyn=' -i_dynamic';;
18656		esac
18657	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18658		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'
18659		;;
18660	    esac
18661	    archive_cmds_need_lc_CXX=no
18662	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18663	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18664	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18665	    ;;
18666          pgCC* | pgcpp*)
18667            # Portland Group C++ compiler
18668	    case `$CC -V` in
18669	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18670	      prelink_cmds_CXX='tpldir=Template.dir~
18671		rm -rf $tpldir~
18672		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18673		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18674	      old_archive_cmds_CXX='tpldir=Template.dir~
18675		rm -rf $tpldir~
18676		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18677		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18678		$RANLIB $oldlib'
18679	      archive_cmds_CXX='tpldir=Template.dir~
18680		rm -rf $tpldir~
18681		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18682		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18683	      archive_expsym_cmds_CXX='tpldir=Template.dir~
18684		rm -rf $tpldir~
18685		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18686		$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'
18687	      ;;
18688	    *) # Version 6 and above use weak symbols
18689	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18690	      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'
18691	      ;;
18692	    esac
18693
18694	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18695	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18696	    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'
18697            ;;
18698	  cxx*)
18699	    # Compaq C++
18700	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18701	    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'
18702
18703	    runpath_var=LD_RUN_PATH
18704	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18705	    hardcode_libdir_separator_CXX=:
18706
18707	    # Commands to make compiler produce verbose output that lists
18708	    # what "hidden" libraries, object files and flags are used when
18709	    # linking a shared library.
18710	    #
18711	    # There doesn't appear to be a way to prevent this compiler from
18712	    # explicitly linking system object files so we need to strip them
18713	    # from the output so that they don't get included in the library
18714	    # dependencies.
18715	    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'
18716	    ;;
18717	  xl* | mpixl* | bgxl*)
18718	    # IBM XL 8.0 on PPC, with GNU ld
18719	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18720	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18721	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722	    if test "x$supports_anon_versioning" = xyes; then
18723	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18724		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18725		echo "local: *; };" >> $output_objdir/$libname.ver~
18726		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18727	    fi
18728	    ;;
18729	  *)
18730	    case `$CC -V 2>&1 | sed 5q` in
18731	    *Sun\ C*)
18732	      # Sun C++ 5.9
18733	      no_undefined_flag_CXX=' -zdefs'
18734	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18735	      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'
18736	      hardcode_libdir_flag_spec_CXX='-R$libdir'
18737	      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'
18738	      compiler_needs_object_CXX=yes
18739
18740	      # Not sure whether something based on
18741	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18742	      # would be better.
18743	      output_verbose_link_cmd='func_echo_all'
18744
18745	      # Archives containing C++ object files must be created using
18746	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18747	      # necessary to make sure instantiated templates are included
18748	      # in the archive.
18749	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18750	      ;;
18751	    esac
18752	    ;;
18753	esac
18754	;;
18755
18756      lynxos*)
18757        # FIXME: insert proper C++ library support
18758	ld_shlibs_CXX=no
18759	;;
18760
18761      m88k*)
18762        # FIXME: insert proper C++ library support
18763        ld_shlibs_CXX=no
18764	;;
18765
18766      mvs*)
18767        case $cc_basename in
18768          cxx*)
18769	    # FIXME: insert proper C++ library support
18770	    ld_shlibs_CXX=no
18771	    ;;
18772	  *)
18773	    # FIXME: insert proper C++ library support
18774	    ld_shlibs_CXX=no
18775	    ;;
18776	esac
18777	;;
18778
18779      netbsd*)
18780        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18781	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18782	  wlarc=
18783	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18784	  hardcode_direct_CXX=yes
18785	  hardcode_shlibpath_var_CXX=no
18786	fi
18787	# Workaround some broken pre-1.5 toolchains
18788	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18789	;;
18790
18791      *nto* | *qnx*)
18792        ld_shlibs_CXX=yes
18793	;;
18794
18795      openbsd2*)
18796        # C++ shared libraries are fairly broken
18797	ld_shlibs_CXX=no
18798	;;
18799
18800      openbsd*)
18801	if test -f /usr/libexec/ld.so; then
18802	  hardcode_direct_CXX=yes
18803	  hardcode_shlibpath_var_CXX=no
18804	  hardcode_direct_absolute_CXX=yes
18805	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18806	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18807	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18808	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18809	    export_dynamic_flag_spec_CXX='${wl}-E'
18810	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18811	  fi
18812	  output_verbose_link_cmd=func_echo_all
18813	else
18814	  ld_shlibs_CXX=no
18815	fi
18816	;;
18817
18818      osf3* | osf4* | osf5*)
18819        case $cc_basename in
18820          KCC*)
18821	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18822
18823	    # KCC will only create a shared library if the output file
18824	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18825	    # to its proper name (with version) after linking.
18826	    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'
18827
18828	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18829	    hardcode_libdir_separator_CXX=:
18830
18831	    # Archives containing C++ object files must be created using
18832	    # the KAI C++ compiler.
18833	    case $host in
18834	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18835	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18836	    esac
18837	    ;;
18838          RCC*)
18839	    # Rational C++ 2.4.1
18840	    # FIXME: insert proper C++ library support
18841	    ld_shlibs_CXX=no
18842	    ;;
18843          cxx*)
18844	    case $host in
18845	      osf3*)
18846	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18847	        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'
18848	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18849		;;
18850	      *)
18851	        allow_undefined_flag_CXX=' -expect_unresolved \*'
18852	        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'
18853	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18854	          echo "-hidden">> $lib.exp~
18855	          $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~
18856	          $RM $lib.exp'
18857	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18858		;;
18859	    esac
18860
18861	    hardcode_libdir_separator_CXX=:
18862
18863	    # Commands to make compiler produce verbose output that lists
18864	    # what "hidden" libraries, object files and flags are used when
18865	    # linking a shared library.
18866	    #
18867	    # There doesn't appear to be a way to prevent this compiler from
18868	    # explicitly linking system object files so we need to strip them
18869	    # from the output so that they don't get included in the library
18870	    # dependencies.
18871	    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"'
18872	    ;;
18873	  *)
18874	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18875	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18876	      case $host in
18877	        osf3*)
18878	          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'
18879		  ;;
18880	        *)
18881	          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'
18882		  ;;
18883	      esac
18884
18885	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18886	      hardcode_libdir_separator_CXX=:
18887
18888	      # Commands to make compiler produce verbose output that lists
18889	      # what "hidden" libraries, object files and flags are used when
18890	      # linking a shared library.
18891	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18892
18893	    else
18894	      # FIXME: insert proper C++ library support
18895	      ld_shlibs_CXX=no
18896	    fi
18897	    ;;
18898        esac
18899        ;;
18900
18901      psos*)
18902        # FIXME: insert proper C++ library support
18903        ld_shlibs_CXX=no
18904        ;;
18905
18906      sunos4*)
18907        case $cc_basename in
18908          CC*)
18909	    # Sun C++ 4.x
18910	    # FIXME: insert proper C++ library support
18911	    ld_shlibs_CXX=no
18912	    ;;
18913          lcc*)
18914	    # Lucid
18915	    # FIXME: insert proper C++ library support
18916	    ld_shlibs_CXX=no
18917	    ;;
18918          *)
18919	    # FIXME: insert proper C++ library support
18920	    ld_shlibs_CXX=no
18921	    ;;
18922        esac
18923        ;;
18924
18925      solaris*)
18926        case $cc_basename in
18927          CC* | sunCC*)
18928	    # Sun C++ 4.2, 5.x and Centerline C++
18929            archive_cmds_need_lc_CXX=yes
18930	    no_undefined_flag_CXX=' -zdefs'
18931	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18932	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18933	      $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'
18934
18935	    hardcode_libdir_flag_spec_CXX='-R$libdir'
18936	    hardcode_shlibpath_var_CXX=no
18937	    case $host_os in
18938	      solaris2.[0-5] | solaris2.[0-5].*) ;;
18939	      *)
18940		# The compiler driver will combine and reorder linker options,
18941		# but understands `-z linker_flag'.
18942	        # Supported since Solaris 2.6 (maybe 2.5.1?)
18943		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18944	        ;;
18945	    esac
18946	    link_all_deplibs_CXX=yes
18947
18948	    output_verbose_link_cmd='func_echo_all'
18949
18950	    # Archives containing C++ object files must be created using
18951	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18952	    # necessary to make sure instantiated templates are included
18953	    # in the archive.
18954	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18955	    ;;
18956          gcx*)
18957	    # Green Hills C++ Compiler
18958	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18959
18960	    # The C++ compiler must be used to create the archive.
18961	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18962	    ;;
18963          *)
18964	    # GNU C++ compiler with Solaris linker
18965	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18966	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18967	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18968	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18969	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18970		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18971
18972	        # Commands to make compiler produce verbose output that lists
18973	        # what "hidden" libraries, object files and flags are used when
18974	        # linking a shared library.
18975	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18976	      else
18977	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
18978	        # platform.
18979	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18980	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18981		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18982
18983	        # Commands to make compiler produce verbose output that lists
18984	        # what "hidden" libraries, object files and flags are used when
18985	        # linking a shared library.
18986	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18987	      fi
18988
18989	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18990	      case $host_os in
18991		solaris2.[0-5] | solaris2.[0-5].*) ;;
18992		*)
18993		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18994		  ;;
18995	      esac
18996	    fi
18997	    ;;
18998        esac
18999        ;;
19000
19001    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19002      no_undefined_flag_CXX='${wl}-z,text'
19003      archive_cmds_need_lc_CXX=no
19004      hardcode_shlibpath_var_CXX=no
19005      runpath_var='LD_RUN_PATH'
19006
19007      case $cc_basename in
19008        CC*)
19009	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19010	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19011	  ;;
19012	*)
19013	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19014	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19015	  ;;
19016      esac
19017      ;;
19018
19019      sysv5* | sco3.2v5* | sco5v6*)
19020	# Note: We can NOT use -z defs as we might desire, because we do not
19021	# link with -lc, and that would cause any symbols used from libc to
19022	# always be unresolved, which means just about no library would
19023	# ever link correctly.  If we're not using GNU ld we use -z text
19024	# though, which does catch some bad symbols but isn't as heavy-handed
19025	# as -z defs.
19026	no_undefined_flag_CXX='${wl}-z,text'
19027	allow_undefined_flag_CXX='${wl}-z,nodefs'
19028	archive_cmds_need_lc_CXX=no
19029	hardcode_shlibpath_var_CXX=no
19030	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19031	hardcode_libdir_separator_CXX=':'
19032	link_all_deplibs_CXX=yes
19033	export_dynamic_flag_spec_CXX='${wl}-Bexport'
19034	runpath_var='LD_RUN_PATH'
19035
19036	case $cc_basename in
19037          CC*)
19038	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19039	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19040	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19041	      '"$old_archive_cmds_CXX"
19042	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19043	      '"$reload_cmds_CXX"
19044	    ;;
19045	  *)
19046	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19047	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19048	    ;;
19049	esac
19050      ;;
19051
19052      tandem*)
19053        case $cc_basename in
19054          NCC*)
19055	    # NonStop-UX NCC 3.20
19056	    # FIXME: insert proper C++ library support
19057	    ld_shlibs_CXX=no
19058	    ;;
19059          *)
19060	    # FIXME: insert proper C++ library support
19061	    ld_shlibs_CXX=no
19062	    ;;
19063        esac
19064        ;;
19065
19066      vxworks*)
19067        # FIXME: insert proper C++ library support
19068        ld_shlibs_CXX=no
19069        ;;
19070
19071      *)
19072        # FIXME: insert proper C++ library support
19073        ld_shlibs_CXX=no
19074        ;;
19075    esac
19076
19077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19078$as_echo "$ld_shlibs_CXX" >&6; }
19079    test "$ld_shlibs_CXX" = no && can_build_shared=no
19080
19081    GCC_CXX="$GXX"
19082    LD_CXX="$LD"
19083
19084    ## CAVEAT EMPTOR:
19085    ## There is no encapsulation within the following macros, do not change
19086    ## the running order or otherwise move them around unless you know exactly
19087    ## what you are doing...
19088    # Dependencies to place before and after the object being linked:
19089predep_objects_CXX=
19090postdep_objects_CXX=
19091predeps_CXX=
19092postdeps_CXX=
19093compiler_lib_search_path_CXX=
19094
19095cat > conftest.$ac_ext <<_LT_EOF
19096class Foo
19097{
19098public:
19099  Foo (void) { a = 0; }
19100private:
19101  int a;
19102};
19103_LT_EOF
19104
19105
19106_lt_libdeps_save_CFLAGS=$CFLAGS
19107case "$CC $CFLAGS " in #(
19108*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19109*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19110*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19111esac
19112
19113if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19114  (eval $ac_compile) 2>&5
19115  ac_status=$?
19116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19117  test $ac_status = 0; }; then
19118  # Parse the compiler output and extract the necessary
19119  # objects, libraries and library flags.
19120
19121  # Sentinel used to keep track of whether or not we are before
19122  # the conftest object file.
19123  pre_test_object_deps_done=no
19124
19125  for p in `eval "$output_verbose_link_cmd"`; do
19126    case ${prev}${p} in
19127
19128    -L* | -R* | -l*)
19129       # Some compilers place space between "-{L,R}" and the path.
19130       # Remove the space.
19131       if test $p = "-L" ||
19132          test $p = "-R"; then
19133	 prev=$p
19134	 continue
19135       fi
19136
19137       # Expand the sysroot to ease extracting the directories later.
19138       if test -z "$prev"; then
19139         case $p in
19140         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19141         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19142         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19143         esac
19144       fi
19145       case $p in
19146       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19147       esac
19148       if test "$pre_test_object_deps_done" = no; then
19149	 case ${prev} in
19150	 -L | -R)
19151	   # Internal compiler library paths should come after those
19152	   # provided the user.  The postdeps already come after the
19153	   # user supplied libs so there is no need to process them.
19154	   if test -z "$compiler_lib_search_path_CXX"; then
19155	     compiler_lib_search_path_CXX="${prev}${p}"
19156	   else
19157	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19158	   fi
19159	   ;;
19160	 # The "-l" case would never come before the object being
19161	 # linked, so don't bother handling this case.
19162	 esac
19163       else
19164	 if test -z "$postdeps_CXX"; then
19165	   postdeps_CXX="${prev}${p}"
19166	 else
19167	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19168	 fi
19169       fi
19170       prev=
19171       ;;
19172
19173    *.lto.$objext) ;; # Ignore GCC LTO objects
19174    *.$objext)
19175       # This assumes that the test object file only shows up
19176       # once in the compiler output.
19177       if test "$p" = "conftest.$objext"; then
19178	 pre_test_object_deps_done=yes
19179	 continue
19180       fi
19181
19182       if test "$pre_test_object_deps_done" = no; then
19183	 if test -z "$predep_objects_CXX"; then
19184	   predep_objects_CXX="$p"
19185	 else
19186	   predep_objects_CXX="$predep_objects_CXX $p"
19187	 fi
19188       else
19189	 if test -z "$postdep_objects_CXX"; then
19190	   postdep_objects_CXX="$p"
19191	 else
19192	   postdep_objects_CXX="$postdep_objects_CXX $p"
19193	 fi
19194       fi
19195       ;;
19196
19197    *) ;; # Ignore the rest.
19198
19199    esac
19200  done
19201
19202  # Clean up.
19203  rm -f a.out a.exe
19204else
19205  echo "libtool.m4: error: problem compiling CXX test program"
19206fi
19207
19208$RM -f confest.$objext
19209CFLAGS=$_lt_libdeps_save_CFLAGS
19210
19211# PORTME: override above test on systems where it is broken
19212case $host_os in
19213interix[3-9]*)
19214  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19215  # hack all around it, let's just trust "g++" to DTRT.
19216  predep_objects_CXX=
19217  postdep_objects_CXX=
19218  postdeps_CXX=
19219  ;;
19220
19221linux*)
19222  case `$CC -V 2>&1 | sed 5q` in
19223  *Sun\ C*)
19224    # Sun C++ 5.9
19225
19226    # The more standards-conforming stlport4 library is
19227    # incompatible with the Cstd library. Avoid specifying
19228    # it if it's in CXXFLAGS. Ignore libCrun as
19229    # -library=stlport4 depends on it.
19230    case " $CXX $CXXFLAGS " in
19231    *" -library=stlport4 "*)
19232      solaris_use_stlport4=yes
19233      ;;
19234    esac
19235
19236    if test "$solaris_use_stlport4" != yes; then
19237      postdeps_CXX='-library=Cstd -library=Crun'
19238    fi
19239    ;;
19240  esac
19241  ;;
19242
19243solaris*)
19244  case $cc_basename in
19245  CC* | sunCC*)
19246    # The more standards-conforming stlport4 library is
19247    # incompatible with the Cstd library. Avoid specifying
19248    # it if it's in CXXFLAGS. Ignore libCrun as
19249    # -library=stlport4 depends on it.
19250    case " $CXX $CXXFLAGS " in
19251    *" -library=stlport4 "*)
19252      solaris_use_stlport4=yes
19253      ;;
19254    esac
19255
19256    # Adding this requires a known-good setup of shared libraries for
19257    # Sun compiler versions before 5.6, else PIC objects from an old
19258    # archive will be linked into the output, leading to subtle bugs.
19259    if test "$solaris_use_stlport4" != yes; then
19260      postdeps_CXX='-library=Cstd -library=Crun'
19261    fi
19262    ;;
19263  esac
19264  ;;
19265esac
19266
19267
19268case " $postdeps_CXX " in
19269*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19270esac
19271 compiler_lib_search_dirs_CXX=
19272if test -n "${compiler_lib_search_path_CXX}"; then
19273 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19274fi
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306    lt_prog_compiler_wl_CXX=
19307lt_prog_compiler_pic_CXX=
19308lt_prog_compiler_static_CXX=
19309
19310
19311  # C++ specific cases for pic, static, wl, etc.
19312  if test "$GXX" = yes; then
19313    lt_prog_compiler_wl_CXX='-Wl,'
19314    lt_prog_compiler_static_CXX='-static'
19315
19316    case $host_os in
19317    aix*)
19318      # All AIX code is PIC.
19319      if test "$host_cpu" = ia64; then
19320	# AIX 5 now supports IA64 processor
19321	lt_prog_compiler_static_CXX='-Bstatic'
19322      fi
19323      ;;
19324
19325    amigaos*)
19326      case $host_cpu in
19327      powerpc)
19328            # see comment about AmigaOS4 .so support
19329            lt_prog_compiler_pic_CXX='-fPIC'
19330        ;;
19331      m68k)
19332            # FIXME: we need at least 68020 code to build shared libraries, but
19333            # adding the `-m68020' flag to GCC prevents building anything better,
19334            # like `-m68040'.
19335            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19336        ;;
19337      esac
19338      ;;
19339
19340    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19341      # PIC is the default for these OSes.
19342      ;;
19343    mingw* | cygwin* | os2* | pw32* | cegcc*)
19344      # This hack is so that the source file can tell whether it is being
19345      # built for inclusion in a dll (and should export symbols for example).
19346      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19347      # (--disable-auto-import) libraries
19348      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19349      ;;
19350    darwin* | rhapsody*)
19351      # PIC is the default on this platform
19352      # Common symbols not allowed in MH_DYLIB files
19353      lt_prog_compiler_pic_CXX='-fno-common'
19354      ;;
19355    *djgpp*)
19356      # DJGPP does not support shared libraries at all
19357      lt_prog_compiler_pic_CXX=
19358      ;;
19359    haiku*)
19360      # PIC is the default for Haiku.
19361      # The "-static" flag exists, but is broken.
19362      lt_prog_compiler_static_CXX=
19363      ;;
19364    interix[3-9]*)
19365      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19366      # Instead, we relocate shared libraries at runtime.
19367      ;;
19368    sysv4*MP*)
19369      if test -d /usr/nec; then
19370	lt_prog_compiler_pic_CXX=-Kconform_pic
19371      fi
19372      ;;
19373    hpux*)
19374      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19375      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19376      # sets the default TLS model and affects inlining.
19377      case $host_cpu in
19378      hppa*64*)
19379	;;
19380      *)
19381	lt_prog_compiler_pic_CXX='-fPIC'
19382	;;
19383      esac
19384      ;;
19385    *qnx* | *nto*)
19386      # QNX uses GNU C++, but need to define -shared option too, otherwise
19387      # it will coredump.
19388      lt_prog_compiler_pic_CXX='-fPIC -shared'
19389      ;;
19390    *)
19391      lt_prog_compiler_pic_CXX='-fPIC'
19392      ;;
19393    esac
19394  else
19395    case $host_os in
19396      aix[4-9]*)
19397	# All AIX code is PIC.
19398	if test "$host_cpu" = ia64; then
19399	  # AIX 5 now supports IA64 processor
19400	  lt_prog_compiler_static_CXX='-Bstatic'
19401	else
19402	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19403	fi
19404	;;
19405      chorus*)
19406	case $cc_basename in
19407	cxch68*)
19408	  # Green Hills C++ Compiler
19409	  # _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"
19410	  ;;
19411	esac
19412	;;
19413      mingw* | cygwin* | os2* | pw32* | cegcc*)
19414	# This hack is so that the source file can tell whether it is being
19415	# built for inclusion in a dll (and should export symbols for example).
19416	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19417	;;
19418      dgux*)
19419	case $cc_basename in
19420	  ec++*)
19421	    lt_prog_compiler_pic_CXX='-KPIC'
19422	    ;;
19423	  ghcx*)
19424	    # Green Hills C++ Compiler
19425	    lt_prog_compiler_pic_CXX='-pic'
19426	    ;;
19427	  *)
19428	    ;;
19429	esac
19430	;;
19431      freebsd* | dragonfly*)
19432	# FreeBSD uses GNU C++
19433	;;
19434      hpux9* | hpux10* | hpux11*)
19435	case $cc_basename in
19436	  CC*)
19437	    lt_prog_compiler_wl_CXX='-Wl,'
19438	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19439	    if test "$host_cpu" != ia64; then
19440	      lt_prog_compiler_pic_CXX='+Z'
19441	    fi
19442	    ;;
19443	  aCC*)
19444	    lt_prog_compiler_wl_CXX='-Wl,'
19445	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19446	    case $host_cpu in
19447	    hppa*64*|ia64*)
19448	      # +Z the default
19449	      ;;
19450	    *)
19451	      lt_prog_compiler_pic_CXX='+Z'
19452	      ;;
19453	    esac
19454	    ;;
19455	  *)
19456	    ;;
19457	esac
19458	;;
19459      interix*)
19460	# This is c89, which is MS Visual C++ (no shared libs)
19461	# Anyone wants to do a port?
19462	;;
19463      irix5* | irix6* | nonstopux*)
19464	case $cc_basename in
19465	  CC*)
19466	    lt_prog_compiler_wl_CXX='-Wl,'
19467	    lt_prog_compiler_static_CXX='-non_shared'
19468	    # CC pic flag -KPIC is the default.
19469	    ;;
19470	  *)
19471	    ;;
19472	esac
19473	;;
19474      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19475	case $cc_basename in
19476	  KCC*)
19477	    # KAI C++ Compiler
19478	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19479	    lt_prog_compiler_pic_CXX='-fPIC'
19480	    ;;
19481	  ecpc* )
19482	    # old Intel C++ for x86_64 which still supported -KPIC.
19483	    lt_prog_compiler_wl_CXX='-Wl,'
19484	    lt_prog_compiler_pic_CXX='-KPIC'
19485	    lt_prog_compiler_static_CXX='-static'
19486	    ;;
19487	  icpc* )
19488	    # Intel C++, used to be incompatible with GCC.
19489	    # ICC 10 doesn't accept -KPIC any more.
19490	    lt_prog_compiler_wl_CXX='-Wl,'
19491	    lt_prog_compiler_pic_CXX='-fPIC'
19492	    lt_prog_compiler_static_CXX='-static'
19493	    ;;
19494	  pgCC* | pgcpp*)
19495	    # Portland Group C++ compiler
19496	    lt_prog_compiler_wl_CXX='-Wl,'
19497	    lt_prog_compiler_pic_CXX='-fpic'
19498	    lt_prog_compiler_static_CXX='-Bstatic'
19499	    ;;
19500	  cxx*)
19501	    # Compaq C++
19502	    # Make sure the PIC flag is empty.  It appears that all Alpha
19503	    # Linux and Compaq Tru64 Unix objects are PIC.
19504	    lt_prog_compiler_pic_CXX=
19505	    lt_prog_compiler_static_CXX='-non_shared'
19506	    ;;
19507	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19508	    # IBM XL 8.0, 9.0 on PPC and BlueGene
19509	    lt_prog_compiler_wl_CXX='-Wl,'
19510	    lt_prog_compiler_pic_CXX='-qpic'
19511	    lt_prog_compiler_static_CXX='-qstaticlink'
19512	    ;;
19513	  *)
19514	    case `$CC -V 2>&1 | sed 5q` in
19515	    *Sun\ C*)
19516	      # Sun C++ 5.9
19517	      lt_prog_compiler_pic_CXX='-KPIC'
19518	      lt_prog_compiler_static_CXX='-Bstatic'
19519	      lt_prog_compiler_wl_CXX='-Qoption ld '
19520	      ;;
19521	    esac
19522	    ;;
19523	esac
19524	;;
19525      lynxos*)
19526	;;
19527      m88k*)
19528	;;
19529      mvs*)
19530	case $cc_basename in
19531	  cxx*)
19532	    lt_prog_compiler_pic_CXX='-W c,exportall'
19533	    ;;
19534	  *)
19535	    ;;
19536	esac
19537	;;
19538      netbsd*)
19539	;;
19540      *qnx* | *nto*)
19541        # QNX uses GNU C++, but need to define -shared option too, otherwise
19542        # it will coredump.
19543        lt_prog_compiler_pic_CXX='-fPIC -shared'
19544        ;;
19545      osf3* | osf4* | osf5*)
19546	case $cc_basename in
19547	  KCC*)
19548	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19549	    ;;
19550	  RCC*)
19551	    # Rational C++ 2.4.1
19552	    lt_prog_compiler_pic_CXX='-pic'
19553	    ;;
19554	  cxx*)
19555	    # Digital/Compaq C++
19556	    lt_prog_compiler_wl_CXX='-Wl,'
19557	    # Make sure the PIC flag is empty.  It appears that all Alpha
19558	    # Linux and Compaq Tru64 Unix objects are PIC.
19559	    lt_prog_compiler_pic_CXX=
19560	    lt_prog_compiler_static_CXX='-non_shared'
19561	    ;;
19562	  *)
19563	    ;;
19564	esac
19565	;;
19566      psos*)
19567	;;
19568      solaris*)
19569	case $cc_basename in
19570	  CC* | sunCC*)
19571	    # Sun C++ 4.2, 5.x and Centerline C++
19572	    lt_prog_compiler_pic_CXX='-KPIC'
19573	    lt_prog_compiler_static_CXX='-Bstatic'
19574	    lt_prog_compiler_wl_CXX='-Qoption ld '
19575	    ;;
19576	  gcx*)
19577	    # Green Hills C++ Compiler
19578	    lt_prog_compiler_pic_CXX='-PIC'
19579	    ;;
19580	  *)
19581	    ;;
19582	esac
19583	;;
19584      sunos4*)
19585	case $cc_basename in
19586	  CC*)
19587	    # Sun C++ 4.x
19588	    lt_prog_compiler_pic_CXX='-pic'
19589	    lt_prog_compiler_static_CXX='-Bstatic'
19590	    ;;
19591	  lcc*)
19592	    # Lucid
19593	    lt_prog_compiler_pic_CXX='-pic'
19594	    ;;
19595	  *)
19596	    ;;
19597	esac
19598	;;
19599      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19600	case $cc_basename in
19601	  CC*)
19602	    lt_prog_compiler_wl_CXX='-Wl,'
19603	    lt_prog_compiler_pic_CXX='-KPIC'
19604	    lt_prog_compiler_static_CXX='-Bstatic'
19605	    ;;
19606	esac
19607	;;
19608      tandem*)
19609	case $cc_basename in
19610	  NCC*)
19611	    # NonStop-UX NCC 3.20
19612	    lt_prog_compiler_pic_CXX='-KPIC'
19613	    ;;
19614	  *)
19615	    ;;
19616	esac
19617	;;
19618      vxworks*)
19619	;;
19620      *)
19621	lt_prog_compiler_can_build_shared_CXX=no
19622	;;
19623    esac
19624  fi
19625
19626case $host_os in
19627  # For platforms which do not support PIC, -DPIC is meaningless:
19628  *djgpp*)
19629    lt_prog_compiler_pic_CXX=
19630    ;;
19631  *)
19632    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19633    ;;
19634esac
19635
19636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19637$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19638if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19639  $as_echo_n "(cached) " >&6
19640else
19641  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19642fi
19643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19644$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19645lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19646
19647#
19648# Check to make sure the PIC flag actually works.
19649#
19650if test -n "$lt_prog_compiler_pic_CXX"; then
19651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19652$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19653if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
19654  $as_echo_n "(cached) " >&6
19655else
19656  lt_cv_prog_compiler_pic_works_CXX=no
19657   ac_outfile=conftest.$ac_objext
19658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19659   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19660   # Insert the option either (1) after the last *FLAGS variable, or
19661   # (2) before a word containing "conftest.", or (3) at the end.
19662   # Note that $ac_compile itself does not contain backslashes and begins
19663   # with a dollar sign (not a hyphen), so the echo should work correctly.
19664   # The option is referenced via a variable to avoid confusing sed.
19665   lt_compile=`echo "$ac_compile" | $SED \
19666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19668   -e 's:$: $lt_compiler_flag:'`
19669   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19670   (eval "$lt_compile" 2>conftest.err)
19671   ac_status=$?
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   if (exit $ac_status) && test -s "$ac_outfile"; then
19675     # The compiler can only warn and ignore the option if not recognized
19676     # So say no if there are warnings other than the usual output.
19677     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19678     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19679     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19680       lt_cv_prog_compiler_pic_works_CXX=yes
19681     fi
19682   fi
19683   $RM conftest*
19684
19685fi
19686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19687$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19688
19689if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19690    case $lt_prog_compiler_pic_CXX in
19691     "" | " "*) ;;
19692     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19693     esac
19694else
19695    lt_prog_compiler_pic_CXX=
19696     lt_prog_compiler_can_build_shared_CXX=no
19697fi
19698
19699fi
19700
19701
19702
19703
19704
19705#
19706# Check to make sure the static flag actually works.
19707#
19708wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19710$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19711if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
19712  $as_echo_n "(cached) " >&6
19713else
19714  lt_cv_prog_compiler_static_works_CXX=no
19715   save_LDFLAGS="$LDFLAGS"
19716   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19717   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19718   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19719     # The linker can only warn and ignore the option if not recognized
19720     # So say no if there are warnings
19721     if test -s conftest.err; then
19722       # Append any errors to the config.log.
19723       cat conftest.err 1>&5
19724       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19725       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19726       if diff conftest.exp conftest.er2 >/dev/null; then
19727         lt_cv_prog_compiler_static_works_CXX=yes
19728       fi
19729     else
19730       lt_cv_prog_compiler_static_works_CXX=yes
19731     fi
19732   fi
19733   $RM -r conftest*
19734   LDFLAGS="$save_LDFLAGS"
19735
19736fi
19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19738$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19739
19740if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19741    :
19742else
19743    lt_prog_compiler_static_CXX=
19744fi
19745
19746
19747
19748
19749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19750$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19751if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19752  $as_echo_n "(cached) " >&6
19753else
19754  lt_cv_prog_compiler_c_o_CXX=no
19755   $RM -r conftest 2>/dev/null
19756   mkdir conftest
19757   cd conftest
19758   mkdir out
19759   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19760
19761   lt_compiler_flag="-o out/conftest2.$ac_objext"
19762   # Insert the option either (1) after the last *FLAGS variable, or
19763   # (2) before a word containing "conftest.", or (3) at the end.
19764   # Note that $ac_compile itself does not contain backslashes and begins
19765   # with a dollar sign (not a hyphen), so the echo should work correctly.
19766   lt_compile=`echo "$ac_compile" | $SED \
19767   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19768   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19769   -e 's:$: $lt_compiler_flag:'`
19770   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19771   (eval "$lt_compile" 2>out/conftest.err)
19772   ac_status=$?
19773   cat out/conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19776   then
19777     # The compiler can only warn and ignore the option if not recognized
19778     # So say no if there are warnings
19779     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19780     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19781     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19782       lt_cv_prog_compiler_c_o_CXX=yes
19783     fi
19784   fi
19785   chmod u+w . 2>&5
19786   $RM conftest*
19787   # SGI C++ compiler will create directory out/ii_files/ for
19788   # template instantiation
19789   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19790   $RM out/* && rmdir out
19791   cd ..
19792   $RM -r conftest
19793   $RM conftest*
19794
19795fi
19796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19797$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19798
19799
19800
19801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19802$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19803if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19804  $as_echo_n "(cached) " >&6
19805else
19806  lt_cv_prog_compiler_c_o_CXX=no
19807   $RM -r conftest 2>/dev/null
19808   mkdir conftest
19809   cd conftest
19810   mkdir out
19811   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19812
19813   lt_compiler_flag="-o out/conftest2.$ac_objext"
19814   # Insert the option either (1) after the last *FLAGS variable, or
19815   # (2) before a word containing "conftest.", or (3) at the end.
19816   # Note that $ac_compile itself does not contain backslashes and begins
19817   # with a dollar sign (not a hyphen), so the echo should work correctly.
19818   lt_compile=`echo "$ac_compile" | $SED \
19819   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19821   -e 's:$: $lt_compiler_flag:'`
19822   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19823   (eval "$lt_compile" 2>out/conftest.err)
19824   ac_status=$?
19825   cat out/conftest.err >&5
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19828   then
19829     # The compiler can only warn and ignore the option if not recognized
19830     # So say no if there are warnings
19831     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19832     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19833     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19834       lt_cv_prog_compiler_c_o_CXX=yes
19835     fi
19836   fi
19837   chmod u+w . 2>&5
19838   $RM conftest*
19839   # SGI C++ compiler will create directory out/ii_files/ for
19840   # template instantiation
19841   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19842   $RM out/* && rmdir out
19843   cd ..
19844   $RM -r conftest
19845   $RM conftest*
19846
19847fi
19848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19849$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19850
19851
19852
19853
19854hard_links="nottested"
19855if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19856  # do not overwrite the value of need_locks provided by the user
19857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19858$as_echo_n "checking if we can lock with hard links... " >&6; }
19859  hard_links=yes
19860  $RM conftest*
19861  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19862  touch conftest.a
19863  ln conftest.a conftest.b 2>&5 || hard_links=no
19864  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19866$as_echo "$hard_links" >&6; }
19867  if test "$hard_links" = no; then
19868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19869$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19870    need_locks=warn
19871  fi
19872else
19873  need_locks=no
19874fi
19875
19876
19877
19878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19879$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19880
19881  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19882  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19883  case $host_os in
19884  aix[4-9]*)
19885    # If we're using GNU nm, then we don't want the "-C" option.
19886    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19887    # Also, AIX nm treats weak defined symbols like other global defined
19888    # symbols, whereas GNU nm marks them as "W".
19889    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19890      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'
19891    else
19892      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'
19893    fi
19894    ;;
19895  pw32*)
19896    export_symbols_cmds_CXX="$ltdll_cmds"
19897    ;;
19898  cygwin* | mingw* | cegcc*)
19899    case $cc_basename in
19900    cl*)
19901      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19902      ;;
19903    *)
19904      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'
19905      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19906      ;;
19907    esac
19908    ;;
19909  *)
19910    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19911    ;;
19912  esac
19913
19914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19915$as_echo "$ld_shlibs_CXX" >&6; }
19916test "$ld_shlibs_CXX" = no && can_build_shared=no
19917
19918with_gnu_ld_CXX=$with_gnu_ld
19919
19920
19921
19922
19923
19924
19925#
19926# Do we need to explicitly link libc?
19927#
19928case "x$archive_cmds_need_lc_CXX" in
19929x|xyes)
19930  # Assume -lc should be added
19931  archive_cmds_need_lc_CXX=yes
19932
19933  if test "$enable_shared" = yes && test "$GCC" = yes; then
19934    case $archive_cmds_CXX in
19935    *'~'*)
19936      # FIXME: we may have to deal with multi-command sequences.
19937      ;;
19938    '$CC '*)
19939      # Test whether the compiler implicitly links with -lc since on some
19940      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19941      # to ld, don't add -lc before -lgcc.
19942      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19943$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19944if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19945  $as_echo_n "(cached) " >&6
19946else
19947  $RM conftest*
19948	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19949
19950	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19951  (eval $ac_compile) 2>&5
19952  ac_status=$?
19953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19954  test $ac_status = 0; } 2>conftest.err; then
19955	  soname=conftest
19956	  lib=conftest
19957	  libobjs=conftest.$ac_objext
19958	  deplibs=
19959	  wl=$lt_prog_compiler_wl_CXX
19960	  pic_flag=$lt_prog_compiler_pic_CXX
19961	  compiler_flags=-v
19962	  linker_flags=-v
19963	  verstring=
19964	  output_objdir=.
19965	  libname=conftest
19966	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19967	  allow_undefined_flag_CXX=
19968	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19969  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19970  ac_status=$?
19971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19972  test $ac_status = 0; }
19973	  then
19974	    lt_cv_archive_cmds_need_lc_CXX=no
19975	  else
19976	    lt_cv_archive_cmds_need_lc_CXX=yes
19977	  fi
19978	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19979	else
19980	  cat conftest.err 1>&5
19981	fi
19982	$RM conftest*
19983
19984fi
19985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19986$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19987      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19988      ;;
19989    esac
19990  fi
19991  ;;
19992esac
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20056$as_echo_n "checking dynamic linker characteristics... " >&6; }
20057
20058library_names_spec=
20059libname_spec='lib$name'
20060soname_spec=
20061shrext_cmds=".so"
20062postinstall_cmds=
20063postuninstall_cmds=
20064finish_cmds=
20065finish_eval=
20066shlibpath_var=
20067shlibpath_overrides_runpath=unknown
20068version_type=none
20069dynamic_linker="$host_os ld.so"
20070sys_lib_dlsearch_path_spec="/lib /usr/lib"
20071need_lib_prefix=unknown
20072hardcode_into_libs=no
20073
20074# when you set need_version to no, make sure it does not cause -set_version
20075# flags to be left without arguments
20076need_version=unknown
20077
20078case $host_os in
20079aix3*)
20080  version_type=linux # correct to gnu/linux during the next big refactor
20081  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20082  shlibpath_var=LIBPATH
20083
20084  # AIX 3 has no versioning support, so we append a major version to the name.
20085  soname_spec='${libname}${release}${shared_ext}$major'
20086  ;;
20087
20088aix[4-9]*)
20089  version_type=linux # correct to gnu/linux during the next big refactor
20090  need_lib_prefix=no
20091  need_version=no
20092  hardcode_into_libs=yes
20093  if test "$host_cpu" = ia64; then
20094    # AIX 5 supports IA64
20095    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20096    shlibpath_var=LD_LIBRARY_PATH
20097  else
20098    # With GCC up to 2.95.x, collect2 would create an import file
20099    # for dependence libraries.  The import file would start with
20100    # the line `#! .'.  This would cause the generated library to
20101    # depend on `.', always an invalid library.  This was fixed in
20102    # development snapshots of GCC prior to 3.0.
20103    case $host_os in
20104      aix4 | aix4.[01] | aix4.[01].*)
20105      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20106	   echo ' yes '
20107	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20108	:
20109      else
20110	can_build_shared=no
20111      fi
20112      ;;
20113    esac
20114    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20115    # soname into executable. Probably we can add versioning support to
20116    # collect2, so additional links can be useful in future.
20117    if test "$aix_use_runtimelinking" = yes; then
20118      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20119      # instead of lib<name>.a to let people know that these are not
20120      # typical AIX shared libraries.
20121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122    else
20123      # We preserve .a as extension for shared libraries through AIX4.2
20124      # and later when we are not doing run time linking.
20125      library_names_spec='${libname}${release}.a $libname.a'
20126      soname_spec='${libname}${release}${shared_ext}$major'
20127    fi
20128    shlibpath_var=LIBPATH
20129  fi
20130  ;;
20131
20132amigaos*)
20133  case $host_cpu in
20134  powerpc)
20135    # Since July 2007 AmigaOS4 officially supports .so libraries.
20136    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138    ;;
20139  m68k)
20140    library_names_spec='$libname.ixlibrary $libname.a'
20141    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20142    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'
20143    ;;
20144  esac
20145  ;;
20146
20147beos*)
20148  library_names_spec='${libname}${shared_ext}'
20149  dynamic_linker="$host_os ld.so"
20150  shlibpath_var=LIBRARY_PATH
20151  ;;
20152
20153bsdi[45]*)
20154  version_type=linux # correct to gnu/linux during the next big refactor
20155  need_version=no
20156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157  soname_spec='${libname}${release}${shared_ext}$major'
20158  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20159  shlibpath_var=LD_LIBRARY_PATH
20160  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20161  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20162  # the default ld.so.conf also contains /usr/contrib/lib and
20163  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20164  # libtool to hard-code these into programs
20165  ;;
20166
20167cygwin* | mingw* | pw32* | cegcc*)
20168  version_type=windows
20169  shrext_cmds=".dll"
20170  need_version=no
20171  need_lib_prefix=no
20172
20173  case $GCC,$cc_basename in
20174  yes,*)
20175    # gcc
20176    library_names_spec='$libname.dll.a'
20177    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20178    postinstall_cmds='base_file=`basename \${file}`~
20179      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20180      dldir=$destdir/`dirname \$dlpath`~
20181      test -d \$dldir || mkdir -p \$dldir~
20182      $install_prog $dir/$dlname \$dldir/$dlname~
20183      chmod a+x \$dldir/$dlname~
20184      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20185        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20186      fi'
20187    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20188      dlpath=$dir/\$dldll~
20189       $RM \$dlpath'
20190    shlibpath_overrides_runpath=yes
20191
20192    case $host_os in
20193    cygwin*)
20194      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20195      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20196
20197      ;;
20198    mingw* | cegcc*)
20199      # MinGW DLLs use traditional 'lib' prefix
20200      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20201      ;;
20202    pw32*)
20203      # pw32 DLLs use 'pw' prefix rather than 'lib'
20204      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20205      ;;
20206    esac
20207    dynamic_linker='Win32 ld.exe'
20208    ;;
20209
20210  *,cl*)
20211    # Native MSVC
20212    libname_spec='$name'
20213    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20214    library_names_spec='${libname}.dll.lib'
20215
20216    case $build_os in
20217    mingw*)
20218      sys_lib_search_path_spec=
20219      lt_save_ifs=$IFS
20220      IFS=';'
20221      for lt_path in $LIB
20222      do
20223        IFS=$lt_save_ifs
20224        # Let DOS variable expansion print the short 8.3 style file name.
20225        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20226        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20227      done
20228      IFS=$lt_save_ifs
20229      # Convert to MSYS style.
20230      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20231      ;;
20232    cygwin*)
20233      # Convert to unix form, then to dos form, then back to unix form
20234      # but this time dos style (no spaces!) so that the unix form looks
20235      # like /cygdrive/c/PROGRA~1:/cygdr...
20236      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20237      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20238      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20239      ;;
20240    *)
20241      sys_lib_search_path_spec="$LIB"
20242      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20243        # It is most probably a Windows format PATH.
20244        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20245      else
20246        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20247      fi
20248      # FIXME: find the short name or the path components, as spaces are
20249      # common. (e.g. "Program Files" -> "PROGRA~1")
20250      ;;
20251    esac
20252
20253    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20254    postinstall_cmds='base_file=`basename \${file}`~
20255      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20256      dldir=$destdir/`dirname \$dlpath`~
20257      test -d \$dldir || mkdir -p \$dldir~
20258      $install_prog $dir/$dlname \$dldir/$dlname'
20259    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20260      dlpath=$dir/\$dldll~
20261       $RM \$dlpath'
20262    shlibpath_overrides_runpath=yes
20263    dynamic_linker='Win32 link.exe'
20264    ;;
20265
20266  *)
20267    # Assume MSVC wrapper
20268    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20269    dynamic_linker='Win32 ld.exe'
20270    ;;
20271  esac
20272  # FIXME: first we should search . and the directory the executable is in
20273  shlibpath_var=PATH
20274  ;;
20275
20276darwin* | rhapsody*)
20277  dynamic_linker="$host_os dyld"
20278  version_type=darwin
20279  need_lib_prefix=no
20280  need_version=no
20281  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20282  soname_spec='${libname}${release}${major}$shared_ext'
20283  shlibpath_overrides_runpath=yes
20284  shlibpath_var=DYLD_LIBRARY_PATH
20285  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20286
20287  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20288  ;;
20289
20290dgux*)
20291  version_type=linux # correct to gnu/linux during the next big refactor
20292  need_lib_prefix=no
20293  need_version=no
20294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20295  soname_spec='${libname}${release}${shared_ext}$major'
20296  shlibpath_var=LD_LIBRARY_PATH
20297  ;;
20298
20299freebsd* | dragonfly*)
20300  # DragonFly does not have aout.  When/if they implement a new
20301  # versioning mechanism, adjust this.
20302  if test -x /usr/bin/objformat; then
20303    objformat=`/usr/bin/objformat`
20304  else
20305    case $host_os in
20306    freebsd[23].*) objformat=aout ;;
20307    *) objformat=elf ;;
20308    esac
20309  fi
20310  version_type=freebsd-$objformat
20311  case $version_type in
20312    freebsd-elf*)
20313      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20314      need_version=no
20315      need_lib_prefix=no
20316      ;;
20317    freebsd-*)
20318      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20319      need_version=yes
20320      ;;
20321  esac
20322  shlibpath_var=LD_LIBRARY_PATH
20323  case $host_os in
20324  freebsd2.*)
20325    shlibpath_overrides_runpath=yes
20326    ;;
20327  freebsd3.[01]* | freebsdelf3.[01]*)
20328    shlibpath_overrides_runpath=yes
20329    hardcode_into_libs=yes
20330    ;;
20331  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20332  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20333    shlibpath_overrides_runpath=no
20334    hardcode_into_libs=yes
20335    ;;
20336  *) # from 4.6 on, and DragonFly
20337    shlibpath_overrides_runpath=yes
20338    hardcode_into_libs=yes
20339    ;;
20340  esac
20341  ;;
20342
20343gnu*)
20344  version_type=linux # correct to gnu/linux during the next big refactor
20345  need_lib_prefix=no
20346  need_version=no
20347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20348  soname_spec='${libname}${release}${shared_ext}$major'
20349  shlibpath_var=LD_LIBRARY_PATH
20350  shlibpath_overrides_runpath=no
20351  hardcode_into_libs=yes
20352  ;;
20353
20354haiku*)
20355  version_type=linux # correct to gnu/linux during the next big refactor
20356  need_lib_prefix=no
20357  need_version=no
20358  dynamic_linker="$host_os runtime_loader"
20359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20360  soname_spec='${libname}${release}${shared_ext}$major'
20361  shlibpath_var=LIBRARY_PATH
20362  shlibpath_overrides_runpath=yes
20363  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20364  hardcode_into_libs=yes
20365  ;;
20366
20367hpux9* | hpux10* | hpux11*)
20368  # Give a soname corresponding to the major version so that dld.sl refuses to
20369  # link against other versions.
20370  version_type=sunos
20371  need_lib_prefix=no
20372  need_version=no
20373  case $host_cpu in
20374  ia64*)
20375    shrext_cmds='.so'
20376    hardcode_into_libs=yes
20377    dynamic_linker="$host_os dld.so"
20378    shlibpath_var=LD_LIBRARY_PATH
20379    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20380    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381    soname_spec='${libname}${release}${shared_ext}$major'
20382    if test "X$HPUX_IA64_MODE" = X32; then
20383      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20384    else
20385      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20386    fi
20387    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20388    ;;
20389  hppa*64*)
20390    shrext_cmds='.sl'
20391    hardcode_into_libs=yes
20392    dynamic_linker="$host_os dld.sl"
20393    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20394    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20395    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396    soname_spec='${libname}${release}${shared_ext}$major'
20397    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20398    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20399    ;;
20400  *)
20401    shrext_cmds='.sl'
20402    dynamic_linker="$host_os dld.sl"
20403    shlibpath_var=SHLIB_PATH
20404    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406    soname_spec='${libname}${release}${shared_ext}$major'
20407    ;;
20408  esac
20409  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20410  postinstall_cmds='chmod 555 $lib'
20411  # or fails outright, so override atomically:
20412  install_override_mode=555
20413  ;;
20414
20415interix[3-9]*)
20416  version_type=linux # correct to gnu/linux during the next big refactor
20417  need_lib_prefix=no
20418  need_version=no
20419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20420  soname_spec='${libname}${release}${shared_ext}$major'
20421  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20422  shlibpath_var=LD_LIBRARY_PATH
20423  shlibpath_overrides_runpath=no
20424  hardcode_into_libs=yes
20425  ;;
20426
20427irix5* | irix6* | nonstopux*)
20428  case $host_os in
20429    nonstopux*) version_type=nonstopux ;;
20430    *)
20431	if test "$lt_cv_prog_gnu_ld" = yes; then
20432		version_type=linux # correct to gnu/linux during the next big refactor
20433	else
20434		version_type=irix
20435	fi ;;
20436  esac
20437  need_lib_prefix=no
20438  need_version=no
20439  soname_spec='${libname}${release}${shared_ext}$major'
20440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20441  case $host_os in
20442  irix5* | nonstopux*)
20443    libsuff= shlibsuff=
20444    ;;
20445  *)
20446    case $LD in # libtool.m4 will add one of these switches to LD
20447    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20448      libsuff= shlibsuff= libmagic=32-bit;;
20449    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20450      libsuff=32 shlibsuff=N32 libmagic=N32;;
20451    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20452      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20453    *) libsuff= shlibsuff= libmagic=never-match;;
20454    esac
20455    ;;
20456  esac
20457  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20458  shlibpath_overrides_runpath=no
20459  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20460  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20461  hardcode_into_libs=yes
20462  ;;
20463
20464# No shared lib support for Linux oldld, aout, or coff.
20465linux*oldld* | linux*aout* | linux*coff*)
20466  dynamic_linker=no
20467  ;;
20468
20469# This must be glibc/ELF.
20470linux* | k*bsd*-gnu | kopensolaris*-gnu)
20471  version_type=linux # correct to gnu/linux during the next big refactor
20472  need_lib_prefix=no
20473  need_version=no
20474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475  soname_spec='${libname}${release}${shared_ext}$major'
20476  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20477  shlibpath_var=LD_LIBRARY_PATH
20478  shlibpath_overrides_runpath=no
20479
20480  # Some binutils ld are patched to set DT_RUNPATH
20481  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20482  $as_echo_n "(cached) " >&6
20483else
20484  lt_cv_shlibpath_overrides_runpath=no
20485    save_LDFLAGS=$LDFLAGS
20486    save_libdir=$libdir
20487    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20488	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20489    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490/* end confdefs.h.  */
20491
20492int
20493main ()
20494{
20495
20496  ;
20497  return 0;
20498}
20499_ACEOF
20500if ac_fn_cxx_try_link "$LINENO"; then :
20501  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20502  lt_cv_shlibpath_overrides_runpath=yes
20503fi
20504fi
20505rm -f core conftest.err conftest.$ac_objext \
20506    conftest$ac_exeext conftest.$ac_ext
20507    LDFLAGS=$save_LDFLAGS
20508    libdir=$save_libdir
20509
20510fi
20511
20512  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20513
20514  # This implies no fast_install, which is unacceptable.
20515  # Some rework will be needed to allow for fast_install
20516  # before this can be enabled.
20517  hardcode_into_libs=yes
20518
20519  # Add ABI-specific directories to the system library path.
20520  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20521
20522  # Append ld.so.conf contents to the search path
20523  if test -f /etc/ld.so.conf; then
20524    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' ' '`
20525    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20526
20527  fi
20528
20529  # We used to test for /lib/ld.so.1 and disable shared libraries on
20530  # powerpc, because MkLinux only supported shared libraries with the
20531  # GNU dynamic linker.  Since this was broken with cross compilers,
20532  # most powerpc-linux boxes support dynamic linking these days and
20533  # people can always --disable-shared, the test was removed, and we
20534  # assume the GNU/Linux dynamic linker is in use.
20535  dynamic_linker='GNU/Linux ld.so'
20536  ;;
20537
20538netbsd*)
20539  version_type=sunos
20540  need_lib_prefix=no
20541  need_version=no
20542  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20544    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20545    dynamic_linker='NetBSD (a.out) ld.so'
20546  else
20547    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20548    soname_spec='${libname}${release}${shared_ext}$major'
20549    dynamic_linker='NetBSD ld.elf_so'
20550  fi
20551  shlibpath_var=LD_LIBRARY_PATH
20552  shlibpath_overrides_runpath=yes
20553  hardcode_into_libs=yes
20554  ;;
20555
20556newsos6)
20557  version_type=linux # correct to gnu/linux during the next big refactor
20558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559  shlibpath_var=LD_LIBRARY_PATH
20560  shlibpath_overrides_runpath=yes
20561  ;;
20562
20563*nto* | *qnx*)
20564  version_type=qnx
20565  need_lib_prefix=no
20566  need_version=no
20567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568  soname_spec='${libname}${release}${shared_ext}$major'
20569  shlibpath_var=LD_LIBRARY_PATH
20570  shlibpath_overrides_runpath=no
20571  hardcode_into_libs=yes
20572  dynamic_linker='ldqnx.so'
20573  ;;
20574
20575openbsd*)
20576  version_type=sunos
20577  sys_lib_dlsearch_path_spec="/usr/lib"
20578  need_lib_prefix=no
20579  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20580  case $host_os in
20581    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
20582    *)				need_version=no  ;;
20583  esac
20584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20585  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20586  shlibpath_var=LD_LIBRARY_PATH
20587  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20588    case $host_os in
20589      openbsd2.[89] | openbsd2.[89].*)
20590	shlibpath_overrides_runpath=no
20591	;;
20592      *)
20593	shlibpath_overrides_runpath=yes
20594	;;
20595      esac
20596  else
20597    shlibpath_overrides_runpath=yes
20598  fi
20599  ;;
20600
20601os2*)
20602  libname_spec='$name'
20603  shrext_cmds=".dll"
20604  need_lib_prefix=no
20605  library_names_spec='$libname${shared_ext} $libname.a'
20606  dynamic_linker='OS/2 ld.exe'
20607  shlibpath_var=LIBPATH
20608  ;;
20609
20610osf3* | osf4* | osf5*)
20611  version_type=osf
20612  need_lib_prefix=no
20613  need_version=no
20614  soname_spec='${libname}${release}${shared_ext}$major'
20615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616  shlibpath_var=LD_LIBRARY_PATH
20617  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20618  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20619  ;;
20620
20621rdos*)
20622  dynamic_linker=no
20623  ;;
20624
20625solaris*)
20626  version_type=linux # correct to gnu/linux during the next big refactor
20627  need_lib_prefix=no
20628  need_version=no
20629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20630  soname_spec='${libname}${release}${shared_ext}$major'
20631  shlibpath_var=LD_LIBRARY_PATH
20632  shlibpath_overrides_runpath=yes
20633  hardcode_into_libs=yes
20634  # ldd complains unless libraries are executable
20635  postinstall_cmds='chmod +x $lib'
20636  ;;
20637
20638sunos4*)
20639  version_type=sunos
20640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20641  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20642  shlibpath_var=LD_LIBRARY_PATH
20643  shlibpath_overrides_runpath=yes
20644  if test "$with_gnu_ld" = yes; then
20645    need_lib_prefix=no
20646  fi
20647  need_version=yes
20648  ;;
20649
20650sysv4 | sysv4.3*)
20651  version_type=linux # correct to gnu/linux during the next big refactor
20652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20653  soname_spec='${libname}${release}${shared_ext}$major'
20654  shlibpath_var=LD_LIBRARY_PATH
20655  case $host_vendor in
20656    sni)
20657      shlibpath_overrides_runpath=no
20658      need_lib_prefix=no
20659      runpath_var=LD_RUN_PATH
20660      ;;
20661    siemens)
20662      need_lib_prefix=no
20663      ;;
20664    motorola)
20665      need_lib_prefix=no
20666      need_version=no
20667      shlibpath_overrides_runpath=no
20668      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20669      ;;
20670  esac
20671  ;;
20672
20673sysv4*MP*)
20674  if test -d /usr/nec ;then
20675    version_type=linux # correct to gnu/linux during the next big refactor
20676    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20677    soname_spec='$libname${shared_ext}.$major'
20678    shlibpath_var=LD_LIBRARY_PATH
20679  fi
20680  ;;
20681
20682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20683  version_type=freebsd-elf
20684  need_lib_prefix=no
20685  need_version=no
20686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20687  soname_spec='${libname}${release}${shared_ext}$major'
20688  shlibpath_var=LD_LIBRARY_PATH
20689  shlibpath_overrides_runpath=yes
20690  hardcode_into_libs=yes
20691  if test "$with_gnu_ld" = yes; then
20692    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20693  else
20694    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20695    case $host_os in
20696      sco3.2v5*)
20697        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20698	;;
20699    esac
20700  fi
20701  sys_lib_dlsearch_path_spec='/usr/lib'
20702  ;;
20703
20704tpf*)
20705  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20706  version_type=linux # correct to gnu/linux during the next big refactor
20707  need_lib_prefix=no
20708  need_version=no
20709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710  shlibpath_var=LD_LIBRARY_PATH
20711  shlibpath_overrides_runpath=no
20712  hardcode_into_libs=yes
20713  ;;
20714
20715uts4*)
20716  version_type=linux # correct to gnu/linux during the next big refactor
20717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20718  soname_spec='${libname}${release}${shared_ext}$major'
20719  shlibpath_var=LD_LIBRARY_PATH
20720  ;;
20721
20722*)
20723  dynamic_linker=no
20724  ;;
20725esac
20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20727$as_echo "$dynamic_linker" >&6; }
20728test "$dynamic_linker" = no && can_build_shared=no
20729
20730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20731if test "$GCC" = yes; then
20732  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20733fi
20734
20735if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20736  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20737fi
20738if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20739  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20740fi
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20780$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20781hardcode_action_CXX=
20782if test -n "$hardcode_libdir_flag_spec_CXX" ||
20783   test -n "$runpath_var_CXX" ||
20784   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20785
20786  # We can hardcode non-existent directories.
20787  if test "$hardcode_direct_CXX" != no &&
20788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20789     # have to relink, otherwise we might link with an installed library
20790     # when we should be linking with a yet-to-be-installed one
20791     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20792     test "$hardcode_minus_L_CXX" != no; then
20793    # Linking always hardcodes the temporary library directory.
20794    hardcode_action_CXX=relink
20795  else
20796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20797    hardcode_action_CXX=immediate
20798  fi
20799else
20800  # We cannot hardcode anything, or else we can only hardcode existing
20801  # directories.
20802  hardcode_action_CXX=unsupported
20803fi
20804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20805$as_echo "$hardcode_action_CXX" >&6; }
20806
20807if test "$hardcode_action_CXX" = relink ||
20808   test "$inherit_rpath_CXX" = yes; then
20809  # Fast installation is not supported
20810  enable_fast_install=no
20811elif test "$shlibpath_overrides_runpath" = yes ||
20812     test "$enable_shared" = no; then
20813  # Fast installation is not necessary
20814  enable_fast_install=needless
20815fi
20816
20817
20818
20819
20820
20821
20822
20823  fi # test -n "$compiler"
20824
20825  CC=$lt_save_CC
20826  CFLAGS=$lt_save_CFLAGS
20827  LDCXX=$LD
20828  LD=$lt_save_LD
20829  GCC=$lt_save_GCC
20830  with_gnu_ld=$lt_save_with_gnu_ld
20831  lt_cv_path_LDCXX=$lt_cv_path_LD
20832  lt_cv_path_LD=$lt_save_path_LD
20833  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20834  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20835fi # test "$_lt_caught_CXX_error" != yes
20836
20837ac_ext=c
20838ac_cpp='$CPP $CPPFLAGS'
20839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857        ac_config_commands="$ac_config_commands libtool"
20858
20859
20860
20861
20862# Only expand once:
20863
20864
20865
20866
20867
20868# Check to see if building shared libraries
20869libtool_build_shared_libs='no'
20870if test "$enable_shared" = 'yes'; then
20871    libtool_build_shared_libs='yes'
20872fi
20873
20874# Check to see if building static libraries
20875libtool_build_static_libs='no'
20876if test "$enable_static" = 'yes'; then
20877    libtool_build_static_libs='yes'
20878fi
20879
20880 if test "${libtool_build_shared_libs}" = 'yes'; then
20881  WITH_SHARED_LIBS_TRUE=
20882  WITH_SHARED_LIBS_FALSE='#'
20883else
20884  WITH_SHARED_LIBS_TRUE='#'
20885  WITH_SHARED_LIBS_FALSE=
20886fi
20887
20888#
20889# Enable support for building loadable modules
20890#
20891build_modules='no'
20892
20893# Check whether --with-modules was given.
20894if test "${with_modules+set}" = set; then :
20895  withval=$with_modules; with_modules=$withval
20896else
20897  with_modules='no'
20898fi
20899
20900
20901# Only allow building loadable modules if we are building shared libraries
20902if test "$with_modules" != 'no' ; then
20903    if test "$libtool_build_shared_libs" = 'no'; then
20904        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20905$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20906    build_modules='no'
20907  else
20908    build_modules='yes'
20909  fi
20910fi
20911if test "$build_modules" != 'no' ; then
20912
20913$as_echo "#define BUILD_MODULES 1" >>confdefs.h
20914
20915    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
20916fi
20917 if test "$build_modules" != 'no'; then
20918  WITH_MODULES_TRUE=
20919  WITH_MODULES_FALSE='#'
20920else
20921  WITH_MODULES_TRUE='#'
20922  WITH_MODULES_FALSE=
20923fi
20924
20925
20926# Enable build using delegate libraries built in subdirectories rather than installed
20927# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20928# Check whether --enable-delegate-build was given.
20929if test "${enable_delegate_build+set}" = set; then :
20930  enableval=$enable_delegate_build; enable_delegate_build=$enableval
20931else
20932  enable_delegate_build='no'
20933fi
20934
20935
20936# Check whether --enable-deprecated was given.
20937if test "${enable_deprecated+set}" = set; then :
20938  enableval=$enable_deprecated; enable_deprecated=$enableval
20939else
20940  enable_deprecated='no'
20941fi
20942
20943
20944if test "$enable_deprecated" = 'yes'; then
20945
20946$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20947
20948else
20949  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20950fi
20951
20952# Build a version of ImageMagick which operates uninstalled.
20953# Used to build distributions located via MAGICK_HOME / executable path
20954# Check whether --enable-installed was given.
20955if test "${enable_installed+set}" = set; then :
20956  enableval=$enable_installed; enable_installed=$enableval
20957else
20958  enable_installed='yes'
20959fi
20960
20961
20962if test "$enable_installed" = 'yes'; then
20963
20964$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20965
20966else
20967    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20968fi
20969
20970# Permit enciphering and deciphering image pixels.
20971# Check whether --enable-cipher was given.
20972if test "${enable_cipher+set}" = set; then :
20973  enableval=$enable_cipher; enable_cipher=$enableval
20974else
20975  enable_cipher='yes'
20976fi
20977
20978
20979if test "$enable_cipher" = 'yes'; then
20980
20981$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20982
20983fi
20984
20985# Build a zero-configuration version of ImageMagick.
20986# Check whether --enable-zero-configuration was given.
20987if test "${enable_zero_configuration+set}" = set; then :
20988  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
20989else
20990  enable_zero_configuration='no'
20991fi
20992
20993
20994if test "$enable_zero_configuration" = 'yes'; then
20995
20996$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
20997
20998    MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
20999fi
21000
21001# Build a high dynamic range version of ImageMagick.
21002# Check whether --enable-hdri was given.
21003if test "${enable_hdri+set}" = set; then :
21004  enableval=$enable_hdri; enable_hdri=$enableval
21005else
21006  enable_hdri='yes'
21007fi
21008
21009
21010MAGICK_HDRI=""
21011if test "$enable_hdri" = 'yes'; then
21012    MAGICK_HDRI="HDRI"
21013    magick_hdri_enable='1';
21014    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21015else
21016    magick_hdri_enable='0'
21017fi
21018
21019cat >>confdefs.h <<_ACEOF
21020#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21021_ACEOF
21022
21023MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21024CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21025CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21026
21027# Build a version of ImageMagick with assert statements.
21028# Check whether --enable-assert was given.
21029if test "${enable_assert+set}" = set; then :
21030  enableval=$enable_assert; enable_assert=$enableval
21031else
21032  enable_assert='yes'
21033fi
21034
21035
21036if test "$enable_assert" = 'no'; then
21037
21038$as_echo "#define NDEBUG 1" >>confdefs.h
21039
21040fi
21041
21042# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21043
21044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21045$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21046    # Check whether --enable-maintainer-mode was given.
21047if test "${enable_maintainer_mode+set}" = set; then :
21048  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21049else
21050  USE_MAINTAINER_MODE=no
21051fi
21052
21053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21054$as_echo "$USE_MAINTAINER_MODE" >&6; }
21055   if test $USE_MAINTAINER_MODE = yes; then
21056  MAINTAINER_MODE_TRUE=
21057  MAINTAINER_MODE_FALSE='#'
21058else
21059  MAINTAINER_MODE_TRUE='#'
21060  MAINTAINER_MODE_FALSE=
21061fi
21062
21063  MAINT=$MAINTAINER_MODE_TRUE
21064
21065
21066
21067# Enable hugepages support
21068# Check whether --enable-hugepages was given.
21069if test "${enable_hugepages+set}" = set; then :
21070  enableval=$enable_hugepages; enable_hugepages=$enableval
21071else
21072  enable_hugepages='no'
21073fi
21074
21075
21076# Enable ccmalloc memory debugging support
21077# Check whether --enable-ccmalloc was given.
21078if test "${enable_ccmalloc+set}" = set; then :
21079  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21080else
21081  enable_ccmalloc='no'
21082fi
21083
21084
21085# Enable Electric Fence memory debugging support
21086# Check whether --enable-efence was given.
21087if test "${enable_efence+set}" = set; then :
21088  enableval=$enable_efence; enable_efence=$enableval
21089else
21090  enable_efence='no'
21091fi
21092
21093
21094# Enable prof-based profiling support
21095# Check whether --enable-prof was given.
21096if test "${enable_prof+set}" = set; then :
21097  enableval=$enable_prof; enable_prof=$enableval
21098else
21099  enable_prof='no'
21100fi
21101
21102
21103# Enable gprof-based profiling support
21104# Check whether --enable-gprof was given.
21105if test "${enable_gprof+set}" = set; then :
21106  enableval=$enable_gprof; enable_gprof=$enableval
21107else
21108  enable_gprof='no'
21109fi
21110
21111
21112# Enable gcov-based profiling support
21113# Check whether --enable-gcov was given.
21114if test "${enable_gcov+set}" = set; then :
21115  enableval=$enable_gcov; enable_gcov=$enableval
21116else
21117  enable_gcov='no'
21118fi
21119
21120
21121enable_profiling='no'
21122if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21123    enable_profiling='yes'
21124    if test "$libtool_build_shared_libs" = 'yes'; then
21125        echo "Warning: Can not profile code using shared libraries"
21126    fi
21127fi
21128
21129# Magick API method prefix
21130
21131# Check whether --with-method-prefix was given.
21132if test "${with_method_prefix+set}" = set; then :
21133  withval=$with_method_prefix; with_method_prefix=$withval
21134else
21135  with_method_prefix='no'
21136fi
21137
21138
21139if test "$with_method_prefix" != 'no'; then
21140
21141cat >>confdefs.h <<_ACEOF
21142#define NAMESPACE_PREFIX $with_method_prefix
21143_ACEOF
21144
21145    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
21146fi
21147
21148# Enable legacy support (default no)
21149# Check whether --enable-legacy-support was given.
21150if test "${enable_legacy_support+set}" = set; then :
21151  enableval=$enable_legacy_support; with_legacy_support=$enableval
21152else
21153  with_legacy_support='no'
21154fi
21155
21156 if test "$with_legacy_support" != 'no'; then
21157  LEGACY_SUPPORT_TRUE=
21158  LEGACY_SUPPORT_FALSE='#'
21159else
21160  LEGACY_SUPPORT_TRUE='#'
21161  LEGACY_SUPPORT_FALSE=
21162fi
21163
21164
21165# Number of bits in a Quantum
21166
21167# Check whether --with-quantum-depth was given.
21168if test "${with_quantum_depth+set}" = set; then :
21169  withval=$with_quantum_depth; with_quantum_depth=$withval
21170else
21171  with_quantum_depth=16
21172fi
21173
21174
21175if test "$with_quantum_depth" != '8'; then
21176    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21177fi
21178
21179case "${with_quantum_depth}" in
21180    8 ) ;;
21181    16 ) ;;
21182    32 ) ;;
21183    64 ) ;;
21184    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21185esac
21186QUANTUM_DEPTH="$with_quantum_depth"
21187
21188cat >>confdefs.h <<_ACEOF
21189#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
21190_ACEOF
21191
21192MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21193CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21194CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21195
21196# define a lib suffix for abi purpose
21197MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
21198if test "$enable_hdri" = 'yes'; then
21199  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
21200fi
21201
21202
21203# Set pixel cache threshold
21204
21205# Check whether --with-cache was given.
21206if test "${with_cache+set}" = set; then :
21207  withval=$with_cache; with_cache=$withval
21208else
21209  with_cache=''
21210fi
21211
21212
21213if test "$with_cache" != ''; then
21214
21215cat >>confdefs.h <<_ACEOF
21216#define PixelCacheThreshold $with_cache
21217_ACEOF
21218
21219    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21220fi
21221
21222# Disable/Enable support for full delegate paths
21223
21224# Check whether --with-frozenpaths was given.
21225if test "${with_frozenpaths+set}" = set; then :
21226  withval=$with_frozenpaths; with_frozenpaths=$withval
21227else
21228  with_frozenpaths='no'
21229fi
21230
21231
21232# Enable build/install of Magick++
21233
21234# Check whether --with-magick-plus-plus was given.
21235if test "${with_magick_plus_plus+set}" = set; then :
21236  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21237else
21238  with_magick_plus_plus='yes'
21239fi
21240
21241
21242# Encode the this name into the shared library.
21243
21244# Check whether --with-package-release-name was given.
21245if test "${with_package_release_name+set}" = set; then :
21246  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21247fi
21248
21249
21250
21251# Disable build/install of PerlMagick.
21252
21253# Check whether --with-perl was given.
21254if test "${with_perl+set}" = set; then :
21255  withval=$with_perl; with_perl=$withval
21256else
21257  with_perl='no'
21258fi
21259
21260
21261# Options to pass when configuring PerlMagick
21262
21263# Check whether --with-perl-options was given.
21264if test "${with_perl_options+set}" = set; then :
21265  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21266fi
21267
21268
21269
21270# Enable umem, object-caching memory allocation library.
21271
21272# Check whether --with-umem was given.
21273if test "${with_umem+set}" = set; then :
21274  withval=$with_umem; with_umem=$withval
21275else
21276  with_umem='no'
21277fi
21278
21279if test "$with_umem" != 'yes' ; then
21280    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21281fi
21282
21283#
21284# Specify path to shared libstdc++ if not in normal location
21285#
21286
21287# Check whether --with-libstdc was given.
21288if test "${with_libstdc+set}" = set; then :
21289  withval=$with_libstdc; with_libstdc=$withval
21290else
21291  with_libstdc=''
21292fi
21293
21294
21295if test "$with_libstdc" != ''; then
21296    if test -d "$with_libstdc"; then
21297        LIBSTDCLDFLAGS="-L$with_libstdc"
21298    fi
21299fi
21300
21301
21302# Does gcc required -traditional?
21303if test $ac_cv_c_compiler_gnu = yes; then
21304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21305$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21306if ${ac_cv_prog_gcc_traditional+:} false; then :
21307  $as_echo_n "(cached) " >&6
21308else
21309    ac_pattern="Autoconf.*'x'"
21310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311/* end confdefs.h.  */
21312#include <sgtty.h>
21313Autoconf TIOCGETP
21314_ACEOF
21315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21316  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21317  ac_cv_prog_gcc_traditional=yes
21318else
21319  ac_cv_prog_gcc_traditional=no
21320fi
21321rm -f conftest*
21322
21323
21324  if test $ac_cv_prog_gcc_traditional = no; then
21325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326/* end confdefs.h.  */
21327#include <termio.h>
21328Autoconf TCGETA
21329_ACEOF
21330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21331  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21332  ac_cv_prog_gcc_traditional=yes
21333fi
21334rm -f conftest*
21335
21336  fi
21337fi
21338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21339$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21340  if test $ac_cv_prog_gcc_traditional = yes; then
21341    CC="$CC -traditional"
21342  fi
21343fi
21344
21345
21346########
21347#
21348# Set defines required to build DLLs and modules using MinGW
21349#
21350########
21351# These options are set for multi-thread DLL module build
21352#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21353#  module:              _DLL
21354#  executable/Magick++: _DLL _MAGICKMOD_
21355MODULE_EXTRA_CPPFLAGS=''
21356LIBRARY_EXTRA_CPPFLAGS=''
21357if test "${native_win32_build}" = 'yes'; then
21358    if test "${libtool_build_shared_libs}" = 'yes'; then
21359        CPPFLAGS="$CPPFLAGS -D_DLL"
21360        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21361        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21362        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21363        if test "$build_modules" = 'yes'; then
21364            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21365        else
21366            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21367        fi
21368    else
21369        CPPFLAGS="$CPPFLAGS -D_LIB"
21370        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21371        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21372    fi
21373    if test "$with_threads" = 'yes'; then
21374         CPPFLAGS="$CPPFLAGS -D_MT"
21375         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21376         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21377    fi
21378fi
21379
21380
21381
21382# Check standard headers
21383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21384$as_echo_n "checking for ANSI C header files... " >&6; }
21385if ${ac_cv_header_stdc+:} false; then :
21386  $as_echo_n "(cached) " >&6
21387else
21388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21389/* end confdefs.h.  */
21390#include <stdlib.h>
21391#include <stdarg.h>
21392#include <string.h>
21393#include <float.h>
21394
21395int
21396main ()
21397{
21398
21399  ;
21400  return 0;
21401}
21402_ACEOF
21403if ac_fn_c_try_compile "$LINENO"; then :
21404  ac_cv_header_stdc=yes
21405else
21406  ac_cv_header_stdc=no
21407fi
21408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409
21410if test $ac_cv_header_stdc = yes; then
21411  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413/* end confdefs.h.  */
21414#include <string.h>
21415
21416_ACEOF
21417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21418  $EGREP "memchr" >/dev/null 2>&1; then :
21419
21420else
21421  ac_cv_header_stdc=no
21422fi
21423rm -f conftest*
21424
21425fi
21426
21427if test $ac_cv_header_stdc = yes; then
21428  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21430/* end confdefs.h.  */
21431#include <stdlib.h>
21432
21433_ACEOF
21434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21435  $EGREP "free" >/dev/null 2>&1; then :
21436
21437else
21438  ac_cv_header_stdc=no
21439fi
21440rm -f conftest*
21441
21442fi
21443
21444if test $ac_cv_header_stdc = yes; then
21445  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21446  if test "$cross_compiling" = yes; then :
21447  :
21448else
21449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21450/* end confdefs.h.  */
21451#include <ctype.h>
21452#include <stdlib.h>
21453#if ((' ' & 0x0FF) == 0x020)
21454# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21455# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21456#else
21457# define ISLOWER(c) \
21458		   (('a' <= (c) && (c) <= 'i') \
21459		     || ('j' <= (c) && (c) <= 'r') \
21460		     || ('s' <= (c) && (c) <= 'z'))
21461# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21462#endif
21463
21464#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21465int
21466main ()
21467{
21468  int i;
21469  for (i = 0; i < 256; i++)
21470    if (XOR (islower (i), ISLOWER (i))
21471	|| toupper (i) != TOUPPER (i))
21472      return 2;
21473  return 0;
21474}
21475_ACEOF
21476if ac_fn_c_try_run "$LINENO"; then :
21477
21478else
21479  ac_cv_header_stdc=no
21480fi
21481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21482  conftest.$ac_objext conftest.beam conftest.$ac_ext
21483fi
21484
21485fi
21486fi
21487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21488$as_echo "$ac_cv_header_stdc" >&6; }
21489if test $ac_cv_header_stdc = yes; then
21490
21491$as_echo "#define STDC_HEADERS 1" >>confdefs.h
21492
21493fi
21494
21495if ! test x"$ac_cv_header_stdc" = x"yes"; then
21496    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21497    header files.  Compilation cannot proceed.  Please install the ANSI C
21498    headers and rerun this script." >&5
21499$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21500    header files.  Compilation cannot proceed.  Please install the ANSI C
21501    headers and rerun this script." >&2;};
21502fi
21503
21504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21505$as_echo_n "checking whether to enable assertions... " >&6; }
21506  # Check whether --enable-assert was given.
21507if test "${enable_assert+set}" = set; then :
21508  enableval=$enable_assert; ac_enable_assert=$enableval
21509     if       test "x$enableval" = xno; then :
21510
21511$as_echo "#define NDEBUG 1" >>confdefs.h
21512
21513elif test "x$enableval" != xyes; then :
21514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21515$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21516	ac_enable_assert=yes
21517fi
21518else
21519  ac_enable_assert=yes
21520fi
21521
21522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21523$as_echo "$ac_enable_assert" >&6; }
21524
21525ac_header_dirent=no
21526for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21527  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21529$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21530if eval \${$as_ac_Header+:} false; then :
21531  $as_echo_n "(cached) " >&6
21532else
21533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534/* end confdefs.h.  */
21535#include <sys/types.h>
21536#include <$ac_hdr>
21537
21538int
21539main ()
21540{
21541if ((DIR *) 0)
21542return 0;
21543  ;
21544  return 0;
21545}
21546_ACEOF
21547if ac_fn_c_try_compile "$LINENO"; then :
21548  eval "$as_ac_Header=yes"
21549else
21550  eval "$as_ac_Header=no"
21551fi
21552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553fi
21554eval ac_res=\$$as_ac_Header
21555	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21556$as_echo "$ac_res" >&6; }
21557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21558  cat >>confdefs.h <<_ACEOF
21559#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21560_ACEOF
21561
21562ac_header_dirent=$ac_hdr; break
21563fi
21564
21565done
21566# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21567if test $ac_header_dirent = dirent.h; then
21568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21569$as_echo_n "checking for library containing opendir... " >&6; }
21570if ${ac_cv_search_opendir+:} false; then :
21571  $as_echo_n "(cached) " >&6
21572else
21573  ac_func_search_save_LIBS=$LIBS
21574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21575/* end confdefs.h.  */
21576
21577/* Override any GCC internal prototype to avoid an error.
21578   Use char because int might match the return type of a GCC
21579   builtin and then its argument prototype would still apply.  */
21580#ifdef __cplusplus
21581extern "C"
21582#endif
21583char opendir ();
21584int
21585main ()
21586{
21587return opendir ();
21588  ;
21589  return 0;
21590}
21591_ACEOF
21592for ac_lib in '' dir; do
21593  if test -z "$ac_lib"; then
21594    ac_res="none required"
21595  else
21596    ac_res=-l$ac_lib
21597    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21598  fi
21599  if ac_fn_c_try_link "$LINENO"; then :
21600  ac_cv_search_opendir=$ac_res
21601fi
21602rm -f core conftest.err conftest.$ac_objext \
21603    conftest$ac_exeext
21604  if ${ac_cv_search_opendir+:} false; then :
21605  break
21606fi
21607done
21608if ${ac_cv_search_opendir+:} false; then :
21609
21610else
21611  ac_cv_search_opendir=no
21612fi
21613rm conftest.$ac_ext
21614LIBS=$ac_func_search_save_LIBS
21615fi
21616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21617$as_echo "$ac_cv_search_opendir" >&6; }
21618ac_res=$ac_cv_search_opendir
21619if test "$ac_res" != no; then :
21620  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21621
21622fi
21623
21624else
21625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21626$as_echo_n "checking for library containing opendir... " >&6; }
21627if ${ac_cv_search_opendir+:} false; then :
21628  $as_echo_n "(cached) " >&6
21629else
21630  ac_func_search_save_LIBS=$LIBS
21631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632/* end confdefs.h.  */
21633
21634/* Override any GCC internal prototype to avoid an error.
21635   Use char because int might match the return type of a GCC
21636   builtin and then its argument prototype would still apply.  */
21637#ifdef __cplusplus
21638extern "C"
21639#endif
21640char opendir ();
21641int
21642main ()
21643{
21644return opendir ();
21645  ;
21646  return 0;
21647}
21648_ACEOF
21649for ac_lib in '' x; do
21650  if test -z "$ac_lib"; then
21651    ac_res="none required"
21652  else
21653    ac_res=-l$ac_lib
21654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21655  fi
21656  if ac_fn_c_try_link "$LINENO"; then :
21657  ac_cv_search_opendir=$ac_res
21658fi
21659rm -f core conftest.err conftest.$ac_objext \
21660    conftest$ac_exeext
21661  if ${ac_cv_search_opendir+:} false; then :
21662  break
21663fi
21664done
21665if ${ac_cv_search_opendir+:} false; then :
21666
21667else
21668  ac_cv_search_opendir=no
21669fi
21670rm conftest.$ac_ext
21671LIBS=$ac_func_search_save_LIBS
21672fi
21673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21674$as_echo "$ac_cv_search_opendir" >&6; }
21675ac_res=$ac_cv_search_opendir
21676if test "$ac_res" != no; then :
21677  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21678
21679fi
21680
21681fi
21682
21683
21684# Check additional headers
21685for 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
21686do :
21687  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21688ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21690  cat >>confdefs.h <<_ACEOF
21691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21692_ACEOF
21693
21694fi
21695
21696done
21697
21698
21699########
21700#
21701# Checks for typedefs, structures, and compiler characteristics.
21702#
21703########
21704
21705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21706$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21707if ${ac_cv_header_stdbool_h+:} false; then :
21708  $as_echo_n "(cached) " >&6
21709else
21710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21711/* end confdefs.h.  */
21712
21713             #include <stdbool.h>
21714             #ifndef bool
21715              "error: bool is not defined"
21716             #endif
21717             #ifndef false
21718              "error: false is not defined"
21719             #endif
21720             #if false
21721              "error: false is not 0"
21722             #endif
21723             #ifndef true
21724              "error: true is not defined"
21725             #endif
21726             #if true != 1
21727              "error: true is not 1"
21728             #endif
21729             #ifndef __bool_true_false_are_defined
21730              "error: __bool_true_false_are_defined is not defined"
21731             #endif
21732
21733             struct s { _Bool s: 1; _Bool t; } s;
21734
21735             char a[true == 1 ? 1 : -1];
21736             char b[false == 0 ? 1 : -1];
21737             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21738             char d[(bool) 0.5 == true ? 1 : -1];
21739             /* See body of main program for 'e'.  */
21740             char f[(_Bool) 0.0 == false ? 1 : -1];
21741             char g[true];
21742             char h[sizeof (_Bool)];
21743             char i[sizeof s.t];
21744             enum { j = false, k = true, l = false * true, m = true * 256 };
21745             /* The following fails for
21746                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21747             _Bool n[m];
21748             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21749             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21750             /* Catch a bug in an HP-UX C compiler.  See
21751                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21752                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21753              */
21754             _Bool q = true;
21755             _Bool *pq = &q;
21756
21757int
21758main ()
21759{
21760
21761             bool e = &s;
21762             *pq |= q;
21763             *pq |= ! q;
21764             /* Refer to every declared value, to avoid compiler optimizations.  */
21765             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21766                     + !m + !n + !o + !p + !q + !pq);
21767
21768  ;
21769  return 0;
21770}
21771_ACEOF
21772if ac_fn_c_try_compile "$LINENO"; then :
21773  ac_cv_header_stdbool_h=yes
21774else
21775  ac_cv_header_stdbool_h=no
21776fi
21777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778fi
21779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21780$as_echo "$ac_cv_header_stdbool_h" >&6; }
21781   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21782if test "x$ac_cv_type__Bool" = xyes; then :
21783
21784cat >>confdefs.h <<_ACEOF
21785#define HAVE__BOOL 1
21786_ACEOF
21787
21788
21789fi
21790
21791
21792if test $ac_cv_header_stdbool_h = yes; then
21793
21794$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21795
21796fi
21797
21798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21799$as_echo_n "checking for working volatile... " >&6; }
21800if ${ac_cv_c_volatile+:} false; then :
21801  $as_echo_n "(cached) " >&6
21802else
21803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804/* end confdefs.h.  */
21805
21806int
21807main ()
21808{
21809
21810volatile int x;
21811int * volatile y = (int *) 0;
21812return !x && !y;
21813  ;
21814  return 0;
21815}
21816_ACEOF
21817if ac_fn_c_try_compile "$LINENO"; then :
21818  ac_cv_c_volatile=yes
21819else
21820  ac_cv_c_volatile=no
21821fi
21822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823fi
21824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21825$as_echo "$ac_cv_c_volatile" >&6; }
21826if test $ac_cv_c_volatile = no; then
21827
21828$as_echo "#define volatile /**/" >>confdefs.h
21829
21830fi
21831
21832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21833$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21834if ${ac_cv_c_stringize+:} false; then :
21835  $as_echo_n "(cached) " >&6
21836else
21837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21838/* end confdefs.h.  */
21839#define x(y) #y
21840
21841char *s = x(teststring);
21842_ACEOF
21843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21844  $EGREP "#teststring" >/dev/null 2>&1; then :
21845  ac_cv_c_stringize=no
21846else
21847  ac_cv_c_stringize=yes
21848fi
21849rm -f conftest*
21850
21851fi
21852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21853$as_echo "$ac_cv_c_stringize" >&6; }
21854if test $ac_cv_c_stringize = yes; then
21855
21856$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21857
21858fi
21859
21860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21861$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21862if ${ac_cv_header_stat_broken+:} false; then :
21863  $as_echo_n "(cached) " >&6
21864else
21865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21866/* end confdefs.h.  */
21867#include <sys/types.h>
21868#include <sys/stat.h>
21869
21870#if defined S_ISBLK && defined S_IFDIR
21871extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21872#endif
21873
21874#if defined S_ISBLK && defined S_IFCHR
21875extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21876#endif
21877
21878#if defined S_ISLNK && defined S_IFREG
21879extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21880#endif
21881
21882#if defined S_ISSOCK && defined S_IFREG
21883extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21884#endif
21885
21886_ACEOF
21887if ac_fn_c_try_compile "$LINENO"; then :
21888  ac_cv_header_stat_broken=no
21889else
21890  ac_cv_header_stat_broken=yes
21891fi
21892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893fi
21894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21895$as_echo "$ac_cv_header_stat_broken" >&6; }
21896if test $ac_cv_header_stat_broken = yes; then
21897
21898$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21899
21900fi
21901
21902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21903$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21904if ${ac_cv_header_time+:} false; then :
21905  $as_echo_n "(cached) " >&6
21906else
21907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908/* end confdefs.h.  */
21909#include <sys/types.h>
21910#include <sys/time.h>
21911#include <time.h>
21912
21913int
21914main ()
21915{
21916if ((struct tm *) 0)
21917return 0;
21918  ;
21919  return 0;
21920}
21921_ACEOF
21922if ac_fn_c_try_compile "$LINENO"; then :
21923  ac_cv_header_time=yes
21924else
21925  ac_cv_header_time=no
21926fi
21927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928fi
21929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21930$as_echo "$ac_cv_header_time" >&6; }
21931if test $ac_cv_header_time = yes; then
21932
21933$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21934
21935fi
21936
21937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21938$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21939if ${ac_cv_struct_tm+:} false; then :
21940  $as_echo_n "(cached) " >&6
21941else
21942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943/* end confdefs.h.  */
21944#include <sys/types.h>
21945#include <time.h>
21946
21947int
21948main ()
21949{
21950struct tm tm;
21951				     int *p = &tm.tm_sec;
21952				     return !p;
21953  ;
21954  return 0;
21955}
21956_ACEOF
21957if ac_fn_c_try_compile "$LINENO"; then :
21958  ac_cv_struct_tm=time.h
21959else
21960  ac_cv_struct_tm=sys/time.h
21961fi
21962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963fi
21964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21965$as_echo "$ac_cv_struct_tm" >&6; }
21966if test $ac_cv_struct_tm = sys/time.h; then
21967
21968$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21969
21970fi
21971
21972ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21973#include <$ac_cv_struct_tm>
21974
21975"
21976if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21977
21978cat >>confdefs.h <<_ACEOF
21979#define HAVE_STRUCT_TM_TM_ZONE 1
21980_ACEOF
21981
21982
21983fi
21984
21985if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21986
21987$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21988
21989else
21990  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21991"
21992if test "x$ac_cv_have_decl_tzname" = xyes; then :
21993  ac_have_decl=1
21994else
21995  ac_have_decl=0
21996fi
21997
21998cat >>confdefs.h <<_ACEOF
21999#define HAVE_DECL_TZNAME $ac_have_decl
22000_ACEOF
22001
22002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22003$as_echo_n "checking for tzname... " >&6; }
22004if ${ac_cv_var_tzname+:} false; then :
22005  $as_echo_n "(cached) " >&6
22006else
22007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008/* end confdefs.h.  */
22009#include <time.h>
22010#if !HAVE_DECL_TZNAME
22011extern char *tzname[];
22012#endif
22013
22014int
22015main ()
22016{
22017return tzname[0][0];
22018  ;
22019  return 0;
22020}
22021_ACEOF
22022if ac_fn_c_try_link "$LINENO"; then :
22023  ac_cv_var_tzname=yes
22024else
22025  ac_cv_var_tzname=no
22026fi
22027rm -f core conftest.err conftest.$ac_objext \
22028    conftest$ac_exeext conftest.$ac_ext
22029fi
22030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22031$as_echo "$ac_cv_var_tzname" >&6; }
22032  if test $ac_cv_var_tzname = yes; then
22033
22034$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22035
22036  fi
22037fi
22038
22039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22040$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22041if ${ac_cv_sys_interpreter+:} false; then :
22042  $as_echo_n "(cached) " >&6
22043else
22044  echo '#! /bin/cat
22045exit 69
22046' >conftest
22047chmod u+x conftest
22048(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22049if test $? -ne 69; then
22050   ac_cv_sys_interpreter=yes
22051else
22052   ac_cv_sys_interpreter=no
22053fi
22054rm -f conftest
22055fi
22056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22057$as_echo "$ac_cv_sys_interpreter" >&6; }
22058interpval=$ac_cv_sys_interpreter
22059
22060
22061#
22062# Checks for language qualifiers and semantics.
22063#
22064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22065$as_echo_n "checking whether char is unsigned... " >&6; }
22066if ${ac_cv_c_char_unsigned+:} false; then :
22067  $as_echo_n "(cached) " >&6
22068else
22069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22070/* end confdefs.h.  */
22071$ac_includes_default
22072int
22073main ()
22074{
22075static int test_array [1 - 2 * !(((char) -1) < 0)];
22076test_array [0] = 0;
22077return test_array [0];
22078
22079  ;
22080  return 0;
22081}
22082_ACEOF
22083if ac_fn_c_try_compile "$LINENO"; then :
22084  ac_cv_c_char_unsigned=no
22085else
22086  ac_cv_c_char_unsigned=yes
22087fi
22088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089fi
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22091$as_echo "$ac_cv_c_char_unsigned" >&6; }
22092if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22093  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22094
22095fi
22096
22097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22098$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22099if ${ac_cv_c_const+:} false; then :
22100  $as_echo_n "(cached) " >&6
22101else
22102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22103/* end confdefs.h.  */
22104
22105int
22106main ()
22107{
22108
22109#ifndef __cplusplus
22110  /* Ultrix mips cc rejects this sort of thing.  */
22111  typedef int charset[2];
22112  const charset cs = { 0, 0 };
22113  /* SunOS 4.1.1 cc rejects this.  */
22114  char const *const *pcpcc;
22115  char **ppc;
22116  /* NEC SVR4.0.2 mips cc rejects this.  */
22117  struct point {int x, y;};
22118  static struct point const zero = {0,0};
22119  /* AIX XL C 1.02.0.0 rejects this.
22120     It does not let you subtract one const X* pointer from another in
22121     an arm of an if-expression whose if-part is not a constant
22122     expression */
22123  const char *g = "string";
22124  pcpcc = &g + (g ? g-g : 0);
22125  /* HPUX 7.0 cc rejects these. */
22126  ++pcpcc;
22127  ppc = (char**) pcpcc;
22128  pcpcc = (char const *const *) ppc;
22129  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22130    char tx;
22131    char *t = &tx;
22132    char const *s = 0 ? (char *) 0 : (char const *) 0;
22133
22134    *t++ = 0;
22135    if (s) return 0;
22136  }
22137  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22138    int x[] = {25, 17};
22139    const int *foo = &x[0];
22140    ++foo;
22141  }
22142  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22143    typedef const int *iptr;
22144    iptr p = 0;
22145    ++p;
22146  }
22147  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22148       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22149    struct s { int j; const int *ap[3]; } bx;
22150    struct s *b = &bx; b->j = 5;
22151  }
22152  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22153    const int foo = 10;
22154    if (!foo) return 0;
22155  }
22156  return !cs[0] && !zero.x;
22157#endif
22158
22159  ;
22160  return 0;
22161}
22162_ACEOF
22163if ac_fn_c_try_compile "$LINENO"; then :
22164  ac_cv_c_const=yes
22165else
22166  ac_cv_c_const=no
22167fi
22168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169fi
22170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22171$as_echo "$ac_cv_c_const" >&6; }
22172if test $ac_cv_c_const = no; then
22173
22174$as_echo "#define const /**/" >>confdefs.h
22175
22176fi
22177
22178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22179$as_echo_n "checking for inline... " >&6; }
22180if ${ac_cv_c_inline+:} false; then :
22181  $as_echo_n "(cached) " >&6
22182else
22183  ac_cv_c_inline=no
22184for ac_kw in inline __inline__ __inline; do
22185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186/* end confdefs.h.  */
22187#ifndef __cplusplus
22188typedef int foo_t;
22189static $ac_kw foo_t static_foo () {return 0; }
22190$ac_kw foo_t foo () {return 0; }
22191#endif
22192
22193_ACEOF
22194if ac_fn_c_try_compile "$LINENO"; then :
22195  ac_cv_c_inline=$ac_kw
22196fi
22197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22198  test "$ac_cv_c_inline" != no && break
22199done
22200
22201fi
22202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22203$as_echo "$ac_cv_c_inline" >&6; }
22204
22205case $ac_cv_c_inline in
22206  inline | yes) ;;
22207  *)
22208    case $ac_cv_c_inline in
22209      no) ac_val=;;
22210      *) ac_val=$ac_cv_c_inline;;
22211    esac
22212    cat >>confdefs.h <<_ACEOF
22213#ifndef __cplusplus
22214#define inline $ac_val
22215#endif
22216_ACEOF
22217    ;;
22218esac
22219
22220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22221$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22222if ${ac_cv_c_restrict+:} false; then :
22223  $as_echo_n "(cached) " >&6
22224else
22225  ac_cv_c_restrict=no
22226   # The order here caters to the fact that C++ does not require restrict.
22227   for ac_kw in __restrict __restrict__ _Restrict restrict; do
22228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229/* end confdefs.h.  */
22230typedef int * int_ptr;
22231	int foo (int_ptr $ac_kw ip) {
22232	return ip[0];
22233       }
22234int
22235main ()
22236{
22237int s[1];
22238	int * $ac_kw t = s;
22239	t[0] = 0;
22240	return foo(t)
22241  ;
22242  return 0;
22243}
22244_ACEOF
22245if ac_fn_c_try_compile "$LINENO"; then :
22246  ac_cv_c_restrict=$ac_kw
22247fi
22248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249     test "$ac_cv_c_restrict" != no && break
22250   done
22251
22252fi
22253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22254$as_echo "$ac_cv_c_restrict" >&6; }
22255
22256 case $ac_cv_c_restrict in
22257   restrict) ;;
22258   no) $as_echo "#define restrict /**/" >>confdefs.h
22259 ;;
22260   *)  cat >>confdefs.h <<_ACEOF
22261#define restrict $ac_cv_c_restrict
22262_ACEOF
22263 ;;
22264 esac
22265
22266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22267$as_echo_n "checking for working volatile... " >&6; }
22268if ${ac_cv_c_volatile+:} false; then :
22269  $as_echo_n "(cached) " >&6
22270else
22271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22272/* end confdefs.h.  */
22273
22274int
22275main ()
22276{
22277
22278volatile int x;
22279int * volatile y = (int *) 0;
22280return !x && !y;
22281  ;
22282  return 0;
22283}
22284_ACEOF
22285if ac_fn_c_try_compile "$LINENO"; then :
22286  ac_cv_c_volatile=yes
22287else
22288  ac_cv_c_volatile=no
22289fi
22290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291fi
22292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22293$as_echo "$ac_cv_c_volatile" >&6; }
22294if test $ac_cv_c_volatile = no; then
22295
22296$as_echo "#define volatile /**/" >>confdefs.h
22297
22298fi
22299
22300
22301# If words are stored with the most significant byte first (like
22302# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22304$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22305if ${ac_cv_c_bigendian+:} false; then :
22306  $as_echo_n "(cached) " >&6
22307else
22308  ac_cv_c_bigendian=unknown
22309    # See if we're dealing with a universal compiler.
22310    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311/* end confdefs.h.  */
22312#ifndef __APPLE_CC__
22313	       not a universal capable compiler
22314	     #endif
22315	     typedef int dummy;
22316
22317_ACEOF
22318if ac_fn_c_try_compile "$LINENO"; then :
22319
22320	# Check for potential -arch flags.  It is not universal unless
22321	# there are at least two -arch flags with different values.
22322	ac_arch=
22323	ac_prev=
22324	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22325	 if test -n "$ac_prev"; then
22326	   case $ac_word in
22327	     i?86 | x86_64 | ppc | ppc64)
22328	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22329		 ac_arch=$ac_word
22330	       else
22331		 ac_cv_c_bigendian=universal
22332		 break
22333	       fi
22334	       ;;
22335	   esac
22336	   ac_prev=
22337	 elif test "x$ac_word" = "x-arch"; then
22338	   ac_prev=arch
22339	 fi
22340       done
22341fi
22342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343    if test $ac_cv_c_bigendian = unknown; then
22344      # See if sys/param.h defines the BYTE_ORDER macro.
22345      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22346/* end confdefs.h.  */
22347#include <sys/types.h>
22348	     #include <sys/param.h>
22349
22350int
22351main ()
22352{
22353#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22354		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22355		     && LITTLE_ENDIAN)
22356	      bogus endian macros
22357	     #endif
22358
22359  ;
22360  return 0;
22361}
22362_ACEOF
22363if ac_fn_c_try_compile "$LINENO"; then :
22364  # It does; now see whether it defined to BIG_ENDIAN or not.
22365	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366/* end confdefs.h.  */
22367#include <sys/types.h>
22368		#include <sys/param.h>
22369
22370int
22371main ()
22372{
22373#if BYTE_ORDER != BIG_ENDIAN
22374		 not big endian
22375		#endif
22376
22377  ;
22378  return 0;
22379}
22380_ACEOF
22381if ac_fn_c_try_compile "$LINENO"; then :
22382  ac_cv_c_bigendian=yes
22383else
22384  ac_cv_c_bigendian=no
22385fi
22386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387fi
22388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389    fi
22390    if test $ac_cv_c_bigendian = unknown; then
22391      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22392      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393/* end confdefs.h.  */
22394#include <limits.h>
22395
22396int
22397main ()
22398{
22399#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22400	      bogus endian macros
22401	     #endif
22402
22403  ;
22404  return 0;
22405}
22406_ACEOF
22407if ac_fn_c_try_compile "$LINENO"; then :
22408  # It does; now see whether it defined to _BIG_ENDIAN or not.
22409	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410/* end confdefs.h.  */
22411#include <limits.h>
22412
22413int
22414main ()
22415{
22416#ifndef _BIG_ENDIAN
22417		 not big endian
22418		#endif
22419
22420  ;
22421  return 0;
22422}
22423_ACEOF
22424if ac_fn_c_try_compile "$LINENO"; then :
22425  ac_cv_c_bigendian=yes
22426else
22427  ac_cv_c_bigendian=no
22428fi
22429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22430fi
22431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22432    fi
22433    if test $ac_cv_c_bigendian = unknown; then
22434      # Compile a test program.
22435      if test "$cross_compiling" = yes; then :
22436  # Try to guess by grepping values from an object file.
22437	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22438/* end confdefs.h.  */
22439short int ascii_mm[] =
22440		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22441		short int ascii_ii[] =
22442		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22443		int use_ascii (int i) {
22444		  return ascii_mm[i] + ascii_ii[i];
22445		}
22446		short int ebcdic_ii[] =
22447		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22448		short int ebcdic_mm[] =
22449		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22450		int use_ebcdic (int i) {
22451		  return ebcdic_mm[i] + ebcdic_ii[i];
22452		}
22453		extern int foo;
22454
22455int
22456main ()
22457{
22458return use_ascii (foo) == use_ebcdic (foo);
22459  ;
22460  return 0;
22461}
22462_ACEOF
22463if ac_fn_c_try_compile "$LINENO"; then :
22464  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22465	      ac_cv_c_bigendian=yes
22466	    fi
22467	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22468	      if test "$ac_cv_c_bigendian" = unknown; then
22469		ac_cv_c_bigendian=no
22470	      else
22471		# finding both strings is unlikely to happen, but who knows?
22472		ac_cv_c_bigendian=unknown
22473	      fi
22474	    fi
22475fi
22476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477else
22478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479/* end confdefs.h.  */
22480$ac_includes_default
22481int
22482main ()
22483{
22484
22485	     /* Are we little or big endian?  From Harbison&Steele.  */
22486	     union
22487	     {
22488	       long int l;
22489	       char c[sizeof (long int)];
22490	     } u;
22491	     u.l = 1;
22492	     return u.c[sizeof (long int) - 1] == 1;
22493
22494  ;
22495  return 0;
22496}
22497_ACEOF
22498if ac_fn_c_try_run "$LINENO"; then :
22499  ac_cv_c_bigendian=no
22500else
22501  ac_cv_c_bigendian=yes
22502fi
22503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22504  conftest.$ac_objext conftest.beam conftest.$ac_ext
22505fi
22506
22507    fi
22508fi
22509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22510$as_echo "$ac_cv_c_bigendian" >&6; }
22511 case $ac_cv_c_bigendian in #(
22512   yes)
22513     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22514;; #(
22515   no)
22516      ;; #(
22517   universal)
22518
22519$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22520
22521     ;; #(
22522   *)
22523     as_fn_error $? "unknown endianness
22524 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22525 esac
22526
22527
22528# Define to a suitable type, if standard headers do not define it.
22529ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22530case $ac_cv_c_int8_t in #(
22531  no|yes) ;; #(
22532  *)
22533
22534cat >>confdefs.h <<_ACEOF
22535#define int8_t $ac_cv_c_int8_t
22536_ACEOF
22537;;
22538esac
22539
22540ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22541case $ac_cv_c_int16_t in #(
22542  no|yes) ;; #(
22543  *)
22544
22545cat >>confdefs.h <<_ACEOF
22546#define int16_t $ac_cv_c_int16_t
22547_ACEOF
22548;;
22549esac
22550
22551ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22552case $ac_cv_c_int32_t in #(
22553  no|yes) ;; #(
22554  *)
22555
22556cat >>confdefs.h <<_ACEOF
22557#define int32_t $ac_cv_c_int32_t
22558_ACEOF
22559;;
22560esac
22561
22562ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22563case $ac_cv_c_int64_t in #(
22564  no|yes) ;; #(
22565  *)
22566
22567cat >>confdefs.h <<_ACEOF
22568#define int64_t $ac_cv_c_int64_t
22569_ACEOF
22570;;
22571esac
22572
22573
22574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22575$as_echo_n "checking for long long int... " >&6; }
22576if ${ac_cv_type_long_long_int+:} false; then :
22577  $as_echo_n "(cached) " >&6
22578else
22579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22580/* end confdefs.h.  */
22581
22582  /* For now, do not test the preprocessor; as of 2007 there are too many
22583         implementations with broken preprocessors.  Perhaps this can
22584         be revisited in 2012.  In the meantime, code should not expect
22585         #if to work with literals wider than 32 bits.  */
22586      /* Test literals.  */
22587      long long int ll = 9223372036854775807ll;
22588      long long int nll = -9223372036854775807LL;
22589      unsigned long long int ull = 18446744073709551615ULL;
22590      /* Test constant expressions.   */
22591      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22592                     ? 1 : -1)];
22593      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22594                     ? 1 : -1)];
22595      int i = 63;
22596int
22597main ()
22598{
22599/* Test availability of runtime routines for shift and division.  */
22600      long long int llmax = 9223372036854775807ll;
22601      unsigned long long int ullmax = 18446744073709551615ull;
22602      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22603              | (llmax / ll) | (llmax % ll)
22604              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22605              | (ullmax / ull) | (ullmax % ull));
22606  ;
22607  return 0;
22608}
22609
22610_ACEOF
22611if ac_fn_c_try_link "$LINENO"; then :
22612                          if test "$cross_compiling" = yes; then :
22613  ac_cv_type_long_long_int=yes
22614else
22615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616/* end confdefs.h.  */
22617#include <limits.h>
22618               #ifndef LLONG_MAX
22619               # define HALF \
22620                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22621               # define LLONG_MAX (HALF - 1 + HALF)
22622               #endif
22623int
22624main ()
22625{
22626long long int n = 1;
22627               int i;
22628               for (i = 0; ; i++)
22629                 {
22630                   long long int m = n << i;
22631                   if (m >> i != n)
22632                     return 1;
22633                   if (LLONG_MAX / 2 < m)
22634                     break;
22635                 }
22636               return 0;
22637  ;
22638  return 0;
22639}
22640_ACEOF
22641if ac_fn_c_try_run "$LINENO"; then :
22642  ac_cv_type_long_long_int=yes
22643else
22644  ac_cv_type_long_long_int=no
22645fi
22646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22647  conftest.$ac_objext conftest.beam conftest.$ac_ext
22648fi
22649
22650else
22651  ac_cv_type_long_long_int=no
22652fi
22653rm -f core conftest.err conftest.$ac_objext \
22654    conftest$ac_exeext conftest.$ac_ext
22655fi
22656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22657$as_echo "$ac_cv_type_long_long_int" >&6; }
22658  if test $ac_cv_type_long_long_int = yes; then
22659
22660$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22661
22662  fi
22663
22664
22665
22666  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22667if test "x$ac_cv_type_intmax_t" = xyes; then :
22668
22669$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22670
22671else
22672  test $ac_cv_type_long_long_int = yes \
22673       && ac_type='long long int' \
22674       || ac_type='long int'
22675
22676cat >>confdefs.h <<_ACEOF
22677#define intmax_t $ac_type
22678_ACEOF
22679
22680fi
22681
22682
22683
22684  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22685if test "x$ac_cv_type_intptr_t" = xyes; then :
22686
22687$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22688
22689else
22690  for ac_type in 'int' 'long int' 'long long int'; do
22691       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692/* end confdefs.h.  */
22693$ac_includes_default
22694int
22695main ()
22696{
22697static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22698test_array [0] = 0;
22699return test_array [0];
22700
22701  ;
22702  return 0;
22703}
22704_ACEOF
22705if ac_fn_c_try_compile "$LINENO"; then :
22706
22707cat >>confdefs.h <<_ACEOF
22708#define intptr_t $ac_type
22709_ACEOF
22710
22711	  ac_type=
22712fi
22713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714       test -z "$ac_type" && break
22715     done
22716fi
22717
22718
22719
22720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22721$as_echo_n "checking for long double... " >&6; }
22722if ${ac_cv_type_long_double+:} false; then :
22723  $as_echo_n "(cached) " >&6
22724else
22725  if test "$GCC" = yes; then
22726       ac_cv_type_long_double=yes
22727     else
22728       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729/* end confdefs.h.  */
22730/* The Stardent Vistra knows sizeof (long double), but does
22731		 not support it.  */
22732	      long double foo = 0.0L;
22733int
22734main ()
22735{
22736static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
22737	      sizeof (double) <= sizeof (long double))];
22738test_array [0] = 0;
22739return test_array [0];
22740
22741  ;
22742  return 0;
22743}
22744_ACEOF
22745if ac_fn_c_try_compile "$LINENO"; then :
22746  ac_cv_type_long_double=yes
22747else
22748  ac_cv_type_long_double=no
22749fi
22750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751     fi
22752fi
22753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22754$as_echo "$ac_cv_type_long_double" >&6; }
22755  if test $ac_cv_type_long_double = yes; then
22756
22757$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22758
22759  fi
22760
22761
22762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22763$as_echo_n "checking for long double with more range or precision than double... " >&6; }
22764if ${ac_cv_type_long_double_wider+:} false; then :
22765  $as_echo_n "(cached) " >&6
22766else
22767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768/* end confdefs.h.  */
22769#include <float.h>
22770	    long double const a[] =
22771	      {
22772		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22773		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22774	      };
22775	    long double
22776	    f (long double x)
22777	    {
22778	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22779			+ (x ? f (x) : 'c'));
22780	    }
22781
22782int
22783main ()
22784{
22785static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22786		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
22787		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
22788		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22789	    && (int) LDBL_EPSILON == 0
22790	  )];
22791test_array [0] = 0;
22792return test_array [0];
22793
22794  ;
22795  return 0;
22796}
22797_ACEOF
22798if ac_fn_c_try_compile "$LINENO"; then :
22799  ac_cv_type_long_double_wider=yes
22800else
22801  ac_cv_type_long_double_wider=no
22802fi
22803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22804fi
22805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22806$as_echo "$ac_cv_type_long_double_wider" >&6; }
22807  if test $ac_cv_type_long_double_wider = yes; then
22808
22809$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22810
22811  fi
22812
22813
22814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22815$as_echo_n "checking for long long int... " >&6; }
22816if ${ac_cv_type_long_long_int+:} false; then :
22817  $as_echo_n "(cached) " >&6
22818else
22819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820/* end confdefs.h.  */
22821
22822  /* For now, do not test the preprocessor; as of 2007 there are too many
22823         implementations with broken preprocessors.  Perhaps this can
22824         be revisited in 2012.  In the meantime, code should not expect
22825         #if to work with literals wider than 32 bits.  */
22826      /* Test literals.  */
22827      long long int ll = 9223372036854775807ll;
22828      long long int nll = -9223372036854775807LL;
22829      unsigned long long int ull = 18446744073709551615ULL;
22830      /* Test constant expressions.   */
22831      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22832                     ? 1 : -1)];
22833      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22834                     ? 1 : -1)];
22835      int i = 63;
22836int
22837main ()
22838{
22839/* Test availability of runtime routines for shift and division.  */
22840      long long int llmax = 9223372036854775807ll;
22841      unsigned long long int ullmax = 18446744073709551615ull;
22842      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22843              | (llmax / ll) | (llmax % ll)
22844              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22845              | (ullmax / ull) | (ullmax % ull));
22846  ;
22847  return 0;
22848}
22849
22850_ACEOF
22851if ac_fn_c_try_link "$LINENO"; then :
22852                          if test "$cross_compiling" = yes; then :
22853  ac_cv_type_long_long_int=yes
22854else
22855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856/* end confdefs.h.  */
22857#include <limits.h>
22858               #ifndef LLONG_MAX
22859               # define HALF \
22860                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22861               # define LLONG_MAX (HALF - 1 + HALF)
22862               #endif
22863int
22864main ()
22865{
22866long long int n = 1;
22867               int i;
22868               for (i = 0; ; i++)
22869                 {
22870                   long long int m = n << i;
22871                   if (m >> i != n)
22872                     return 1;
22873                   if (LLONG_MAX / 2 < m)
22874                     break;
22875                 }
22876               return 0;
22877  ;
22878  return 0;
22879}
22880_ACEOF
22881if ac_fn_c_try_run "$LINENO"; then :
22882  ac_cv_type_long_long_int=yes
22883else
22884  ac_cv_type_long_long_int=no
22885fi
22886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22887  conftest.$ac_objext conftest.beam conftest.$ac_ext
22888fi
22889
22890else
22891  ac_cv_type_long_long_int=no
22892fi
22893rm -f core conftest.err conftest.$ac_objext \
22894    conftest$ac_exeext conftest.$ac_ext
22895fi
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22897$as_echo "$ac_cv_type_long_long_int" >&6; }
22898  if test $ac_cv_type_long_long_int = yes; then
22899
22900$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22901
22902  fi
22903
22904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22905$as_echo_n "checking for mbstate_t... " >&6; }
22906if ${ac_cv_type_mbstate_t+:} false; then :
22907  $as_echo_n "(cached) " >&6
22908else
22909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910/* end confdefs.h.  */
22911$ac_includes_default
22912#	    include <wchar.h>
22913int
22914main ()
22915{
22916mbstate_t x; return sizeof x;
22917  ;
22918  return 0;
22919}
22920_ACEOF
22921if ac_fn_c_try_compile "$LINENO"; then :
22922  ac_cv_type_mbstate_t=yes
22923else
22924  ac_cv_type_mbstate_t=no
22925fi
22926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927fi
22928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22929$as_echo "$ac_cv_type_mbstate_t" >&6; }
22930   if test $ac_cv_type_mbstate_t = yes; then
22931
22932$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22933
22934   else
22935
22936$as_echo "#define mbstate_t int" >>confdefs.h
22937
22938   fi
22939ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22940if test "x$ac_cv_type_mode_t" = xyes; then :
22941
22942else
22943
22944cat >>confdefs.h <<_ACEOF
22945#define mode_t int
22946_ACEOF
22947
22948fi
22949
22950ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22951if test "x$ac_cv_type_off_t" = xyes; then :
22952
22953else
22954
22955cat >>confdefs.h <<_ACEOF
22956#define off_t long int
22957_ACEOF
22958
22959fi
22960
22961ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22962if test "x$ac_cv_type_pid_t" = xyes; then :
22963
22964else
22965
22966cat >>confdefs.h <<_ACEOF
22967#define pid_t int
22968_ACEOF
22969
22970fi
22971
22972ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22973if test "x$ac_cv_type_size_t" = xyes; then :
22974
22975else
22976
22977cat >>confdefs.h <<_ACEOF
22978#define size_t unsigned int
22979_ACEOF
22980
22981fi
22982
22983ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22984if test "x$ac_cv_type_ssize_t" = xyes; then :
22985
22986else
22987
22988cat >>confdefs.h <<_ACEOF
22989#define ssize_t int
22990_ACEOF
22991
22992fi
22993
22994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22995$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22996if ${ac_cv_type_uid_t+:} false; then :
22997  $as_echo_n "(cached) " >&6
22998else
22999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000/* end confdefs.h.  */
23001#include <sys/types.h>
23002
23003_ACEOF
23004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23005  $EGREP "uid_t" >/dev/null 2>&1; then :
23006  ac_cv_type_uid_t=yes
23007else
23008  ac_cv_type_uid_t=no
23009fi
23010rm -f conftest*
23011
23012fi
23013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23014$as_echo "$ac_cv_type_uid_t" >&6; }
23015if test $ac_cv_type_uid_t = no; then
23016
23017$as_echo "#define uid_t int" >>confdefs.h
23018
23019
23020$as_echo "#define gid_t int" >>confdefs.h
23021
23022fi
23023
23024ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23025case $ac_cv_c_uint8_t in #(
23026  no|yes) ;; #(
23027  *)
23028
23029$as_echo "#define _UINT8_T 1" >>confdefs.h
23030
23031
23032cat >>confdefs.h <<_ACEOF
23033#define uint8_t $ac_cv_c_uint8_t
23034_ACEOF
23035;;
23036  esac
23037
23038ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23039case $ac_cv_c_uint16_t in #(
23040  no|yes) ;; #(
23041  *)
23042
23043
23044cat >>confdefs.h <<_ACEOF
23045#define uint16_t $ac_cv_c_uint16_t
23046_ACEOF
23047;;
23048  esac
23049
23050ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23051case $ac_cv_c_uint32_t in #(
23052  no|yes) ;; #(
23053  *)
23054
23055$as_echo "#define _UINT32_T 1" >>confdefs.h
23056
23057
23058cat >>confdefs.h <<_ACEOF
23059#define uint32_t $ac_cv_c_uint32_t
23060_ACEOF
23061;;
23062  esac
23063
23064ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23065case $ac_cv_c_uint64_t in #(
23066  no|yes) ;; #(
23067  *)
23068
23069$as_echo "#define _UINT64_T 1" >>confdefs.h
23070
23071
23072cat >>confdefs.h <<_ACEOF
23073#define uint64_t $ac_cv_c_uint64_t
23074_ACEOF
23075;;
23076  esac
23077
23078
23079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23080$as_echo_n "checking for unsigned long long int... " >&6; }
23081if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23082  $as_echo_n "(cached) " >&6
23083else
23084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085/* end confdefs.h.  */
23086
23087  /* For now, do not test the preprocessor; as of 2007 there are too many
23088         implementations with broken preprocessors.  Perhaps this can
23089         be revisited in 2012.  In the meantime, code should not expect
23090         #if to work with literals wider than 32 bits.  */
23091      /* Test literals.  */
23092      long long int ll = 9223372036854775807ll;
23093      long long int nll = -9223372036854775807LL;
23094      unsigned long long int ull = 18446744073709551615ULL;
23095      /* Test constant expressions.   */
23096      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23097                     ? 1 : -1)];
23098      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23099                     ? 1 : -1)];
23100      int i = 63;
23101int
23102main ()
23103{
23104/* Test availability of runtime routines for shift and division.  */
23105      long long int llmax = 9223372036854775807ll;
23106      unsigned long long int ullmax = 18446744073709551615ull;
23107      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23108              | (llmax / ll) | (llmax % ll)
23109              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23110              | (ullmax / ull) | (ullmax % ull));
23111  ;
23112  return 0;
23113}
23114
23115_ACEOF
23116if ac_fn_c_try_link "$LINENO"; then :
23117  ac_cv_type_unsigned_long_long_int=yes
23118else
23119  ac_cv_type_unsigned_long_long_int=no
23120fi
23121rm -f core conftest.err conftest.$ac_objext \
23122    conftest$ac_exeext conftest.$ac_ext
23123fi
23124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23125$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23126  if test $ac_cv_type_unsigned_long_long_int = yes; then
23127
23128$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23129
23130  fi
23131
23132
23133
23134  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23135if test "x$ac_cv_type_uintmax_t" = xyes; then :
23136
23137$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23138
23139else
23140  test $ac_cv_type_unsigned_long_long_int = yes \
23141       && ac_type='unsigned long long int' \
23142       || ac_type='unsigned long int'
23143
23144cat >>confdefs.h <<_ACEOF
23145#define uintmax_t $ac_type
23146_ACEOF
23147
23148fi
23149
23150
23151
23152  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23153if test "x$ac_cv_type_uintptr_t" = xyes; then :
23154
23155$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23156
23157else
23158  for ac_type in 'unsigned int' 'unsigned long int' \
23159	'unsigned long long int'; do
23160       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161/* end confdefs.h.  */
23162$ac_includes_default
23163int
23164main ()
23165{
23166static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23167test_array [0] = 0;
23168return test_array [0];
23169
23170  ;
23171  return 0;
23172}
23173_ACEOF
23174if ac_fn_c_try_compile "$LINENO"; then :
23175
23176cat >>confdefs.h <<_ACEOF
23177#define uintptr_t $ac_type
23178_ACEOF
23179
23180	  ac_type=
23181fi
23182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183       test -z "$ac_type" && break
23184     done
23185fi
23186
23187
23188
23189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23190$as_echo_n "checking for unsigned long long int... " >&6; }
23191if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23192  $as_echo_n "(cached) " >&6
23193else
23194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195/* end confdefs.h.  */
23196
23197  /* For now, do not test the preprocessor; as of 2007 there are too many
23198         implementations with broken preprocessors.  Perhaps this can
23199         be revisited in 2012.  In the meantime, code should not expect
23200         #if to work with literals wider than 32 bits.  */
23201      /* Test literals.  */
23202      long long int ll = 9223372036854775807ll;
23203      long long int nll = -9223372036854775807LL;
23204      unsigned long long int ull = 18446744073709551615ULL;
23205      /* Test constant expressions.   */
23206      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23207                     ? 1 : -1)];
23208      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23209                     ? 1 : -1)];
23210      int i = 63;
23211int
23212main ()
23213{
23214/* Test availability of runtime routines for shift and division.  */
23215      long long int llmax = 9223372036854775807ll;
23216      unsigned long long int ullmax = 18446744073709551615ull;
23217      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23218              | (llmax / ll) | (llmax % ll)
23219              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23220              | (ullmax / ull) | (ullmax % ull));
23221  ;
23222  return 0;
23223}
23224
23225_ACEOF
23226if ac_fn_c_try_link "$LINENO"; then :
23227  ac_cv_type_unsigned_long_long_int=yes
23228else
23229  ac_cv_type_unsigned_long_long_int=no
23230fi
23231rm -f core conftest.err conftest.$ac_objext \
23232    conftest$ac_exeext conftest.$ac_ext
23233fi
23234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23235$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23236  if test $ac_cv_type_unsigned_long_long_int = yes; then
23237
23238$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23239
23240  fi
23241
23242
23243# Float_t and double_t are intended to be the the most efficient type.
23244ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23245"
23246if test "x$ac_cv_type_float_t" = xyes; then :
23247
23248cat >>confdefs.h <<_ACEOF
23249#define HAVE_FLOAT_T 1
23250_ACEOF
23251
23252
23253fi
23254
23255ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23256"
23257if test "x$ac_cv_type_double_t" = xyes; then :
23258
23259cat >>confdefs.h <<_ACEOF
23260#define HAVE_DOUBLE_T 1
23261_ACEOF
23262
23263
23264fi
23265
23266# The cast to long int works around a bug in the HP C Compiler
23267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23269# This bug is HP SR number 8606223364.
23270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23271$as_echo_n "checking size of float_t... " >&6; }
23272if ${ac_cv_sizeof_float_t+:} false; then :
23273  $as_echo_n "(cached) " >&6
23274else
23275  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
23276"; then :
23277
23278else
23279  if test "$ac_cv_type_float_t" = yes; then
23280     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23282as_fn_error 77 "cannot compute sizeof (float_t)
23283See \`config.log' for more details" "$LINENO" 5; }
23284   else
23285     ac_cv_sizeof_float_t=0
23286   fi
23287fi
23288
23289fi
23290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23291$as_echo "$ac_cv_sizeof_float_t" >&6; }
23292
23293
23294
23295cat >>confdefs.h <<_ACEOF
23296#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23297_ACEOF
23298
23299
23300# The cast to long int works around a bug in the HP C Compiler
23301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23303# This bug is HP SR number 8606223364.
23304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23305$as_echo_n "checking size of double_t... " >&6; }
23306if ${ac_cv_sizeof_double_t+:} false; then :
23307  $as_echo_n "(cached) " >&6
23308else
23309  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
23310"; then :
23311
23312else
23313  if test "$ac_cv_type_double_t" = yes; then
23314     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23316as_fn_error 77 "cannot compute sizeof (double_t)
23317See \`config.log' for more details" "$LINENO" 5; }
23318   else
23319     ac_cv_sizeof_double_t=0
23320   fi
23321fi
23322
23323fi
23324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23325$as_echo "$ac_cv_sizeof_double_t" >&6; }
23326
23327
23328
23329cat >>confdefs.h <<_ACEOF
23330#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23331_ACEOF
23332
23333
23334
23335# Get size of float, double and long double for comparaison.
23336# The cast to long int works around a bug in the HP C Compiler
23337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23339# This bug is HP SR number 8606223364.
23340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23341$as_echo_n "checking size of float... " >&6; }
23342if ${ac_cv_sizeof_float+:} false; then :
23343  $as_echo_n "(cached) " >&6
23344else
23345  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
23346
23347else
23348  if test "$ac_cv_type_float" = yes; then
23349     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23351as_fn_error 77 "cannot compute sizeof (float)
23352See \`config.log' for more details" "$LINENO" 5; }
23353   else
23354     ac_cv_sizeof_float=0
23355   fi
23356fi
23357
23358fi
23359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23360$as_echo "$ac_cv_sizeof_float" >&6; }
23361
23362
23363
23364cat >>confdefs.h <<_ACEOF
23365#define SIZEOF_FLOAT $ac_cv_sizeof_float
23366_ACEOF
23367
23368
23369# The cast to long int works around a bug in the HP C Compiler
23370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23372# This bug is HP SR number 8606223364.
23373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23374$as_echo_n "checking size of double... " >&6; }
23375if ${ac_cv_sizeof_double+:} false; then :
23376  $as_echo_n "(cached) " >&6
23377else
23378  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
23379
23380else
23381  if test "$ac_cv_type_double" = yes; then
23382     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23384as_fn_error 77 "cannot compute sizeof (double)
23385See \`config.log' for more details" "$LINENO" 5; }
23386   else
23387     ac_cv_sizeof_double=0
23388   fi
23389fi
23390
23391fi
23392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23393$as_echo "$ac_cv_sizeof_double" >&6; }
23394
23395
23396
23397cat >>confdefs.h <<_ACEOF
23398#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23399_ACEOF
23400
23401
23402# The cast to long int works around a bug in the HP C Compiler
23403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23405# This bug is HP SR number 8606223364.
23406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23407$as_echo_n "checking size of long double... " >&6; }
23408if ${ac_cv_sizeof_long_double+:} false; then :
23409  $as_echo_n "(cached) " >&6
23410else
23411  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
23412
23413else
23414  if test "$ac_cv_type_long_double" = yes; then
23415     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23417as_fn_error 77 "cannot compute sizeof (long double)
23418See \`config.log' for more details" "$LINENO" 5; }
23419   else
23420     ac_cv_sizeof_long_double=0
23421   fi
23422fi
23423
23424fi
23425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23426$as_echo "$ac_cv_sizeof_long_double" >&6; }
23427
23428
23429
23430cat >>confdefs.h <<_ACEOF
23431#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23432_ACEOF
23433
23434
23435
23436# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23437# The cast to long int works around a bug in the HP C Compiler
23438# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23439# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23440# This bug is HP SR number 8606223364.
23441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23442$as_echo_n "checking size of signed short... " >&6; }
23443if ${ac_cv_sizeof_signed_short+:} false; then :
23444  $as_echo_n "(cached) " >&6
23445else
23446  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23447
23448else
23449  if test "$ac_cv_type_signed_short" = yes; then
23450     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23452as_fn_error 77 "cannot compute sizeof (signed short)
23453See \`config.log' for more details" "$LINENO" 5; }
23454   else
23455     ac_cv_sizeof_signed_short=0
23456   fi
23457fi
23458
23459fi
23460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23461$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23462
23463
23464
23465cat >>confdefs.h <<_ACEOF
23466#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23467_ACEOF
23468
23469
23470
23471# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23472# The cast to long int works around a bug in the HP C Compiler
23473# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23474# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23475# This bug is HP SR number 8606223364.
23476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23477$as_echo_n "checking size of unsigned short... " >&6; }
23478if ${ac_cv_sizeof_unsigned_short+:} false; then :
23479  $as_echo_n "(cached) " >&6
23480else
23481  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23482
23483else
23484  if test "$ac_cv_type_unsigned_short" = yes; then
23485     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23487as_fn_error 77 "cannot compute sizeof (unsigned short)
23488See \`config.log' for more details" "$LINENO" 5; }
23489   else
23490     ac_cv_sizeof_unsigned_short=0
23491   fi
23492fi
23493
23494fi
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23496$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23497
23498
23499
23500cat >>confdefs.h <<_ACEOF
23501#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23502_ACEOF
23503
23504
23505
23506# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23507# The cast to long int works around a bug in the HP C Compiler
23508# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23509# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23510# This bug is HP SR number 8606223364.
23511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23512$as_echo_n "checking size of signed int... " >&6; }
23513if ${ac_cv_sizeof_signed_int+:} false; then :
23514  $as_echo_n "(cached) " >&6
23515else
23516  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
23517
23518else
23519  if test "$ac_cv_type_signed_int" = yes; then
23520     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23522as_fn_error 77 "cannot compute sizeof (signed int)
23523See \`config.log' for more details" "$LINENO" 5; }
23524   else
23525     ac_cv_sizeof_signed_int=0
23526   fi
23527fi
23528
23529fi
23530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23531$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23532
23533
23534
23535cat >>confdefs.h <<_ACEOF
23536#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23537_ACEOF
23538
23539
23540
23541# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23542# The cast to long int works around a bug in the HP C Compiler
23543# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23544# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23545# This bug is HP SR number 8606223364.
23546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23547$as_echo_n "checking size of unsigned int... " >&6; }
23548if ${ac_cv_sizeof_unsigned_int+:} false; then :
23549  $as_echo_n "(cached) " >&6
23550else
23551  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
23552
23553else
23554  if test "$ac_cv_type_unsigned_int" = yes; then
23555     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23557as_fn_error 77 "cannot compute sizeof (unsigned int)
23558See \`config.log' for more details" "$LINENO" 5; }
23559   else
23560     ac_cv_sizeof_unsigned_int=0
23561   fi
23562fi
23563
23564fi
23565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23566$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23567
23568
23569
23570cat >>confdefs.h <<_ACEOF
23571#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23572_ACEOF
23573
23574
23575
23576# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23577# The cast to long int works around a bug in the HP C Compiler
23578# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23579# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23580# This bug is HP SR number 8606223364.
23581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23582$as_echo_n "checking size of signed long... " >&6; }
23583if ${ac_cv_sizeof_signed_long+:} false; then :
23584  $as_echo_n "(cached) " >&6
23585else
23586  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
23587
23588else
23589  if test "$ac_cv_type_signed_long" = yes; then
23590     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23592as_fn_error 77 "cannot compute sizeof (signed long)
23593See \`config.log' for more details" "$LINENO" 5; }
23594   else
23595     ac_cv_sizeof_signed_long=0
23596   fi
23597fi
23598
23599fi
23600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23601$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23602
23603
23604
23605cat >>confdefs.h <<_ACEOF
23606#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23607_ACEOF
23608
23609
23610
23611# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23612# The cast to long int works around a bug in the HP C Compiler
23613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23615# This bug is HP SR number 8606223364.
23616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23617$as_echo_n "checking size of unsigned long... " >&6; }
23618if ${ac_cv_sizeof_unsigned_long+:} false; then :
23619  $as_echo_n "(cached) " >&6
23620else
23621  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
23622
23623else
23624  if test "$ac_cv_type_unsigned_long" = yes; then
23625     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23627as_fn_error 77 "cannot compute sizeof (unsigned long)
23628See \`config.log' for more details" "$LINENO" 5; }
23629   else
23630     ac_cv_sizeof_unsigned_long=0
23631   fi
23632fi
23633
23634fi
23635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23636$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23637
23638
23639
23640cat >>confdefs.h <<_ACEOF
23641#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23642_ACEOF
23643
23644
23645
23646# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
23647# 'signed long long' is not supported then the value defined is zero.
23648# The cast to long int works around a bug in the HP C Compiler
23649# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23650# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23651# This bug is HP SR number 8606223364.
23652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23653$as_echo_n "checking size of signed long long... " >&6; }
23654if ${ac_cv_sizeof_signed_long_long+:} false; then :
23655  $as_echo_n "(cached) " >&6
23656else
23657  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
23658
23659else
23660  if test "$ac_cv_type_signed_long_long" = yes; then
23661     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23663as_fn_error 77 "cannot compute sizeof (signed long long)
23664See \`config.log' for more details" "$LINENO" 5; }
23665   else
23666     ac_cv_sizeof_signed_long_long=0
23667   fi
23668fi
23669
23670fi
23671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23672$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23673
23674
23675
23676cat >>confdefs.h <<_ACEOF
23677#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23678_ACEOF
23679
23680
23681
23682# Obtain size of a 'unsigned long long' and define as
23683# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
23684# supported then the value defined is zero.
23685# The cast to long int works around a bug in the HP C Compiler
23686# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23687# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23688# This bug is HP SR number 8606223364.
23689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23690$as_echo_n "checking size of unsigned long long... " >&6; }
23691if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23692  $as_echo_n "(cached) " >&6
23693else
23694  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
23695
23696else
23697  if test "$ac_cv_type_unsigned_long_long" = yes; then
23698     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23700as_fn_error 77 "cannot compute sizeof (unsigned long long)
23701See \`config.log' for more details" "$LINENO" 5; }
23702   else
23703     ac_cv_sizeof_unsigned_long_long=0
23704   fi
23705fi
23706
23707fi
23708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23709$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23710
23711
23712
23713cat >>confdefs.h <<_ACEOF
23714#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23715_ACEOF
23716
23717
23718
23719# Obtain size of off_t and define as SIZEOF_OFF_T
23720# The cast to long int works around a bug in the HP C Compiler
23721# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23722# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23723# This bug is HP SR number 8606223364.
23724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23725$as_echo_n "checking size of off_t... " >&6; }
23726if ${ac_cv_sizeof_off_t+:} false; then :
23727  $as_echo_n "(cached) " >&6
23728else
23729  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
23730
23731else
23732  if test "$ac_cv_type_off_t" = yes; then
23733     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23735as_fn_error 77 "cannot compute sizeof (off_t)
23736See \`config.log' for more details" "$LINENO" 5; }
23737   else
23738     ac_cv_sizeof_off_t=0
23739   fi
23740fi
23741
23742fi
23743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23744$as_echo "$ac_cv_sizeof_off_t" >&6; }
23745
23746
23747
23748cat >>confdefs.h <<_ACEOF
23749#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23750_ACEOF
23751
23752
23753
23754# Obtain size of size_t and define as SIZEOF_SIZE_T
23755# The cast to long int works around a bug in the HP C Compiler
23756# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23757# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23758# This bug is HP SR number 8606223364.
23759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23760$as_echo_n "checking size of size_t... " >&6; }
23761if ${ac_cv_sizeof_size_t+:} false; then :
23762  $as_echo_n "(cached) " >&6
23763else
23764  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23765
23766else
23767  if test "$ac_cv_type_size_t" = yes; then
23768     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23770as_fn_error 77 "cannot compute sizeof (size_t)
23771See \`config.log' for more details" "$LINENO" 5; }
23772   else
23773     ac_cv_sizeof_size_t=0
23774   fi
23775fi
23776
23777fi
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23779$as_echo "$ac_cv_sizeof_size_t" >&6; }
23780
23781
23782
23783cat >>confdefs.h <<_ACEOF
23784#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23785_ACEOF
23786
23787
23788
23789# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23790# The cast to long int works around a bug in the HP C Compiler
23791# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23792# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23793# This bug is HP SR number 8606223364.
23794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23795$as_echo_n "checking size of ssize_t... " >&6; }
23796if ${ac_cv_sizeof_ssize_t+:} false; then :
23797  $as_echo_n "(cached) " >&6
23798else
23799  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
23800
23801else
23802  if test "$ac_cv_type_ssize_t" = yes; then
23803     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23805as_fn_error 77 "cannot compute sizeof (ssize_t)
23806See \`config.log' for more details" "$LINENO" 5; }
23807   else
23808     ac_cv_sizeof_ssize_t=0
23809   fi
23810fi
23811
23812fi
23813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23814$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23815
23816
23817
23818cat >>confdefs.h <<_ACEOF
23819#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23820_ACEOF
23821
23822
23823
23824# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23825# The cast to long int works around a bug in the HP C Compiler
23826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23828# This bug is HP SR number 8606223364.
23829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23830$as_echo_n "checking size of unsigned int*... " >&6; }
23831if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23832  $as_echo_n "(cached) " >&6
23833else
23834  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
23835
23836else
23837  if test "$ac_cv_type_unsigned_intp" = yes; then
23838     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23840as_fn_error 77 "cannot compute sizeof (unsigned int*)
23841See \`config.log' for more details" "$LINENO" 5; }
23842   else
23843     ac_cv_sizeof_unsigned_intp=0
23844   fi
23845fi
23846
23847fi
23848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23849$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23850
23851
23852
23853cat >>confdefs.h <<_ACEOF
23854#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23855_ACEOF
23856
23857
23858
23859#
23860# Compute sized types for current CPU and compiler options.
23861#
23862
23863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23864$as_echo_n "checking for signed 8-bit type... " >&6; }
23865INT8_T='signed char'
23866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23867$as_echo "$INT8_T" >&6; }
23868
23869
23870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23871$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23872UINT8_T='unsigned char'
23873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23874$as_echo "$UINT8_T" >&6; }
23875
23876
23877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23878$as_echo_n "checking for signed 16-bit type... " >&6; }
23879INT16_T='signed short'
23880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23881$as_echo "$INT16_T" >&6; }
23882
23883
23884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23885$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23886UINT16_T='unsigned short'
23887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23888$as_echo "$UINT16_T" >&6; }
23889
23890
23891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23892$as_echo_n "checking for signed 32-bit type... " >&6; }
23893INT32_T='none'
23894INT32_F='none'
23895if test $ac_cv_sizeof_signed_int -eq 4; then
23896  INT32_T='signed int'
23897  INT32_F='""'
23898elif test $ac_cv_sizeof_signed_long -eq 4; then
23899  INT32_T='signed long'
23900  INT32_F='"l"'
23901fi
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23903$as_echo "$INT32_T" >&6; }
23904
23905
23906
23907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23908$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23909UINT32_T='none'
23910UINT32_F='none'
23911if test $ac_cv_sizeof_unsigned_int -eq 4; then
23912  UINT32_T='unsigned int'
23913  UINT32_F='""'
23914elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23915  UINT32_T='unsigned long'
23916  UINT32_F='"l"'
23917fi
23918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23919$as_echo "$UINT32_T" >&6; }
23920
23921
23922
23923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23924$as_echo_n "checking for signed 64-bit type... " >&6; }
23925INT64_T='none'
23926INT64_F='none'
23927if test $ac_cv_sizeof_signed_long -eq 8; then
23928  INT64_T='signed long'
23929  INT64_F='"l"'
23930elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23931  INT64_T='signed long long'
23932  INT64_F='"ll"'
23933fi
23934case "${host_os}" in
23935  mingw* )
23936    INT64_F='"I64"'
23937    ;;
23938esac
23939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23940$as_echo "$INT64_T" >&6; }
23941
23942
23943
23944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23945$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23946UINT64_T='none'
23947UINT64_F='none'
23948if test $ac_cv_sizeof_unsigned_long -eq 8; then
23949  UINT64_T='unsigned long'
23950  UINT64_F='"l"'
23951elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23952  UINT64_T='unsigned long long'
23953  UINT64_F='"ll"'
23954fi
23955case "${host_os}" in
23956  mingw* )
23957    UINT64_F='"I64"'
23958    ;;
23959esac
23960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23961$as_echo "$UINT64_T" >&6; }
23962
23963
23964
23965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23966$as_echo_n "checking for unsigned maximum type... " >&6; }
23967UINTMAX_T='none'
23968UINTMAX_F='none'
23969if test "$UINT64_T" != 'none'; then
23970  UINTMAX_T=$UINT64_T
23971  UINTMAX_F=$UINT64_F
23972elif test "$UINT32_T" != 'none'; then
23973  UINTMAX_T=$UINT32_T
23974  UINTMAX_F=$UINT32_F
23975fi
23976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23977$as_echo "$UINTMAX_T" >&6; }
23978
23979
23980
23981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23982$as_echo_n "checking for pointer difference type... " >&6; }
23983UINTPTR_T='none'
23984UINTPTR_F='none'
23985if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23986  UINTPTR_T='unsigned long'
23987  UINTPTR_F='"l"'
23988elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23989  UINTPTR_T='unsigned long long'
23990  UINTPTR_F='"ll"'
23991fi
23992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23993$as_echo "$UINTPTR_T" >&6; }
23994
23995
23996
23997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23998$as_echo_n "checking whether our compiler supports __func__... " >&6; }
23999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000/* end confdefs.h.  */
24001
24002int
24003main ()
24004{
24005{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24006  ;
24007  return 0;
24008}
24009_ACEOF
24010if ac_fn_c_try_compile "$LINENO"; then :
24011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24012$as_echo "yes" >&6; }
24013else
24014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24015$as_echo "no" >&6; }
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
24017$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24019/* end confdefs.h.  */
24020
24021int
24022main ()
24023{
24024{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24025  ;
24026  return 0;
24027}
24028_ACEOF
24029if ac_fn_c_try_compile "$LINENO"; then :
24030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24031$as_echo "yes" >&6; }
24032
24033$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
24034
24035else
24036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24037$as_echo "no" >&6; }
24038
24039$as_echo "#define __func__ __FILE__" >>confdefs.h
24040
24041fi
24042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043fi
24044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24045
24046########
24047#
24048# Check for functions
24049#
24050########
24051for ac_header in stdlib.h unistd.h
24052do :
24053  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24054ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24056  cat >>confdefs.h <<_ACEOF
24057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24058_ACEOF
24059
24060fi
24061
24062done
24063
24064for ac_func in getpagesize
24065do :
24066  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24067if test "x$ac_cv_func_getpagesize" = xyes; then :
24068  cat >>confdefs.h <<_ACEOF
24069#define HAVE_GETPAGESIZE 1
24070_ACEOF
24071
24072fi
24073done
24074
24075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24076$as_echo_n "checking for working mmap file i/o... " >&6; }
24077if ${magick_cv_func_mmap_fileio+:} false; then :
24078  $as_echo_n "(cached) " >&6
24079else
24080  if test "$cross_compiling" = yes; then :
24081  magick_cv_func_mmap_fileio=no
24082else
24083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24084/* end confdefs.h.  */
24085$ac_includes_default
24086/* malloc might have been renamed as rpl_malloc. */
24087#undef malloc
24088
24089/*
24090   This test is derived from GNU Autoconf's similar macro.
24091   The purpose of this test is to verify that files may be memory
24092   mapped, and that memory mapping and file I/O are coherent.
24093
24094   The test creates a test file, memory maps the file, updates
24095   the file using the memory map, and then reads the file using
24096   file I/O to verify that the file contains the updates.
24097*/
24098
24099#include <fcntl.h>
24100#include <sys/mman.h>
24101
24102#if !STDC_HEADERS && !HAVE_STDLIB_H
24103char *malloc ();
24104#endif
24105
24106/* This mess was copied from the GNU getpagesize.h.  */
24107#if !HAVE_GETPAGESIZE
24108/* Assume that all systems that can run configure have sys/param.h.  */
24109# if !HAVE_SYS_PARAM_H
24110#  define HAVE_SYS_PARAM_H 1
24111# endif
24112
24113# ifdef _SC_PAGESIZE
24114#  define getpagesize() sysconf(_SC_PAGESIZE)
24115# else /* no _SC_PAGESIZE */
24116#  if HAVE_SYS_PARAM_H
24117#   include <sys/param.h>
24118#   ifdef EXEC_PAGESIZE
24119#    define getpagesize() EXEC_PAGESIZE
24120#   else /* no EXEC_PAGESIZE */
24121#    ifdef NBPG
24122#     define getpagesize() NBPG * CLSIZE
24123#     ifndef CLSIZE
24124#      define CLSIZE 1
24125#     endif /* no CLSIZE */
24126#    else /* no NBPG */
24127#     ifdef NBPC
24128#      define getpagesize() NBPC
24129#     else /* no NBPC */
24130#      ifdef PAGESIZE
24131#       define getpagesize() PAGESIZE
24132#      endif /* PAGESIZE */
24133#     endif /* no NBPC */
24134#    endif /* no NBPG */
24135#   endif /* no EXEC_PAGESIZE */
24136#  else /* no HAVE_SYS_PARAM_H */
24137#   define getpagesize() 8192	/* punt totally */
24138#  endif /* no HAVE_SYS_PARAM_H */
24139# endif /* no _SC_PAGESIZE */
24140
24141#endif /* no HAVE_GETPAGESIZE */
24142
24143int
24144main ()
24145{
24146  char *data, *data2, *data3;
24147  int i, pagesize;
24148  int fd;
24149
24150  pagesize = getpagesize ();
24151
24152  /* First, make a file with some known garbage in it. */
24153  data = (char *) malloc (pagesize);
24154  if (!data)
24155    exit (1);
24156  for (i = 0; i < pagesize; ++i)
24157    *(data + i) = rand ();
24158  umask (0);
24159  fd = creat ("conftest.mmap", 0600);
24160  if (fd < 0)
24161    exit (1);
24162  if (write (fd, data, pagesize) != pagesize)
24163    exit (1);
24164  close (fd);
24165
24166  /* Mmap the file as read/write/shared and verify that we see the
24167  same garbage. */
24168  fd = open ("conftest.mmap", O_RDWR);
24169  if (fd < 0)
24170    exit (1);
24171  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24172  if (data2 == 0)
24173    exit (1);
24174  for (i = 0; i < pagesize; ++i)
24175    if (*(data + i) != *(data2 + i))
24176      exit (1);
24177
24178  /* Finally, make sure that changes to the mapped area
24179     percolate back to the file as seen by read().  */
24180  for (i = 0; i < pagesize; ++i)
24181    *(data2 + i) = *(data2 + i) + 1;
24182  data3 = (char *) malloc (pagesize);
24183  if (!data3)
24184    exit (1);
24185  if (read (fd, data3, pagesize) != pagesize)
24186    exit (1);
24187  for (i = 0; i < pagesize; ++i)
24188    if (*(data2 + i) != *(data3 + i))
24189      exit (1);
24190  close (fd);
24191  exit (0);
24192}
24193_ACEOF
24194if ac_fn_c_try_run "$LINENO"; then :
24195  magick_cv_func_mmap_fileio=yes
24196else
24197  magick_cv_func_mmap_fileio=no
24198fi
24199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24200  conftest.$ac_objext conftest.beam conftest.$ac_ext
24201fi
24202
24203fi
24204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24205$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24206if test $magick_cv_func_mmap_fileio = yes; then
24207
24208$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24209
24210fi
24211rm -f conftest.mmap
24212
24213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24214$as_echo_n "checking whether closedir returns void... " >&6; }
24215if ${ac_cv_func_closedir_void+:} false; then :
24216  $as_echo_n "(cached) " >&6
24217else
24218  if test "$cross_compiling" = yes; then :
24219  ac_cv_func_closedir_void=yes
24220else
24221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24222/* end confdefs.h.  */
24223$ac_includes_default
24224#include <$ac_header_dirent>
24225#ifndef __cplusplus
24226int closedir ();
24227#endif
24228
24229int
24230main ()
24231{
24232return closedir (opendir (".")) != 0;
24233  ;
24234  return 0;
24235}
24236_ACEOF
24237if ac_fn_c_try_run "$LINENO"; then :
24238  ac_cv_func_closedir_void=no
24239else
24240  ac_cv_func_closedir_void=yes
24241fi
24242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24243  conftest.$ac_objext conftest.beam conftest.$ac_ext
24244fi
24245
24246fi
24247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24248$as_echo "$ac_cv_func_closedir_void" >&6; }
24249if test $ac_cv_func_closedir_void = yes; then
24250
24251$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24252
24253fi
24254
24255
24256
24257
24258  for ac_header in $ac_header_list
24259do :
24260  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24261ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24262"
24263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24264  cat >>confdefs.h <<_ACEOF
24265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24266_ACEOF
24267
24268fi
24269
24270done
24271
24272
24273
24274
24275
24276
24277
24278
24279for ac_func in getpagesize
24280do :
24281  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24282if test "x$ac_cv_func_getpagesize" = xyes; then :
24283  cat >>confdefs.h <<_ACEOF
24284#define HAVE_GETPAGESIZE 1
24285_ACEOF
24286
24287fi
24288done
24289
24290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24291$as_echo_n "checking for working mmap... " >&6; }
24292if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24293  $as_echo_n "(cached) " >&6
24294else
24295  if test "$cross_compiling" = yes; then :
24296  ac_cv_func_mmap_fixed_mapped=no
24297else
24298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299/* end confdefs.h.  */
24300$ac_includes_default
24301/* malloc might have been renamed as rpl_malloc. */
24302#undef malloc
24303
24304/* Thanks to Mike Haertel and Jim Avera for this test.
24305   Here is a matrix of mmap possibilities:
24306	mmap private not fixed
24307	mmap private fixed at somewhere currently unmapped
24308	mmap private fixed at somewhere already mapped
24309	mmap shared not fixed
24310	mmap shared fixed at somewhere currently unmapped
24311	mmap shared fixed at somewhere already mapped
24312   For private mappings, we should verify that changes cannot be read()
24313   back from the file, nor mmap's back from the file at a different
24314   address.  (There have been systems where private was not correctly
24315   implemented like the infamous i386 svr4.0, and systems where the
24316   VM page cache was not coherent with the file system buffer cache
24317   like early versions of FreeBSD and possibly contemporary NetBSD.)
24318   For shared mappings, we should conversely verify that changes get
24319   propagated back to all the places they're supposed to be.
24320
24321   Grep wants private fixed already mapped.
24322   The main things grep needs to know about mmap are:
24323   * does it exist and is it safe to write into the mmap'd area
24324   * how to use it (BSD variants)  */
24325
24326#include <fcntl.h>
24327#include <sys/mman.h>
24328
24329#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24330char *malloc ();
24331#endif
24332
24333/* This mess was copied from the GNU getpagesize.h.  */
24334#ifndef HAVE_GETPAGESIZE
24335# ifdef _SC_PAGESIZE
24336#  define getpagesize() sysconf(_SC_PAGESIZE)
24337# else /* no _SC_PAGESIZE */
24338#  ifdef HAVE_SYS_PARAM_H
24339#   include <sys/param.h>
24340#   ifdef EXEC_PAGESIZE
24341#    define getpagesize() EXEC_PAGESIZE
24342#   else /* no EXEC_PAGESIZE */
24343#    ifdef NBPG
24344#     define getpagesize() NBPG * CLSIZE
24345#     ifndef CLSIZE
24346#      define CLSIZE 1
24347#     endif /* no CLSIZE */
24348#    else /* no NBPG */
24349#     ifdef NBPC
24350#      define getpagesize() NBPC
24351#     else /* no NBPC */
24352#      ifdef PAGESIZE
24353#       define getpagesize() PAGESIZE
24354#      endif /* PAGESIZE */
24355#     endif /* no NBPC */
24356#    endif /* no NBPG */
24357#   endif /* no EXEC_PAGESIZE */
24358#  else /* no HAVE_SYS_PARAM_H */
24359#   define getpagesize() 8192	/* punt totally */
24360#  endif /* no HAVE_SYS_PARAM_H */
24361# endif /* no _SC_PAGESIZE */
24362
24363#endif /* no HAVE_GETPAGESIZE */
24364
24365int
24366main ()
24367{
24368  char *data, *data2, *data3;
24369  const char *cdata2;
24370  int i, pagesize;
24371  int fd, fd2;
24372
24373  pagesize = getpagesize ();
24374
24375  /* First, make a file with some known garbage in it. */
24376  data = (char *) malloc (pagesize);
24377  if (!data)
24378    return 1;
24379  for (i = 0; i < pagesize; ++i)
24380    *(data + i) = rand ();
24381  umask (0);
24382  fd = creat ("conftest.mmap", 0600);
24383  if (fd < 0)
24384    return 2;
24385  if (write (fd, data, pagesize) != pagesize)
24386    return 3;
24387  close (fd);
24388
24389  /* Next, check that the tail of a page is zero-filled.  File must have
24390     non-zero length, otherwise we risk SIGBUS for entire page.  */
24391  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24392  if (fd2 < 0)
24393    return 4;
24394  cdata2 = "";
24395  if (write (fd2, cdata2, 1) != 1)
24396    return 5;
24397  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24398  if (data2 == MAP_FAILED)
24399    return 6;
24400  for (i = 0; i < pagesize; ++i)
24401    if (*(data2 + i))
24402      return 7;
24403  close (fd2);
24404  if (munmap (data2, pagesize))
24405    return 8;
24406
24407  /* Next, try to mmap the file at a fixed address which already has
24408     something else allocated at it.  If we can, also make sure that
24409     we see the same garbage.  */
24410  fd = open ("conftest.mmap", O_RDWR);
24411  if (fd < 0)
24412    return 9;
24413  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24414		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24415    return 10;
24416  for (i = 0; i < pagesize; ++i)
24417    if (*(data + i) != *(data2 + i))
24418      return 11;
24419
24420  /* Finally, make sure that changes to the mapped area do not
24421     percolate back to the file as seen by read().  (This is a bug on
24422     some variants of i386 svr4.0.)  */
24423  for (i = 0; i < pagesize; ++i)
24424    *(data2 + i) = *(data2 + i) + 1;
24425  data3 = (char *) malloc (pagesize);
24426  if (!data3)
24427    return 12;
24428  if (read (fd, data3, pagesize) != pagesize)
24429    return 13;
24430  for (i = 0; i < pagesize; ++i)
24431    if (*(data + i) != *(data3 + i))
24432      return 14;
24433  close (fd);
24434  return 0;
24435}
24436_ACEOF
24437if ac_fn_c_try_run "$LINENO"; then :
24438  ac_cv_func_mmap_fixed_mapped=yes
24439else
24440  ac_cv_func_mmap_fixed_mapped=no
24441fi
24442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24443  conftest.$ac_objext conftest.beam conftest.$ac_ext
24444fi
24445
24446fi
24447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24448$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24449if test $ac_cv_func_mmap_fixed_mapped = yes; then
24450
24451$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24452
24453fi
24454rm -f conftest.mmap conftest.txt
24455
24456for ac_header in vfork.h
24457do :
24458  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24459if test "x$ac_cv_header_vfork_h" = xyes; then :
24460  cat >>confdefs.h <<_ACEOF
24461#define HAVE_VFORK_H 1
24462_ACEOF
24463
24464fi
24465
24466done
24467
24468for ac_func in fork vfork
24469do :
24470  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24471ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24472if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24473  cat >>confdefs.h <<_ACEOF
24474#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24475_ACEOF
24476
24477fi
24478done
24479
24480if test "x$ac_cv_func_fork" = xyes; then
24481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24482$as_echo_n "checking for working fork... " >&6; }
24483if ${ac_cv_func_fork_works+:} false; then :
24484  $as_echo_n "(cached) " >&6
24485else
24486  if test "$cross_compiling" = yes; then :
24487  ac_cv_func_fork_works=cross
24488else
24489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24490/* end confdefs.h.  */
24491$ac_includes_default
24492int
24493main ()
24494{
24495
24496	  /* By Ruediger Kuhlmann. */
24497	  return fork () < 0;
24498
24499  ;
24500  return 0;
24501}
24502_ACEOF
24503if ac_fn_c_try_run "$LINENO"; then :
24504  ac_cv_func_fork_works=yes
24505else
24506  ac_cv_func_fork_works=no
24507fi
24508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24509  conftest.$ac_objext conftest.beam conftest.$ac_ext
24510fi
24511
24512fi
24513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24514$as_echo "$ac_cv_func_fork_works" >&6; }
24515
24516else
24517  ac_cv_func_fork_works=$ac_cv_func_fork
24518fi
24519if test "x$ac_cv_func_fork_works" = xcross; then
24520  case $host in
24521    *-*-amigaos* | *-*-msdosdjgpp*)
24522      # Override, as these systems have only a dummy fork() stub
24523      ac_cv_func_fork_works=no
24524      ;;
24525    *)
24526      ac_cv_func_fork_works=yes
24527      ;;
24528  esac
24529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24530$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24531fi
24532ac_cv_func_vfork_works=$ac_cv_func_vfork
24533if test "x$ac_cv_func_vfork" = xyes; then
24534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24535$as_echo_n "checking for working vfork... " >&6; }
24536if ${ac_cv_func_vfork_works+:} false; then :
24537  $as_echo_n "(cached) " >&6
24538else
24539  if test "$cross_compiling" = yes; then :
24540  ac_cv_func_vfork_works=cross
24541else
24542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543/* end confdefs.h.  */
24544/* Thanks to Paul Eggert for this test.  */
24545$ac_includes_default
24546#include <sys/wait.h>
24547#ifdef HAVE_VFORK_H
24548# include <vfork.h>
24549#endif
24550/* On some sparc systems, changes by the child to local and incoming
24551   argument registers are propagated back to the parent.  The compiler
24552   is told about this with #include <vfork.h>, but some compilers
24553   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24554   static variable whose address is put into a register that is
24555   clobbered by the vfork.  */
24556static void
24557#ifdef __cplusplus
24558sparc_address_test (int arg)
24559# else
24560sparc_address_test (arg) int arg;
24561#endif
24562{
24563  static pid_t child;
24564  if (!child) {
24565    child = vfork ();
24566    if (child < 0) {
24567      perror ("vfork");
24568      _exit(2);
24569    }
24570    if (!child) {
24571      arg = getpid();
24572      write(-1, "", 0);
24573      _exit (arg);
24574    }
24575  }
24576}
24577
24578int
24579main ()
24580{
24581  pid_t parent = getpid ();
24582  pid_t child;
24583
24584  sparc_address_test (0);
24585
24586  child = vfork ();
24587
24588  if (child == 0) {
24589    /* Here is another test for sparc vfork register problems.  This
24590       test uses lots of local variables, at least as many local
24591       variables as main has allocated so far including compiler
24592       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24593       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24594       reuse the register of parent for one of the local variables,
24595       since it will think that parent can't possibly be used any more
24596       in this routine.  Assigning to the local variable will thus
24597       munge parent in the parent process.  */
24598    pid_t
24599      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24600      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24601    /* Convince the compiler that p..p7 are live; otherwise, it might
24602       use the same hardware register for all 8 local variables.  */
24603    if (p != p1 || p != p2 || p != p3 || p != p4
24604	|| p != p5 || p != p6 || p != p7)
24605      _exit(1);
24606
24607    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24608       from child file descriptors.  If the child closes a descriptor
24609       before it execs or exits, this munges the parent's descriptor
24610       as well.  Test for this by closing stdout in the child.  */
24611    _exit(close(fileno(stdout)) != 0);
24612  } else {
24613    int status;
24614    struct stat st;
24615
24616    while (wait(&status) != child)
24617      ;
24618    return (
24619	 /* Was there some problem with vforking?  */
24620	 child < 0
24621
24622	 /* Did the child fail?  (This shouldn't happen.)  */
24623	 || status
24624
24625	 /* Did the vfork/compiler bug occur?  */
24626	 || parent != getpid()
24627
24628	 /* Did the file descriptor bug occur?  */
24629	 || fstat(fileno(stdout), &st) != 0
24630	 );
24631  }
24632}
24633_ACEOF
24634if ac_fn_c_try_run "$LINENO"; then :
24635  ac_cv_func_vfork_works=yes
24636else
24637  ac_cv_func_vfork_works=no
24638fi
24639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24640  conftest.$ac_objext conftest.beam conftest.$ac_ext
24641fi
24642
24643fi
24644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24645$as_echo "$ac_cv_func_vfork_works" >&6; }
24646
24647fi;
24648if test "x$ac_cv_func_fork_works" = xcross; then
24649  ac_cv_func_vfork_works=$ac_cv_func_vfork
24650  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24651$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24652fi
24653
24654if test "x$ac_cv_func_vfork_works" = xyes; then
24655
24656$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24657
24658else
24659
24660$as_echo "#define vfork fork" >>confdefs.h
24661
24662fi
24663if test "x$ac_cv_func_fork_works" = xyes; then
24664
24665$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24666
24667fi
24668
24669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24670$as_echo_n "checking for working memcmp... " >&6; }
24671if ${ac_cv_func_memcmp_working+:} false; then :
24672  $as_echo_n "(cached) " >&6
24673else
24674  if test "$cross_compiling" = yes; then :
24675  ac_cv_func_memcmp_working=no
24676else
24677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24678/* end confdefs.h.  */
24679$ac_includes_default
24680int
24681main ()
24682{
24683
24684  /* Some versions of memcmp are not 8-bit clean.  */
24685  char c0 = '\100', c1 = '\200', c2 = '\201';
24686  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24687    return 1;
24688
24689  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24690     or more and with at least one buffer not starting on a 4-byte boundary.
24691     William Lewis provided this test program.   */
24692  {
24693    char foo[21];
24694    char bar[21];
24695    int i;
24696    for (i = 0; i < 4; i++)
24697      {
24698	char *a = foo + i;
24699	char *b = bar + i;
24700	strcpy (a, "--------01111111");
24701	strcpy (b, "--------10000000");
24702	if (memcmp (a, b, 16) >= 0)
24703	  return 1;
24704      }
24705    return 0;
24706  }
24707
24708  ;
24709  return 0;
24710}
24711_ACEOF
24712if ac_fn_c_try_run "$LINENO"; then :
24713  ac_cv_func_memcmp_working=yes
24714else
24715  ac_cv_func_memcmp_working=no
24716fi
24717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24718  conftest.$ac_objext conftest.beam conftest.$ac_ext
24719fi
24720
24721fi
24722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24723$as_echo "$ac_cv_func_memcmp_working" >&6; }
24724test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24725  *" memcmp.$ac_objext "* ) ;;
24726  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24727 ;;
24728esac
24729
24730
24731for ac_header in sys/select.h sys/socket.h
24732do :
24733  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24734ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24736  cat >>confdefs.h <<_ACEOF
24737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24738_ACEOF
24739
24740fi
24741
24742done
24743
24744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24745$as_echo_n "checking types of arguments for select... " >&6; }
24746if ${ac_cv_func_select_args+:} false; then :
24747  $as_echo_n "(cached) " >&6
24748else
24749  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24750 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24751  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753/* end confdefs.h.  */
24754$ac_includes_default
24755#ifdef HAVE_SYS_SELECT_H
24756# include <sys/select.h>
24757#endif
24758#ifdef HAVE_SYS_SOCKET_H
24759# include <sys/socket.h>
24760#endif
24761
24762int
24763main ()
24764{
24765extern int select ($ac_arg1,
24766					    $ac_arg234, $ac_arg234, $ac_arg234,
24767					    $ac_arg5);
24768  ;
24769  return 0;
24770}
24771_ACEOF
24772if ac_fn_c_try_compile "$LINENO"; then :
24773  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24774fi
24775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776  done
24777 done
24778done
24779# Provide a safe default value.
24780: "${ac_cv_func_select_args=int,int *,struct timeval *}"
24781
24782fi
24783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24784$as_echo "$ac_cv_func_select_args" >&6; }
24785ac_save_IFS=$IFS; IFS=','
24786set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24787IFS=$ac_save_IFS
24788shift
24789
24790cat >>confdefs.h <<_ACEOF
24791#define SELECT_TYPE_ARG1 $1
24792_ACEOF
24793
24794
24795cat >>confdefs.h <<_ACEOF
24796#define SELECT_TYPE_ARG234 ($2)
24797_ACEOF
24798
24799
24800cat >>confdefs.h <<_ACEOF
24801#define SELECT_TYPE_ARG5 ($3)
24802_ACEOF
24803
24804rm -f conftest*
24805
24806if ${ac_cv_func_setvbuf_reversed+:} false; then :
24807  $as_echo_n "(cached) " >&6
24808else
24809  ac_cv_func_setvbuf_reversed=no
24810fi
24811
24812
24813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24814$as_echo_n "checking return type of signal handlers... " >&6; }
24815if ${ac_cv_type_signal+:} false; then :
24816  $as_echo_n "(cached) " >&6
24817else
24818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819/* end confdefs.h.  */
24820#include <sys/types.h>
24821#include <signal.h>
24822
24823int
24824main ()
24825{
24826return *(signal (0, 0)) (0) == 1;
24827  ;
24828  return 0;
24829}
24830_ACEOF
24831if ac_fn_c_try_compile "$LINENO"; then :
24832  ac_cv_type_signal=int
24833else
24834  ac_cv_type_signal=void
24835fi
24836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837fi
24838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24839$as_echo "$ac_cv_type_signal" >&6; }
24840
24841cat >>confdefs.h <<_ACEOF
24842#define RETSIGTYPE $ac_cv_type_signal
24843_ACEOF
24844
24845
24846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24847$as_echo_n "checking for working strtod... " >&6; }
24848if ${ac_cv_func_strtod+:} false; then :
24849  $as_echo_n "(cached) " >&6
24850else
24851  if test "$cross_compiling" = yes; then :
24852  ac_cv_func_strtod=no
24853else
24854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24855/* end confdefs.h.  */
24856
24857$ac_includes_default
24858#ifndef strtod
24859double strtod ();
24860#endif
24861int
24862main()
24863{
24864  {
24865    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
24866    char *string = " +69";
24867    char *term;
24868    double value;
24869    value = strtod (string, &term);
24870    if (value != 69 || term != (string + 4))
24871      return 1;
24872  }
24873
24874  {
24875    /* Under Solaris 2.4, strtod returns the wrong value for the
24876       terminating character under some conditions.  */
24877    char *string = "NaN";
24878    char *term;
24879    strtod (string, &term);
24880    if (term != string && *(term - 1) == 0)
24881      return 1;
24882  }
24883  return 0;
24884}
24885
24886_ACEOF
24887if ac_fn_c_try_run "$LINENO"; then :
24888  ac_cv_func_strtod=yes
24889else
24890  ac_cv_func_strtod=no
24891fi
24892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24893  conftest.$ac_objext conftest.beam conftest.$ac_ext
24894fi
24895
24896fi
24897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24898$as_echo "$ac_cv_func_strtod" >&6; }
24899if test $ac_cv_func_strtod = no; then
24900  case " $LIBOBJS " in
24901  *" strtod.$ac_objext "* ) ;;
24902  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24903 ;;
24904esac
24905
24906ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24907if test "x$ac_cv_func_pow" = xyes; then :
24908
24909fi
24910
24911if test $ac_cv_func_pow = no; then
24912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24913$as_echo_n "checking for pow in -lm... " >&6; }
24914if ${ac_cv_lib_m_pow+:} false; then :
24915  $as_echo_n "(cached) " >&6
24916else
24917  ac_check_lib_save_LIBS=$LIBS
24918LIBS="-lm  $LIBS"
24919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24920/* end confdefs.h.  */
24921
24922/* Override any GCC internal prototype to avoid an error.
24923   Use char because int might match the return type of a GCC
24924   builtin and then its argument prototype would still apply.  */
24925#ifdef __cplusplus
24926extern "C"
24927#endif
24928char pow ();
24929int
24930main ()
24931{
24932return pow ();
24933  ;
24934  return 0;
24935}
24936_ACEOF
24937if ac_fn_c_try_link "$LINENO"; then :
24938  ac_cv_lib_m_pow=yes
24939else
24940  ac_cv_lib_m_pow=no
24941fi
24942rm -f core conftest.err conftest.$ac_objext \
24943    conftest$ac_exeext conftest.$ac_ext
24944LIBS=$ac_check_lib_save_LIBS
24945fi
24946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24947$as_echo "$ac_cv_lib_m_pow" >&6; }
24948if test "x$ac_cv_lib_m_pow" = xyes; then :
24949  POW_LIB=-lm
24950else
24951  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24952$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24953fi
24954
24955fi
24956
24957fi
24958
24959ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24960if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24961  ac_have_decl=1
24962else
24963  ac_have_decl=0
24964fi
24965
24966cat >>confdefs.h <<_ACEOF
24967#define HAVE_DECL_STRERROR_R $ac_have_decl
24968_ACEOF
24969
24970for ac_func in strerror_r
24971do :
24972  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24973if test "x$ac_cv_func_strerror_r" = xyes; then :
24974  cat >>confdefs.h <<_ACEOF
24975#define HAVE_STRERROR_R 1
24976_ACEOF
24977
24978fi
24979done
24980
24981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24982$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24983if ${ac_cv_func_strerror_r_char_p+:} false; then :
24984  $as_echo_n "(cached) " >&6
24985else
24986
24987    ac_cv_func_strerror_r_char_p=no
24988    if test $ac_cv_have_decl_strerror_r = yes; then
24989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990/* end confdefs.h.  */
24991$ac_includes_default
24992int
24993main ()
24994{
24995
24996	  char buf[100];
24997	  char x = *strerror_r (0, buf, sizeof buf);
24998	  char *p = strerror_r (0, buf, sizeof buf);
24999	  return !p || x;
25000
25001  ;
25002  return 0;
25003}
25004_ACEOF
25005if ac_fn_c_try_compile "$LINENO"; then :
25006  ac_cv_func_strerror_r_char_p=yes
25007fi
25008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009    else
25010      # strerror_r is not declared.  Choose between
25011      # systems that have relatively inaccessible declarations for the
25012      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25013      # former has a strerror_r that returns char*, while the latter
25014      # has a strerror_r that returns `int'.
25015      # This test should segfault on the DEC system.
25016      if test "$cross_compiling" = yes; then :
25017  :
25018else
25019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25020/* end confdefs.h.  */
25021$ac_includes_default
25022	extern char *strerror_r ();
25023int
25024main ()
25025{
25026char buf[100];
25027	  char x = *strerror_r (0, buf, sizeof buf);
25028	  return ! isalpha (x);
25029  ;
25030  return 0;
25031}
25032_ACEOF
25033if ac_fn_c_try_run "$LINENO"; then :
25034  ac_cv_func_strerror_r_char_p=yes
25035fi
25036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25037  conftest.$ac_objext conftest.beam conftest.$ac_ext
25038fi
25039
25040    fi
25041
25042fi
25043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25044$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25045if test $ac_cv_func_strerror_r_char_p = yes; then
25046
25047$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25048
25049fi
25050
25051for ac_func in vprintf
25052do :
25053  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25054if test "x$ac_cv_func_vprintf" = xyes; then :
25055  cat >>confdefs.h <<_ACEOF
25056#define HAVE_VPRINTF 1
25057_ACEOF
25058
25059ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25060if test "x$ac_cv_func__doprnt" = xyes; then :
25061
25062$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25063
25064fi
25065
25066fi
25067done
25068
25069
25070
25071#
25072# Find math library
25073#
25074MATH_LIBS=''
25075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25076$as_echo_n "checking for sqrt in -lm... " >&6; }
25077if ${ac_cv_lib_m_sqrt+:} false; then :
25078  $as_echo_n "(cached) " >&6
25079else
25080  ac_check_lib_save_LIBS=$LIBS
25081LIBS="-lm  $LIBS"
25082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083/* end confdefs.h.  */
25084
25085/* Override any GCC internal prototype to avoid an error.
25086   Use char because int might match the return type of a GCC
25087   builtin and then its argument prototype would still apply.  */
25088#ifdef __cplusplus
25089extern "C"
25090#endif
25091char sqrt ();
25092int
25093main ()
25094{
25095return sqrt ();
25096  ;
25097  return 0;
25098}
25099_ACEOF
25100if ac_fn_c_try_link "$LINENO"; then :
25101  ac_cv_lib_m_sqrt=yes
25102else
25103  ac_cv_lib_m_sqrt=no
25104fi
25105rm -f core conftest.err conftest.$ac_objext \
25106    conftest$ac_exeext conftest.$ac_ext
25107LIBS=$ac_check_lib_save_LIBS
25108fi
25109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25110$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25111if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25112  MATH_LIBS="-lm"
25113fi
25114
25115LIBS="$MATH_LIBS $LIBS"
25116
25117
25118#
25119# Find socket library
25120#
25121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25122$as_echo_n "checking for library containing gethostbyname... " >&6; }
25123if ${ac_cv_search_gethostbyname+:} false; then :
25124  $as_echo_n "(cached) " >&6
25125else
25126  ac_func_search_save_LIBS=$LIBS
25127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25128/* end confdefs.h.  */
25129
25130/* Override any GCC internal prototype to avoid an error.
25131   Use char because int might match the return type of a GCC
25132   builtin and then its argument prototype would still apply.  */
25133#ifdef __cplusplus
25134extern "C"
25135#endif
25136char gethostbyname ();
25137int
25138main ()
25139{
25140return gethostbyname ();
25141  ;
25142  return 0;
25143}
25144_ACEOF
25145for ac_lib in '' resolv nsl; do
25146  if test -z "$ac_lib"; then
25147    ac_res="none required"
25148  else
25149    ac_res=-l$ac_lib
25150    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25151  fi
25152  if ac_fn_c_try_link "$LINENO"; then :
25153  ac_cv_search_gethostbyname=$ac_res
25154fi
25155rm -f core conftest.err conftest.$ac_objext \
25156    conftest$ac_exeext
25157  if ${ac_cv_search_gethostbyname+:} false; then :
25158  break
25159fi
25160done
25161if ${ac_cv_search_gethostbyname+:} false; then :
25162
25163else
25164  ac_cv_search_gethostbyname=no
25165fi
25166rm conftest.$ac_ext
25167LIBS=$ac_func_search_save_LIBS
25168fi
25169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25170$as_echo "$ac_cv_search_gethostbyname" >&6; }
25171ac_res=$ac_cv_search_gethostbyname
25172if test "$ac_res" != no; then :
25173  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25174
25175fi
25176
25177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25178$as_echo_n "checking for library containing socket... " >&6; }
25179if ${ac_cv_search_socket+:} false; then :
25180  $as_echo_n "(cached) " >&6
25181else
25182  ac_func_search_save_LIBS=$LIBS
25183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184/* end confdefs.h.  */
25185
25186/* Override any GCC internal prototype to avoid an error.
25187   Use char because int might match the return type of a GCC
25188   builtin and then its argument prototype would still apply.  */
25189#ifdef __cplusplus
25190extern "C"
25191#endif
25192char socket ();
25193int
25194main ()
25195{
25196return socket ();
25197  ;
25198  return 0;
25199}
25200_ACEOF
25201for ac_lib in '' socket; do
25202  if test -z "$ac_lib"; then
25203    ac_res="none required"
25204  else
25205    ac_res=-l$ac_lib
25206    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25207  fi
25208  if ac_fn_c_try_link "$LINENO"; then :
25209  ac_cv_search_socket=$ac_res
25210fi
25211rm -f core conftest.err conftest.$ac_objext \
25212    conftest$ac_exeext
25213  if ${ac_cv_search_socket+:} false; then :
25214  break
25215fi
25216done
25217if ${ac_cv_search_socket+:} false; then :
25218
25219else
25220  ac_cv_search_socket=no
25221fi
25222rm conftest.$ac_ext
25223LIBS=$ac_func_search_save_LIBS
25224fi
25225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25226$as_echo "$ac_cv_search_socket" >&6; }
25227ac_res=$ac_cv_search_socket
25228if test "$ac_res" != no; then :
25229  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25230
25231
25232$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
25233
25234  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
25235
25236fi
25237
25238
25239for 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
25240do :
25241  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25242ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25243if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25244  cat >>confdefs.h <<_ACEOF
25245#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25246_ACEOF
25247
25248fi
25249done
25250
25251
25252#
25253# Check for clock_gettime().
25254#
25255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25256$as_echo_n "checking for library containing clock_gettime... " >&6; }
25257if ${ac_cv_search_clock_gettime+:} false; then :
25258  $as_echo_n "(cached) " >&6
25259else
25260  ac_func_search_save_LIBS=$LIBS
25261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262/* end confdefs.h.  */
25263
25264/* Override any GCC internal prototype to avoid an error.
25265   Use char because int might match the return type of a GCC
25266   builtin and then its argument prototype would still apply.  */
25267#ifdef __cplusplus
25268extern "C"
25269#endif
25270char clock_gettime ();
25271int
25272main ()
25273{
25274return clock_gettime ();
25275  ;
25276  return 0;
25277}
25278_ACEOF
25279for ac_lib in '' rt; do
25280  if test -z "$ac_lib"; then
25281    ac_res="none required"
25282  else
25283    ac_res=-l$ac_lib
25284    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25285  fi
25286  if ac_fn_c_try_link "$LINENO"; then :
25287  ac_cv_search_clock_gettime=$ac_res
25288fi
25289rm -f core conftest.err conftest.$ac_objext \
25290    conftest$ac_exeext
25291  if ${ac_cv_search_clock_gettime+:} false; then :
25292  break
25293fi
25294done
25295if ${ac_cv_search_clock_gettime+:} false; then :
25296
25297else
25298  ac_cv_search_clock_gettime=no
25299fi
25300rm conftest.$ac_ext
25301LIBS=$ac_func_search_save_LIBS
25302fi
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25304$as_echo "$ac_cv_search_clock_gettime" >&6; }
25305ac_res=$ac_cv_search_clock_gettime
25306if test "$ac_res" != no; then :
25307  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25308
25309
25310$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25311
25312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25313$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315/* end confdefs.h.  */
25316
25317    #include <time.h>
25318int
25319main ()
25320{
25321clockid_t clockType = CLOCK_REALTIME;
25322  ;
25323  return 0;
25324}
25325_ACEOF
25326if ac_fn_c_try_compile "$LINENO"; then :
25327
25328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25329$as_echo "yes" >&6; }
25330
25331$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25332
25333
25334else
25335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25336$as_echo "no" >&6; }
25337
25338fi
25339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340
25341else
25342
25343    for ac_func in gettimeofday ftime
25344do :
25345  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25346ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25347if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25348  cat >>confdefs.h <<_ACEOF
25349#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25350_ACEOF
25351 break
25352fi
25353done
25354
25355
25356
25357fi
25358
25359
25360########
25361#
25362# Check for function prototypes
25363#
25364########
25365
25366ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25367#include <unistd.h>
25368"
25369if test "x$ac_cv_have_decl_pread" = xyes; then :
25370  ac_have_decl=1
25371else
25372  ac_have_decl=0
25373fi
25374
25375cat >>confdefs.h <<_ACEOF
25376#define HAVE_DECL_PREAD $ac_have_decl
25377_ACEOF
25378ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25379#include <unistd.h>
25380"
25381if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25382  ac_have_decl=1
25383else
25384  ac_have_decl=0
25385fi
25386
25387cat >>confdefs.h <<_ACEOF
25388#define HAVE_DECL_PWRITE $ac_have_decl
25389_ACEOF
25390
25391
25392ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25393#include <strings.h>
25394"
25395if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25396  ac_have_decl=1
25397else
25398  ac_have_decl=0
25399fi
25400
25401cat >>confdefs.h <<_ACEOF
25402#define HAVE_DECL_STRLCPY $ac_have_decl
25403_ACEOF
25404
25405
25406ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25407#include <stdio.h>
25408#include <stdarg.h>
25409"
25410if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25411  ac_have_decl=1
25412else
25413  ac_have_decl=0
25414fi
25415
25416cat >>confdefs.h <<_ACEOF
25417#define HAVE_DECL_VSNPRINTF $ac_have_decl
25418_ACEOF
25419
25420
25421########
25422#
25423# C++ Support Tests (For Magick++)
25424#
25425########
25426have_magick_plus_plus='no'
25427if test "$with_magick_plus_plus" = 'yes'; then
25428    OLIBS="$LIBS"
25429    LIBS=''
25430    ac_ext=cpp
25431ac_cpp='$CXXCPP $CPPFLAGS'
25432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25435
25436
25437    # Full set of headers used...
25438    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25439    # functional iomanip iosfwd iostream iterator list string strstream utility
25440    ac_ext=cpp
25441ac_cpp='$CXXCPP $CPPFLAGS'
25442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25445
25446    ac_ext=cpp
25447ac_cpp='$CXXCPP $CPPFLAGS'
25448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25451if test -z "$CXX"; then
25452  if test -n "$CCC"; then
25453    CXX=$CCC
25454  else
25455    if test -n "$ac_tool_prefix"; then
25456  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25457  do
25458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25461$as_echo_n "checking for $ac_word... " >&6; }
25462if ${ac_cv_prog_CXX+:} false; then :
25463  $as_echo_n "(cached) " >&6
25464else
25465  if test -n "$CXX"; then
25466  ac_cv_prog_CXX="$CXX" # Let the user override the test.
25467else
25468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25469for as_dir in $PATH
25470do
25471  IFS=$as_save_IFS
25472  test -z "$as_dir" && as_dir=.
25473    for ac_exec_ext in '' $ac_executable_extensions; do
25474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25475    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25477    break 2
25478  fi
25479done
25480  done
25481IFS=$as_save_IFS
25482
25483fi
25484fi
25485CXX=$ac_cv_prog_CXX
25486if test -n "$CXX"; then
25487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25488$as_echo "$CXX" >&6; }
25489else
25490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25491$as_echo "no" >&6; }
25492fi
25493
25494
25495    test -n "$CXX" && break
25496  done
25497fi
25498if test -z "$CXX"; then
25499  ac_ct_CXX=$CXX
25500  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25501do
25502  # Extract the first word of "$ac_prog", so it can be a program name with args.
25503set dummy $ac_prog; ac_word=$2
25504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25505$as_echo_n "checking for $ac_word... " >&6; }
25506if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25507  $as_echo_n "(cached) " >&6
25508else
25509  if test -n "$ac_ct_CXX"; then
25510  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25511else
25512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25513for as_dir in $PATH
25514do
25515  IFS=$as_save_IFS
25516  test -z "$as_dir" && as_dir=.
25517    for ac_exec_ext in '' $ac_executable_extensions; do
25518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25519    ac_cv_prog_ac_ct_CXX="$ac_prog"
25520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25521    break 2
25522  fi
25523done
25524  done
25525IFS=$as_save_IFS
25526
25527fi
25528fi
25529ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25530if test -n "$ac_ct_CXX"; then
25531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25532$as_echo "$ac_ct_CXX" >&6; }
25533else
25534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25535$as_echo "no" >&6; }
25536fi
25537
25538
25539  test -n "$ac_ct_CXX" && break
25540done
25541
25542  if test "x$ac_ct_CXX" = x; then
25543    CXX="g++"
25544  else
25545    case $cross_compiling:$ac_tool_warned in
25546yes:)
25547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25549ac_tool_warned=yes ;;
25550esac
25551    CXX=$ac_ct_CXX
25552  fi
25553fi
25554
25555  fi
25556fi
25557# Provide some information about the compiler.
25558$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25559set X $ac_compile
25560ac_compiler=$2
25561for ac_option in --version -v -V -qversion; do
25562  { { ac_try="$ac_compiler $ac_option >&5"
25563case "(($ac_try" in
25564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565  *) ac_try_echo=$ac_try;;
25566esac
25567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25568$as_echo "$ac_try_echo"; } >&5
25569  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25570  ac_status=$?
25571  if test -s conftest.err; then
25572    sed '10a\
25573... rest of stderr output deleted ...
25574         10q' conftest.err >conftest.er1
25575    cat conftest.er1 >&5
25576  fi
25577  rm -f conftest.er1 conftest.err
25578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25579  test $ac_status = 0; }
25580done
25581
25582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25583$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25584if ${ac_cv_cxx_compiler_gnu+:} false; then :
25585  $as_echo_n "(cached) " >&6
25586else
25587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588/* end confdefs.h.  */
25589
25590int
25591main ()
25592{
25593#ifndef __GNUC__
25594       choke me
25595#endif
25596
25597  ;
25598  return 0;
25599}
25600_ACEOF
25601if ac_fn_cxx_try_compile "$LINENO"; then :
25602  ac_compiler_gnu=yes
25603else
25604  ac_compiler_gnu=no
25605fi
25606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25608
25609fi
25610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25611$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25612if test $ac_compiler_gnu = yes; then
25613  GXX=yes
25614else
25615  GXX=
25616fi
25617ac_test_CXXFLAGS=${CXXFLAGS+set}
25618ac_save_CXXFLAGS=$CXXFLAGS
25619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25620$as_echo_n "checking whether $CXX accepts -g... " >&6; }
25621if ${ac_cv_prog_cxx_g+:} false; then :
25622  $as_echo_n "(cached) " >&6
25623else
25624  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25625   ac_cxx_werror_flag=yes
25626   ac_cv_prog_cxx_g=no
25627   CXXFLAGS="-g"
25628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629/* end confdefs.h.  */
25630
25631int
25632main ()
25633{
25634
25635  ;
25636  return 0;
25637}
25638_ACEOF
25639if ac_fn_cxx_try_compile "$LINENO"; then :
25640  ac_cv_prog_cxx_g=yes
25641else
25642  CXXFLAGS=""
25643      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644/* end confdefs.h.  */
25645
25646int
25647main ()
25648{
25649
25650  ;
25651  return 0;
25652}
25653_ACEOF
25654if ac_fn_cxx_try_compile "$LINENO"; then :
25655
25656else
25657  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25658	 CXXFLAGS="-g"
25659	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660/* end confdefs.h.  */
25661
25662int
25663main ()
25664{
25665
25666  ;
25667  return 0;
25668}
25669_ACEOF
25670if ac_fn_cxx_try_compile "$LINENO"; then :
25671  ac_cv_prog_cxx_g=yes
25672fi
25673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25674fi
25675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676fi
25677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25679fi
25680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25681$as_echo "$ac_cv_prog_cxx_g" >&6; }
25682if test "$ac_test_CXXFLAGS" = set; then
25683  CXXFLAGS=$ac_save_CXXFLAGS
25684elif test $ac_cv_prog_cxx_g = yes; then
25685  if test "$GXX" = yes; then
25686    CXXFLAGS="-g -O2"
25687  else
25688    CXXFLAGS="-g"
25689  fi
25690else
25691  if test "$GXX" = yes; then
25692    CXXFLAGS="-O2"
25693  else
25694    CXXFLAGS=
25695  fi
25696fi
25697ac_ext=cpp
25698ac_cpp='$CXXCPP $CPPFLAGS'
25699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25702
25703depcc="$CXX"  am_compiler_list=
25704
25705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25706$as_echo_n "checking dependency style of $depcc... " >&6; }
25707if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25708  $as_echo_n "(cached) " >&6
25709else
25710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25711  # We make a subdir and do the tests there.  Otherwise we can end up
25712  # making bogus files that we don't know about and never remove.  For
25713  # instance it was reported that on HP-UX the gcc test will end up
25714  # making a dummy file named 'D' -- because '-MD' means "put the output
25715  # in D".
25716  rm -rf conftest.dir
25717  mkdir conftest.dir
25718  # Copy depcomp to subdir because otherwise we won't find it if we're
25719  # using a relative directory.
25720  cp "$am_depcomp" conftest.dir
25721  cd conftest.dir
25722  # We will build objects and dependencies in a subdirectory because
25723  # it helps to detect inapplicable dependency modes.  For instance
25724  # both Tru64's cc and ICC support -MD to output dependencies as a
25725  # side effect of compilation, but ICC will put the dependencies in
25726  # the current directory while Tru64 will put them in the object
25727  # directory.
25728  mkdir sub
25729
25730  am_cv_CXX_dependencies_compiler_type=none
25731  if test "$am_compiler_list" = ""; then
25732     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25733  fi
25734  am__universal=false
25735  case " $depcc " in #(
25736     *\ -arch\ *\ -arch\ *) am__universal=true ;;
25737     esac
25738
25739  for depmode in $am_compiler_list; do
25740    # Setup a source with many dependencies, because some compilers
25741    # like to wrap large dependency lists on column 80 (with \), and
25742    # we should not choose a depcomp mode which is confused by this.
25743    #
25744    # We need to recreate these files for each test, as the compiler may
25745    # overwrite some of them when testing with obscure command lines.
25746    # This happens at least with the AIX C compiler.
25747    : > sub/conftest.c
25748    for i in 1 2 3 4 5 6; do
25749      echo '#include "conftst'$i'.h"' >> sub/conftest.c
25750      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25751      # Solaris 10 /bin/sh.
25752      echo '/* dummy */' > sub/conftst$i.h
25753    done
25754    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25755
25756    # We check with '-c' and '-o' for the sake of the "dashmstdout"
25757    # mode.  It turns out that the SunPro C++ compiler does not properly
25758    # handle '-M -o', and we need to detect this.  Also, some Intel
25759    # versions had trouble with output in subdirs.
25760    am__obj=sub/conftest.${OBJEXT-o}
25761    am__minus_obj="-o $am__obj"
25762    case $depmode in
25763    gcc)
25764      # This depmode causes a compiler race in universal mode.
25765      test "$am__universal" = false || continue
25766      ;;
25767    nosideeffect)
25768      # After this tag, mechanisms are not by side-effect, so they'll
25769      # only be used when explicitly requested.
25770      if test "x$enable_dependency_tracking" = xyes; then
25771	continue
25772      else
25773	break
25774      fi
25775      ;;
25776    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
25777      # This compiler won't grok '-c -o', but also, the minuso test has
25778      # not run yet.  These depmodes are late enough in the game, and
25779      # so weak that their functioning should not be impacted.
25780      am__obj=conftest.${OBJEXT-o}
25781      am__minus_obj=
25782      ;;
25783    none) break ;;
25784    esac
25785    if depmode=$depmode \
25786       source=sub/conftest.c object=$am__obj \
25787       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25788       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25789         >/dev/null 2>conftest.err &&
25790       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25791       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25792       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25793       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25794      # icc doesn't choke on unknown options, it will just issue warnings
25795      # or remarks (even with -Werror).  So we grep stderr for any message
25796      # that says an option was ignored or not supported.
25797      # When given -MP, icc 7.0 and 7.1 complain thusly:
25798      #   icc: Command line warning: ignoring option '-M'; no argument required
25799      # The diagnosis changed in icc 8.0:
25800      #   icc: Command line remark: option '-MP' not supported
25801      if (grep 'ignoring option' conftest.err ||
25802          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25803        am_cv_CXX_dependencies_compiler_type=$depmode
25804        break
25805      fi
25806    fi
25807  done
25808
25809  cd ..
25810  rm -rf conftest.dir
25811else
25812  am_cv_CXX_dependencies_compiler_type=none
25813fi
25814
25815fi
25816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25817$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25818CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25819
25820 if
25821  test "x$enable_dependency_tracking" != xno \
25822  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25823  am__fastdepCXX_TRUE=
25824  am__fastdepCXX_FALSE='#'
25825else
25826  am__fastdepCXX_TRUE='#'
25827  am__fastdepCXX_FALSE=
25828fi
25829
25830
25831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25832$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25833if ${ax_cv_cxx_bool+:} false; then :
25834  $as_echo_n "(cached) " >&6
25835else
25836
25837 ac_ext=cpp
25838ac_cpp='$CXXCPP $CPPFLAGS'
25839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25842
25843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25844/* end confdefs.h.  */
25845
25846int f(int  x){return 1;}
25847int f(char x){return 1;}
25848int f(bool x){return 1;}
25849
25850int
25851main ()
25852{
25853bool b = true; return f(b);
25854  ;
25855  return 0;
25856}
25857_ACEOF
25858if ac_fn_cxx_try_compile "$LINENO"; then :
25859  ax_cv_cxx_bool=yes
25860else
25861  ax_cv_cxx_bool=no
25862fi
25863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25864 ac_ext=cpp
25865ac_cpp='$CXXCPP $CPPFLAGS'
25866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25869
25870
25871fi
25872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25873$as_echo "$ax_cv_cxx_bool" >&6; }
25874if test "$ax_cv_cxx_bool" = yes; then
25875
25876$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25877
25878fi
25879
25880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25881$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25882if ${ax_cv_cxx_namespaces+:} false; then :
25883  $as_echo_n "(cached) " >&6
25884else
25885
25886 ac_ext=cpp
25887ac_cpp='$CXXCPP $CPPFLAGS'
25888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25891
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893/* end confdefs.h.  */
25894namespace Outer { namespace Inner { int i = 0; }}
25895int
25896main ()
25897{
25898using namespace Outer::Inner; return i;
25899  ;
25900  return 0;
25901}
25902_ACEOF
25903if ac_fn_cxx_try_compile "$LINENO"; then :
25904  ax_cv_cxx_namespaces=yes
25905else
25906  ax_cv_cxx_namespaces=no
25907fi
25908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25909 ac_ext=cpp
25910ac_cpp='$CXXCPP $CPPFLAGS'
25911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25914
25915
25916fi
25917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25918$as_echo "$ax_cv_cxx_namespaces" >&6; }
25919if test "$ax_cv_cxx_namespaces" = yes; then
25920
25921$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25922
25923fi
25924
25925
25926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25927$as_echo_n "checking if g++ supports namespace std... " >&6; }
25928if ${ax_cv_cxx_have_std_namespace+:} false; then :
25929  $as_echo_n "(cached) " >&6
25930else
25931
25932  ac_ext=cpp
25933ac_cpp='$CXXCPP $CPPFLAGS'
25934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25937
25938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939/* end confdefs.h.  */
25940#include <iostream>
25941                  std::istream& is = std::cin;
25942int
25943main ()
25944{
25945
25946  ;
25947  return 0;
25948}
25949_ACEOF
25950if ac_fn_cxx_try_compile "$LINENO"; then :
25951  ax_cv_cxx_have_std_namespace=yes
25952else
25953  ax_cv_cxx_have_std_namespace=no
25954fi
25955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25956  ac_ext=cpp
25957ac_cpp='$CXXCPP $CPPFLAGS'
25958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25961
25962
25963fi
25964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25965$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25966  if test "$ax_cv_cxx_have_std_namespace" = yes; then
25967
25968$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25969
25970  fi
25971
25972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25973$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25974if ${ac_cv_cxx_have_std_libs+:} false; then :
25975  $as_echo_n "(cached) " >&6
25976else
25977
25978
25979 ac_ext=cpp
25980ac_cpp='$CXXCPP $CPPFLAGS'
25981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25984
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986/* end confdefs.h.  */
25987#include <iostream>
25988#include <map>
25989#include <iomanip>
25990#include <cmath>
25991#ifdef HAVE_NAMESPACES
25992using namespace std;
25993#endif
25994int
25995main ()
25996{
25997return 0;
25998  ;
25999  return 0;
26000}
26001_ACEOF
26002if ac_fn_cxx_try_compile "$LINENO"; then :
26003  ac_cv_cxx_have_std_libs=yes
26004else
26005  ac_cv_cxx_have_std_libs=no
26006fi
26007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008 ac_ext=cpp
26009ac_cpp='$CXXCPP $CPPFLAGS'
26010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26013
26014
26015fi
26016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26017$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26018if test "$ac_cv_cxx_have_std_libs" = yes; then
26019
26020$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26021
26022fi
26023
26024
26025  OPENMP_CXXFLAGS=
26026  # Check whether --enable-openmp was given.
26027if test "${enable_openmp+set}" = set; then :
26028  enableval=$enable_openmp;
26029fi
26030
26031  if test "$enable_openmp" != no; then
26032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26033$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26034if ${ac_cv_prog_cxx_openmp+:} false; then :
26035  $as_echo_n "(cached) " >&6
26036else
26037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26038/* end confdefs.h.  */
26039
26040#ifndef _OPENMP
26041 choke me
26042#endif
26043#include <omp.h>
26044int main () { return omp_get_num_threads (); }
26045
26046_ACEOF
26047if ac_fn_cxx_try_link "$LINENO"; then :
26048  ac_cv_prog_cxx_openmp='none needed'
26049else
26050  ac_cv_prog_cxx_openmp='unsupported'
26051	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26052                           -Popenmp --openmp; do
26053	    ac_save_CXXFLAGS=$CXXFLAGS
26054	    CXXFLAGS="$CXXFLAGS $ac_option"
26055	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056/* end confdefs.h.  */
26057
26058#ifndef _OPENMP
26059 choke me
26060#endif
26061#include <omp.h>
26062int main () { return omp_get_num_threads (); }
26063
26064_ACEOF
26065if ac_fn_cxx_try_link "$LINENO"; then :
26066  ac_cv_prog_cxx_openmp=$ac_option
26067fi
26068rm -f core conftest.err conftest.$ac_objext \
26069    conftest$ac_exeext conftest.$ac_ext
26070	    CXXFLAGS=$ac_save_CXXFLAGS
26071	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26072	      break
26073	    fi
26074	  done
26075fi
26076rm -f core conftest.err conftest.$ac_objext \
26077    conftest$ac_exeext conftest.$ac_ext
26078fi
26079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26080$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26081    case $ac_cv_prog_cxx_openmp in #(
26082      "none needed" | unsupported)
26083	;; #(
26084      *)
26085	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26086    esac
26087  fi
26088
26089
26090    ac_ext=c
26091ac_cpp='$CPP $CPPFLAGS'
26092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094ac_compiler_gnu=$ac_cv_c_compiler_gnu
26095
26096
26097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26098$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26099    if \
26100        test $ax_cv_cxx_bool = 'yes' && \
26101        test $ax_cv_cxx_namespaces = 'yes' && \
26102        test $ac_cv_cxx_have_std_libs = 'yes' && \
26103        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26104        have_magick_plus_plus='yes'
26105    else
26106        have_magick_plus_plus='no (failed tests)'
26107    fi
26108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26109$as_echo "$have_magick_plus_plus" >&6; }
26110    LIBS="$OLIBS"
26111fi
26112 if test "$have_magick_plus_plus" = 'yes'; then
26113  WITH_MAGICK_PLUS_PLUS_TRUE=
26114  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26115else
26116  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26117  WITH_MAGICK_PLUS_PLUS_FALSE=
26118fi
26119
26120
26121# Only check for delegate libraries in subdirectories if requested.
26122if test "$enable_delegate_build" != 'no'; then
26123    # Check for delegate sub-directories and add -I & -L options as required.
26124    # This presumes that delegates are installed as detailed in the ImageMagick
26125    # README. If delegates are installed in a standard location where the
26126    # compiler will automatically find them then these options should not be
26127    # required.
26128
26129    #
26130    # Most delegates have includes in the same directory as the library, but not all...
26131    #
26132    # Includes
26133    for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
26134        if test -d "$builddir/$dir"; then
26135            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26136        else
26137            if test -d "$srcdirfull/$dir"; then
26138                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26139            fi
26140        fi
26141    done
26142
26143    # Libraries
26144    for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
26145    if test -d "$builddir/$dir/.libs"; then
26146        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26147    else
26148        if test -d "$srcdirfull/$dir/.libs"; then
26149            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26150        fi
26151    fi
26152    if test -d "$builddir/$dir"; then
26153        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26154    else
26155        if test -d "$srcdirfull/$dir"; then
26156            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26157        fi
26158    fi
26159  done
26160fi
26161
26162# Assume that delegate headers reside under same directory as ImageMagick
26163# installation prefix.
26164MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
26165
26166#
26167# Find the X11 RGB database
26168#
26169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26170$as_echo_n "checking for X11 configure files... " >&6; }
26171if ${im_cv_x_configure+:} false; then :
26172  $as_echo_n "(cached) " >&6
26173else
26174  # Look for the header file in a standard set of common directories.
26175# Check X11 before X11Rn because it is often a symlink to the current release.
26176    for ac_dir in          \
26177    /lib/usr/lib/X11       \
26178    /usr/X11/lib           \
26179    /usr/X11R4/lib         \
26180    /usr/X11R5/lib         \
26181    /usr/X11R6/lib         \
26182    /usr/X11R7/lib         \
26183    /usr/X386/lib          \
26184    /usr/XFree86/lib/X11   \
26185    /usr/athena/lib        \
26186    /usr/lib               \
26187    /usr/lib/X11           \
26188    /usr/lib/X11R4         \
26189    /usr/lib/X11R5         \
26190    /usr/lib/X11R6         \
26191    /usr/lib/X11R7         \
26192    /usr/local/X11/lib     \
26193    /usr/local/X11R4/lib   \
26194    /usr/local/X11R5/lib   \
26195    /usr/local/X11R6/lib   \
26196    /usr/local/lib         \
26197    /usr/local/lib/X11     \
26198    /usr/local/lib/X11R4   \
26199    /usr/local/lib/X11R5   \
26200    /usr/local/lib/X11R6   \
26201    /usr/local/lib/X11R7   \
26202    /usr/local/x11r5/lib   \
26203    /usr/lpp/Xamples/lib   \
26204    /usr/openwin/lib       \
26205    /usr/openwin/share/lib \
26206    /usr/unsupported/lib   \
26207    /usr/x386/lib          \
26208    ; do
26209    if test -f "$ac_dir/X11/rgb.txt"; then
26210      im_cv_x_configure="$ac_dir/X11/"
26211      break
26212    elif test -f "$ac_dir/rgb.txt"; then
26213      im_cv_x_configure="$ac_dir/"
26214      break
26215    fi
26216
26217  done
26218fi
26219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
26220$as_echo "$im_cv_x_configure" >&6; }
26221X11_CONFIGURE_PATH="$im_cv_x_configure"
26222case "${build_os}" in
26223  mingw* )
26224    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26225  ;;
26226esac
26227
26228cat >>confdefs.h <<_ACEOF
26229#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26230_ACEOF
26231
26232
26233#
26234# Find OpenMP library
26235#
26236GOMP_LIBS=''
26237if test "$enable_openmp" != 'no'; then
26238  if test "${GCC}" = "yes"; then
26239    # Open64 (passes for GCC but uses different OpenMP implementation)
26240    if test "x$GOMP_LIBS" = x ; then
26241      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26242        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26243$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26244if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26245  $as_echo_n "(cached) " >&6
26246else
26247  ac_check_lib_save_LIBS=$LIBS
26248LIBS="-lopenmp  $LIBS"
26249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26250/* end confdefs.h.  */
26251
26252/* Override any GCC internal prototype to avoid an error.
26253   Use char because int might match the return type of a GCC
26254   builtin and then its argument prototype would still apply.  */
26255#ifdef __cplusplus
26256extern "C"
26257#endif
26258char omp_get_num_procs ();
26259int
26260main ()
26261{
26262return omp_get_num_procs ();
26263  ;
26264  return 0;
26265}
26266_ACEOF
26267if ac_fn_c_try_link "$LINENO"; then :
26268  ac_cv_lib_openmp_omp_get_num_procs=yes
26269else
26270  ac_cv_lib_openmp_omp_get_num_procs=no
26271fi
26272rm -f core conftest.err conftest.$ac_objext \
26273    conftest$ac_exeext conftest.$ac_ext
26274LIBS=$ac_check_lib_save_LIBS
26275fi
26276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26277$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26278if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26279  GOMP_LIBS="-lopenmp"
26280fi
26281
26282      fi
26283    fi
26284    # GCC
26285    if test "x$GOMP_LIBS" = x ; then
26286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
26287$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
26288if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
26289  $as_echo_n "(cached) " >&6
26290else
26291  ac_check_lib_save_LIBS=$LIBS
26292LIBS="-lgomp  $LIBS"
26293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26294/* end confdefs.h.  */
26295
26296/* Override any GCC internal prototype to avoid an error.
26297   Use char because int might match the return type of a GCC
26298   builtin and then its argument prototype would still apply.  */
26299#ifdef __cplusplus
26300extern "C"
26301#endif
26302char GOMP_parallel_start ();
26303int
26304main ()
26305{
26306return GOMP_parallel_start ();
26307  ;
26308  return 0;
26309}
26310_ACEOF
26311if ac_fn_c_try_link "$LINENO"; then :
26312  ac_cv_lib_gomp_GOMP_parallel_start=yes
26313else
26314  ac_cv_lib_gomp_GOMP_parallel_start=no
26315fi
26316rm -f core conftest.err conftest.$ac_objext \
26317    conftest$ac_exeext conftest.$ac_ext
26318LIBS=$ac_check_lib_save_LIBS
26319fi
26320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
26321$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
26322if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26323  GOMP_LIBS="-lgomp"
26324fi
26325
26326    fi
26327  else
26328    # Sun CC
26329    if test "x$GOMP_LIBS" = x ; then
26330      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26331$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26332if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26333  $as_echo_n "(cached) " >&6
26334else
26335  ac_check_lib_save_LIBS=$LIBS
26336LIBS="-lmtsk  $LIBS"
26337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338/* end confdefs.h.  */
26339
26340/* Override any GCC internal prototype to avoid an error.
26341   Use char because int might match the return type of a GCC
26342   builtin and then its argument prototype would still apply.  */
26343#ifdef __cplusplus
26344extern "C"
26345#endif
26346char sunw_mp_register_warn ();
26347int
26348main ()
26349{
26350return sunw_mp_register_warn ();
26351  ;
26352  return 0;
26353}
26354_ACEOF
26355if ac_fn_c_try_link "$LINENO"; then :
26356  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26357else
26358  ac_cv_lib_mtsk_sunw_mp_register_warn=no
26359fi
26360rm -f core conftest.err conftest.$ac_objext \
26361    conftest$ac_exeext conftest.$ac_ext
26362LIBS=$ac_check_lib_save_LIBS
26363fi
26364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26365$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26366if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26367  GOMP_LIBS="-lmtsk"
26368fi
26369
26370    fi
26371    # AIX xlc
26372    if test "x$GOMP_LIBS" = x ; then
26373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26374$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26375if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26376  $as_echo_n "(cached) " >&6
26377else
26378  ac_check_lib_save_LIBS=$LIBS
26379LIBS="-lxlsmp  $LIBS"
26380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26381/* end confdefs.h.  */
26382
26383/* Override any GCC internal prototype to avoid an error.
26384   Use char because int might match the return type of a GCC
26385   builtin and then its argument prototype would still apply.  */
26386#ifdef __cplusplus
26387extern "C"
26388#endif
26389char _xlsmpFlush ();
26390int
26391main ()
26392{
26393return _xlsmpFlush ();
26394  ;
26395  return 0;
26396}
26397_ACEOF
26398if ac_fn_c_try_link "$LINENO"; then :
26399  ac_cv_lib_xlsmp__xlsmpFlush=yes
26400else
26401  ac_cv_lib_xlsmp__xlsmpFlush=no
26402fi
26403rm -f core conftest.err conftest.$ac_objext \
26404    conftest$ac_exeext conftest.$ac_ext
26405LIBS=$ac_check_lib_save_LIBS
26406fi
26407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26408$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26409if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26410  GOMP_LIBS="-lxlsmp"
26411fi
26412
26413    fi
26414    # SGI IRIX 6.5 MIPSpro C/C++
26415    if test "x$GOMP_LIBS" = x ; then
26416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26417$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26418if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26419  $as_echo_n "(cached) " >&6
26420else
26421  ac_check_lib_save_LIBS=$LIBS
26422LIBS="-lmp  $LIBS"
26423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26424/* end confdefs.h.  */
26425
26426/* Override any GCC internal prototype to avoid an error.
26427   Use char because int might match the return type of a GCC
26428   builtin and then its argument prototype would still apply.  */
26429#ifdef __cplusplus
26430extern "C"
26431#endif
26432char mp_destroy ();
26433int
26434main ()
26435{
26436return mp_destroy ();
26437  ;
26438  return 0;
26439}
26440_ACEOF
26441if ac_fn_c_try_link "$LINENO"; then :
26442  ac_cv_lib_mp_mp_destroy=yes
26443else
26444  ac_cv_lib_mp_mp_destroy=no
26445fi
26446rm -f core conftest.err conftest.$ac_objext \
26447    conftest$ac_exeext conftest.$ac_ext
26448LIBS=$ac_check_lib_save_LIBS
26449fi
26450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26451$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26452if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26453  GOMP_LIBS="-lmp"
26454fi
26455
26456    fi
26457  fi
26458  LIBS="$GOMP_LIBS $LIBS"
26459fi
26460
26461
26462#
26463# Find Posix threads library
26464#
26465THREAD_LIBS=''
26466if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26467
26468    if test "x$PTHREAD_LIBS" = "x"; then
26469    case "${host_cpu}-${host_os}" in
26470      *-freebsd*)
26471
26472
26473
26474ac_ext=c
26475ac_cpp='$CPP $CPPFLAGS'
26476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26478ac_compiler_gnu=$ac_cv_c_compiler_gnu
26479
26480magick_pthread_lib_ok=no
26481
26482LIB=-lc_r
26483save_LIBS="$LIBS"
26484LIBS="$LIBS $LIB"
26485
26486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26487$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26489/* end confdefs.h.  */
26490#include <pthread.h>
26491int
26492main ()
26493{
26494  pthread_t th;
26495  pthread_join(th, 0);
26496  pthread_attr_init(0);
26497  pthread_cleanup_push(0, 0);
26498  pthread_create(0,0,0,0);
26499  pthread_cleanup_pop(0);
26500  ;
26501  return 0;
26502}
26503_ACEOF
26504if ac_fn_c_try_link "$LINENO"; then :
26505  magick_pthread_lib_ok=yes
26506fi
26507rm -f core conftest.err conftest.$ac_objext \
26508    conftest$ac_exeext conftest.$ac_ext
26509
26510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26511$as_echo "${magick_pthread_lib_ok}" >&6; }
26512if test "$magick_pthread_lib_ok" = yes
26513then
26514  PTHREAD_LIBS=-lc_r
26515  :
26516else
26517
26518  :
26519fi
26520
26521LIBS="$save_LIBS"
26522
26523ac_ext=c
26524ac_cpp='$CPP $CPPFLAGS'
26525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26527ac_compiler_gnu=$ac_cv_c_compiler_gnu
26528
26529 ;;
26530    esac
26531    fi
26532
26533    for lib in pthread pthreads; do
26534        if test "x$PTHREAD_LIBS" = "x"; then
26535
26536
26537
26538ac_ext=c
26539ac_cpp='$CPP $CPPFLAGS'
26540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26542ac_compiler_gnu=$ac_cv_c_compiler_gnu
26543
26544magick_pthread_lib_ok=no
26545
26546LIB=-l$lib
26547save_LIBS="$LIBS"
26548LIBS="$LIBS $LIB"
26549
26550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26551$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553/* end confdefs.h.  */
26554#include <pthread.h>
26555int
26556main ()
26557{
26558  pthread_t th;
26559  pthread_join(th, 0);
26560  pthread_attr_init(0);
26561  pthread_cleanup_push(0, 0);
26562  pthread_create(0,0,0,0);
26563  pthread_cleanup_pop(0);
26564  ;
26565  return 0;
26566}
26567_ACEOF
26568if ac_fn_c_try_link "$LINENO"; then :
26569  magick_pthread_lib_ok=yes
26570fi
26571rm -f core conftest.err conftest.$ac_objext \
26572    conftest$ac_exeext conftest.$ac_ext
26573
26574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26575$as_echo "${magick_pthread_lib_ok}" >&6; }
26576if test "$magick_pthread_lib_ok" = yes
26577then
26578  PTHREAD_LIBS=-l$lib
26579  :
26580else
26581
26582  :
26583fi
26584
26585LIBS="$save_LIBS"
26586
26587ac_ext=c
26588ac_cpp='$CPP $CPPFLAGS'
26589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26591ac_compiler_gnu=$ac_cv_c_compiler_gnu
26592
26593
26594        fi
26595    done
26596
26597    THREAD_LIBS="$PTHREAD_LIBS"
26598    LIBS="$LIBS $THREAD_LIBS"
26599fi
26600
26601
26602#
26603# Check for umem.
26604#
26605have_umem='no'
26606UMEM_LIBS=''
26607if test "$with_umem" != 'no'; then
26608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26609$as_echo_n "checking for UMEM support ... " >&6; }
26610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26611$as_echo "" >&6; }
26612  failed=0
26613  passed=0
26614  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26615if test "x$ac_cv_header_umem_h" = xyes; then :
26616  passed=`expr $passed + 1`
26617else
26618  failed=`expr $failed + 1`
26619fi
26620
26621
26622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26623$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26624if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26625  $as_echo_n "(cached) " >&6
26626else
26627  ac_check_lib_save_LIBS=$LIBS
26628LIBS="-lumem  $LIBS"
26629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630/* end confdefs.h.  */
26631
26632/* Override any GCC internal prototype to avoid an error.
26633   Use char because int might match the return type of a GCC
26634   builtin and then its argument prototype would still apply.  */
26635#ifdef __cplusplus
26636extern "C"
26637#endif
26638char umem_alloc ();
26639int
26640main ()
26641{
26642return umem_alloc ();
26643  ;
26644  return 0;
26645}
26646_ACEOF
26647if ac_fn_c_try_link "$LINENO"; then :
26648  ac_cv_lib_umem_umem_alloc=yes
26649else
26650  ac_cv_lib_umem_umem_alloc=no
26651fi
26652rm -f core conftest.err conftest.$ac_objext \
26653    conftest$ac_exeext conftest.$ac_ext
26654LIBS=$ac_check_lib_save_LIBS
26655fi
26656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26657$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26658if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26659  passed=`expr $passed + 1`
26660else
26661  failed=`expr $failed + 1`
26662fi
26663
26664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26665$as_echo_n "checking for umem_free in -lumem... " >&6; }
26666if ${ac_cv_lib_umem_umem_free+:} false; then :
26667  $as_echo_n "(cached) " >&6
26668else
26669  ac_check_lib_save_LIBS=$LIBS
26670LIBS="-lumem  $LIBS"
26671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672/* end confdefs.h.  */
26673
26674/* Override any GCC internal prototype to avoid an error.
26675   Use char because int might match the return type of a GCC
26676   builtin and then its argument prototype would still apply.  */
26677#ifdef __cplusplus
26678extern "C"
26679#endif
26680char umem_free ();
26681int
26682main ()
26683{
26684return umem_free ();
26685  ;
26686  return 0;
26687}
26688_ACEOF
26689if ac_fn_c_try_link "$LINENO"; then :
26690  ac_cv_lib_umem_umem_free=yes
26691else
26692  ac_cv_lib_umem_umem_free=no
26693fi
26694rm -f core conftest.err conftest.$ac_objext \
26695    conftest$ac_exeext conftest.$ac_ext
26696LIBS=$ac_check_lib_save_LIBS
26697fi
26698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26699$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26700if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26701  passed=`expr $passed + 1`
26702else
26703  failed=`expr $failed + 1`
26704fi
26705
26706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26707$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26708  if test $passed -gt 0; then
26709    if test $failed -gt 0; then
26710      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26711$as_echo "no -- some components failed test" >&6; }
26712      have_umem='no (failed tests)'
26713    else
26714      UMEM_LIBS='-lumem'
26715      LIBS="$UMEM_LIBS $LIBS"
26716
26717$as_echo "#define HasUMEM 1" >>confdefs.h
26718
26719      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26720$as_echo "yes" >&6; }
26721      have_umem='yes'
26722    fi
26723  else
26724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26725$as_echo "no" >&6; }
26726  fi
26727fi
26728 if test "$have_umem" = 'yes'; then
26729  HasUMEM_TRUE=
26730  HasUMEM_FALSE='#'
26731else
26732  HasUMEM_TRUE='#'
26733  HasUMEM_FALSE=
26734fi
26735
26736
26737
26738#
26739# Add support for ccmalloc memory debugging library if requested
26740#
26741have_ccmalloc='no'
26742CCMALLOC_LIBS=''
26743if test "$enable_ccmalloc" = 'yes'; then
26744    # Extract the first word of "ccmalloc", so it can be a program name with args.
26745set dummy ccmalloc; ac_word=$2
26746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26747$as_echo_n "checking for $ac_word... " >&6; }
26748if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26749  $as_echo_n "(cached) " >&6
26750else
26751  case $CCMALLOCDelegate in
26752  [\\/]* | ?:[\\/]*)
26753  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26754  ;;
26755  *)
26756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26757for as_dir in $PATH
26758do
26759  IFS=$as_save_IFS
26760  test -z "$as_dir" && as_dir=.
26761    for ac_exec_ext in '' $ac_executable_extensions; do
26762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26763    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26765    break 2
26766  fi
26767done
26768  done
26769IFS=$as_save_IFS
26770
26771  ;;
26772esac
26773fi
26774CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26775if test -n "$CCMALLOCDelegate"; then
26776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26777$as_echo "$CCMALLOCDelegate" >&6; }
26778else
26779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26780$as_echo "no" >&6; }
26781fi
26782
26783
26784    if test -n "$CCMALLOCDelegate"; then
26785        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26786        OLIBS="$LIBS"
26787        # Assume that gcc is used with ccmalloc.
26788        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26789       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26790$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26791if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26792  $as_echo_n "(cached) " >&6
26793else
26794  ac_check_lib_save_LIBS=$LIBS
26795LIBS="-lccmalloc -ldl $LIBS"
26796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26797/* end confdefs.h.  */
26798
26799/* Override any GCC internal prototype to avoid an error.
26800   Use char because int might match the return type of a GCC
26801   builtin and then its argument prototype would still apply.  */
26802#ifdef __cplusplus
26803extern "C"
26804#endif
26805char ccmalloc_malloc ();
26806int
26807main ()
26808{
26809return ccmalloc_malloc ();
26810  ;
26811  return 0;
26812}
26813_ACEOF
26814if ac_fn_c_try_link "$LINENO"; then :
26815  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26816else
26817  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26818fi
26819rm -f core conftest.err conftest.$ac_objext \
26820    conftest$ac_exeext conftest.$ac_ext
26821LIBS=$ac_check_lib_save_LIBS
26822fi
26823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26824$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26825if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26826  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26827fi
26828
26829        if test -n "$CCMALLOC_LIBS"; then
26830            LIBS="$OLIBS"
26831            LIBS="$LIBS $CCMALLOC_LIBS"
26832            have_ccmalloc='yes'
26833        else
26834            LIBS="$OLIBS"
26835        fi
26836    fi
26837fi
26838
26839#
26840# Add support for 'huge pages' if requested
26841#
26842if test "x$enable_hugepages" != "xno"; then :
26843
26844
26845$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26846
26847
26848fi
26849
26850#
26851# Add support for efence memory debugging library if requested
26852#
26853if test "$enable_efence" = 'yes'; then
26854    EFENCE_LIBS='-lefence'
26855    LIBS="$EFENCE_LIBS $LIBS"
26856fi
26857
26858
26859#
26860# Check for BZLIB
26861#
26862
26863
26864# Check whether --with-bzlib was given.
26865if test "${with_bzlib+set}" = set; then :
26866  withval=$with_bzlib; with_bzlib=$withval
26867else
26868  with_bzlib='yes'
26869fi
26870
26871
26872if test "$with_bzlib" != 'yes'; then
26873    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26874fi
26875
26876have_bzlib='no'
26877if test "$with_bzlib" != 'no'; then
26878    BZLIB_LIBS=''
26879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26880$as_echo "-------------------------------------------------------------" >&6; }
26881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26882$as_echo_n "checking for BZLIB... " >&6; }
26883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26884$as_echo "" >&6; }
26885    failed=0
26886    passed=0
26887    found_libbz=0
26888    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26889if test "x$ac_cv_header_bzlib_h" = xyes; then :
26890  passed=`expr $passed + 1`
26891else
26892  failed=`expr $failed + 1`
26893fi
26894
26895
26896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26897$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26898if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26899  $as_echo_n "(cached) " >&6
26900else
26901  ac_check_lib_save_LIBS=$LIBS
26902LIBS="-lbz2  $LIBS"
26903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904/* end confdefs.h.  */
26905
26906/* Override any GCC internal prototype to avoid an error.
26907   Use char because int might match the return type of a GCC
26908   builtin and then its argument prototype would still apply.  */
26909#ifdef __cplusplus
26910extern "C"
26911#endif
26912char BZ2_bzDecompress ();
26913int
26914main ()
26915{
26916return BZ2_bzDecompress ();
26917  ;
26918  return 0;
26919}
26920_ACEOF
26921if ac_fn_c_try_link "$LINENO"; then :
26922  ac_cv_lib_bz2_BZ2_bzDecompress=yes
26923else
26924  ac_cv_lib_bz2_BZ2_bzDecompress=no
26925fi
26926rm -f core conftest.err conftest.$ac_objext \
26927    conftest$ac_exeext conftest.$ac_ext
26928LIBS=$ac_check_lib_save_LIBS
26929fi
26930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26931$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26932if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26933  found_libbz=`expr $found_libbz + 1`
26934fi
26935
26936    if test "$native_win32_build" = 'yes'; then
26937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26938$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26939if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26940  $as_echo_n "(cached) " >&6
26941else
26942  ac_check_lib_save_LIBS=$LIBS
26943LIBS="-lbz2  $LIBS"
26944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945/* end confdefs.h.  */
26946
26947/* Override any GCC internal prototype to avoid an error.
26948   Use char because int might match the return type of a GCC
26949   builtin and then its argument prototype would still apply.  */
26950#ifdef __cplusplus
26951extern "C"
26952#endif
26953char _imp__BZ2_decompress ();
26954int
26955main ()
26956{
26957return _imp__BZ2_decompress ();
26958  ;
26959  return 0;
26960}
26961_ACEOF
26962if ac_fn_c_try_link "$LINENO"; then :
26963  ac_cv_lib_bz2__imp__BZ2_decompress=yes
26964else
26965  ac_cv_lib_bz2__imp__BZ2_decompress=no
26966fi
26967rm -f core conftest.err conftest.$ac_objext \
26968    conftest$ac_exeext conftest.$ac_ext
26969LIBS=$ac_check_lib_save_LIBS
26970fi
26971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26972$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26973if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26974  found_libbz=`expr $found_libbz + 1`
26975fi
26976
26977    fi
26978    if test $found_libbz -gt 0; then
26979      passed=`expr $passed + 1`
26980    else
26981      failed=`expr $failed + 1`
26982    fi
26983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26984$as_echo_n "checking if BZLIB package is complete... " >&6; }
26985    if test $passed -gt 0; then
26986      if test $failed -gt 0; then
26987        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26988$as_echo "no -- some components failed test" >&6; }
26989        have_bzlib='no (failed tests)'
26990      else
26991        BZLIB_LIBS='-lbz2'
26992        LIBS="$BZLIB_LIBS $LIBS"
26993
26994$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26995
26996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26997$as_echo "yes" >&6; }
26998        have_bzlib='yes'
26999      fi
27000    else
27001      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27002$as_echo "no" >&6; }
27003    fi
27004fi
27005 if test "$have_bzlib" = 'yes'; then
27006  BZLIB_DELEGATE_TRUE=
27007  BZLIB_DELEGATE_FALSE='#'
27008else
27009  BZLIB_DELEGATE_TRUE='#'
27010  BZLIB_DELEGATE_FALSE=
27011fi
27012
27013
27014
27015#
27016# Find the X11 include and library directories.
27017#
27018IPC_LIBS=''
27019X11_LIBS=''
27020XEXT_LIBS=''
27021XT_LIBS=''
27022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
27023$as_echo_n "checking for X... " >&6; }
27024
27025
27026# Check whether --with-x was given.
27027if test "${with_x+set}" = set; then :
27028  withval=$with_x;
27029fi
27030
27031# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27032if test "x$with_x" = xno; then
27033  # The user explicitly disabled X.
27034  have_x=disabled
27035else
27036  case $x_includes,$x_libraries in #(
27037    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
27038    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
27039  $as_echo_n "(cached) " >&6
27040else
27041  # One or both of the vars are not set, and there is no cached value.
27042ac_x_includes=no ac_x_libraries=no
27043rm -f -r conftest.dir
27044if mkdir conftest.dir; then
27045  cd conftest.dir
27046  cat >Imakefile <<'_ACEOF'
27047incroot:
27048	@echo incroot='${INCROOT}'
27049usrlibdir:
27050	@echo usrlibdir='${USRLIBDIR}'
27051libdir:
27052	@echo libdir='${LIBDIR}'
27053_ACEOF
27054  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27055    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27056    for ac_var in incroot usrlibdir libdir; do
27057      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27058    done
27059    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27060    for ac_extension in a so sl dylib la dll; do
27061      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27062	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27063	ac_im_usrlibdir=$ac_im_libdir; break
27064      fi
27065    done
27066    # Screen out bogus values from the imake configuration.  They are
27067    # bogus both because they are the default anyway, and because
27068    # using them would break gcc on systems where it needs fixed includes.
27069    case $ac_im_incroot in
27070	/usr/include) ac_x_includes= ;;
27071	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27072    esac
27073    case $ac_im_usrlibdir in
27074	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
27075	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27076    esac
27077  fi
27078  cd ..
27079  rm -f -r conftest.dir
27080fi
27081
27082# Standard set of common directories for X headers.
27083# Check X11 before X11Rn because it is often a symlink to the current release.
27084ac_x_header_dirs='
27085/usr/X11/include
27086/usr/X11R7/include
27087/usr/X11R6/include
27088/usr/X11R5/include
27089/usr/X11R4/include
27090
27091/usr/include/X11
27092/usr/include/X11R7
27093/usr/include/X11R6
27094/usr/include/X11R5
27095/usr/include/X11R4
27096
27097/usr/local/X11/include
27098/usr/local/X11R7/include
27099/usr/local/X11R6/include
27100/usr/local/X11R5/include
27101/usr/local/X11R4/include
27102
27103/usr/local/include/X11
27104/usr/local/include/X11R7
27105/usr/local/include/X11R6
27106/usr/local/include/X11R5
27107/usr/local/include/X11R4
27108
27109/usr/X386/include
27110/usr/x386/include
27111/usr/XFree86/include/X11
27112
27113/usr/include
27114/usr/local/include
27115/usr/unsupported/include
27116/usr/athena/include
27117/usr/local/x11r5/include
27118/usr/lpp/Xamples/include
27119
27120/usr/openwin/include
27121/usr/openwin/share/include'
27122
27123if test "$ac_x_includes" = no; then
27124  # Guess where to find include files, by looking for Xlib.h.
27125  # First, try using that file with no special directory specified.
27126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127/* end confdefs.h.  */
27128#include <X11/Xlib.h>
27129_ACEOF
27130if ac_fn_c_try_cpp "$LINENO"; then :
27131  # We can compile using X headers with no special include directory.
27132ac_x_includes=
27133else
27134  for ac_dir in $ac_x_header_dirs; do
27135  if test -r "$ac_dir/X11/Xlib.h"; then
27136    ac_x_includes=$ac_dir
27137    break
27138  fi
27139done
27140fi
27141rm -f conftest.err conftest.i conftest.$ac_ext
27142fi # $ac_x_includes = no
27143
27144if test "$ac_x_libraries" = no; then
27145  # Check for the libraries.
27146  # See if we find them without any special options.
27147  # Don't add to $LIBS permanently.
27148  ac_save_LIBS=$LIBS
27149  LIBS="-lX11 $LIBS"
27150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27151/* end confdefs.h.  */
27152#include <X11/Xlib.h>
27153int
27154main ()
27155{
27156XrmInitialize ()
27157  ;
27158  return 0;
27159}
27160_ACEOF
27161if ac_fn_c_try_link "$LINENO"; then :
27162  LIBS=$ac_save_LIBS
27163# We can link X programs with no special library path.
27164ac_x_libraries=
27165else
27166  LIBS=$ac_save_LIBS
27167for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27168do
27169  # Don't even attempt the hair of trying to link an X program!
27170  for ac_extension in a so sl dylib la dll; do
27171    if test -r "$ac_dir/libX11.$ac_extension"; then
27172      ac_x_libraries=$ac_dir
27173      break 2
27174    fi
27175  done
27176done
27177fi
27178rm -f core conftest.err conftest.$ac_objext \
27179    conftest$ac_exeext conftest.$ac_ext
27180fi # $ac_x_libraries = no
27181
27182case $ac_x_includes,$ac_x_libraries in #(
27183  no,* | *,no | *\'*)
27184    # Didn't find X, or a directory has "'" in its name.
27185    ac_cv_have_x="have_x=no";; #(
27186  *)
27187    # Record where we found X for the cache.
27188    ac_cv_have_x="have_x=yes\
27189	ac_x_includes='$ac_x_includes'\
27190	ac_x_libraries='$ac_x_libraries'"
27191esac
27192fi
27193;; #(
27194    *) have_x=yes;;
27195  esac
27196  eval "$ac_cv_have_x"
27197fi # $with_x != no
27198
27199if test "$have_x" != yes; then
27200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
27201$as_echo "$have_x" >&6; }
27202  no_x=yes
27203else
27204  # If each of the values was on the command line, it overrides each guess.
27205  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27206  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27207  # Update the cache value to reflect the command line values.
27208  ac_cv_have_x="have_x=yes\
27209	ac_x_includes='$x_includes'\
27210	ac_x_libraries='$x_libraries'"
27211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
27212$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27213fi
27214
27215if test "$no_x" = yes; then
27216  # Not all programs may use this symbol, but it does not hurt to define it.
27217
27218$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
27219
27220  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27221else
27222  if test -n "$x_includes"; then
27223    X_CFLAGS="$X_CFLAGS -I$x_includes"
27224  fi
27225
27226  # It would also be nice to do this for all -L options, not just this one.
27227  if test -n "$x_libraries"; then
27228    X_LIBS="$X_LIBS -L$x_libraries"
27229    # For Solaris; some versions of Sun CC require a space after -R and
27230    # others require no space.  Words are not sufficient . . . .
27231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
27232$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27233    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27234    ac_xsave_c_werror_flag=$ac_c_werror_flag
27235    ac_c_werror_flag=yes
27236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27237/* end confdefs.h.  */
27238
27239int
27240main ()
27241{
27242
27243  ;
27244  return 0;
27245}
27246_ACEOF
27247if ac_fn_c_try_link "$LINENO"; then :
27248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27249$as_echo "no" >&6; }
27250       X_LIBS="$X_LIBS -R$x_libraries"
27251else
27252  LIBS="$ac_xsave_LIBS -R $x_libraries"
27253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27254/* end confdefs.h.  */
27255
27256int
27257main ()
27258{
27259
27260  ;
27261  return 0;
27262}
27263_ACEOF
27264if ac_fn_c_try_link "$LINENO"; then :
27265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27266$as_echo "yes" >&6; }
27267	  X_LIBS="$X_LIBS -R $x_libraries"
27268else
27269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
27270$as_echo "neither works" >&6; }
27271fi
27272rm -f core conftest.err conftest.$ac_objext \
27273    conftest$ac_exeext conftest.$ac_ext
27274fi
27275rm -f core conftest.err conftest.$ac_objext \
27276    conftest$ac_exeext conftest.$ac_ext
27277    ac_c_werror_flag=$ac_xsave_c_werror_flag
27278    LIBS=$ac_xsave_LIBS
27279  fi
27280
27281  # Check for system-dependent libraries X programs must link with.
27282  # Do this before checking for the system-independent R6 libraries
27283  # (-lICE), since we may need -lsocket or whatever for X linking.
27284
27285  if test "$ISC" = yes; then
27286    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27287  else
27288    # Martyn Johnson says this is needed for Ultrix, if the X
27289    # libraries were built with DECnet support.  And Karl Berry says
27290    # the Alpha needs dnet_stub (dnet does not exist).
27291    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27293/* end confdefs.h.  */
27294
27295/* Override any GCC internal prototype to avoid an error.
27296   Use char because int might match the return type of a GCC
27297   builtin and then its argument prototype would still apply.  */
27298#ifdef __cplusplus
27299extern "C"
27300#endif
27301char XOpenDisplay ();
27302int
27303main ()
27304{
27305return XOpenDisplay ();
27306  ;
27307  return 0;
27308}
27309_ACEOF
27310if ac_fn_c_try_link "$LINENO"; then :
27311
27312else
27313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
27314$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
27315if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
27316  $as_echo_n "(cached) " >&6
27317else
27318  ac_check_lib_save_LIBS=$LIBS
27319LIBS="-ldnet  $LIBS"
27320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321/* end confdefs.h.  */
27322
27323/* Override any GCC internal prototype to avoid an error.
27324   Use char because int might match the return type of a GCC
27325   builtin and then its argument prototype would still apply.  */
27326#ifdef __cplusplus
27327extern "C"
27328#endif
27329char dnet_ntoa ();
27330int
27331main ()
27332{
27333return dnet_ntoa ();
27334  ;
27335  return 0;
27336}
27337_ACEOF
27338if ac_fn_c_try_link "$LINENO"; then :
27339  ac_cv_lib_dnet_dnet_ntoa=yes
27340else
27341  ac_cv_lib_dnet_dnet_ntoa=no
27342fi
27343rm -f core conftest.err conftest.$ac_objext \
27344    conftest$ac_exeext conftest.$ac_ext
27345LIBS=$ac_check_lib_save_LIBS
27346fi
27347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27348$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27349if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27350  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27351fi
27352
27353    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27354      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27355$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27356if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27357  $as_echo_n "(cached) " >&6
27358else
27359  ac_check_lib_save_LIBS=$LIBS
27360LIBS="-ldnet_stub  $LIBS"
27361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27362/* end confdefs.h.  */
27363
27364/* Override any GCC internal prototype to avoid an error.
27365   Use char because int might match the return type of a GCC
27366   builtin and then its argument prototype would still apply.  */
27367#ifdef __cplusplus
27368extern "C"
27369#endif
27370char dnet_ntoa ();
27371int
27372main ()
27373{
27374return dnet_ntoa ();
27375  ;
27376  return 0;
27377}
27378_ACEOF
27379if ac_fn_c_try_link "$LINENO"; then :
27380  ac_cv_lib_dnet_stub_dnet_ntoa=yes
27381else
27382  ac_cv_lib_dnet_stub_dnet_ntoa=no
27383fi
27384rm -f core conftest.err conftest.$ac_objext \
27385    conftest$ac_exeext conftest.$ac_ext
27386LIBS=$ac_check_lib_save_LIBS
27387fi
27388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27389$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27390if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27391  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27392fi
27393
27394    fi
27395fi
27396rm -f core conftest.err conftest.$ac_objext \
27397    conftest$ac_exeext conftest.$ac_ext
27398    LIBS="$ac_xsave_LIBS"
27399
27400    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27401    # to get the SysV transport functions.
27402    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27403    # needs -lnsl.
27404    # The nsl library prevents programs from opening the X display
27405    # on Irix 5.2, according to T.E. Dickey.
27406    # The functions gethostbyname, getservbyname, and inet_addr are
27407    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27408    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27409if test "x$ac_cv_func_gethostbyname" = xyes; then :
27410
27411fi
27412
27413    if test $ac_cv_func_gethostbyname = no; then
27414      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27415$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27416if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27417  $as_echo_n "(cached) " >&6
27418else
27419  ac_check_lib_save_LIBS=$LIBS
27420LIBS="-lnsl  $LIBS"
27421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27422/* end confdefs.h.  */
27423
27424/* Override any GCC internal prototype to avoid an error.
27425   Use char because int might match the return type of a GCC
27426   builtin and then its argument prototype would still apply.  */
27427#ifdef __cplusplus
27428extern "C"
27429#endif
27430char gethostbyname ();
27431int
27432main ()
27433{
27434return gethostbyname ();
27435  ;
27436  return 0;
27437}
27438_ACEOF
27439if ac_fn_c_try_link "$LINENO"; then :
27440  ac_cv_lib_nsl_gethostbyname=yes
27441else
27442  ac_cv_lib_nsl_gethostbyname=no
27443fi
27444rm -f core conftest.err conftest.$ac_objext \
27445    conftest$ac_exeext conftest.$ac_ext
27446LIBS=$ac_check_lib_save_LIBS
27447fi
27448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27449$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27450if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27451  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27452fi
27453
27454      if test $ac_cv_lib_nsl_gethostbyname = no; then
27455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27456$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27457if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27458  $as_echo_n "(cached) " >&6
27459else
27460  ac_check_lib_save_LIBS=$LIBS
27461LIBS="-lbsd  $LIBS"
27462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27463/* end confdefs.h.  */
27464
27465/* Override any GCC internal prototype to avoid an error.
27466   Use char because int might match the return type of a GCC
27467   builtin and then its argument prototype would still apply.  */
27468#ifdef __cplusplus
27469extern "C"
27470#endif
27471char gethostbyname ();
27472int
27473main ()
27474{
27475return gethostbyname ();
27476  ;
27477  return 0;
27478}
27479_ACEOF
27480if ac_fn_c_try_link "$LINENO"; then :
27481  ac_cv_lib_bsd_gethostbyname=yes
27482else
27483  ac_cv_lib_bsd_gethostbyname=no
27484fi
27485rm -f core conftest.err conftest.$ac_objext \
27486    conftest$ac_exeext conftest.$ac_ext
27487LIBS=$ac_check_lib_save_LIBS
27488fi
27489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27490$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27491if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27492  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27493fi
27494
27495      fi
27496    fi
27497
27498    # lieder@skyler.mavd.honeywell.com says without -lsocket,
27499    # socket/setsockopt and other routines are undefined under SCO ODT
27500    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27501    # on later versions), says Simon Leinen: it contains gethostby*
27502    # variants that don't use the name server (or something).  -lsocket
27503    # must be given before -lnsl if both are needed.  We assume that
27504    # if connect needs -lnsl, so does gethostbyname.
27505    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27506if test "x$ac_cv_func_connect" = xyes; then :
27507
27508fi
27509
27510    if test $ac_cv_func_connect = no; then
27511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27512$as_echo_n "checking for connect in -lsocket... " >&6; }
27513if ${ac_cv_lib_socket_connect+:} false; then :
27514  $as_echo_n "(cached) " >&6
27515else
27516  ac_check_lib_save_LIBS=$LIBS
27517LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27519/* end confdefs.h.  */
27520
27521/* Override any GCC internal prototype to avoid an error.
27522   Use char because int might match the return type of a GCC
27523   builtin and then its argument prototype would still apply.  */
27524#ifdef __cplusplus
27525extern "C"
27526#endif
27527char connect ();
27528int
27529main ()
27530{
27531return connect ();
27532  ;
27533  return 0;
27534}
27535_ACEOF
27536if ac_fn_c_try_link "$LINENO"; then :
27537  ac_cv_lib_socket_connect=yes
27538else
27539  ac_cv_lib_socket_connect=no
27540fi
27541rm -f core conftest.err conftest.$ac_objext \
27542    conftest$ac_exeext conftest.$ac_ext
27543LIBS=$ac_check_lib_save_LIBS
27544fi
27545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27546$as_echo "$ac_cv_lib_socket_connect" >&6; }
27547if test "x$ac_cv_lib_socket_connect" = xyes; then :
27548  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27549fi
27550
27551    fi
27552
27553    # Guillermo Gomez says -lposix is necessary on A/UX.
27554    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27555if test "x$ac_cv_func_remove" = xyes; then :
27556
27557fi
27558
27559    if test $ac_cv_func_remove = no; then
27560      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27561$as_echo_n "checking for remove in -lposix... " >&6; }
27562if ${ac_cv_lib_posix_remove+:} false; then :
27563  $as_echo_n "(cached) " >&6
27564else
27565  ac_check_lib_save_LIBS=$LIBS
27566LIBS="-lposix  $LIBS"
27567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27568/* end confdefs.h.  */
27569
27570/* Override any GCC internal prototype to avoid an error.
27571   Use char because int might match the return type of a GCC
27572   builtin and then its argument prototype would still apply.  */
27573#ifdef __cplusplus
27574extern "C"
27575#endif
27576char remove ();
27577int
27578main ()
27579{
27580return remove ();
27581  ;
27582  return 0;
27583}
27584_ACEOF
27585if ac_fn_c_try_link "$LINENO"; then :
27586  ac_cv_lib_posix_remove=yes
27587else
27588  ac_cv_lib_posix_remove=no
27589fi
27590rm -f core conftest.err conftest.$ac_objext \
27591    conftest$ac_exeext conftest.$ac_ext
27592LIBS=$ac_check_lib_save_LIBS
27593fi
27594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27595$as_echo "$ac_cv_lib_posix_remove" >&6; }
27596if test "x$ac_cv_lib_posix_remove" = xyes; then :
27597  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27598fi
27599
27600    fi
27601
27602    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27603    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27604if test "x$ac_cv_func_shmat" = xyes; then :
27605
27606fi
27607
27608    if test $ac_cv_func_shmat = no; then
27609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27610$as_echo_n "checking for shmat in -lipc... " >&6; }
27611if ${ac_cv_lib_ipc_shmat+:} false; then :
27612  $as_echo_n "(cached) " >&6
27613else
27614  ac_check_lib_save_LIBS=$LIBS
27615LIBS="-lipc  $LIBS"
27616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27617/* end confdefs.h.  */
27618
27619/* Override any GCC internal prototype to avoid an error.
27620   Use char because int might match the return type of a GCC
27621   builtin and then its argument prototype would still apply.  */
27622#ifdef __cplusplus
27623extern "C"
27624#endif
27625char shmat ();
27626int
27627main ()
27628{
27629return shmat ();
27630  ;
27631  return 0;
27632}
27633_ACEOF
27634if ac_fn_c_try_link "$LINENO"; then :
27635  ac_cv_lib_ipc_shmat=yes
27636else
27637  ac_cv_lib_ipc_shmat=no
27638fi
27639rm -f core conftest.err conftest.$ac_objext \
27640    conftest$ac_exeext conftest.$ac_ext
27641LIBS=$ac_check_lib_save_LIBS
27642fi
27643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27644$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27645if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27646  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27647fi
27648
27649    fi
27650  fi
27651
27652  # Check for libraries that X11R6 Xt/Xaw programs need.
27653  ac_save_LDFLAGS=$LDFLAGS
27654  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27655  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27656  # check for ICE first), but we must link in the order -lSM -lICE or
27657  # we get undefined symbols.  So assume we have SM if we have ICE.
27658  # These have to be linked with before -lX11, unlike the other
27659  # libraries we check for below, so use a different variable.
27660  # John Interrante, Karl Berry
27661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27662$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27663if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27664  $as_echo_n "(cached) " >&6
27665else
27666  ac_check_lib_save_LIBS=$LIBS
27667LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669/* end confdefs.h.  */
27670
27671/* Override any GCC internal prototype to avoid an error.
27672   Use char because int might match the return type of a GCC
27673   builtin and then its argument prototype would still apply.  */
27674#ifdef __cplusplus
27675extern "C"
27676#endif
27677char IceConnectionNumber ();
27678int
27679main ()
27680{
27681return IceConnectionNumber ();
27682  ;
27683  return 0;
27684}
27685_ACEOF
27686if ac_fn_c_try_link "$LINENO"; then :
27687  ac_cv_lib_ICE_IceConnectionNumber=yes
27688else
27689  ac_cv_lib_ICE_IceConnectionNumber=no
27690fi
27691rm -f core conftest.err conftest.$ac_objext \
27692    conftest$ac_exeext conftest.$ac_ext
27693LIBS=$ac_check_lib_save_LIBS
27694fi
27695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27696$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27697if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27698  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27699fi
27700
27701  LDFLAGS=$ac_save_LDFLAGS
27702
27703fi
27704
27705if test "$no_x" != 'yes'; then
27706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27707$as_echo "-------------------------------------------------------------" >&6; }
27708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27709$as_echo_n "checking for X11... " >&6; }
27710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27711$as_echo "" >&6; }
27712    LDFLAGS="$LDFLAGS $X_LIBS"
27713    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27714    LIBS="$X11_LIBS $LIBS"
27715    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27716
27717
27718$as_echo "#define X11_DELEGATE 1" >>confdefs.h
27719
27720    #
27721    # Check for X11 shared memory extension
27722    #
27723    # shmctl is required to support the shared memory extension
27724    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27725if test "x$ac_cv_func_shmctl" = xyes; then :
27726  have_shmctl='yes'
27727fi
27728
27729    if test "$have_shmctl" != 'yes'; then
27730        PERSIST_LIBS=$LIBS
27731        LIBS="$LIBS -lcygipc"
27732        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27733/* end confdefs.h.  */
27734
27735/* Override any GCC internal prototype to avoid an error.
27736   Use char because int might match the return type of a GCC
27737   builtin and then its argument prototype would still apply.  */
27738#ifdef __cplusplus
27739extern "C"
27740#endif
27741char shmctl ();
27742int
27743main ()
27744{
27745return shmctl ();
27746  ;
27747  return 0;
27748}
27749_ACEOF
27750if ac_fn_c_try_link "$LINENO"; then :
27751  have_shmctl='yes'; IPC_LIBS='-lcygipc'
27752fi
27753rm -f core conftest.err conftest.$ac_objext \
27754    conftest$ac_exeext conftest.$ac_ext
27755        LIBS=$PERSIST_LIBS
27756    fi
27757
27758    if test "$have_shmctl" = 'yes'; then
27759        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27760$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27761if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27762  $as_echo_n "(cached) " >&6
27763else
27764  ac_check_lib_save_LIBS=$LIBS
27765LIBS="-lXext  $LIBS"
27766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767/* end confdefs.h.  */
27768
27769/* Override any GCC internal prototype to avoid an error.
27770   Use char because int might match the return type of a GCC
27771   builtin and then its argument prototype would still apply.  */
27772#ifdef __cplusplus
27773extern "C"
27774#endif
27775char XShmAttach ();
27776int
27777main ()
27778{
27779return XShmAttach ();
27780  ;
27781  return 0;
27782}
27783_ACEOF
27784if ac_fn_c_try_link "$LINENO"; then :
27785  ac_cv_lib_Xext_XShmAttach=yes
27786else
27787  ac_cv_lib_Xext_XShmAttach=no
27788fi
27789rm -f core conftest.err conftest.$ac_objext \
27790    conftest$ac_exeext conftest.$ac_ext
27791LIBS=$ac_check_lib_save_LIBS
27792fi
27793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27794$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27795if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27796  XEXT_LIBS='-lXext' ;
27797$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27798
27799fi
27800
27801    fi
27802
27803    #
27804    # Check for X11 shape extension
27805    #
27806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27807$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27808if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27809  $as_echo_n "(cached) " >&6
27810else
27811  ac_check_lib_save_LIBS=$LIBS
27812LIBS="-lXext  $LIBS"
27813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814/* end confdefs.h.  */
27815
27816/* Override any GCC internal prototype to avoid an error.
27817   Use char because int might match the return type of a GCC
27818   builtin and then its argument prototype would still apply.  */
27819#ifdef __cplusplus
27820extern "C"
27821#endif
27822char XShapeCombineMask ();
27823int
27824main ()
27825{
27826return XShapeCombineMask ();
27827  ;
27828  return 0;
27829}
27830_ACEOF
27831if ac_fn_c_try_link "$LINENO"; then :
27832  ac_cv_lib_Xext_XShapeCombineMask=yes
27833else
27834  ac_cv_lib_Xext_XShapeCombineMask=no
27835fi
27836rm -f core conftest.err conftest.$ac_objext \
27837    conftest$ac_exeext conftest.$ac_ext
27838LIBS=$ac_check_lib_save_LIBS
27839fi
27840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27841$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27842if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27843  XEXT_LIBS='-lXext' ;
27844$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27845
27846fi
27847
27848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27849$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27850if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27851  $as_echo_n "(cached) " >&6
27852else
27853  ac_check_lib_save_LIBS=$LIBS
27854LIBS="-lXt  $LIBS"
27855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856/* end confdefs.h.  */
27857
27858/* Override any GCC internal prototype to avoid an error.
27859   Use char because int might match the return type of a GCC
27860   builtin and then its argument prototype would still apply.  */
27861#ifdef __cplusplus
27862extern "C"
27863#endif
27864char XtSetEventDispatcher ();
27865int
27866main ()
27867{
27868return XtSetEventDispatcher ();
27869  ;
27870  return 0;
27871}
27872_ACEOF
27873if ac_fn_c_try_link "$LINENO"; then :
27874  ac_cv_lib_Xt_XtSetEventDispatcher=yes
27875else
27876  ac_cv_lib_Xt_XtSetEventDispatcher=no
27877fi
27878rm -f core conftest.err conftest.$ac_objext \
27879    conftest$ac_exeext conftest.$ac_ext
27880LIBS=$ac_check_lib_save_LIBS
27881fi
27882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27883$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27884if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27885  XT_LIBS='-lXt'
27886fi
27887
27888    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27889fi
27890if test "$no_x" != 'yes'; then
27891  have_x='yes'
27892else
27893  have_x='no'
27894fi
27895 if test "$have_x" = 'yes'; then
27896  X11_DELEGATE_TRUE=
27897  X11_DELEGATE_FALSE='#'
27898else
27899  X11_DELEGATE_TRUE='#'
27900  X11_DELEGATE_FALSE=
27901fi
27902
27903
27904
27905
27906
27907#
27908# Check for ZLIB
27909#
27910
27911# Check whether --with-zlib was given.
27912if test "${with_zlib+set}" = set; then :
27913  withval=$with_zlib; with_zlib=$withval
27914else
27915  with_zlib='yes'
27916fi
27917
27918
27919if test "$with_zlib" != 'yes'; then
27920    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27921fi
27922
27923have_zlib='no'
27924ZLIB_LIBS=''
27925if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27927$as_echo "-------------------------------------------------------------" >&6; }
27928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27929$as_echo_n "checking for ZLIB... " >&6; }
27930    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27931$as_echo "" >&6; }
27932    ZLIB_LIBS=''
27933    failed=0
27934    passed=0
27935    ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27936if test "x$ac_cv_header_zconf_h" = xyes; then :
27937  passed=`expr $passed + 1`
27938else
27939  failed=`expr $failed + 1`
27940fi
27941
27942
27943    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27944if test "x$ac_cv_header_zlib_h" = xyes; then :
27945  passed=`expr $passed + 1`
27946else
27947  failed=`expr $failed + 1`
27948fi
27949
27950
27951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27952$as_echo_n "checking for compress in -lz... " >&6; }
27953if ${ac_cv_lib_z_compress+:} false; then :
27954  $as_echo_n "(cached) " >&6
27955else
27956  ac_check_lib_save_LIBS=$LIBS
27957LIBS="-lz  $LIBS"
27958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27959/* end confdefs.h.  */
27960
27961/* Override any GCC internal prototype to avoid an error.
27962   Use char because int might match the return type of a GCC
27963   builtin and then its argument prototype would still apply.  */
27964#ifdef __cplusplus
27965extern "C"
27966#endif
27967char compress ();
27968int
27969main ()
27970{
27971return compress ();
27972  ;
27973  return 0;
27974}
27975_ACEOF
27976if ac_fn_c_try_link "$LINENO"; then :
27977  ac_cv_lib_z_compress=yes
27978else
27979  ac_cv_lib_z_compress=no
27980fi
27981rm -f core conftest.err conftest.$ac_objext \
27982    conftest$ac_exeext conftest.$ac_ext
27983LIBS=$ac_check_lib_save_LIBS
27984fi
27985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27986$as_echo "$ac_cv_lib_z_compress" >&6; }
27987if test "x$ac_cv_lib_z_compress" = xyes; then :
27988  passed=`expr $passed + 1`
27989else
27990  failed=`expr $failed + 1`
27991fi
27992
27993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27994$as_echo_n "checking for uncompress in -lz... " >&6; }
27995if ${ac_cv_lib_z_uncompress+:} false; then :
27996  $as_echo_n "(cached) " >&6
27997else
27998  ac_check_lib_save_LIBS=$LIBS
27999LIBS="-lz  $LIBS"
28000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28001/* end confdefs.h.  */
28002
28003/* Override any GCC internal prototype to avoid an error.
28004   Use char because int might match the return type of a GCC
28005   builtin and then its argument prototype would still apply.  */
28006#ifdef __cplusplus
28007extern "C"
28008#endif
28009char uncompress ();
28010int
28011main ()
28012{
28013return uncompress ();
28014  ;
28015  return 0;
28016}
28017_ACEOF
28018if ac_fn_c_try_link "$LINENO"; then :
28019  ac_cv_lib_z_uncompress=yes
28020else
28021  ac_cv_lib_z_uncompress=no
28022fi
28023rm -f core conftest.err conftest.$ac_objext \
28024    conftest$ac_exeext conftest.$ac_ext
28025LIBS=$ac_check_lib_save_LIBS
28026fi
28027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
28028$as_echo "$ac_cv_lib_z_uncompress" >&6; }
28029if test "x$ac_cv_lib_z_uncompress" = xyes; then :
28030  passed=`expr $passed + 1`
28031else
28032  failed=`expr $failed + 1`
28033fi
28034
28035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28036$as_echo_n "checking for deflate in -lz... " >&6; }
28037if ${ac_cv_lib_z_deflate+:} false; then :
28038  $as_echo_n "(cached) " >&6
28039else
28040  ac_check_lib_save_LIBS=$LIBS
28041LIBS="-lz  $LIBS"
28042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28043/* end confdefs.h.  */
28044
28045/* Override any GCC internal prototype to avoid an error.
28046   Use char because int might match the return type of a GCC
28047   builtin and then its argument prototype would still apply.  */
28048#ifdef __cplusplus
28049extern "C"
28050#endif
28051char deflate ();
28052int
28053main ()
28054{
28055return deflate ();
28056  ;
28057  return 0;
28058}
28059_ACEOF
28060if ac_fn_c_try_link "$LINENO"; then :
28061  ac_cv_lib_z_deflate=yes
28062else
28063  ac_cv_lib_z_deflate=no
28064fi
28065rm -f core conftest.err conftest.$ac_objext \
28066    conftest$ac_exeext conftest.$ac_ext
28067LIBS=$ac_check_lib_save_LIBS
28068fi
28069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28070$as_echo "$ac_cv_lib_z_deflate" >&6; }
28071if test "x$ac_cv_lib_z_deflate" = xyes; then :
28072  passed=`expr $passed + 1`
28073else
28074  failed=`expr $failed + 1`
28075fi
28076
28077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
28078$as_echo_n "checking for inflate in -lz... " >&6; }
28079if ${ac_cv_lib_z_inflate+:} false; then :
28080  $as_echo_n "(cached) " >&6
28081else
28082  ac_check_lib_save_LIBS=$LIBS
28083LIBS="-lz  $LIBS"
28084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28085/* end confdefs.h.  */
28086
28087/* Override any GCC internal prototype to avoid an error.
28088   Use char because int might match the return type of a GCC
28089   builtin and then its argument prototype would still apply.  */
28090#ifdef __cplusplus
28091extern "C"
28092#endif
28093char inflate ();
28094int
28095main ()
28096{
28097return inflate ();
28098  ;
28099  return 0;
28100}
28101_ACEOF
28102if ac_fn_c_try_link "$LINENO"; then :
28103  ac_cv_lib_z_inflate=yes
28104else
28105  ac_cv_lib_z_inflate=no
28106fi
28107rm -f core conftest.err conftest.$ac_objext \
28108    conftest$ac_exeext conftest.$ac_ext
28109LIBS=$ac_check_lib_save_LIBS
28110fi
28111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
28112$as_echo "$ac_cv_lib_z_inflate" >&6; }
28113if test "x$ac_cv_lib_z_inflate" = xyes; then :
28114  passed=`expr $passed + 1`
28115else
28116  failed=`expr $failed + 1`
28117fi
28118
28119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
28120$as_echo_n "checking for gzseek in -lz... " >&6; }
28121if ${ac_cv_lib_z_gzseek+:} false; then :
28122  $as_echo_n "(cached) " >&6
28123else
28124  ac_check_lib_save_LIBS=$LIBS
28125LIBS="-lz  $LIBS"
28126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28127/* end confdefs.h.  */
28128
28129/* Override any GCC internal prototype to avoid an error.
28130   Use char because int might match the return type of a GCC
28131   builtin and then its argument prototype would still apply.  */
28132#ifdef __cplusplus
28133extern "C"
28134#endif
28135char gzseek ();
28136int
28137main ()
28138{
28139return gzseek ();
28140  ;
28141  return 0;
28142}
28143_ACEOF
28144if ac_fn_c_try_link "$LINENO"; then :
28145  ac_cv_lib_z_gzseek=yes
28146else
28147  ac_cv_lib_z_gzseek=no
28148fi
28149rm -f core conftest.err conftest.$ac_objext \
28150    conftest$ac_exeext conftest.$ac_ext
28151LIBS=$ac_check_lib_save_LIBS
28152fi
28153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
28154$as_echo "$ac_cv_lib_z_gzseek" >&6; }
28155if test "x$ac_cv_lib_z_gzseek" = xyes; then :
28156  passed=`expr $passed + 1`
28157else
28158  failed=`expr $failed + 1`
28159fi
28160
28161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
28162$as_echo_n "checking for gztell in -lz... " >&6; }
28163if ${ac_cv_lib_z_gztell+:} false; then :
28164  $as_echo_n "(cached) " >&6
28165else
28166  ac_check_lib_save_LIBS=$LIBS
28167LIBS="-lz  $LIBS"
28168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28169/* end confdefs.h.  */
28170
28171/* Override any GCC internal prototype to avoid an error.
28172   Use char because int might match the return type of a GCC
28173   builtin and then its argument prototype would still apply.  */
28174#ifdef __cplusplus
28175extern "C"
28176#endif
28177char gztell ();
28178int
28179main ()
28180{
28181return gztell ();
28182  ;
28183  return 0;
28184}
28185_ACEOF
28186if ac_fn_c_try_link "$LINENO"; then :
28187  ac_cv_lib_z_gztell=yes
28188else
28189  ac_cv_lib_z_gztell=no
28190fi
28191rm -f core conftest.err conftest.$ac_objext \
28192    conftest$ac_exeext conftest.$ac_ext
28193LIBS=$ac_check_lib_save_LIBS
28194fi
28195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
28196$as_echo "$ac_cv_lib_z_gztell" >&6; }
28197if test "x$ac_cv_lib_z_gztell" = xyes; then :
28198  passed=`expr $passed + 1`
28199else
28200  failed=`expr $failed + 1`
28201fi
28202
28203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
28204$as_echo_n "checking if ZLIB package is complete... " >&6; }
28205    if test $passed -gt 0; then
28206        if test $failed -gt 0; then
28207            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28208$as_echo "no -- some components failed test" >&6; }
28209            have_zlib='no (failed tests)'
28210        else
28211            ZLIB_LIBS='-lz'
28212            LIBS="$ZLIB_LIBS $LIBS"
28213
28214$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28215
28216            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28217$as_echo "yes" >&6; }
28218            have_zlib='yes'
28219        fi
28220    else
28221        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28222$as_echo "no" >&6; }
28223    fi
28224fi
28225 if test "$have_zlib" = 'yes'; then
28226  ZLIB_DELEGATE_TRUE=
28227  ZLIB_DELEGATE_FALSE='#'
28228else
28229  ZLIB_DELEGATE_TRUE='#'
28230  ZLIB_DELEGATE_FALSE=
28231fi
28232
28233
28234
28235# whether modules are built or not.
28236with_ltdl='yes'
28237have_ltdl='no'
28238LTDL_LIBS=''
28239if test "$build_modules" != 'no' ; then
28240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28241$as_echo "-------------------------------------------------------------" >&6; }
28242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28243$as_echo_n "checking for libltdl... " >&6; }
28244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28245$as_echo "" >&6; }
28246  failed=0
28247  passed=0
28248  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28249if test "x$ac_cv_header_ltdl_h" = xyes; then :
28250  passed=`expr $passed + 1`
28251else
28252  failed=`expr $failed + 1`
28253fi
28254
28255
28256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28257$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28258if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28259  $as_echo_n "(cached) " >&6
28260else
28261  ac_check_lib_save_LIBS=$LIBS
28262LIBS="-lltdl  $LIBS"
28263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28264/* end confdefs.h.  */
28265
28266/* Override any GCC internal prototype to avoid an error.
28267   Use char because int might match the return type of a GCC
28268   builtin and then its argument prototype would still apply.  */
28269#ifdef __cplusplus
28270extern "C"
28271#endif
28272char lt_dlinit ();
28273int
28274main ()
28275{
28276return lt_dlinit ();
28277  ;
28278  return 0;
28279}
28280_ACEOF
28281if ac_fn_c_try_link "$LINENO"; then :
28282  ac_cv_lib_ltdl_lt_dlinit=yes
28283else
28284  ac_cv_lib_ltdl_lt_dlinit=no
28285fi
28286rm -f core conftest.err conftest.$ac_objext \
28287    conftest$ac_exeext conftest.$ac_ext
28288LIBS=$ac_check_lib_save_LIBS
28289fi
28290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28291$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28292if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28293  passed=`expr $passed + 1`
28294else
28295  failed=`expr $failed + 1`
28296fi
28297
28298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28299$as_echo_n "checking if libltdl package is complete... " >&6; }
28300  if test $passed -gt 0 ; then
28301    if test $failed -gt 0 ; then
28302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28303$as_echo "no -- some components failed test" >&6; }
28304      have_ltdl='no (failed tests)'
28305    else
28306      LTDL_LIBS='-lltdl'
28307      LIBS="$LTDL_LIBS $LIBS"
28308
28309$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28310
28311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28312$as_echo "yes" >&6; }
28313      have_ltdl='yes'
28314    fi
28315  else
28316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28317$as_echo "no" >&6; }
28318  fi
28319  if test "$have_ltdl" != 'yes' ; then
28320    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28322as_fn_error 1 "libltdl is required for modules build
28323See \`config.log' for more details" "$LINENO" 5; }
28324  fi
28325fi
28326 if test "$have_ltdl" != 'no'; then
28327  WITH_LTDL_TRUE=
28328  WITH_LTDL_FALSE='#'
28329else
28330  WITH_LTDL_TRUE='#'
28331  WITH_LTDL_FALSE=
28332fi
28333
28334
28335#
28336# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28337#
28338LIB_DL=''
28339if test "$enable_profiling" = 'yes'; then
28340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
28341$as_echo_n "checking for dlopen in -ldl... " >&6; }
28342if ${ac_cv_lib_dl_dlopen+:} false; then :
28343  $as_echo_n "(cached) " >&6
28344else
28345  ac_check_lib_save_LIBS=$LIBS
28346LIBS="-ldl  $LIBS"
28347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28348/* end confdefs.h.  */
28349
28350/* Override any GCC internal prototype to avoid an error.
28351   Use char because int might match the return type of a GCC
28352   builtin and then its argument prototype would still apply.  */
28353#ifdef __cplusplus
28354extern "C"
28355#endif
28356char dlopen ();
28357int
28358main ()
28359{
28360return dlopen ();
28361  ;
28362  return 0;
28363}
28364_ACEOF
28365if ac_fn_c_try_link "$LINENO"; then :
28366  ac_cv_lib_dl_dlopen=yes
28367else
28368  ac_cv_lib_dl_dlopen=no
28369fi
28370rm -f core conftest.err conftest.$ac_objext \
28371    conftest$ac_exeext conftest.$ac_ext
28372LIBS=$ac_check_lib_save_LIBS
28373fi
28374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
28375$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28376if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
28377  LIB_DL='-ldl'
28378fi
28379
28380    LIBS="$LIB_DL $LIBS"
28381fi
28382
28383
28384
28385#
28386# Check for Autotrace delegate library.
28387#
28388
28389# Check whether --with-autotrace was given.
28390if test "${with_autotrace+set}" = set; then :
28391  withval=$with_autotrace; with_autotrace=$withval
28392else
28393  with_autotrace='no'
28394fi
28395
28396
28397if test "$with_autotrace" != 'yes'; then
28398    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28399fi
28400
28401have_autotrace='no'
28402AUTOTRACE_CFLAGS=""
28403AUTOTRACE_LIBS=""
28404AUTOTRACE_PKG=""
28405if test "x$with_autotrace" = "xyes"; then
28406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28407$as_echo "-------------------------------------------------------------" >&6; }
28408
28409pkg_failed=no
28410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28411$as_echo_n "checking for AUTOTRACE... " >&6; }
28412
28413if test -n "$AUTOTRACE_CFLAGS"; then
28414    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28415 elif test -n "$PKG_CONFIG"; then
28416    if test -n "$PKG_CONFIG" && \
28417    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28418  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28419  ac_status=$?
28420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28421  test $ac_status = 0; }; then
28422  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28423else
28424  pkg_failed=yes
28425fi
28426 else
28427    pkg_failed=untried
28428fi
28429if test -n "$AUTOTRACE_LIBS"; then
28430    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28431 elif test -n "$PKG_CONFIG"; then
28432    if test -n "$PKG_CONFIG" && \
28433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28434  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28435  ac_status=$?
28436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28437  test $ac_status = 0; }; then
28438  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28439else
28440  pkg_failed=yes
28441fi
28442 else
28443    pkg_failed=untried
28444fi
28445
28446
28447
28448if test $pkg_failed = yes; then
28449
28450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28451        _pkg_short_errors_supported=yes
28452else
28453        _pkg_short_errors_supported=no
28454fi
28455        if test $_pkg_short_errors_supported = yes; then
28456	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28457        else
28458	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28459        fi
28460	# Put the nasty error message in config.log where it belongs
28461	echo "$AUTOTRACE_PKG_ERRORS" >&5
28462
28463	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28464$as_echo "no" >&6; }
28465                have_autotrace=no
28466elif test $pkg_failed = untried; then
28467	have_autotrace=no
28468else
28469	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28470	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28471        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28472$as_echo "yes" >&6; }
28473	have_autotrace=yes
28474fi
28475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28476$as_echo "" >&6; }
28477fi
28478
28479if test "$have_autotrace" = 'yes'; then
28480    failed=0
28481
28482$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28483
28484    if test "$build_modules" = 'no'; then
28485      CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28486    fi
28487fi
28488
28489 if test "$have_autotrace" = 'yes'; then
28490  AUTOTRACE_DELEGATE_TRUE=
28491  AUTOTRACE_DELEGATE_FALSE='#'
28492else
28493  AUTOTRACE_DELEGATE_TRUE='#'
28494  AUTOTRACE_DELEGATE_FALSE=
28495fi
28496
28497
28498
28499
28500
28501#
28502# Check for Display Postscript delegate library.
28503#
28504
28505# Check whether --with-dps was given.
28506if test "${with_dps+set}" = set; then :
28507  withval=$with_dps; with_dps=$withval
28508else
28509  with_dps='yes'
28510fi
28511
28512
28513if test "$with_dps" != 'yes'; then
28514    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28515fi
28516
28517have_dps='no'
28518DPS_LIBS=''
28519if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28521$as_echo "-------------------------------------------------------------" >&6; }
28522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28523$as_echo_n "checking for DPS... " >&6; }
28524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28525$as_echo "" >&6; }
28526    failed=0
28527    passed=0
28528    PERSIST_CPPFLAGS="$CPPFLAGS"
28529    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28530    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28531if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28532  passed=`expr $passed + 1`
28533else
28534  failed=`expr $failed + 1`
28535fi
28536
28537
28538    # DPS issues:
28539    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28540    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28541    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28542    # ImageMagick itself doesn't use -lXt.
28543    have_libdps='no'
28544    LIBDPS_XT=''
28545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28546$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28547if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28548  $as_echo_n "(cached) " >&6
28549else
28550  ac_check_lib_save_LIBS=$LIBS
28551LIBS="-ldps  $LIBS"
28552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28553/* end confdefs.h.  */
28554
28555/* Override any GCC internal prototype to avoid an error.
28556   Use char because int might match the return type of a GCC
28557   builtin and then its argument prototype would still apply.  */
28558#ifdef __cplusplus
28559extern "C"
28560#endif
28561char DPSInitialize ();
28562int
28563main ()
28564{
28565return DPSInitialize ();
28566  ;
28567  return 0;
28568}
28569_ACEOF
28570if ac_fn_c_try_link "$LINENO"; then :
28571  ac_cv_lib_dps_DPSInitialize=yes
28572else
28573  ac_cv_lib_dps_DPSInitialize=no
28574fi
28575rm -f core conftest.err conftest.$ac_objext \
28576    conftest$ac_exeext conftest.$ac_ext
28577LIBS=$ac_check_lib_save_LIBS
28578fi
28579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28580$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28581if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28582  have_libdps='yes'
28583else
28584  have_libdps='no'
28585fi
28586
28587    if test "$have_libdps" != 'yes'; then
28588        # Unset cache variable so we can try again.
28589        unset ac_cv_lib_dps_DPSInitialize
28590        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28591$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28592if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28593  $as_echo_n "(cached) " >&6
28594else
28595  ac_check_lib_save_LIBS=$LIBS
28596LIBS="-ldps -lXt $LIBS"
28597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28598/* end confdefs.h.  */
28599
28600/* Override any GCC internal prototype to avoid an error.
28601   Use char because int might match the return type of a GCC
28602   builtin and then its argument prototype would still apply.  */
28603#ifdef __cplusplus
28604extern "C"
28605#endif
28606char DPSInitialize ();
28607int
28608main ()
28609{
28610return DPSInitialize ();
28611  ;
28612  return 0;
28613}
28614_ACEOF
28615if ac_fn_c_try_link "$LINENO"; then :
28616  ac_cv_lib_dps_DPSInitialize=yes
28617else
28618  ac_cv_lib_dps_DPSInitialize=no
28619fi
28620rm -f core conftest.err conftest.$ac_objext \
28621    conftest$ac_exeext conftest.$ac_ext
28622LIBS=$ac_check_lib_save_LIBS
28623fi
28624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28625$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28626if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28627  have_libdps='yes'
28628else
28629  have_libdps='no'
28630fi
28631
28632        if test "$have_libdps" = 'yes'; then
28633            LIBDPS_XT='-lXt'
28634        fi
28635    fi
28636    if test "$have_libdps" = 'yes'; then
28637        passed=`expr $passed + 1`
28638    else
28639        failed=`expr $failed + 1`
28640    fi
28641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28642$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28643if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28644  $as_echo_n "(cached) " >&6
28645else
28646  ac_check_lib_save_LIBS=$LIBS
28647LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28649/* end confdefs.h.  */
28650
28651/* Override any GCC internal prototype to avoid an error.
28652   Use char because int might match the return type of a GCC
28653   builtin and then its argument prototype would still apply.  */
28654#ifdef __cplusplus
28655extern "C"
28656#endif
28657char XDPSPixelsPerPoint ();
28658int
28659main ()
28660{
28661return XDPSPixelsPerPoint ();
28662  ;
28663  return 0;
28664}
28665_ACEOF
28666if ac_fn_c_try_link "$LINENO"; then :
28667  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28668else
28669  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28670fi
28671rm -f core conftest.err conftest.$ac_objext \
28672    conftest$ac_exeext conftest.$ac_ext
28673LIBS=$ac_check_lib_save_LIBS
28674fi
28675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28676$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28677if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28678  passed=`expr $passed + 1`
28679else
28680  failed=`expr $failed + 1`
28681fi
28682
28683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28684$as_echo_n "checking if DPS package is complete... " >&6; }
28685    if test $passed -gt 0; then
28686        if test $failed -gt 0; then
28687            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28688$as_echo "no -- some components failed test" >&6; }
28689            have_dps='no (failed tests)'
28690            CPPFLAGS="$PERSIST_CPPFLAGS"
28691        else
28692            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28693            LIBS="$DPS_LIBS $LIBS"
28694
28695$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28696
28697            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28698$as_echo "yes" >&6; }
28699            have_dps='yes'
28700        fi
28701    else
28702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28703$as_echo "no" >&6; }
28704        CPPFLAGS=$PERSIST_CPPFLAGS
28705    fi
28706fi
28707 if test "$have_dps" = 'yes'; then
28708  DPS_DELEGATE_TRUE=
28709  DPS_DELEGATE_FALSE='#'
28710else
28711  DPS_DELEGATE_TRUE='#'
28712  DPS_DELEGATE_FALSE=
28713fi
28714
28715
28716
28717
28718#
28719# Check for DJVU delegate library.
28720#
28721
28722# Check whether --with-djvu was given.
28723if test "${with_djvu+set}" = set; then :
28724  withval=$with_djvu; with_djvu=$withval
28725else
28726  with_djvu='yes'
28727fi
28728
28729
28730if test "$with_djvu" != 'yes'; then
28731    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28732fi
28733
28734have_djvu='no'
28735DJVU_LIBS=''
28736if test "$with_djvu" != 'no'; then
28737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28738$as_echo "-------------------------------------------------------------" >&6; }
28739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28740$as_echo_n "checking for DJVU... " >&6; }
28741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28742$as_echo "" >&6; }
28743    failed=0
28744    passed=0
28745    ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28746if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28747  passed=`expr $passed + 1`
28748else
28749  failed=`expr $failed + 1`
28750fi
28751
28752
28753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28754$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28755if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28756  $as_echo_n "(cached) " >&6
28757else
28758  ac_check_lib_save_LIBS=$LIBS
28759LIBS="-ldjvulibre  $LIBS"
28760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28761/* end confdefs.h.  */
28762
28763/* Override any GCC internal prototype to avoid an error.
28764   Use char because int might match the return type of a GCC
28765   builtin and then its argument prototype would still apply.  */
28766#ifdef __cplusplus
28767extern "C"
28768#endif
28769char ddjvu_context_create ();
28770int
28771main ()
28772{
28773return ddjvu_context_create ();
28774  ;
28775  return 0;
28776}
28777_ACEOF
28778if ac_fn_c_try_link "$LINENO"; then :
28779  ac_cv_lib_djvulibre_ddjvu_context_create=yes
28780else
28781  ac_cv_lib_djvulibre_ddjvu_context_create=no
28782fi
28783rm -f core conftest.err conftest.$ac_objext \
28784    conftest$ac_exeext conftest.$ac_ext
28785LIBS=$ac_check_lib_save_LIBS
28786fi
28787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28788$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28789if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28790  passed=`expr $passed + 1`
28791else
28792  failed=`expr $failed + 1`
28793fi
28794
28795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28796$as_echo_n "checking if DJVU package is complete... " >&6; }
28797    if test $passed -gt 0; then
28798        if test $failed -gt 0; then
28799            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28800$as_echo "no -- some components failed test" >&6; }
28801            have_djvu='no (failed tests)'
28802        else
28803            DJVU_LIBS='-ldjvulibre'
28804            LIBS="$DJVU_LIBS $LIBS"
28805
28806$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28807
28808            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28809$as_echo "yes" >&6; }
28810            have_djvu='yes'
28811        fi
28812    else
28813        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28814$as_echo "no" >&6; }
28815    fi
28816fi
28817 if test "$have_djvu" = 'yes'; then
28818  DJVU_DELEGATE_TRUE=
28819  DJVU_DELEGATE_FALSE='#'
28820else
28821  DJVU_DELEGATE_TRUE='#'
28822  DJVU_DELEGATE_FALSE=
28823fi
28824
28825
28826
28827
28828#
28829# Set DejaVu font directory.
28830#
28831
28832# Check whether --with-dejavu-font-dir was given.
28833if test "${with_dejavu_font_dir+set}" = set; then :
28834  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28835else
28836  with_dejavu_font_dir='default'
28837fi
28838
28839
28840if test "$with_dejavu_font_dir" != 'default'; then
28841    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28842fi
28843
28844
28845#
28846# Check for FFTW delegate library.
28847#
28848
28849# Check whether --with-fftw was given.
28850if test "${with_fftw+set}" = set; then :
28851  withval=$with_fftw; with_fftw=$withval
28852else
28853  with_fftw='yes'
28854fi
28855
28856
28857if test "$with_fftw" != 'yes'; then
28858    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28859fi
28860
28861have_fftw='no'
28862FFTW_LIBS=''
28863if test "$with_fftw" != 'no'; then
28864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28865$as_echo "-------------------------------------------------------------" >&6; }
28866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28867$as_echo_n "checking for FFTW... " >&6; }
28868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28869$as_echo "" >&6; }
28870    failed=0
28871    passed=0
28872    ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28873if test "x$ac_cv_header_fftw3_h" = xyes; then :
28874  passed=`expr $passed + 1`
28875else
28876  failed=`expr $failed + 1`
28877fi
28878
28879
28880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28881$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28882if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28883  $as_echo_n "(cached) " >&6
28884else
28885  ac_check_lib_save_LIBS=$LIBS
28886LIBS="-lfftw3  $LIBS"
28887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28888/* end confdefs.h.  */
28889
28890/* Override any GCC internal prototype to avoid an error.
28891   Use char because int might match the return type of a GCC
28892   builtin and then its argument prototype would still apply.  */
28893#ifdef __cplusplus
28894extern "C"
28895#endif
28896char fftw_execute ();
28897int
28898main ()
28899{
28900return fftw_execute ();
28901  ;
28902  return 0;
28903}
28904_ACEOF
28905if ac_fn_c_try_link "$LINENO"; then :
28906  ac_cv_lib_fftw3_fftw_execute=yes
28907else
28908  ac_cv_lib_fftw3_fftw_execute=no
28909fi
28910rm -f core conftest.err conftest.$ac_objext \
28911    conftest$ac_exeext conftest.$ac_ext
28912LIBS=$ac_check_lib_save_LIBS
28913fi
28914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28915$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28916if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28917  passed=`expr $passed + 1`
28918else
28919  failed=`expr $failed + 1`
28920fi
28921
28922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28923$as_echo_n "checking if FFTW package is complete... " >&6; }
28924    if test $passed -gt 0; then
28925        if test $failed -gt 0; then
28926            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28927$as_echo "no -- some components failed test" >&6; }
28928            have_fftw='no (failed tests)'
28929        else
28930            FFTW_LIBS='-lfftw3'
28931            LIBS="$FFTW_LIBS $LIBS"
28932
28933$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28934
28935            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28936$as_echo "yes" >&6; }
28937            have_fftw='yes'
28938        fi
28939    else
28940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28941$as_echo "no" >&6; }
28942    fi
28943fi
28944 if test "$have_fftw" = 'yes'; then
28945  FFTW_DELEGATE_TRUE=
28946  FFTW_DELEGATE_FALSE='#'
28947else
28948  FFTW_DELEGATE_TRUE='#'
28949  FFTW_DELEGATE_FALSE=
28950fi
28951
28952
28953
28954
28955#
28956# Check for FlashPIX delegate library.
28957#
28958
28959# Check whether --with-fpx was given.
28960if test "${with_fpx+set}" = set; then :
28961  withval=$with_fpx; with_fpx=$withval
28962else
28963  with_fpx='yes'
28964fi
28965
28966
28967if test "$with_fpx" != 'yes'; then
28968    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28969fi
28970
28971have_fpx='no'
28972FPX_LIBS=''
28973if test "$with_fpx" != 'no'; then
28974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28975$as_echo "-------------------------------------------------------------" >&6; }
28976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28977$as_echo_n "checking for FlashPIX... " >&6; }
28978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28979$as_echo "" >&6; }
28980    failed=0
28981    passed=0
28982    ac_ext=cpp
28983ac_cpp='$CXXCPP $CPPFLAGS'
28984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28987
28988
28989ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28990if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28991  passed=`expr $passed + 1`
28992else
28993  failed=`expr $failed + 1`
28994fi
28995
28996
28997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28998$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28999if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
29000  $as_echo_n "(cached) " >&6
29001else
29002  ac_check_lib_save_LIBS=$LIBS
29003LIBS="-lfpx  $LIBS"
29004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29005/* end confdefs.h.  */
29006
29007/* Override any GCC internal prototype to avoid an error.
29008   Use char because int might match the return type of a GCC
29009   builtin and then its argument prototype would still apply.  */
29010#ifdef __cplusplus
29011extern "C"
29012#endif
29013char FPX_OpenImageByFilename ();
29014int
29015main ()
29016{
29017return FPX_OpenImageByFilename ();
29018  ;
29019  return 0;
29020}
29021_ACEOF
29022if ac_fn_cxx_try_link "$LINENO"; then :
29023  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29024else
29025  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
29026fi
29027rm -f core conftest.err conftest.$ac_objext \
29028    conftest$ac_exeext conftest.$ac_ext
29029LIBS=$ac_check_lib_save_LIBS
29030fi
29031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
29032$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
29033if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
29034  passed=`expr $passed + 1`
29035else
29036  failed=`expr $failed + 1`
29037fi
29038
29039    ac_ext=c
29040ac_cpp='$CPP $CPPFLAGS'
29041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29043ac_compiler_gnu=$ac_cv_c_compiler_gnu
29044
29045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
29046$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29047    if test $passed -gt 0; then
29048        if test $failed -gt 0; then
29049            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29050$as_echo "no -- some components failed test" >&6; }
29051            have_fpx='no (failed tests)'
29052        else
29053            FPX_LIBS='-lfpx'
29054
29055$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
29056
29057            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29058$as_echo "yes" >&6; }
29059            have_fpx='yes'
29060            PERLMAINCC="$CXX"
29061        fi
29062    else
29063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064$as_echo "no" >&6; }
29065    fi
29066fi
29067 if test "$have_fpx" = 'yes'; then
29068  FPX_DELEGATE_TRUE=
29069  FPX_DELEGATE_FALSE='#'
29070else
29071  FPX_DELEGATE_TRUE='#'
29072  FPX_DELEGATE_FALSE=
29073fi
29074
29075
29076
29077
29078#
29079# Check for fontconfig delegate library.
29080#
29081
29082# Check whether --with-fontconfig was given.
29083if test "${with_fontconfig+set}" = set; then :
29084  withval=$with_fontconfig; with_fontconfig=$withval
29085else
29086  with_fontconfig='yes'
29087fi
29088
29089
29090if test "$with_fontconfig" != 'yes'; then
29091    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29092fi
29093
29094have_fontconfig='no'
29095FONTCONFIG_CFLAGS=""
29096FONTCONFIG_LIBS=""
29097FONTCONFIG_PKG=""
29098if test "x$with_fontconfig" = "xyes"; then
29099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29100$as_echo "-------------------------------------------------------------" >&6; }
29101
29102pkg_failed=no
29103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29104$as_echo_n "checking for FONTCONFIG... " >&6; }
29105
29106if test -n "$FONTCONFIG_CFLAGS"; then
29107    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29108 elif test -n "$PKG_CONFIG"; then
29109    if test -n "$PKG_CONFIG" && \
29110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29111  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29112  ac_status=$?
29113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29114  test $ac_status = 0; }; then
29115  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29116else
29117  pkg_failed=yes
29118fi
29119 else
29120    pkg_failed=untried
29121fi
29122if test -n "$FONTCONFIG_LIBS"; then
29123    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29124 elif test -n "$PKG_CONFIG"; then
29125    if test -n "$PKG_CONFIG" && \
29126    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29127  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29128  ac_status=$?
29129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29130  test $ac_status = 0; }; then
29131  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29132else
29133  pkg_failed=yes
29134fi
29135 else
29136    pkg_failed=untried
29137fi
29138
29139
29140
29141if test $pkg_failed = yes; then
29142
29143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29144        _pkg_short_errors_supported=yes
29145else
29146        _pkg_short_errors_supported=no
29147fi
29148        if test $_pkg_short_errors_supported = yes; then
29149	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29150        else
29151	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29152        fi
29153	# Put the nasty error message in config.log where it belongs
29154	echo "$FONTCONFIG_PKG_ERRORS" >&5
29155
29156	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29157$as_echo "no" >&6; }
29158                have_fontconfig=no
29159elif test $pkg_failed = untried; then
29160	have_fontconfig=no
29161else
29162	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29163	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29164        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29165$as_echo "yes" >&6; }
29166	have_fontconfig=yes
29167fi
29168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29169$as_echo "" >&6; }
29170fi
29171
29172if test "$have_fontconfig" = 'yes'; then
29173
29174$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
29175
29176  if test "$build_modules" = 'no'; then
29177    CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
29178  fi
29179fi
29180
29181 if test "$have_fontconfig" = 'yes'; then
29182  FONTCONFIG_DELEGATE_TRUE=
29183  FONTCONFIG_DELEGATE_FALSE='#'
29184else
29185  FONTCONFIG_DELEGATE_TRUE='#'
29186  FONTCONFIG_DELEGATE_FALSE=
29187fi
29188
29189
29190
29191
29192
29193#
29194# Check for the Freetype delegate library.
29195#
29196
29197# Check whether --with-freetype was given.
29198if test "${with_freetype+set}" = set; then :
29199  withval=$with_freetype; with_freetype=$withval
29200else
29201  with_freetype='yes'
29202fi
29203
29204
29205if test "$with_freetype" != 'yes'; then
29206    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29207fi
29208
29209have_freetype='no'
29210FREETYPE_CFLAGS=""
29211FREETYPE_LIBS=""
29212FREETYPE_PKG=""
29213if test "x$with_freetype" = "xyes"; then
29214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29215$as_echo "-------------------------------------------------------------" >&6; }
29216
29217pkg_failed=no
29218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29219$as_echo_n "checking for FREETYPE... " >&6; }
29220
29221if test -n "$FREETYPE_CFLAGS"; then
29222    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29223 elif test -n "$PKG_CONFIG"; then
29224    if test -n "$PKG_CONFIG" && \
29225    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29226  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29227  ac_status=$?
29228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29229  test $ac_status = 0; }; then
29230  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29231else
29232  pkg_failed=yes
29233fi
29234 else
29235    pkg_failed=untried
29236fi
29237if test -n "$FREETYPE_LIBS"; then
29238    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29239 elif test -n "$PKG_CONFIG"; then
29240    if test -n "$PKG_CONFIG" && \
29241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29242  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29243  ac_status=$?
29244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29245  test $ac_status = 0; }; then
29246  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29247else
29248  pkg_failed=yes
29249fi
29250 else
29251    pkg_failed=untried
29252fi
29253
29254
29255
29256if test $pkg_failed = yes; then
29257
29258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29259        _pkg_short_errors_supported=yes
29260else
29261        _pkg_short_errors_supported=no
29262fi
29263        if test $_pkg_short_errors_supported = yes; then
29264	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29265        else
29266	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29267        fi
29268	# Put the nasty error message in config.log where it belongs
29269	echo "$FREETYPE_PKG_ERRORS" >&5
29270
29271	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29272$as_echo "no" >&6; }
29273                have_freetype=no
29274elif test $pkg_failed = untried; then
29275	have_freetype=no
29276else
29277	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29278	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29279        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29280$as_echo "yes" >&6; }
29281	have_freetype=yes
29282fi
29283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29284$as_echo "" >&6; }
29285fi
29286
29287if test "$have_freetype" = 'yes'; then
29288
29289$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
29290
29291    CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
29292fi
29293
29294 if test "$have_freetype" = 'yes'; then
29295  FREETYPE_DELEGATE_TRUE=
29296  FREETYPE_DELEGATE_FALSE='#'
29297else
29298  FREETYPE_DELEGATE_TRUE='#'
29299  FREETYPE_DELEGATE_FALSE=
29300fi
29301
29302
29303
29304
29305
29306#
29307# Check for Ghostscript library or framework.
29308#
29309# Test for iapi.h & test for gsapi_new_instance in -lgs
29310# or -framework Ghostscript
29311
29312
29313# Check whether --with-gslib was given.
29314if test "${with_gslib+set}" = set; then :
29315  withval=$with_gslib; with_gslib=$withval
29316else
29317  with_gslib='no'
29318fi
29319
29320
29321gslib_framework='no'
29322if test "$with_gslib" != 'yes'; then
29323    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29324fi
29325
29326have_gslib='no'
29327GS_LIBS=''
29328if test "$with_gslib" != 'no'; then
29329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29330$as_echo "-------------------------------------------------------------" >&6; }
29331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
29332$as_echo_n "checking for Ghostscript... " >&6; }
29333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29334$as_echo "" >&6; }
29335    framework=0
29336    failed=0
29337    passed=0
29338    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
29339if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
29340  passed=`expr $passed + 1`
29341else
29342  failed=`expr $failed + 1`
29343fi
29344
29345
29346    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
29347if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
29348  passed=`expr $passed + 1`
29349else
29350  failed=`expr $failed + 1`
29351fi
29352
29353
29354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29355$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
29356if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
29357  $as_echo_n "(cached) " >&6
29358else
29359  ac_check_framework_save_LIBS=$LIBS
29360LIBS="-framework Ghostscript  $LIBS"
29361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362/* end confdefs.h.  */
29363
29364/* Override any GCC internal prototype to avoid an error.
29365   Use char because int might match the return type of a GCC
29366   builtin and then its argument prototype would still apply.  */
29367#ifdef __cplusplus
29368extern "C"
29369#endif
29370char gsapi_new_instance ();
29371int
29372main ()
29373{
29374return gsapi_new_instance ();
29375  ;
29376  return 0;
29377}
29378_ACEOF
29379if ac_fn_c_try_link "$LINENO"; then :
29380  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29381else
29382  ac_cv_framework_Ghostscript_gsapi_new_instance=no
29383fi
29384rm -f core conftest.err conftest.$ac_objext \
29385    conftest$ac_exeext conftest.$ac_ext
29386LIBS=$ac_check_framework_save_LIBS
29387fi
29388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29389$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29390if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29391  framework=`expr $framework + 1`
29392else
29393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29394$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29395if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29396  $as_echo_n "(cached) " >&6
29397else
29398  ac_check_lib_save_LIBS=$LIBS
29399LIBS="-lgs  $LIBS"
29400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29401/* end confdefs.h.  */
29402
29403/* Override any GCC internal prototype to avoid an error.
29404   Use char because int might match the return type of a GCC
29405   builtin and then its argument prototype would still apply.  */
29406#ifdef __cplusplus
29407extern "C"
29408#endif
29409char gsapi_new_instance ();
29410int
29411main ()
29412{
29413return gsapi_new_instance ();
29414  ;
29415  return 0;
29416}
29417_ACEOF
29418if ac_fn_c_try_link "$LINENO"; then :
29419  ac_cv_lib_gs_gsapi_new_instance=yes
29420else
29421  ac_cv_lib_gs_gsapi_new_instance=no
29422fi
29423rm -f core conftest.err conftest.$ac_objext \
29424    conftest$ac_exeext conftest.$ac_ext
29425LIBS=$ac_check_lib_save_LIBS
29426fi
29427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29428$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29429if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29430  passed=`expr $passed + 1`
29431else
29432  failed=`expr $failed + 1`
29433fi
29434
29435fi
29436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29437$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29438    if test $passed -gt 0; then
29439        if test $failed -gt 0; then
29440            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29441$as_echo "no -- some components failed test" >&6; }
29442            have_gslib='no (failed tests)'
29443        else
29444            if test $framework -gt 0; then
29445                GS_LIBS='-framework Ghostscript'
29446                gslib_framework='yes'
29447                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29448$as_echo "yes, using framework." >&6; }
29449            else
29450                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29451$as_echo "yes, using library." >&6; }
29452                GS_LIBS='-lgs'
29453            fi
29454            LIBS="$GS_LIBS $LIBS"
29455
29456$as_echo "#define GS_DELEGATE 1" >>confdefs.h
29457
29458            have_gslib='yes'
29459        fi
29460    else
29461        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29462$as_echo "no" >&6; }
29463    fi
29464fi
29465 if test "$have_gslib" = 'yes'; then
29466  GS_DELEGATE_TRUE=
29467  GS_DELEGATE_FALSE='#'
29468else
29469  GS_DELEGATE_TRUE='#'
29470  GS_DELEGATE_FALSE=
29471fi
29472
29473
29474
29475# Set default font search path
29476
29477# Check whether --with-fontpath was given.
29478if test "${with_fontpath+set}" = set; then :
29479  withval=$with_fontpath; with_fontpath=$withval
29480else
29481  with_fontpath=''
29482fi
29483
29484
29485if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29486    with_fontpath=''
29487else
29488
29489cat >>confdefs.h <<_ACEOF
29490#define MAGICK_FONT_PATH "$with_fontpath"
29491_ACEOF
29492
29493fi
29494if test "$with_fontpath=" != ''; then
29495    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29496fi
29497
29498# Set Ghostscript font directory
29499
29500# Check whether --with-gs-font-dir was given.
29501if test "${with_gs_font_dir+set}" = set; then :
29502  withval=$with_gs_font_dir; with_gs_font_dir=$withval
29503else
29504  with_gs_font_dir='default'
29505fi
29506
29507
29508if test "$with_gs_font_dir" != 'default'; then
29509    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29510fi
29511
29512
29513#
29514# Check for GVC delegate library.
29515#
29516
29517# Check whether --with-gvc was given.
29518if test "${with_gvc+set}" = set; then :
29519  withval=$with_gvc; with_gvc=$withval
29520else
29521  with_gvc='no'
29522fi
29523
29524
29525if test "$with_gvc" != 'yes'; then
29526    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29527fi
29528
29529GVC_PKG=""
29530if test "x$with_gvc" = "xyes"; then
29531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29532$as_echo "-------------------------------------------------------------" >&6; }
29533
29534pkg_failed=no
29535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29536$as_echo_n "checking for GVC... " >&6; }
29537
29538if test -n "$GVC_CFLAGS"; then
29539    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29540 elif test -n "$PKG_CONFIG"; then
29541    if test -n "$PKG_CONFIG" && \
29542    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29543  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29544  ac_status=$?
29545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29546  test $ac_status = 0; }; then
29547  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29548else
29549  pkg_failed=yes
29550fi
29551 else
29552    pkg_failed=untried
29553fi
29554if test -n "$GVC_LIBS"; then
29555    pkg_cv_GVC_LIBS="$GVC_LIBS"
29556 elif test -n "$PKG_CONFIG"; then
29557    if test -n "$PKG_CONFIG" && \
29558    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29559  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29560  ac_status=$?
29561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29562  test $ac_status = 0; }; then
29563  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29564else
29565  pkg_failed=yes
29566fi
29567 else
29568    pkg_failed=untried
29569fi
29570
29571
29572
29573if test $pkg_failed = yes; then
29574
29575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29576        _pkg_short_errors_supported=yes
29577else
29578        _pkg_short_errors_supported=no
29579fi
29580        if test $_pkg_short_errors_supported = yes; then
29581	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29582        else
29583	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29584        fi
29585	# Put the nasty error message in config.log where it belongs
29586	echo "$GVC_PKG_ERRORS" >&5
29587
29588	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29589$as_echo "no" >&6; }
29590                have_gvc=no
29591elif test $pkg_failed = untried; then
29592	have_gvc=no
29593else
29594	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29595	GVC_LIBS=$pkg_cv_GVC_LIBS
29596        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29597$as_echo "yes" >&6; }
29598	have_gvc=yes
29599fi
29600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29601$as_echo "" >&6; }
29602fi
29603
29604if test "$have_gvc" = 'yes'; then
29605
29606$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29607
29608    if test "$build_modules" = 'no'; then
29609        CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29610    fi
29611fi
29612
29613 if test "$have_gvc" = 'yes'; then
29614  GVC_DELEGATE_TRUE=
29615  GVC_DELEGATE_FALSE='#'
29616else
29617  GVC_DELEGATE_TRUE='#'
29618  GVC_DELEGATE_FALSE=
29619fi
29620
29621
29622
29623
29624
29625#
29626# Check for JBIG delegate library.
29627#
29628
29629
29630# Check whether --with-jbig was given.
29631if test "${with_jbig+set}" = set; then :
29632  withval=$with_jbig; with_jbig=$withval
29633else
29634  with_jbig='yes'
29635fi
29636
29637
29638have_jbig='no'
29639JBIG_LIBS=''
29640if test "$with_jbig" != 'no'; then
29641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29642$as_echo "-------------------------------------------------------------" >&6; }
29643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29644$as_echo_n "checking for JBIG... " >&6; }
29645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29646$as_echo "" >&6; }
29647    failed=0
29648    passed=0
29649    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29650if test "x$ac_cv_header_jbig_h" = xyes; then :
29651  passed=`expr $passed + 1`
29652else
29653  failed=`expr $failed + 1`
29654fi
29655
29656
29657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29658$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29659if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29660  $as_echo_n "(cached) " >&6
29661else
29662  ac_check_lib_save_LIBS=$LIBS
29663LIBS="-ljbig  $LIBS"
29664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29665/* end confdefs.h.  */
29666
29667/* Override any GCC internal prototype to avoid an error.
29668   Use char because int might match the return type of a GCC
29669   builtin and then its argument prototype would still apply.  */
29670#ifdef __cplusplus
29671extern "C"
29672#endif
29673char jbg_dec_init ();
29674int
29675main ()
29676{
29677return jbg_dec_init ();
29678  ;
29679  return 0;
29680}
29681_ACEOF
29682if ac_fn_c_try_link "$LINENO"; then :
29683  ac_cv_lib_jbig_jbg_dec_init=yes
29684else
29685  ac_cv_lib_jbig_jbg_dec_init=no
29686fi
29687rm -f core conftest.err conftest.$ac_objext \
29688    conftest$ac_exeext conftest.$ac_ext
29689LIBS=$ac_check_lib_save_LIBS
29690fi
29691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29692$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29693if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29694  passed=`expr $passed + 1`
29695else
29696  failed=`expr $failed + 1`
29697fi
29698
29699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29700$as_echo_n "checking if JBIG package is complete... " >&6; }
29701    if test $passed -gt 0; then
29702        if test $failed -gt 0; then
29703            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29704$as_echo "no -- some components failed test" >&6; }
29705            have_jbig='no (failed tests)'
29706        else
29707            JBIG_LIBS='-ljbig'
29708            LIBS="$JBIG_LIBS $LIBS"
29709
29710$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29711
29712            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29713$as_echo "yes" >&6; }
29714            have_jbig='yes'
29715        fi
29716    else
29717        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29718$as_echo "no" >&6; }
29719    fi
29720fi
29721 if test "$have_jbig" = 'yes'; then
29722  JBIG_DELEGATE_TRUE=
29723  JBIG_DELEGATE_FALSE='#'
29724else
29725  JBIG_DELEGATE_TRUE='#'
29726  JBIG_DELEGATE_FALSE=
29727fi
29728
29729
29730
29731
29732#
29733# Check for JPEG delegate library.
29734#
29735
29736# Check whether --with-jpeg was given.
29737if test "${with_jpeg+set}" = set; then :
29738  withval=$with_jpeg; with_jpeg=$withval
29739else
29740  with_jpeg='yes'
29741fi
29742
29743
29744if test "$with_jpeg" != 'yes'; then
29745    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29746fi
29747
29748have_jpeg='no'
29749JPEG_LIBS=''
29750if test "$with_jpeg" != 'no'; then
29751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29752$as_echo "-------------------------------------------------------------" >&6; }
29753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29754$as_echo_n "checking for JPEG... " >&6; }
29755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29756$as_echo "" >&6; }
29757    failed=0
29758    passed=0
29759    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29760if test "x$ac_cv_header_jconfig_h" = xyes; then :
29761  passed=`expr $passed + 1`
29762else
29763  failed=`expr $failed + 1`
29764fi
29765
29766
29767    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29768if test "x$ac_cv_header_jerror_h" = xyes; then :
29769  passed=`expr $passed + 1`
29770else
29771  failed=`expr $failed + 1`
29772fi
29773
29774
29775    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29776if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29777  passed=`expr $passed + 1`
29778else
29779  failed=`expr $failed + 1`
29780fi
29781
29782
29783    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29784if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29785  passed=`expr $passed + 1`
29786else
29787  failed=`expr $failed + 1`
29788fi
29789
29790
29791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29792$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29793if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29794  $as_echo_n "(cached) " >&6
29795else
29796  ac_check_lib_save_LIBS=$LIBS
29797LIBS="-ljpeg  $LIBS"
29798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799/* end confdefs.h.  */
29800
29801/* Override any GCC internal prototype to avoid an error.
29802   Use char because int might match the return type of a GCC
29803   builtin and then its argument prototype would still apply.  */
29804#ifdef __cplusplus
29805extern "C"
29806#endif
29807char jpeg_read_header ();
29808int
29809main ()
29810{
29811return jpeg_read_header ();
29812  ;
29813  return 0;
29814}
29815_ACEOF
29816if ac_fn_c_try_link "$LINENO"; then :
29817  ac_cv_lib_jpeg_jpeg_read_header=yes
29818else
29819  ac_cv_lib_jpeg_jpeg_read_header=no
29820fi
29821rm -f core conftest.err conftest.$ac_objext \
29822    conftest$ac_exeext conftest.$ac_ext
29823LIBS=$ac_check_lib_save_LIBS
29824fi
29825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29826$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29827if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29828  passed=`expr $passed + 1`
29829else
29830  failed=`expr $failed + 1`
29831fi
29832
29833
29834# Test for compatible JPEG library
29835if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29837$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29838if ${ac_cv_jpeg_version_ok+:} false; then :
29839  $as_echo_n "(cached) " >&6
29840else
29841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29842/* end confdefs.h.  */
29843#include <stdio.h>
29844#include <stdlib.h>
29845#include <jpeglib.h>
29846
29847int
29848main ()
29849{
29850
29851#if JPEG_LIB_VERSION < 62
29852#error IJG JPEG library must be version 6b or newer!
29853#endif
29854return 0;
29855
29856  ;
29857  return 0;
29858}
29859_ACEOF
29860if ac_fn_c_try_compile "$LINENO"; then :
29861  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29862else
29863  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29864fi
29865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29866fi
29867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29868$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29869fi
29870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29871$as_echo_n "checking if JPEG package is complete... " >&6; }
29872    if test $passed -gt 0; then
29873        if test $failed -gt 0; then
29874            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29875$as_echo "no -- some components failed test" >&6; }
29876            have_jpeg='no (failed tests)'
29877        else
29878            JPEG_LIBS='-ljpeg'
29879            LIBS="$JPEG_LIBS $LIBS"
29880
29881$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29882
29883            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29884$as_echo "yes" >&6; }
29885            have_jpeg='yes'
29886        fi
29887    else
29888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29889$as_echo "no" >&6; }
29890    fi
29891fi
29892 if test "$have_jpeg" = 'yes'; then
29893  JPEG_DELEGATE_TRUE=
29894  JPEG_DELEGATE_FALSE='#'
29895else
29896  JPEG_DELEGATE_TRUE='#'
29897  JPEG_DELEGATE_FALSE=
29898fi
29899
29900
29901
29902
29903#
29904# Check for JPEG Version 2 delegate library.
29905#
29906
29907# Check whether --with-jp2 was given.
29908if test "${with_jp2+set}" = set; then :
29909  withval=$with_jp2; with_jp2=$withval
29910else
29911  with_jp2='yes'
29912fi
29913
29914
29915if test "$with_jp2" != 'yes'; then
29916    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29917fi
29918
29919have_jp2='no'
29920JP2_LIBS=''
29921if test "$with_jp2" != 'no'; then
29922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29923$as_echo "-------------------------------------------------------------" >&6; }
29924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29925$as_echo_n "checking for JPEG Version 2... " >&6; }
29926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29927$as_echo "" >&6; }
29928    failed=0
29929    passed=0
29930    ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29931if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29932  passed=`expr $passed + 1`
29933else
29934  failed=`expr $failed + 1`
29935fi
29936
29937
29938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29939$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29940if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29941  $as_echo_n "(cached) " >&6
29942else
29943  ac_check_lib_save_LIBS=$LIBS
29944LIBS="-ljasper  $LIBS"
29945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29946/* end confdefs.h.  */
29947
29948/* Override any GCC internal prototype to avoid an error.
29949   Use char because int might match the return type of a GCC
29950   builtin and then its argument prototype would still apply.  */
29951#ifdef __cplusplus
29952extern "C"
29953#endif
29954char jas_stream_fopen ();
29955int
29956main ()
29957{
29958return jas_stream_fopen ();
29959  ;
29960  return 0;
29961}
29962_ACEOF
29963if ac_fn_c_try_link "$LINENO"; then :
29964  ac_cv_lib_jasper_jas_stream_fopen=yes
29965else
29966  ac_cv_lib_jasper_jas_stream_fopen=no
29967fi
29968rm -f core conftest.err conftest.$ac_objext \
29969    conftest$ac_exeext conftest.$ac_ext
29970LIBS=$ac_check_lib_save_LIBS
29971fi
29972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29973$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29974if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29975  passed=`expr $passed + 1`
29976else
29977  failed=`expr $failed + 1`
29978fi
29979
29980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29981$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29982    if test $passed -gt 0; then
29983        if test $failed -gt 0; then
29984            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29985$as_echo "no -- some components failed test" >&6; }
29986            have_jp2='no (failed tests)'
29987        else
29988            JP2_LIBS='-ljasper'
29989            LIBS="$JP2_LIBS $LIBS"
29990
29991$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29992
29993            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29994$as_echo "yes" >&6; }
29995            have_jp2='yes'
29996        fi
29997    else
29998        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999$as_echo "no" >&6; }
30000    fi
30001fi
30002 if test "$have_jp2" = 'yes'; then
30003  JP2_DELEGATE_TRUE=
30004  JP2_DELEGATE_FALSE='#'
30005else
30006  JP2_DELEGATE_TRUE='#'
30007  JP2_DELEGATE_FALSE=
30008fi
30009
30010
30011
30012
30013#
30014# Check for LCMS delegate library.
30015#
30016# Disable LCMS.
30017
30018# Check whether --with-lcms was given.
30019if test "${with_lcms+set}" = set; then :
30020  withval=$with_lcms; with_lcms=$withval
30021else
30022  with_lcms='yes'
30023fi
30024
30025if test "$with_lcms" != 'yes' ; then
30026    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30027fi
30028
30029# Disable LCMS2.
30030
30031# Check whether --with-lcms2 was given.
30032if test "${with_lcms2+set}" = set; then :
30033  withval=$with_lcms2; with_lcms2=$withval
30034else
30035  with_lcms2='yes'
30036fi
30037
30038if test "$with_lcms2" != 'yes' ; then
30039    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30040fi
30041
30042have_lcms2='no'
30043LCMS_LIBS=''
30044if test "$with_lcms2" != 'no'; then
30045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30046$as_echo "-------------------------------------------------------------" >&6; }
30047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30048$as_echo_n "checking for LCMS v2... " >&6; }
30049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30050$as_echo "" >&6; }
30051    failed=0
30052    passed=0
30053    have_lcms_header='no'
30054
30055    # Check for <lcms2.h>
30056    ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
30057if test "x$ac_cv_header_lcms2_h" = xyes; then :
30058  have_lcms_header='yes'
30059fi
30060
30061
30062    if test "$have_lcms_header" = 'yes'; then
30063
30064$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30065
30066       passed=`expr $passed + 1`
30067    fi
30068
30069    # Check for <lcms2/lcms2.h)
30070    if test "$have_lcms_header" != 'yes'; then
30071      ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30072if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30073  have_lcms_header='yes'
30074fi
30075
30076
30077      if test "$have_lcms_header" = 'yes'; then
30078        passed=`expr $passed + 1`
30079
30080$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30081
30082      fi
30083    fi
30084
30085    # Failed to find lcms header?
30086    if test "$have_lcms_header" != 'yes'; then
30087      failed=`expr $failed + 1`
30088    fi
30089
30090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30091$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
30092if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
30093  $as_echo_n "(cached) " >&6
30094else
30095  ac_check_lib_save_LIBS=$LIBS
30096LIBS="-llcms2  $LIBS"
30097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30098/* end confdefs.h.  */
30099
30100/* Override any GCC internal prototype to avoid an error.
30101   Use char because int might match the return type of a GCC
30102   builtin and then its argument prototype would still apply.  */
30103#ifdef __cplusplus
30104extern "C"
30105#endif
30106char cmsSetLogErrorHandler ();
30107int
30108main ()
30109{
30110return cmsSetLogErrorHandler ();
30111  ;
30112  return 0;
30113}
30114_ACEOF
30115if ac_fn_c_try_link "$LINENO"; then :
30116  ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
30117else
30118  ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
30119fi
30120rm -f core conftest.err conftest.$ac_objext \
30121    conftest$ac_exeext conftest.$ac_ext
30122LIBS=$ac_check_lib_save_LIBS
30123fi
30124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30125$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
30126if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
30127  passed=`expr $passed + 1`
30128else
30129  failed=`expr $failed + 1`
30130fi
30131
30132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30133$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
30134    if test $passed -gt 0; then
30135      if test $failed -gt 0; then
30136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30137$as_echo "no -- some components failed test" >&6; }
30138        have_lcms2='no (failed tests)'
30139      else
30140        LCMS_LIBS='-llcms2'
30141        LIBS="$LCMS_LIBS $LIBS"
30142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30143$as_echo "yes" >&6; }
30144        have_lcms2='yes'
30145      fi
30146    else
30147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30148$as_echo "no" >&6; }
30149    fi
30150fi
30151
30152#
30153# Check for LCMS v1 (1.11 or later)
30154#
30155if test $have_lcms2 = 'yes'; then
30156  with_lcms='no'
30157fi
30158
30159have_lcms='no'
30160if test "$with_lcms" != 'no'; then
30161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30162$as_echo "-------------------------------------------------------------" >&6; }
30163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30164$as_echo_n "checking for LCMS v1.1X... " >&6; }
30165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30166$as_echo "" >&6; }
30167    failed=0
30168    passed=0
30169    have_lcms_header='no'
30170
30171    # Check for <lcms.h>
30172    if test "$have_lcms_header" != 'yes'; then
30173      ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
30174if test "x$ac_cv_header_lcms_h" = xyes; then :
30175  have_lcms_header='yes'
30176fi
30177
30178
30179      if test "$have_lcms_header" = 'yes'; then
30180        passed=`expr $passed + 1`
30181
30182$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
30183
30184      fi
30185    fi
30186
30187    # Check for <lcms/lcms.h>
30188    if test "$have_lcms_header" != 'yes'; then
30189      ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30190if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30191  have_lcms_header='yes'
30192fi
30193
30194
30195      if test "$have_lcms_header" = 'yes'; then
30196        passed=`expr $passed + 1`
30197
30198$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30199
30200      fi
30201    fi
30202
30203    # Failed to find lcms header?
30204    if test "$have_lcms_header" != 'yes'; then
30205      failed=`expr $failed + 1`
30206    fi
30207
30208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30209$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
30210if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
30211  $as_echo_n "(cached) " >&6
30212else
30213  ac_check_lib_save_LIBS=$LIBS
30214LIBS="-llcms  $LIBS"
30215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30216/* end confdefs.h.  */
30217
30218/* Override any GCC internal prototype to avoid an error.
30219   Use char because int might match the return type of a GCC
30220   builtin and then its argument prototype would still apply.  */
30221#ifdef __cplusplus
30222extern "C"
30223#endif
30224char cmsSetErrorHandler ();
30225int
30226main ()
30227{
30228return cmsSetErrorHandler ();
30229  ;
30230  return 0;
30231}
30232_ACEOF
30233if ac_fn_c_try_link "$LINENO"; then :
30234  ac_cv_lib_lcms_cmsSetErrorHandler=yes
30235else
30236  ac_cv_lib_lcms_cmsSetErrorHandler=no
30237fi
30238rm -f core conftest.err conftest.$ac_objext \
30239    conftest$ac_exeext conftest.$ac_ext
30240LIBS=$ac_check_lib_save_LIBS
30241fi
30242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30243$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
30244if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
30245  passed=`expr $passed + 1`
30246else
30247  failed=`expr $failed + 1`
30248fi
30249
30250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
30251$as_echo_n "checking if LCMS package is complete... " >&6; }
30252    if test $passed -gt 0; then
30253      if test $failed -gt 0; then
30254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30255$as_echo "no -- some components failed test" >&6; }
30256        have_lcms='no (failed tests)'
30257      else
30258        LCMS_LIBS='-llcms'
30259        LIBS="$LCMS_LIBS $LIBS"
30260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30261$as_echo "yes" >&6; }
30262        have_lcms='yes'
30263      fi
30264    else
30265      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30266$as_echo "no" >&6; }
30267    fi
30268fi
30269
30270 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30271  LCMS_DELEGATE_TRUE=
30272  LCMS_DELEGATE_FALSE='#'
30273else
30274  LCMS_DELEGATE_TRUE='#'
30275  LCMS_DELEGATE_FALSE=
30276fi
30277
30278if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30279
30280$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30281
30282fi
30283
30284
30285
30286
30287#
30288# Check for the LQR (Liquid Rescale) delegate library.
30289#
30290
30291# Check whether --with-lqr was given.
30292if test "${with_lqr+set}" = set; then :
30293  withval=$with_lqr; with_lqr=$withval
30294else
30295  with_lqr='yes'
30296fi
30297
30298
30299if test "$with_lqr" != 'yes'; then
30300    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30301fi
30302
30303have_lqr='no'
30304LQR_CFLAGS=""
30305LQR_LIBS=""
30306LQR_PKG=""
30307if test "x$with_lqr" = "xyes"; then
30308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30309$as_echo "-------------------------------------------------------------" >&6; }
30310
30311pkg_failed=no
30312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30313$as_echo_n "checking for LQR... " >&6; }
30314
30315if test -n "$LQR_CFLAGS"; then
30316    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30317 elif test -n "$PKG_CONFIG"; then
30318    if test -n "$PKG_CONFIG" && \
30319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30320  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30321  ac_status=$?
30322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30323  test $ac_status = 0; }; then
30324  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30325else
30326  pkg_failed=yes
30327fi
30328 else
30329    pkg_failed=untried
30330fi
30331if test -n "$LQR_LIBS"; then
30332    pkg_cv_LQR_LIBS="$LQR_LIBS"
30333 elif test -n "$PKG_CONFIG"; then
30334    if test -n "$PKG_CONFIG" && \
30335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30336  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30337  ac_status=$?
30338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30339  test $ac_status = 0; }; then
30340  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30341else
30342  pkg_failed=yes
30343fi
30344 else
30345    pkg_failed=untried
30346fi
30347
30348
30349
30350if test $pkg_failed = yes; then
30351
30352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30353        _pkg_short_errors_supported=yes
30354else
30355        _pkg_short_errors_supported=no
30356fi
30357        if test $_pkg_short_errors_supported = yes; then
30358	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30359        else
30360	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30361        fi
30362	# Put the nasty error message in config.log where it belongs
30363	echo "$LQR_PKG_ERRORS" >&5
30364
30365	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30366$as_echo "no" >&6; }
30367                have_lqr=no
30368elif test $pkg_failed = untried; then
30369	have_lqr=no
30370else
30371	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30372	LQR_LIBS=$pkg_cv_LQR_LIBS
30373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30374$as_echo "yes" >&6; }
30375	have_lqr=yes
30376fi
30377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30378$as_echo "" >&6; }
30379fi
30380
30381if test "$have_lqr" = 'yes'; then
30382
30383$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30384
30385    CFLAGS="$LQR_CFLAGS $CFLAGS"
30386fi
30387
30388 if test "$have_lqr" = 'yes'; then
30389  LQR_DELEGATE_TRUE=
30390  LQR_DELEGATE_FALSE='#'
30391else
30392  LQR_DELEGATE_TRUE='#'
30393  LQR_DELEGATE_FALSE=
30394fi
30395
30396
30397
30398
30399
30400# Disable LZMA (lzma library)
30401
30402# Check whether --with-lzma was given.
30403if test "${with_lzma+set}" = set; then :
30404  withval=$with_lzma; with_lzma=$withval
30405else
30406  with_lzma='yes'
30407fi
30408
30409if test "$with_lzma" != 'yes' ; then
30410    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30411fi
30412
30413LZMA_PKG=""
30414if test "x$with_lzma" = "xyes"; then
30415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30416$as_echo "-------------------------------------------------------------" >&6; }
30417
30418pkg_failed=no
30419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30420$as_echo_n "checking for LZMA... " >&6; }
30421
30422if test -n "$LZMA_CFLAGS"; then
30423    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30424 elif test -n "$PKG_CONFIG"; then
30425    if test -n "$PKG_CONFIG" && \
30426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30427  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30428  ac_status=$?
30429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30430  test $ac_status = 0; }; then
30431  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30432else
30433  pkg_failed=yes
30434fi
30435 else
30436    pkg_failed=untried
30437fi
30438if test -n "$LZMA_LIBS"; then
30439    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30440 elif test -n "$PKG_CONFIG"; then
30441    if test -n "$PKG_CONFIG" && \
30442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30443  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30444  ac_status=$?
30445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30446  test $ac_status = 0; }; then
30447  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30448else
30449  pkg_failed=yes
30450fi
30451 else
30452    pkg_failed=untried
30453fi
30454
30455
30456
30457if test $pkg_failed = yes; then
30458
30459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30460        _pkg_short_errors_supported=yes
30461else
30462        _pkg_short_errors_supported=no
30463fi
30464        if test $_pkg_short_errors_supported = yes; then
30465	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30466        else
30467	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30468        fi
30469	# Put the nasty error message in config.log where it belongs
30470	echo "$LZMA_PKG_ERRORS" >&5
30471
30472	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30473$as_echo "no" >&6; }
30474                have_lzma=no
30475elif test $pkg_failed = untried; then
30476	have_lzma=no
30477else
30478	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30479	LZMA_LIBS=$pkg_cv_LZMA_LIBS
30480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30481$as_echo "yes" >&6; }
30482	have_lzma=yes
30483fi
30484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30485$as_echo "" >&6; }
30486fi
30487
30488if test "$have_lzma" = 'yes'; then
30489
30490$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30491
30492    if test "$build_modules" = 'no'; then
30493        CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
30494    fi
30495fi
30496
30497 if test "$have_lzma" = 'yes'; then
30498  LZMA_DELEGATE_TRUE=
30499  LZMA_DELEGATE_FALSE='#'
30500else
30501  LZMA_DELEGATE_TRUE='#'
30502  LZMA_DELEGATE_FALSE=
30503fi
30504
30505
30506
30507
30508
30509#
30510# Check for the OpenEXR delegate library.
30511#
30512
30513# Check whether --with-openexr was given.
30514if test "${with_openexr+set}" = set; then :
30515  withval=$with_openexr; with_openexr=$withval
30516else
30517  with_openexr='yes'
30518fi
30519
30520
30521if test "$with_openexr" != 'yes'; then
30522    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30523fi
30524
30525have_openexr='no'
30526OPENEXR_CFLAGS=""
30527OPENEXR_LIBS=""
30528OPENEXR_PKG=""
30529if test "x$with_openexr" = "xyes"; then
30530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30531$as_echo "-------------------------------------------------------------" >&6; }
30532
30533pkg_failed=no
30534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30535$as_echo_n "checking for OPENEXR... " >&6; }
30536
30537if test -n "$OPENEXR_CFLAGS"; then
30538    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30539 elif test -n "$PKG_CONFIG"; then
30540    if test -n "$PKG_CONFIG" && \
30541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30542  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30543  ac_status=$?
30544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545  test $ac_status = 0; }; then
30546  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30547else
30548  pkg_failed=yes
30549fi
30550 else
30551    pkg_failed=untried
30552fi
30553if test -n "$OPENEXR_LIBS"; then
30554    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30555 elif test -n "$PKG_CONFIG"; then
30556    if test -n "$PKG_CONFIG" && \
30557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30558  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30559  ac_status=$?
30560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30561  test $ac_status = 0; }; then
30562  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30563else
30564  pkg_failed=yes
30565fi
30566 else
30567    pkg_failed=untried
30568fi
30569
30570
30571
30572if test $pkg_failed = yes; then
30573
30574if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30575        _pkg_short_errors_supported=yes
30576else
30577        _pkg_short_errors_supported=no
30578fi
30579        if test $_pkg_short_errors_supported = yes; then
30580	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30581        else
30582	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30583        fi
30584	# Put the nasty error message in config.log where it belongs
30585	echo "$OPENEXR_PKG_ERRORS" >&5
30586
30587	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30588$as_echo "no" >&6; }
30589                have_openexr=no
30590elif test $pkg_failed = untried; then
30591	have_openexr=no
30592else
30593	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30594	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30596$as_echo "yes" >&6; }
30597	have_openexr=yes
30598fi
30599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30600$as_echo "" >&6; }
30601fi
30602
30603if test "$have_openexr" = 'yes'; then
30604
30605$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30606
30607    if test "$build_modules" = 'no'; then
30608        CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30609    fi
30610fi
30611
30612 if test "$have_openexr" = 'yes'; then
30613  OPENEXR_DELEGATE_TRUE=
30614  OPENEXR_DELEGATE_FALSE='#'
30615else
30616  OPENEXR_DELEGATE_TRUE='#'
30617  OPENEXR_DELEGATE_FALSE=
30618fi
30619
30620
30621
30622
30623
30624#
30625# Check for PANGO delegate library.
30626#
30627
30628# Check whether --with-pango was given.
30629if test "${with_pango+set}" = set; then :
30630  withval=$with_pango; with_pango=$withval
30631else
30632  with_pango='yes'
30633fi
30634
30635
30636if test "$with_pango" != 'yes'; then
30637    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30638fi
30639
30640have_pango='no'
30641have_pangocairo='no'
30642PANGO_CFLAGS=""
30643PANGO_LIBS=""
30644PANGO_PKG=""
30645if test "x$with_pango" = "xyes"; then
30646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30647$as_echo "-------------------------------------------------------------" >&6; }
30648
30649pkg_failed=no
30650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30651$as_echo_n "checking for PANGO... " >&6; }
30652
30653if test -n "$PANGO_CFLAGS"; then
30654    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30655 elif test -n "$PKG_CONFIG"; then
30656    if test -n "$PKG_CONFIG" && \
30657    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30658  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
30659  ac_status=$?
30660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30661  test $ac_status = 0; }; then
30662  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
30663else
30664  pkg_failed=yes
30665fi
30666 else
30667    pkg_failed=untried
30668fi
30669if test -n "$PANGO_LIBS"; then
30670    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30671 elif test -n "$PKG_CONFIG"; then
30672    if test -n "$PKG_CONFIG" && \
30673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30674  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
30675  ac_status=$?
30676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30677  test $ac_status = 0; }; then
30678  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
30679else
30680  pkg_failed=yes
30681fi
30682 else
30683    pkg_failed=untried
30684fi
30685
30686
30687
30688if test $pkg_failed = yes; then
30689
30690if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30691        _pkg_short_errors_supported=yes
30692else
30693        _pkg_short_errors_supported=no
30694fi
30695        if test $_pkg_short_errors_supported = yes; then
30696	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
30697        else
30698	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
30699        fi
30700	# Put the nasty error message in config.log where it belongs
30701	echo "$PANGO_PKG_ERRORS" >&5
30702
30703	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30704$as_echo "no" >&6; }
30705                have_pangocairo=no
30706elif test $pkg_failed = untried; then
30707	have_pangocairo=no
30708else
30709	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30710	PANGO_LIBS=$pkg_cv_PANGO_LIBS
30711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30712$as_echo "yes" >&6; }
30713	have_pangocairo=yes
30714fi
30715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30716$as_echo "" >&6; }
30717
30718pkg_failed=no
30719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30720$as_echo_n "checking for PANGO... " >&6; }
30721
30722if test -n "$PANGO_CFLAGS"; then
30723    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30724 elif test -n "$PKG_CONFIG"; then
30725    if test -n "$PKG_CONFIG" && \
30726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30727  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
30728  ac_status=$?
30729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30730  test $ac_status = 0; }; then
30731  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
30732else
30733  pkg_failed=yes
30734fi
30735 else
30736    pkg_failed=untried
30737fi
30738if test -n "$PANGO_LIBS"; then
30739    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30740 elif test -n "$PKG_CONFIG"; then
30741    if test -n "$PKG_CONFIG" && \
30742    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30743  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
30744  ac_status=$?
30745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30746  test $ac_status = 0; }; then
30747  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
30748else
30749  pkg_failed=yes
30750fi
30751 else
30752    pkg_failed=untried
30753fi
30754
30755
30756
30757if test $pkg_failed = yes; then
30758
30759if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30760        _pkg_short_errors_supported=yes
30761else
30762        _pkg_short_errors_supported=no
30763fi
30764        if test $_pkg_short_errors_supported = yes; then
30765	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
30766        else
30767	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
30768        fi
30769	# Put the nasty error message in config.log where it belongs
30770	echo "$PANGO_PKG_ERRORS" >&5
30771
30772	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30773$as_echo "no" >&6; }
30774                have_pango=no
30775elif test $pkg_failed = untried; then
30776	have_pango=no
30777else
30778	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30779	PANGO_LIBS=$pkg_cv_PANGO_LIBS
30780        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30781$as_echo "yes" >&6; }
30782	have_pango=yes
30783fi
30784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30785$as_echo "" >&6; }
30786fi
30787
30788if test "$have_pango" = 'yes'; then
30789
30790$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30791
30792    if test "$build_modules" = 'no'; then
30793        CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30794    fi
30795fi
30796
30797if test "$have_pangocairo" = 'yes'; then
30798
30799$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
30800
30801    if test "$build_modules" = 'no'; then
30802        CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
30803    fi
30804fi
30805
30806 if test "$have_pango" = 'yes'; then
30807  PANGO_DELEGATE_TRUE=
30808  PANGO_DELEGATE_FALSE='#'
30809else
30810  PANGO_DELEGATE_TRUE='#'
30811  PANGO_DELEGATE_FALSE=
30812fi
30813
30814 if test "$have_pangocairo" = 'yes'; then
30815  PANGOCAIRO_DELEGATE_TRUE=
30816  PANGOCAIRO_DELEGATE_FALSE='#'
30817else
30818  PANGOCAIRO_DELEGATE_TRUE='#'
30819  PANGOCAIRO_DELEGATE_FALSE=
30820fi
30821
30822
30823
30824
30825
30826#
30827# Check for PNG delegate library.
30828#
30829
30830# Check whether --with-png was given.
30831if test "${with_png+set}" = set; then :
30832  withval=$with_png; with_png=$withval
30833else
30834  with_png='yes'
30835fi
30836
30837
30838if test "$with_png" != 'yes'; then
30839    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30840fi
30841
30842have_png='no'
30843PNG_LIBS=''
30844
30845if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then
30846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30847$as_echo "-------------------------------------------------------------" >&6; }
30848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30849$as_echo_n "checking for PNG support ... " >&6; }
30850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30851$as_echo "" >&6; }
30852  failed=0
30853  passed=0
30854  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30855if test "x$ac_cv_header_png_h" = xyes; then :
30856  passed=`expr $passed + 1`
30857else
30858  failed=`expr $failed + 1`
30859fi
30860
30861
30862
30863  if test $passed -gt 0; then
30864    for var in 7 6 5 4 2 '' ; do
30865      if test "$have_png" = 'no' ; then
30866        if test "x${var}" = 'x' ; then
30867          pnglib='png'
30868        else
30869          pnglib="png1${var}"
30870        fi
30871
30872#       Test for compatible LIBPNG library
30873        failed=0
30874        passed=0
30875        if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
30876          if test "${pnglib}" != 'png' ; then
30877            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30878$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30879            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30880/* end confdefs.h.  */
30881#include <stdio.h>
30882#include <stdlib.h>
30883#include <png.h>
30884
30885int
30886main ()
30887{
30888
30889#if PNG_LIBPNG_VER_MINOR != ${var}
30890#error LIBPNG library must be version 1${var}!
30891Kaboom, Kaboom
30892#endif
30893return 0;
30894
30895  ;
30896  return 0;
30897}
30898_ACEOF
30899if ac_fn_c_try_compile "$LINENO"; then :
30900              ac_cv_libpng_ok='yes'
30901else
30902  ac_cv_libpng_ok='no'
30903fi
30904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30905            if test "$ac_cv_libpng_ok" = 'yes' ; then
30906              passed=`expr $passed + 1`
30907              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30908$as_echo "yes" >&6; }
30909            else
30910              failed=`expr $failed + 1`
30911              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30912$as_echo "no" >&6; }
30913            fi
30914          else
30915            passed=`expr $passed + 1`
30916            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30917$as_echo "yes" >&6; }
30918          fi
30919        fi
30920
30921        if test $passed -gt 0 -a $failed -le 0; then
30922          if test "1${var}" = '17' ; then
30923            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30924$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30925if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30926  $as_echo_n "(cached) " >&6
30927else
30928  ac_check_lib_save_LIBS=$LIBS
30929LIBS="-lpng17  $LIBS"
30930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30931/* end confdefs.h.  */
30932
30933/* Override any GCC internal prototype to avoid an error.
30934   Use char because int might match the return type of a GCC
30935   builtin and then its argument prototype would still apply.  */
30936#ifdef __cplusplus
30937extern "C"
30938#endif
30939char png_get_io_ptr ();
30940int
30941main ()
30942{
30943return png_get_io_ptr ();
30944  ;
30945  return 0;
30946}
30947_ACEOF
30948if ac_fn_c_try_link "$LINENO"; then :
30949  ac_cv_lib_png17_png_get_io_ptr=yes
30950else
30951  ac_cv_lib_png17_png_get_io_ptr=no
30952fi
30953rm -f core conftest.err conftest.$ac_objext \
30954    conftest$ac_exeext conftest.$ac_ext
30955LIBS=$ac_check_lib_save_LIBS
30956fi
30957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30958$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30959if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30960  passed=`expr $passed + 1`
30961else
30962  failed=`expr $failed + 1`
30963fi
30964
30965            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30966$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30967if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30968  $as_echo_n "(cached) " >&6
30969else
30970  ac_check_lib_save_LIBS=$LIBS
30971LIBS="-lpng17  $LIBS"
30972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30973/* end confdefs.h.  */
30974
30975/* Override any GCC internal prototype to avoid an error.
30976   Use char because int might match the return type of a GCC
30977   builtin and then its argument prototype would still apply.  */
30978#ifdef __cplusplus
30979extern "C"
30980#endif
30981char png_longjmp ();
30982int
30983main ()
30984{
30985return png_longjmp ();
30986  ;
30987  return 0;
30988}
30989_ACEOF
30990if ac_fn_c_try_link "$LINENO"; then :
30991  ac_cv_lib_png17_png_longjmp=yes
30992else
30993  ac_cv_lib_png17_png_longjmp=no
30994fi
30995rm -f core conftest.err conftest.$ac_objext \
30996    conftest$ac_exeext conftest.$ac_ext
30997LIBS=$ac_check_lib_save_LIBS
30998fi
30999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31000$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31001if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31002  passed=`expr $passed + 1`
31003else
31004  failed=`expr $failed + 1`
31005fi
31006
31007          fi
31008          if test "1${var}" = '16' ; then
31009            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31010$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31011if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31012  $as_echo_n "(cached) " >&6
31013else
31014  ac_check_lib_save_LIBS=$LIBS
31015LIBS="-lpng16  $LIBS"
31016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31017/* end confdefs.h.  */
31018
31019/* Override any GCC internal prototype to avoid an error.
31020   Use char because int might match the return type of a GCC
31021   builtin and then its argument prototype would still apply.  */
31022#ifdef __cplusplus
31023extern "C"
31024#endif
31025char png_get_io_ptr ();
31026int
31027main ()
31028{
31029return png_get_io_ptr ();
31030  ;
31031  return 0;
31032}
31033_ACEOF
31034if ac_fn_c_try_link "$LINENO"; then :
31035  ac_cv_lib_png16_png_get_io_ptr=yes
31036else
31037  ac_cv_lib_png16_png_get_io_ptr=no
31038fi
31039rm -f core conftest.err conftest.$ac_objext \
31040    conftest$ac_exeext conftest.$ac_ext
31041LIBS=$ac_check_lib_save_LIBS
31042fi
31043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31044$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31045if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31046  passed=`expr $passed + 1`
31047else
31048  failed=`expr $failed + 1`
31049fi
31050
31051            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31052$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31053if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31054  $as_echo_n "(cached) " >&6
31055else
31056  ac_check_lib_save_LIBS=$LIBS
31057LIBS="-lpng16  $LIBS"
31058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31059/* end confdefs.h.  */
31060
31061/* Override any GCC internal prototype to avoid an error.
31062   Use char because int might match the return type of a GCC
31063   builtin and then its argument prototype would still apply.  */
31064#ifdef __cplusplus
31065extern "C"
31066#endif
31067char png_longjmp ();
31068int
31069main ()
31070{
31071return png_longjmp ();
31072  ;
31073  return 0;
31074}
31075_ACEOF
31076if ac_fn_c_try_link "$LINENO"; then :
31077  ac_cv_lib_png16_png_longjmp=yes
31078else
31079  ac_cv_lib_png16_png_longjmp=no
31080fi
31081rm -f core conftest.err conftest.$ac_objext \
31082    conftest$ac_exeext conftest.$ac_ext
31083LIBS=$ac_check_lib_save_LIBS
31084fi
31085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31086$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31087if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31088  passed=`expr $passed + 1`
31089else
31090  failed=`expr $failed + 1`
31091fi
31092
31093          fi
31094          if test "1${var}" = '15' ; then
31095            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31096$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31097if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31098  $as_echo_n "(cached) " >&6
31099else
31100  ac_check_lib_save_LIBS=$LIBS
31101LIBS="-lpng15  $LIBS"
31102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31103/* end confdefs.h.  */
31104
31105/* Override any GCC internal prototype to avoid an error.
31106   Use char because int might match the return type of a GCC
31107   builtin and then its argument prototype would still apply.  */
31108#ifdef __cplusplus
31109extern "C"
31110#endif
31111char png_get_io_ptr ();
31112int
31113main ()
31114{
31115return png_get_io_ptr ();
31116  ;
31117  return 0;
31118}
31119_ACEOF
31120if ac_fn_c_try_link "$LINENO"; then :
31121  ac_cv_lib_png15_png_get_io_ptr=yes
31122else
31123  ac_cv_lib_png15_png_get_io_ptr=no
31124fi
31125rm -f core conftest.err conftest.$ac_objext \
31126    conftest$ac_exeext conftest.$ac_ext
31127LIBS=$ac_check_lib_save_LIBS
31128fi
31129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31130$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31131if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31132  passed=`expr $passed + 1`
31133else
31134  failed=`expr $failed + 1`
31135fi
31136
31137            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31138$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31139if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31140  $as_echo_n "(cached) " >&6
31141else
31142  ac_check_lib_save_LIBS=$LIBS
31143LIBS="-lpng15  $LIBS"
31144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31145/* end confdefs.h.  */
31146
31147/* Override any GCC internal prototype to avoid an error.
31148   Use char because int might match the return type of a GCC
31149   builtin and then its argument prototype would still apply.  */
31150#ifdef __cplusplus
31151extern "C"
31152#endif
31153char png_longjmp ();
31154int
31155main ()
31156{
31157return png_longjmp ();
31158  ;
31159  return 0;
31160}
31161_ACEOF
31162if ac_fn_c_try_link "$LINENO"; then :
31163  ac_cv_lib_png15_png_longjmp=yes
31164else
31165  ac_cv_lib_png15_png_longjmp=no
31166fi
31167rm -f core conftest.err conftest.$ac_objext \
31168    conftest$ac_exeext conftest.$ac_ext
31169LIBS=$ac_check_lib_save_LIBS
31170fi
31171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31172$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31173if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31174  passed=`expr $passed + 1`
31175else
31176  failed=`expr $failed + 1`
31177fi
31178
31179          fi
31180          if test "1${var}" = '14' ; then
31181            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31182$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31183if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31184  $as_echo_n "(cached) " >&6
31185else
31186  ac_check_lib_save_LIBS=$LIBS
31187LIBS="-lpng14  $LIBS"
31188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31189/* end confdefs.h.  */
31190
31191/* Override any GCC internal prototype to avoid an error.
31192   Use char because int might match the return type of a GCC
31193   builtin and then its argument prototype would still apply.  */
31194#ifdef __cplusplus
31195extern "C"
31196#endif
31197char png_get_io_ptr ();
31198int
31199main ()
31200{
31201return png_get_io_ptr ();
31202  ;
31203  return 0;
31204}
31205_ACEOF
31206if ac_fn_c_try_link "$LINENO"; then :
31207  ac_cv_lib_png14_png_get_io_ptr=yes
31208else
31209  ac_cv_lib_png14_png_get_io_ptr=no
31210fi
31211rm -f core conftest.err conftest.$ac_objext \
31212    conftest$ac_exeext conftest.$ac_ext
31213LIBS=$ac_check_lib_save_LIBS
31214fi
31215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31216$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31217if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31218  passed=`expr $passed + 1`
31219else
31220  failed=`expr $failed + 1`
31221fi
31222
31223            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31224$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31225if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31226  $as_echo_n "(cached) " >&6
31227else
31228  ac_check_lib_save_LIBS=$LIBS
31229LIBS="-lpng14  $LIBS"
31230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31231/* end confdefs.h.  */
31232
31233/* Override any GCC internal prototype to avoid an error.
31234   Use char because int might match the return type of a GCC
31235   builtin and then its argument prototype would still apply.  */
31236#ifdef __cplusplus
31237extern "C"
31238#endif
31239char png_get_io_state ();
31240int
31241main ()
31242{
31243return png_get_io_state ();
31244  ;
31245  return 0;
31246}
31247_ACEOF
31248if ac_fn_c_try_link "$LINENO"; then :
31249  ac_cv_lib_png14_png_get_io_state=yes
31250else
31251  ac_cv_lib_png14_png_get_io_state=no
31252fi
31253rm -f core conftest.err conftest.$ac_objext \
31254    conftest$ac_exeext conftest.$ac_ext
31255LIBS=$ac_check_lib_save_LIBS
31256fi
31257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31258$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31259if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31260  passed=`expr $passed + 1`
31261else
31262  failed=`expr $failed + 1`
31263fi
31264
31265          fi
31266          if test "1${var}" = '12' ; then
31267            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31268$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31269if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31270  $as_echo_n "(cached) " >&6
31271else
31272  ac_check_lib_save_LIBS=$LIBS
31273LIBS="-lpng12  $LIBS"
31274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31275/* end confdefs.h.  */
31276
31277/* Override any GCC internal prototype to avoid an error.
31278   Use char because int might match the return type of a GCC
31279   builtin and then its argument prototype would still apply.  */
31280#ifdef __cplusplus
31281extern "C"
31282#endif
31283char png_get_io_ptr ();
31284int
31285main ()
31286{
31287return png_get_io_ptr ();
31288  ;
31289  return 0;
31290}
31291_ACEOF
31292if ac_fn_c_try_link "$LINENO"; then :
31293  ac_cv_lib_png12_png_get_io_ptr=yes
31294else
31295  ac_cv_lib_png12_png_get_io_ptr=no
31296fi
31297rm -f core conftest.err conftest.$ac_objext \
31298    conftest$ac_exeext conftest.$ac_ext
31299LIBS=$ac_check_lib_save_LIBS
31300fi
31301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31302$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31303if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31304  passed=`expr $passed + 1`
31305else
31306  failed=`expr $failed + 1`
31307fi
31308
31309          fi
31310          if test "1${var}" = '1' ; then
31311              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31312$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31313if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31314  $as_echo_n "(cached) " >&6
31315else
31316  ac_check_lib_save_LIBS=$LIBS
31317LIBS="-lpng  $LIBS"
31318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31319/* end confdefs.h.  */
31320
31321/* Override any GCC internal prototype to avoid an error.
31322   Use char because int might match the return type of a GCC
31323   builtin and then its argument prototype would still apply.  */
31324#ifdef __cplusplus
31325extern "C"
31326#endif
31327char png_get_io_ptr ();
31328int
31329main ()
31330{
31331return png_get_io_ptr ();
31332  ;
31333  return 0;
31334}
31335_ACEOF
31336if ac_fn_c_try_link "$LINENO"; then :
31337  ac_cv_lib_png_png_get_io_ptr=yes
31338else
31339  ac_cv_lib_png_png_get_io_ptr=no
31340fi
31341rm -f core conftest.err conftest.$ac_objext \
31342    conftest$ac_exeext conftest.$ac_ext
31343LIBS=$ac_check_lib_save_LIBS
31344fi
31345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31346$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31347if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31348  passed=`expr $passed + 1`
31349else
31350  failed=`expr $failed + 1`
31351fi
31352
31353          fi
31354          if test $passed -gt 0 -a $failed -le 0 ; then
31355            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31356$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31357            if test $passed -gt 0 ; then
31358              if test $failed -gt 0 ; then
31359                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31360$as_echo "no -- some components failed test" >&6; }
31361                  have_png='no (failed tests)'
31362              else
31363                  PNG_LIBS="-l${pnglib}"
31364                  LIBS="$PNG_LIBS $LIBS"
31365
31366$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
31367
31368                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31369$as_echo "yes" >&6; }
31370                  have_png='yes'
31371              fi
31372            fi
31373          fi
31374        fi
31375      fi
31376    done
31377  fi
31378fi
31379
31380 if test "$have_png" = 'yes'; then
31381  PNG_DELEGATE_TRUE=
31382  PNG_DELEGATE_FALSE='#'
31383else
31384  PNG_DELEGATE_TRUE='#'
31385  PNG_DELEGATE_FALSE=
31386fi
31387
31388
31389
31390
31391
31392#
31393# Check for RSVG delegate library.
31394#
31395
31396# Check whether --with-rsvg was given.
31397if test "${with_rsvg+set}" = set; then :
31398  withval=$with_rsvg; with_rsvg=$withval
31399else
31400  with_rsvg='no'
31401fi
31402
31403
31404if test "$with_rsvg" != 'yes'; then
31405    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31406fi
31407
31408have_rsvg='no'
31409have_cairo='no'
31410RSVG_CFLAGS=""
31411RSVG_LIBS=""
31412RSVG_PKG=""
31413if test "x$with_rsvg" = "xyes"; then
31414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31415$as_echo "-------------------------------------------------------------" >&6; }
31416
31417pkg_failed=no
31418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31419$as_echo_n "checking for RSVG... " >&6; }
31420
31421if test -n "$RSVG_CFLAGS"; then
31422    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31423 elif test -n "$PKG_CONFIG"; then
31424    if test -n "$PKG_CONFIG" && \
31425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31426  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31427  ac_status=$?
31428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31429  test $ac_status = 0; }; then
31430  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31431else
31432  pkg_failed=yes
31433fi
31434 else
31435    pkg_failed=untried
31436fi
31437if test -n "$RSVG_LIBS"; then
31438    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31439 elif test -n "$PKG_CONFIG"; then
31440    if test -n "$PKG_CONFIG" && \
31441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31442  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31443  ac_status=$?
31444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31445  test $ac_status = 0; }; then
31446  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31447else
31448  pkg_failed=yes
31449fi
31450 else
31451    pkg_failed=untried
31452fi
31453
31454
31455
31456if test $pkg_failed = yes; then
31457
31458if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31459        _pkg_short_errors_supported=yes
31460else
31461        _pkg_short_errors_supported=no
31462fi
31463        if test $_pkg_short_errors_supported = yes; then
31464	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31465        else
31466	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31467        fi
31468	# Put the nasty error message in config.log where it belongs
31469	echo "$RSVG_PKG_ERRORS" >&5
31470
31471	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472$as_echo "no" >&6; }
31473                have_rsvg=no
31474elif test $pkg_failed = untried; then
31475	have_rsvg=no
31476else
31477	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31478	RSVG_LIBS=$pkg_cv_RSVG_LIBS
31479        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31480$as_echo "yes" >&6; }
31481	have_rsvg=yes
31482fi
31483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31484$as_echo "" >&6; }
31485
31486pkg_failed=no
31487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31488$as_echo_n "checking for CAIRO_SVG... " >&6; }
31489
31490if test -n "$CAIRO_SVG_CFLAGS"; then
31491    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31492 elif test -n "$PKG_CONFIG"; then
31493    if test -n "$PKG_CONFIG" && \
31494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31495  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31496  ac_status=$?
31497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31498  test $ac_status = 0; }; then
31499  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31500else
31501  pkg_failed=yes
31502fi
31503 else
31504    pkg_failed=untried
31505fi
31506if test -n "$CAIRO_SVG_LIBS"; then
31507    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31508 elif test -n "$PKG_CONFIG"; then
31509    if test -n "$PKG_CONFIG" && \
31510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31511  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31512  ac_status=$?
31513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31514  test $ac_status = 0; }; then
31515  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31516else
31517  pkg_failed=yes
31518fi
31519 else
31520    pkg_failed=untried
31521fi
31522
31523
31524
31525if test $pkg_failed = yes; then
31526
31527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31528        _pkg_short_errors_supported=yes
31529else
31530        _pkg_short_errors_supported=no
31531fi
31532        if test $_pkg_short_errors_supported = yes; then
31533	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31534        else
31535	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31536        fi
31537	# Put the nasty error message in config.log where it belongs
31538	echo "$CAIRO_SVG_PKG_ERRORS" >&5
31539
31540	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31541$as_echo "no" >&6; }
31542                have_cairo=no
31543elif test $pkg_failed = untried; then
31544	have_cairo=no
31545else
31546	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31547	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31549$as_echo "yes" >&6; }
31550	have_cairo=yes
31551fi
31552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31553$as_echo "" >&6; }
31554fi
31555
31556if test "$have_rsvg" = 'yes'; then
31557
31558$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31559
31560    if test "$build_modules" = 'no'; then
31561        CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31562    fi
31563fi
31564
31565if test "$have_cairo" = 'yes'; then
31566
31567$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31568
31569    if test "$build_modules" = 'no'; then
31570        CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31571    fi
31572fi
31573
31574 if test "$have_rsvg" = 'yes'; then
31575  RSVG_DELEGATE_TRUE=
31576  RSVG_DELEGATE_FALSE='#'
31577else
31578  RSVG_DELEGATE_TRUE='#'
31579  RSVG_DELEGATE_FALSE=
31580fi
31581
31582 if test "$have_cairo" = 'yes'; then
31583  CAIRO_DELEGATE_TRUE=
31584  CAIRO_DELEGATE_FALSE='#'
31585else
31586  CAIRO_DELEGATE_TRUE='#'
31587  CAIRO_DELEGATE_FALSE=
31588fi
31589
31590
31591
31592
31593
31594#
31595# Check for TIFF delegate library.
31596#
31597
31598# Check whether --with-tiff was given.
31599if test "${with_tiff+set}" = set; then :
31600  withval=$with_tiff; with_tiff=$withval
31601else
31602  with_tiff='yes'
31603fi
31604
31605
31606if test "$with_tiff" != 'yes'; then
31607    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31608fi
31609
31610have_tiff='no'
31611TIFF_LIBS=''
31612if test "$with_tiff" != 'no'; then
31613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31614$as_echo "-------------------------------------------------------------" >&6; }
31615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31616$as_echo_n "checking for TIFF... " >&6; }
31617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31618$as_echo "" >&6; }
31619    failed=0
31620    passed=0
31621    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31622if test "x$ac_cv_header_tiff_h" = xyes; then :
31623  passed=`expr $passed + 1`
31624else
31625  failed=`expr $failed + 1`
31626fi
31627
31628
31629    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31630if test "x$ac_cv_header_tiffio_h" = xyes; then :
31631  passed=`expr $passed + 1`
31632else
31633  failed=`expr $failed + 1`
31634fi
31635
31636
31637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31638$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31639if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
31640  $as_echo_n "(cached) " >&6
31641else
31642  ac_check_lib_save_LIBS=$LIBS
31643LIBS="-ltiff  $LIBS"
31644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31645/* end confdefs.h.  */
31646
31647/* Override any GCC internal prototype to avoid an error.
31648   Use char because int might match the return type of a GCC
31649   builtin and then its argument prototype would still apply.  */
31650#ifdef __cplusplus
31651extern "C"
31652#endif
31653char TIFFOpen ();
31654int
31655main ()
31656{
31657return TIFFOpen ();
31658  ;
31659  return 0;
31660}
31661_ACEOF
31662if ac_fn_c_try_link "$LINENO"; then :
31663  ac_cv_lib_tiff_TIFFOpen=yes
31664else
31665  ac_cv_lib_tiff_TIFFOpen=no
31666fi
31667rm -f core conftest.err conftest.$ac_objext \
31668    conftest$ac_exeext conftest.$ac_ext
31669LIBS=$ac_check_lib_save_LIBS
31670fi
31671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31672$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31673if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
31674  passed=`expr $passed + 1`
31675else
31676  failed=`expr $failed + 1`
31677fi
31678
31679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
31680$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31681if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
31682  $as_echo_n "(cached) " >&6
31683else
31684  ac_check_lib_save_LIBS=$LIBS
31685LIBS="-ltiff  $LIBS"
31686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31687/* end confdefs.h.  */
31688
31689/* Override any GCC internal prototype to avoid an error.
31690   Use char because int might match the return type of a GCC
31691   builtin and then its argument prototype would still apply.  */
31692#ifdef __cplusplus
31693extern "C"
31694#endif
31695char TIFFClientOpen ();
31696int
31697main ()
31698{
31699return TIFFClientOpen ();
31700  ;
31701  return 0;
31702}
31703_ACEOF
31704if ac_fn_c_try_link "$LINENO"; then :
31705  ac_cv_lib_tiff_TIFFClientOpen=yes
31706else
31707  ac_cv_lib_tiff_TIFFClientOpen=no
31708fi
31709rm -f core conftest.err conftest.$ac_objext \
31710    conftest$ac_exeext conftest.$ac_ext
31711LIBS=$ac_check_lib_save_LIBS
31712fi
31713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
31714$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31715if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
31716  passed=`expr $passed + 1`
31717else
31718  failed=`expr $failed + 1`
31719fi
31720
31721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
31722$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31723if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
31724  $as_echo_n "(cached) " >&6
31725else
31726  ac_check_lib_save_LIBS=$LIBS
31727LIBS="-ltiff  $LIBS"
31728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31729/* end confdefs.h.  */
31730
31731/* Override any GCC internal prototype to avoid an error.
31732   Use char because int might match the return type of a GCC
31733   builtin and then its argument prototype would still apply.  */
31734#ifdef __cplusplus
31735extern "C"
31736#endif
31737char TIFFIsByteSwapped ();
31738int
31739main ()
31740{
31741return TIFFIsByteSwapped ();
31742  ;
31743  return 0;
31744}
31745_ACEOF
31746if ac_fn_c_try_link "$LINENO"; then :
31747  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31748else
31749  ac_cv_lib_tiff_TIFFIsByteSwapped=no
31750fi
31751rm -f core conftest.err conftest.$ac_objext \
31752    conftest$ac_exeext conftest.$ac_ext
31753LIBS=$ac_check_lib_save_LIBS
31754fi
31755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
31756$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31757if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
31758  passed=`expr $passed + 1`
31759else
31760  failed=`expr $failed + 1`
31761fi
31762
31763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
31764$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31765if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
31766  $as_echo_n "(cached) " >&6
31767else
31768  ac_check_lib_save_LIBS=$LIBS
31769LIBS="-ltiff  $LIBS"
31770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31771/* end confdefs.h.  */
31772
31773/* Override any GCC internal prototype to avoid an error.
31774   Use char because int might match the return type of a GCC
31775   builtin and then its argument prototype would still apply.  */
31776#ifdef __cplusplus
31777extern "C"
31778#endif
31779char TIFFReadRGBATile ();
31780int
31781main ()
31782{
31783return TIFFReadRGBATile ();
31784  ;
31785  return 0;
31786}
31787_ACEOF
31788if ac_fn_c_try_link "$LINENO"; then :
31789  ac_cv_lib_tiff_TIFFReadRGBATile=yes
31790else
31791  ac_cv_lib_tiff_TIFFReadRGBATile=no
31792fi
31793rm -f core conftest.err conftest.$ac_objext \
31794    conftest$ac_exeext conftest.$ac_ext
31795LIBS=$ac_check_lib_save_LIBS
31796fi
31797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
31798$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
31799if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
31800  passed=`expr $passed + 1`
31801else
31802  failed=`expr $failed + 1`
31803fi
31804
31805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
31806$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
31807if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
31808  $as_echo_n "(cached) " >&6
31809else
31810  ac_check_lib_save_LIBS=$LIBS
31811LIBS="-ltiff  $LIBS"
31812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31813/* end confdefs.h.  */
31814
31815/* Override any GCC internal prototype to avoid an error.
31816   Use char because int might match the return type of a GCC
31817   builtin and then its argument prototype would still apply.  */
31818#ifdef __cplusplus
31819extern "C"
31820#endif
31821char TIFFReadRGBAStrip ();
31822int
31823main ()
31824{
31825return TIFFReadRGBAStrip ();
31826  ;
31827  return 0;
31828}
31829_ACEOF
31830if ac_fn_c_try_link "$LINENO"; then :
31831  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31832else
31833  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
31834fi
31835rm -f core conftest.err conftest.$ac_objext \
31836    conftest$ac_exeext conftest.$ac_ext
31837LIBS=$ac_check_lib_save_LIBS
31838fi
31839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
31840$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
31841if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
31842  passed=`expr $passed + 1`
31843else
31844  failed=`expr $failed + 1`
31845fi
31846
31847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
31848$as_echo_n "checking if TIFF package is complete... " >&6; }
31849    if test $passed -gt 0; then
31850        if test $failed -gt 0; then
31851            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31852$as_echo "no -- some components failed test" >&6; }
31853            have_tiff='no (failed tests)'
31854        else
31855            TIFF_LIBS='-ltiff'
31856            LIBS="$TIFF_LIBS $LIBS"
31857
31858$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
31859
31860            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31861$as_echo "yes" >&6; }
31862            have_tiff='yes'
31863            for ac_header in tiffconf.h
31864do :
31865  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
31866if test "x$ac_cv_header_tiffconf_h" = xyes; then :
31867  cat >>confdefs.h <<_ACEOF
31868#define HAVE_TIFFCONF_H 1
31869_ACEOF
31870
31871fi
31872
31873done
31874
31875            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
31876              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31877              TIFFSetTagExtender TIFFSetWarningHandlerExt \
31878              TIFFSwabArrayOfTriples
31879do :
31880  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31882if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31883  cat >>confdefs.h <<_ACEOF
31884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31885_ACEOF
31886
31887fi
31888done
31889
31890        fi
31891    else
31892        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31893$as_echo "no" >&6; }
31894    fi
31895fi
31896 if test "$have_tiff" = 'yes'; then
31897  TIFF_DELEGATE_TRUE=
31898  TIFF_DELEGATE_FALSE='#'
31899else
31900  TIFF_DELEGATE_TRUE='#'
31901  TIFF_DELEGATE_FALSE=
31902fi
31903
31904
31905
31906
31907#
31908# Check for WEBP delegate library.
31909#
31910
31911# Check whether --with-webp was given.
31912if test "${with_webp+set}" = set; then :
31913  withval=$with_webp; with_webp=$withval
31914else
31915  with_webp='yes'
31916fi
31917
31918
31919if test "$with_webp" != 'yes'; then
31920    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31921fi
31922
31923have_webp='no'
31924WEBP_LIBS=''
31925if test "$with_webp" != 'no'; then
31926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31927$as_echo "-------------------------------------------------------------" >&6; }
31928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31929$as_echo_n "checking for WEBP... " >&6; }
31930    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31931$as_echo "" >&6; }
31932    failed=0
31933    passed=0
31934    ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31935if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31936  passed=`expr $passed + 1`
31937else
31938  failed=`expr $failed + 1`
31939fi
31940
31941
31942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31943$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31944if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
31945  $as_echo_n "(cached) " >&6
31946else
31947  ac_check_lib_save_LIBS=$LIBS
31948LIBS="-lwebp  $LIBS"
31949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31950/* end confdefs.h.  */
31951
31952/* Override any GCC internal prototype to avoid an error.
31953   Use char because int might match the return type of a GCC
31954   builtin and then its argument prototype would still apply.  */
31955#ifdef __cplusplus
31956extern "C"
31957#endif
31958char WebPPictureInitInternal ();
31959int
31960main ()
31961{
31962return WebPPictureInitInternal ();
31963  ;
31964  return 0;
31965}
31966_ACEOF
31967if ac_fn_c_try_link "$LINENO"; then :
31968  ac_cv_lib_webp_WebPPictureInitInternal=yes
31969else
31970  ac_cv_lib_webp_WebPPictureInitInternal=no
31971fi
31972rm -f core conftest.err conftest.$ac_objext \
31973    conftest$ac_exeext conftest.$ac_ext
31974LIBS=$ac_check_lib_save_LIBS
31975fi
31976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31977$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31978if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
31979  passed=`expr $passed + 1`
31980else
31981  failed=`expr $failed + 1`
31982fi
31983
31984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31985$as_echo_n "checking if WEBP package is complete... " >&6; }
31986    if test $passed -gt 0; then
31987        if test $failed -gt 0; then
31988            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31989$as_echo "no -- some components failed test" >&6; }
31990            have_webp='no (failed tests)'
31991        else
31992            WEBP_LIBS='-lwebp'
31993            LIBS="$WEBP_LIBS $LIBS"
31994
31995$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31996
31997            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31998$as_echo "yes" >&6; }
31999            have_webp='yes'
32000        fi
32001    else
32002        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32003$as_echo "no" >&6; }
32004    fi
32005fi
32006 if test "$have_webp" = 'yes'; then
32007  WEBP_DELEGATE_TRUE=
32008  WEBP_DELEGATE_FALSE='#'
32009else
32010  WEBP_DELEGATE_TRUE='#'
32011  WEBP_DELEGATE_FALSE=
32012fi
32013
32014
32015
32016
32017#
32018# Set Windows font directory.
32019#
32020
32021# Check whether --with-windows-font-dir was given.
32022if test "${with_windows_font_dir+set}" = set; then :
32023  withval=$with_windows_font_dir; with_windows_font_dir=$withval
32024else
32025  with_windows_font_dir=''
32026fi
32027
32028if test "$with_windows_font_dir" != '' ; then
32029    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32030fi
32031
32032
32033#
32034# Check for WMF delegate library.
32035#
32036
32037# Check whether --with-wmf was given.
32038if test "${with_wmf+set}" = set; then :
32039  withval=$with_wmf; with_wmf=$withval
32040else
32041  with_wmf='no'
32042fi
32043
32044
32045if test "$with_wmf" != 'yes'; then
32046    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32047fi
32048
32049have_wmf='no'
32050WMF_LIBS=''
32051WMF_LIBS_DEPS=''
32052OLIBS="$LIBS"
32053if test "$with_wmf" != 'no'; then
32054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32055$as_echo "-------------------------------------------------------------" >&6; }
32056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
32057$as_echo_n "checking for WMF... " >&6; }
32058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32059$as_echo "" >&6; }
32060    have_libwmf='no'
32061    have_libwmflite='no'
32062    have_libwmf_ipa_h='no'
32063
32064    ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32065"
32066if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32067  have_libwmf_ipa_h='yes'
32068fi
32069
32070
32071    if test "$have_libwmf_ipa_h" = 'yes'; then
32072        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32073$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32074if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32075  $as_echo_n "(cached) " >&6
32076else
32077  ac_check_lib_save_LIBS=$LIBS
32078LIBS="-lwmflite  $LIBS"
32079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32080/* end confdefs.h.  */
32081
32082/* Override any GCC internal prototype to avoid an error.
32083   Use char because int might match the return type of a GCC
32084   builtin and then its argument prototype would still apply.  */
32085#ifdef __cplusplus
32086extern "C"
32087#endif
32088char wmf_lite_create ();
32089int
32090main ()
32091{
32092return wmf_lite_create ();
32093  ;
32094  return 0;
32095}
32096_ACEOF
32097if ac_fn_c_try_link "$LINENO"; then :
32098  ac_cv_lib_wmflite_wmf_lite_create=yes
32099else
32100  ac_cv_lib_wmflite_wmf_lite_create=no
32101fi
32102rm -f core conftest.err conftest.$ac_objext \
32103    conftest$ac_exeext conftest.$ac_ext
32104LIBS=$ac_check_lib_save_LIBS
32105fi
32106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32107$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32108if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32109  have_libwmflite='yes'
32110fi
32111
32112        if test "$have_libwmflite" = 'yes'; then
32113
32114$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32115
32116            WMF_LIBS='-lwmflite'
32117            LIBS="$WMF_LIBS $LIBS"
32118            have_wmf='yes'
32119        else
32120            WMF_LIBS_DEPS=''
32121            WMF_CONFIG_LIBS=`libwmf-config --libs`
32122            for lib in xml2 expat freetype jpeg png z; do
32123                testlib="-l${lib}"
32124                echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32125            done
32126            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32127$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32128if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32129  $as_echo_n "(cached) " >&6
32130else
32131  ac_check_lib_save_LIBS=$LIBS
32132LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32134/* end confdefs.h.  */
32135
32136/* Override any GCC internal prototype to avoid an error.
32137   Use char because int might match the return type of a GCC
32138   builtin and then its argument prototype would still apply.  */
32139#ifdef __cplusplus
32140extern "C"
32141#endif
32142char wmf_api_create ();
32143int
32144main ()
32145{
32146return wmf_api_create ();
32147  ;
32148  return 0;
32149}
32150_ACEOF
32151if ac_fn_c_try_link "$LINENO"; then :
32152  ac_cv_lib_wmf_wmf_api_create=yes
32153else
32154  ac_cv_lib_wmf_wmf_api_create=no
32155fi
32156rm -f core conftest.err conftest.$ac_objext \
32157    conftest$ac_exeext conftest.$ac_ext
32158LIBS=$ac_check_lib_save_LIBS
32159fi
32160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32161$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32162if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32163  have_libwmf='yes'
32164fi
32165
32166            if test "$have_libwmf" = 'yes'; then
32167
32168$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
32169
32170                WMF_LIBS='-lwmf'
32171                LIBS="$WMF_LIBS $LIBS"
32172                have_wmf='yes'
32173            else
32174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32175$as_echo "no -- some components failed test" >&6; }
32176                have_wmf='no (failed tests)'
32177                have_wmflite='no (failed tests)'
32178                LIBS="$OLIBS"
32179                WMF_LIBS=''
32180            fi
32181        fi
32182    fi
32183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32184$as_echo_n "checking if WMF package is complete... " >&6; }
32185    if test "$have_wmf" = 'yes'; then
32186        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32187$as_echo "yes" >&6; }
32188    else
32189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32190$as_echo "no" >&6; }
32191    fi
32192fi
32193 if test "$have_wmf" = 'yes'; then
32194  WMF_DELEGATE_TRUE=
32195  WMF_DELEGATE_FALSE='#'
32196else
32197  WMF_DELEGATE_TRUE='#'
32198  WMF_DELEGATE_FALSE=
32199fi
32200
32201
32202
32203
32204
32205
32206#
32207# Check for XML delegate library.
32208#
32209
32210# Check whether --with-xml was given.
32211if test "${with_xml+set}" = set; then :
32212  withval=$with_xml; with_xml=$withval
32213else
32214  with_xml='yes'
32215fi
32216
32217
32218if test "$with_xml" != 'yes' ; then
32219    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32220fi
32221
32222have_xml='no'
32223XML_LIBS=''
32224if test "$with_xml" != 'no'; then
32225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32226$as_echo "-------------------------------------------------------------" >&6; }
32227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32228$as_echo_n "checking for XML... " >&6; }
32229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32230$as_echo "" >&6; }
32231    PERSIST_LDFLAGS=$LDFLAGS
32232    PERSIST_CPPFLAGS=$CPPFLAGS
32233    xml2_config=''
32234    # Extract the first word of "xml2-config", so it can be a program name with args.
32235set dummy xml2-config; ac_word=$2
32236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32237$as_echo_n "checking for $ac_word... " >&6; }
32238if ${ac_cv_path_xml2_config+:} false; then :
32239  $as_echo_n "(cached) " >&6
32240else
32241  case $xml2_config in
32242  [\\/]* | ?:[\\/]*)
32243  ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32244  ;;
32245  *)
32246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32247for as_dir in $PATH
32248do
32249  IFS=$as_save_IFS
32250  test -z "$as_dir" && as_dir=.
32251    for ac_exec_ext in '' $ac_executable_extensions; do
32252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32253    ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32255    break 2
32256  fi
32257done
32258  done
32259IFS=$as_save_IFS
32260
32261  ;;
32262esac
32263fi
32264xml2_config=$ac_cv_path_xml2_config
32265if test -n "$xml2_config"; then
32266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32267$as_echo "$xml2_config" >&6; }
32268else
32269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32270$as_echo "no" >&6; }
32271fi
32272
32273    if test -n "$xml2_config"; then
32274        # Debian installs libxml headers under /usr/include/libxml2/libxml with
32275        # the shared library installed under /usr/lib, whereas the package
32276        # installs itself under $prefix/libxml and $prefix/lib.
32277        xml2_prefix=`xml2-config --prefix`
32278        if test -d "${xml2_prefix}/include/libxml2"; then
32279            CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32280        fi
32281        if test "${xml2_prefix}" != '/usr'; then
32282            LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32283        fi
32284    fi
32285    failed=0
32286    passed=0
32287    ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32288if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32289  passed=`expr $passed + 1`
32290else
32291  failed=`expr $failed + 1`
32292fi
32293
32294
32295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32296$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32297if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32298  $as_echo_n "(cached) " >&6
32299else
32300  ac_check_lib_save_LIBS=$LIBS
32301LIBS="-lxml2  $LIBS"
32302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32303/* end confdefs.h.  */
32304
32305/* Override any GCC internal prototype to avoid an error.
32306   Use char because int might match the return type of a GCC
32307   builtin and then its argument prototype would still apply.  */
32308#ifdef __cplusplus
32309extern "C"
32310#endif
32311char xmlSAXVersion ();
32312int
32313main ()
32314{
32315return xmlSAXVersion ();
32316  ;
32317  return 0;
32318}
32319_ACEOF
32320if ac_fn_c_try_link "$LINENO"; then :
32321  ac_cv_lib_xml2_xmlSAXVersion=yes
32322else
32323  ac_cv_lib_xml2_xmlSAXVersion=no
32324fi
32325rm -f core conftest.err conftest.$ac_objext \
32326    conftest$ac_exeext conftest.$ac_ext
32327LIBS=$ac_check_lib_save_LIBS
32328fi
32329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32330$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32331if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32332  passed=`expr $passed + 1`
32333else
32334  failed=`expr $failed + 1`
32335fi
32336
32337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32338$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32339if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32340  $as_echo_n "(cached) " >&6
32341else
32342  ac_check_lib_save_LIBS=$LIBS
32343LIBS="-lxml2  $LIBS"
32344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32345/* end confdefs.h.  */
32346
32347/* Override any GCC internal prototype to avoid an error.
32348   Use char because int might match the return type of a GCC
32349   builtin and then its argument prototype would still apply.  */
32350#ifdef __cplusplus
32351extern "C"
32352#endif
32353char xmlParseChunk ();
32354int
32355main ()
32356{
32357return xmlParseChunk ();
32358  ;
32359  return 0;
32360}
32361_ACEOF
32362if ac_fn_c_try_link "$LINENO"; then :
32363  ac_cv_lib_xml2_xmlParseChunk=yes
32364else
32365  ac_cv_lib_xml2_xmlParseChunk=no
32366fi
32367rm -f core conftest.err conftest.$ac_objext \
32368    conftest$ac_exeext conftest.$ac_ext
32369LIBS=$ac_check_lib_save_LIBS
32370fi
32371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32372$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32373if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32374  passed=`expr $passed + 1`
32375else
32376  failed=`expr $failed + 1`
32377fi
32378
32379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32380$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32381if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32382  $as_echo_n "(cached) " >&6
32383else
32384  ac_check_lib_save_LIBS=$LIBS
32385LIBS="-lxml2  $LIBS"
32386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32387/* end confdefs.h.  */
32388
32389/* Override any GCC internal prototype to avoid an error.
32390   Use char because int might match the return type of a GCC
32391   builtin and then its argument prototype would still apply.  */
32392#ifdef __cplusplus
32393extern "C"
32394#endif
32395char xmlCreatePushParserCtxt ();
32396int
32397main ()
32398{
32399return xmlCreatePushParserCtxt ();
32400  ;
32401  return 0;
32402}
32403_ACEOF
32404if ac_fn_c_try_link "$LINENO"; then :
32405  ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32406else
32407  ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32408fi
32409rm -f core conftest.err conftest.$ac_objext \
32410    conftest$ac_exeext conftest.$ac_ext
32411LIBS=$ac_check_lib_save_LIBS
32412fi
32413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32414$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32415if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32416  passed=`expr $passed + 1`
32417else
32418  failed=`expr $failed + 1`
32419fi
32420
32421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32422$as_echo_n "checking if XML package is complete... " >&6; }
32423    if test $passed -gt 0; then
32424        if test $failed -gt 0; then
32425            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32426$as_echo "no -- some components failed test" >&6; }
32427            have_xml='no (failed tests)'
32428            LDFLAGS="$PERSIST_LDFLAGS"
32429            CPPFLAGS="$PERSIST_CPPFLAGS"
32430        else
32431            XML_LIBS='-lxml2'
32432            LIBS="$XML_LIBS $LIBS"
32433
32434$as_echo "#define XML_DELEGATE 1" >>confdefs.h
32435
32436            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32437$as_echo "yes" >&6; }
32438            have_xml='yes'
32439        fi
32440    else
32441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32442$as_echo "no" >&6; }
32443    fi
32444fi
32445 if test "$have_xml" = 'yes'; then
32446  XML_DELEGATE_TRUE=
32447  XML_DELEGATE_FALSE='#'
32448else
32449  XML_DELEGATE_TRUE='#'
32450  XML_DELEGATE_FALSE=
32451fi
32452
32453
32454
32455
32456# Substitute compiler name to build/link PerlMagick
32457#
32458
32459
32460#
32461# Configure install Paths
32462#
32463
32464# Path to ImageMagick header files
32465INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32466INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32467DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
32468case "${build_os}" in
32469  mingw* )
32470    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32471    ;;
32472esac
32473
32474cat >>confdefs.h <<_ACEOF
32475#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32476_ACEOF
32477
32478
32479
32480# Path to ImageMagick header files (arch part)
32481INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32482DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32483case "${build_os}" in
32484  mingw* )
32485    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32486    ;;
32487esac
32488
32489cat >>confdefs.h <<_ACEOF
32490#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32491_ACEOF
32492
32493
32494
32495# Subdirectory under lib to place ImageMagick lib files
32496LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32497
32498cat >>confdefs.h <<_ACEOF
32499#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32500_ACEOF
32501
32502
32503# Path to ImageMagick bin directory
32504EXECUTABLE_PATH="${BIN_DIR}"
32505DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32506case "${build_os}" in
32507  mingw* )
32508    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32509    ;;
32510esac
32511
32512cat >>confdefs.h <<_ACEOF
32513#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32514_ACEOF
32515
32516
32517
32518# Path to ImageMagick lib
32519LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32520DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32521case "${build_os}" in
32522  mingw* )
32523    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32524    ;;
32525esac
32526
32527cat >>confdefs.h <<_ACEOF
32528#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32529_ACEOF
32530
32531
32532
32533#
32534# path to local binaries
32535if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32536   LIB_BIN_BASEDIRNAME="bin"
32537fi
32538
32539cat >>confdefs.h <<_ACEOF
32540#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32541_ACEOF
32542
32543
32544
32545if test "x$LIB_BIN_DIR" = "x"; then
32546   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32547fi
32548
32549
32550LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32551
32552LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32553
32554
32555#
32556# path to modules lib
32557if test "x$MODULES_BASEDIRNAME" = "x"; then
32558   MODULES_BASEDIRNAME="modules"
32559fi
32560
32561cat >>confdefs.h <<_ACEOF
32562#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
32563_ACEOF
32564
32565
32566
32567if test "x$MODULES_DIRNAME" = "x"; then
32568  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32569else
32570
32571cat >>confdefs.h <<_ACEOF
32572#define MODULES_DIRNAME "$MODULES_DIRNAME"
32573_ACEOF
32574
32575fi
32576
32577
32578MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
32579
32580MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32581
32582
32583#
32584# path to coders lib
32585if test "x$CODER_DIRNAME" = "x"; then
32586   CODER_DIRNAME="coders"
32587fi
32588
32589cat >>confdefs.h <<_ACEOF
32590#define CODER_DIRNAME "$CODER_DIRNAME"
32591_ACEOF
32592
32593
32594
32595CODER_RELATIVE_PATH="${CODER_DIRNAME}"
32596CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
32597
32598
32599#
32600# Subdirectory under lib to place ImageMagick filter module files
32601#
32602# path to coders lib
32603if test "x$FILTER_DIRNAME" = "x"; then
32604   FILTER_DIRNAME="filters"
32605fi
32606
32607cat >>confdefs.h <<_ACEOF
32608#define FILTER_DIRNAME "$FILTER_DIRNAME"
32609_ACEOF
32610
32611
32612
32613FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
32614FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
32615
32616
32617#
32618# Path to ImageMagick documentation files
32619DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32620DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32621DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
32622case "${build_os}" in
32623  mingw* )
32624    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32625    ;;
32626esac
32627
32628cat >>confdefs.h <<_ACEOF
32629#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32630_ACEOF
32631
32632
32633
32634# Subdirectory to place architecture-dependent configuration files
32635CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32636
32637cat >>confdefs.h <<_ACEOF
32638#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32639_ACEOF
32640
32641CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32642DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32643case "${build_os}" in
32644  mingw* )
32645    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32646    ;;
32647esac
32648
32649cat >>confdefs.h <<_ACEOF
32650#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32651_ACEOF
32652
32653
32654
32655# Subdirectory to place architecture-independent configuration files
32656SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32657
32658cat >>confdefs.h <<_ACEOF
32659#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32660_ACEOF
32661
32662SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32663DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32664case "${build_os}" in
32665  mingw* )
32666    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32667    ;;
32668esac
32669
32670cat >>confdefs.h <<_ACEOF
32671#define SHARE_PATH "$DEFINE_SHARE_PATH"
32672_ACEOF
32673
32674
32675
32676#
32677# Subdirectory to place architecture-dependent configuration files.
32678if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32679   SHAREARCH_BASEDIRNAME="config"
32680fi
32681
32682cat >>confdefs.h <<_ACEOF
32683#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
32684_ACEOF
32685
32686
32687
32688if test "x$SHAREARCH_DIRNAME" = "x"; then
32689  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32690else
32691
32692cat >>confdefs.h <<_ACEOF
32693#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
32694_ACEOF
32695
32696fi
32697
32698
32699SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32700
32701SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
32702
32703
32704#
32705# program_transform_name is formed for use in a Makefile, so create a
32706# modified version for use in a shell script.
32707configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32708
32709# Default delegate definitions
32710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32711$as_echo "-------------------------------------------------------------" >&6; }
32712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32713$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32715$as_echo "" >&6; }
32716AutotraceDecodeDelegateDefault='autotrace'
32717BlenderDecodeDelegateDefault='blender'
32718BZIPDelegateDefault='bzip2'
32719BrowseDelegateDefault='xdg-open'
32720CGMDecodeDelegateDefault='ralcgm'
32721CatDelegateDefault='cat'
32722DNGDecodeDelegateDefault='ufraw-batch'
32723GVCDecodeDelegateDefault='dot'
32724DVIDecodeDelegateDefault='dvips'
32725EchoDelegateDefault='echo'
32726EditorDelegateDefault='xterm'
32727FIGDecodeDelegateDefault='fig2dev'
32728ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32729DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32730MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32731GnuplotDecodeDelegateDefault='gnuplot'
32732HPGLDecodeDelegateDefault='hp2xx'
32733HTMLDecodeDelegateDefault='html2ps'
32734ILBMDecodeDelegateDefault='ilbmtoppm'
32735ILBMEncodeDelegateDefault='ppmtoilbm'
32736JXRDecodeDelegateDefault='JxrDecApp'
32737JXREncodeDelegateDefault='JxrEncApp'
32738LPDelegateDefault='lp'
32739LPRDelegateDefault='lpr'
32740LaunchDelegateDefault='gimp'
32741MANDelegateDefault='groff'
32742MPEGDecodeDelegateDefault='ffmpeg'
32743MPEGEncodeDelegateDefault='ffmpeg'
32744MrSIDDecodeDelegateDefault='mrsidgeodecode'
32745MVDelegateDefault='mv'
32746PCLDelegateDefault='pcl6'
32747PGPDecodeDelegateDefault='pgpv'
32748POVDelegateDefault='povray'
32749if test "$native_win32_build" = 'yes'; then
32750    PSDelegateDefault='gswin32c'
32751elif test "$gslib_framework" = 'yes'; then
32752    PSDelegateDefault='gsc'
32753else
32754    PSDelegateDefault='gs'
32755fi
32756RLEEncodeDelegateDefault='rawtorle'
32757RMDelegateDefault='rm'
32758RSVGDecodeDelegateDefault='rsvg-convert'
32759SCANDecodeDelegateDefault='scanimage'
32760SVGDecodeDelegateDefault='inkscape'
32761TXTDelegateDefault='enscript'
32762UniconvertorDelegateDefault='uniconvertor'
32763WMFDecodeDelegateDefault='wmf2eps'
32764WWWDecodeDelegateDefault='curl'
32765XPSDelegateDefault='gxps'
32766ZipDelegateDefault='gzip'
32767
32768# Search for delegates
32769# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32770set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32772$as_echo_n "checking for $ac_word... " >&6; }
32773if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32774  $as_echo_n "(cached) " >&6
32775else
32776  case $AutotraceDecodeDelegate in
32777  [\\/]* | ?:[\\/]*)
32778  ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32779  ;;
32780  *)
32781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32782for as_dir in $PATH
32783do
32784  IFS=$as_save_IFS
32785  test -z "$as_dir" && as_dir=.
32786    for ac_exec_ext in '' $ac_executable_extensions; do
32787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32788    ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32790    break 2
32791  fi
32792done
32793  done
32794IFS=$as_save_IFS
32795
32796  test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32797  ;;
32798esac
32799fi
32800AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32801if test -n "$AutotraceDecodeDelegate"; then
32802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32803$as_echo "$AutotraceDecodeDelegate" >&6; }
32804else
32805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32806$as_echo "no" >&6; }
32807fi
32808
32809
32810# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32811set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32813$as_echo_n "checking for $ac_word... " >&6; }
32814if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32815  $as_echo_n "(cached) " >&6
32816else
32817  case $BlenderDecodeDelegate in
32818  [\\/]* | ?:[\\/]*)
32819  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32820  ;;
32821  *)
32822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32823for as_dir in $PATH
32824do
32825  IFS=$as_save_IFS
32826  test -z "$as_dir" && as_dir=.
32827    for ac_exec_ext in '' $ac_executable_extensions; do
32828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32829    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32831    break 2
32832  fi
32833done
32834  done
32835IFS=$as_save_IFS
32836
32837  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32838  ;;
32839esac
32840fi
32841BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32842if test -n "$BlenderDecodeDelegate"; then
32843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
32844$as_echo "$BlenderDecodeDelegate" >&6; }
32845else
32846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32847$as_echo "no" >&6; }
32848fi
32849
32850
32851# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32852set dummy "$BZIPDelegateDefault"; ac_word=$2
32853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32854$as_echo_n "checking for $ac_word... " >&6; }
32855if ${ac_cv_path_BZIPDelegate+:} false; then :
32856  $as_echo_n "(cached) " >&6
32857else
32858  case $BZIPDelegate in
32859  [\\/]* | ?:[\\/]*)
32860  ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32861  ;;
32862  *)
32863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32864for as_dir in $PATH
32865do
32866  IFS=$as_save_IFS
32867  test -z "$as_dir" && as_dir=.
32868    for ac_exec_ext in '' $ac_executable_extensions; do
32869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32870    ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
32871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32872    break 2
32873  fi
32874done
32875  done
32876IFS=$as_save_IFS
32877
32878  test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32879  ;;
32880esac
32881fi
32882BZIPDelegate=$ac_cv_path_BZIPDelegate
32883if test -n "$BZIPDelegate"; then
32884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
32885$as_echo "$BZIPDelegate" >&6; }
32886else
32887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32888$as_echo "no" >&6; }
32889fi
32890
32891
32892for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32893do
32894  # Extract the first word of "$ac_prog", so it can be a program name with args.
32895set dummy $ac_prog; ac_word=$2
32896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32897$as_echo_n "checking for $ac_word... " >&6; }
32898if ${ac_cv_path_BrowseDelegate+:} false; then :
32899  $as_echo_n "(cached) " >&6
32900else
32901  case $BrowseDelegate in
32902  [\\/]* | ?:[\\/]*)
32903  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32904  ;;
32905  *)
32906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32907for as_dir in $PATH
32908do
32909  IFS=$as_save_IFS
32910  test -z "$as_dir" && as_dir=.
32911    for ac_exec_ext in '' $ac_executable_extensions; do
32912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32913    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
32914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32915    break 2
32916  fi
32917done
32918  done
32919IFS=$as_save_IFS
32920
32921  ;;
32922esac
32923fi
32924BrowseDelegate=$ac_cv_path_BrowseDelegate
32925if test -n "$BrowseDelegate"; then
32926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
32927$as_echo "$BrowseDelegate" >&6; }
32928else
32929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32930$as_echo "no" >&6; }
32931fi
32932
32933
32934  test -n "$BrowseDelegate" && break
32935done
32936test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32937
32938# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32939set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
32940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32941$as_echo_n "checking for $ac_word... " >&6; }
32942if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
32943  $as_echo_n "(cached) " >&6
32944else
32945  case $CGMDecodeDelegate in
32946  [\\/]* | ?:[\\/]*)
32947  ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32948  ;;
32949  *)
32950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32951for as_dir in $PATH
32952do
32953  IFS=$as_save_IFS
32954  test -z "$as_dir" && as_dir=.
32955    for ac_exec_ext in '' $ac_executable_extensions; do
32956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32957    ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32959    break 2
32960  fi
32961done
32962  done
32963IFS=$as_save_IFS
32964
32965  test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32966  ;;
32967esac
32968fi
32969CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32970if test -n "$CGMDecodeDelegate"; then
32971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
32972$as_echo "$CGMDecodeDelegate" >&6; }
32973else
32974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32975$as_echo "no" >&6; }
32976fi
32977
32978
32979# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32980set dummy "$CatDelegateDefault"; ac_word=$2
32981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32982$as_echo_n "checking for $ac_word... " >&6; }
32983if ${ac_cv_path_CatDelegate+:} false; then :
32984  $as_echo_n "(cached) " >&6
32985else
32986  case $CatDelegate in
32987  [\\/]* | ?:[\\/]*)
32988  ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32989  ;;
32990  *)
32991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32992for as_dir in $PATH
32993do
32994  IFS=$as_save_IFS
32995  test -z "$as_dir" && as_dir=.
32996    for ac_exec_ext in '' $ac_executable_extensions; do
32997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32998    ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
32999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33000    break 2
33001  fi
33002done
33003  done
33004IFS=$as_save_IFS
33005
33006  test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33007  ;;
33008esac
33009fi
33010CatDelegate=$ac_cv_path_CatDelegate
33011if test -n "$CatDelegate"; then
33012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
33013$as_echo "$CatDelegate" >&6; }
33014else
33015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33016$as_echo "no" >&6; }
33017fi
33018
33019
33020# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33021set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
33022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33023$as_echo_n "checking for $ac_word... " >&6; }
33024if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
33025  $as_echo_n "(cached) " >&6
33026else
33027  case $DNGDecodeDelegate in
33028  [\\/]* | ?:[\\/]*)
33029  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33030  ;;
33031  *)
33032  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33033for as_dir in $PATH
33034do
33035  IFS=$as_save_IFS
33036  test -z "$as_dir" && as_dir=.
33037    for ac_exec_ext in '' $ac_executable_extensions; do
33038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33039    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33041    break 2
33042  fi
33043done
33044  done
33045IFS=$as_save_IFS
33046
33047  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33048  ;;
33049esac
33050fi
33051DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33052if test -n "$DNGDecodeDelegate"; then
33053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
33054$as_echo "$DNGDecodeDelegate" >&6; }
33055else
33056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33057$as_echo "no" >&6; }
33058fi
33059
33060
33061# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33062set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33064$as_echo_n "checking for $ac_word... " >&6; }
33065if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33066  $as_echo_n "(cached) " >&6
33067else
33068  case $GVCDecodeDelegate in
33069  [\\/]* | ?:[\\/]*)
33070  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33071  ;;
33072  *)
33073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33074for as_dir in $PATH
33075do
33076  IFS=$as_save_IFS
33077  test -z "$as_dir" && as_dir=.
33078    for ac_exec_ext in '' $ac_executable_extensions; do
33079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33080    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33082    break 2
33083  fi
33084done
33085  done
33086IFS=$as_save_IFS
33087
33088  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33089  ;;
33090esac
33091fi
33092GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33093if test -n "$GVCDecodeDelegate"; then
33094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33095$as_echo "$GVCDecodeDelegate" >&6; }
33096else
33097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33098$as_echo "no" >&6; }
33099fi
33100
33101
33102# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33103set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33105$as_echo_n "checking for $ac_word... " >&6; }
33106if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33107  $as_echo_n "(cached) " >&6
33108else
33109  case $DVIDecodeDelegate in
33110  [\\/]* | ?:[\\/]*)
33111  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33112  ;;
33113  *)
33114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33115for as_dir in $PATH
33116do
33117  IFS=$as_save_IFS
33118  test -z "$as_dir" && as_dir=.
33119    for ac_exec_ext in '' $ac_executable_extensions; do
33120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33121    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33123    break 2
33124  fi
33125done
33126  done
33127IFS=$as_save_IFS
33128
33129  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33130  ;;
33131esac
33132fi
33133DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33134if test -n "$DVIDecodeDelegate"; then
33135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33136$as_echo "$DVIDecodeDelegate" >&6; }
33137else
33138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33139$as_echo "no" >&6; }
33140fi
33141
33142
33143# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33144set dummy "$EchoDelegateDefault"; ac_word=$2
33145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33146$as_echo_n "checking for $ac_word... " >&6; }
33147if ${ac_cv_path_EchoDelegate+:} false; then :
33148  $as_echo_n "(cached) " >&6
33149else
33150  case $EchoDelegate in
33151  [\\/]* | ?:[\\/]*)
33152  ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33153  ;;
33154  *)
33155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33156for as_dir in $PATH
33157do
33158  IFS=$as_save_IFS
33159  test -z "$as_dir" && as_dir=.
33160    for ac_exec_ext in '' $ac_executable_extensions; do
33161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33162    ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
33163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33164    break 2
33165  fi
33166done
33167  done
33168IFS=$as_save_IFS
33169
33170  test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33171  ;;
33172esac
33173fi
33174EchoDelegate=$ac_cv_path_EchoDelegate
33175if test -n "$EchoDelegate"; then
33176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33177$as_echo "$EchoDelegate" >&6; }
33178else
33179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33180$as_echo "no" >&6; }
33181fi
33182
33183
33184# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33185set dummy "$EditorDelegateDefault"; ac_word=$2
33186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33187$as_echo_n "checking for $ac_word... " >&6; }
33188if ${ac_cv_path_EditorDelegate+:} false; then :
33189  $as_echo_n "(cached) " >&6
33190else
33191  case $EditorDelegate in
33192  [\\/]* | ?:[\\/]*)
33193  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33194  ;;
33195  *)
33196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33197for as_dir in $PATH
33198do
33199  IFS=$as_save_IFS
33200  test -z "$as_dir" && as_dir=.
33201    for ac_exec_ext in '' $ac_executable_extensions; do
33202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33203    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33205    break 2
33206  fi
33207done
33208  done
33209IFS=$as_save_IFS
33210
33211  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33212  ;;
33213esac
33214fi
33215EditorDelegate=$ac_cv_path_EditorDelegate
33216if test -n "$EditorDelegate"; then
33217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33218$as_echo "$EditorDelegate" >&6; }
33219else
33220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33221$as_echo "no" >&6; }
33222fi
33223
33224
33225# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33226set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
33227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33228$as_echo_n "checking for $ac_word... " >&6; }
33229if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
33230  $as_echo_n "(cached) " >&6
33231else
33232  case $FIGDecodeDelegate in
33233  [\\/]* | ?:[\\/]*)
33234  ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33235  ;;
33236  *)
33237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33238for as_dir in $PATH
33239do
33240  IFS=$as_save_IFS
33241  test -z "$as_dir" && as_dir=.
33242    for ac_exec_ext in '' $ac_executable_extensions; do
33243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33244    ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33246    break 2
33247  fi
33248done
33249  done
33250IFS=$as_save_IFS
33251
33252  test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33253  ;;
33254esac
33255fi
33256FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33257if test -n "$FIGDecodeDelegate"; then
33258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
33259$as_echo "$FIGDecodeDelegate" >&6; }
33260else
33261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33262$as_echo "no" >&6; }
33263fi
33264
33265
33266# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33267set dummy "$ConvertDelegateDefault"; ac_word=$2
33268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33269$as_echo_n "checking for $ac_word... " >&6; }
33270if ${ac_cv_path_ConvertDelegate+:} false; then :
33271  $as_echo_n "(cached) " >&6
33272else
33273  case $ConvertDelegate in
33274  [\\/]* | ?:[\\/]*)
33275  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33276  ;;
33277  *)
33278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33279for as_dir in $PATH
33280do
33281  IFS=$as_save_IFS
33282  test -z "$as_dir" && as_dir=.
33283    for ac_exec_ext in '' $ac_executable_extensions; do
33284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33285    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33287    break 2
33288  fi
33289done
33290  done
33291IFS=$as_save_IFS
33292
33293  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33294  ;;
33295esac
33296fi
33297ConvertDelegate=$ac_cv_path_ConvertDelegate
33298if test -n "$ConvertDelegate"; then
33299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33300$as_echo "$ConvertDelegate" >&6; }
33301else
33302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33303$as_echo "no" >&6; }
33304fi
33305
33306
33307# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33308set dummy "$DisplayDelegateDefault"; ac_word=$2
33309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33310$as_echo_n "checking for $ac_word... " >&6; }
33311if ${ac_cv_path_DisplayDelegate+:} false; then :
33312  $as_echo_n "(cached) " >&6
33313else
33314  case $DisplayDelegate in
33315  [\\/]* | ?:[\\/]*)
33316  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33317  ;;
33318  *)
33319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33320for as_dir in $PATH
33321do
33322  IFS=$as_save_IFS
33323  test -z "$as_dir" && as_dir=.
33324    for ac_exec_ext in '' $ac_executable_extensions; do
33325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33326    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33328    break 2
33329  fi
33330done
33331  done
33332IFS=$as_save_IFS
33333
33334  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33335  ;;
33336esac
33337fi
33338DisplayDelegate=$ac_cv_path_DisplayDelegate
33339if test -n "$DisplayDelegate"; then
33340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33341$as_echo "$DisplayDelegate" >&6; }
33342else
33343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33344$as_echo "no" >&6; }
33345fi
33346
33347
33348# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33349set dummy "$MogrifyDelegateDefault"; ac_word=$2
33350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33351$as_echo_n "checking for $ac_word... " >&6; }
33352if ${ac_cv_path_MogrifyDelegate+:} false; then :
33353  $as_echo_n "(cached) " >&6
33354else
33355  case $MogrifyDelegate in
33356  [\\/]* | ?:[\\/]*)
33357  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33358  ;;
33359  *)
33360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33361for as_dir in $PATH
33362do
33363  IFS=$as_save_IFS
33364  test -z "$as_dir" && as_dir=.
33365    for ac_exec_ext in '' $ac_executable_extensions; do
33366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33367    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33369    break 2
33370  fi
33371done
33372  done
33373IFS=$as_save_IFS
33374
33375  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33376  ;;
33377esac
33378fi
33379MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33380if test -n "$MogrifyDelegate"; then
33381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33382$as_echo "$MogrifyDelegate" >&6; }
33383else
33384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33385$as_echo "no" >&6; }
33386fi
33387
33388
33389# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33390set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
33391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33392$as_echo_n "checking for $ac_word... " >&6; }
33393if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
33394  $as_echo_n "(cached) " >&6
33395else
33396  case $GnuplotDecodeDelegate in
33397  [\\/]* | ?:[\\/]*)
33398  ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33399  ;;
33400  *)
33401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33402for as_dir in $PATH
33403do
33404  IFS=$as_save_IFS
33405  test -z "$as_dir" && as_dir=.
33406    for ac_exec_ext in '' $ac_executable_extensions; do
33407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33408    ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33410    break 2
33411  fi
33412done
33413  done
33414IFS=$as_save_IFS
33415
33416  test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33417  ;;
33418esac
33419fi
33420GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33421if test -n "$GnuplotDecodeDelegate"; then
33422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
33423$as_echo "$GnuplotDecodeDelegate" >&6; }
33424else
33425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33426$as_echo "no" >&6; }
33427fi
33428
33429
33430# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33431set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
33432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33433$as_echo_n "checking for $ac_word... " >&6; }
33434if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
33435  $as_echo_n "(cached) " >&6
33436else
33437  case $HPGLDecodeDelegate in
33438  [\\/]* | ?:[\\/]*)
33439  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33440  ;;
33441  *)
33442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33443for as_dir in $PATH
33444do
33445  IFS=$as_save_IFS
33446  test -z "$as_dir" && as_dir=.
33447    for ac_exec_ext in '' $ac_executable_extensions; do
33448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33449    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33451    break 2
33452  fi
33453done
33454  done
33455IFS=$as_save_IFS
33456
33457  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33458  ;;
33459esac
33460fi
33461HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33462if test -n "$HPGLDecodeDelegate"; then
33463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
33464$as_echo "$HPGLDecodeDelegate" >&6; }
33465else
33466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33467$as_echo "no" >&6; }
33468fi
33469
33470
33471# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33472set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
33473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33474$as_echo_n "checking for $ac_word... " >&6; }
33475if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
33476  $as_echo_n "(cached) " >&6
33477else
33478  case $HTMLDecodeDelegate in
33479  [\\/]* | ?:[\\/]*)
33480  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33481  ;;
33482  *)
33483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33484for as_dir in $PATH
33485do
33486  IFS=$as_save_IFS
33487  test -z "$as_dir" && as_dir=.
33488    for ac_exec_ext in '' $ac_executable_extensions; do
33489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33490    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33492    break 2
33493  fi
33494done
33495  done
33496IFS=$as_save_IFS
33497
33498  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33499  ;;
33500esac
33501fi
33502HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33503if test -n "$HTMLDecodeDelegate"; then
33504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
33505$as_echo "$HTMLDecodeDelegate" >&6; }
33506else
33507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33508$as_echo "no" >&6; }
33509fi
33510
33511
33512# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33513set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
33514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33515$as_echo_n "checking for $ac_word... " >&6; }
33516if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
33517  $as_echo_n "(cached) " >&6
33518else
33519  case $ILBMDecodeDelegate in
33520  [\\/]* | ?:[\\/]*)
33521  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33522  ;;
33523  *)
33524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33525for as_dir in $PATH
33526do
33527  IFS=$as_save_IFS
33528  test -z "$as_dir" && as_dir=.
33529    for ac_exec_ext in '' $ac_executable_extensions; do
33530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33531    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33533    break 2
33534  fi
33535done
33536  done
33537IFS=$as_save_IFS
33538
33539  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33540  ;;
33541esac
33542fi
33543ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33544if test -n "$ILBMDecodeDelegate"; then
33545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
33546$as_echo "$ILBMDecodeDelegate" >&6; }
33547else
33548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33549$as_echo "no" >&6; }
33550fi
33551
33552
33553# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33554set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
33555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33556$as_echo_n "checking for $ac_word... " >&6; }
33557if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
33558  $as_echo_n "(cached) " >&6
33559else
33560  case $ILBMEncodeDelegate in
33561  [\\/]* | ?:[\\/]*)
33562  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33563  ;;
33564  *)
33565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33566for as_dir in $PATH
33567do
33568  IFS=$as_save_IFS
33569  test -z "$as_dir" && as_dir=.
33570    for ac_exec_ext in '' $ac_executable_extensions; do
33571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33572    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33574    break 2
33575  fi
33576done
33577  done
33578IFS=$as_save_IFS
33579
33580  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33581  ;;
33582esac
33583fi
33584ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33585if test -n "$ILBMEncodeDelegate"; then
33586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
33587$as_echo "$ILBMEncodeDelegate" >&6; }
33588else
33589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590$as_echo "no" >&6; }
33591fi
33592
33593
33594# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33595set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33597$as_echo_n "checking for $ac_word... " >&6; }
33598if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33599  $as_echo_n "(cached) " >&6
33600else
33601  case $JXRDecodeDelegate in
33602  [\\/]* | ?:[\\/]*)
33603  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33604  ;;
33605  *)
33606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33607for as_dir in $PATH
33608do
33609  IFS=$as_save_IFS
33610  test -z "$as_dir" && as_dir=.
33611    for ac_exec_ext in '' $ac_executable_extensions; do
33612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33613    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33615    break 2
33616  fi
33617done
33618  done
33619IFS=$as_save_IFS
33620
33621  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33622  ;;
33623esac
33624fi
33625JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33626if test -n "$JXRDecodeDelegate"; then
33627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33628$as_echo "$JXRDecodeDelegate" >&6; }
33629else
33630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33631$as_echo "no" >&6; }
33632fi
33633
33634
33635# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33636set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33638$as_echo_n "checking for $ac_word... " >&6; }
33639if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33640  $as_echo_n "(cached) " >&6
33641else
33642  case $JXREncodeDelegate in
33643  [\\/]* | ?:[\\/]*)
33644  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33645  ;;
33646  *)
33647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33648for as_dir in $PATH
33649do
33650  IFS=$as_save_IFS
33651  test -z "$as_dir" && as_dir=.
33652    for ac_exec_ext in '' $ac_executable_extensions; do
33653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33654    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33656    break 2
33657  fi
33658done
33659  done
33660IFS=$as_save_IFS
33661
33662  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33663  ;;
33664esac
33665fi
33666JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33667if test -n "$JXREncodeDelegate"; then
33668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33669$as_echo "$JXREncodeDelegate" >&6; }
33670else
33671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33672$as_echo "no" >&6; }
33673fi
33674
33675
33676# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33677set dummy "$LPDelegateDefault"; ac_word=$2
33678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33679$as_echo_n "checking for $ac_word... " >&6; }
33680if ${ac_cv_path_LPDelegate+:} false; then :
33681  $as_echo_n "(cached) " >&6
33682else
33683  case $LPDelegate in
33684  [\\/]* | ?:[\\/]*)
33685  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33686  ;;
33687  *)
33688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33689for as_dir in $PATH
33690do
33691  IFS=$as_save_IFS
33692  test -z "$as_dir" && as_dir=.
33693    for ac_exec_ext in '' $ac_executable_extensions; do
33694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33695    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
33696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33697    break 2
33698  fi
33699done
33700  done
33701IFS=$as_save_IFS
33702
33703  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33704  ;;
33705esac
33706fi
33707LPDelegate=$ac_cv_path_LPDelegate
33708if test -n "$LPDelegate"; then
33709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
33710$as_echo "$LPDelegate" >&6; }
33711else
33712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33713$as_echo "no" >&6; }
33714fi
33715
33716
33717# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33718set dummy "$LPRDelegateDefault"; ac_word=$2
33719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33720$as_echo_n "checking for $ac_word... " >&6; }
33721if ${ac_cv_path_LPRDelegate+:} false; then :
33722  $as_echo_n "(cached) " >&6
33723else
33724  case $LPRDelegate in
33725  [\\/]* | ?:[\\/]*)
33726  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33727  ;;
33728  *)
33729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33730for as_dir in $PATH
33731do
33732  IFS=$as_save_IFS
33733  test -z "$as_dir" && as_dir=.
33734    for ac_exec_ext in '' $ac_executable_extensions; do
33735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33736    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
33737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33738    break 2
33739  fi
33740done
33741  done
33742IFS=$as_save_IFS
33743
33744  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33745  ;;
33746esac
33747fi
33748LPRDelegate=$ac_cv_path_LPRDelegate
33749if test -n "$LPRDelegate"; then
33750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33751$as_echo "$LPRDelegate" >&6; }
33752else
33753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33754$as_echo "no" >&6; }
33755fi
33756
33757
33758# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33759set dummy "$LaunchDelegateDefault"; ac_word=$2
33760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33761$as_echo_n "checking for $ac_word... " >&6; }
33762if ${ac_cv_path_LaunchDelegate+:} false; then :
33763  $as_echo_n "(cached) " >&6
33764else
33765  case $LaunchDelegate in
33766  [\\/]* | ?:[\\/]*)
33767  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33768  ;;
33769  *)
33770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33771for as_dir in $PATH
33772do
33773  IFS=$as_save_IFS
33774  test -z "$as_dir" && as_dir=.
33775    for ac_exec_ext in '' $ac_executable_extensions; do
33776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33777    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33779    break 2
33780  fi
33781done
33782  done
33783IFS=$as_save_IFS
33784
33785  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33786  ;;
33787esac
33788fi
33789LaunchDelegate=$ac_cv_path_LaunchDelegate
33790if test -n "$LaunchDelegate"; then
33791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33792$as_echo "$LaunchDelegate" >&6; }
33793else
33794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33795$as_echo "no" >&6; }
33796fi
33797
33798
33799# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33800set dummy "$MANDelegateDefault"; ac_word=$2
33801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33802$as_echo_n "checking for $ac_word... " >&6; }
33803if ${ac_cv_path_MANDelegate+:} false; then :
33804  $as_echo_n "(cached) " >&6
33805else
33806  case $MANDelegate in
33807  [\\/]* | ?:[\\/]*)
33808  ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33809  ;;
33810  *)
33811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33812for as_dir in $PATH
33813do
33814  IFS=$as_save_IFS
33815  test -z "$as_dir" && as_dir=.
33816    for ac_exec_ext in '' $ac_executable_extensions; do
33817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33818    ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33820    break 2
33821  fi
33822done
33823  done
33824IFS=$as_save_IFS
33825
33826  test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33827  ;;
33828esac
33829fi
33830MANDelegate=$ac_cv_path_MANDelegate
33831if test -n "$MANDelegate"; then
33832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33833$as_echo "$MANDelegate" >&6; }
33834else
33835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33836$as_echo "no" >&6; }
33837fi
33838
33839
33840# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33841set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33843$as_echo_n "checking for $ac_word... " >&6; }
33844if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33845  $as_echo_n "(cached) " >&6
33846else
33847  case $MPEGDecodeDelegate in
33848  [\\/]* | ?:[\\/]*)
33849  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33850  ;;
33851  *)
33852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33853for as_dir in $PATH
33854do
33855  IFS=$as_save_IFS
33856  test -z "$as_dir" && as_dir=.
33857    for ac_exec_ext in '' $ac_executable_extensions; do
33858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33859    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33861    break 2
33862  fi
33863done
33864  done
33865IFS=$as_save_IFS
33866
33867  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33868  ;;
33869esac
33870fi
33871MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33872if test -n "$MPEGDecodeDelegate"; then
33873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33874$as_echo "$MPEGDecodeDelegate" >&6; }
33875else
33876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33877$as_echo "no" >&6; }
33878fi
33879
33880
33881# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33882set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33884$as_echo_n "checking for $ac_word... " >&6; }
33885if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33886  $as_echo_n "(cached) " >&6
33887else
33888  case $MPEGEncodeDelegate in
33889  [\\/]* | ?:[\\/]*)
33890  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33891  ;;
33892  *)
33893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33894for as_dir in $PATH
33895do
33896  IFS=$as_save_IFS
33897  test -z "$as_dir" && as_dir=.
33898    for ac_exec_ext in '' $ac_executable_extensions; do
33899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33900    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33902    break 2
33903  fi
33904done
33905  done
33906IFS=$as_save_IFS
33907
33908  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33909  ;;
33910esac
33911fi
33912MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33913if test -n "$MPEGEncodeDelegate"; then
33914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33915$as_echo "$MPEGEncodeDelegate" >&6; }
33916else
33917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33918$as_echo "no" >&6; }
33919fi
33920
33921
33922# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33923set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33925$as_echo_n "checking for $ac_word... " >&6; }
33926if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
33927  $as_echo_n "(cached) " >&6
33928else
33929  case $MrSIDDecodeDelegate in
33930  [\\/]* | ?:[\\/]*)
33931  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33932  ;;
33933  *)
33934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33935for as_dir in $PATH
33936do
33937  IFS=$as_save_IFS
33938  test -z "$as_dir" && as_dir=.
33939    for ac_exec_ext in '' $ac_executable_extensions; do
33940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33941    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33943    break 2
33944  fi
33945done
33946  done
33947IFS=$as_save_IFS
33948
33949  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33950  ;;
33951esac
33952fi
33953MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33954if test -n "$MrSIDDecodeDelegate"; then
33955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33956$as_echo "$MrSIDDecodeDelegate" >&6; }
33957else
33958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33959$as_echo "no" >&6; }
33960fi
33961
33962
33963# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33964set dummy "$MVDelegateDefault"; ac_word=$2
33965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33966$as_echo_n "checking for $ac_word... " >&6; }
33967if ${ac_cv_path_MVDelegate+:} false; then :
33968  $as_echo_n "(cached) " >&6
33969else
33970  case $MVDelegate in
33971  [\\/]* | ?:[\\/]*)
33972  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33973  ;;
33974  *)
33975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33976for as_dir in $PATH
33977do
33978  IFS=$as_save_IFS
33979  test -z "$as_dir" && as_dir=.
33980    for ac_exec_ext in '' $ac_executable_extensions; do
33981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33982    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
33983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33984    break 2
33985  fi
33986done
33987  done
33988IFS=$as_save_IFS
33989
33990  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33991  ;;
33992esac
33993fi
33994MVDelegate=$ac_cv_path_MVDelegate
33995if test -n "$MVDelegate"; then
33996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
33997$as_echo "$MVDelegate" >&6; }
33998else
33999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34000$as_echo "no" >&6; }
34001fi
34002
34003
34004# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34005set dummy "$PCLDelegateDefault"; ac_word=$2
34006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34007$as_echo_n "checking for $ac_word... " >&6; }
34008if ${ac_cv_path_PCLDelegate+:} false; then :
34009  $as_echo_n "(cached) " >&6
34010else
34011  case $PCLDelegate in
34012  [\\/]* | ?:[\\/]*)
34013  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34014  ;;
34015  *)
34016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34017for as_dir in $PATH
34018do
34019  IFS=$as_save_IFS
34020  test -z "$as_dir" && as_dir=.
34021    for ac_exec_ext in '' $ac_executable_extensions; do
34022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34023    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
34024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34025    break 2
34026  fi
34027done
34028  done
34029IFS=$as_save_IFS
34030
34031  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34032  ;;
34033esac
34034fi
34035PCLDelegate=$ac_cv_path_PCLDelegate
34036if test -n "$PCLDelegate"; then
34037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34038$as_echo "$PCLDelegate" >&6; }
34039else
34040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34041$as_echo "no" >&6; }
34042fi
34043
34044
34045# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34046set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
34047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34048$as_echo_n "checking for $ac_word... " >&6; }
34049if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
34050  $as_echo_n "(cached) " >&6
34051else
34052  case $PGPDecodeDelegate in
34053  [\\/]* | ?:[\\/]*)
34054  ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34055  ;;
34056  *)
34057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34058for as_dir in $PATH
34059do
34060  IFS=$as_save_IFS
34061  test -z "$as_dir" && as_dir=.
34062    for ac_exec_ext in '' $ac_executable_extensions; do
34063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34064    ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34066    break 2
34067  fi
34068done
34069  done
34070IFS=$as_save_IFS
34071
34072  test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34073  ;;
34074esac
34075fi
34076PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34077if test -n "$PGPDecodeDelegate"; then
34078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
34079$as_echo "$PGPDecodeDelegate" >&6; }
34080else
34081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34082$as_echo "no" >&6; }
34083fi
34084
34085
34086# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34087set dummy "$POVDelegateDefault"; ac_word=$2
34088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34089$as_echo_n "checking for $ac_word... " >&6; }
34090if ${ac_cv_path_POVDelegate+:} false; then :
34091  $as_echo_n "(cached) " >&6
34092else
34093  case $POVDelegate in
34094  [\\/]* | ?:[\\/]*)
34095  ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34096  ;;
34097  *)
34098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34099for as_dir in $PATH
34100do
34101  IFS=$as_save_IFS
34102  test -z "$as_dir" && as_dir=.
34103    for ac_exec_ext in '' $ac_executable_extensions; do
34104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34105    ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
34106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34107    break 2
34108  fi
34109done
34110  done
34111IFS=$as_save_IFS
34112
34113  test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34114  ;;
34115esac
34116fi
34117POVDelegate=$ac_cv_path_POVDelegate
34118if test -n "$POVDelegate"; then
34119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
34120$as_echo "$POVDelegate" >&6; }
34121else
34122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34123$as_echo "no" >&6; }
34124fi
34125
34126
34127for ac_prog in gsx gsc "$PSDelegateDefault"
34128do
34129  # Extract the first word of "$ac_prog", so it can be a program name with args.
34130set dummy $ac_prog; ac_word=$2
34131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34132$as_echo_n "checking for $ac_word... " >&6; }
34133if ${ac_cv_path_PSDelegate+:} false; then :
34134  $as_echo_n "(cached) " >&6
34135else
34136  case $PSDelegate in
34137  [\\/]* | ?:[\\/]*)
34138  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34139  ;;
34140  *)
34141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34142for as_dir in $PATH
34143do
34144  IFS=$as_save_IFS
34145  test -z "$as_dir" && as_dir=.
34146    for ac_exec_ext in '' $ac_executable_extensions; do
34147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34148    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
34149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34150    break 2
34151  fi
34152done
34153  done
34154IFS=$as_save_IFS
34155
34156  ;;
34157esac
34158fi
34159PSDelegate=$ac_cv_path_PSDelegate
34160if test -n "$PSDelegate"; then
34161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34162$as_echo "$PSDelegate" >&6; }
34163else
34164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34165$as_echo "no" >&6; }
34166fi
34167
34168
34169  test -n "$PSDelegate" && break
34170done
34171test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34172
34173# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34174set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
34175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34176$as_echo_n "checking for $ac_word... " >&6; }
34177if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
34178  $as_echo_n "(cached) " >&6
34179else
34180  case $RLEEncodeDelegate in
34181  [\\/]* | ?:[\\/]*)
34182  ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34183  ;;
34184  *)
34185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34186for as_dir in $PATH
34187do
34188  IFS=$as_save_IFS
34189  test -z "$as_dir" && as_dir=.
34190    for ac_exec_ext in '' $ac_executable_extensions; do
34191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34192    ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34194    break 2
34195  fi
34196done
34197  done
34198IFS=$as_save_IFS
34199
34200  test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34201  ;;
34202esac
34203fi
34204RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34205if test -n "$RLEEncodeDelegate"; then
34206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
34207$as_echo "$RLEEncodeDelegate" >&6; }
34208else
34209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34210$as_echo "no" >&6; }
34211fi
34212
34213
34214# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34215set dummy "$RMDelegateDefault"; ac_word=$2
34216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34217$as_echo_n "checking for $ac_word... " >&6; }
34218if ${ac_cv_path_RMDelegate+:} false; then :
34219  $as_echo_n "(cached) " >&6
34220else
34221  case $RMDelegate in
34222  [\\/]* | ?:[\\/]*)
34223  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34224  ;;
34225  *)
34226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34227for as_dir in $PATH
34228do
34229  IFS=$as_save_IFS
34230  test -z "$as_dir" && as_dir=.
34231    for ac_exec_ext in '' $ac_executable_extensions; do
34232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34233    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34235    break 2
34236  fi
34237done
34238  done
34239IFS=$as_save_IFS
34240
34241  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34242  ;;
34243esac
34244fi
34245RMDelegate=$ac_cv_path_RMDelegate
34246if test -n "$RMDelegate"; then
34247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34248$as_echo "$RMDelegate" >&6; }
34249else
34250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34251$as_echo "no" >&6; }
34252fi
34253
34254
34255# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34256set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34258$as_echo_n "checking for $ac_word... " >&6; }
34259if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34260  $as_echo_n "(cached) " >&6
34261else
34262  case $RSVGDecodeDelegate in
34263  [\\/]* | ?:[\\/]*)
34264  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34265  ;;
34266  *)
34267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34268for as_dir in $PATH
34269do
34270  IFS=$as_save_IFS
34271  test -z "$as_dir" && as_dir=.
34272    for ac_exec_ext in '' $ac_executable_extensions; do
34273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34274    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34276    break 2
34277  fi
34278done
34279  done
34280IFS=$as_save_IFS
34281
34282  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34283  ;;
34284esac
34285fi
34286RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34287if test -n "$RSVGDecodeDelegate"; then
34288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34289$as_echo "$RSVGDecodeDelegate" >&6; }
34290else
34291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34292$as_echo "no" >&6; }
34293fi
34294
34295
34296# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34297set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
34298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34299$as_echo_n "checking for $ac_word... " >&6; }
34300if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
34301  $as_echo_n "(cached) " >&6
34302else
34303  case $SCANDecodeDelegate in
34304  [\\/]* | ?:[\\/]*)
34305  ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34306  ;;
34307  *)
34308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34309for as_dir in $PATH
34310do
34311  IFS=$as_save_IFS
34312  test -z "$as_dir" && as_dir=.
34313    for ac_exec_ext in '' $ac_executable_extensions; do
34314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34315    ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34317    break 2
34318  fi
34319done
34320  done
34321IFS=$as_save_IFS
34322
34323  test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34324  ;;
34325esac
34326fi
34327SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34328if test -n "$SCANDecodeDelegate"; then
34329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
34330$as_echo "$SCANDecodeDelegate" >&6; }
34331else
34332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34333$as_echo "no" >&6; }
34334fi
34335
34336
34337# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34338set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34340$as_echo_n "checking for $ac_word... " >&6; }
34341if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34342  $as_echo_n "(cached) " >&6
34343else
34344  case $SVGDecodeDelegate in
34345  [\\/]* | ?:[\\/]*)
34346  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34347  ;;
34348  *)
34349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34350for as_dir in $PATH
34351do
34352  IFS=$as_save_IFS
34353  test -z "$as_dir" && as_dir=.
34354    for ac_exec_ext in '' $ac_executable_extensions; do
34355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34356    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34358    break 2
34359  fi
34360done
34361  done
34362IFS=$as_save_IFS
34363
34364  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34365  ;;
34366esac
34367fi
34368SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34369if test -n "$SVGDecodeDelegate"; then
34370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34371$as_echo "$SVGDecodeDelegate" >&6; }
34372else
34373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374$as_echo "no" >&6; }
34375fi
34376
34377
34378# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34379set dummy "$TXTDelegateDefault"; ac_word=$2
34380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34381$as_echo_n "checking for $ac_word... " >&6; }
34382if ${ac_cv_path_TXTDelegate+:} false; then :
34383  $as_echo_n "(cached) " >&6
34384else
34385  case $TXTDelegate in
34386  [\\/]* | ?:[\\/]*)
34387  ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34388  ;;
34389  *)
34390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34391for as_dir in $PATH
34392do
34393  IFS=$as_save_IFS
34394  test -z "$as_dir" && as_dir=.
34395    for ac_exec_ext in '' $ac_executable_extensions; do
34396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34397    ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
34398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34399    break 2
34400  fi
34401done
34402  done
34403IFS=$as_save_IFS
34404
34405  test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34406  ;;
34407esac
34408fi
34409TXTDelegate=$ac_cv_path_TXTDelegate
34410if test -n "$TXTDelegate"; then
34411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
34412$as_echo "$TXTDelegate" >&6; }
34413else
34414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34415$as_echo "no" >&6; }
34416fi
34417
34418
34419# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34420set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34422$as_echo_n "checking for $ac_word... " >&6; }
34423if ${ac_cv_path_UniconvertorDelegate+:} false; then :
34424  $as_echo_n "(cached) " >&6
34425else
34426  case $UniconvertorDelegate in
34427  [\\/]* | ?:[\\/]*)
34428  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34429  ;;
34430  *)
34431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34432for as_dir in $PATH
34433do
34434  IFS=$as_save_IFS
34435  test -z "$as_dir" && as_dir=.
34436    for ac_exec_ext in '' $ac_executable_extensions; do
34437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34438    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34440    break 2
34441  fi
34442done
34443  done
34444IFS=$as_save_IFS
34445
34446  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34447  ;;
34448esac
34449fi
34450UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34451if test -n "$UniconvertorDelegate"; then
34452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34453$as_echo "$UniconvertorDelegate" >&6; }
34454else
34455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34456$as_echo "no" >&6; }
34457fi
34458
34459
34460# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34461set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
34462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34463$as_echo_n "checking for $ac_word... " >&6; }
34464if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
34465  $as_echo_n "(cached) " >&6
34466else
34467  case $WMFDecodeDelegate in
34468  [\\/]* | ?:[\\/]*)
34469  ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34470  ;;
34471  *)
34472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34473for as_dir in $PATH
34474do
34475  IFS=$as_save_IFS
34476  test -z "$as_dir" && as_dir=.
34477    for ac_exec_ext in '' $ac_executable_extensions; do
34478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34479    ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34481    break 2
34482  fi
34483done
34484  done
34485IFS=$as_save_IFS
34486
34487  test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34488  ;;
34489esac
34490fi
34491WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34492if test -n "$WMFDecodeDelegate"; then
34493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
34494$as_echo "$WMFDecodeDelegate" >&6; }
34495else
34496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34497$as_echo "no" >&6; }
34498fi
34499
34500
34501# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34502set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
34503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34504$as_echo_n "checking for $ac_word... " >&6; }
34505if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
34506  $as_echo_n "(cached) " >&6
34507else
34508  case $WWWDecodeDelegate in
34509  [\\/]* | ?:[\\/]*)
34510  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34511  ;;
34512  *)
34513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34514for as_dir in $PATH
34515do
34516  IFS=$as_save_IFS
34517  test -z "$as_dir" && as_dir=.
34518    for ac_exec_ext in '' $ac_executable_extensions; do
34519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34520    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34522    break 2
34523  fi
34524done
34525  done
34526IFS=$as_save_IFS
34527
34528  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34529  ;;
34530esac
34531fi
34532WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34533if test -n "$WWWDecodeDelegate"; then
34534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
34535$as_echo "$WWWDecodeDelegate" >&6; }
34536else
34537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34538$as_echo "no" >&6; }
34539fi
34540
34541
34542# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34543set dummy "$XPSDelegateDefault"; ac_word=$2
34544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34545$as_echo_n "checking for $ac_word... " >&6; }
34546if ${ac_cv_path_XPSDelegate+:} false; then :
34547  $as_echo_n "(cached) " >&6
34548else
34549  case $XPSDelegate in
34550  [\\/]* | ?:[\\/]*)
34551  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34552  ;;
34553  *)
34554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34555for as_dir in $PATH
34556do
34557  IFS=$as_save_IFS
34558  test -z "$as_dir" && as_dir=.
34559    for ac_exec_ext in '' $ac_executable_extensions; do
34560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34561    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
34562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34563    break 2
34564  fi
34565done
34566  done
34567IFS=$as_save_IFS
34568
34569  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34570  ;;
34571esac
34572fi
34573XPSDelegate=$ac_cv_path_XPSDelegate
34574if test -n "$XPSDelegate"; then
34575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
34576$as_echo "$XPSDelegate" >&6; }
34577else
34578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34579$as_echo "no" >&6; }
34580fi
34581
34582
34583# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34584set dummy "$ZipDelegateDefault"; ac_word=$2
34585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34586$as_echo_n "checking for $ac_word... " >&6; }
34587if ${ac_cv_path_ZipDelegate+:} false; then :
34588  $as_echo_n "(cached) " >&6
34589else
34590  case $ZipDelegate in
34591  [\\/]* | ?:[\\/]*)
34592  ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34593  ;;
34594  *)
34595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34596for as_dir in $PATH
34597do
34598  IFS=$as_save_IFS
34599  test -z "$as_dir" && as_dir=.
34600    for ac_exec_ext in '' $ac_executable_extensions; do
34601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34602    ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
34603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34604    break 2
34605  fi
34606done
34607  done
34608IFS=$as_save_IFS
34609
34610  test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34611  ;;
34612esac
34613fi
34614ZipDelegate=$ac_cv_path_ZipDelegate
34615if test -n "$ZipDelegate"; then
34616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
34617$as_echo "$ZipDelegate" >&6; }
34618else
34619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34620$as_echo "no" >&6; }
34621fi
34622
34623
34624
34625# Prefer lpr to lp; lp needs options tacked on.
34626if test "$LPRDelegate" != no; then
34627    PrintDelegate="$LPRDelegate"
34628else
34629    PrintDelegate="$LPDelegate -c -s"
34630fi
34631
34632
34633# Installed ImageMagick utiltity paths
34634ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34635DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34636MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34637
34638# Set delegate booleans
34639have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34640have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34641have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34642have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34643have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
34644have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
34645have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34646have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
34647have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34648have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34649
34650#
34651# Test for font directories
34652#
34653type_include_files=''
34654
34655# Dejavu fonts.
34656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34657$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34658dejavu_font_dir=''
34659if test "${with_dejavu_font_dir}" != 'default'; then
34660  dejavu_font_dir="${with_dejavu_font_dir}/"
34661else
34662  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34663    if test -f "${font_dir}DejaVuSerif.ttf"; then
34664      dejavu_font_dir="${font_dir}"
34665      break 1
34666    fi
34667  done
34668fi
34669if test "${dejavu_font_dir}x" != 'x'; then
34670  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
34671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34672$as_echo "$dejavu_font_dir" >&6; }
34673else
34674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34675$as_echo "not found!" >&6; };
34676fi
34677
34678
34679# Windows
34680windows_font_dir=''
34681if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34682   windows_font_dir="${with_windows_font_dir}/"
34683fi
34684if test "${windows_font_dir}x" != 'x'; then
34685    if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34686      windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34687    fi
34688    if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34689      windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34690    fi
34691    if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34692      windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34693    fi
34694fi
34695if test "${windows_font_dir}x" != 'x'; then
34696  type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34697fi
34698
34699
34700# Ghostscript
34701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34702$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34703ghostscript_font_dir=''
34704if test "${with_gs_font_dir}" != 'default'; then
34705  ghostscript_font_dir="${with_gs_font_dir}/"
34706else
34707  if test "${native_win32_build}" = 'yes'; then
34708    # Native Windows Build
34709    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34710      if test -f "${font_dir}a010013l.pfb"; then
34711        ghostscript_font_dir="$font_dir"
34712        break 1
34713      fi
34714    done
34715    if test "${PSDelegate}" != 'gswin32c'; then
34716      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34717    fi
34718  else
34719    # Linux / Mac OS X / Unix Build
34720    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
34721      if test -f "${font_dir}a010013l.pfb"; then
34722        ghostscript_font_dir="${font_dir}"
34723        break 1
34724      fi
34725    done
34726    if test "${ghostscript_font_dir}x" = 'x'; then
34727      if test "$PSDelegate" != 'gs'; then
34728        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34729      fi
34730    fi
34731  fi
34732fi
34733if test "${ghostscript_font_dir}x" != 'x'; then
34734  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34736$as_echo "$ghostscript_font_dir" >&6; }
34737else
34738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34739$as_echo "not found!" >&6; };
34740fi
34741
34742case "${build_os}" in
34743  mingw* )
34744    PSDelegate=`$WinPathScript "$PSDelegate" 1`
34745    ;;
34746esac
34747
34748
34749
34750#
34751# Handle case where user doesn't want frozen paths
34752#
34753if test "$with_frozenpaths" != 'yes'; then
34754  # Re-set delegate definitions to default (no paths)
34755  AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34756  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34757  BZIPDelegate="$BZIPDelegateDefault"
34758  BrowseDelegate="$BrowseDelegateDefault"
34759  CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34760  CatDelegate="$CatDelegateDefault"
34761  ConvertDelegate="$ConvertDelegateDefault"
34762  DisplayDelegate="$DisplayDelegateDefault"
34763  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
34764  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34765  EchoDelegate="$EchoDelegateDefault"
34766  EditorDelegate="$EditorDelegateDefault"
34767  FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34768  GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34769  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34770  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34771  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34772  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34773  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34774  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34775  JXREncodeDelegate="$JXREncodeDelegateDefault"
34776  LPDelegate="$LPDelegateDefault"
34777  LaunchDelegate="$LaunchDelegateDefault"
34778  MANDelegate="$MANDelegateDefault"
34779  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34780  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34781  MogrifyDelegate="$MogrifyDelegateDefault"
34782  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34783  MVDelegate="$MVDelegateDefault"
34784  PCLDelegate="$PCLDelegateDefault"
34785  PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34786  POVDelegate="$POVDelegateDefault"
34787  PSDelegate="$PSDelegateDefault"
34788  RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34789  RMDelegate="$RMDelegateDefault"
34790  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34791  SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34792  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
34793  ShowImageDelegate="$ShowImageDelegateDefault"
34794  TXTDelegate="$TXTDelegateDefault"
34795  UniconvertorDelegate="$UniconvertorDelegateDefault"
34796  WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34797  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34798  XPSDelegate="$XPSDelegateDefault"
34799  ZipDelegate="$ZipDelegateDefault"
34800fi
34801
34802# Delegate substitutions
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845#
34846# RPM support.
34847#
34848RPM=''
34849for ac_prog in gnutar gtar tar
34850do
34851  # Extract the first word of "$ac_prog", so it can be a program name with args.
34852set dummy $ac_prog; ac_word=$2
34853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34854$as_echo_n "checking for $ac_word... " >&6; }
34855if ${ac_cv_prog_TAR+:} false; then :
34856  $as_echo_n "(cached) " >&6
34857else
34858  if test -n "$TAR"; then
34859  ac_cv_prog_TAR="$TAR" # Let the user override the test.
34860else
34861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34862for as_dir in $PATH
34863do
34864  IFS=$as_save_IFS
34865  test -z "$as_dir" && as_dir=.
34866    for ac_exec_ext in '' $ac_executable_extensions; do
34867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34868    ac_cv_prog_TAR="$ac_prog"
34869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34870    break 2
34871  fi
34872done
34873  done
34874IFS=$as_save_IFS
34875
34876fi
34877fi
34878TAR=$ac_cv_prog_TAR
34879if test -n "$TAR"; then
34880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
34881$as_echo "$TAR" >&6; }
34882else
34883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34884$as_echo "no" >&6; }
34885fi
34886
34887
34888  test -n "$TAR" && break
34889done
34890
34891for ac_prog in perl
34892do
34893  # Extract the first word of "$ac_prog", so it can be a program name with args.
34894set dummy $ac_prog; ac_word=$2
34895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34896$as_echo_n "checking for $ac_word... " >&6; }
34897if ${ac_cv_prog_PERL+:} false; then :
34898  $as_echo_n "(cached) " >&6
34899else
34900  if test -n "$PERL"; then
34901  ac_cv_prog_PERL="$PERL" # Let the user override the test.
34902else
34903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34904for as_dir in $PATH
34905do
34906  IFS=$as_save_IFS
34907  test -z "$as_dir" && as_dir=.
34908    for ac_exec_ext in '' $ac_executable_extensions; do
34909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34910    ac_cv_prog_PERL="$ac_prog"
34911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34912    break 2
34913  fi
34914done
34915  done
34916IFS=$as_save_IFS
34917
34918fi
34919fi
34920PERL=$ac_cv_prog_PERL
34921if test -n "$PERL"; then
34922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34923$as_echo "$PERL" >&6; }
34924else
34925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34926$as_echo "no" >&6; }
34927fi
34928
34929
34930  test -n "$PERL" && break
34931done
34932
34933for ac_prog in rpmbuild rpm
34934do
34935  # Extract the first word of "$ac_prog", so it can be a program name with args.
34936set dummy $ac_prog; ac_word=$2
34937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34938$as_echo_n "checking for $ac_word... " >&6; }
34939if ${ac_cv_prog_RPM+:} false; then :
34940  $as_echo_n "(cached) " >&6
34941else
34942  if test -n "$RPM"; then
34943  ac_cv_prog_RPM="$RPM" # Let the user override the test.
34944else
34945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34946for as_dir in $PATH
34947do
34948  IFS=$as_save_IFS
34949  test -z "$as_dir" && as_dir=.
34950    for ac_exec_ext in '' $ac_executable_extensions; do
34951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34952    ac_cv_prog_RPM="$ac_prog"
34953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34954    break 2
34955  fi
34956done
34957  done
34958IFS=$as_save_IFS
34959
34960fi
34961fi
34962RPM=$ac_cv_prog_RPM
34963if test -n "$RPM"; then
34964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
34965$as_echo "$RPM" >&6; }
34966else
34967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34968$as_echo "no" >&6; }
34969fi
34970
34971
34972  test -n "$RPM" && break
34973done
34974
34975
34976ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34977
34978
34979AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34980
34981
34982AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34983
34984
34985AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34986
34987
34988 if test "x$RPM" != "x" ; then
34989  RPM_DELEGATE_TRUE=
34990  RPM_DELEGATE_FALSE='#'
34991else
34992  RPM_DELEGATE_TRUE='#'
34993  RPM_DELEGATE_FALSE=
34994fi
34995
34996
34997#
34998# 7ZIP support (http://p7zip.sourceforge.net/)
34999#
35000P7ZIP=''
35001for ac_prog in 7za
35002do
35003  # Extract the first word of "$ac_prog", so it can be a program name with args.
35004set dummy $ac_prog; ac_word=$2
35005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35006$as_echo_n "checking for $ac_word... " >&6; }
35007if ${ac_cv_prog_P7ZIP+:} false; then :
35008  $as_echo_n "(cached) " >&6
35009else
35010  if test -n "$P7ZIP"; then
35011  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35012else
35013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35014for as_dir in $PATH
35015do
35016  IFS=$as_save_IFS
35017  test -z "$as_dir" && as_dir=.
35018    for ac_exec_ext in '' $ac_executable_extensions; do
35019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35020    ac_cv_prog_P7ZIP="$ac_prog"
35021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35022    break 2
35023  fi
35024done
35025  done
35026IFS=$as_save_IFS
35027
35028fi
35029fi
35030P7ZIP=$ac_cv_prog_P7ZIP
35031if test -n "$P7ZIP"; then
35032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35033$as_echo "$P7ZIP" >&6; }
35034else
35035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35036$as_echo "no" >&6; }
35037fi
35038
35039
35040  test -n "$P7ZIP" && break
35041done
35042
35043
35044 if test "x$P7ZIP" != "x" ; then
35045  P7ZIP_DELEGATE_TRUE=
35046  P7ZIP_DELEGATE_FALSE='#'
35047else
35048  P7ZIP_DELEGATE_TRUE='#'
35049  P7ZIP_DELEGATE_FALSE=
35050fi
35051
35052
35053#
35054# ZIP support (http://www.info-zip.org/Zip.html)
35055#
35056ZIP=''
35057for ac_prog in zip
35058do
35059  # Extract the first word of "$ac_prog", so it can be a program name with args.
35060set dummy $ac_prog; ac_word=$2
35061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35062$as_echo_n "checking for $ac_word... " >&6; }
35063if ${ac_cv_prog_ZIP+:} false; then :
35064  $as_echo_n "(cached) " >&6
35065else
35066  if test -n "$ZIP"; then
35067  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35068else
35069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35070for as_dir in $PATH
35071do
35072  IFS=$as_save_IFS
35073  test -z "$as_dir" && as_dir=.
35074    for ac_exec_ext in '' $ac_executable_extensions; do
35075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35076    ac_cv_prog_ZIP="$ac_prog"
35077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35078    break 2
35079  fi
35080done
35081  done
35082IFS=$as_save_IFS
35083
35084fi
35085fi
35086ZIP=$ac_cv_prog_ZIP
35087if test -n "$ZIP"; then
35088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35089$as_echo "$ZIP" >&6; }
35090else
35091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35092$as_echo "no" >&6; }
35093fi
35094
35095
35096  test -n "$ZIP" && break
35097done
35098
35099
35100 if test "x$ZIP" != "x" ; then
35101  ZIP_DELEGATE_TRUE=
35102  ZIP_DELEGATE_FALSE='#'
35103else
35104  ZIP_DELEGATE_TRUE='#'
35105  ZIP_DELEGATE_FALSE=
35106fi
35107
35108
35109#
35110# GhostPCL related configuration.
35111#
35112PCLColorDevice=ppmraw
35113PCLCMYKDevice=pamcmyk32
35114PCLMonoDevice=pbmraw
35115if test -z "$PCLVersion"; then
35116    PCLVersion='unknown'
35117fi
35118if test $have_pcl = 'yes'; then
35119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35120$as_echo "-------------------------------------------------------------" >&6; }
35121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35122$as_echo_n "checking for PCL... " >&6; }
35123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35124$as_echo "" >&6; }
35125    # PCLColorDevice
35126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35127$as_echo_n "checking for pcl color device... " >&6; }
35128    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35129        :
35130    else
35131        PCLColorDevice=ppmraw
35132    fi
35133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35134$as_echo "$PCLColorDevice" >&6; }
35135
35136    # PCLCMYKDevice
35137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35138$as_echo_n "checking for pcl CMYK device... " >&6; }
35139    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35140        :
35141    else
35142        PCLCMYKDevice=$PCLColorDevice
35143    fi
35144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35145$as_echo "$PCLCMYKDevice" >&6; }
35146
35147    # PCLMonoDevice
35148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35149$as_echo_n "checking for pcl mono device... " >&6; }
35150    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35151        :
35152    else
35153        PCLMonoDevice=$PCLColorDevice
35154    fi
35155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35156$as_echo "$PCLMonoDevice" >&6; }
35157fi
35158
35159
35160
35161
35162
35163
35164#
35165# GhostXPS related configuration.
35166#
35167XPSColorDevice=ppmraw
35168XPSCMYKDevice=bmpsep8
35169XPSMonoDevice=pbmraw
35170if test -z "$XPSVersion"; then
35171    XPSVersion='unknown'
35172fi
35173if test $have_xps = 'yes'; then
35174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35175$as_echo "-------------------------------------------------------------" >&6; }
35176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35177$as_echo_n "checking for XPS... " >&6; }
35178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35179$as_echo "" >&6; }
35180    # XPSColorDevice
35181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35182$as_echo_n "checking for xps color device... " >&6; }
35183    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35184        :
35185    else
35186        XPSColorDevice=ppmraw
35187    fi
35188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35189$as_echo "$XPSColorDevice" >&6; }
35190
35191    # XPSCMYKDevice
35192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35193$as_echo_n "checking for xps CMYK device... " >&6; }
35194    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35195        :
35196    else
35197        XPSCMYKDevice=$XPSColorDevice
35198    fi
35199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35200$as_echo "$XPSCMYKDevice" >&6; }
35201
35202    # XPSMonoDevice
35203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35204$as_echo_n "checking for xps mono device... " >&6; }
35205    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35206        :
35207    else
35208        XPSMonoDevice=$XPSColorDevice
35209    fi
35210    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35211$as_echo "$XPSMonoDevice" >&6; }
35212fi
35213
35214
35215
35216
35217
35218
35219#
35220# Ghostscript related configuration.
35221#
35222GSAlphaDevice=pngalpha
35223GSColorDevice=pnmraw
35224GSCMYKDevice=pam
35225GSMonoDevice=pbmraw
35226GSPDFDevice=pdfwrite
35227GSPSDevice=pswrite
35228GSEPSDevice=epswrite
35229GSVersion='unknown'
35230if test $have_gs = 'yes'; then
35231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35232$as_echo "-------------------------------------------------------------" >&6; }
35233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35234$as_echo_n "checking for Ghostscript... " >&6; }
35235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35236$as_echo "" >&6; }
35237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35238$as_echo_n "checking for Ghostscript version... " >&6; }
35239    if GSVersion=`$PSDelegate --version`; then
35240        :
35241    else
35242        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35243    fi
35244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35245$as_echo "$GSVersion" >&6; }
35246
35247    # GSAlphaDevice
35248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35249$as_echo_n "checking for gs alpha device... " >&6; }
35250    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35251        :
35252    else
35253        GSAlphaDevice=pnmraw
35254    fi
35255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35256$as_echo "$GSAlphaDevice" >&6; }
35257
35258    # GSColorDevice
35259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35260$as_echo_n "checking for gs color device... " >&6; }
35261    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35262        :
35263    else
35264        GSColorDevice=pnmraw
35265    fi
35266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35267$as_echo "$GSColorDevice" >&6; }
35268
35269    # GSCMYKDevice
35270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35271$as_echo_n "checking for gs CMYK device... " >&6; }
35272    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35273        :
35274    else
35275        GSCMYKDevice=bmpsep8
35276    fi
35277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35278$as_echo "$GSCMYKDevice" >&6; }
35279
35280    # GSMonoDevice
35281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35282$as_echo_n "checking for gs mono device... " >&6; }
35283    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35284        :
35285    else
35286        GSMonoDevice=$GSColorDevice
35287    fi
35288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35289$as_echo "$GSMonoDevice" >&6; }
35290
35291    # GSPDFDevice
35292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35293$as_echo_n "checking for gs PDF writing device... " >&6; }
35294    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35295        :
35296    else
35297        GSPDFDevice=nodevice
35298    fi
35299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35300$as_echo "$GSPDFDevice" >&6; }
35301
35302    # GSPSDevice
35303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35304$as_echo_n "checking for gs PS writing device... " >&6; }
35305    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35306        :
35307    else
35308        GSPSDevice=nodevice
35309    fi
35310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35311$as_echo "$GSPSDevice" >&6; }
35312
35313    # GSEPSDevice
35314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35315$as_echo_n "checking for gs EPS writing device... " >&6; }
35316    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35317        :
35318    else
35319        GSEPSDevice=nodevice
35320    fi
35321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35322$as_echo "$GSEPSDevice" >&6; }
35323fi
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334#
35335# PerlMagick-related configuration
35336#
35337
35338# Look for PERL if PerlMagick requested
35339# If name/path of desired PERL interpreter is specified, look for that one first
35340have_perl='no'
35341if test "$with_perl" != 'no'; then
35342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35343$as_echo "-------------------------------------------------------------" >&6; }
35344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35345$as_echo_n "checking for Perl... " >&6; }
35346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35347$as_echo "" >&6; }
35348    if test "$with_perl" != 'yes'; then
35349        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35350$as_echo_n "checking for perl... " >&6; }
35351if ${ac_cv_path_PERL+:} false; then :
35352  $as_echo_n "(cached) " >&6
35353else
35354  ac_cv_path_PERL="$with_perl"
35355fi
35356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
35357$as_echo "$ac_cv_path_PERL" >&6; };
35358        PERL=$ac_cv_path_PERL
35359                have_perl="$ac_cv_path_PERL"
35360    else
35361        for ac_prog in perl perl5
35362do
35363  # Extract the first word of "$ac_prog", so it can be a program name with args.
35364set dummy $ac_prog; ac_word=$2
35365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35366$as_echo_n "checking for $ac_word... " >&6; }
35367if ${ac_cv_path_PERL+:} false; then :
35368  $as_echo_n "(cached) " >&6
35369else
35370  case $PERL in
35371  [\\/]* | ?:[\\/]*)
35372  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35373  ;;
35374  *)
35375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35376for as_dir in $PATH
35377do
35378  IFS=$as_save_IFS
35379  test -z "$as_dir" && as_dir=.
35380    for ac_exec_ext in '' $ac_executable_extensions; do
35381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35382    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
35383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35384    break 2
35385  fi
35386done
35387  done
35388IFS=$as_save_IFS
35389
35390  ;;
35391esac
35392fi
35393PERL=$ac_cv_path_PERL
35394if test -n "$PERL"; then
35395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35396$as_echo "$PERL" >&6; }
35397else
35398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35399$as_echo "no" >&6; }
35400fi
35401
35402
35403  test -n "$PERL" && break
35404done
35405        if test "$ac_cv_path_PERL"; then
35406            have_perl="$ac_cv_path_PERL"
35407        fi
35408    fi
35409fi
35410
35411if test "$with_perl" != 'yes' ; then
35412    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35413fi
35414
35415PERL_SUPPORTS_DESTDIR='no'
35416
35417with_perl_static='no'
35418with_perl_dynamic='no'
35419if test "$have_perl" != 'no'; then
35420    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35421        with_perl_static='yes'
35422    fi
35423    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35424        with_perl_dynamic='yes'
35425    fi
35426    # Is PERL's MakeMaker new enough to support DESTDIR?
35427
35428
35429
35430
35431    if test -n "$PERL"; then :
35432
35433        ax_perl_version="5.8.1"
35434
35435        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35436$as_echo_n "checking for perl version... " >&6; }
35437
35438        perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35439
35440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35441$as_echo "$perl_version" >&6; }
35442
35443	PERL_VERSION=$perl_version
35444
35445
35446
35447
35448
35449  # Used to indicate true or false condition
35450  ax_compare_version=false
35451
35452  # Convert the two version strings to be compared into a format that
35453  # allows a simple string comparison.  The end result is that a version
35454  # string of the form 1.12.5-r617 will be converted to the form
35455  # 0001001200050617.  In other words, each number is zero padded to four
35456  # digits, and non digits are removed.
35457
35458  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35459                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35460                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35461                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35462                     -e 's/[^0-9]//g'`
35463
35464
35465  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35466                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35467                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35468                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35469                     -e 's/[^0-9]//g'`
35470
35471
35472    ax_compare_version=`echo "x$ax_compare_version_A
35473x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35474
35475
35476
35477    if test "$ax_compare_version" = "true" ; then
35478
35479	    :
35480            PERL_SUPPORTS_DESTDIR='yes'
35481
35482    else
35483	    :
35484            PERL_SUPPORTS_DESTDIR='no'
35485
35486  fi
35487
35488
35489else
35490
35491        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35492$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35493        PERL_SUPPORTS_DESTDIR='no'
35494
35495fi
35496
35497fi
35498 if test "$have_perl" != 'no'; then
35499  WITH_PERL_TRUE=
35500  WITH_PERL_FALSE='#'
35501else
35502  WITH_PERL_TRUE='#'
35503  WITH_PERL_FALSE=
35504fi
35505
35506 if test $with_perl_static = 'yes'; then
35507  WITH_PERL_STATIC_TRUE=
35508  WITH_PERL_STATIC_FALSE='#'
35509else
35510  WITH_PERL_STATIC_TRUE='#'
35511  WITH_PERL_STATIC_FALSE=
35512fi
35513
35514 if test $with_perl_dynamic = 'yes'; then
35515  WITH_PERL_DYNAMIC_TRUE=
35516  WITH_PERL_DYNAMIC_FALSE='#'
35517else
35518  WITH_PERL_DYNAMIC_TRUE='#'
35519  WITH_PERL_DYNAMIC_FALSE=
35520fi
35521
35522
35523
35524# Determine path to pick up MagickCore library from for use with building PerlMagick
35525MAGICKCORE_PATH="${LIB_DIR}"
35526if test $with_perl_static = 'yes'; then
35527    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35528    libtool_objdir=$objdir
35529
35530    # Linker search path to library, followed by -lMagickCore
35531    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
35532fi
35533
35534
35535# Create a simple string containing format names for all delegate libraries.
35536MAGICK_DELEGATES=''
35537if test "$have_autotrace"  = 'yes' ; then
35538   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
35539fi
35540if test "$have_bzlib"  = 'yes' ; then
35541   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
35542fi
35543if test "$have_dps"    = 'yes' ; then
35544   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
35545fi
35546if test "$have_djvu"    = 'yes' ; then
35547   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
35548fi
35549if test "$have_ffmpeg"   = 'yes' ; then
35550   MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
35551fi
35552if test "$have_fftw"    = 'yes' ; then
35553   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
35554fi
35555if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes'  ; then
35556   MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
35557fi
35558if test "$have_fpx"    = 'yes' ; then
35559   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
35560fi
35561if test "$have_fontconfig"    = 'yes' ; then
35562   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
35563fi
35564if test "$have_freetype"    = 'yes' ; then
35565   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
35566fi
35567if test "$have_gslib"    = 'yes' ; then
35568   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
35569fi
35570if test "$have_jbig"    = 'yes' ; then
35571   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
35572fi
35573if test "$have_png$have_jpeg" = 'yesyes' ; then
35574   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
35575fi
35576if test "$have_jp2"   = 'yes' ; then
35577   MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
35578fi
35579if test "$have_jpeg"   = 'yes' ; then
35580   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
35581fi
35582if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
35583   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
35584fi
35585if test "$have_lqr"    = 'yes' ; then
35586   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
35587fi
35588if test "$have_lzma"    = 'yes' ; then
35589   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
35590fi
35591if test "$have_openexr"    = 'yes' ; then
35592   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
35593fi
35594if test "$have_pango"    = 'yes' ; then
35595   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
35596fi
35597if test "$have_png"    = 'yes' ; then
35598   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
35599fi
35600have_ps='no'
35601if test "$have_dps"    = 'yes' || \
35602   test "$have_gs" = 'yes' || \
35603   test "${native_win32_build}" = 'yes' ; then
35604   have_ps='yes'
35605fi
35606if test "$have_ps"     = 'yes' ; then
35607   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
35608fi
35609if test "$have_ralcgm" = 'yes' ; then
35610   MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
35611fi
35612if test "$have_ra_ppm" = 'yes' ; then
35613   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
35614fi
35615if test "$have_rsvg"   = 'yes' ; then
35616   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
35617fi
35618if test "$have_tiff"   = 'yes' ; then
35619   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
35620fi
35621if test "$have_ttf"    = 'yes' ; then
35622   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
35623fi
35624if test "$have_wmf"    = 'yes' ; then
35625   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
35626fi
35627if test "$have_x"      = 'yes' ; then
35628   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
35629fi
35630if test "$have_xml"      = 'yes' ; then
35631   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
35632fi
35633if test "$have_zlib"   = 'yes' ; then
35634   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
35635fi
35636# Remove extraneous spaces from output variables (asthetic)
35637MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
35638MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
35639
35640
35641
35642#
35643# Handle special compiler flags
35644#
35645
35646# Add '-p' if prof source profiling support enabled
35647if test "$enable_prof" = 'yes'; then
35648    CFLAGS="-p $CFLAGS"
35649    CXXFLAGS="-p $CXXFLAGS"
35650    LDFLAGS="-p $LDFLAGS"
35651fi
35652
35653# Add '-pg' if gprof source profiling support enabled
35654if test "$enable_gprof" = 'yes'; then
35655    CFLAGS="-pg $CFLAGS"
35656    CXXFLAGS="-pg $CXXFLAGS"
35657    LDFLAGS="-pg $LDFLAGS"
35658fi
35659
35660# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35661# This is a gcc-specific feature
35662if test "$enable_gcov" = 'yes'; then
35663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
35664$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
35665if ${ac_cv_lib_gcov__gcov_init+:} false; then :
35666  $as_echo_n "(cached) " >&6
35667else
35668  ac_check_lib_save_LIBS=$LIBS
35669LIBS="-lgcov  $LIBS"
35670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35671/* end confdefs.h.  */
35672
35673/* Override any GCC internal prototype to avoid an error.
35674   Use char because int might match the return type of a GCC
35675   builtin and then its argument prototype would still apply.  */
35676#ifdef __cplusplus
35677extern "C"
35678#endif
35679char _gcov_init ();
35680int
35681main ()
35682{
35683return _gcov_init ();
35684  ;
35685  return 0;
35686}
35687_ACEOF
35688if ac_fn_c_try_link "$LINENO"; then :
35689  ac_cv_lib_gcov__gcov_init=yes
35690else
35691  ac_cv_lib_gcov__gcov_init=no
35692fi
35693rm -f core conftest.err conftest.$ac_objext \
35694    conftest$ac_exeext conftest.$ac_ext
35695LIBS=$ac_check_lib_save_LIBS
35696fi
35697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
35698$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
35699if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
35700  cat >>confdefs.h <<_ACEOF
35701#define HAVE_LIBGCOV 1
35702_ACEOF
35703
35704  LIBS="-lgcov $LIBS"
35705
35706fi
35707
35708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
35709$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
35710if ${ac_cv_lib_gcov___gcov_init+:} false; then :
35711  $as_echo_n "(cached) " >&6
35712else
35713  ac_check_lib_save_LIBS=$LIBS
35714LIBS="-lgcov  $LIBS"
35715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35716/* end confdefs.h.  */
35717
35718/* Override any GCC internal prototype to avoid an error.
35719   Use char because int might match the return type of a GCC
35720   builtin and then its argument prototype would still apply.  */
35721#ifdef __cplusplus
35722extern "C"
35723#endif
35724char __gcov_init ();
35725int
35726main ()
35727{
35728return __gcov_init ();
35729  ;
35730  return 0;
35731}
35732_ACEOF
35733if ac_fn_c_try_link "$LINENO"; then :
35734  ac_cv_lib_gcov___gcov_init=yes
35735else
35736  ac_cv_lib_gcov___gcov_init=no
35737fi
35738rm -f core conftest.err conftest.$ac_objext \
35739    conftest$ac_exeext conftest.$ac_ext
35740LIBS=$ac_check_lib_save_LIBS
35741fi
35742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
35743$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
35744if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
35745  cat >>confdefs.h <<_ACEOF
35746#define HAVE_LIBGCOV 1
35747_ACEOF
35748
35749  LIBS="-lgcov $LIBS"
35750
35751fi
35752
35753    case "$target_os" in
35754        darwin*)
35755            OSX_GCOV_LDFLAG="-Wl,-single_module"
35756        ;;
35757        *)
35758            OSX_GCOV_LDFLAG=""
35759        ;;
35760    esac
35761
35762    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
35763    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
35764    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35765fi
35766
35767#
35768# Build library dependency list for libMagickCore
35769#
35770
35771if test "$build_modules" != 'no'; then
35772    MAGICK_DEP_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"
35773else
35774    MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
35775fi
35776
35777
35778#
35779# Remove extraneous spaces from output variables (asthetic)
35780#
35781X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
35782X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
35783X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
35784X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
35785
35786CC=`echo $CC | sed -e 's/  */ /g'`
35787CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
35788CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
35789CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
35790DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
35791LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
35792TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35793MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
35794#LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35795
35796# Pass only user-provided LIBS as "global" libraries
35797LIBS=$USER_LIBS
35798
35799#AC_SUBST(CPPFLAGS)
35800
35801#AC_SUBST(LDFLAGS)
35802#AC_SUBST(X_PRE_LIBS)
35803#AC_SUBST(X_LIBS)
35804#AC_SUBST(X_EXTRA_LIBS)
35805
35806MAGICK_CFLAGS=$CFLAGS
35807MAGICK_CXXFLAGS="$CXXFLAGS"
35808MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
35809MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
35810MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35811MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
35812
35813
35814
35815
35816
35817
35818
35819
35820# Set configured scripts to executable.
35821ac_config_commands="$ac_config_commands default"
35822
35823ac_config_commands="$ac_config_commands magick.sh.in"
35824
35825ac_config_commands="$ac_config_commands MagickCore-config.in"
35826
35827ac_config_commands="$ac_config_commands MagickWand-config.in"
35828
35829ac_config_commands="$ac_config_commands Magick++-config.in"
35830
35831ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35832
35833
35834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35835$as_echo "-------------------------------------------------------------" >&6; }
35836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35837$as_echo "Update ImageMagick configuration" >&6; }
35838cat >confcache <<\_ACEOF
35839# This file is a shell script that caches the results of configure
35840# tests run on this system so they can be shared between configure
35841# scripts and configure runs, see configure's option --config-cache.
35842# It is not useful on other systems.  If it contains results you don't
35843# want to keep, you may remove or edit it.
35844#
35845# config.status only pays attention to the cache file if you give it
35846# the --recheck option to rerun configure.
35847#
35848# `ac_cv_env_foo' variables (set or unset) will be overridden when
35849# loading this file, other *unset* `ac_cv_foo' will be assigned the
35850# following values.
35851
35852_ACEOF
35853
35854# The following way of writing the cache mishandles newlines in values,
35855# but we know of no workaround that is simple, portable, and efficient.
35856# So, we kill variables containing newlines.
35857# Ultrix sh set writes to stderr and can't be redirected directly,
35858# and sets the high bit in the cache file unless we assign to the vars.
35859(
35860  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35861    eval ac_val=\$$ac_var
35862    case $ac_val in #(
35863    *${as_nl}*)
35864      case $ac_var in #(
35865      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35866$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35867      esac
35868      case $ac_var in #(
35869      _ | IFS | as_nl) ;; #(
35870      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35871      *) { eval $ac_var=; unset $ac_var;} ;;
35872      esac ;;
35873    esac
35874  done
35875
35876  (set) 2>&1 |
35877    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35878    *${as_nl}ac_space=\ *)
35879      # `set' does not quote correctly, so add quotes: double-quote
35880      # substitution turns \\\\ into \\, and sed turns \\ into \.
35881      sed -n \
35882	"s/'/'\\\\''/g;
35883	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35884      ;; #(
35885    *)
35886      # `set' quotes correctly as required by POSIX, so do not add quotes.
35887      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35888      ;;
35889    esac |
35890    sort
35891) |
35892  sed '
35893     /^ac_cv_env_/b end
35894     t clear
35895     :clear
35896     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35897     t end
35898     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35899     :end' >>confcache
35900if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35901  if test -w "$cache_file"; then
35902    if test "x$cache_file" != "x/dev/null"; then
35903      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35904$as_echo "$as_me: updating cache $cache_file" >&6;}
35905      if test ! -f "$cache_file" || test -h "$cache_file"; then
35906	cat confcache >"$cache_file"
35907      else
35908        case $cache_file in #(
35909        */* | ?:*)
35910	  mv -f confcache "$cache_file"$$ &&
35911	  mv -f "$cache_file"$$ "$cache_file" ;; #(
35912        *)
35913	  mv -f confcache "$cache_file" ;;
35914	esac
35915      fi
35916    fi
35917  else
35918    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35919$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35920  fi
35921fi
35922rm -f confcache
35923
35924test "x$prefix" = xNONE && prefix=$ac_default_prefix
35925# Let make expand exec_prefix.
35926test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35927
35928DEFS=-DHAVE_CONFIG_H
35929
35930ac_libobjs=
35931ac_ltlibobjs=
35932U=
35933for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35934  # 1. Remove the extension, and $U if already installed.
35935  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35936  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35937  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35938  #    will be set to the directory where LIBOBJS objects are built.
35939  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35940  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35941done
35942LIBOBJS=$ac_libobjs
35943
35944LTLIBOBJS=$ac_ltlibobjs
35945
35946
35947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35948$as_echo_n "checking that generated files are newer than configure... " >&6; }
35949   if test -n "$am_sleep_pid"; then
35950     # Hide warnings about reused PIDs.
35951     wait $am_sleep_pid 2>/dev/null
35952   fi
35953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35954$as_echo "done" >&6; }
35955 if test -n "$EXEEXT"; then
35956  am__EXEEXT_TRUE=
35957  am__EXEEXT_FALSE='#'
35958else
35959  am__EXEEXT_TRUE='#'
35960  am__EXEEXT_FALSE=
35961fi
35962
35963if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35964  as_fn_error $? "conditional \"AMDEP\" was never defined.
35965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
35967if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35968  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
35971if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35972  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35976  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35980  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
35984  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
35985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
35988  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
35989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
35992  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
35993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
35996  as_fn_error $? "conditional \"USING_CL\" was never defined.
35997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36000  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36004  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
36007if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36008  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
36011if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36012  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015
36016if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36017  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36018Usually this means the macro was only invoked conditionally." "$LINENO" 5
36019fi
36020if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36021  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36022Usually this means the macro was only invoked conditionally." "$LINENO" 5
36023fi
36024if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
36025  as_fn_error $? "conditional \"HasUMEM\" was never defined.
36026Usually this means the macro was only invoked conditionally." "$LINENO" 5
36027fi
36028if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36029  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36030Usually this means the macro was only invoked conditionally." "$LINENO" 5
36031fi
36032if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36033  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36034Usually this means the macro was only invoked conditionally." "$LINENO" 5
36035fi
36036if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36037  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
36040if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36041  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
36044if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36045  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36049  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36053  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36057  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
36060if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36061  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36065  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
36069  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
36070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
36072if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36073  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
36076if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36077  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
36080if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36081  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36085  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
36088if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
36089  as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
36090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
36092if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36093  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
36096if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36097  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
36100if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36101  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
36104if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36105  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
36108if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36109  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36113  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
36116if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36117  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
36120if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36121  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
36124if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36125  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36129  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
36132if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36133  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
36136if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36137  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
36140if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36141  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
36144if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36145  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
36148if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36149  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
36152if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36153  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
36156if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36157  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36158Usually this means the macro was only invoked conditionally." "$LINENO" 5
36159fi
36160if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36161  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36162Usually this means the macro was only invoked conditionally." "$LINENO" 5
36163fi
36164if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36165  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36166Usually this means the macro was only invoked conditionally." "$LINENO" 5
36167fi
36168
36169: "${CONFIG_STATUS=./config.status}"
36170ac_write_fail=0
36171ac_clean_files_save=$ac_clean_files
36172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36175as_write_fail=0
36176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36177#! $SHELL
36178# Generated by $as_me.
36179# Run this file to recreate the current configuration.
36180# Compiler output produced by configure, useful for debugging
36181# configure, is in config.log if it exists.
36182
36183debug=false
36184ac_cs_recheck=false
36185ac_cs_silent=false
36186
36187SHELL=\${CONFIG_SHELL-$SHELL}
36188export SHELL
36189_ASEOF
36190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36191## -------------------- ##
36192## M4sh Initialization. ##
36193## -------------------- ##
36194
36195# Be more Bourne compatible
36196DUALCASE=1; export DUALCASE # for MKS sh
36197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36198  emulate sh
36199  NULLCMD=:
36200  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36201  # is contrary to our usage.  Disable this feature.
36202  alias -g '${1+"$@"}'='"$@"'
36203  setopt NO_GLOB_SUBST
36204else
36205  case `(set -o) 2>/dev/null` in #(
36206  *posix*) :
36207    set -o posix ;; #(
36208  *) :
36209     ;;
36210esac
36211fi
36212
36213
36214as_nl='
36215'
36216export as_nl
36217# Printing a long string crashes Solaris 7 /usr/bin/printf.
36218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36221# Prefer a ksh shell builtin over an external printf program on Solaris,
36222# but without wasting forks for bash or zsh.
36223if test -z "$BASH_VERSION$ZSH_VERSION" \
36224    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36225  as_echo='print -r --'
36226  as_echo_n='print -rn --'
36227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36228  as_echo='printf %s\n'
36229  as_echo_n='printf %s'
36230else
36231  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36232    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36233    as_echo_n='/usr/ucb/echo -n'
36234  else
36235    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36236    as_echo_n_body='eval
36237      arg=$1;
36238      case $arg in #(
36239      *"$as_nl"*)
36240	expr "X$arg" : "X\\(.*\\)$as_nl";
36241	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36242      esac;
36243      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36244    '
36245    export as_echo_n_body
36246    as_echo_n='sh -c $as_echo_n_body as_echo'
36247  fi
36248  export as_echo_body
36249  as_echo='sh -c $as_echo_body as_echo'
36250fi
36251
36252# The user is always right.
36253if test "${PATH_SEPARATOR+set}" != set; then
36254  PATH_SEPARATOR=:
36255  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36256    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36257      PATH_SEPARATOR=';'
36258  }
36259fi
36260
36261
36262# IFS
36263# We need space, tab and new line, in precisely that order.  Quoting is
36264# there to prevent editors from complaining about space-tab.
36265# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36266# splitting by setting IFS to empty value.)
36267IFS=" ""	$as_nl"
36268
36269# Find who we are.  Look in the path if we contain no directory separator.
36270as_myself=
36271case $0 in #((
36272  *[\\/]* ) as_myself=$0 ;;
36273  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36274for as_dir in $PATH
36275do
36276  IFS=$as_save_IFS
36277  test -z "$as_dir" && as_dir=.
36278    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36279  done
36280IFS=$as_save_IFS
36281
36282     ;;
36283esac
36284# We did not find ourselves, most probably we were run as `sh COMMAND'
36285# in which case we are not to be found in the path.
36286if test "x$as_myself" = x; then
36287  as_myself=$0
36288fi
36289if test ! -f "$as_myself"; then
36290  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36291  exit 1
36292fi
36293
36294# Unset variables that we do not need and which cause bugs (e.g. in
36295# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36296# suppresses any "Segmentation fault" message there.  '((' could
36297# trigger a bug in pdksh 5.2.14.
36298for as_var in BASH_ENV ENV MAIL MAILPATH
36299do eval test x\${$as_var+set} = xset \
36300  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36301done
36302PS1='$ '
36303PS2='> '
36304PS4='+ '
36305
36306# NLS nuisances.
36307LC_ALL=C
36308export LC_ALL
36309LANGUAGE=C
36310export LANGUAGE
36311
36312# CDPATH.
36313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36314
36315
36316# as_fn_error STATUS ERROR [LINENO LOG_FD]
36317# ----------------------------------------
36318# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36319# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36320# script with STATUS, using 1 if that was 0.
36321as_fn_error ()
36322{
36323  as_status=$1; test $as_status -eq 0 && as_status=1
36324  if test "$4"; then
36325    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36326    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36327  fi
36328  $as_echo "$as_me: error: $2" >&2
36329  as_fn_exit $as_status
36330} # as_fn_error
36331
36332
36333# as_fn_set_status STATUS
36334# -----------------------
36335# Set $? to STATUS, without forking.
36336as_fn_set_status ()
36337{
36338  return $1
36339} # as_fn_set_status
36340
36341# as_fn_exit STATUS
36342# -----------------
36343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36344as_fn_exit ()
36345{
36346  set +e
36347  as_fn_set_status $1
36348  exit $1
36349} # as_fn_exit
36350
36351# as_fn_unset VAR
36352# ---------------
36353# Portably unset VAR.
36354as_fn_unset ()
36355{
36356  { eval $1=; unset $1;}
36357}
36358as_unset=as_fn_unset
36359# as_fn_append VAR VALUE
36360# ----------------------
36361# Append the text in VALUE to the end of the definition contained in VAR. Take
36362# advantage of any shell optimizations that allow amortized linear growth over
36363# repeated appends, instead of the typical quadratic growth present in naive
36364# implementations.
36365if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36366  eval 'as_fn_append ()
36367  {
36368    eval $1+=\$2
36369  }'
36370else
36371  as_fn_append ()
36372  {
36373    eval $1=\$$1\$2
36374  }
36375fi # as_fn_append
36376
36377# as_fn_arith ARG...
36378# ------------------
36379# Perform arithmetic evaluation on the ARGs, and store the result in the
36380# global $as_val. Take advantage of shells that can avoid forks. The arguments
36381# must be portable across $(()) and expr.
36382if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36383  eval 'as_fn_arith ()
36384  {
36385    as_val=$(( $* ))
36386  }'
36387else
36388  as_fn_arith ()
36389  {
36390    as_val=`expr "$@" || test $? -eq 1`
36391  }
36392fi # as_fn_arith
36393
36394
36395if expr a : '\(a\)' >/dev/null 2>&1 &&
36396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36397  as_expr=expr
36398else
36399  as_expr=false
36400fi
36401
36402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36403  as_basename=basename
36404else
36405  as_basename=false
36406fi
36407
36408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36409  as_dirname=dirname
36410else
36411  as_dirname=false
36412fi
36413
36414as_me=`$as_basename -- "$0" ||
36415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36416	 X"$0" : 'X\(//\)$' \| \
36417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36418$as_echo X/"$0" |
36419    sed '/^.*\/\([^/][^/]*\)\/*$/{
36420	    s//\1/
36421	    q
36422	  }
36423	  /^X\/\(\/\/\)$/{
36424	    s//\1/
36425	    q
36426	  }
36427	  /^X\/\(\/\).*/{
36428	    s//\1/
36429	    q
36430	  }
36431	  s/.*/./; q'`
36432
36433# Avoid depending upon Character Ranges.
36434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36437as_cr_digits='0123456789'
36438as_cr_alnum=$as_cr_Letters$as_cr_digits
36439
36440ECHO_C= ECHO_N= ECHO_T=
36441case `echo -n x` in #(((((
36442-n*)
36443  case `echo 'xy\c'` in
36444  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36445  xy)  ECHO_C='\c';;
36446  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36447       ECHO_T='	';;
36448  esac;;
36449*)
36450  ECHO_N='-n';;
36451esac
36452
36453rm -f conf$$ conf$$.exe conf$$.file
36454if test -d conf$$.dir; then
36455  rm -f conf$$.dir/conf$$.file
36456else
36457  rm -f conf$$.dir
36458  mkdir conf$$.dir 2>/dev/null
36459fi
36460if (echo >conf$$.file) 2>/dev/null; then
36461  if ln -s conf$$.file conf$$ 2>/dev/null; then
36462    as_ln_s='ln -s'
36463    # ... but there are two gotchas:
36464    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36465    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36466    # In both cases, we have to default to `cp -pR'.
36467    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36468      as_ln_s='cp -pR'
36469  elif ln conf$$.file conf$$ 2>/dev/null; then
36470    as_ln_s=ln
36471  else
36472    as_ln_s='cp -pR'
36473  fi
36474else
36475  as_ln_s='cp -pR'
36476fi
36477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36478rmdir conf$$.dir 2>/dev/null
36479
36480
36481# as_fn_mkdir_p
36482# -------------
36483# Create "$as_dir" as a directory, including parents if necessary.
36484as_fn_mkdir_p ()
36485{
36486
36487  case $as_dir in #(
36488  -*) as_dir=./$as_dir;;
36489  esac
36490  test -d "$as_dir" || eval $as_mkdir_p || {
36491    as_dirs=
36492    while :; do
36493      case $as_dir in #(
36494      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36495      *) as_qdir=$as_dir;;
36496      esac
36497      as_dirs="'$as_qdir' $as_dirs"
36498      as_dir=`$as_dirname -- "$as_dir" ||
36499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36500	 X"$as_dir" : 'X\(//\)[^/]' \| \
36501	 X"$as_dir" : 'X\(//\)$' \| \
36502	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36503$as_echo X"$as_dir" |
36504    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36505	    s//\1/
36506	    q
36507	  }
36508	  /^X\(\/\/\)[^/].*/{
36509	    s//\1/
36510	    q
36511	  }
36512	  /^X\(\/\/\)$/{
36513	    s//\1/
36514	    q
36515	  }
36516	  /^X\(\/\).*/{
36517	    s//\1/
36518	    q
36519	  }
36520	  s/.*/./; q'`
36521      test -d "$as_dir" && break
36522    done
36523    test -z "$as_dirs" || eval "mkdir $as_dirs"
36524  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36525
36526
36527} # as_fn_mkdir_p
36528if mkdir -p . 2>/dev/null; then
36529  as_mkdir_p='mkdir -p "$as_dir"'
36530else
36531  test -d ./-p && rmdir ./-p
36532  as_mkdir_p=false
36533fi
36534
36535
36536# as_fn_executable_p FILE
36537# -----------------------
36538# Test if FILE is an executable regular file.
36539as_fn_executable_p ()
36540{
36541  test -f "$1" && test -x "$1"
36542} # as_fn_executable_p
36543as_test_x='test -x'
36544as_executable_p=as_fn_executable_p
36545
36546# Sed expression to map a string onto a valid CPP name.
36547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36548
36549# Sed expression to map a string onto a valid variable name.
36550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36551
36552
36553exec 6>&1
36554## ----------------------------------- ##
36555## Main body of $CONFIG_STATUS script. ##
36556## ----------------------------------- ##
36557_ASEOF
36558test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36559
36560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36561# Save the log message, to keep $0 and so on meaningful, and to
36562# report actual input values of CONFIG_FILES etc. instead of their
36563# values after options handling.
36564ac_log="
36565This file was extended by ImageMagick $as_me 7.0.0-0, which was
36566generated by GNU Autoconf 2.69.  Invocation command line was
36567
36568  CONFIG_FILES    = $CONFIG_FILES
36569  CONFIG_HEADERS  = $CONFIG_HEADERS
36570  CONFIG_LINKS    = $CONFIG_LINKS
36571  CONFIG_COMMANDS = $CONFIG_COMMANDS
36572  $ $0 $@
36573
36574on `(hostname || uname -n) 2>/dev/null | sed 1q`
36575"
36576
36577_ACEOF
36578
36579case $ac_config_files in *"
36580"*) set x $ac_config_files; shift; ac_config_files=$*;;
36581esac
36582
36583case $ac_config_headers in *"
36584"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36585esac
36586
36587
36588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36589# Files that config.status was made for.
36590config_files="$ac_config_files"
36591config_headers="$ac_config_headers"
36592config_commands="$ac_config_commands"
36593
36594_ACEOF
36595
36596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36597ac_cs_usage="\
36598\`$as_me' instantiates files and other configuration actions
36599from templates according to the current configuration.  Unless the files
36600and actions are specified as TAGs, all are instantiated by default.
36601
36602Usage: $0 [OPTION]... [TAG]...
36603
36604  -h, --help       print this help, then exit
36605  -V, --version    print version number and configuration settings, then exit
36606      --config     print configuration, then exit
36607  -q, --quiet, --silent
36608                   do not print progress messages
36609  -d, --debug      don't remove temporary files
36610      --recheck    update $as_me by reconfiguring in the same conditions
36611      --file=FILE[:TEMPLATE]
36612                   instantiate the configuration file FILE
36613      --header=FILE[:TEMPLATE]
36614                   instantiate the configuration header FILE
36615
36616Configuration files:
36617$config_files
36618
36619Configuration headers:
36620$config_headers
36621
36622Configuration commands:
36623$config_commands
36624
36625Report bugs to <http://www.imagemagick.org>."
36626
36627_ACEOF
36628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36629ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36630ac_cs_version="\\
36631ImageMagick config.status 7.0.0-0
36632configured by $0, generated by GNU Autoconf 2.69,
36633  with options \\"\$ac_cs_config\\"
36634
36635Copyright (C) 2012 Free Software Foundation, Inc.
36636This config.status script is free software; the Free Software Foundation
36637gives unlimited permission to copy, distribute and modify it."
36638
36639ac_pwd='$ac_pwd'
36640srcdir='$srcdir'
36641INSTALL='$INSTALL'
36642MKDIR_P='$MKDIR_P'
36643AWK='$AWK'
36644test -n "\$AWK" || AWK=awk
36645_ACEOF
36646
36647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36648# The default lists apply if the user does not specify any file.
36649ac_need_defaults=:
36650while test $# != 0
36651do
36652  case $1 in
36653  --*=?*)
36654    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36655    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36656    ac_shift=:
36657    ;;
36658  --*=)
36659    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36660    ac_optarg=
36661    ac_shift=:
36662    ;;
36663  *)
36664    ac_option=$1
36665    ac_optarg=$2
36666    ac_shift=shift
36667    ;;
36668  esac
36669
36670  case $ac_option in
36671  # Handling of the options.
36672  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36673    ac_cs_recheck=: ;;
36674  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36675    $as_echo "$ac_cs_version"; exit ;;
36676  --config | --confi | --conf | --con | --co | --c )
36677    $as_echo "$ac_cs_config"; exit ;;
36678  --debug | --debu | --deb | --de | --d | -d )
36679    debug=: ;;
36680  --file | --fil | --fi | --f )
36681    $ac_shift
36682    case $ac_optarg in
36683    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36684    '') as_fn_error $? "missing file argument" ;;
36685    esac
36686    as_fn_append CONFIG_FILES " '$ac_optarg'"
36687    ac_need_defaults=false;;
36688  --header | --heade | --head | --hea )
36689    $ac_shift
36690    case $ac_optarg in
36691    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36692    esac
36693    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36694    ac_need_defaults=false;;
36695  --he | --h)
36696    # Conflict between --help and --header
36697    as_fn_error $? "ambiguous option: \`$1'
36698Try \`$0 --help' for more information.";;
36699  --help | --hel | -h )
36700    $as_echo "$ac_cs_usage"; exit ;;
36701  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36702  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36703    ac_cs_silent=: ;;
36704
36705  # This is an error.
36706  -*) as_fn_error $? "unrecognized option: \`$1'
36707Try \`$0 --help' for more information." ;;
36708
36709  *) as_fn_append ac_config_targets " $1"
36710     ac_need_defaults=false ;;
36711
36712  esac
36713  shift
36714done
36715
36716ac_configure_extra_args=
36717
36718if $ac_cs_silent; then
36719  exec 6>/dev/null
36720  ac_configure_extra_args="$ac_configure_extra_args --silent"
36721fi
36722
36723_ACEOF
36724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36725if \$ac_cs_recheck; then
36726  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36727  shift
36728  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36729  CONFIG_SHELL='$SHELL'
36730  export CONFIG_SHELL
36731  exec "\$@"
36732fi
36733
36734_ACEOF
36735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36736exec 5>>config.log
36737{
36738  echo
36739  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36740## Running $as_me. ##
36741_ASBOX
36742  $as_echo "$ac_log"
36743} >&5
36744
36745_ACEOF
36746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36747#
36748# INIT-COMMANDS
36749#
36750PACKAGE="$PACKAGE"
36751AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36752
36753
36754# The HP-UX ksh and POSIX shell print the target directory to stdout
36755# if CDPATH is set.
36756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36757
36758sed_quote_subst='$sed_quote_subst'
36759double_quote_subst='$double_quote_subst'
36760delay_variable_subst='$delay_variable_subst'
36761SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36762Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36763GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36764EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36765FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36766SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36767ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36768LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36769macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36770macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36771AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36772DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36773OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36774enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36775enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36776pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36777enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36778PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36779host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36780host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36781host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36782build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36783build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36784build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36785NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36786LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36787max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36788ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36789exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36790lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36791lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36792lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36793lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36794lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36795reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36796reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36797deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36798file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36799file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36800want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36801sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36802AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36803AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36804archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36805STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36806RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36807old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36808old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36809old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36810lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36811CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36812CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36813compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36814GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36815lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36816lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36817lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36818lt_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"`'
36819nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36820lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36821objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36822MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36823lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36824lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36825lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36826lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36827lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36828need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36829MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36830DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36831NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36832LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36833OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36834OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36835libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36836shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36837extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36838archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36839enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36840export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36841whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36842compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36843old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36844old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36845archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36846archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36847module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36848module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36849with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36850allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36851no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36852hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36853hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36854hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36855hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36856hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36857hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36858hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36859inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36860link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36861always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36862export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36863exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36864include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36865prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36866postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36867file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36868variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36869need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36870need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36871version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36872runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36873shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36874shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36875libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36876library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36877soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36878install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36879postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36880postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36881finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36882finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36883hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36884sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36885sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36886hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36887enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36888enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36889enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36890old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36891striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36892compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36893predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36894postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36895predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36896postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36897compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36898LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36899reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36900reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36901old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36902compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36903GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36904lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36905lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36906lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36907lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36908lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36909archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36910enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36911export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36912whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36913compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36914old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36915old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36916archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36917archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36918module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36919module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36920with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36921allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36922no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36923hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36924hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36925hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36926hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36927hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36928hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36929hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36930inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36931link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36932always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36933export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36934exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36935include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36936prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36937postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36938file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36939hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36940compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36941predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36942postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36943predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36944postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36945compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36946
36947LTCC='$LTCC'
36948LTCFLAGS='$LTCFLAGS'
36949compiler='$compiler_DEFAULT'
36950
36951# A function that is used when there is no print builtin or printf.
36952func_fallback_echo ()
36953{
36954  eval 'cat <<_LTECHO_EOF
36955\$1
36956_LTECHO_EOF'
36957}
36958
36959# Quote evaled strings.
36960for var in SED \
36961GREP \
36962EGREP \
36963FGREP \
36964SHELL \
36965ECHO \
36966LD \
36967AS \
36968DLLTOOL \
36969OBJDUMP \
36970PATH_SEPARATOR \
36971NM \
36972LN_S \
36973lt_SP2NL \
36974lt_NL2SP \
36975reload_flag \
36976deplibs_check_method \
36977file_magic_cmd \
36978file_magic_glob \
36979want_nocaseglob \
36980sharedlib_from_linklib_cmd \
36981AR \
36982AR_FLAGS \
36983archiver_list_spec \
36984STRIP \
36985RANLIB \
36986CC \
36987CFLAGS \
36988compiler \
36989lt_cv_sys_global_symbol_pipe \
36990lt_cv_sys_global_symbol_to_cdecl \
36991lt_cv_sys_global_symbol_to_c_name_address \
36992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36993nm_file_list_spec \
36994lt_prog_compiler_no_builtin_flag \
36995lt_prog_compiler_pic \
36996lt_prog_compiler_wl \
36997lt_prog_compiler_static \
36998lt_cv_prog_compiler_c_o \
36999need_locks \
37000MANIFEST_TOOL \
37001DSYMUTIL \
37002NMEDIT \
37003LIPO \
37004OTOOL \
37005OTOOL64 \
37006shrext_cmds \
37007export_dynamic_flag_spec \
37008whole_archive_flag_spec \
37009compiler_needs_object \
37010with_gnu_ld \
37011allow_undefined_flag \
37012no_undefined_flag \
37013hardcode_libdir_flag_spec \
37014hardcode_libdir_separator \
37015exclude_expsyms \
37016include_expsyms \
37017file_list_spec \
37018variables_saved_for_relink \
37019libname_spec \
37020library_names_spec \
37021soname_spec \
37022install_override_mode \
37023finish_eval \
37024old_striplib \
37025striplib \
37026compiler_lib_search_dirs \
37027predep_objects \
37028postdep_objects \
37029predeps \
37030postdeps \
37031compiler_lib_search_path \
37032LD_CXX \
37033reload_flag_CXX \
37034compiler_CXX \
37035lt_prog_compiler_no_builtin_flag_CXX \
37036lt_prog_compiler_pic_CXX \
37037lt_prog_compiler_wl_CXX \
37038lt_prog_compiler_static_CXX \
37039lt_cv_prog_compiler_c_o_CXX \
37040export_dynamic_flag_spec_CXX \
37041whole_archive_flag_spec_CXX \
37042compiler_needs_object_CXX \
37043with_gnu_ld_CXX \
37044allow_undefined_flag_CXX \
37045no_undefined_flag_CXX \
37046hardcode_libdir_flag_spec_CXX \
37047hardcode_libdir_separator_CXX \
37048exclude_expsyms_CXX \
37049include_expsyms_CXX \
37050file_list_spec_CXX \
37051compiler_lib_search_dirs_CXX \
37052predep_objects_CXX \
37053postdep_objects_CXX \
37054predeps_CXX \
37055postdeps_CXX \
37056compiler_lib_search_path_CXX; do
37057    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37058    *[\\\\\\\`\\"\\\$]*)
37059      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37060      ;;
37061    *)
37062      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37063      ;;
37064    esac
37065done
37066
37067# Double-quote double-evaled strings.
37068for var in reload_cmds \
37069old_postinstall_cmds \
37070old_postuninstall_cmds \
37071old_archive_cmds \
37072extract_expsyms_cmds \
37073old_archive_from_new_cmds \
37074old_archive_from_expsyms_cmds \
37075archive_cmds \
37076archive_expsym_cmds \
37077module_cmds \
37078module_expsym_cmds \
37079export_symbols_cmds \
37080prelink_cmds \
37081postlink_cmds \
37082postinstall_cmds \
37083postuninstall_cmds \
37084finish_cmds \
37085sys_lib_search_path_spec \
37086sys_lib_dlsearch_path_spec \
37087reload_cmds_CXX \
37088old_archive_cmds_CXX \
37089old_archive_from_new_cmds_CXX \
37090old_archive_from_expsyms_cmds_CXX \
37091archive_cmds_CXX \
37092archive_expsym_cmds_CXX \
37093module_cmds_CXX \
37094module_expsym_cmds_CXX \
37095export_symbols_cmds_CXX \
37096prelink_cmds_CXX \
37097postlink_cmds_CXX; do
37098    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37099    *[\\\\\\\`\\"\\\$]*)
37100      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37101      ;;
37102    *)
37103      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37104      ;;
37105    esac
37106done
37107
37108ac_aux_dir='$ac_aux_dir'
37109xsi_shell='$xsi_shell'
37110lt_shell_append='$lt_shell_append'
37111
37112# See if we are running on zsh, and set the options which allow our
37113# commands through without removal of \ escapes INIT.
37114if test -n "\${ZSH_VERSION+set}" ; then
37115   setopt NO_GLOB_SUBST
37116fi
37117
37118
37119    PACKAGE='$PACKAGE'
37120    VERSION='$VERSION'
37121    TIMESTAMP='$TIMESTAMP'
37122    RM='$RM'
37123    ofile='$ofile'
37124
37125
37126
37127
37128
37129
37130_ACEOF
37131
37132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37133
37134# Handling of arguments.
37135for ac_config_target in $ac_config_targets
37136do
37137  case $ac_config_target in
37138    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37139    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
37140    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
37141    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37142    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37143    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37144    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37145    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37146    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
37147    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37148    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37149    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37150    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37151    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37152    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37153    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37154    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37155    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37156    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37157    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37158    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37159    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37160    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37161    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
37162    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37163    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
37164    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37165    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37166    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37167    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
37168    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37169    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37170    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37171    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37172    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37173    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37174    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37175    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37176    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37177    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37178    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37179    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37180    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37181    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37182    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37183    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37184    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37185    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37186    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37187    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37188    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37189    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37190
37191  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37192  esac
37193done
37194
37195
37196# If the user did not use the arguments to specify the items to instantiate,
37197# then the envvar interface is used.  Set only those that are not.
37198# We use the long form for the default assignment because of an extremely
37199# bizarre bug on SunOS 4.1.3.
37200if $ac_need_defaults; then
37201  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37202  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37203  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37204fi
37205
37206# Have a temporary directory for convenience.  Make it in the build tree
37207# simply because there is no reason against having it here, and in addition,
37208# creating and moving files from /tmp can sometimes cause problems.
37209# Hook for its removal unless debugging.
37210# Note that there is a small window in which the directory will not be cleaned:
37211# after its creation but before its name has been assigned to `$tmp'.
37212$debug ||
37213{
37214  tmp= ac_tmp=
37215  trap 'exit_status=$?
37216  : "${ac_tmp:=$tmp}"
37217  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37218' 0
37219  trap 'as_fn_exit 1' 1 2 13 15
37220}
37221# Create a (secure) tmp directory for tmp files.
37222
37223{
37224  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37225  test -d "$tmp"
37226}  ||
37227{
37228  tmp=./conf$$-$RANDOM
37229  (umask 077 && mkdir "$tmp")
37230} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37231ac_tmp=$tmp
37232
37233# Set up the scripts for CONFIG_FILES section.
37234# No need to generate them if there are no CONFIG_FILES.
37235# This happens for instance with `./config.status config.h'.
37236if test -n "$CONFIG_FILES"; then
37237
37238
37239ac_cr=`echo X | tr X '\015'`
37240# On cygwin, bash can eat \r inside `` if the user requested igncr.
37241# But we know of no other shell where ac_cr would be empty at this
37242# point, so we can use a bashism as a fallback.
37243if test "x$ac_cr" = x; then
37244  eval ac_cr=\$\'\\r\'
37245fi
37246ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37247if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37248  ac_cs_awk_cr='\\r'
37249else
37250  ac_cs_awk_cr=$ac_cr
37251fi
37252
37253echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37254_ACEOF
37255
37256
37257{
37258  echo "cat >conf$$subs.awk <<_ACEOF" &&
37259  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37260  echo "_ACEOF"
37261} >conf$$subs.sh ||
37262  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37263ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37264ac_delim='%!_!# '
37265for ac_last_try in false false false false false :; do
37266  . ./conf$$subs.sh ||
37267    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37268
37269  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37270  if test $ac_delim_n = $ac_delim_num; then
37271    break
37272  elif $ac_last_try; then
37273    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37274  else
37275    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37276  fi
37277done
37278rm -f conf$$subs.sh
37279
37280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37281cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37282_ACEOF
37283sed -n '
37284h
37285s/^/S["/; s/!.*/"]=/
37286p
37287g
37288s/^[^!]*!//
37289:repl
37290t repl
37291s/'"$ac_delim"'$//
37292t delim
37293:nl
37294h
37295s/\(.\{148\}\)..*/\1/
37296t more1
37297s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37298p
37299n
37300b repl
37301:more1
37302s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37303p
37304g
37305s/.\{148\}//
37306t nl
37307:delim
37308h
37309s/\(.\{148\}\)..*/\1/
37310t more2
37311s/["\\]/\\&/g; s/^/"/; s/$/"/
37312p
37313b
37314:more2
37315s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37316p
37317g
37318s/.\{148\}//
37319t delim
37320' <conf$$subs.awk | sed '
37321/^[^""]/{
37322  N
37323  s/\n//
37324}
37325' >>$CONFIG_STATUS || ac_write_fail=1
37326rm -f conf$$subs.awk
37327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37328_ACAWK
37329cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37330  for (key in S) S_is_set[key] = 1
37331  FS = ""
37332
37333}
37334{
37335  line = $ 0
37336  nfields = split(line, field, "@")
37337  substed = 0
37338  len = length(field[1])
37339  for (i = 2; i < nfields; i++) {
37340    key = field[i]
37341    keylen = length(key)
37342    if (S_is_set[key]) {
37343      value = S[key]
37344      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37345      len += length(value) + length(field[++i])
37346      substed = 1
37347    } else
37348      len += 1 + keylen
37349  }
37350
37351  print line
37352}
37353
37354_ACAWK
37355_ACEOF
37356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37357if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37358  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37359else
37360  cat
37361fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37362  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37363_ACEOF
37364
37365# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37366# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37367# trailing colons and then remove the whole line if VPATH becomes empty
37368# (actually we leave an empty line to preserve line numbers).
37369if test "x$srcdir" = x.; then
37370  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37371h
37372s///
37373s/^/:/
37374s/[	 ]*$/:/
37375s/:\$(srcdir):/:/g
37376s/:\${srcdir}:/:/g
37377s/:@srcdir@:/:/g
37378s/^:*//
37379s/:*$//
37380x
37381s/\(=[	 ]*\).*/\1/
37382G
37383s/\n//
37384s/^[^=]*=[	 ]*$//
37385}'
37386fi
37387
37388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37389fi # test -n "$CONFIG_FILES"
37390
37391# Set up the scripts for CONFIG_HEADERS section.
37392# No need to generate them if there are no CONFIG_HEADERS.
37393# This happens for instance with `./config.status Makefile'.
37394if test -n "$CONFIG_HEADERS"; then
37395cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37396BEGIN {
37397_ACEOF
37398
37399# Transform confdefs.h into an awk script `defines.awk', embedded as
37400# here-document in config.status, that substitutes the proper values into
37401# config.h.in to produce config.h.
37402
37403# Create a delimiter string that does not exist in confdefs.h, to ease
37404# handling of long lines.
37405ac_delim='%!_!# '
37406for ac_last_try in false false :; do
37407  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37408  if test -z "$ac_tt"; then
37409    break
37410  elif $ac_last_try; then
37411    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37412  else
37413    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37414  fi
37415done
37416
37417# For the awk script, D is an array of macro values keyed by name,
37418# likewise P contains macro parameters if any.  Preserve backslash
37419# newline sequences.
37420
37421ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37422sed -n '
37423s/.\{148\}/&'"$ac_delim"'/g
37424t rset
37425:rset
37426s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37427t def
37428d
37429:def
37430s/\\$//
37431t bsnl
37432s/["\\]/\\&/g
37433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37434D["\1"]=" \3"/p
37435s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37436d
37437:bsnl
37438s/["\\]/\\&/g
37439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37440D["\1"]=" \3\\\\\\n"\\/p
37441t cont
37442s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37443t cont
37444d
37445:cont
37446n
37447s/.\{148\}/&'"$ac_delim"'/g
37448t clear
37449:clear
37450s/\\$//
37451t bsnlc
37452s/["\\]/\\&/g; s/^/"/; s/$/"/p
37453d
37454:bsnlc
37455s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37456b cont
37457' <confdefs.h | sed '
37458s/'"$ac_delim"'/"\\\
37459"/g' >>$CONFIG_STATUS || ac_write_fail=1
37460
37461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37462  for (key in D) D_is_set[key] = 1
37463  FS = ""
37464}
37465/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37466  line = \$ 0
37467  split(line, arg, " ")
37468  if (arg[1] == "#") {
37469    defundef = arg[2]
37470    mac1 = arg[3]
37471  } else {
37472    defundef = substr(arg[1], 2)
37473    mac1 = arg[2]
37474  }
37475  split(mac1, mac2, "(") #)
37476  macro = mac2[1]
37477  prefix = substr(line, 1, index(line, defundef) - 1)
37478  if (D_is_set[macro]) {
37479    # Preserve the white space surrounding the "#".
37480    print prefix "define", macro P[macro] D[macro]
37481    next
37482  } else {
37483    # Replace #undef with comments.  This is necessary, for example,
37484    # in the case of _POSIX_SOURCE, which is predefined and required
37485    # on some systems where configure will not decide to define it.
37486    if (defundef == "undef") {
37487      print "/*", prefix defundef, macro, "*/"
37488      next
37489    }
37490  }
37491}
37492{ print }
37493_ACAWK
37494_ACEOF
37495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37496  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37497fi # test -n "$CONFIG_HEADERS"
37498
37499
37500eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37501shift
37502for ac_tag
37503do
37504  case $ac_tag in
37505  :[FHLC]) ac_mode=$ac_tag; continue;;
37506  esac
37507  case $ac_mode$ac_tag in
37508  :[FHL]*:*);;
37509  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37510  :[FH]-) ac_tag=-:-;;
37511  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37512  esac
37513  ac_save_IFS=$IFS
37514  IFS=:
37515  set x $ac_tag
37516  IFS=$ac_save_IFS
37517  shift
37518  ac_file=$1
37519  shift
37520
37521  case $ac_mode in
37522  :L) ac_source=$1;;
37523  :[FH])
37524    ac_file_inputs=
37525    for ac_f
37526    do
37527      case $ac_f in
37528      -) ac_f="$ac_tmp/stdin";;
37529      *) # Look for the file first in the build tree, then in the source tree
37530	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37531	 # because $ac_f cannot contain `:'.
37532	 test -f "$ac_f" ||
37533	   case $ac_f in
37534	   [\\/$]*) false;;
37535	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37536	   esac ||
37537	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37538      esac
37539      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37540      as_fn_append ac_file_inputs " '$ac_f'"
37541    done
37542
37543    # Let's still pretend it is `configure' which instantiates (i.e., don't
37544    # use $as_me), people would be surprised to read:
37545    #    /* config.h.  Generated by config.status.  */
37546    configure_input='Generated from '`
37547	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37548	`' by configure.'
37549    if test x"$ac_file" != x-; then
37550      configure_input="$ac_file.  $configure_input"
37551      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37552$as_echo "$as_me: creating $ac_file" >&6;}
37553    fi
37554    # Neutralize special characters interpreted by sed in replacement strings.
37555    case $configure_input in #(
37556    *\&* | *\|* | *\\* )
37557       ac_sed_conf_input=`$as_echo "$configure_input" |
37558       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37559    *) ac_sed_conf_input=$configure_input;;
37560    esac
37561
37562    case $ac_tag in
37563    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37564      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37565    esac
37566    ;;
37567  esac
37568
37569  ac_dir=`$as_dirname -- "$ac_file" ||
37570$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37571	 X"$ac_file" : 'X\(//\)[^/]' \| \
37572	 X"$ac_file" : 'X\(//\)$' \| \
37573	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37574$as_echo X"$ac_file" |
37575    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37576	    s//\1/
37577	    q
37578	  }
37579	  /^X\(\/\/\)[^/].*/{
37580	    s//\1/
37581	    q
37582	  }
37583	  /^X\(\/\/\)$/{
37584	    s//\1/
37585	    q
37586	  }
37587	  /^X\(\/\).*/{
37588	    s//\1/
37589	    q
37590	  }
37591	  s/.*/./; q'`
37592  as_dir="$ac_dir"; as_fn_mkdir_p
37593  ac_builddir=.
37594
37595case "$ac_dir" in
37596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37597*)
37598  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37599  # A ".." for each directory in $ac_dir_suffix.
37600  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37601  case $ac_top_builddir_sub in
37602  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37603  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37604  esac ;;
37605esac
37606ac_abs_top_builddir=$ac_pwd
37607ac_abs_builddir=$ac_pwd$ac_dir_suffix
37608# for backward compatibility:
37609ac_top_builddir=$ac_top_build_prefix
37610
37611case $srcdir in
37612  .)  # We are building in place.
37613    ac_srcdir=.
37614    ac_top_srcdir=$ac_top_builddir_sub
37615    ac_abs_top_srcdir=$ac_pwd ;;
37616  [\\/]* | ?:[\\/]* )  # Absolute name.
37617    ac_srcdir=$srcdir$ac_dir_suffix;
37618    ac_top_srcdir=$srcdir
37619    ac_abs_top_srcdir=$srcdir ;;
37620  *) # Relative name.
37621    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37622    ac_top_srcdir=$ac_top_build_prefix$srcdir
37623    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37624esac
37625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37626
37627
37628  case $ac_mode in
37629  :F)
37630  #
37631  # CONFIG_FILE
37632  #
37633
37634  case $INSTALL in
37635  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37636  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37637  esac
37638  ac_MKDIR_P=$MKDIR_P
37639  case $MKDIR_P in
37640  [\\/$]* | ?:[\\/]* ) ;;
37641  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37642  esac
37643_ACEOF
37644
37645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37646# If the template does not know about datarootdir, expand it.
37647# FIXME: This hack should be removed a few years after 2.60.
37648ac_datarootdir_hack=; ac_datarootdir_seen=
37649ac_sed_dataroot='
37650/datarootdir/ {
37651  p
37652  q
37653}
37654/@datadir@/p
37655/@docdir@/p
37656/@infodir@/p
37657/@localedir@/p
37658/@mandir@/p'
37659case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37660*datarootdir*) ac_datarootdir_seen=yes;;
37661*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37662  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37663$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37664_ACEOF
37665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37666  ac_datarootdir_hack='
37667  s&@datadir@&$datadir&g
37668  s&@docdir@&$docdir&g
37669  s&@infodir@&$infodir&g
37670  s&@localedir@&$localedir&g
37671  s&@mandir@&$mandir&g
37672  s&\\\${datarootdir}&$datarootdir&g' ;;
37673esac
37674_ACEOF
37675
37676# Neutralize VPATH when `$srcdir' = `.'.
37677# Shell code in configure.ac might set extrasub.
37678# FIXME: do we really want to maintain this feature?
37679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37680ac_sed_extra="$ac_vpsub
37681$extrasub
37682_ACEOF
37683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37684:t
37685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37686s|@configure_input@|$ac_sed_conf_input|;t t
37687s&@top_builddir@&$ac_top_builddir_sub&;t t
37688s&@top_build_prefix@&$ac_top_build_prefix&;t t
37689s&@srcdir@&$ac_srcdir&;t t
37690s&@abs_srcdir@&$ac_abs_srcdir&;t t
37691s&@top_srcdir@&$ac_top_srcdir&;t t
37692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37693s&@builddir@&$ac_builddir&;t t
37694s&@abs_builddir@&$ac_abs_builddir&;t t
37695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37696s&@INSTALL@&$ac_INSTALL&;t t
37697s&@MKDIR_P@&$ac_MKDIR_P&;t t
37698$ac_datarootdir_hack
37699"
37700eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37701  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37702
37703test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37704  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37705  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
37706      "$ac_tmp/out"`; test -z "$ac_out"; } &&
37707  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37708which seems to be undefined.  Please make sure it is defined" >&5
37709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37710which seems to be undefined.  Please make sure it is defined" >&2;}
37711
37712  rm -f "$ac_tmp/stdin"
37713  case $ac_file in
37714  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37715  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37716  esac \
37717  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37718 ;;
37719  :H)
37720  #
37721  # CONFIG_HEADER
37722  #
37723  if test x"$ac_file" != x-; then
37724    {
37725      $as_echo "/* $configure_input  */" \
37726      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37727    } >"$ac_tmp/config.h" \
37728      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37729    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37730      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37731$as_echo "$as_me: $ac_file is unchanged" >&6;}
37732    else
37733      rm -f "$ac_file"
37734      mv "$ac_tmp/config.h" "$ac_file" \
37735	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
37736    fi
37737  else
37738    $as_echo "/* $configure_input  */" \
37739      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37740      || as_fn_error $? "could not create -" "$LINENO" 5
37741  fi
37742# Compute "$ac_file"'s index in $config_headers.
37743_am_arg="$ac_file"
37744_am_stamp_count=1
37745for _am_header in $config_headers :; do
37746  case $_am_header in
37747    $_am_arg | $_am_arg:* )
37748      break ;;
37749    * )
37750      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37751  esac
37752done
37753echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37754$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37755	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37756	 X"$_am_arg" : 'X\(//\)$' \| \
37757	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37758$as_echo X"$_am_arg" |
37759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37760	    s//\1/
37761	    q
37762	  }
37763	  /^X\(\/\/\)[^/].*/{
37764	    s//\1/
37765	    q
37766	  }
37767	  /^X\(\/\/\)$/{
37768	    s//\1/
37769	    q
37770	  }
37771	  /^X\(\/\).*/{
37772	    s//\1/
37773	    q
37774	  }
37775	  s/.*/./; q'`/stamp-h$_am_stamp_count
37776 ;;
37777
37778  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37779$as_echo "$as_me: executing $ac_file commands" >&6;}
37780 ;;
37781  esac
37782
37783
37784  case $ac_file$ac_mode in
37785    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
37786ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37787ac_prefix_conf_PKG=`echo MagickCore`
37788ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37789ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
37790ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37791if test ".$ac_prefix_conf_INP" = "."; then
37792   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37793     case "$ac_file" in
37794        *.h) ac_prefix_conf_INP=$ac_file ;;
37795        *)
37796     esac
37797     test ".$ac_prefix_conf_INP" != "." && break
37798   done
37799fi
37800if test ".$ac_prefix_conf_INP" = "."; then
37801   case "$ac_prefix_conf_OUT" in
37802      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37803      ;;
37804      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37805      ;;
37806      *) ac_prefix_conf_INP=config.h
37807      ;;
37808   esac
37809fi
37810if test -z "$ac_prefix_conf_PKG" ; then
37811   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37812else
37813  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37814     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37815  fi fi
37816  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37817$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37818  if test -f $ac_prefix_conf_INP ; then
37819    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37820    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37821    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37822    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37823    $as_echo "#endif/" >> conftest.prefix
37824    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37825    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37826    $as_echo "#endif/" >> conftest.prefix
37827    # now executing _script on _DEF input to create _OUT output file
37828    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
37829    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37830    echo ' ' >>$tmp/pconfig.h
37831    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37832
37833    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37834    echo ' ' >>$tmp/pconfig.h
37835    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37836    echo "#endif" >>$tmp/pconfig.h
37837    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37838      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37839$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37840    else
37841      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37842$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37843	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37844	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37845	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37846$as_echo X"$ac_prefix_conf_OUT" |
37847    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37848	    s//\1/
37849	    q
37850	  }
37851	  /^X\(\/\/\)[^/].*/{
37852	    s//\1/
37853	    q
37854	  }
37855	  /^X\(\/\/\)$/{
37856	    s//\1/
37857	    q
37858	  }
37859	  /^X\(\/\).*/{
37860	    s//\1/
37861	    q
37862	  }
37863	  s/.*/./; q'`
37864      as_dir="$ac_dir"; as_fn_mkdir_p
37865      rm -f "$ac_prefix_conf_OUT"
37866      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37867    fi
37868    cp conftest.prefix _configs.sed
37869  else
37870    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
37871  fi
37872  rm -f conftest.*
37873fi
37874 ;;
37875    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37876  # Older Autoconf quotes --file arguments for eval, but not when files
37877  # are listed without --file.  Let's play safe and only enable the eval
37878  # if we detect the quoting.
37879  case $CONFIG_FILES in
37880  *\'*) eval set x "$CONFIG_FILES" ;;
37881  *)   set x $CONFIG_FILES ;;
37882  esac
37883  shift
37884  for mf
37885  do
37886    # Strip MF so we end up with the name of the file.
37887    mf=`echo "$mf" | sed -e 's/:.*$//'`
37888    # Check whether this is an Automake generated Makefile or not.
37889    # We used to match only the files named 'Makefile.in', but
37890    # some people rename them; so instead we look at the file content.
37891    # Grep'ing the first line is not enough: some people post-process
37892    # each Makefile.in and add a new line on top of each file to say so.
37893    # Grep'ing the whole file is not good either: AIX grep has a line
37894    # limit of 2048, but all sed's we know have understand at least 4000.
37895    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37896      dirpart=`$as_dirname -- "$mf" ||
37897$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37898	 X"$mf" : 'X\(//\)[^/]' \| \
37899	 X"$mf" : 'X\(//\)$' \| \
37900	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37901$as_echo X"$mf" |
37902    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37903	    s//\1/
37904	    q
37905	  }
37906	  /^X\(\/\/\)[^/].*/{
37907	    s//\1/
37908	    q
37909	  }
37910	  /^X\(\/\/\)$/{
37911	    s//\1/
37912	    q
37913	  }
37914	  /^X\(\/\).*/{
37915	    s//\1/
37916	    q
37917	  }
37918	  s/.*/./; q'`
37919    else
37920      continue
37921    fi
37922    # Extract the definition of DEPDIR, am__include, and am__quote
37923    # from the Makefile without running 'make'.
37924    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37925    test -z "$DEPDIR" && continue
37926    am__include=`sed -n 's/^am__include = //p' < "$mf"`
37927    test -z "am__include" && continue
37928    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37929    # Find all dependency output files, they are included files with
37930    # $(DEPDIR) in their names.  We invoke sed twice because it is the
37931    # simplest approach to changing $(DEPDIR) to its actual value in the
37932    # expansion.
37933    for file in `sed -n "
37934      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37935	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
37936      # Make sure the directory exists.
37937      test -f "$dirpart/$file" && continue
37938      fdir=`$as_dirname -- "$file" ||
37939$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37940	 X"$file" : 'X\(//\)[^/]' \| \
37941	 X"$file" : 'X\(//\)$' \| \
37942	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37943$as_echo X"$file" |
37944    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37945	    s//\1/
37946	    q
37947	  }
37948	  /^X\(\/\/\)[^/].*/{
37949	    s//\1/
37950	    q
37951	  }
37952	  /^X\(\/\/\)$/{
37953	    s//\1/
37954	    q
37955	  }
37956	  /^X\(\/\).*/{
37957	    s//\1/
37958	    q
37959	  }
37960	  s/.*/./; q'`
37961      as_dir=$dirpart/$fdir; as_fn_mkdir_p
37962      # echo "creating $dirpart/$file"
37963      echo '# dummy' > "$dirpart/$file"
37964    done
37965  done
37966}
37967 ;;
37968    "libtool":C)
37969
37970    # See if we are running on zsh, and set the options which allow our
37971    # commands through without removal of \ escapes.
37972    if test -n "${ZSH_VERSION+set}" ; then
37973      setopt NO_GLOB_SUBST
37974    fi
37975
37976    cfgfile="${ofile}T"
37977    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37978    $RM "$cfgfile"
37979
37980    cat <<_LT_EOF >> "$cfgfile"
37981#! $SHELL
37982
37983# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37984# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37986# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37987#
37988#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37989#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37990#                 Foundation, Inc.
37991#   Written by Gordon Matzigkeit, 1996
37992#
37993#   This file is part of GNU Libtool.
37994#
37995# GNU Libtool is free software; you can redistribute it and/or
37996# modify it under the terms of the GNU General Public License as
37997# published by the Free Software Foundation; either version 2 of
37998# the License, or (at your option) any later version.
37999#
38000# As a special exception to the GNU General Public License,
38001# if you distribute this file as part of a program or library that
38002# is built using GNU Libtool, you may include this file under the
38003# same distribution terms that you use for the rest of that program.
38004#
38005# GNU Libtool is distributed in the hope that it will be useful,
38006# but WITHOUT ANY WARRANTY; without even the implied warranty of
38007# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38008# GNU General Public License for more details.
38009#
38010# You should have received a copy of the GNU General Public License
38011# along with GNU Libtool; see the file COPYING.  If not, a copy
38012# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38013# obtained by writing to the Free Software Foundation, Inc.,
38014# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38015
38016
38017# The names of the tagged configurations supported by this script.
38018available_tags="CXX "
38019
38020# ### BEGIN LIBTOOL CONFIG
38021
38022# A sed program that does not truncate output.
38023SED=$lt_SED
38024
38025# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38026Xsed="\$SED -e 1s/^X//"
38027
38028# A grep program that handles long lines.
38029GREP=$lt_GREP
38030
38031# An ERE matcher.
38032EGREP=$lt_EGREP
38033
38034# A literal string matcher.
38035FGREP=$lt_FGREP
38036
38037# Shell to use when invoking shell scripts.
38038SHELL=$lt_SHELL
38039
38040# An echo program that protects backslashes.
38041ECHO=$lt_ECHO
38042
38043# Which release of libtool.m4 was used?
38044macro_version=$macro_version
38045macro_revision=$macro_revision
38046
38047# Assembler program.
38048AS=$lt_AS
38049
38050# DLL creation program.
38051DLLTOOL=$lt_DLLTOOL
38052
38053# Object dumper program.
38054OBJDUMP=$lt_OBJDUMP
38055
38056# Whether or not to build shared libraries.
38057build_libtool_libs=$enable_shared
38058
38059# Whether or not to build static libraries.
38060build_old_libs=$enable_static
38061
38062# What type of objects to build.
38063pic_mode=$pic_mode
38064
38065# Whether or not to optimize for fast installation.
38066fast_install=$enable_fast_install
38067
38068# The PATH separator for the build system.
38069PATH_SEPARATOR=$lt_PATH_SEPARATOR
38070
38071# The host system.
38072host_alias=$host_alias
38073host=$host
38074host_os=$host_os
38075
38076# The build system.
38077build_alias=$build_alias
38078build=$build
38079build_os=$build_os
38080
38081# A BSD- or MS-compatible name lister.
38082NM=$lt_NM
38083
38084# Whether we need soft or hard links.
38085LN_S=$lt_LN_S
38086
38087# What is the maximum length of a command?
38088max_cmd_len=$max_cmd_len
38089
38090# Object file suffix (normally "o").
38091objext=$ac_objext
38092
38093# Executable file suffix (normally "").
38094exeext=$exeext
38095
38096# whether the shell understands "unset".
38097lt_unset=$lt_unset
38098
38099# turn spaces into newlines.
38100SP2NL=$lt_lt_SP2NL
38101
38102# turn newlines into spaces.
38103NL2SP=$lt_lt_NL2SP
38104
38105# convert \$build file names to \$host format.
38106to_host_file_cmd=$lt_cv_to_host_file_cmd
38107
38108# convert \$build files to toolchain format.
38109to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38110
38111# Method to check whether dependent libraries are shared objects.
38112deplibs_check_method=$lt_deplibs_check_method
38113
38114# Command to use when deplibs_check_method = "file_magic".
38115file_magic_cmd=$lt_file_magic_cmd
38116
38117# How to find potential files when deplibs_check_method = "file_magic".
38118file_magic_glob=$lt_file_magic_glob
38119
38120# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38121want_nocaseglob=$lt_want_nocaseglob
38122
38123# Command to associate shared and link libraries.
38124sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38125
38126# The archiver.
38127AR=$lt_AR
38128
38129# Flags to create an archive.
38130AR_FLAGS=$lt_AR_FLAGS
38131
38132# How to feed a file listing to the archiver.
38133archiver_list_spec=$lt_archiver_list_spec
38134
38135# A symbol stripping program.
38136STRIP=$lt_STRIP
38137
38138# Commands used to install an old-style archive.
38139RANLIB=$lt_RANLIB
38140old_postinstall_cmds=$lt_old_postinstall_cmds
38141old_postuninstall_cmds=$lt_old_postuninstall_cmds
38142
38143# Whether to use a lock for old archive extraction.
38144lock_old_archive_extraction=$lock_old_archive_extraction
38145
38146# A C compiler.
38147LTCC=$lt_CC
38148
38149# LTCC compiler flags.
38150LTCFLAGS=$lt_CFLAGS
38151
38152# Take the output of nm and produce a listing of raw symbols and C names.
38153global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38154
38155# Transform the output of nm in a proper C declaration.
38156global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38157
38158# Transform the output of nm in a C name address pair.
38159global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38160
38161# Transform the output of nm in a C name address pair when lib prefix is needed.
38162global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38163
38164# Specify filename containing input files for \$NM.
38165nm_file_list_spec=$lt_nm_file_list_spec
38166
38167# The root where to search for dependent libraries,and in which our libraries should be installed.
38168lt_sysroot=$lt_sysroot
38169
38170# The name of the directory that contains temporary libtool files.
38171objdir=$objdir
38172
38173# Used to examine libraries when file_magic_cmd begins with "file".
38174MAGIC_CMD=$MAGIC_CMD
38175
38176# Must we lock files when doing compilation?
38177need_locks=$lt_need_locks
38178
38179# Manifest tool.
38180MANIFEST_TOOL=$lt_MANIFEST_TOOL
38181
38182# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38183DSYMUTIL=$lt_DSYMUTIL
38184
38185# Tool to change global to local symbols on Mac OS X.
38186NMEDIT=$lt_NMEDIT
38187
38188# Tool to manipulate fat objects and archives on Mac OS X.
38189LIPO=$lt_LIPO
38190
38191# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38192OTOOL=$lt_OTOOL
38193
38194# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38195OTOOL64=$lt_OTOOL64
38196
38197# Old archive suffix (normally "a").
38198libext=$libext
38199
38200# Shared library suffix (normally ".so").
38201shrext_cmds=$lt_shrext_cmds
38202
38203# The commands to extract the exported symbol list from a shared archive.
38204extract_expsyms_cmds=$lt_extract_expsyms_cmds
38205
38206# Variables whose values should be saved in libtool wrapper scripts and
38207# restored at link time.
38208variables_saved_for_relink=$lt_variables_saved_for_relink
38209
38210# Do we need the "lib" prefix for modules?
38211need_lib_prefix=$need_lib_prefix
38212
38213# Do we need a version for libraries?
38214need_version=$need_version
38215
38216# Library versioning type.
38217version_type=$version_type
38218
38219# Shared library runtime path variable.
38220runpath_var=$runpath_var
38221
38222# Shared library path variable.
38223shlibpath_var=$shlibpath_var
38224
38225# Is shlibpath searched before the hard-coded library search path?
38226shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38227
38228# Format of library name prefix.
38229libname_spec=$lt_libname_spec
38230
38231# List of archive names.  First name is the real one, the rest are links.
38232# The last name is the one that the linker finds with -lNAME
38233library_names_spec=$lt_library_names_spec
38234
38235# The coded name of the library, if different from the real name.
38236soname_spec=$lt_soname_spec
38237
38238# Permission mode override for installation of shared libraries.
38239install_override_mode=$lt_install_override_mode
38240
38241# Command to use after installation of a shared archive.
38242postinstall_cmds=$lt_postinstall_cmds
38243
38244# Command to use after uninstallation of a shared archive.
38245postuninstall_cmds=$lt_postuninstall_cmds
38246
38247# Commands used to finish a libtool library installation in a directory.
38248finish_cmds=$lt_finish_cmds
38249
38250# As "finish_cmds", except a single script fragment to be evaled but
38251# not shown.
38252finish_eval=$lt_finish_eval
38253
38254# Whether we should hardcode library paths into libraries.
38255hardcode_into_libs=$hardcode_into_libs
38256
38257# Compile-time system search path for libraries.
38258sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38259
38260# Run-time system search path for libraries.
38261sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38262
38263# Whether dlopen is supported.
38264dlopen_support=$enable_dlopen
38265
38266# Whether dlopen of programs is supported.
38267dlopen_self=$enable_dlopen_self
38268
38269# Whether dlopen of statically linked programs is supported.
38270dlopen_self_static=$enable_dlopen_self_static
38271
38272# Commands to strip libraries.
38273old_striplib=$lt_old_striplib
38274striplib=$lt_striplib
38275
38276
38277# The linker used to build libraries.
38278LD=$lt_LD
38279
38280# How to create reloadable object files.
38281reload_flag=$lt_reload_flag
38282reload_cmds=$lt_reload_cmds
38283
38284# Commands used to build an old-style archive.
38285old_archive_cmds=$lt_old_archive_cmds
38286
38287# A language specific compiler.
38288CC=$lt_compiler
38289
38290# Is the compiler the GNU compiler?
38291with_gcc=$GCC
38292
38293# Compiler flag to turn off builtin functions.
38294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38295
38296# Additional compiler flags for building library objects.
38297pic_flag=$lt_lt_prog_compiler_pic
38298
38299# How to pass a linker flag through the compiler.
38300wl=$lt_lt_prog_compiler_wl
38301
38302# Compiler flag to prevent dynamic linking.
38303link_static_flag=$lt_lt_prog_compiler_static
38304
38305# Does compiler simultaneously support -c and -o options?
38306compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38307
38308# Whether or not to add -lc for building shared libraries.
38309build_libtool_need_lc=$archive_cmds_need_lc
38310
38311# Whether or not to disallow shared libs when runtime libs are static.
38312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38313
38314# Compiler flag to allow reflexive dlopens.
38315export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38316
38317# Compiler flag to generate shared objects directly from archives.
38318whole_archive_flag_spec=$lt_whole_archive_flag_spec
38319
38320# Whether the compiler copes with passing no objects directly.
38321compiler_needs_object=$lt_compiler_needs_object
38322
38323# Create an old-style archive from a shared archive.
38324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38325
38326# Create a temporary old-style archive to link instead of a shared archive.
38327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38328
38329# Commands used to build a shared archive.
38330archive_cmds=$lt_archive_cmds
38331archive_expsym_cmds=$lt_archive_expsym_cmds
38332
38333# Commands used to build a loadable module if different from building
38334# a shared archive.
38335module_cmds=$lt_module_cmds
38336module_expsym_cmds=$lt_module_expsym_cmds
38337
38338# Whether we are building with GNU ld or not.
38339with_gnu_ld=$lt_with_gnu_ld
38340
38341# Flag that allows shared libraries with undefined symbols to be built.
38342allow_undefined_flag=$lt_allow_undefined_flag
38343
38344# Flag that enforces no undefined symbols.
38345no_undefined_flag=$lt_no_undefined_flag
38346
38347# Flag to hardcode \$libdir into a binary during linking.
38348# This must work even if \$libdir does not exist
38349hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38350
38351# Whether we need a single "-rpath" flag with a separated argument.
38352hardcode_libdir_separator=$lt_hardcode_libdir_separator
38353
38354# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38355# DIR into the resulting binary.
38356hardcode_direct=$hardcode_direct
38357
38358# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38359# DIR into the resulting binary and the resulting library dependency is
38360# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38361# library is relocated.
38362hardcode_direct_absolute=$hardcode_direct_absolute
38363
38364# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38365# into the resulting binary.
38366hardcode_minus_L=$hardcode_minus_L
38367
38368# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38369# into the resulting binary.
38370hardcode_shlibpath_var=$hardcode_shlibpath_var
38371
38372# Set to "yes" if building a shared library automatically hardcodes DIR
38373# into the library and all subsequent libraries and executables linked
38374# against it.
38375hardcode_automatic=$hardcode_automatic
38376
38377# Set to yes if linker adds runtime paths of dependent libraries
38378# to runtime path list.
38379inherit_rpath=$inherit_rpath
38380
38381# Whether libtool must link a program against all its dependency libraries.
38382link_all_deplibs=$link_all_deplibs
38383
38384# Set to "yes" if exported symbols are required.
38385always_export_symbols=$always_export_symbols
38386
38387# The commands to list exported symbols.
38388export_symbols_cmds=$lt_export_symbols_cmds
38389
38390# Symbols that should not be listed in the preloaded symbols.
38391exclude_expsyms=$lt_exclude_expsyms
38392
38393# Symbols that must always be exported.
38394include_expsyms=$lt_include_expsyms
38395
38396# Commands necessary for linking programs (against libraries) with templates.
38397prelink_cmds=$lt_prelink_cmds
38398
38399# Commands necessary for finishing linking programs.
38400postlink_cmds=$lt_postlink_cmds
38401
38402# Specify filename containing input files.
38403file_list_spec=$lt_file_list_spec
38404
38405# How to hardcode a shared library path into an executable.
38406hardcode_action=$hardcode_action
38407
38408# The directories searched by this compiler when creating a shared library.
38409compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38410
38411# Dependencies to place before and after the objects being linked to
38412# create a shared library.
38413predep_objects=$lt_predep_objects
38414postdep_objects=$lt_postdep_objects
38415predeps=$lt_predeps
38416postdeps=$lt_postdeps
38417
38418# The library search path used internally by the compiler when linking
38419# a shared library.
38420compiler_lib_search_path=$lt_compiler_lib_search_path
38421
38422# ### END LIBTOOL CONFIG
38423
38424_LT_EOF
38425
38426  case $host_os in
38427  aix3*)
38428    cat <<\_LT_EOF >> "$cfgfile"
38429# AIX sometimes has problems with the GCC collect2 program.  For some
38430# reason, if we set the COLLECT_NAMES environment variable, the problems
38431# vanish in a puff of smoke.
38432if test "X${COLLECT_NAMES+set}" != Xset; then
38433  COLLECT_NAMES=
38434  export COLLECT_NAMES
38435fi
38436_LT_EOF
38437    ;;
38438  esac
38439
38440
38441ltmain="$ac_aux_dir/ltmain.sh"
38442
38443
38444  # We use sed instead of cat because bash on DJGPP gets confused if
38445  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38446  # text mode, it properly converts lines to CR/LF.  This bash problem
38447  # is reportedly fixed, but why not run on old versions too?
38448  sed '$q' "$ltmain" >> "$cfgfile" \
38449     || (rm -f "$cfgfile"; exit 1)
38450
38451  if test x"$xsi_shell" = xyes; then
38452  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38453func_dirname ()\
38454{\
38455\    case ${1} in\
38456\      */*) func_dirname_result="${1%/*}${2}" ;;\
38457\      *  ) func_dirname_result="${3}" ;;\
38458\    esac\
38459} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38460  && mv -f "$cfgfile.tmp" "$cfgfile" \
38461    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38462test 0 -eq $? || _lt_function_replace_fail=:
38463
38464
38465  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38466func_basename ()\
38467{\
38468\    func_basename_result="${1##*/}"\
38469} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38470  && mv -f "$cfgfile.tmp" "$cfgfile" \
38471    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38472test 0 -eq $? || _lt_function_replace_fail=:
38473
38474
38475  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38476func_dirname_and_basename ()\
38477{\
38478\    case ${1} in\
38479\      */*) func_dirname_result="${1%/*}${2}" ;;\
38480\      *  ) func_dirname_result="${3}" ;;\
38481\    esac\
38482\    func_basename_result="${1##*/}"\
38483} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38484  && mv -f "$cfgfile.tmp" "$cfgfile" \
38485    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38486test 0 -eq $? || _lt_function_replace_fail=:
38487
38488
38489  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38490func_stripname ()\
38491{\
38492\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38493\    # positional parameters, so assign one to ordinary parameter first.\
38494\    func_stripname_result=${3}\
38495\    func_stripname_result=${func_stripname_result#"${1}"}\
38496\    func_stripname_result=${func_stripname_result%"${2}"}\
38497} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38498  && mv -f "$cfgfile.tmp" "$cfgfile" \
38499    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38500test 0 -eq $? || _lt_function_replace_fail=:
38501
38502
38503  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38504func_split_long_opt ()\
38505{\
38506\    func_split_long_opt_name=${1%%=*}\
38507\    func_split_long_opt_arg=${1#*=}\
38508} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38509  && mv -f "$cfgfile.tmp" "$cfgfile" \
38510    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38511test 0 -eq $? || _lt_function_replace_fail=:
38512
38513
38514  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38515func_split_short_opt ()\
38516{\
38517\    func_split_short_opt_arg=${1#??}\
38518\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38519} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38520  && mv -f "$cfgfile.tmp" "$cfgfile" \
38521    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38522test 0 -eq $? || _lt_function_replace_fail=:
38523
38524
38525  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38526func_lo2o ()\
38527{\
38528\    case ${1} in\
38529\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38530\      *)    func_lo2o_result=${1} ;;\
38531\    esac\
38532} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38533  && mv -f "$cfgfile.tmp" "$cfgfile" \
38534    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38535test 0 -eq $? || _lt_function_replace_fail=:
38536
38537
38538  sed -e '/^func_xform ()$/,/^} # func_xform /c\
38539func_xform ()\
38540{\
38541    func_xform_result=${1%.*}.lo\
38542} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38543  && mv -f "$cfgfile.tmp" "$cfgfile" \
38544    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38545test 0 -eq $? || _lt_function_replace_fail=:
38546
38547
38548  sed -e '/^func_arith ()$/,/^} # func_arith /c\
38549func_arith ()\
38550{\
38551    func_arith_result=$(( $* ))\
38552} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38553  && mv -f "$cfgfile.tmp" "$cfgfile" \
38554    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38555test 0 -eq $? || _lt_function_replace_fail=:
38556
38557
38558  sed -e '/^func_len ()$/,/^} # func_len /c\
38559func_len ()\
38560{\
38561    func_len_result=${#1}\
38562} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38563  && mv -f "$cfgfile.tmp" "$cfgfile" \
38564    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38565test 0 -eq $? || _lt_function_replace_fail=:
38566
38567fi
38568
38569if test x"$lt_shell_append" = xyes; then
38570  sed -e '/^func_append ()$/,/^} # func_append /c\
38571func_append ()\
38572{\
38573    eval "${1}+=\\${2}"\
38574} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38575  && mv -f "$cfgfile.tmp" "$cfgfile" \
38576    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38577test 0 -eq $? || _lt_function_replace_fail=:
38578
38579
38580  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38581func_append_quoted ()\
38582{\
38583\    func_quote_for_eval "${2}"\
38584\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38585} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38586  && mv -f "$cfgfile.tmp" "$cfgfile" \
38587    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38588test 0 -eq $? || _lt_function_replace_fail=:
38589
38590
38591  # Save a `func_append' function call where possible by direct use of '+='
38592  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38593    && mv -f "$cfgfile.tmp" "$cfgfile" \
38594      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38595  test 0 -eq $? || _lt_function_replace_fail=:
38596else
38597  # Save a `func_append' function call even when '+=' is not available
38598  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38599    && mv -f "$cfgfile.tmp" "$cfgfile" \
38600      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38601  test 0 -eq $? || _lt_function_replace_fail=:
38602fi
38603
38604if test x"$_lt_function_replace_fail" = x":"; then
38605  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38606$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38607fi
38608
38609
38610   mv -f "$cfgfile" "$ofile" ||
38611    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38612  chmod +x "$ofile"
38613
38614
38615    cat <<_LT_EOF >> "$ofile"
38616
38617# ### BEGIN LIBTOOL TAG CONFIG: CXX
38618
38619# The linker used to build libraries.
38620LD=$lt_LD_CXX
38621
38622# How to create reloadable object files.
38623reload_flag=$lt_reload_flag_CXX
38624reload_cmds=$lt_reload_cmds_CXX
38625
38626# Commands used to build an old-style archive.
38627old_archive_cmds=$lt_old_archive_cmds_CXX
38628
38629# A language specific compiler.
38630CC=$lt_compiler_CXX
38631
38632# Is the compiler the GNU compiler?
38633with_gcc=$GCC_CXX
38634
38635# Compiler flag to turn off builtin functions.
38636no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38637
38638# Additional compiler flags for building library objects.
38639pic_flag=$lt_lt_prog_compiler_pic_CXX
38640
38641# How to pass a linker flag through the compiler.
38642wl=$lt_lt_prog_compiler_wl_CXX
38643
38644# Compiler flag to prevent dynamic linking.
38645link_static_flag=$lt_lt_prog_compiler_static_CXX
38646
38647# Does compiler simultaneously support -c and -o options?
38648compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38649
38650# Whether or not to add -lc for building shared libraries.
38651build_libtool_need_lc=$archive_cmds_need_lc_CXX
38652
38653# Whether or not to disallow shared libs when runtime libs are static.
38654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38655
38656# Compiler flag to allow reflexive dlopens.
38657export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38658
38659# Compiler flag to generate shared objects directly from archives.
38660whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38661
38662# Whether the compiler copes with passing no objects directly.
38663compiler_needs_object=$lt_compiler_needs_object_CXX
38664
38665# Create an old-style archive from a shared archive.
38666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38667
38668# Create a temporary old-style archive to link instead of a shared archive.
38669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38670
38671# Commands used to build a shared archive.
38672archive_cmds=$lt_archive_cmds_CXX
38673archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38674
38675# Commands used to build a loadable module if different from building
38676# a shared archive.
38677module_cmds=$lt_module_cmds_CXX
38678module_expsym_cmds=$lt_module_expsym_cmds_CXX
38679
38680# Whether we are building with GNU ld or not.
38681with_gnu_ld=$lt_with_gnu_ld_CXX
38682
38683# Flag that allows shared libraries with undefined symbols to be built.
38684allow_undefined_flag=$lt_allow_undefined_flag_CXX
38685
38686# Flag that enforces no undefined symbols.
38687no_undefined_flag=$lt_no_undefined_flag_CXX
38688
38689# Flag to hardcode \$libdir into a binary during linking.
38690# This must work even if \$libdir does not exist
38691hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38692
38693# Whether we need a single "-rpath" flag with a separated argument.
38694hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38695
38696# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38697# DIR into the resulting binary.
38698hardcode_direct=$hardcode_direct_CXX
38699
38700# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38701# DIR into the resulting binary and the resulting library dependency is
38702# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38703# library is relocated.
38704hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38705
38706# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38707# into the resulting binary.
38708hardcode_minus_L=$hardcode_minus_L_CXX
38709
38710# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38711# into the resulting binary.
38712hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38713
38714# Set to "yes" if building a shared library automatically hardcodes DIR
38715# into the library and all subsequent libraries and executables linked
38716# against it.
38717hardcode_automatic=$hardcode_automatic_CXX
38718
38719# Set to yes if linker adds runtime paths of dependent libraries
38720# to runtime path list.
38721inherit_rpath=$inherit_rpath_CXX
38722
38723# Whether libtool must link a program against all its dependency libraries.
38724link_all_deplibs=$link_all_deplibs_CXX
38725
38726# Set to "yes" if exported symbols are required.
38727always_export_symbols=$always_export_symbols_CXX
38728
38729# The commands to list exported symbols.
38730export_symbols_cmds=$lt_export_symbols_cmds_CXX
38731
38732# Symbols that should not be listed in the preloaded symbols.
38733exclude_expsyms=$lt_exclude_expsyms_CXX
38734
38735# Symbols that must always be exported.
38736include_expsyms=$lt_include_expsyms_CXX
38737
38738# Commands necessary for linking programs (against libraries) with templates.
38739prelink_cmds=$lt_prelink_cmds_CXX
38740
38741# Commands necessary for finishing linking programs.
38742postlink_cmds=$lt_postlink_cmds_CXX
38743
38744# Specify filename containing input files.
38745file_list_spec=$lt_file_list_spec_CXX
38746
38747# How to hardcode a shared library path into an executable.
38748hardcode_action=$hardcode_action_CXX
38749
38750# The directories searched by this compiler when creating a shared library.
38751compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38752
38753# Dependencies to place before and after the objects being linked to
38754# create a shared library.
38755predep_objects=$lt_predep_objects_CXX
38756postdep_objects=$lt_postdep_objects_CXX
38757predeps=$lt_predeps_CXX
38758postdeps=$lt_postdeps_CXX
38759
38760# The library search path used internally by the compiler when linking
38761# a shared library.
38762compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38763
38764# ### END LIBTOOL TAG CONFIG: CXX
38765_LT_EOF
38766
38767 ;;
38768    "magick.sh.in":C) chmod +x magick.sh ;;
38769    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38770    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38771    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38772    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38773
38774  esac
38775done # for ac_tag
38776
38777
38778as_fn_exit 0
38779_ACEOF
38780ac_clean_files=$ac_clean_files_save
38781
38782test $ac_write_fail = 0 ||
38783  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38784
38785
38786# configure is writing to config.log, and then calls config.status.
38787# config.status does its own redirection, appending to config.log.
38788# Unfortunately, on DOS this fails, as config.log is still kept open
38789# by configure, so config.status won't be able to write to it; its
38790# output is simply discarded.  So we exec the FD to /dev/null,
38791# effectively closing config.log, so it can be properly (re)opened and
38792# appended to by config.status.  When coming back to configure, we
38793# need to make the FD available again.
38794if test "$no_create" != yes; then
38795  ac_cs_success=:
38796  ac_config_status_args=
38797  test "$silent" = yes &&
38798    ac_config_status_args="$ac_config_status_args --quiet"
38799  exec 5>/dev/null
38800  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38801  exec 5>>config.log
38802  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38803  # would make configure fail if this is the last instruction.
38804  $ac_cs_success || as_fn_exit 1
38805fi
38806if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38807  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38808$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38809fi
38810
38811
38812rm -f magick-version
38813
38814result_dejavu_font_dir='none'
38815if test "${dejavu_font_dir}x" != 'x'; then
38816    result_dejavu_font_dir=$dejavu_font_dir
38817fi
38818
38819result_ghostscript_font_dir='none'
38820if test "${ghostscript_font_dir}x" != 'x'; then
38821    result_ghostscript_font_dir=$ghostscript_font_dir
38822fi
38823
38824result_windows_font_dir='none'
38825if test "${windows_font_dir}x" != 'x'; then
38826    result_windows_font_dir=${windows_font_dir}
38827fi
38828
38829{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
38830ImageMagick is configured as follows. Please verify that this configuration
38831matches your expectations.
38832
38833Host system type: $host
38834Build system type: $build
38835
38836                  Option                        Value
38837-------------------------------------------------------------------------------
38838Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38839Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38840Module support    --with-modules=$build_modules		$build_modules
38841GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38842Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38843High Dynamic Range Imagery
38844                  --enable-hdri=$enable_hdri		$enable_hdri
38845
38846Delegate Configuration:
38847BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38848Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38849Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38850DJVU              --with-djvu=$with_djvu		$have_djvu
38851DPS               --with-dps=$with_dps		$have_dps
38852FFTW              --with-fftw=$with_fftw		$have_fftw
38853FlashPIX          --with-fpx=$with_fpx		$have_fpx
38854FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38855FreeType          --with-freetype=$with_freetype		$have_freetype
38856GhostPCL          None				$PCLDelegate ($PCLVersion)
38857GhostXPS          None				$XPSDelegate ($XPSVersion)
38858Ghostscript       None				$PSDelegate ($GSVersion)
38859Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38860Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38861Graphviz          --with-gvc=$with_gvc		$have_gvc
38862JBIG              --with-jbig=$with_jbig		$have_jbig
38863JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38864JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38865LCMS v1           --with-lcms=$with_lcms		$have_lcms
38866LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38867LQR               --with-lqr=$with_lqr		$have_lqr
38868LTDL              --with-ltdl=$with_ltdl		$have_ltdl
38869LZMA              --with-lzma=$with_lzma		$have_lzma
38870Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38871OpenEXR           --with-openexr=$with_openexr		$have_openexr
38872PANGO             --with-pango=$with_pango		$have_pango
38873PERL              --with-perl=$with_perl		$have_perl
38874PNG               --with-png=$with_png		$have_png
38875RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38876TIFF              --with-tiff=$with_tiff		$have_tiff
38877WEBP              --with-webp=$with_webp		$have_webp
38878Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38879WMF               --with-wmf=$with_wmf		$have_wmf
38880X11               --with-x=$with_x			$have_x
38881XML               --with-xml=$with_xml		$have_xml
38882ZLIB              --with-zlib=$with_zlib		$have_zlib
38883
38884X11 Configuration:
38885      X_CFLAGS        = $X_CFLAGS
38886      X_PRE_LIBS      = $X_PRE_LIBS
38887      X_LIBS          = $X_LIBS
38888      X_EXTRA_LIBS    = $X_EXTRA_LIBS
38889
38890Options used to compile and link:
38891  PREFIX          = $PREFIX_DIR
38892  EXEC-PREFIX     = $EXEC_PREFIX_DIR
38893  VERSION         = $PACKAGE_VERSION
38894  CC              = $CC
38895  CFLAGS          = $CFLAGS
38896  CPPFLAGS        = $MAGICK_CPPFLAGS
38897  PCFLAGS         = $MAGICK_PCFLAGS
38898  DEFS            = $DEFS
38899  LDFLAGS         = $LDFLAGS
38900  MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38901  LIBS            = $MAGICK_LIBS
38902  CXX             = $CXX
38903  CXXFLAGS        = $CXXFLAGS
38904  FEATURES        = $MAGICK_FEATURES
38905  DELEGATES       = $MAGICK_DELEGATES
38906" >&5
38907$as_echo "
38908ImageMagick is configured as follows. Please verify that this configuration
38909matches your expectations.
38910
38911Host system type: $host
38912Build system type: $build
38913
38914                  Option                        Value
38915-------------------------------------------------------------------------------
38916Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38917Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38918Module support    --with-modules=$build_modules		$build_modules
38919GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38920Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38921High Dynamic Range Imagery
38922                  --enable-hdri=$enable_hdri		$enable_hdri
38923
38924Delegate Configuration:
38925BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38926Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38927Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38928DJVU              --with-djvu=$with_djvu		$have_djvu
38929DPS               --with-dps=$with_dps		$have_dps
38930FFTW              --with-fftw=$with_fftw		$have_fftw
38931FlashPIX          --with-fpx=$with_fpx		$have_fpx
38932FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38933FreeType          --with-freetype=$with_freetype		$have_freetype
38934GhostPCL          None				$PCLDelegate ($PCLVersion)
38935GhostXPS          None				$XPSDelegate ($XPSVersion)
38936Ghostscript       None				$PSDelegate ($GSVersion)
38937Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38938Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38939Graphviz          --with-gvc=$with_gvc		$have_gvc
38940JBIG              --with-jbig=$with_jbig		$have_jbig
38941JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38942JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38943LCMS v1           --with-lcms=$with_lcms		$have_lcms
38944LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38945LQR               --with-lqr=$with_lqr		$have_lqr
38946LTDL              --with-ltdl=$with_ltdl		$have_ltdl
38947LZMA              --with-lzma=$with_lzma		$have_lzma
38948Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38949OpenEXR           --with-openexr=$with_openexr		$have_openexr
38950PANGO             --with-pango=$with_pango		$have_pango
38951PERL              --with-perl=$with_perl		$have_perl
38952PNG               --with-png=$with_png		$have_png
38953RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38954TIFF              --with-tiff=$with_tiff		$have_tiff
38955WEBP              --with-webp=$with_webp		$have_webp
38956Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38957WMF               --with-wmf=$with_wmf		$have_wmf
38958X11               --with-x=$with_x			$have_x
38959XML               --with-xml=$with_xml		$have_xml
38960ZLIB              --with-zlib=$with_zlib		$have_zlib
38961
38962X11 Configuration:
38963      X_CFLAGS        = $X_CFLAGS
38964      X_PRE_LIBS      = $X_PRE_LIBS
38965      X_LIBS          = $X_LIBS
38966      X_EXTRA_LIBS    = $X_EXTRA_LIBS
38967
38968Options used to compile and link:
38969  PREFIX          = $PREFIX_DIR
38970  EXEC-PREFIX     = $EXEC_PREFIX_DIR
38971  VERSION         = $PACKAGE_VERSION
38972  CC              = $CC
38973  CFLAGS          = $CFLAGS
38974  CPPFLAGS        = $MAGICK_CPPFLAGS
38975  PCFLAGS         = $MAGICK_PCFLAGS
38976  DEFS            = $DEFS
38977  LDFLAGS         = $LDFLAGS
38978  MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38979  LIBS            = $MAGICK_LIBS
38980  CXX             = $CXX
38981  CXXFLAGS        = $CXXFLAGS
38982  FEATURES        = $MAGICK_FEATURES
38983  DELEGATES       = $MAGICK_DELEGATES
38984" >&6; }
38985