configure revision 51dc74e45bee784cdbe8db6cd9cdf6dcd4c052d3
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
569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
573
574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
576
577# Name of the host.
578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
596PACKAGE_TARNAME='ImageMagick'
597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
599PACKAGE_BUGREPORT='http://www.imagemagick.org'
600PACKAGE_URL=''
601
602ac_unique_file="MagickCore/MagickCore.h"
603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618#  include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623#  include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
640ac_header_list=
641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
646MAGICK_FEATURES
647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
685ZIP
686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
688P7ZIP
689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
698dejavu_font_dir
699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
704UniconvertorDelegate
705TXTDelegate
706SVGDecodeDelegate
707SCANDecodeDelegate
708RSVGDecodeDelegate
709RMDelegate
710RLEEncodeDelegate
711PSDelegate
712POVDelegate
713PGPDecodeDelegate
714PCLDelegate
715MVDelegate
716MrSIDDecodeDelegate
717MPEGEncodeDelegate
718MPEGDecodeDelegate
719MANDelegate
720LaunchDelegate
721LPRDelegate
722LPDelegate
723ILBMEncodeDelegate
724ILBMDecodeDelegate
725HTMLDecodeDelegate
726HPGLDecodeDelegate
727GnuplotDecodeDelegate
728MogrifyDelegate
729DisplayDelegate
730ConvertDelegate
731FIGDecodeDelegate
732EditorDelegate
733EchoDelegate
734DVIDecodeDelegate
735GVCDecodeDelegate
736DNGDecodeDelegate
737CatDelegate
738CGMDecodeDelegate
739BrowseDelegate
740BZIPDelegate
741BlenderDecodeDelegate
742AutotraceDecodeDelegate
743SHAREARCH_PATH
744SHARE_PATH
745CONFIGURE_PATH
746DOCUMENTATION_PATH
747FILTER_PATH
748CODER_PATH
749LIBRARY_PATH
750EXECUTABLE_PATH
751INCLUDE_PATH
752PERLMAINCC
753XML_LIBS
754XML_DELEGATE_FALSE
755XML_DELEGATE_TRUE
756xml2_config
757WMF_LIBS_DEPS
758WMF_LIBS
759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
764TIFF_LIBS
765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
773RSVG_LIBS
774RSVG_CFLAGS
775PNG_LIBS
776PNG_DELEGATE_FALSE
777PNG_DELEGATE_TRUE
778PANGOCAIRO_DELEGATE_FALSE
779PANGOCAIRO_DELEGATE_TRUE
780PANGO_DELEGATE_FALSE
781PANGO_DELEGATE_TRUE
782PANGO_LIBS
783PANGO_CFLAGS
784OPENEXR_DELEGATE_FALSE
785OPENEXR_DELEGATE_TRUE
786OPENEXR_LIBS
787OPENEXR_CFLAGS
788LZMA_DELEGATE_FALSE
789LZMA_DELEGATE_TRUE
790LZMA_LIBS
791LZMA_CFLAGS
792LQR_DELEGATE_FALSE
793LQR_DELEGATE_TRUE
794LQR_LIBS
795LQR_CFLAGS
796LCMS_LIBS
797LCMS_DELEGATE_FALSE
798LCMS_DELEGATE_TRUE
799JP2_LIBS
800JP2_DELEGATE_FALSE
801JP2_DELEGATE_TRUE
802JPEG_LIBS
803JPEG_DELEGATE_FALSE
804JPEG_DELEGATE_TRUE
805JBIG_LIBS
806JBIG_DELEGATE_FALSE
807JBIG_DELEGATE_TRUE
808GVC_DELEGATE_FALSE
809GVC_DELEGATE_TRUE
810GVC_LIBS
811GVC_CFLAGS
812GS_LIBS
813GS_DELEGATE_FALSE
814GS_DELEGATE_TRUE
815FREETYPE_LIBS
816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
818freetype_config
819FONTCONFIG_DELEGATE_FALSE
820FONTCONFIG_DELEGATE_TRUE
821FONTCONFIG_LIBS
822FONTCONFIG_CFLAGS
823FPX_LIBS
824FPX_DELEGATE_FALSE
825FPX_DELEGATE_TRUE
826FFTW_LIBS
827FFTW_DELEGATE_FALSE
828FFTW_DELEGATE_TRUE
829DJVU_LIBS
830DJVU_DELEGATE_FALSE
831DJVU_DELEGATE_TRUE
832DPS_LIBS
833DPS_DELEGATE_FALSE
834DPS_DELEGATE_TRUE
835AUTOTRACE_DELEGATE_FALSE
836AUTOTRACE_DELEGATE_TRUE
837AUTOTRACE_LIBS
838AUTOTRACE_CFLAGS
839LIB_DL
840ZLIB_LIBS
841ZLIB_DELEGATE_FALSE
842ZLIB_DELEGATE_TRUE
843XEXT_LIBS
844X11_LIBS
845X11_DELEGATE_FALSE
846X11_DELEGATE_TRUE
847X_EXTRA_LIBS
848X_LIBS
849X_PRE_LIBS
850X_CFLAGS
851XMKMF
852BZLIB_LIBS
853BZLIB_DELEGATE_FALSE
854BZLIB_DELEGATE_TRUE
855CCMALLOCDelegate
856UMEM_LIBS
857HasUMEM_FALSE
858HasUMEM_TRUE
859THREAD_LIBS
860GOMP_LIBS
861WITH_MAGICK_PLUS_PLUS_FALSE
862WITH_MAGICK_PLUS_PLUS_TRUE
863OPENMP_CXXFLAGS
864MATH_LIBS
865POW_LIB
866LIBOBJS
867UINTPTR_F
868UINTPTR_T
869UINTMAX_F
870UINTMAX_T
871UINT64_F
872UINT64_T
873INT64_F
874INT64_T
875UINT32_F
876UINT32_T
877INT32_F
878INT32_T
879UINT16_T
880INT16_T
881UINT8_T
882INT8_T
883LIBRARY_EXTRA_CPPFLAGS
884MODULE_EXTRA_CPPFLAGS
885LIBSTDCLDFLAGS
886PERL_MAKE_OPTIONS
887QUANTUM_DEPTH
888LEGACY_SUPPORT_FALSE
889LEGACY_SUPPORT_TRUE
890MAINT
891MAINTAINER_MODE_FALSE
892MAINTAINER_MODE_TRUE
893MAGICK_HDRI
894DLLDFLAGS
895WITH_LTDL_FALSE
896WITH_LTDL_TRUE
897WITH_MODULES_FALSE
898WITH_MODULES_TRUE
899WITH_SHARED_LIBS_FALSE
900WITH_SHARED_LIBS_TRUE
901LTDLOPEN
902LT_CONFIG_H
903CONVENIENCE_LTDL_FALSE
904CONVENIENCE_LTDL_TRUE
905INSTALL_LTDL_FALSE
906INSTALL_LTDL_TRUE
907ARGZ_H
908sys_symbol_underscore
909LIBADD_DL
910LT_DLPREOPEN
911LIBADD_DLD_LINK
912LIBADD_SHL_LOAD
913LIBADD_DLOPEN
914LT_DLLOADERS
915INCLTDL
916LTDLINCL
917LTDLDEPS
918LIBLTDL
919LIBTOOL_DEPS
920CXXCPP
921OTOOL64
922OTOOL
923LIPO
924NMEDIT
925DSYMUTIL
926MANIFEST_TOOL
927RANLIB
928ac_ct_AR
929AR
930NM
931ac_ct_DUMPBIN
932DUMPBIN
933LIBTOOL
934OBJDUMP
935DLLTOOL
936AS
937LFS_CPPFLAGS
938CL_LIBS
939CL_CFLAGS
940OPENMP_CFLAGS
941PTHREAD_CFLAGS
942PTHREAD_LIBS
943PTHREAD_CC
944ax_pthread_config
945SHAREARCH_DIR
946INCLUDEARCH_DIR
947WinPathScript
948USING_CL_FALSE
949USING_CL_TRUE
950CYGWIN_BUILD_FALSE
951CYGWIN_BUILD_TRUE
952WIN32_NATIVE_BUILD_FALSE
953WIN32_NATIVE_BUILD_TRUE
954WINGDI32_DELEGATE_FALSE
955WINGDI32_DELEGATE_TRUE
956GDI32_LIBS
957PKG_CONFIG
958PRTDIAG
959LN_S
960LD
961FGREP
962SED
963am__fastdepCXX_FALSE
964am__fastdepCXX_TRUE
965CXXDEPMODE
966ac_ct_CXX
967CXXFLAGS
968CXX
969EGREP
970GREP
971CPP
972am__fastdepCC_FALSE
973am__fastdepCC_TRUE
974CCDEPMODE
975am__nodep
976AMDEPBACKSLASH
977AMDEP_FALSE
978AMDEP_TRUE
979am__quote
980am__include
981DEPDIR
982OBJEXT
983EXEEXT
984ac_ct_CC
985CPPFLAGS
986LDFLAGS
987CFLAGS
988CC
989DIRSEP
990MAGICK_FILTER_MODULE_PATH
991MAGICK_CONFIGURE_BUILD_PATH
992MAGICK_CONFIGURE_SRC_PATH
993MAGICK_CODER_MODULE_PATH
994MAN_DIR
995INFO_DIR
996PERSISTINCLUDE_DIR
997INCLUDE_DIR
998LIB_DIR
999LOCALSTATE_DIR
1000SHAREDSTATE_DIR
1001SYSCONF_DIR
1002DOC_DIR
1003DATA_DIR
1004LIBEXEC_DIR
1005SBIN_DIR
1006BIN_DIR
1007EXEC_PREFIX_DIR
1008PREFIX_DIR
1009CONFIG_STATUS_DEPENDENCIES
1010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
1013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
1015AM_DEFAULT_V
1016AM_V
1017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
1040PACKAGE_VERSION_ADDENDUM
1041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
1046PACKAGE_PERL_VERSION
1047MAGICK_SVN_REVISION
1048MAGICK_LIBRARY_VERSION_INFO
1049MAGICK_LIBRARY_CURRENT_MIN
1050MAGICK_LIBRARY_AGE
1051MAGICK_LIBRARY_REVISION
1052MAGICK_LIBRARY_CURRENT
1053MAGICK_TARGET_OS
1054MAGICK_TARGET_VENDOR
1055MAGICK_TARGET_CPU
1056target_os
1057target_vendor
1058target_cpu
1059target
1060host_os
1061host_vendor
1062host_cpu
1063host
1064build_os
1065build_vendor
1066build_cpu
1067build
1068CONFIGURE_ARGS
1069DISTCHECK_CONFIG_FLAGS
1070target_alias
1071host_alias
1072build_alias
1073LIBS
1074ECHO_T
1075ECHO_N
1076ECHO_C
1077DEFS
1078mandir
1079localedir
1080libdir
1081psdir
1082pdfdir
1083dvidir
1084htmldir
1085infodir
1086docdir
1087oldincludedir
1088includedir
1089localstatedir
1090sharedstatedir
1091sysconfdir
1092datadir
1093datarootdir
1094libexecdir
1095sbindir
1096bindir
1097program_transform_name
1098prefix
1099exec_prefix
1100PACKAGE_URL
1101PACKAGE_BUGREPORT
1102PACKAGE_STRING
1103PACKAGE_VERSION
1104PACKAGE_TARNAME
1105PACKAGE_NAME
1106PATH_SEPARATOR
1107SHELL'
1108ac_subst_files=''
1109ac_user_opts='
1110enable_option_checking
1111enable_silent_rules
1112enable_dependency_tracking
1113with_gnu_ld
1114with_dmalloc
1115with_gcc_arch
1116enable_bounds_checking
1117enable_osx_universal_binary
1118with_includearch_dir
1119with_sharearch_dir
1120with_threads
1121enable_openmp
1122enable_opencl
1123enable_largefile
1124enable_shared
1125enable_static
1126with_pic
1127enable_fast_install
1128with_sysroot
1129enable_libtool_lock
1130with_included_ltdl
1131with_ltdl_include
1132with_ltdl_lib
1133enable_ltdl_install
1134with_modules
1135enable_delegate_build
1136enable_deprecated
1137enable_installed
1138enable_cipher
1139enable_zero_configuration
1140enable_hdri
1141enable_assert
1142enable_maintainer_mode
1143enable_ccmalloc
1144enable_efence
1145enable_prof
1146enable_gprof
1147enable_gcov
1148with_method_prefix
1149enable_legacy_support
1150with_quantum_depth
1151with_cache
1152with_frozenpaths
1153with_magick_plus_plus
1154with_perl
1155with_perl_options
1156with_umem
1157with_libstdc
1158with_bzlib
1159with_x
1160with_zlib
1161with_autotrace
1162with_dps
1163with_djvu
1164with_dejavu_font_dir
1165with_fftw
1166with_fpx
1167with_fontconfig
1168with_freetype
1169with_gslib
1170with_fontpath
1171with_gs_font_dir
1172with_gvc
1173with_jbig
1174with_jpeg
1175with_jp2
1176with_lcms
1177with_lcms2
1178with_lqr
1179with_lzma
1180with_openexr
1181with_pango
1182with_png
1183with_rsvg
1184with_tiff
1185with_webp
1186with_windows_font_dir
1187with_wmf
1188with_xml
1189'
1190      ac_precious_vars='build_alias
1191host_alias
1192target_alias
1193CC
1194CFLAGS
1195LDFLAGS
1196LIBS
1197CPPFLAGS
1198CPP
1199CXX
1200CXXFLAGS
1201CCC
1202PKG_CONFIG
1203CXXCPP
1204XMKMF
1205AUTOTRACE_CFLAGS
1206AUTOTRACE_LIBS
1207FONTCONFIG_CFLAGS
1208FONTCONFIG_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-bounds-checking
1853                          enable run-time bounds-checking
1854  --enable-osx-universal-binary
1855                          build universal binary on OS X [[default=no]]
1856  --disable-openmp        do not use OpenMP
1857  --enable-opencl         enable OpenCL support
1858  --disable-largefile     omit support for large files
1859  --enable-shared[=PKGS]  build shared libraries [default=yes]
1860  --enable-static[=PKGS]  build static libraries [default=yes]
1861  --enable-fast-install[=PKGS]
1862                          optimize for fast installation [default=yes]
1863  --disable-libtool-lock  avoid locking (might break parallel builds)
1864  --enable-ltdl-install   install libltdl
1865  --enable-delegate-build look for delegate libraries in build directory
1866  --disable-deprecated    exclude deprecated methods in MagickCore and
1867                          MagickWand API's
1868  --disable-installed     Formally install ImageMagick under PREFIX
1869  --disable-cipher        disable enciphering and deciphering image pixels
1870  --enable-zero-configuration
1871                          enable self-contained, embeddable,
1872                          zero-configuration ImageMagick
1873  --disable-hdri          accurately represent the wide range of intensity
1874                          levels found in real scenes
1875  --disable-assert        disable assert() statements in build
1876  --enable-maintainer-mode
1877                          enable make rules and dependencies not useful (and
1878                          sometimes confusing) to the casual installer
1879  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1880  --enable-efence         enable 'efence' memory debug support
1881  --enable-prof           enable 'prof' profiling support
1882  --enable-gprof          enable 'gprof' profiling support
1883  --enable-gcov           enable 'gcov' profiling support
1884  --enable-legacy-support  install legacy command-line utilities (default disabled)
1885  --disable-assert        turn off assertions
1886
1887Optional Packages:
1888  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1889  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1890  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1891  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1892  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1893                          instead of guessing
1894  --includearch-dir=DIR   ARCH specific include directory
1895  --sharearch-dir=DIR     ARCH specific config directory
1896  --without-threads       disable threads support
1897  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1898                          both]
1899  --with-sysroot=DIR Search for dependent libraries within DIR
1900                        (or the compiler's sysroot if not specified).
1901  --with-included-ltdl    use the GNU ltdl sources included here
1902  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1903  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1904  --with-modules          enable building dynamically loadable modules
1905  --with-method-prefix=PREFIX
1906                          prefix MagickCore API methods
1907  --with-quantum-depth=DEPTH
1908                          number of bits in a pixel quantum (default 16)
1909  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1910                          memory)
1911  --with-frozenpaths      freeze delegate paths
1912  --without-magick-plus-plus
1913                          disable build/install of Magick++
1914  --with-perl             enable build/install of PerlMagick
1915  --with-perl-options=OPTIONS
1916                          options to pass on command-line when generating
1917                          PerlMagick build file
1918  --with-umem             enable umem memory allocation library support
1919  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1920  --without-bzlib         disable BZLIB support
1921  --with-x                use the X Window System
1922  --without-zlib          disable ZLIB support
1923  --with-autotrace        enable autotrace support
1924  --without-dps           disable Display Postscript support
1925  --without-djvu          disable DjVu support
1926  --with-dejavu-font-dir=DIR
1927                          DejaVu font directory
1928  --without-fftw          disable FFTW support
1929  --without-fpx           disable FlashPIX support
1930  --without-fontconfig    disable fontconfig support
1931  --without-freetype      disable Freetype support
1932  --without-gslib         enable Ghostscript library support
1933  --with-fontpath=DIR     prepend to default font search path
1934  --with-gs-font-dir=DIR  Ghostscript font directory
1935  --with-gvc              disable GVC support
1936  --without-jbig          disable JBIG support
1937  --without-jpeg          disable JPEG support
1938  --without-jp2           disable JPEG-2000 support
1939  --without-lcms          disable lcms (v1.1X) support
1940  --without-lcms2         disable lcms (v2.X) support
1941  --without-lqr           disable Liquid Rescale support
1942  --without-lzma          disable LZMA support
1943  --without-openexr       disable OpenEXR support
1944  --without-pango         disable PANGO support
1945  --without-png           disable PNG support
1946  --without-rsvg          enable RSVG support
1947  --without-tiff          disable TIFF support
1948  --without-webp          disable WEBP support
1949  --with-windows-font-dir=DIR
1950                          directory containing MS-Windows fonts
1951  --with-wmf              enable WMF support
1952  --without-xml           disable XML support
1953
1954Some influential environment variables:
1955  CC          C compiler command
1956  CFLAGS      C compiler flags
1957  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1958              nonstandard directory <lib dir>
1959  LIBS        libraries to pass to the linker, e.g. -l<library>
1960  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1961              you have headers in a nonstandard directory <include dir>
1962  CPP         C preprocessor
1963  CXX         C++ compiler command
1964  CXXFLAGS    C++ compiler flags
1965  PKG_CONFIG  path to pkg-config utility
1966  CXXCPP      C++ preprocessor
1967  XMKMF       Path to xmkmf, Makefile generator for X Window System
1968  AUTOTRACE_CFLAGS
1969              C compiler flags for AUTOTRACE, overriding pkg-config
1970  AUTOTRACE_LIBS
1971              linker flags for AUTOTRACE, overriding pkg-config
1972  FONTCONFIG_CFLAGS
1973              C compiler flags for FONTCONFIG, overriding pkg-config
1974  FONTCONFIG_LIBS
1975              linker flags for FONTCONFIG, overriding pkg-config
1976  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1977  GVC_LIBS    linker flags for GVC, overriding pkg-config
1978  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1979  LQR_LIBS    linker flags for LQR, overriding pkg-config
1980  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1981  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
1982  OPENEXR_CFLAGS
1983              C compiler flags for OPENEXR, overriding pkg-config
1984  OPENEXR_LIBS
1985              linker flags for OPENEXR, overriding pkg-config
1986  PANGO_CFLAGS
1987              C compiler flags for PANGO, overriding pkg-config
1988  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
1989  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1990  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1991  CAIRO_SVG_CFLAGS
1992              C compiler flags for CAIRO_SVG, overriding pkg-config
1993  CAIRO_SVG_LIBS
1994              linker flags for CAIRO_SVG, overriding pkg-config
1995
1996Use these variables to override the choices made by `configure' or to help
1997it to find libraries and programs with nonstandard names/locations.
1998
1999Report bugs to <http://www.imagemagick.org>.
2000_ACEOF
2001ac_status=$?
2002fi
2003
2004if test "$ac_init_help" = "recursive"; then
2005  # If there are subdirs, report their specific --help.
2006  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2007    test -d "$ac_dir" ||
2008      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2009      continue
2010    ac_builddir=.
2011
2012case "$ac_dir" in
2013.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2014*)
2015  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2016  # A ".." for each directory in $ac_dir_suffix.
2017  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2018  case $ac_top_builddir_sub in
2019  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2020  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2021  esac ;;
2022esac
2023ac_abs_top_builddir=$ac_pwd
2024ac_abs_builddir=$ac_pwd$ac_dir_suffix
2025# for backward compatibility:
2026ac_top_builddir=$ac_top_build_prefix
2027
2028case $srcdir in
2029  .)  # We are building in place.
2030    ac_srcdir=.
2031    ac_top_srcdir=$ac_top_builddir_sub
2032    ac_abs_top_srcdir=$ac_pwd ;;
2033  [\\/]* | ?:[\\/]* )  # Absolute name.
2034    ac_srcdir=$srcdir$ac_dir_suffix;
2035    ac_top_srcdir=$srcdir
2036    ac_abs_top_srcdir=$srcdir ;;
2037  *) # Relative name.
2038    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2039    ac_top_srcdir=$ac_top_build_prefix$srcdir
2040    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2041esac
2042ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2043
2044    cd "$ac_dir" || { ac_status=$?; continue; }
2045    # Check for guested configure.
2046    if test -f "$ac_srcdir/configure.gnu"; then
2047      echo &&
2048      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2049    elif test -f "$ac_srcdir/configure"; then
2050      echo &&
2051      $SHELL "$ac_srcdir/configure" --help=recursive
2052    else
2053      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2054    fi || ac_status=$?
2055    cd "$ac_pwd" || { ac_status=$?; break; }
2056  done
2057fi
2058
2059test -n "$ac_init_help" && exit $ac_status
2060if $ac_init_version; then
2061  cat <<\_ACEOF
2062ImageMagick configure 7.0.0-0
2063generated by GNU Autoconf 2.69
2064
2065Copyright (C) 2012 Free Software Foundation, Inc.
2066This configure script is free software; the Free Software Foundation
2067gives unlimited permission to copy, distribute and modify it.
2068_ACEOF
2069  exit
2070fi
2071
2072## ------------------------ ##
2073## Autoconf initialization. ##
2074## ------------------------ ##
2075
2076# ac_fn_c_try_compile LINENO
2077# --------------------------
2078# Try to compile conftest.$ac_ext, and return whether this succeeded.
2079ac_fn_c_try_compile ()
2080{
2081  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082  rm -f conftest.$ac_objext
2083  if { { ac_try="$ac_compile"
2084case "(($ac_try" in
2085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086  *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089$as_echo "$ac_try_echo"; } >&5
2090  (eval "$ac_compile") 2>conftest.err
2091  ac_status=$?
2092  if test -s conftest.err; then
2093    grep -v '^ *+' conftest.err >conftest.er1
2094    cat conftest.er1 >&5
2095    mv -f conftest.er1 conftest.err
2096  fi
2097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098  test $ac_status = 0; } && {
2099	 test -z "$ac_c_werror_flag" ||
2100	 test ! -s conftest.err
2101       } && test -s conftest.$ac_objext; then :
2102  ac_retval=0
2103else
2104  $as_echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107	ac_retval=1
2108fi
2109  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110  as_fn_set_status $ac_retval
2111
2112} # ac_fn_c_try_compile
2113
2114# ac_fn_c_try_cpp LINENO
2115# ----------------------
2116# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2117ac_fn_c_try_cpp ()
2118{
2119  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120  if { { ac_try="$ac_cpp conftest.$ac_ext"
2121case "(($ac_try" in
2122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123  *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2128  ac_status=$?
2129  if test -s conftest.err; then
2130    grep -v '^ *+' conftest.err >conftest.er1
2131    cat conftest.er1 >&5
2132    mv -f conftest.er1 conftest.err
2133  fi
2134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135  test $ac_status = 0; } > conftest.i && {
2136	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2137	 test ! -s conftest.err
2138       }; then :
2139  ac_retval=0
2140else
2141  $as_echo "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144    ac_retval=1
2145fi
2146  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147  as_fn_set_status $ac_retval
2148
2149} # ac_fn_c_try_cpp
2150
2151# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2152# -------------------------------------------------------
2153# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2154# the include files in INCLUDES and setting the cache variable VAR
2155# accordingly.
2156ac_fn_c_check_header_mongrel ()
2157{
2158  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159  if eval \${$3+:} false; then :
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
2162if eval \${$3+:} false; then :
2163  $as_echo_n "(cached) " >&6
2164fi
2165eval ac_res=\$$3
2166	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168else
2169  # Is the header compilable?
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2171$as_echo_n "checking $2 usability... " >&6; }
2172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174$4
2175#include <$2>
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178  ac_header_compiler=yes
2179else
2180  ac_header_compiler=no
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2184$as_echo "$ac_header_compiler" >&6; }
2185
2186# Is the header present?
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2188$as_echo_n "checking $2 presence... " >&6; }
2189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191#include <$2>
2192_ACEOF
2193if ac_fn_c_try_cpp "$LINENO"; then :
2194  ac_header_preproc=yes
2195else
2196  ac_header_preproc=no
2197fi
2198rm -f conftest.err conftest.i conftest.$ac_ext
2199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2200$as_echo "$ac_header_preproc" >&6; }
2201
2202# So?  What about this header?
2203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2204  yes:no: )
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2206$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2207    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209    ;;
2210  no:yes:* )
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2212$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2214$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2215    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2216$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2217    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2218$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2220$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2221( $as_echo "## ----------------------------------------- ##
2222## Report this to http://www.imagemagick.org ##
2223## ----------------------------------------- ##"
2224     ) | sed "s/^/$as_me: WARNING:     /" >&2
2225    ;;
2226esac
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228$as_echo_n "checking for $2... " >&6; }
2229if eval \${$3+:} false; then :
2230  $as_echo_n "(cached) " >&6
2231else
2232  eval "$3=\$ac_header_compiler"
2233fi
2234eval ac_res=\$$3
2235	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236$as_echo "$ac_res" >&6; }
2237fi
2238  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239
2240} # ac_fn_c_check_header_mongrel
2241
2242# ac_fn_c_try_run LINENO
2243# ----------------------
2244# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245# that executables *can* be run.
2246ac_fn_c_try_run ()
2247{
2248  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249  if { { ac_try="$ac_link"
2250case "(($ac_try" in
2251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252  *) ac_try_echo=$ac_try;;
2253esac
2254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255$as_echo "$ac_try_echo"; } >&5
2256  (eval "$ac_link") 2>&5
2257  ac_status=$?
2258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260  { { case "(($ac_try" in
2261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262  *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266  (eval "$ac_try") 2>&5
2267  ac_status=$?
2268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269  test $ac_status = 0; }; }; then :
2270  ac_retval=0
2271else
2272  $as_echo "$as_me: program exited with status $ac_status" >&5
2273       $as_echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276       ac_retval=$ac_status
2277fi
2278  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280  as_fn_set_status $ac_retval
2281
2282} # ac_fn_c_try_run
2283
2284# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2285# -------------------------------------------------------
2286# Tests whether HEADER exists and can be compiled using the include files in
2287# INCLUDES, setting the cache variable VAR accordingly.
2288ac_fn_c_check_header_compile ()
2289{
2290  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292$as_echo_n "checking for $2... " >&6; }
2293if eval \${$3+:} false; then :
2294  $as_echo_n "(cached) " >&6
2295else
2296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h.  */
2298$4
2299#include <$2>
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302  eval "$3=yes"
2303else
2304  eval "$3=no"
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307fi
2308eval ac_res=\$$3
2309	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310$as_echo "$ac_res" >&6; }
2311  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313} # ac_fn_c_check_header_compile
2314
2315# ac_fn_cxx_try_compile LINENO
2316# ----------------------------
2317# Try to compile conftest.$ac_ext, and return whether this succeeded.
2318ac_fn_cxx_try_compile ()
2319{
2320  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321  rm -f conftest.$ac_objext
2322  if { { ac_try="$ac_compile"
2323case "(($ac_try" in
2324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325  *) ac_try_echo=$ac_try;;
2326esac
2327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328$as_echo "$ac_try_echo"; } >&5
2329  (eval "$ac_compile") 2>conftest.err
2330  ac_status=$?
2331  if test -s conftest.err; then
2332    grep -v '^ *+' conftest.err >conftest.er1
2333    cat conftest.er1 >&5
2334    mv -f conftest.er1 conftest.err
2335  fi
2336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337  test $ac_status = 0; } && {
2338	 test -z "$ac_cxx_werror_flag" ||
2339	 test ! -s conftest.err
2340       } && test -s conftest.$ac_objext; then :
2341  ac_retval=0
2342else
2343  $as_echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346	ac_retval=1
2347fi
2348  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349  as_fn_set_status $ac_retval
2350
2351} # ac_fn_cxx_try_compile
2352
2353# ac_fn_c_try_link LINENO
2354# -----------------------
2355# Try to link conftest.$ac_ext, and return whether this succeeded.
2356ac_fn_c_try_link ()
2357{
2358  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359  rm -f conftest.$ac_objext conftest$ac_exeext
2360  if { { ac_try="$ac_link"
2361case "(($ac_try" in
2362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363  *) ac_try_echo=$ac_try;;
2364esac
2365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366$as_echo "$ac_try_echo"; } >&5
2367  (eval "$ac_link") 2>conftest.err
2368  ac_status=$?
2369  if test -s conftest.err; then
2370    grep -v '^ *+' conftest.err >conftest.er1
2371    cat conftest.er1 >&5
2372    mv -f conftest.er1 conftest.err
2373  fi
2374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375  test $ac_status = 0; } && {
2376	 test -z "$ac_c_werror_flag" ||
2377	 test ! -s conftest.err
2378       } && test -s conftest$ac_exeext && {
2379	 test "$cross_compiling" = yes ||
2380	 test -x conftest$ac_exeext
2381       }; then :
2382  ac_retval=0
2383else
2384  $as_echo "$as_me: failed program was:" >&5
2385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387	ac_retval=1
2388fi
2389  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2390  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2391  # interfere with the next link command; also delete a directory that is
2392  # left behind by Apple's compiler.  We do this before executing the actions.
2393  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2394  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395  as_fn_set_status $ac_retval
2396
2397} # ac_fn_c_try_link
2398
2399# ac_fn_c_check_func LINENO FUNC VAR
2400# ----------------------------------
2401# Tests whether FUNC exists, setting the cache variable VAR accordingly
2402ac_fn_c_check_func ()
2403{
2404  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406$as_echo_n "checking for $2... " >&6; }
2407if eval \${$3+:} false; then :
2408  $as_echo_n "(cached) " >&6
2409else
2410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2413   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2414#define $2 innocuous_$2
2415
2416/* System header to define __stub macros and hopefully few prototypes,
2417    which can conflict with char $2 (); below.
2418    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2419    <limits.h> exists even on freestanding compilers.  */
2420
2421#ifdef __STDC__
2422# include <limits.h>
2423#else
2424# include <assert.h>
2425#endif
2426
2427#undef $2
2428
2429/* Override any GCC internal prototype to avoid an error.
2430   Use char because int might match the return type of a GCC
2431   builtin and then its argument prototype would still apply.  */
2432#ifdef __cplusplus
2433extern "C"
2434#endif
2435char $2 ();
2436/* The GNU C library defines this for functions which it implements
2437    to always fail with ENOSYS.  Some functions are actually named
2438    something starting with __ and the normal name is an alias.  */
2439#if defined __stub_$2 || defined __stub___$2
2440choke me
2441#endif
2442
2443int
2444main ()
2445{
2446return $2 ();
2447  ;
2448  return 0;
2449}
2450_ACEOF
2451if ac_fn_c_try_link "$LINENO"; then :
2452  eval "$3=yes"
2453else
2454  eval "$3=no"
2455fi
2456rm -f core conftest.err conftest.$ac_objext \
2457    conftest$ac_exeext conftest.$ac_ext
2458fi
2459eval ac_res=\$$3
2460	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461$as_echo "$ac_res" >&6; }
2462  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463
2464} # ac_fn_c_check_func
2465
2466# ac_fn_cxx_try_cpp LINENO
2467# ------------------------
2468# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2469ac_fn_cxx_try_cpp ()
2470{
2471  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472  if { { ac_try="$ac_cpp conftest.$ac_ext"
2473case "(($ac_try" in
2474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475  *) ac_try_echo=$ac_try;;
2476esac
2477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478$as_echo "$ac_try_echo"; } >&5
2479  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2480  ac_status=$?
2481  if test -s conftest.err; then
2482    grep -v '^ *+' conftest.err >conftest.er1
2483    cat conftest.er1 >&5
2484    mv -f conftest.er1 conftest.err
2485  fi
2486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487  test $ac_status = 0; } > conftest.i && {
2488	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2489	 test ! -s conftest.err
2490       }; then :
2491  ac_retval=0
2492else
2493  $as_echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496    ac_retval=1
2497fi
2498  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499  as_fn_set_status $ac_retval
2500
2501} # ac_fn_cxx_try_cpp
2502
2503# ac_fn_cxx_try_link LINENO
2504# -------------------------
2505# Try to link conftest.$ac_ext, and return whether this succeeded.
2506ac_fn_cxx_try_link ()
2507{
2508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509  rm -f conftest.$ac_objext conftest$ac_exeext
2510  if { { ac_try="$ac_link"
2511case "(($ac_try" in
2512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513  *) ac_try_echo=$ac_try;;
2514esac
2515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516$as_echo "$ac_try_echo"; } >&5
2517  (eval "$ac_link") 2>conftest.err
2518  ac_status=$?
2519  if test -s conftest.err; then
2520    grep -v '^ *+' conftest.err >conftest.er1
2521    cat conftest.er1 >&5
2522    mv -f conftest.er1 conftest.err
2523  fi
2524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2525  test $ac_status = 0; } && {
2526	 test -z "$ac_cxx_werror_flag" ||
2527	 test ! -s conftest.err
2528       } && test -s conftest$ac_exeext && {
2529	 test "$cross_compiling" = yes ||
2530	 test -x conftest$ac_exeext
2531       }; then :
2532  ac_retval=0
2533else
2534  $as_echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537	ac_retval=1
2538fi
2539  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2540  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2541  # interfere with the next link command; also delete a directory that is
2542  # left behind by Apple's compiler.  We do this before executing the actions.
2543  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2544  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545  as_fn_set_status $ac_retval
2546
2547} # ac_fn_cxx_try_link
2548
2549# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2550# ---------------------------------------------
2551# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2552# accordingly.
2553ac_fn_c_check_decl ()
2554{
2555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556  as_decl_name=`echo $2|sed 's/ *(.*//'`
2557  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2559$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2560if eval \${$3+:} false; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h.  */
2565$4
2566int
2567main ()
2568{
2569#ifndef $as_decl_name
2570#ifdef __cplusplus
2571  (void) $as_decl_use;
2572#else
2573  (void) $as_decl_name;
2574#endif
2575#endif
2576
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"; then :
2582  eval "$3=yes"
2583else
2584  eval "$3=no"
2585fi
2586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587fi
2588eval ac_res=\$$3
2589	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590$as_echo "$ac_res" >&6; }
2591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592
2593} # ac_fn_c_check_decl
2594
2595# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2596# -------------------------------------------
2597# Tests whether TYPE exists after having included INCLUDES, setting cache
2598# variable VAR accordingly.
2599ac_fn_c_check_type ()
2600{
2601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603$as_echo_n "checking for $2... " >&6; }
2604if eval \${$3+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  eval "$3=no"
2608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h.  */
2610$4
2611int
2612main ()
2613{
2614if (sizeof ($2))
2615	 return 0;
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_compile "$LINENO"; then :
2621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622/* end confdefs.h.  */
2623$4
2624int
2625main ()
2626{
2627if (sizeof (($2)))
2628	    return 0;
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634
2635else
2636  eval "$3=yes"
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642eval ac_res=\$$3
2643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644$as_echo "$ac_res" >&6; }
2645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646
2647} # ac_fn_c_check_type
2648
2649# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2650# ----------------------------------------------------
2651# Tries to find if the field MEMBER exists in type AGGR, after including
2652# INCLUDES, setting cache variable VAR accordingly.
2653ac_fn_c_check_member ()
2654{
2655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2657$as_echo_n "checking for $2.$3... " >&6; }
2658if eval \${$4+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h.  */
2663$5
2664int
2665main ()
2666{
2667static $2 ac_aggr;
2668if (ac_aggr.$3)
2669return 0;
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675  eval "$4=yes"
2676else
2677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h.  */
2679$5
2680int
2681main ()
2682{
2683static $2 ac_aggr;
2684if (sizeof ac_aggr.$3)
2685return 0;
2686  ;
2687  return 0;
2688}
2689_ACEOF
2690if ac_fn_c_try_compile "$LINENO"; then :
2691  eval "$4=yes"
2692else
2693  eval "$4=no"
2694fi
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698fi
2699eval ac_res=\$$4
2700	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701$as_echo "$ac_res" >&6; }
2702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2703
2704} # ac_fn_c_check_member
2705
2706# ac_fn_c_find_intX_t LINENO BITS VAR
2707# -----------------------------------
2708# Finds a signed integer type with width BITS, setting cache variable VAR
2709# accordingly.
2710ac_fn_c_find_intX_t ()
2711{
2712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2714$as_echo_n "checking for int$2_t... " >&6; }
2715if eval \${$3+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  eval "$3=no"
2719     # Order is important - never check a type that is potentially smaller
2720     # than half of the expected target width.
2721     for ac_type in int$2_t 'int' 'long int' \
2722	 'long long int' 'short int' 'signed char'; do
2723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h.  */
2725$ac_includes_default
2726	     enum { N = $2 / 2 - 1 };
2727int
2728main ()
2729{
2730static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2731test_array [0] = 0;
2732return test_array [0];
2733
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738if ac_fn_c_try_compile "$LINENO"; then :
2739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h.  */
2741$ac_includes_default
2742	        enum { N = $2 / 2 - 1 };
2743int
2744main ()
2745{
2746static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2747		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2748test_array [0] = 0;
2749return test_array [0];
2750
2751  ;
2752  return 0;
2753}
2754_ACEOF
2755if ac_fn_c_try_compile "$LINENO"; then :
2756
2757else
2758  case $ac_type in #(
2759  int$2_t) :
2760    eval "$3=yes" ;; #(
2761  *) :
2762    eval "$3=\$ac_type" ;;
2763esac
2764fi
2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766fi
2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768       if eval test \"x\$"$3"\" = x"no"; then :
2769
2770else
2771  break
2772fi
2773     done
2774fi
2775eval ac_res=\$$3
2776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2777$as_echo "$ac_res" >&6; }
2778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2779
2780} # ac_fn_c_find_intX_t
2781
2782# ac_fn_c_find_uintX_t LINENO BITS VAR
2783# ------------------------------------
2784# Finds an unsigned integer type with width BITS, setting cache variable VAR
2785# accordingly.
2786ac_fn_c_find_uintX_t ()
2787{
2788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2790$as_echo_n "checking for uint$2_t... " >&6; }
2791if eval \${$3+:} false; then :
2792  $as_echo_n "(cached) " >&6
2793else
2794  eval "$3=no"
2795     # Order is important - never check a type that is potentially smaller
2796     # than half of the expected target width.
2797     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2798	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2799       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800/* end confdefs.h.  */
2801$ac_includes_default
2802int
2803main ()
2804{
2805static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2806test_array [0] = 0;
2807return test_array [0];
2808
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814  case $ac_type in #(
2815  uint$2_t) :
2816    eval "$3=yes" ;; #(
2817  *) :
2818    eval "$3=\$ac_type" ;;
2819esac
2820fi
2821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822       if eval test \"x\$"$3"\" = x"no"; then :
2823
2824else
2825  break
2826fi
2827     done
2828fi
2829eval ac_res=\$$3
2830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2831$as_echo "$ac_res" >&6; }
2832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2833
2834} # ac_fn_c_find_uintX_t
2835
2836# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2837# --------------------------------------------
2838# Tries to find the compile-time value of EXPR in a program that includes
2839# INCLUDES, setting VAR accordingly. Returns whether the value could be
2840# computed
2841ac_fn_c_compute_int ()
2842{
2843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844  if test "$cross_compiling" = yes; then
2845    # Depending upon the size, compute the lo and hi bounds.
2846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h.  */
2848$4
2849int
2850main ()
2851{
2852static int test_array [1 - 2 * !(($2) >= 0)];
2853test_array [0] = 0;
2854return test_array [0];
2855
2856  ;
2857  return 0;
2858}
2859_ACEOF
2860if ac_fn_c_try_compile "$LINENO"; then :
2861  ac_lo=0 ac_mid=0
2862  while :; do
2863    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h.  */
2865$4
2866int
2867main ()
2868{
2869static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2870test_array [0] = 0;
2871return test_array [0];
2872
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877if ac_fn_c_try_compile "$LINENO"; then :
2878  ac_hi=$ac_mid; break
2879else
2880  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2881			if test $ac_lo -le $ac_mid; then
2882			  ac_lo= ac_hi=
2883			  break
2884			fi
2885			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2886fi
2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888  done
2889else
2890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891/* end confdefs.h.  */
2892$4
2893int
2894main ()
2895{
2896static int test_array [1 - 2 * !(($2) < 0)];
2897test_array [0] = 0;
2898return test_array [0];
2899
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_compile "$LINENO"; then :
2905  ac_hi=-1 ac_mid=-1
2906  while :; do
2907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h.  */
2909$4
2910int
2911main ()
2912{
2913static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2914test_array [0] = 0;
2915return test_array [0];
2916
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921if ac_fn_c_try_compile "$LINENO"; then :
2922  ac_lo=$ac_mid; break
2923else
2924  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2925			if test $ac_mid -le $ac_hi; then
2926			  ac_lo= ac_hi=
2927			  break
2928			fi
2929			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2930fi
2931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932  done
2933else
2934  ac_lo= ac_hi=
2935fi
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937fi
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939# Binary search between lo and hi bounds.
2940while test "x$ac_lo" != "x$ac_hi"; do
2941  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h.  */
2944$4
2945int
2946main ()
2947{
2948static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2949test_array [0] = 0;
2950return test_array [0];
2951
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957  ac_hi=$ac_mid
2958else
2959  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2960fi
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962done
2963case $ac_lo in #((
2964?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2965'') ac_retval=1 ;;
2966esac
2967  else
2968    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h.  */
2970$4
2971static long int longval () { return $2; }
2972static unsigned long int ulongval () { return $2; }
2973#include <stdio.h>
2974#include <stdlib.h>
2975int
2976main ()
2977{
2978
2979  FILE *f = fopen ("conftest.val", "w");
2980  if (! f)
2981    return 1;
2982  if (($2) < 0)
2983    {
2984      long int i = longval ();
2985      if (i != ($2))
2986	return 1;
2987      fprintf (f, "%ld", i);
2988    }
2989  else
2990    {
2991      unsigned long int i = ulongval ();
2992      if (i != ($2))
2993	return 1;
2994      fprintf (f, "%lu", i);
2995    }
2996  /* Do not output a trailing newline, as this causes \r\n confusion
2997     on some platforms.  */
2998  return ferror (f) || fclose (f) != 0;
2999
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004if ac_fn_c_try_run "$LINENO"; then :
3005  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3006else
3007  ac_retval=1
3008fi
3009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3010  conftest.$ac_objext conftest.beam conftest.$ac_ext
3011rm -f conftest.val
3012
3013  fi
3014  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3015  as_fn_set_status $ac_retval
3016
3017} # ac_fn_c_compute_int
3018
3019# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3020# ---------------------------------------------------------
3021# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3022# the include files in INCLUDES and setting the cache variable VAR
3023# accordingly.
3024ac_fn_cxx_check_header_mongrel ()
3025{
3026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3027  if eval \${$3+:} false; then :
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3029$as_echo_n "checking for $2... " >&6; }
3030if eval \${$3+:} false; then :
3031  $as_echo_n "(cached) " >&6
3032fi
3033eval ac_res=\$$3
3034	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3035$as_echo "$ac_res" >&6; }
3036else
3037  # Is the header compilable?
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3039$as_echo_n "checking $2 usability... " >&6; }
3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h.  */
3042$4
3043#include <$2>
3044_ACEOF
3045if ac_fn_cxx_try_compile "$LINENO"; then :
3046  ac_header_compiler=yes
3047else
3048  ac_header_compiler=no
3049fi
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3052$as_echo "$ac_header_compiler" >&6; }
3053
3054# Is the header present?
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3056$as_echo_n "checking $2 presence... " >&6; }
3057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059#include <$2>
3060_ACEOF
3061if ac_fn_cxx_try_cpp "$LINENO"; then :
3062  ac_header_preproc=yes
3063else
3064  ac_header_preproc=no
3065fi
3066rm -f conftest.err conftest.i conftest.$ac_ext
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3068$as_echo "$ac_header_preproc" >&6; }
3069
3070# So?  What about this header?
3071case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3072  yes:no: )
3073    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3074$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3076$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3077    ;;
3078  no:yes:* )
3079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3080$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3082$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3083    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3084$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3085    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3086$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3087    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3088$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3089( $as_echo "## ----------------------------------------- ##
3090## Report this to http://www.imagemagick.org ##
3091## ----------------------------------------- ##"
3092     ) | sed "s/^/$as_me: WARNING:     /" >&2
3093    ;;
3094esac
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3096$as_echo_n "checking for $2... " >&6; }
3097if eval \${$3+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  eval "$3=\$ac_header_compiler"
3101fi
3102eval ac_res=\$$3
3103	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3104$as_echo "$ac_res" >&6; }
3105fi
3106  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3107
3108} # ac_fn_cxx_check_header_mongrel
3109cat >config.log <<_ACEOF
3110This file contains any messages produced by compilers while
3111running configure, to aid debugging if configure makes a mistake.
3112
3113It was created by ImageMagick $as_me 7.0.0-0, which was
3114generated by GNU Autoconf 2.69.  Invocation command line was
3115
3116  $ $0 $@
3117
3118_ACEOF
3119exec 5>>config.log
3120{
3121cat <<_ASUNAME
3122## --------- ##
3123## Platform. ##
3124## --------- ##
3125
3126hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3127uname -m = `(uname -m) 2>/dev/null || echo unknown`
3128uname -r = `(uname -r) 2>/dev/null || echo unknown`
3129uname -s = `(uname -s) 2>/dev/null || echo unknown`
3130uname -v = `(uname -v) 2>/dev/null || echo unknown`
3131
3132/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3133/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3134
3135/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3136/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3137/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3138/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3139/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3140/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3141/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3142
3143_ASUNAME
3144
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    $as_echo "PATH: $as_dir"
3151  done
3152IFS=$as_save_IFS
3153
3154} >&5
3155
3156cat >&5 <<_ACEOF
3157
3158
3159## ----------- ##
3160## Core tests. ##
3161## ----------- ##
3162
3163_ACEOF
3164
3165
3166# Keep a trace of the command line.
3167# Strip out --no-create and --no-recursion so they do not pile up.
3168# Strip out --silent because we don't want to record it for future runs.
3169# Also quote any args containing shell meta-characters.
3170# Make two passes to allow for proper duplicate-argument suppression.
3171ac_configure_args=
3172ac_configure_args0=
3173ac_configure_args1=
3174ac_must_keep_next=false
3175for ac_pass in 1 2
3176do
3177  for ac_arg
3178  do
3179    case $ac_arg in
3180    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3181    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3182    | -silent | --silent | --silen | --sile | --sil)
3183      continue ;;
3184    *\'*)
3185      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3186    esac
3187    case $ac_pass in
3188    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3189    2)
3190      as_fn_append ac_configure_args1 " '$ac_arg'"
3191      if test $ac_must_keep_next = true; then
3192	ac_must_keep_next=false # Got value, back to normal.
3193      else
3194	case $ac_arg in
3195	  *=* | --config-cache | -C | -disable-* | --disable-* \
3196	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3197	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3198	  | -with-* | --with-* | -without-* | --without-* | --x)
3199	    case "$ac_configure_args0 " in
3200	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3201	    esac
3202	    ;;
3203	  -* ) ac_must_keep_next=true ;;
3204	esac
3205      fi
3206      as_fn_append ac_configure_args " '$ac_arg'"
3207      ;;
3208    esac
3209  done
3210done
3211{ ac_configure_args0=; unset ac_configure_args0;}
3212{ ac_configure_args1=; unset ac_configure_args1;}
3213
3214# When interrupted or exit'd, cleanup temporary files, and complete
3215# config.log.  We remove comments because anyway the quotes in there
3216# would cause problems or look ugly.
3217# WARNING: Use '\'' to represent an apostrophe within the trap.
3218# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3219trap 'exit_status=$?
3220  # Save into config.log some information that might help in debugging.
3221  {
3222    echo
3223
3224    $as_echo "## ---------------- ##
3225## Cache variables. ##
3226## ---------------- ##"
3227    echo
3228    # The following way of writing the cache mishandles newlines in values,
3229(
3230  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3231    eval ac_val=\$$ac_var
3232    case $ac_val in #(
3233    *${as_nl}*)
3234      case $ac_var in #(
3235      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3236$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3237      esac
3238      case $ac_var in #(
3239      _ | IFS | as_nl) ;; #(
3240      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3241      *) { eval $ac_var=; unset $ac_var;} ;;
3242      esac ;;
3243    esac
3244  done
3245  (set) 2>&1 |
3246    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3247    *${as_nl}ac_space=\ *)
3248      sed -n \
3249	"s/'\''/'\''\\\\'\'''\''/g;
3250	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3251      ;; #(
3252    *)
3253      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3254      ;;
3255    esac |
3256    sort
3257)
3258    echo
3259
3260    $as_echo "## ----------------- ##
3261## Output variables. ##
3262## ----------------- ##"
3263    echo
3264    for ac_var in $ac_subst_vars
3265    do
3266      eval ac_val=\$$ac_var
3267      case $ac_val in
3268      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3269      esac
3270      $as_echo "$ac_var='\''$ac_val'\''"
3271    done | sort
3272    echo
3273
3274    if test -n "$ac_subst_files"; then
3275      $as_echo "## ------------------- ##
3276## File substitutions. ##
3277## ------------------- ##"
3278      echo
3279      for ac_var in $ac_subst_files
3280      do
3281	eval ac_val=\$$ac_var
3282	case $ac_val in
3283	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3284	esac
3285	$as_echo "$ac_var='\''$ac_val'\''"
3286      done | sort
3287      echo
3288    fi
3289
3290    if test -s confdefs.h; then
3291      $as_echo "## ----------- ##
3292## confdefs.h. ##
3293## ----------- ##"
3294      echo
3295      cat confdefs.h
3296      echo
3297    fi
3298    test "$ac_signal" != 0 &&
3299      $as_echo "$as_me: caught signal $ac_signal"
3300    $as_echo "$as_me: exit $exit_status"
3301  } >&5
3302  rm -f core *.core core.conftest.* &&
3303    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3304    exit $exit_status
3305' 0
3306for ac_signal in 1 2 13 15; do
3307  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3308done
3309ac_signal=0
3310
3311# confdefs.h avoids OS command line length limits that DEFS can exceed.
3312rm -f -r conftest* confdefs.h
3313
3314$as_echo "/* confdefs.h */" > confdefs.h
3315
3316# Predefined preprocessor variables.
3317
3318cat >>confdefs.h <<_ACEOF
3319#define PACKAGE_NAME "$PACKAGE_NAME"
3320_ACEOF
3321
3322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3324_ACEOF
3325
3326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_VERSION "$PACKAGE_VERSION"
3328_ACEOF
3329
3330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_STRING "$PACKAGE_STRING"
3332_ACEOF
3333
3334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3336_ACEOF
3337
3338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_URL "$PACKAGE_URL"
3340_ACEOF
3341
3342
3343# Let the site file select an alternate cache file if it wants to.
3344# Prefer an explicitly selected file to automatically selected ones.
3345ac_site_file1=NONE
3346ac_site_file2=NONE
3347if test -n "$CONFIG_SITE"; then
3348  # We do not want a PATH search for config.site.
3349  case $CONFIG_SITE in #((
3350    -*)  ac_site_file1=./$CONFIG_SITE;;
3351    */*) ac_site_file1=$CONFIG_SITE;;
3352    *)   ac_site_file1=./$CONFIG_SITE;;
3353  esac
3354elif test "x$prefix" != xNONE; then
3355  ac_site_file1=$prefix/share/config.site
3356  ac_site_file2=$prefix/etc/config.site
3357else
3358  ac_site_file1=$ac_default_prefix/share/config.site
3359  ac_site_file2=$ac_default_prefix/etc/config.site
3360fi
3361for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3362do
3363  test "x$ac_site_file" = xNONE && continue
3364  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3365    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3366$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3367    sed 's/^/| /' "$ac_site_file" >&5
3368    . "$ac_site_file" \
3369      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371as_fn_error $? "failed to load site script $ac_site_file
3372See \`config.log' for more details" "$LINENO" 5; }
3373  fi
3374done
3375
3376if test -r "$cache_file"; then
3377  # Some versions of bash will fail to source /dev/null (special files
3378  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3379  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3380    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3381$as_echo "$as_me: loading cache $cache_file" >&6;}
3382    case $cache_file in
3383      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3384      *)                      . "./$cache_file";;
3385    esac
3386  fi
3387else
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3389$as_echo "$as_me: creating cache $cache_file" >&6;}
3390  >$cache_file
3391fi
3392
3393as_fn_append ac_header_list " stdlib.h"
3394as_fn_append ac_header_list " unistd.h"
3395as_fn_append ac_header_list " sys/param.h"
3396# Check that the precious variables saved in the cache have kept the same
3397# value.
3398ac_cache_corrupted=false
3399for ac_var in $ac_precious_vars; do
3400  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3401  eval ac_new_set=\$ac_env_${ac_var}_set
3402  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3403  eval ac_new_val=\$ac_env_${ac_var}_value
3404  case $ac_old_set,$ac_new_set in
3405    set,)
3406      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3407$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3408      ac_cache_corrupted=: ;;
3409    ,set)
3410      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3411$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3412      ac_cache_corrupted=: ;;
3413    ,);;
3414    *)
3415      if test "x$ac_old_val" != "x$ac_new_val"; then
3416	# differences in whitespace do not lead to failure.
3417	ac_old_val_w=`echo x $ac_old_val`
3418	ac_new_val_w=`echo x $ac_new_val`
3419	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3420	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3421$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3422	  ac_cache_corrupted=:
3423	else
3424	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3425$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3426	  eval $ac_var=\$ac_old_val
3427	fi
3428	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3429$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3430	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3431$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3432      fi;;
3433  esac
3434  # Pass precious variables to config.status.
3435  if test "$ac_new_set" = set; then
3436    case $ac_new_val in
3437    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3438    *) ac_arg=$ac_var=$ac_new_val ;;
3439    esac
3440    case " $ac_configure_args " in
3441      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3442      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3443    esac
3444  fi
3445done
3446if $ac_cache_corrupted; then
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3450$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3451  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3452fi
3453## -------------------- ##
3454## Main body of script. ##
3455## -------------------- ##
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465ac_aux_dir=
3466for ac_dir in config "$srcdir"/config; do
3467  if test -f "$ac_dir/install-sh"; then
3468    ac_aux_dir=$ac_dir
3469    ac_install_sh="$ac_aux_dir/install-sh -c"
3470    break
3471  elif test -f "$ac_dir/install.sh"; then
3472    ac_aux_dir=$ac_dir
3473    ac_install_sh="$ac_aux_dir/install.sh -c"
3474    break
3475  elif test -f "$ac_dir/shtool"; then
3476    ac_aux_dir=$ac_dir
3477    ac_install_sh="$ac_aux_dir/shtool install -c"
3478    break
3479  fi
3480done
3481if test -z "$ac_aux_dir"; then
3482  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3483fi
3484
3485# These three variables are undocumented and unsupported,
3486# and are intended to be withdrawn in a future Autoconf release.
3487# They can cause serious problems if a builder's source tree is in a directory
3488# whose full name contains unusual characters.
3489ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3490ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3491ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3492
3493
3494
3495
3496
3497ac_config_headers="$ac_config_headers config/config.h"
3498
3499
3500ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3501
3502ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh tests/common.shi 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"
3503
3504
3505#
3506# Save initial user-tunable values
3507#
3508USER_LIBS=$LIBS
3509for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3510  eval isset=\${$var+set}
3511    if test "$isset" = 'set'; then
3512        eval val=$`echo $var`
3513        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3514    fi
3515done
3516
3517
3518CONFIGURE_ARGS="$0 ${ac_configure_args}"
3519
3520
3521# Source file containing package/library versioning information.
3522. ${srcdir}/version.sh
3523
3524echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3525# Make sure we can run config.sub.
3526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3527  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3530$as_echo_n "checking build system type... " >&6; }
3531if ${ac_cv_build+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  ac_build_alias=$build_alias
3535test "x$ac_build_alias" = x &&
3536  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3537test "x$ac_build_alias" = x &&
3538  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3540  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3541
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3544$as_echo "$ac_cv_build" >&6; }
3545case $ac_cv_build in
3546*-*-*) ;;
3547*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3548esac
3549build=$ac_cv_build
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_build
3552shift
3553build_cpu=$1
3554build_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558build_os=$*
3559IFS=$ac_save_IFS
3560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3561
3562
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3564$as_echo_n "checking host system type... " >&6; }
3565if ${ac_cv_host+:} false; then :
3566  $as_echo_n "(cached) " >&6
3567else
3568  if test "x$host_alias" = x; then
3569  ac_cv_host=$ac_cv_build
3570else
3571  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3572    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3573fi
3574
3575fi
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3577$as_echo "$ac_cv_host" >&6; }
3578case $ac_cv_host in
3579*-*-*) ;;
3580*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3581esac
3582host=$ac_cv_host
3583ac_save_IFS=$IFS; IFS='-'
3584set x $ac_cv_host
3585shift
3586host_cpu=$1
3587host_vendor=$2
3588shift; shift
3589# Remember, the first character of IFS is used to create $*,
3590# except with old shells:
3591host_os=$*
3592IFS=$ac_save_IFS
3593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3594
3595
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3597$as_echo_n "checking target system type... " >&6; }
3598if ${ac_cv_target+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  if test "x$target_alias" = x; then
3602  ac_cv_target=$ac_cv_host
3603else
3604  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3605    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3606fi
3607
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3610$as_echo "$ac_cv_target" >&6; }
3611case $ac_cv_target in
3612*-*-*) ;;
3613*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3614esac
3615target=$ac_cv_target
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_target
3618shift
3619target_cpu=$1
3620target_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624target_os=$*
3625IFS=$ac_save_IFS
3626case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3627
3628
3629# The aliases save the names the user supplied, while $host etc.
3630# will get canonicalized.
3631test -n "$target_alias" &&
3632  test "$program_prefix$program_suffix$program_transform_name" = \
3633    NONENONEs,x,x, &&
3634  program_prefix=${target_alias}-
3635
3636
3637
3638
3639
3640MAGICK_TARGET_CPU=$host_cpu
3641
3642
3643cat >>confdefs.h <<_ACEOF
3644#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3645_ACEOF
3646
3647
3648MAGICK_TARGET_VENDOR=$host_vendor
3649
3650
3651cat >>confdefs.h <<_ACEOF
3652#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3653_ACEOF
3654
3655
3656MAGICK_TARGET_OS=$host_os
3657
3658
3659cat >>confdefs.h <<_ACEOF
3660#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3661_ACEOF
3662
3663
3664# Substitute library versioning
3665MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3666
3667MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3668
3669MAGICK_SVN_REVISION=9270:9274M
3670
3671
3672
3673# Ensure that make can run correctly
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3675$as_echo_n "checking whether build environment is sane... " >&6; }
3676# Reject unsafe characters in $srcdir or the absolute working directory
3677# name.  Accept space and tab only in the latter.
3678am_lf='
3679'
3680case `pwd` in
3681  *[\\\"\#\$\&\'\`$am_lf]*)
3682    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3683esac
3684case $srcdir in
3685  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3686    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3687esac
3688
3689# Do 'set' in a subshell so we don't clobber the current shell's
3690# arguments.  Must try -L first in case configure is actually a
3691# symlink; some systems play weird games with the mod time of symlinks
3692# (eg FreeBSD returns the mod time of the symlink's containing
3693# directory).
3694if (
3695   am_has_slept=no
3696   for am_try in 1 2; do
3697     echo "timestamp, slept: $am_has_slept" > conftest.file
3698     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3699     if test "$*" = "X"; then
3700	# -L didn't work.
3701	set X `ls -t "$srcdir/configure" conftest.file`
3702     fi
3703     if test "$*" != "X $srcdir/configure conftest.file" \
3704	&& test "$*" != "X conftest.file $srcdir/configure"; then
3705
3706	# If neither matched, then we have a broken ls.  This can happen
3707	# if, for instance, CONFIG_SHELL is bash and it inherits a
3708	# broken ls alias from the environment.  This has actually
3709	# happened.  Such a system could not be considered "sane".
3710	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3711  alias in your environment" "$LINENO" 5
3712     fi
3713     if test "$2" = conftest.file || test $am_try -eq 2; then
3714       break
3715     fi
3716     # Just in case.
3717     sleep 1
3718     am_has_slept=yes
3719   done
3720   test "$2" = conftest.file
3721   )
3722then
3723   # Ok.
3724   :
3725else
3726   as_fn_error $? "newly created file is older than distributed files!
3727Check your system clock" "$LINENO" 5
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730$as_echo "yes" >&6; }
3731# If we didn't sleep, we still need to ensure time stamps of config.status and
3732# generated files are strictly newer.
3733am_sleep_pid=
3734if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3735  ( sleep 1 ) &
3736  am_sleep_pid=$!
3737fi
3738
3739rm -f conftest.file
3740
3741
3742am__api_version='1.12'
3743
3744# Find a good install program.  We prefer a C program (faster),
3745# so one script is as good as another.  But avoid the broken or
3746# incompatible versions:
3747# SysV /etc/install, /usr/sbin/install
3748# SunOS /usr/etc/install
3749# IRIX /sbin/install
3750# AIX /bin/install
3751# AmigaOS /C/install, which installs bootblocks on floppy discs
3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755# OS/2's system install, which has a completely different semantic
3756# ./install, which can be erroneously created by make from ./install.sh.
3757# Reject install programs that cannot install multiple files.
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3759$as_echo_n "checking for a BSD-compatible install... " >&6; }
3760if test -z "$INSTALL"; then
3761if ${ac_cv_path_install+:} false; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767  IFS=$as_save_IFS
3768  test -z "$as_dir" && as_dir=.
3769    # Account for people who put trailing slashes in PATH elements.
3770case $as_dir/ in #((
3771  ./ | .// | /[cC]/* | \
3772  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3774  /usr/ucb/* ) ;;
3775  *)
3776    # OSF1 and SCO ODT 3.0 have their own names for install.
3777    # Don't use installbsd from OSF since it installs stuff as root
3778    # by default.
3779    for ac_prog in ginstall scoinst install; do
3780      for ac_exec_ext in '' $ac_executable_extensions; do
3781	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3782	  if test $ac_prog = install &&
3783	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784	    # AIX install.  It has an incompatible calling convention.
3785	    :
3786	  elif test $ac_prog = install &&
3787	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788	    # program-specific install script used by HP pwplus--don't use.
3789	    :
3790	  else
3791	    rm -rf conftest.one conftest.two conftest.dir
3792	    echo one > conftest.one
3793	    echo two > conftest.two
3794	    mkdir conftest.dir
3795	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796	      test -s conftest.one && test -s conftest.two &&
3797	      test -s conftest.dir/conftest.one &&
3798	      test -s conftest.dir/conftest.two
3799	    then
3800	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801	      break 3
3802	    fi
3803	  fi
3804	fi
3805      done
3806    done
3807    ;;
3808esac
3809
3810  done
3811IFS=$as_save_IFS
3812
3813rm -rf conftest.one conftest.two conftest.dir
3814
3815fi
3816  if test "${ac_cv_path_install+set}" = set; then
3817    INSTALL=$ac_cv_path_install
3818  else
3819    # As a last resort, use the slow shell script.  Don't cache a
3820    # value for INSTALL within a source directory, because that will
3821    # break other packages using the cache if that directory is
3822    # removed, or if the value is a relative name.
3823    INSTALL=$ac_install_sh
3824  fi
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3827$as_echo "$INSTALL" >&6; }
3828
3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830# It thinks the first close brace ends the variable substitution.
3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3832
3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3834
3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
3837test "$program_prefix" != NONE &&
3838  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3839# Use a double $ so make ignores it.
3840test "$program_suffix" != NONE &&
3841  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3842# Double any \ or $.
3843# By default was `s,x,x', remove it if useless.
3844ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3845program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3846
3847# expand $ac_aux_dir to an absolute path
3848am_aux_dir=`cd $ac_aux_dir && pwd`
3849
3850if test x"${MISSING+set}" != xset; then
3851  case $am_aux_dir in
3852  *\ * | *\	*)
3853    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3854  *)
3855    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3856  esac
3857fi
3858# Use eval to expand $SHELL
3859if eval "$MISSING --run true"; then
3860  am_missing_run="$MISSING --run "
3861else
3862  am_missing_run=
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3864$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3865fi
3866
3867if test x"${install_sh}" != xset; then
3868  case $am_aux_dir in
3869  *\ * | *\	*)
3870    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3871  *)
3872    install_sh="\${SHELL} $am_aux_dir/install-sh"
3873  esac
3874fi
3875
3876# Installed binaries are usually stripped using 'strip' when the user
3877# run "make install-strip".  However 'strip' might not be the right
3878# tool to use in cross-compilation environments, therefore Automake
3879# will honor the 'STRIP' environment variable to overrule this program.
3880if test "$cross_compiling" != no; then
3881  if test -n "$ac_tool_prefix"; then
3882  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3883set dummy ${ac_tool_prefix}strip; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if ${ac_cv_prog_STRIP+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  if test -n "$STRIP"; then
3890  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895  IFS=$as_save_IFS
3896  test -z "$as_dir" && as_dir=.
3897    for ac_exec_ext in '' $ac_executable_extensions; do
3898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901    break 2
3902  fi
3903done
3904  done
3905IFS=$as_save_IFS
3906
3907fi
3908fi
3909STRIP=$ac_cv_prog_STRIP
3910if test -n "$STRIP"; then
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3912$as_echo "$STRIP" >&6; }
3913else
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917
3918
3919fi
3920if test -z "$ac_cv_prog_STRIP"; then
3921  ac_ct_STRIP=$STRIP
3922  # Extract the first word of "strip", so it can be a program name with args.
3923set dummy strip; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  if test -n "$ac_ct_STRIP"; then
3930  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935  IFS=$as_save_IFS
3936  test -z "$as_dir" && as_dir=.
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939    ac_cv_prog_ac_ct_STRIP="strip"
3940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941    break 2
3942  fi
3943done
3944  done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3950if test -n "$ac_ct_STRIP"; then
3951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3952$as_echo "$ac_ct_STRIP" >&6; }
3953else
3954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958  if test "x$ac_ct_STRIP" = x; then
3959    STRIP=":"
3960  else
3961    case $cross_compiling:$ac_tool_warned in
3962yes:)
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965ac_tool_warned=yes ;;
3966esac
3967    STRIP=$ac_ct_STRIP
3968  fi
3969else
3970  STRIP="$ac_cv_prog_STRIP"
3971fi
3972
3973fi
3974INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3977$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3978if test -z "$MKDIR_P"; then
3979  if ${ac_cv_path_mkdir+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3984do
3985  IFS=$as_save_IFS
3986  test -z "$as_dir" && as_dir=.
3987    for ac_prog in mkdir gmkdir; do
3988	 for ac_exec_ext in '' $ac_executable_extensions; do
3989	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3990	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3991	     'mkdir (GNU coreutils) '* | \
3992	     'mkdir (coreutils) '* | \
3993	     'mkdir (fileutils) '4.1*)
3994	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3995	       break 3;;
3996	   esac
3997	 done
3998       done
3999  done
4000IFS=$as_save_IFS
4001
4002fi
4003
4004  test -d ./--version && rmdir ./--version
4005  if test "${ac_cv_path_mkdir+set}" = set; then
4006    MKDIR_P="$ac_cv_path_mkdir -p"
4007  else
4008    # As a last resort, use the slow shell script.  Don't cache a
4009    # value for MKDIR_P within a source directory, because that will
4010    # break other packages using the cache if that directory is
4011    # removed, or if the value is a relative name.
4012    MKDIR_P="$ac_install_sh -d"
4013  fi
4014fi
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4016$as_echo "$MKDIR_P" >&6; }
4017
4018for ac_prog in gawk mawk nawk awk
4019do
4020  # Extract the first word of "$ac_prog", so it can be a program name with args.
4021set dummy $ac_prog; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_AWK+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$AWK"; then
4028  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037    ac_cv_prog_AWK="$ac_prog"
4038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047AWK=$ac_cv_prog_AWK
4048if test -n "$AWK"; then
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4050$as_echo "$AWK" >&6; }
4051else
4052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056
4057  test -n "$AWK" && break
4058done
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4061$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4062set x ${MAKE-make}
4063ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4064if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  cat >conftest.make <<\_ACEOF
4068SHELL = /bin/sh
4069all:
4070	@echo '@@@%%%=$(MAKE)=@@@%%%'
4071_ACEOF
4072# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4073case `${MAKE-make} -f conftest.make 2>/dev/null` in
4074  *@@@%%%=?*=@@@%%%*)
4075    eval ac_cv_prog_make_${ac_make}_set=yes;;
4076  *)
4077    eval ac_cv_prog_make_${ac_make}_set=no;;
4078esac
4079rm -f conftest.make
4080fi
4081if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083$as_echo "yes" >&6; }
4084  SET_MAKE=
4085else
4086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087$as_echo "no" >&6; }
4088  SET_MAKE="MAKE=${MAKE-make}"
4089fi
4090
4091rm -rf .tst 2>/dev/null
4092mkdir .tst 2>/dev/null
4093if test -d .tst; then
4094  am__leading_dot=.
4095else
4096  am__leading_dot=_
4097fi
4098rmdir .tst 2>/dev/null
4099
4100# Check whether --enable-silent-rules was given.
4101if test "${enable_silent_rules+set}" = set; then :
4102  enableval=$enable_silent_rules;
4103fi
4104
4105case $enable_silent_rules in # (((
4106  yes) AM_DEFAULT_VERBOSITY=0;;
4107   no) AM_DEFAULT_VERBOSITY=1;;
4108    *) AM_DEFAULT_VERBOSITY=1;;
4109esac
4110am_make=${MAKE-make}
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4112$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4113if ${am_cv_make_support_nested_variables+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  if $as_echo 'TRUE=$(BAR$(V))
4117BAR0=false
4118BAR1=true
4119V=1
4120am__doit:
4121	@$(TRUE)
4122.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4123  am_cv_make_support_nested_variables=yes
4124else
4125  am_cv_make_support_nested_variables=no
4126fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4129$as_echo "$am_cv_make_support_nested_variables" >&6; }
4130if test $am_cv_make_support_nested_variables = yes; then
4131    AM_V='$(V)'
4132  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4133else
4134  AM_V=$AM_DEFAULT_VERBOSITY
4135  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4136fi
4137AM_BACKSLASH='\'
4138
4139if test "`cd $srcdir && pwd`" != "`pwd`"; then
4140  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4141  # is not polluted with repeated "-I."
4142  am__isrc=' -I$(srcdir)'
4143  # test to see if srcdir already configured
4144  if test -f $srcdir/config.status; then
4145    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4146  fi
4147fi
4148
4149# test whether we have cygpath
4150if test -z "$CYGPATH_W"; then
4151  if (cygpath --version) >/dev/null 2>/dev/null; then
4152    CYGPATH_W='cygpath -w'
4153  else
4154    CYGPATH_W=echo
4155  fi
4156fi
4157
4158
4159# Define the identity of the package.
4160 PACKAGE='ImageMagick'
4161 VERSION='7.0.0-0'
4162
4163
4164cat >>confdefs.h <<_ACEOF
4165#define PACKAGE "$PACKAGE"
4166_ACEOF
4167
4168
4169cat >>confdefs.h <<_ACEOF
4170#define VERSION "$VERSION"
4171_ACEOF
4172
4173# Some tools Automake needs.
4174
4175ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4176
4177
4178AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4179
4180
4181AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4182
4183
4184AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4185
4186
4187MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4188
4189# For better backward compatibility.  To be removed once Automake 1.9.x
4190# dies out for good.  For more background, see:
4191# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4193mkdir_p='$(MKDIR_P)'
4194
4195# We need awk for the "check" target.  The system "awk" is bad on
4196# some platforms.
4197# Always define AMTAR for backward compatibility.  Yes, it's still used
4198# in the wild :-(  We should find a proper way to deprecate it ...
4199AMTAR='$${TAR-tar}'
4200
4201am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4202
4203
4204
4205
4206
4207
4208# Enable support for silent build rules
4209# Check whether --enable-silent-rules was given.
4210if test "${enable_silent_rules+set}" = set; then :
4211  enableval=$enable_silent_rules;
4212fi
4213
4214case $enable_silent_rules in # (((
4215  yes) AM_DEFAULT_VERBOSITY=0;;
4216   no) AM_DEFAULT_VERBOSITY=1;;
4217    *) AM_DEFAULT_VERBOSITY=0;;
4218esac
4219am_make=${MAKE-make}
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4221$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4222if ${am_cv_make_support_nested_variables+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  if $as_echo 'TRUE=$(BAR$(V))
4226BAR0=false
4227BAR1=true
4228V=1
4229am__doit:
4230	@$(TRUE)
4231.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4232  am_cv_make_support_nested_variables=yes
4233else
4234  am_cv_make_support_nested_variables=no
4235fi
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4238$as_echo "$am_cv_make_support_nested_variables" >&6; }
4239if test $am_cv_make_support_nested_variables = yes; then
4240    AM_V='$(V)'
4241  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4242else
4243  AM_V=$AM_DEFAULT_VERBOSITY
4244  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4245fi
4246AM_BACKSLASH='\'
4247
4248
4249MAGICK_LIB_VERSION="0x"
4250if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4251  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4252fi
4253MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4254if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4255  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4256fi
4257MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4258if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4259  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4260fi
4261MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4262
4263
4264# Definition used to define MagickLibVersionText in version.h
4265MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4266
4267
4268# Definition used to define MagickLibVersionNumber in version.h
4269MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4270
4271
4272# Regenerate config.status if ChangeLog or version.sh is updated.
4273CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4274
4275
4276PERLMAINCC=$CC
4277
4278MAGICK_CFLAGS=''
4279MAGICK_CPPFLAGS=$CPPFLAGS_USER
4280MAGICK_PCFLAGS=$CPPFLAGS_USER
4281MAGICK_LDFLAGS=''
4282MAGICK_LIBS=''
4283MAGICK_FEATURES=''
4284
4285#
4286# Evaluate shell variable equivalents to Makefile directory variables
4287#
4288if test "x$prefix" = xNONE; then
4289    prefix=$ac_default_prefix
4290fi
4291# Let make expand exec_prefix.
4292if test "x$exec_prefix" = xNONE; then
4293    exec_prefix='${prefix}'
4294fi
4295
4296#
4297eval "eval PREFIX_DIR=${prefix}"
4298
4299eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4300
4301eval "eval BIN_DIR=$bindir"
4302
4303eval "eval SBIN_DIR=$sbindir"
4304
4305eval "eval LIBEXEC_DIR=$libexecdir"
4306
4307eval "eval DATA_DIR=$datadir"
4308
4309eval "eval DOC_DIR=$datadir/doc"
4310
4311eval "eval SYSCONF_DIR=$sysconfdir"
4312
4313eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4314
4315eval "eval LOCALSTATE_DIR=$localstatedir"
4316
4317eval "eval LIB_DIR=$libdir"
4318
4319eval "eval INCLUDE_DIR=$includedir"
4320
4321eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4322
4323eval "eval INFO_DIR=$infodir"
4324
4325eval "eval MAN_DIR=$mandir"
4326
4327
4328# Get full paths to source and build directories
4329srcdirfull="`cd $srcdir && pwd`"
4330builddir="`pwd`"
4331
4332#
4333# Compute variables useful for running uninstalled software.
4334#
4335MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4336MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4337MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4338MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4339DIRSEP=':'
4340case "${build_os}" in
4341    mingw* )
4342        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4343        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4344        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4345        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4346        DIRSEP=';'
4347    ;;
4348esac
4349case "${host_os}" in
4350  mingw* )
4351    DIRSEP=';'
4352    ;;
4353esac
4354
4355
4356
4357
4358
4359
4360
4361#
4362# Enable OS features.
4363#
4364DEPDIR="${am__leading_dot}deps"
4365
4366ac_config_commands="$ac_config_commands depfiles"
4367
4368
4369am_make=${MAKE-make}
4370cat > confinc << 'END'
4371am__doit:
4372	@echo this is the am__doit target
4373.PHONY: am__doit
4374END
4375# If we don't find an include directive, just comment out the code.
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4377$as_echo_n "checking for style of include used by $am_make... " >&6; }
4378am__include="#"
4379am__quote=
4380_am_result=none
4381# First try GNU make style include.
4382echo "include confinc" > confmf
4383# Ignore all kinds of additional output from 'make'.
4384case `$am_make -s -f confmf 2> /dev/null` in #(
4385*the\ am__doit\ target*)
4386  am__include=include
4387  am__quote=
4388  _am_result=GNU
4389  ;;
4390esac
4391# Now try BSD make style include.
4392if test "$am__include" = "#"; then
4393   echo '.include "confinc"' > confmf
4394   case `$am_make -s -f confmf 2> /dev/null` in #(
4395   *the\ am__doit\ target*)
4396     am__include=.include
4397     am__quote="\""
4398     _am_result=BSD
4399     ;;
4400   esac
4401fi
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4405$as_echo "$_am_result" >&6; }
4406rm -f confinc confmf
4407
4408# Check whether --enable-dependency-tracking was given.
4409if test "${enable_dependency_tracking+set}" = set; then :
4410  enableval=$enable_dependency_tracking;
4411fi
4412
4413if test "x$enable_dependency_tracking" != xno; then
4414  am_depcomp="$ac_aux_dir/depcomp"
4415  AMDEPBACKSLASH='\'
4416  am__nodep='_no'
4417fi
4418 if test "x$enable_dependency_tracking" != xno; then
4419  AMDEP_TRUE=
4420  AMDEP_FALSE='#'
4421else
4422  AMDEP_TRUE='#'
4423  AMDEP_FALSE=
4424fi
4425
4426
4427ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432if test -n "$ac_tool_prefix"; then
4433  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4434set dummy ${ac_tool_prefix}gcc; ac_word=$2
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436$as_echo_n "checking for $ac_word... " >&6; }
4437if ${ac_cv_prog_CC+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if test -n "$CC"; then
4441  ac_cv_prog_CC="$CC" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446  IFS=$as_save_IFS
4447  test -z "$as_dir" && as_dir=.
4448    for ac_exec_ext in '' $ac_executable_extensions; do
4449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452    break 2
4453  fi
4454done
4455  done
4456IFS=$as_save_IFS
4457
4458fi
4459fi
4460CC=$ac_cv_prog_CC
4461if test -n "$CC"; then
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4463$as_echo "$CC" >&6; }
4464else
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466$as_echo "no" >&6; }
4467fi
4468
4469
4470fi
4471if test -z "$ac_cv_prog_CC"; then
4472  ac_ct_CC=$CC
4473  # Extract the first word of "gcc", so it can be a program name with args.
4474set dummy gcc; ac_word=$2
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476$as_echo_n "checking for $ac_word... " >&6; }
4477if ${ac_cv_prog_ac_ct_CC+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if test -n "$ac_ct_CC"; then
4481  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488    for ac_exec_ext in '' $ac_executable_extensions; do
4489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490    ac_cv_prog_ac_ct_CC="gcc"
4491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492    break 2
4493  fi
4494done
4495  done
4496IFS=$as_save_IFS
4497
4498fi
4499fi
4500ac_ct_CC=$ac_cv_prog_ac_ct_CC
4501if test -n "$ac_ct_CC"; then
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4503$as_echo "$ac_ct_CC" >&6; }
4504else
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506$as_echo "no" >&6; }
4507fi
4508
4509  if test "x$ac_ct_CC" = x; then
4510    CC=""
4511  else
4512    case $cross_compiling:$ac_tool_warned in
4513yes:)
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516ac_tool_warned=yes ;;
4517esac
4518    CC=$ac_ct_CC
4519  fi
4520else
4521  CC="$ac_cv_prog_CC"
4522fi
4523
4524if test -z "$CC"; then
4525          if test -n "$ac_tool_prefix"; then
4526    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}cc; ac_word=$2
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if ${ac_cv_prog_CC+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -n "$CC"; then
4534  ac_cv_prog_CC="$CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543    ac_cv_prog_CC="${ac_tool_prefix}cc"
4544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548  done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553CC=$ac_cv_prog_CC
4554if test -n "$CC"; then
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4556$as_echo "$CC" >&6; }
4557else
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560fi
4561
4562
4563  fi
4564fi
4565if test -z "$CC"; then
4566  # Extract the first word of "cc", so it can be a program name with args.
4567set dummy cc; ac_word=$2
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if ${ac_cv_prog_CC+:} false; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  if test -n "$CC"; then
4574  ac_cv_prog_CC="$CC" # Let the user override the test.
4575else
4576  ac_prog_rejected=no
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580  IFS=$as_save_IFS
4581  test -z "$as_dir" && as_dir=.
4582    for ac_exec_ext in '' $ac_executable_extensions; do
4583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4585       ac_prog_rejected=yes
4586       continue
4587     fi
4588    ac_cv_prog_CC="cc"
4589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590    break 2
4591  fi
4592done
4593  done
4594IFS=$as_save_IFS
4595
4596if test $ac_prog_rejected = yes; then
4597  # We found a bogon in the path, so make sure we never use it.
4598  set dummy $ac_cv_prog_CC
4599  shift
4600  if test $# != 0; then
4601    # We chose a different compiler from the bogus one.
4602    # However, it has the same basename, so the bogon will be chosen
4603    # first if we set CC to just the basename; use the full file name.
4604    shift
4605    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4606  fi
4607fi
4608fi
4609fi
4610CC=$ac_cv_prog_CC
4611if test -n "$CC"; then
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4613$as_echo "$CC" >&6; }
4614else
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616$as_echo "no" >&6; }
4617fi
4618
4619
4620fi
4621if test -z "$CC"; then
4622  if test -n "$ac_tool_prefix"; then
4623  for ac_prog in cl.exe
4624  do
4625    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628$as_echo_n "checking for $ac_word... " >&6; }
4629if ${ac_cv_prog_CC+:} false; then :
4630  $as_echo_n "(cached) " >&6
4631else
4632  if test -n "$CC"; then
4633  ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638  IFS=$as_save_IFS
4639  test -z "$as_dir" && as_dir=.
4640    for ac_exec_ext in '' $ac_executable_extensions; do
4641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644    break 2
4645  fi
4646done
4647  done
4648IFS=$as_save_IFS
4649
4650fi
4651fi
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655$as_echo "$CC" >&6; }
4656else
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658$as_echo "no" >&6; }
4659fi
4660
4661
4662    test -n "$CC" && break
4663  done
4664fi
4665if test -z "$CC"; then
4666  ac_ct_CC=$CC
4667  for ac_prog in cl.exe
4668do
4669  # Extract the first word of "$ac_prog", so it can be a program name with args.
4670set dummy $ac_prog; ac_word=$2
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672$as_echo_n "checking for $ac_word... " >&6; }
4673if ${ac_cv_prog_ac_ct_CC+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  if test -n "$ac_ct_CC"; then
4677  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678else
4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682  IFS=$as_save_IFS
4683  test -z "$as_dir" && as_dir=.
4684    for ac_exec_ext in '' $ac_executable_extensions; do
4685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686    ac_cv_prog_ac_ct_CC="$ac_prog"
4687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688    break 2
4689  fi
4690done
4691  done
4692IFS=$as_save_IFS
4693
4694fi
4695fi
4696ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697if test -n "$ac_ct_CC"; then
4698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4699$as_echo "$ac_ct_CC" >&6; }
4700else
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702$as_echo "no" >&6; }
4703fi
4704
4705
4706  test -n "$ac_ct_CC" && break
4707done
4708
4709  if test "x$ac_ct_CC" = x; then
4710    CC=""
4711  else
4712    case $cross_compiling:$ac_tool_warned in
4713yes:)
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716ac_tool_warned=yes ;;
4717esac
4718    CC=$ac_ct_CC
4719  fi
4720fi
4721
4722fi
4723
4724
4725test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727as_fn_error $? "no acceptable C compiler found in \$PATH
4728See \`config.log' for more details" "$LINENO" 5; }
4729
4730# Provide some information about the compiler.
4731$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4732set X $ac_compile
4733ac_compiler=$2
4734for ac_option in --version -v -V -qversion; do
4735  { { ac_try="$ac_compiler $ac_option >&5"
4736case "(($ac_try" in
4737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738  *) ac_try_echo=$ac_try;;
4739esac
4740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741$as_echo "$ac_try_echo"; } >&5
4742  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4743  ac_status=$?
4744  if test -s conftest.err; then
4745    sed '10a\
4746... rest of stderr output deleted ...
4747         10q' conftest.err >conftest.er1
4748    cat conftest.er1 >&5
4749  fi
4750  rm -f conftest.er1 conftest.err
4751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752  test $ac_status = 0; }
4753done
4754
4755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757
4758int
4759main ()
4760{
4761
4762  ;
4763  return 0;
4764}
4765_ACEOF
4766ac_clean_files_save=$ac_clean_files
4767ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4768# Try to create an executable without -o first, disregard a.out.
4769# It will help us diagnose broken compilers, and finding out an intuition
4770# of exeext.
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4772$as_echo_n "checking whether the C compiler works... " >&6; }
4773ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4774
4775# The possible output files:
4776ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4777
4778ac_rmfiles=
4779for ac_file in $ac_files
4780do
4781  case $ac_file in
4782    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4783    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4784  esac
4785done
4786rm -f $ac_rmfiles
4787
4788if { { ac_try="$ac_link_default"
4789case "(($ac_try" in
4790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791  *) ac_try_echo=$ac_try;;
4792esac
4793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
4795  (eval "$ac_link_default") 2>&5
4796  ac_status=$?
4797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798  test $ac_status = 0; }; then :
4799  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4800# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4801# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4802# so that the user can short-circuit this test for compilers unknown to
4803# Autoconf.
4804for ac_file in $ac_files ''
4805do
4806  test -f "$ac_file" || continue
4807  case $ac_file in
4808    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4809	;;
4810    [ab].out )
4811	# We found the default executable, but exeext='' is most
4812	# certainly right.
4813	break;;
4814    *.* )
4815	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4816	then :; else
4817	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4818	fi
4819	# We set ac_cv_exeext here because the later test for it is not
4820	# safe: cross compilers may not add the suffix if given an `-o'
4821	# argument, so we may need to know it at that point already.
4822	# Even if this section looks crufty: it has the advantage of
4823	# actually working.
4824	break;;
4825    * )
4826	break;;
4827  esac
4828done
4829test "$ac_cv_exeext" = no && ac_cv_exeext=
4830
4831else
4832  ac_file=''
4833fi
4834if test -z "$ac_file"; then :
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837$as_echo "$as_me: failed program was:" >&5
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
4840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4842as_fn_error 77 "C compiler cannot create executables
4843See \`config.log' for more details" "$LINENO" 5; }
4844else
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4846$as_echo "yes" >&6; }
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4849$as_echo_n "checking for C compiler default output file name... " >&6; }
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4851$as_echo "$ac_file" >&6; }
4852ac_exeext=$ac_cv_exeext
4853
4854rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4855ac_clean_files=$ac_clean_files_save
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4857$as_echo_n "checking for suffix of executables... " >&6; }
4858if { { ac_try="$ac_link"
4859case "(($ac_try" in
4860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861  *) ac_try_echo=$ac_try;;
4862esac
4863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864$as_echo "$ac_try_echo"; } >&5
4865  (eval "$ac_link") 2>&5
4866  ac_status=$?
4867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868  test $ac_status = 0; }; then :
4869  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4870# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4871# work properly (i.e., refer to `conftest.exe'), while it won't with
4872# `rm'.
4873for ac_file in conftest.exe conftest conftest.*; do
4874  test -f "$ac_file" || continue
4875  case $ac_file in
4876    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4878	  break;;
4879    * ) break;;
4880  esac
4881done
4882else
4883  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4885as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4886See \`config.log' for more details" "$LINENO" 5; }
4887fi
4888rm -f conftest conftest$ac_cv_exeext
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4890$as_echo "$ac_cv_exeext" >&6; }
4891
4892rm -f conftest.$ac_ext
4893EXEEXT=$ac_cv_exeext
4894ac_exeext=$EXEEXT
4895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897#include <stdio.h>
4898int
4899main ()
4900{
4901FILE *f = fopen ("conftest.out", "w");
4902 return ferror (f) || fclose (f) != 0;
4903
4904  ;
4905  return 0;
4906}
4907_ACEOF
4908ac_clean_files="$ac_clean_files conftest.out"
4909# Check that the compiler produces executables we can run.  If not, either
4910# the compiler is broken, or we cross compile.
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4912$as_echo_n "checking whether we are cross compiling... " >&6; }
4913if test "$cross_compiling" != yes; then
4914  { { ac_try="$ac_link"
4915case "(($ac_try" in
4916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917  *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921  (eval "$ac_link") 2>&5
4922  ac_status=$?
4923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924  test $ac_status = 0; }
4925  if { ac_try='./conftest$ac_cv_exeext'
4926  { { case "(($ac_try" in
4927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928  *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932  (eval "$ac_try") 2>&5
4933  ac_status=$?
4934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935  test $ac_status = 0; }; }; then
4936    cross_compiling=no
4937  else
4938    if test "$cross_compiling" = maybe; then
4939	cross_compiling=yes
4940    else
4941	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4943as_fn_error $? "cannot run C compiled programs.
4944If you meant to cross compile, use \`--host'.
4945See \`config.log' for more details" "$LINENO" 5; }
4946    fi
4947  fi
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4950$as_echo "$cross_compiling" >&6; }
4951
4952rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4953ac_clean_files=$ac_clean_files_save
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4955$as_echo_n "checking for suffix of object files... " >&6; }
4956if ${ac_cv_objext+:} false; then :
4957  $as_echo_n "(cached) " >&6
4958else
4959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h.  */
4961
4962int
4963main ()
4964{
4965
4966  ;
4967  return 0;
4968}
4969_ACEOF
4970rm -f conftest.o conftest.obj
4971if { { ac_try="$ac_compile"
4972case "(($ac_try" in
4973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974  *) ac_try_echo=$ac_try;;
4975esac
4976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977$as_echo "$ac_try_echo"; } >&5
4978  (eval "$ac_compile") 2>&5
4979  ac_status=$?
4980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981  test $ac_status = 0; }; then :
4982  for ac_file in conftest.o conftest.obj conftest.*; do
4983  test -f "$ac_file" || continue;
4984  case $ac_file in
4985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4986    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4987       break;;
4988  esac
4989done
4990else
4991  $as_echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996as_fn_error $? "cannot compute suffix of object files: cannot compile
4997See \`config.log' for more details" "$LINENO" 5; }
4998fi
4999rm -f conftest.$ac_cv_objext conftest.$ac_ext
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5002$as_echo "$ac_cv_objext" >&6; }
5003OBJEXT=$ac_cv_objext
5004ac_objext=$OBJEXT
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5006$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5007if ${ac_cv_c_compiler_gnu+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h.  */
5012
5013int
5014main ()
5015{
5016#ifndef __GNUC__
5017       choke me
5018#endif
5019
5020  ;
5021  return 0;
5022}
5023_ACEOF
5024if ac_fn_c_try_compile "$LINENO"; then :
5025  ac_compiler_gnu=yes
5026else
5027  ac_compiler_gnu=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030ac_cv_c_compiler_gnu=$ac_compiler_gnu
5031
5032fi
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5034$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5035if test $ac_compiler_gnu = yes; then
5036  GCC=yes
5037else
5038  GCC=
5039fi
5040ac_test_CFLAGS=${CFLAGS+set}
5041ac_save_CFLAGS=$CFLAGS
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5043$as_echo_n "checking whether $CC accepts -g... " >&6; }
5044if ${ac_cv_prog_cc_g+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  ac_save_c_werror_flag=$ac_c_werror_flag
5048   ac_c_werror_flag=yes
5049   ac_cv_prog_cc_g=no
5050   CFLAGS="-g"
5051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h.  */
5053
5054int
5055main ()
5056{
5057
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_compile "$LINENO"; then :
5063  ac_cv_prog_cc_g=yes
5064else
5065  CFLAGS=""
5066      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h.  */
5068
5069int
5070main ()
5071{
5072
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077if ac_fn_c_try_compile "$LINENO"; then :
5078
5079else
5080  ac_c_werror_flag=$ac_save_c_werror_flag
5081	 CFLAGS="-g"
5082	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084
5085int
5086main ()
5087{
5088
5089  ;
5090  return 0;
5091}
5092_ACEOF
5093if ac_fn_c_try_compile "$LINENO"; then :
5094  ac_cv_prog_cc_g=yes
5095fi
5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097fi
5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099fi
5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101   ac_c_werror_flag=$ac_save_c_werror_flag
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5104$as_echo "$ac_cv_prog_cc_g" >&6; }
5105if test "$ac_test_CFLAGS" = set; then
5106  CFLAGS=$ac_save_CFLAGS
5107elif test $ac_cv_prog_cc_g = yes; then
5108  if test "$GCC" = yes; then
5109    CFLAGS="-g -O2"
5110  else
5111    CFLAGS="-g"
5112  fi
5113else
5114  if test "$GCC" = yes; then
5115    CFLAGS="-O2"
5116  else
5117    CFLAGS=
5118  fi
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5121$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5122if ${ac_cv_prog_cc_c89+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  ac_cv_prog_cc_c89=no
5126ac_save_CC=$CC
5127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129#include <stdarg.h>
5130#include <stdio.h>
5131struct stat;
5132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5133struct buf { int x; };
5134FILE * (*rcsopen) (struct buf *, struct stat *, int);
5135static char *e (p, i)
5136     char **p;
5137     int i;
5138{
5139  return p[i];
5140}
5141static char *f (char * (*g) (char **, int), char **p, ...)
5142{
5143  char *s;
5144  va_list v;
5145  va_start (v,p);
5146  s = g (p, va_arg (v,int));
5147  va_end (v);
5148  return s;
5149}
5150
5151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5152   function prototypes and stuff, but not '\xHH' hex character constants.
5153   These don't provoke an error unfortunately, instead are silently treated
5154   as 'x'.  The following induces an error, until -std is added to get
5155   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5156   array size at least.  It's necessary to write '\x00'==0 to get something
5157   that's true only with -std.  */
5158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5159
5160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5161   inside strings and character constants.  */
5162#define FOO(x) 'x'
5163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5164
5165int test (int i, double x);
5166struct s1 {int (*f) (int a);};
5167struct s2 {int (*f) (double a);};
5168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5169int argc;
5170char **argv;
5171int
5172main ()
5173{
5174return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5175  ;
5176  return 0;
5177}
5178_ACEOF
5179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5180	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5181do
5182  CC="$ac_save_CC $ac_arg"
5183  if ac_fn_c_try_compile "$LINENO"; then :
5184  ac_cv_prog_cc_c89=$ac_arg
5185fi
5186rm -f core conftest.err conftest.$ac_objext
5187  test "x$ac_cv_prog_cc_c89" != "xno" && break
5188done
5189rm -f conftest.$ac_ext
5190CC=$ac_save_CC
5191
5192fi
5193# AC_CACHE_VAL
5194case "x$ac_cv_prog_cc_c89" in
5195  x)
5196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5197$as_echo "none needed" >&6; } ;;
5198  xno)
5199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5200$as_echo "unsupported" >&6; } ;;
5201  *)
5202    CC="$CC $ac_cv_prog_cc_c89"
5203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5205esac
5206if test "x$ac_cv_prog_cc_c89" != xno; then :
5207
5208fi
5209
5210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215
5216depcc="$CC"   am_compiler_list=
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5219$as_echo_n "checking dependency style of $depcc... " >&6; }
5220if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5224  # We make a subdir and do the tests there.  Otherwise we can end up
5225  # making bogus files that we don't know about and never remove.  For
5226  # instance it was reported that on HP-UX the gcc test will end up
5227  # making a dummy file named 'D' -- because '-MD' means "put the output
5228  # in D".
5229  rm -rf conftest.dir
5230  mkdir conftest.dir
5231  # Copy depcomp to subdir because otherwise we won't find it if we're
5232  # using a relative directory.
5233  cp "$am_depcomp" conftest.dir
5234  cd conftest.dir
5235  # We will build objects and dependencies in a subdirectory because
5236  # it helps to detect inapplicable dependency modes.  For instance
5237  # both Tru64's cc and ICC support -MD to output dependencies as a
5238  # side effect of compilation, but ICC will put the dependencies in
5239  # the current directory while Tru64 will put them in the object
5240  # directory.
5241  mkdir sub
5242
5243  am_cv_CC_dependencies_compiler_type=none
5244  if test "$am_compiler_list" = ""; then
5245     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5246  fi
5247  am__universal=false
5248  case " $depcc " in #(
5249     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5250     esac
5251
5252  for depmode in $am_compiler_list; do
5253    # Setup a source with many dependencies, because some compilers
5254    # like to wrap large dependency lists on column 80 (with \), and
5255    # we should not choose a depcomp mode which is confused by this.
5256    #
5257    # We need to recreate these files for each test, as the compiler may
5258    # overwrite some of them when testing with obscure command lines.
5259    # This happens at least with the AIX C compiler.
5260    : > sub/conftest.c
5261    for i in 1 2 3 4 5 6; do
5262      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5263      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5264      # Solaris 10 /bin/sh.
5265      echo '/* dummy */' > sub/conftst$i.h
5266    done
5267    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5268
5269    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5270    # mode.  It turns out that the SunPro C++ compiler does not properly
5271    # handle '-M -o', and we need to detect this.  Also, some Intel
5272    # versions had trouble with output in subdirs.
5273    am__obj=sub/conftest.${OBJEXT-o}
5274    am__minus_obj="-o $am__obj"
5275    case $depmode in
5276    gcc)
5277      # This depmode causes a compiler race in universal mode.
5278      test "$am__universal" = false || continue
5279      ;;
5280    nosideeffect)
5281      # After this tag, mechanisms are not by side-effect, so they'll
5282      # only be used when explicitly requested.
5283      if test "x$enable_dependency_tracking" = xyes; then
5284	continue
5285      else
5286	break
5287      fi
5288      ;;
5289    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5290      # This compiler won't grok '-c -o', but also, the minuso test has
5291      # not run yet.  These depmodes are late enough in the game, and
5292      # so weak that their functioning should not be impacted.
5293      am__obj=conftest.${OBJEXT-o}
5294      am__minus_obj=
5295      ;;
5296    none) break ;;
5297    esac
5298    if depmode=$depmode \
5299       source=sub/conftest.c object=$am__obj \
5300       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5301       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5302         >/dev/null 2>conftest.err &&
5303       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5304       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5305       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5306       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5307      # icc doesn't choke on unknown options, it will just issue warnings
5308      # or remarks (even with -Werror).  So we grep stderr for any message
5309      # that says an option was ignored or not supported.
5310      # When given -MP, icc 7.0 and 7.1 complain thusly:
5311      #   icc: Command line warning: ignoring option '-M'; no argument required
5312      # The diagnosis changed in icc 8.0:
5313      #   icc: Command line remark: option '-MP' not supported
5314      if (grep 'ignoring option' conftest.err ||
5315          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5316        am_cv_CC_dependencies_compiler_type=$depmode
5317        break
5318      fi
5319    fi
5320  done
5321
5322  cd ..
5323  rm -rf conftest.dir
5324else
5325  am_cv_CC_dependencies_compiler_type=none
5326fi
5327
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5330$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5331CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5332
5333 if
5334  test "x$enable_dependency_tracking" != xno \
5335  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5336  am__fastdepCC_TRUE=
5337  am__fastdepCC_FALSE='#'
5338else
5339  am__fastdepCC_TRUE='#'
5340  am__fastdepCC_FALSE=
5341fi
5342
5343
5344
5345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351$as_echo_n "checking how to run the C preprocessor... " >&6; }
5352# On Suns, sometimes $CPP names a directory.
5353if test -n "$CPP" && test -d "$CPP"; then
5354  CPP=
5355fi
5356if test -z "$CPP"; then
5357  if ${ac_cv_prog_CPP+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360      # Double quotes because CPP needs to be expanded
5361    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5362    do
5363      ac_preproc_ok=false
5364for ac_c_preproc_warn_flag in '' yes
5365do
5366  # Use a header file that comes with gcc, so configuring glibc
5367  # with a fresh cross-compiler works.
5368  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369  # <limits.h> exists even on freestanding compilers.
5370  # On the NeXT, cc -E runs the code through the compiler's parser,
5371  # not just through cpp. "Syntax error" is here to catch this case.
5372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h.  */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379		     Syntax error
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383else
5384  # Broken: fails on valid input.
5385continue
5386fi
5387rm -f conftest.err conftest.i conftest.$ac_ext
5388
5389  # OK, works on sane cases.  Now check whether nonexistent headers
5390  # can be detected and how.
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393#include <ac_nonexistent.h>
5394_ACEOF
5395if ac_fn_c_try_cpp "$LINENO"; then :
5396  # Broken: success on invalid input.
5397continue
5398else
5399  # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
5403rm -f conftest.err conftest.i conftest.$ac_ext
5404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407rm -f conftest.i conftest.err conftest.$ac_ext
5408if $ac_preproc_ok; then :
5409  break
5410fi
5411
5412    done
5413    ac_cv_prog_CPP=$CPP
5414
5415fi
5416  CPP=$ac_cv_prog_CPP
5417else
5418  ac_cv_prog_CPP=$CPP
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421$as_echo "$CPP" >&6; }
5422ac_preproc_ok=false
5423for ac_c_preproc_warn_flag in '' yes
5424do
5425  # Use a header file that comes with gcc, so configuring glibc
5426  # with a fresh cross-compiler works.
5427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428  # <limits.h> exists even on freestanding compilers.
5429  # On the NeXT, cc -E runs the code through the compiler's parser,
5430  # not just through cpp. "Syntax error" is here to catch this case.
5431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433#ifdef __STDC__
5434# include <limits.h>
5435#else
5436# include <assert.h>
5437#endif
5438		     Syntax error
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441
5442else
5443  # Broken: fails on valid input.
5444continue
5445fi
5446rm -f conftest.err conftest.i conftest.$ac_ext
5447
5448  # OK, works on sane cases.  Now check whether nonexistent headers
5449  # can be detected and how.
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452#include <ac_nonexistent.h>
5453_ACEOF
5454if ac_fn_c_try_cpp "$LINENO"; then :
5455  # Broken: success on invalid input.
5456continue
5457else
5458  # Passes both tests.
5459ac_preproc_ok=:
5460break
5461fi
5462rm -f conftest.err conftest.i conftest.$ac_ext
5463
5464done
5465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466rm -f conftest.i conftest.err conftest.$ac_ext
5467if $ac_preproc_ok; then :
5468
5469else
5470  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5473See \`config.log' for more details" "$LINENO" 5; }
5474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5485if ${ac_cv_path_GREP+:} false; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  if test -z "$GREP"; then
5489  ac_path_GREP_found=false
5490  # Loop through the user's path and test for each of PROGNAME-LIST
5491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493do
5494  IFS=$as_save_IFS
5495  test -z "$as_dir" && as_dir=.
5496    for ac_prog in grep ggrep; do
5497    for ac_exec_ext in '' $ac_executable_extensions; do
5498      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5499      as_fn_executable_p "$ac_path_GREP" || continue
5500# Check for GNU ac_path_GREP and select it if it is found.
5501  # Check for GNU $ac_path_GREP
5502case `"$ac_path_GREP" --version 2>&1` in
5503*GNU*)
5504  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5505*)
5506  ac_count=0
5507  $as_echo_n 0123456789 >"conftest.in"
5508  while :
5509  do
5510    cat "conftest.in" "conftest.in" >"conftest.tmp"
5511    mv "conftest.tmp" "conftest.in"
5512    cp "conftest.in" "conftest.nl"
5513    $as_echo 'GREP' >> "conftest.nl"
5514    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516    as_fn_arith $ac_count + 1 && ac_count=$as_val
5517    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5518      # Best one so far, save it but keep looking for a better one
5519      ac_cv_path_GREP="$ac_path_GREP"
5520      ac_path_GREP_max=$ac_count
5521    fi
5522    # 10*(2^10) chars as input seems more than enough
5523    test $ac_count -gt 10 && break
5524  done
5525  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526esac
5527
5528      $ac_path_GREP_found && break 3
5529    done
5530  done
5531  done
5532IFS=$as_save_IFS
5533  if test -z "$ac_cv_path_GREP"; then
5534    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5535  fi
5536else
5537  ac_cv_path_GREP=$GREP
5538fi
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5542$as_echo "$ac_cv_path_GREP" >&6; }
5543 GREP="$ac_cv_path_GREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5547$as_echo_n "checking for egrep... " >&6; }
5548if ${ac_cv_path_EGREP+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5552   then ac_cv_path_EGREP="$GREP -E"
5553   else
5554     if test -z "$EGREP"; then
5555  ac_path_EGREP_found=false
5556  # Loop through the user's path and test for each of PROGNAME-LIST
5557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559do
5560  IFS=$as_save_IFS
5561  test -z "$as_dir" && as_dir=.
5562    for ac_prog in egrep; do
5563    for ac_exec_ext in '' $ac_executable_extensions; do
5564      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5565      as_fn_executable_p "$ac_path_EGREP" || continue
5566# Check for GNU ac_path_EGREP and select it if it is found.
5567  # Check for GNU $ac_path_EGREP
5568case `"$ac_path_EGREP" --version 2>&1` in
5569*GNU*)
5570  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5571*)
5572  ac_count=0
5573  $as_echo_n 0123456789 >"conftest.in"
5574  while :
5575  do
5576    cat "conftest.in" "conftest.in" >"conftest.tmp"
5577    mv "conftest.tmp" "conftest.in"
5578    cp "conftest.in" "conftest.nl"
5579    $as_echo 'EGREP' >> "conftest.nl"
5580    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582    as_fn_arith $ac_count + 1 && ac_count=$as_val
5583    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5584      # Best one so far, save it but keep looking for a better one
5585      ac_cv_path_EGREP="$ac_path_EGREP"
5586      ac_path_EGREP_max=$ac_count
5587    fi
5588    # 10*(2^10) chars as input seems more than enough
5589    test $ac_count -gt 10 && break
5590  done
5591  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592esac
5593
5594      $ac_path_EGREP_found && break 3
5595    done
5596  done
5597  done
5598IFS=$as_save_IFS
5599  if test -z "$ac_cv_path_EGREP"; then
5600    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5601  fi
5602else
5603  ac_cv_path_EGREP=$EGREP
5604fi
5605
5606   fi
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5609$as_echo "$ac_cv_path_EGREP" >&6; }
5610 EGREP="$ac_cv_path_EGREP"
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5614$as_echo_n "checking for ANSI C header files... " >&6; }
5615if ${ac_cv_header_stdc+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h.  */
5620#include <stdlib.h>
5621#include <stdarg.h>
5622#include <string.h>
5623#include <float.h>
5624
5625int
5626main ()
5627{
5628
5629  ;
5630  return 0;
5631}
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"; then :
5634  ac_cv_header_stdc=yes
5635else
5636  ac_cv_header_stdc=no
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640if test $ac_cv_header_stdc = yes; then
5641  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644#include <string.h>
5645
5646_ACEOF
5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648  $EGREP "memchr" >/dev/null 2>&1; then :
5649
5650else
5651  ac_cv_header_stdc=no
5652fi
5653rm -f conftest*
5654
5655fi
5656
5657if test $ac_cv_header_stdc = yes; then
5658  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661#include <stdlib.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665  $EGREP "free" >/dev/null 2>&1; then :
5666
5667else
5668  ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676  if test "$cross_compiling" = yes; then :
5677  :
5678else
5679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681#include <ctype.h>
5682#include <stdlib.h>
5683#if ((' ' & 0x0FF) == 0x020)
5684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686#else
5687# define ISLOWER(c) \
5688		   (('a' <= (c) && (c) <= 'i') \
5689		     || ('j' <= (c) && (c) <= 'r') \
5690		     || ('s' <= (c) && (c) <= 'z'))
5691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692#endif
5693
5694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695int
5696main ()
5697{
5698  int i;
5699  for (i = 0; i < 256; i++)
5700    if (XOR (islower (i), ISLOWER (i))
5701	|| toupper (i) != TOUPPER (i))
5702      return 2;
5703  return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_run "$LINENO"; then :
5707
5708else
5709  ac_cv_header_stdc=no
5710fi
5711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712  conftest.$ac_objext conftest.beam conftest.$ac_ext
5713fi
5714
5715fi
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5718$as_echo "$ac_cv_header_stdc" >&6; }
5719if test $ac_cv_header_stdc = yes; then
5720
5721$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5722
5723fi
5724
5725# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5727		  inttypes.h stdint.h unistd.h
5728do :
5729  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5731"
5732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5733  cat >>confdefs.h <<_ACEOF
5734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735_ACEOF
5736
5737fi
5738
5739done
5740
5741
5742
5743  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5744if test "x$ac_cv_header_minix_config_h" = xyes; then :
5745  MINIX=yes
5746else
5747  MINIX=
5748fi
5749
5750
5751  if test "$MINIX" = yes; then
5752
5753$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5754
5755
5756$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5757
5758
5759$as_echo "#define _MINIX 1" >>confdefs.h
5760
5761  fi
5762
5763
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5765$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5766if ${ac_cv_safe_to_define___extensions__+:} false; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h.  */
5771
5772#         define __EXTENSIONS__ 1
5773          $ac_includes_default
5774int
5775main ()
5776{
5777
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"; then :
5783  ac_cv_safe_to_define___extensions__=yes
5784else
5785  ac_cv_safe_to_define___extensions__=no
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5790$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5791  test $ac_cv_safe_to_define___extensions__ = yes &&
5792    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5793
5794  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5795
5796  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5797
5798  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5799
5800  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5801
5802
5803
5804# Check for programs
5805ac_ext=c
5806ac_cpp='$CPP $CPPFLAGS'
5807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810if test -n "$ac_tool_prefix"; then
5811  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}gcc; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if ${ac_cv_prog_CC+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  if test -n "$CC"; then
5819  ac_cv_prog_CC="$CC" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838CC=$ac_cv_prog_CC
5839if test -n "$CC"; then
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5841$as_echo "$CC" >&6; }
5842else
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_CC"; then
5850  ac_ct_CC=$CC
5851  # Extract the first word of "gcc", so it can be a program name with args.
5852set dummy gcc; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if ${ac_cv_prog_ac_ct_CC+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if test -n "$ac_ct_CC"; then
5859  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  test -z "$as_dir" && as_dir=.
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868    ac_cv_prog_ac_ct_CC="gcc"
5869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_CC=$ac_cv_prog_ac_ct_CC
5879if test -n "$ac_ct_CC"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5881$as_echo "$ac_ct_CC" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887  if test "x$ac_ct_CC" = x; then
5888    CC=""
5889  else
5890    case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896    CC=$ac_ct_CC
5897  fi
5898else
5899  CC="$ac_cv_prog_CC"
5900fi
5901
5902if test -z "$CC"; then
5903          if test -n "$ac_tool_prefix"; then
5904    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5905set dummy ${ac_tool_prefix}cc; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if ${ac_cv_prog_CC+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911  if test -n "$CC"; then
5912  ac_cv_prog_CC="$CC" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917  IFS=$as_save_IFS
5918  test -z "$as_dir" && as_dir=.
5919    for ac_exec_ext in '' $ac_executable_extensions; do
5920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921    ac_cv_prog_CC="${ac_tool_prefix}cc"
5922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926  done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931CC=$ac_cv_prog_CC
5932if test -n "$CC"; then
5933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5934$as_echo "$CC" >&6; }
5935else
5936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941  fi
5942fi
5943if test -z "$CC"; then
5944  # Extract the first word of "cc", so it can be a program name with args.
5945set dummy cc; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if ${ac_cv_prog_CC+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$CC"; then
5952  ac_cv_prog_CC="$CC" # Let the user override the test.
5953else
5954  ac_prog_rejected=no
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960    for ac_exec_ext in '' $ac_executable_extensions; do
5961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5963       ac_prog_rejected=yes
5964       continue
5965     fi
5966    ac_cv_prog_CC="cc"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974if test $ac_prog_rejected = yes; then
5975  # We found a bogon in the path, so make sure we never use it.
5976  set dummy $ac_cv_prog_CC
5977  shift
5978  if test $# != 0; then
5979    # We chose a different compiler from the bogus one.
5980    # However, it has the same basename, so the bogon will be chosen
5981    # first if we set CC to just the basename; use the full file name.
5982    shift
5983    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5984  fi
5985fi
5986fi
5987fi
5988CC=$ac_cv_prog_CC
5989if test -n "$CC"; then
5990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5991$as_echo "$CC" >&6; }
5992else
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995fi
5996
5997
5998fi
5999if test -z "$CC"; then
6000  if test -n "$ac_tool_prefix"; then
6001  for ac_prog in cl.exe
6002  do
6003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if ${ac_cv_prog_CC+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if test -n "$CC"; then
6011  ac_cv_prog_CC="$CC" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018    for ac_exec_ext in '' $ac_executable_extensions; do
6019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025  done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030CC=$ac_cv_prog_CC
6031if test -n "$CC"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6033$as_echo "$CC" >&6; }
6034else
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040    test -n "$CC" && break
6041  done
6042fi
6043if test -z "$CC"; then
6044  ac_ct_CC=$CC
6045  for ac_prog in cl.exe
6046do
6047  # Extract the first word of "$ac_prog", so it can be a program name with args.
6048set dummy $ac_prog; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if ${ac_cv_prog_ac_ct_CC+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  if test -n "$ac_ct_CC"; then
6055  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060  IFS=$as_save_IFS
6061  test -z "$as_dir" && as_dir=.
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064    ac_cv_prog_ac_ct_CC="$ac_prog"
6065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069  done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074ac_ct_CC=$ac_cv_prog_ac_ct_CC
6075if test -n "$ac_ct_CC"; then
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6077$as_echo "$ac_ct_CC" >&6; }
6078else
6079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084  test -n "$ac_ct_CC" && break
6085done
6086
6087  if test "x$ac_ct_CC" = x; then
6088    CC=""
6089  else
6090    case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096    CC=$ac_ct_CC
6097  fi
6098fi
6099
6100fi
6101
6102
6103test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6105as_fn_error $? "no acceptable C compiler found in \$PATH
6106See \`config.log' for more details" "$LINENO" 5; }
6107
6108# Provide some information about the compiler.
6109$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6110set X $ac_compile
6111ac_compiler=$2
6112for ac_option in --version -v -V -qversion; do
6113  { { ac_try="$ac_compiler $ac_option >&5"
6114case "(($ac_try" in
6115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116  *) ac_try_echo=$ac_try;;
6117esac
6118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6119$as_echo "$ac_try_echo"; } >&5
6120  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6121  ac_status=$?
6122  if test -s conftest.err; then
6123    sed '10a\
6124... rest of stderr output deleted ...
6125         10q' conftest.err >conftest.er1
6126    cat conftest.er1 >&5
6127  fi
6128  rm -f conftest.er1 conftest.err
6129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130  test $ac_status = 0; }
6131done
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6134$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6135if ${ac_cv_c_compiler_gnu+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140
6141int
6142main ()
6143{
6144#ifndef __GNUC__
6145       choke me
6146#endif
6147
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153  ac_compiler_gnu=yes
6154else
6155  ac_compiler_gnu=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158ac_cv_c_compiler_gnu=$ac_compiler_gnu
6159
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6162$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6163if test $ac_compiler_gnu = yes; then
6164  GCC=yes
6165else
6166  GCC=
6167fi
6168ac_test_CFLAGS=${CFLAGS+set}
6169ac_save_CFLAGS=$CFLAGS
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6171$as_echo_n "checking whether $CC accepts -g... " >&6; }
6172if ${ac_cv_prog_cc_g+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  ac_save_c_werror_flag=$ac_c_werror_flag
6176   ac_c_werror_flag=yes
6177   ac_cv_prog_cc_g=no
6178   CFLAGS="-g"
6179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181
6182int
6183main ()
6184{
6185
6186  ;
6187  return 0;
6188}
6189_ACEOF
6190if ac_fn_c_try_compile "$LINENO"; then :
6191  ac_cv_prog_cc_g=yes
6192else
6193  CFLAGS=""
6194      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h.  */
6196
6197int
6198main ()
6199{
6200
6201  ;
6202  return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206
6207else
6208  ac_c_werror_flag=$ac_save_c_werror_flag
6209	 CFLAGS="-g"
6210	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h.  */
6212
6213int
6214main ()
6215{
6216
6217  ;
6218  return 0;
6219}
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222  ac_cv_prog_cc_g=yes
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229   ac_c_werror_flag=$ac_save_c_werror_flag
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6232$as_echo "$ac_cv_prog_cc_g" >&6; }
6233if test "$ac_test_CFLAGS" = set; then
6234  CFLAGS=$ac_save_CFLAGS
6235elif test $ac_cv_prog_cc_g = yes; then
6236  if test "$GCC" = yes; then
6237    CFLAGS="-g -O2"
6238  else
6239    CFLAGS="-g"
6240  fi
6241else
6242  if test "$GCC" = yes; then
6243    CFLAGS="-O2"
6244  else
6245    CFLAGS=
6246  fi
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6250if ${ac_cv_prog_cc_c89+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  ac_cv_prog_cc_c89=no
6254ac_save_CC=$CC
6255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h.  */
6257#include <stdarg.h>
6258#include <stdio.h>
6259struct stat;
6260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6261struct buf { int x; };
6262FILE * (*rcsopen) (struct buf *, struct stat *, int);
6263static char *e (p, i)
6264     char **p;
6265     int i;
6266{
6267  return p[i];
6268}
6269static char *f (char * (*g) (char **, int), char **p, ...)
6270{
6271  char *s;
6272  va_list v;
6273  va_start (v,p);
6274  s = g (p, va_arg (v,int));
6275  va_end (v);
6276  return s;
6277}
6278
6279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6280   function prototypes and stuff, but not '\xHH' hex character constants.
6281   These don't provoke an error unfortunately, instead are silently treated
6282   as 'x'.  The following induces an error, until -std is added to get
6283   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6284   array size at least.  It's necessary to write '\x00'==0 to get something
6285   that's true only with -std.  */
6286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6287
6288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6289   inside strings and character constants.  */
6290#define FOO(x) 'x'
6291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6292
6293int test (int i, double x);
6294struct s1 {int (*f) (int a);};
6295struct s2 {int (*f) (double a);};
6296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6297int argc;
6298char **argv;
6299int
6300main ()
6301{
6302return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6303  ;
6304  return 0;
6305}
6306_ACEOF
6307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6308	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6309do
6310  CC="$ac_save_CC $ac_arg"
6311  if ac_fn_c_try_compile "$LINENO"; then :
6312  ac_cv_prog_cc_c89=$ac_arg
6313fi
6314rm -f core conftest.err conftest.$ac_objext
6315  test "x$ac_cv_prog_cc_c89" != "xno" && break
6316done
6317rm -f conftest.$ac_ext
6318CC=$ac_save_CC
6319
6320fi
6321# AC_CACHE_VAL
6322case "x$ac_cv_prog_cc_c89" in
6323  x)
6324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6325$as_echo "none needed" >&6; } ;;
6326  xno)
6327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6328$as_echo "unsupported" >&6; } ;;
6329  *)
6330    CC="$CC $ac_cv_prog_cc_c89"
6331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6333esac
6334if test "x$ac_cv_prog_cc_c89" != xno; then :
6335
6336fi
6337
6338ac_ext=c
6339ac_cpp='$CPP $CPPFLAGS'
6340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343
6344depcc="$CC"   am_compiler_list=
6345
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6347$as_echo_n "checking dependency style of $depcc... " >&6; }
6348if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6352  # We make a subdir and do the tests there.  Otherwise we can end up
6353  # making bogus files that we don't know about and never remove.  For
6354  # instance it was reported that on HP-UX the gcc test will end up
6355  # making a dummy file named 'D' -- because '-MD' means "put the output
6356  # in D".
6357  rm -rf conftest.dir
6358  mkdir conftest.dir
6359  # Copy depcomp to subdir because otherwise we won't find it if we're
6360  # using a relative directory.
6361  cp "$am_depcomp" conftest.dir
6362  cd conftest.dir
6363  # We will build objects and dependencies in a subdirectory because
6364  # it helps to detect inapplicable dependency modes.  For instance
6365  # both Tru64's cc and ICC support -MD to output dependencies as a
6366  # side effect of compilation, but ICC will put the dependencies in
6367  # the current directory while Tru64 will put them in the object
6368  # directory.
6369  mkdir sub
6370
6371  am_cv_CC_dependencies_compiler_type=none
6372  if test "$am_compiler_list" = ""; then
6373     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6374  fi
6375  am__universal=false
6376  case " $depcc " in #(
6377     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6378     esac
6379
6380  for depmode in $am_compiler_list; do
6381    # Setup a source with many dependencies, because some compilers
6382    # like to wrap large dependency lists on column 80 (with \), and
6383    # we should not choose a depcomp mode which is confused by this.
6384    #
6385    # We need to recreate these files for each test, as the compiler may
6386    # overwrite some of them when testing with obscure command lines.
6387    # This happens at least with the AIX C compiler.
6388    : > sub/conftest.c
6389    for i in 1 2 3 4 5 6; do
6390      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6391      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6392      # Solaris 10 /bin/sh.
6393      echo '/* dummy */' > sub/conftst$i.h
6394    done
6395    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6396
6397    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6398    # mode.  It turns out that the SunPro C++ compiler does not properly
6399    # handle '-M -o', and we need to detect this.  Also, some Intel
6400    # versions had trouble with output in subdirs.
6401    am__obj=sub/conftest.${OBJEXT-o}
6402    am__minus_obj="-o $am__obj"
6403    case $depmode in
6404    gcc)
6405      # This depmode causes a compiler race in universal mode.
6406      test "$am__universal" = false || continue
6407      ;;
6408    nosideeffect)
6409      # After this tag, mechanisms are not by side-effect, so they'll
6410      # only be used when explicitly requested.
6411      if test "x$enable_dependency_tracking" = xyes; then
6412	continue
6413      else
6414	break
6415      fi
6416      ;;
6417    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6418      # This compiler won't grok '-c -o', but also, the minuso test has
6419      # not run yet.  These depmodes are late enough in the game, and
6420      # so weak that their functioning should not be impacted.
6421      am__obj=conftest.${OBJEXT-o}
6422      am__minus_obj=
6423      ;;
6424    none) break ;;
6425    esac
6426    if depmode=$depmode \
6427       source=sub/conftest.c object=$am__obj \
6428       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6429       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6430         >/dev/null 2>conftest.err &&
6431       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6432       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6433       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6434       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6435      # icc doesn't choke on unknown options, it will just issue warnings
6436      # or remarks (even with -Werror).  So we grep stderr for any message
6437      # that says an option was ignored or not supported.
6438      # When given -MP, icc 7.0 and 7.1 complain thusly:
6439      #   icc: Command line warning: ignoring option '-M'; no argument required
6440      # The diagnosis changed in icc 8.0:
6441      #   icc: Command line remark: option '-MP' not supported
6442      if (grep 'ignoring option' conftest.err ||
6443          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6444        am_cv_CC_dependencies_compiler_type=$depmode
6445        break
6446      fi
6447    fi
6448  done
6449
6450  cd ..
6451  rm -rf conftest.dir
6452else
6453  am_cv_CC_dependencies_compiler_type=none
6454fi
6455
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6458$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6459CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6460
6461 if
6462  test "x$enable_dependency_tracking" != xno \
6463  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6464  am__fastdepCC_TRUE=
6465  am__fastdepCC_FALSE='#'
6466else
6467  am__fastdepCC_TRUE='#'
6468  am__fastdepCC_FALSE=
6469fi
6470
6471
6472ac_ext=cpp
6473ac_cpp='$CXXCPP $CPPFLAGS'
6474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6477if test -z "$CXX"; then
6478  if test -n "$CCC"; then
6479    CXX=$CCC
6480  else
6481    if test -n "$ac_tool_prefix"; then
6482  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6483  do
6484    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_CXX+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$CXX"; then
6492  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511CXX=$ac_cv_prog_CXX
6512if test -n "$CXX"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6514$as_echo "$CXX" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521    test -n "$CXX" && break
6522  done
6523fi
6524if test -z "$CXX"; then
6525  ac_ct_CXX=$CXX
6526  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6527do
6528  # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  if test -n "$ac_ct_CXX"; then
6536  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_ac_ct_CXX="$ac_prog"
6546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6556if test -n "$ac_ct_CXX"; then
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6558$as_echo "$ac_ct_CXX" >&6; }
6559else
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565  test -n "$ac_ct_CXX" && break
6566done
6567
6568  if test "x$ac_ct_CXX" = x; then
6569    CXX="g++"
6570  else
6571    case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577    CXX=$ac_ct_CXX
6578  fi
6579fi
6580
6581  fi
6582fi
6583# Provide some information about the compiler.
6584$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6585set X $ac_compile
6586ac_compiler=$2
6587for ac_option in --version -v -V -qversion; do
6588  { { ac_try="$ac_compiler $ac_option >&5"
6589case "(($ac_try" in
6590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591  *) ac_try_echo=$ac_try;;
6592esac
6593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6594$as_echo "$ac_try_echo"; } >&5
6595  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6596  ac_status=$?
6597  if test -s conftest.err; then
6598    sed '10a\
6599... rest of stderr output deleted ...
6600         10q' conftest.err >conftest.er1
6601    cat conftest.er1 >&5
6602  fi
6603  rm -f conftest.er1 conftest.err
6604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605  test $ac_status = 0; }
6606done
6607
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6609$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6610if ${ac_cv_cxx_compiler_gnu+:} false; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h.  */
6615
6616int
6617main ()
6618{
6619#ifndef __GNUC__
6620       choke me
6621#endif
6622
6623  ;
6624  return 0;
6625}
6626_ACEOF
6627if ac_fn_cxx_try_compile "$LINENO"; then :
6628  ac_compiler_gnu=yes
6629else
6630  ac_compiler_gnu=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6634
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6637$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6638if test $ac_compiler_gnu = yes; then
6639  GXX=yes
6640else
6641  GXX=
6642fi
6643ac_test_CXXFLAGS=${CXXFLAGS+set}
6644ac_save_CXXFLAGS=$CXXFLAGS
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6646$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6647if ${ac_cv_prog_cxx_g+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6651   ac_cxx_werror_flag=yes
6652   ac_cv_prog_cxx_g=no
6653   CXXFLAGS="-g"
6654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656
6657int
6658main ()
6659{
6660
6661  ;
6662  return 0;
6663}
6664_ACEOF
6665if ac_fn_cxx_try_compile "$LINENO"; then :
6666  ac_cv_prog_cxx_g=yes
6667else
6668  CXXFLAGS=""
6669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671
6672int
6673main ()
6674{
6675
6676  ;
6677  return 0;
6678}
6679_ACEOF
6680if ac_fn_cxx_try_compile "$LINENO"; then :
6681
6682else
6683  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6684	 CXXFLAGS="-g"
6685	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686/* end confdefs.h.  */
6687
6688int
6689main ()
6690{
6691
6692  ;
6693  return 0;
6694}
6695_ACEOF
6696if ac_fn_cxx_try_compile "$LINENO"; then :
6697  ac_cv_prog_cxx_g=yes
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6707$as_echo "$ac_cv_prog_cxx_g" >&6; }
6708if test "$ac_test_CXXFLAGS" = set; then
6709  CXXFLAGS=$ac_save_CXXFLAGS
6710elif test $ac_cv_prog_cxx_g = yes; then
6711  if test "$GXX" = yes; then
6712    CXXFLAGS="-g -O2"
6713  else
6714    CXXFLAGS="-g"
6715  fi
6716else
6717  if test "$GXX" = yes; then
6718    CXXFLAGS="-O2"
6719  else
6720    CXXFLAGS=
6721  fi
6722fi
6723ac_ext=c
6724ac_cpp='$CPP $CPPFLAGS'
6725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
6729depcc="$CXX"  am_compiler_list=
6730
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6732$as_echo_n "checking dependency style of $depcc... " >&6; }
6733if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6734  $as_echo_n "(cached) " >&6
6735else
6736  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6737  # We make a subdir and do the tests there.  Otherwise we can end up
6738  # making bogus files that we don't know about and never remove.  For
6739  # instance it was reported that on HP-UX the gcc test will end up
6740  # making a dummy file named 'D' -- because '-MD' means "put the output
6741  # in D".
6742  rm -rf conftest.dir
6743  mkdir conftest.dir
6744  # Copy depcomp to subdir because otherwise we won't find it if we're
6745  # using a relative directory.
6746  cp "$am_depcomp" conftest.dir
6747  cd conftest.dir
6748  # We will build objects and dependencies in a subdirectory because
6749  # it helps to detect inapplicable dependency modes.  For instance
6750  # both Tru64's cc and ICC support -MD to output dependencies as a
6751  # side effect of compilation, but ICC will put the dependencies in
6752  # the current directory while Tru64 will put them in the object
6753  # directory.
6754  mkdir sub
6755
6756  am_cv_CXX_dependencies_compiler_type=none
6757  if test "$am_compiler_list" = ""; then
6758     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6759  fi
6760  am__universal=false
6761  case " $depcc " in #(
6762     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6763     esac
6764
6765  for depmode in $am_compiler_list; do
6766    # Setup a source with many dependencies, because some compilers
6767    # like to wrap large dependency lists on column 80 (with \), and
6768    # we should not choose a depcomp mode which is confused by this.
6769    #
6770    # We need to recreate these files for each test, as the compiler may
6771    # overwrite some of them when testing with obscure command lines.
6772    # This happens at least with the AIX C compiler.
6773    : > sub/conftest.c
6774    for i in 1 2 3 4 5 6; do
6775      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6776      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6777      # Solaris 10 /bin/sh.
6778      echo '/* dummy */' > sub/conftst$i.h
6779    done
6780    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6781
6782    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6783    # mode.  It turns out that the SunPro C++ compiler does not properly
6784    # handle '-M -o', and we need to detect this.  Also, some Intel
6785    # versions had trouble with output in subdirs.
6786    am__obj=sub/conftest.${OBJEXT-o}
6787    am__minus_obj="-o $am__obj"
6788    case $depmode in
6789    gcc)
6790      # This depmode causes a compiler race in universal mode.
6791      test "$am__universal" = false || continue
6792      ;;
6793    nosideeffect)
6794      # After this tag, mechanisms are not by side-effect, so they'll
6795      # only be used when explicitly requested.
6796      if test "x$enable_dependency_tracking" = xyes; then
6797	continue
6798      else
6799	break
6800      fi
6801      ;;
6802    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6803      # This compiler won't grok '-c -o', but also, the minuso test has
6804      # not run yet.  These depmodes are late enough in the game, and
6805      # so weak that their functioning should not be impacted.
6806      am__obj=conftest.${OBJEXT-o}
6807      am__minus_obj=
6808      ;;
6809    none) break ;;
6810    esac
6811    if depmode=$depmode \
6812       source=sub/conftest.c object=$am__obj \
6813       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6814       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6815         >/dev/null 2>conftest.err &&
6816       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6817       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6818       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6819       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6820      # icc doesn't choke on unknown options, it will just issue warnings
6821      # or remarks (even with -Werror).  So we grep stderr for any message
6822      # that says an option was ignored or not supported.
6823      # When given -MP, icc 7.0 and 7.1 complain thusly:
6824      #   icc: Command line warning: ignoring option '-M'; no argument required
6825      # The diagnosis changed in icc 8.0:
6826      #   icc: Command line remark: option '-MP' not supported
6827      if (grep 'ignoring option' conftest.err ||
6828          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6829        am_cv_CXX_dependencies_compiler_type=$depmode
6830        break
6831      fi
6832    fi
6833  done
6834
6835  cd ..
6836  rm -rf conftest.dir
6837else
6838  am_cv_CXX_dependencies_compiler_type=none
6839fi
6840
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6843$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6844CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6845
6846 if
6847  test "x$enable_dependency_tracking" != xno \
6848  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6849  am__fastdepCXX_TRUE=
6850  am__fastdepCXX_FALSE='#'
6851else
6852  am__fastdepCXX_TRUE='#'
6853  am__fastdepCXX_FALSE=
6854fi
6855
6856
6857   case $ac_cv_prog_cc_stdc in #(
6858  no) :
6859    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6860  *) :
6861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6862$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6863if ${ac_cv_prog_cc_c99+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  ac_cv_prog_cc_c99=no
6867ac_save_CC=$CC
6868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870#include <stdarg.h>
6871#include <stdbool.h>
6872#include <stdlib.h>
6873#include <wchar.h>
6874#include <stdio.h>
6875
6876// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6877#define debug(...) fprintf (stderr, __VA_ARGS__)
6878#define showlist(...) puts (#__VA_ARGS__)
6879#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6880static void
6881test_varargs_macros (void)
6882{
6883  int x = 1234;
6884  int y = 5678;
6885  debug ("Flag");
6886  debug ("X = %d\n", x);
6887  showlist (The first, second, and third items.);
6888  report (x>y, "x is %d but y is %d", x, y);
6889}
6890
6891// Check long long types.
6892#define BIG64 18446744073709551615ull
6893#define BIG32 4294967295ul
6894#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6895#if !BIG_OK
6896  your preprocessor is broken;
6897#endif
6898#if BIG_OK
6899#else
6900  your preprocessor is broken;
6901#endif
6902static long long int bignum = -9223372036854775807LL;
6903static unsigned long long int ubignum = BIG64;
6904
6905struct incomplete_array
6906{
6907  int datasize;
6908  double data[];
6909};
6910
6911struct named_init {
6912  int number;
6913  const wchar_t *name;
6914  double average;
6915};
6916
6917typedef const char *ccp;
6918
6919static inline int
6920test_restrict (ccp restrict text)
6921{
6922  // See if C++-style comments work.
6923  // Iterate through items via the restricted pointer.
6924  // Also check for declarations in for loops.
6925  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6926    continue;
6927  return 0;
6928}
6929
6930// Check varargs and va_copy.
6931static void
6932test_varargs (const char *format, ...)
6933{
6934  va_list args;
6935  va_start (args, format);
6936  va_list args_copy;
6937  va_copy (args_copy, args);
6938
6939  const char *str;
6940  int number;
6941  float fnumber;
6942
6943  while (*format)
6944    {
6945      switch (*format++)
6946	{
6947	case 's': // string
6948	  str = va_arg (args_copy, const char *);
6949	  break;
6950	case 'd': // int
6951	  number = va_arg (args_copy, int);
6952	  break;
6953	case 'f': // float
6954	  fnumber = va_arg (args_copy, double);
6955	  break;
6956	default:
6957	  break;
6958	}
6959    }
6960  va_end (args_copy);
6961  va_end (args);
6962}
6963
6964int
6965main ()
6966{
6967
6968  // Check bool.
6969  _Bool success = false;
6970
6971  // Check restrict.
6972  if (test_restrict ("String literal") == 0)
6973    success = true;
6974  char *restrict newvar = "Another string";
6975
6976  // Check varargs.
6977  test_varargs ("s, d' f .", "string", 65, 34.234);
6978  test_varargs_macros ();
6979
6980  // Check flexible array members.
6981  struct incomplete_array *ia =
6982    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6983  ia->datasize = 10;
6984  for (int i = 0; i < ia->datasize; ++i)
6985    ia->data[i] = i * 1.234;
6986
6987  // Check named initializers.
6988  struct named_init ni = {
6989    .number = 34,
6990    .name = L"Test wide string",
6991    .average = 543.34343,
6992  };
6993
6994  ni.number = 58;
6995
6996  int dynamic_array[ni.number];
6997  dynamic_array[ni.number - 1] = 543;
6998
6999  // work around unused variable warnings
7000  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7001	  || dynamic_array[ni.number - 1] != 543);
7002
7003  ;
7004  return 0;
7005}
7006_ACEOF
7007for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7008do
7009  CC="$ac_save_CC $ac_arg"
7010  if ac_fn_c_try_compile "$LINENO"; then :
7011  ac_cv_prog_cc_c99=$ac_arg
7012fi
7013rm -f core conftest.err conftest.$ac_objext
7014  test "x$ac_cv_prog_cc_c99" != "xno" && break
7015done
7016rm -f conftest.$ac_ext
7017CC=$ac_save_CC
7018
7019fi
7020# AC_CACHE_VAL
7021case "x$ac_cv_prog_cc_c99" in
7022  x)
7023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7024$as_echo "none needed" >&6; } ;;
7025  xno)
7026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7027$as_echo "unsupported" >&6; } ;;
7028  *)
7029    CC="$CC $ac_cv_prog_cc_c99"
7030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7031$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7032esac
7033if test "x$ac_cv_prog_cc_c99" != xno; then :
7034  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7035else
7036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7037$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7038if ${ac_cv_prog_cc_c89+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  ac_cv_prog_cc_c89=no
7042ac_save_CC=$CC
7043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h.  */
7045#include <stdarg.h>
7046#include <stdio.h>
7047struct stat;
7048/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7049struct buf { int x; };
7050FILE * (*rcsopen) (struct buf *, struct stat *, int);
7051static char *e (p, i)
7052     char **p;
7053     int i;
7054{
7055  return p[i];
7056}
7057static char *f (char * (*g) (char **, int), char **p, ...)
7058{
7059  char *s;
7060  va_list v;
7061  va_start (v,p);
7062  s = g (p, va_arg (v,int));
7063  va_end (v);
7064  return s;
7065}
7066
7067/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7068   function prototypes and stuff, but not '\xHH' hex character constants.
7069   These don't provoke an error unfortunately, instead are silently treated
7070   as 'x'.  The following induces an error, until -std is added to get
7071   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7072   array size at least.  It's necessary to write '\x00'==0 to get something
7073   that's true only with -std.  */
7074int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7075
7076/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7077   inside strings and character constants.  */
7078#define FOO(x) 'x'
7079int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7080
7081int test (int i, double x);
7082struct s1 {int (*f) (int a);};
7083struct s2 {int (*f) (double a);};
7084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7085int argc;
7086char **argv;
7087int
7088main ()
7089{
7090return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7091  ;
7092  return 0;
7093}
7094_ACEOF
7095for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7096	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7097do
7098  CC="$ac_save_CC $ac_arg"
7099  if ac_fn_c_try_compile "$LINENO"; then :
7100  ac_cv_prog_cc_c89=$ac_arg
7101fi
7102rm -f core conftest.err conftest.$ac_objext
7103  test "x$ac_cv_prog_cc_c89" != "xno" && break
7104done
7105rm -f conftest.$ac_ext
7106CC=$ac_save_CC
7107
7108fi
7109# AC_CACHE_VAL
7110case "x$ac_cv_prog_cc_c89" in
7111  x)
7112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7113$as_echo "none needed" >&6; } ;;
7114  xno)
7115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7116$as_echo "unsupported" >&6; } ;;
7117  *)
7118    CC="$CC $ac_cv_prog_cc_c89"
7119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7120$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7121esac
7122if test "x$ac_cv_prog_cc_c89" != xno; then :
7123  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7124else
7125  ac_cv_prog_cc_stdc=no
7126fi
7127
7128fi
7129 ;;
7130esac
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7132$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7133  if ${ac_cv_prog_cc_stdc+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135fi
7136
7137  case $ac_cv_prog_cc_stdc in #(
7138  no) :
7139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7140$as_echo "unsupported" >&6; } ;; #(
7141  '') :
7142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7143$as_echo "none needed" >&6; } ;; #(
7144  *) :
7145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7146$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7147esac
7148
7149ac_ext=c
7150ac_cpp='$CPP $CPPFLAGS'
7151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7155$as_echo_n "checking how to run the C preprocessor... " >&6; }
7156# On Suns, sometimes $CPP names a directory.
7157if test -n "$CPP" && test -d "$CPP"; then
7158  CPP=
7159fi
7160if test -z "$CPP"; then
7161  if ${ac_cv_prog_CPP+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164      # Double quotes because CPP needs to be expanded
7165    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7166    do
7167      ac_preproc_ok=false
7168for ac_c_preproc_warn_flag in '' yes
7169do
7170  # Use a header file that comes with gcc, so configuring glibc
7171  # with a fresh cross-compiler works.
7172  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7173  # <limits.h> exists even on freestanding compilers.
7174  # On the NeXT, cc -E runs the code through the compiler's parser,
7175  # not just through cpp. "Syntax error" is here to catch this case.
7176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177/* end confdefs.h.  */
7178#ifdef __STDC__
7179# include <limits.h>
7180#else
7181# include <assert.h>
7182#endif
7183		     Syntax error
7184_ACEOF
7185if ac_fn_c_try_cpp "$LINENO"; then :
7186
7187else
7188  # Broken: fails on valid input.
7189continue
7190fi
7191rm -f conftest.err conftest.i conftest.$ac_ext
7192
7193  # OK, works on sane cases.  Now check whether nonexistent headers
7194  # can be detected and how.
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197#include <ac_nonexistent.h>
7198_ACEOF
7199if ac_fn_c_try_cpp "$LINENO"; then :
7200  # Broken: success on invalid input.
7201continue
7202else
7203  # Passes both tests.
7204ac_preproc_ok=:
7205break
7206fi
7207rm -f conftest.err conftest.i conftest.$ac_ext
7208
7209done
7210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7211rm -f conftest.i conftest.err conftest.$ac_ext
7212if $ac_preproc_ok; then :
7213  break
7214fi
7215
7216    done
7217    ac_cv_prog_CPP=$CPP
7218
7219fi
7220  CPP=$ac_cv_prog_CPP
7221else
7222  ac_cv_prog_CPP=$CPP
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7225$as_echo "$CPP" >&6; }
7226ac_preproc_ok=false
7227for ac_c_preproc_warn_flag in '' yes
7228do
7229  # Use a header file that comes with gcc, so configuring glibc
7230  # with a fresh cross-compiler works.
7231  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7232  # <limits.h> exists even on freestanding compilers.
7233  # On the NeXT, cc -E runs the code through the compiler's parser,
7234  # not just through cpp. "Syntax error" is here to catch this case.
7235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237#ifdef __STDC__
7238# include <limits.h>
7239#else
7240# include <assert.h>
7241#endif
7242		     Syntax error
7243_ACEOF
7244if ac_fn_c_try_cpp "$LINENO"; then :
7245
7246else
7247  # Broken: fails on valid input.
7248continue
7249fi
7250rm -f conftest.err conftest.i conftest.$ac_ext
7251
7252  # OK, works on sane cases.  Now check whether nonexistent headers
7253  # can be detected and how.
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256#include <ac_nonexistent.h>
7257_ACEOF
7258if ac_fn_c_try_cpp "$LINENO"; then :
7259  # Broken: success on invalid input.
7260continue
7261else
7262  # Passes both tests.
7263ac_preproc_ok=:
7264break
7265fi
7266rm -f conftest.err conftest.i conftest.$ac_ext
7267
7268done
7269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7270rm -f conftest.i conftest.err conftest.$ac_ext
7271if $ac_preproc_ok; then :
7272
7273else
7274  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7277See \`config.log' for more details" "$LINENO" 5; }
7278fi
7279
7280ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7287$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7288if ${ac_cv_path_SED+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7292     for ac_i in 1 2 3 4 5 6 7; do
7293       ac_script="$ac_script$as_nl$ac_script"
7294     done
7295     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7296     { ac_script=; unset ac_script;}
7297     if test -z "$SED"; then
7298  ac_path_SED_found=false
7299  # Loop through the user's path and test for each of PROGNAME-LIST
7300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303  IFS=$as_save_IFS
7304  test -z "$as_dir" && as_dir=.
7305    for ac_prog in sed gsed; do
7306    for ac_exec_ext in '' $ac_executable_extensions; do
7307      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7308      as_fn_executable_p "$ac_path_SED" || continue
7309# Check for GNU ac_path_SED and select it if it is found.
7310  # Check for GNU $ac_path_SED
7311case `"$ac_path_SED" --version 2>&1` in
7312*GNU*)
7313  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7314*)
7315  ac_count=0
7316  $as_echo_n 0123456789 >"conftest.in"
7317  while :
7318  do
7319    cat "conftest.in" "conftest.in" >"conftest.tmp"
7320    mv "conftest.tmp" "conftest.in"
7321    cp "conftest.in" "conftest.nl"
7322    $as_echo '' >> "conftest.nl"
7323    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7324    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7325    as_fn_arith $ac_count + 1 && ac_count=$as_val
7326    if test $ac_count -gt ${ac_path_SED_max-0}; then
7327      # Best one so far, save it but keep looking for a better one
7328      ac_cv_path_SED="$ac_path_SED"
7329      ac_path_SED_max=$ac_count
7330    fi
7331    # 10*(2^10) chars as input seems more than enough
7332    test $ac_count -gt 10 && break
7333  done
7334  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7335esac
7336
7337      $ac_path_SED_found && break 3
7338    done
7339  done
7340  done
7341IFS=$as_save_IFS
7342  if test -z "$ac_cv_path_SED"; then
7343    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7344  fi
7345else
7346  ac_cv_path_SED=$SED
7347fi
7348
7349fi
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7351$as_echo "$ac_cv_path_SED" >&6; }
7352 SED="$ac_cv_path_SED"
7353  rm -f conftest.sed
7354
7355test -z "$SED" && SED=sed
7356Xsed="$SED -e 1s/^X//"
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7369$as_echo_n "checking for fgrep... " >&6; }
7370if ${ac_cv_path_FGREP+:} false; then :
7371  $as_echo_n "(cached) " >&6
7372else
7373  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7374   then ac_cv_path_FGREP="$GREP -F"
7375   else
7376     if test -z "$FGREP"; then
7377  ac_path_FGREP_found=false
7378  # Loop through the user's path and test for each of PROGNAME-LIST
7379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7381do
7382  IFS=$as_save_IFS
7383  test -z "$as_dir" && as_dir=.
7384    for ac_prog in fgrep; do
7385    for ac_exec_ext in '' $ac_executable_extensions; do
7386      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7387      as_fn_executable_p "$ac_path_FGREP" || continue
7388# Check for GNU ac_path_FGREP and select it if it is found.
7389  # Check for GNU $ac_path_FGREP
7390case `"$ac_path_FGREP" --version 2>&1` in
7391*GNU*)
7392  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7393*)
7394  ac_count=0
7395  $as_echo_n 0123456789 >"conftest.in"
7396  while :
7397  do
7398    cat "conftest.in" "conftest.in" >"conftest.tmp"
7399    mv "conftest.tmp" "conftest.in"
7400    cp "conftest.in" "conftest.nl"
7401    $as_echo 'FGREP' >> "conftest.nl"
7402    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7403    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7404    as_fn_arith $ac_count + 1 && ac_count=$as_val
7405    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7406      # Best one so far, save it but keep looking for a better one
7407      ac_cv_path_FGREP="$ac_path_FGREP"
7408      ac_path_FGREP_max=$ac_count
7409    fi
7410    # 10*(2^10) chars as input seems more than enough
7411    test $ac_count -gt 10 && break
7412  done
7413  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7414esac
7415
7416      $ac_path_FGREP_found && break 3
7417    done
7418  done
7419  done
7420IFS=$as_save_IFS
7421  if test -z "$ac_cv_path_FGREP"; then
7422    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7423  fi
7424else
7425  ac_cv_path_FGREP=$FGREP
7426fi
7427
7428   fi
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7431$as_echo "$ac_cv_path_FGREP" >&6; }
7432 FGREP="$ac_cv_path_FGREP"
7433
7434
7435test -z "$GREP" && GREP=grep
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7454ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7455ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7456
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7458$as_echo_n "checking how to print strings... " >&6; }
7459# Test print first, because it will be a builtin if present.
7460if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7461   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7462  ECHO='print -r --'
7463elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7464  ECHO='printf %s\n'
7465else
7466  # Use this function as a fallback that always works.
7467  func_fallback_echo ()
7468  {
7469    eval 'cat <<_LTECHO_EOF
7470$1
7471_LTECHO_EOF'
7472  }
7473  ECHO='func_fallback_echo'
7474fi
7475
7476# func_echo_all arg...
7477# Invoke $ECHO with all args, space-separated.
7478func_echo_all ()
7479{
7480    $ECHO ""
7481}
7482
7483case "$ECHO" in
7484  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7485$as_echo "printf" >&6; } ;;
7486  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7487$as_echo "print -r" >&6; } ;;
7488  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7489$as_echo "cat" >&6; } ;;
7490esac
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507# Check whether --with-gnu-ld was given.
7508if test "${with_gnu_ld+set}" = set; then :
7509  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7510else
7511  with_gnu_ld=no
7512fi
7513
7514ac_prog=ld
7515if test "$GCC" = yes; then
7516  # Check if gcc -print-prog-name=ld gives a path.
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7518$as_echo_n "checking for ld used by $CC... " >&6; }
7519  case $host in
7520  *-*-mingw*)
7521    # gcc leaves a trailing carriage return which upsets mingw
7522    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7523  *)
7524    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7525  esac
7526  case $ac_prog in
7527    # Accept absolute paths.
7528    [\\/]* | ?:[\\/]*)
7529      re_direlt='/[^/][^/]*/\.\./'
7530      # Canonicalize the pathname of ld
7531      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7532      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7533	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7534      done
7535      test -z "$LD" && LD="$ac_prog"
7536      ;;
7537  "")
7538    # If it fails, then pretend we aren't using GCC.
7539    ac_prog=ld
7540    ;;
7541  *)
7542    # If it is relative, then search for the first ld in PATH.
7543    with_gnu_ld=unknown
7544    ;;
7545  esac
7546elif test "$with_gnu_ld" = yes; then
7547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7548$as_echo_n "checking for GNU ld... " >&6; }
7549else
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7551$as_echo_n "checking for non-GNU ld... " >&6; }
7552fi
7553if ${lt_cv_path_LD+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  if test -z "$LD"; then
7557  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558  for ac_dir in $PATH; do
7559    IFS="$lt_save_ifs"
7560    test -z "$ac_dir" && ac_dir=.
7561    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7562      lt_cv_path_LD="$ac_dir/$ac_prog"
7563      # Check to see if the program is GNU ld.  I'd rather use --version,
7564      # but apparently some variants of GNU ld only accept -v.
7565      # Break only if it was the GNU/non-GNU ld that we prefer.
7566      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7567      *GNU* | *'with BFD'*)
7568	test "$with_gnu_ld" != no && break
7569	;;
7570      *)
7571	test "$with_gnu_ld" != yes && break
7572	;;
7573      esac
7574    fi
7575  done
7576  IFS="$lt_save_ifs"
7577else
7578  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7579fi
7580fi
7581
7582LD="$lt_cv_path_LD"
7583if test -n "$LD"; then
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7585$as_echo "$LD" >&6; }
7586else
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
7590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7593if ${lt_cv_prog_gnu_ld+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7597case `$LD -v 2>&1 </dev/null` in
7598*GNU* | *'with BFD'*)
7599  lt_cv_prog_gnu_ld=yes
7600  ;;
7601*)
7602  lt_cv_prog_gnu_ld=no
7603  ;;
7604esac
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7607$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7608with_gnu_ld=$lt_cv_prog_gnu_ld
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7620$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7621if ${ac_cv_prog_cc_c99+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  ac_cv_prog_cc_c99=no
7625ac_save_CC=$CC
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628#include <stdarg.h>
7629#include <stdbool.h>
7630#include <stdlib.h>
7631#include <wchar.h>
7632#include <stdio.h>
7633
7634// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7635#define debug(...) fprintf (stderr, __VA_ARGS__)
7636#define showlist(...) puts (#__VA_ARGS__)
7637#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7638static void
7639test_varargs_macros (void)
7640{
7641  int x = 1234;
7642  int y = 5678;
7643  debug ("Flag");
7644  debug ("X = %d\n", x);
7645  showlist (The first, second, and third items.);
7646  report (x>y, "x is %d but y is %d", x, y);
7647}
7648
7649// Check long long types.
7650#define BIG64 18446744073709551615ull
7651#define BIG32 4294967295ul
7652#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7653#if !BIG_OK
7654  your preprocessor is broken;
7655#endif
7656#if BIG_OK
7657#else
7658  your preprocessor is broken;
7659#endif
7660static long long int bignum = -9223372036854775807LL;
7661static unsigned long long int ubignum = BIG64;
7662
7663struct incomplete_array
7664{
7665  int datasize;
7666  double data[];
7667};
7668
7669struct named_init {
7670  int number;
7671  const wchar_t *name;
7672  double average;
7673};
7674
7675typedef const char *ccp;
7676
7677static inline int
7678test_restrict (ccp restrict text)
7679{
7680  // See if C++-style comments work.
7681  // Iterate through items via the restricted pointer.
7682  // Also check for declarations in for loops.
7683  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7684    continue;
7685  return 0;
7686}
7687
7688// Check varargs and va_copy.
7689static void
7690test_varargs (const char *format, ...)
7691{
7692  va_list args;
7693  va_start (args, format);
7694  va_list args_copy;
7695  va_copy (args_copy, args);
7696
7697  const char *str;
7698  int number;
7699  float fnumber;
7700
7701  while (*format)
7702    {
7703      switch (*format++)
7704	{
7705	case 's': // string
7706	  str = va_arg (args_copy, const char *);
7707	  break;
7708	case 'd': // int
7709	  number = va_arg (args_copy, int);
7710	  break;
7711	case 'f': // float
7712	  fnumber = va_arg (args_copy, double);
7713	  break;
7714	default:
7715	  break;
7716	}
7717    }
7718  va_end (args_copy);
7719  va_end (args);
7720}
7721
7722int
7723main ()
7724{
7725
7726  // Check bool.
7727  _Bool success = false;
7728
7729  // Check restrict.
7730  if (test_restrict ("String literal") == 0)
7731    success = true;
7732  char *restrict newvar = "Another string";
7733
7734  // Check varargs.
7735  test_varargs ("s, d' f .", "string", 65, 34.234);
7736  test_varargs_macros ();
7737
7738  // Check flexible array members.
7739  struct incomplete_array *ia =
7740    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7741  ia->datasize = 10;
7742  for (int i = 0; i < ia->datasize; ++i)
7743    ia->data[i] = i * 1.234;
7744
7745  // Check named initializers.
7746  struct named_init ni = {
7747    .number = 34,
7748    .name = L"Test wide string",
7749    .average = 543.34343,
7750  };
7751
7752  ni.number = 58;
7753
7754  int dynamic_array[ni.number];
7755  dynamic_array[ni.number - 1] = 543;
7756
7757  // work around unused variable warnings
7758  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7759	  || dynamic_array[ni.number - 1] != 543);
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7766do
7767  CC="$ac_save_CC $ac_arg"
7768  if ac_fn_c_try_compile "$LINENO"; then :
7769  ac_cv_prog_cc_c99=$ac_arg
7770fi
7771rm -f core conftest.err conftest.$ac_objext
7772  test "x$ac_cv_prog_cc_c99" != "xno" && break
7773done
7774rm -f conftest.$ac_ext
7775CC=$ac_save_CC
7776
7777fi
7778# AC_CACHE_VAL
7779case "x$ac_cv_prog_cc_c99" in
7780  x)
7781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7782$as_echo "none needed" >&6; } ;;
7783  xno)
7784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7785$as_echo "unsupported" >&6; } ;;
7786  *)
7787    CC="$CC $ac_cv_prog_cc_c99"
7788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7789$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7790esac
7791if test "x$ac_cv_prog_cc_c99" != xno; then :
7792
7793fi
7794
7795
7796if test "x$CC" != xcc; then
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7798$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7799else
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7801$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7802fi
7803set dummy $CC; ac_cc=`$as_echo "$2" |
7804		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7805if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810
7811int
7812main ()
7813{
7814
7815  ;
7816  return 0;
7817}
7818_ACEOF
7819# Make sure it works both with $CC and with simple cc.
7820# We do the test twice because some compilers refuse to overwrite an
7821# existing .o file with -o, though they will create one.
7822ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7823rm -f conftest2.*
7824if { { case "(($ac_try" in
7825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826  *) ac_try_echo=$ac_try;;
7827esac
7828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7829$as_echo "$ac_try_echo"; } >&5
7830  (eval "$ac_try") 2>&5
7831  ac_status=$?
7832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833  test $ac_status = 0; } &&
7834   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836  *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7839$as_echo "$ac_try_echo"; } >&5
7840  (eval "$ac_try") 2>&5
7841  ac_status=$?
7842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843  test $ac_status = 0; };
7844then
7845  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7846  if test "x$CC" != xcc; then
7847    # Test first that cc exists at all.
7848    if { ac_try='cc -c conftest.$ac_ext >&5'
7849  { { case "(($ac_try" in
7850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851  *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7854$as_echo "$ac_try_echo"; } >&5
7855  (eval "$ac_try") 2>&5
7856  ac_status=$?
7857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858  test $ac_status = 0; }; }; then
7859      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7860      rm -f conftest2.*
7861      if { { case "(($ac_try" in
7862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863  *) ac_try_echo=$ac_try;;
7864esac
7865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7866$as_echo "$ac_try_echo"; } >&5
7867  (eval "$ac_try") 2>&5
7868  ac_status=$?
7869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870  test $ac_status = 0; } &&
7871	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873  *) ac_try_echo=$ac_try;;
7874esac
7875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7876$as_echo "$ac_try_echo"; } >&5
7877  (eval "$ac_try") 2>&5
7878  ac_status=$?
7879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880  test $ac_status = 0; };
7881      then
7882	# cc works too.
7883	:
7884      else
7885	# cc exists but doesn't like -o.
7886	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7887      fi
7888    fi
7889  fi
7890else
7891  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7892fi
7893rm -f core conftest*
7894
7895fi
7896if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898$as_echo "yes" >&6; }
7899else
7900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
7902
7903$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7904
7905fi
7906
7907# FIXME: we rely on the cache variable name because
7908# there is no other way.
7909set dummy $CC
7910am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7911eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7912if test "$am_t" != yes; then
7913   # Losing compiler, so override with the script.
7914   # FIXME: It is wrong to rewrite CC.
7915   # But if we don't then we get into trouble of one sort or another.
7916   # A longer-term fix would be to have automake use am__CC in this case,
7917   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7918   CC="$am_aux_dir/compile $CC"
7919fi
7920
7921
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7923$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7924if ${ac_cv_cflags_warn_all+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  ac_cv_cflags_warn_all="no, unknown"
7928 ac_ext=c
7929ac_cpp='$CPP $CPPFLAGS'
7930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934 ac_save_CFLAGS="$CFLAGS"
7935for 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"    #
7936do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939
7940int
7941main ()
7942{
7943
7944  ;
7945  return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952done
7953 CFLAGS="$ac_save_CFLAGS"
7954 ac_ext=c
7955ac_cpp='$CPP $CPPFLAGS'
7956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
7960
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7963$as_echo "$ac_cv_cflags_warn_all" >&6; }
7964case ".$ac_cv_cflags_warn_all" in
7965     .ok|.ok,*)  ;;
7966   .|.no|.no,*)
7967 ;;
7968   *)
7969   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7970   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7971  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7972  ac_status=$?
7973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974  test $ac_status = 0; }
7975   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7976  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7977  ac_status=$?
7978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979  test $ac_status = 0; }
7980                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7981   fi
7982 ;;
7983esac
7984
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7986$as_echo_n "checking for C compiler vendor... " >&6; }
7987if ${ax_cv_c_compiler_vendor+:} false; then :
7988  $as_echo_n "(cached) " >&6
7989else
7990  # note: don't check for gcc first since some other compilers define __GNUC__
7991  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
7992           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
7993           pathscale: __PATHCC__,__PATHSCALE__
7994           clang:     __clang__
7995           gnu:       __GNUC__
7996           sun:       __SUNPRO_C,__SUNPRO_CC
7997           hp:        __HP_cc,__HP_aCC
7998           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7999           borland:   __BORLANDC__,__TURBOC__
8000           comeau:    __COMO__
8001           cray:      _CRAYC
8002           kai:       __KCC
8003           lcc:       __LCC__
8004           sgi:       __sgi,sgi
8005           microsoft: _MSC_VER
8006           metrowerks: __MWERKS__
8007           watcom:    __WATCOMC__
8008           portland:  __PGI
8009           unknown:   UNKNOWN"
8010  for ventest in $vendors; do
8011    case $ventest in
8012      *:) vendor=$ventest; continue ;;
8013      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8014    esac
8015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017
8018int
8019main ()
8020{
8021
8022      #if !($vencpp)
8023        thisisanerror;
8024      #endif
8025
8026  ;
8027  return 0;
8028}
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031  break
8032fi
8033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034  done
8035  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8036
8037fi
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8039$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8040
8041
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8044set x ${MAKE-make}
8045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8046if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  cat >conftest.make <<\_ACEOF
8050SHELL = /bin/sh
8051all:
8052	@echo '@@@%%%=$(MAKE)=@@@%%%'
8053_ACEOF
8054# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8055case `${MAKE-make} -f conftest.make 2>/dev/null` in
8056  *@@@%%%=?*=@@@%%%*)
8057    eval ac_cv_prog_make_${ac_make}_set=yes;;
8058  *)
8059    eval ac_cv_prog_make_${ac_make}_set=no;;
8060esac
8061rm -f conftest.make
8062fi
8063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065$as_echo "yes" >&6; }
8066  SET_MAKE=
8067else
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070  SET_MAKE="MAKE=${MAKE-make}"
8071fi
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8074$as_echo_n "checking whether ln -s works... " >&6; }
8075LN_S=$as_ln_s
8076if test "$LN_S" = "ln -s"; then
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078$as_echo "yes" >&6; }
8079else
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8081$as_echo "no, using $LN_S" >&6; }
8082fi
8083
8084for ac_prog in gawk mawk nawk awk
8085do
8086  # Extract the first word of "$ac_prog", so it can be a program name with args.
8087set dummy $ac_prog; ac_word=$2
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
8090if ${ac_cv_prog_AWK+:} false; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  if test -n "$AWK"; then
8094  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099  IFS=$as_save_IFS
8100  test -z "$as_dir" && as_dir=.
8101    for ac_exec_ext in '' $ac_executable_extensions; do
8102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103    ac_cv_prog_AWK="$ac_prog"
8104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105    break 2
8106  fi
8107done
8108  done
8109IFS=$as_save_IFS
8110
8111fi
8112fi
8113AWK=$ac_cv_prog_AWK
8114if test -n "$AWK"; then
8115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8116$as_echo "$AWK" >&6; }
8117else
8118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120fi
8121
8122
8123  test -n "$AWK" && break
8124done
8125
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8127$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8128
8129# Check whether --with-dmalloc was given.
8130if test "${with_dmalloc+set}" = set; then :
8131  withval=$with_dmalloc; if test "$withval" = yes; then
8132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8133$as_echo "yes" >&6; }
8134
8135$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8136
8137  LIBS="$LIBS -ldmalloc"
8138  LDFLAGS="$LDFLAGS -g"
8139else
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147
8148
8149
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8151$as_echo_n "checking for __attribute__... " >&6; }
8152if ${ax_cv___attribute__+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157#include <stdlib.h>
8158	  static void foo(void) __attribute__ ((__unused__));
8159	  static void
8160	  foo(void) {
8161	      exit(1);
8162	  }
8163
8164int
8165main ()
8166{
8167
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_compile "$LINENO"; then :
8173  ax_cv___attribute__=yes
8174else
8175  ax_cv___attribute__=no
8176
8177fi
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179
8180fi
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8182$as_echo "$ax_cv___attribute__" >&6; }
8183  if test "$ax_cv___attribute__" = "yes"; then
8184
8185$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8186
8187  fi
8188
8189
8190
8191
8192
8193# Check whether --with-gcc-arch was given.
8194if test "${with_gcc_arch+set}" = set; then :
8195  withval=$with_gcc_arch; ax_gcc_arch=$withval
8196else
8197  ax_gcc_arch=no
8198fi
8199
8200
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8202$as_echo_n "checking for gcc architecture flag... " >&6; }
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8204$as_echo "" >&6; }
8205if ${ax_cv_gcc_archflag+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208
8209ax_cv_gcc_archflag="unknown"
8210
8211if test "$GCC" = yes; then
8212
8213if test "x$ax_gcc_arch" = xyes; then
8214ax_gcc_arch=""
8215if test "$cross_compiling" = no; then
8216case $host_cpu in
8217  i[3456]86*|x86_64*) # use cpuid codes
8218
8219ac_ext=c
8220ac_cpp='$CPP $CPPFLAGS'
8221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8226$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8227if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8228  $as_echo_n "(cached) " >&6
8229else
8230  if test "$cross_compiling" = yes; then :
8231  ax_cv_gcc_x86_cpuid_0=unknown
8232else
8233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235#include <stdio.h>
8236int
8237main ()
8238{
8239
8240     int op = 0, eax, ebx, ecx, edx;
8241     FILE *f;
8242      __asm__("cpuid"
8243        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8244        : "a" (op));
8245     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8246     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8247     fclose(f);
8248     return 0;
8249
8250  ;
8251  return 0;
8252}
8253_ACEOF
8254if ac_fn_c_try_run "$LINENO"; then :
8255  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8256else
8257  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8258fi
8259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8260  conftest.$ac_objext conftest.beam conftest.$ac_ext
8261fi
8262
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8265$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8266ac_ext=c
8267ac_cpp='$CPP $CPPFLAGS'
8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271
8272
8273
8274ac_ext=c
8275ac_cpp='$CPP $CPPFLAGS'
8276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8278ac_compiler_gnu=$ac_cv_c_compiler_gnu
8279
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8281$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8282if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8283  $as_echo_n "(cached) " >&6
8284else
8285  if test "$cross_compiling" = yes; then :
8286  ax_cv_gcc_x86_cpuid_1=unknown
8287else
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290#include <stdio.h>
8291int
8292main ()
8293{
8294
8295     int op = 1, eax, ebx, ecx, edx;
8296     FILE *f;
8297      __asm__("cpuid"
8298        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8299        : "a" (op));
8300     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8301     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8302     fclose(f);
8303     return 0;
8304
8305  ;
8306  return 0;
8307}
8308_ACEOF
8309if ac_fn_c_try_run "$LINENO"; then :
8310  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8311else
8312  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8313fi
8314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8315  conftest.$ac_objext conftest.beam conftest.$ac_ext
8316fi
8317
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8320$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8321ac_ext=c
8322ac_cpp='$CPP $CPPFLAGS'
8323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325ac_compiler_gnu=$ac_cv_c_compiler_gnu
8326
8327
8328     case $ax_cv_gcc_x86_cpuid_0 in
8329       *:756e6547:*:*) # Intel
8330          case $ax_cv_gcc_x86_cpuid_1 in
8331	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8332	    *5??:*:*:*) ax_gcc_arch=pentium ;;
8333	    *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8334	    *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8335	    *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8336	    *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8337	    *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8338	    *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8339	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8340	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8341	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8342	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8343	    *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8344	    *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8345	    ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8346		case $host_cpu in
8347	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8348	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8349	        esac ;;
8350	    ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8351          esac ;;
8352       *:68747541:*:*) # AMD
8353          case $ax_cv_gcc_x86_cpuid_1 in
8354	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8355	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8356	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8357	    *60?:*:*:*) ax_gcc_arch=k7 ;;
8358	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8359	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8360	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8361	    *6[68a]?:*:*:*)
8362
8363ac_ext=c
8364ac_cpp='$CPP $CPPFLAGS'
8365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8370$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8371if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  if test "$cross_compiling" = yes; then :
8375  ax_cv_gcc_x86_cpuid_0x80000006=unknown
8376else
8377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379#include <stdio.h>
8380int
8381main ()
8382{
8383
8384     int op = 0x80000006, eax, ebx, ecx, edx;
8385     FILE *f;
8386      __asm__("cpuid"
8387        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8388        : "a" (op));
8389     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8390     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8391     fclose(f);
8392     return 0;
8393
8394  ;
8395  return 0;
8396}
8397_ACEOF
8398if ac_fn_c_try_run "$LINENO"; then :
8399  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8400else
8401  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8402fi
8403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8404  conftest.$ac_objext conftest.beam conftest.$ac_ext
8405fi
8406
8407fi
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8409$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8410ac_ext=c
8411ac_cpp='$CPP $CPPFLAGS'
8412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416 # L2 cache size
8417	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
8418                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8419			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8420                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8421	       esac ;;
8422	    ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8423	    ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8424	    ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8425	    ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8426	    ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8427	    ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8428	    *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8429          esac ;;
8430	*:746e6543:*:*) # IDT
8431	   case $ax_cv_gcc_x86_cpuid_1 in
8432	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8433	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8434	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8435	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8436	   esac ;;
8437     esac
8438     if test x"$ax_gcc_arch" = x; then # fallback
8439	case $host_cpu in
8440	  i586*) ax_gcc_arch=pentium ;;
8441	  i686*) ax_gcc_arch=pentiumpro ;;
8442        esac
8443     fi
8444     ;;
8445
8446  sparc*)
8447     # Extract the first word of "prtdiag", so it can be a program name with args.
8448set dummy prtdiag; ac_word=$2
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
8451if ${ac_cv_path_PRTDIAG+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  case $PRTDIAG in
8455  [\\/]* | ?:[\\/]*)
8456  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8457  ;;
8458  *)
8459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8461for as_dir in $as_dummy
8462do
8463  IFS=$as_save_IFS
8464  test -z "$as_dir" && as_dir=.
8465    for ac_exec_ext in '' $ac_executable_extensions; do
8466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469    break 2
8470  fi
8471done
8472  done
8473IFS=$as_save_IFS
8474
8475  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8476  ;;
8477esac
8478fi
8479PRTDIAG=$ac_cv_path_PRTDIAG
8480if test -n "$PRTDIAG"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8482$as_echo "$PRTDIAG" >&6; }
8483else
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486fi
8487
8488
8489     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`
8490     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8491     case $cputype in
8492         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8493         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8494         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8495         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8496         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8497         *cypress*) ax_gcc_arch=cypress ;;
8498     esac ;;
8499
8500  alphaev5) ax_gcc_arch=ev5 ;;
8501  alphaev56) ax_gcc_arch=ev56 ;;
8502  alphapca56) ax_gcc_arch="pca56 ev56" ;;
8503  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8504  alphaev6) ax_gcc_arch=ev6 ;;
8505  alphaev67) ax_gcc_arch=ev67 ;;
8506  alphaev68) ax_gcc_arch="ev68 ev67" ;;
8507  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8508  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8509  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8510
8511  powerpc*)
8512     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`
8513     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8514     case $cputype in
8515       *750*) ax_gcc_arch="750 G3" ;;
8516       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8517       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8518       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8519       *970*) ax_gcc_arch="970 G5 power4";;
8520       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8521       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8522       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8523       *) ax_gcc_arch=$cputype ;;
8524     esac
8525     ax_gcc_arch="$ax_gcc_arch powerpc"
8526     ;;
8527esac
8528fi # not cross-compiling
8529fi # guess arch
8530
8531if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8532for arch in $ax_gcc_arch; do
8533  if test "xno" = xyes; then # if we require portable code
8534    flags="-mtune=$arch"
8535    # -mcpu=$arch and m$arch generate nonportable code on every arch except
8536    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
8537    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8538  else
8539    flags="-march=$arch -mcpu=$arch -m$arch"
8540  fi
8541  for flag in $flags; do
8542    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8544$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8545if eval \${$as_CACHEVAR+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548
8549  ax_check_save_flags=$CFLAGS
8550  CFLAGS="$CFLAGS  $flag"
8551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h.  */
8553
8554int
8555main ()
8556{
8557
8558  ;
8559  return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563  eval "$as_CACHEVAR=yes"
8564else
8565  eval "$as_CACHEVAR=no"
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568  CFLAGS=$ax_check_save_flags
8569fi
8570eval ac_res=\$$as_CACHEVAR
8571	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8572$as_echo "$ac_res" >&6; }
8573if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8574  ax_cv_gcc_archflag=$flag; break
8575else
8576  :
8577fi
8578
8579  done
8580  test "x$ax_cv_gcc_archflag" = xunknown || break
8581done
8582fi
8583
8584fi # $GCC=yes
8585
8586fi
8587
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8589$as_echo_n "checking for gcc architecture flag... " >&6; }
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8591$as_echo "$ax_cv_gcc_archflag" >&6; }
8592if test "x$ax_cv_gcc_archflag" = xunknown; then
8593  :
8594else
8595  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8596fi
8597
8598
8599
8600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8601	if test -n "$ac_tool_prefix"; then
8602  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605$as_echo_n "checking for $ac_word... " >&6; }
8606if ${ac_cv_path_PKG_CONFIG+:} false; then :
8607  $as_echo_n "(cached) " >&6
8608else
8609  case $PKG_CONFIG in
8610  [\\/]* | ?:[\\/]*)
8611  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8612  ;;
8613  *)
8614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617  IFS=$as_save_IFS
8618  test -z "$as_dir" && as_dir=.
8619    for ac_exec_ext in '' $ac_executable_extensions; do
8620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623    break 2
8624  fi
8625done
8626  done
8627IFS=$as_save_IFS
8628
8629  ;;
8630esac
8631fi
8632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8633if test -n "$PKG_CONFIG"; then
8634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8635$as_echo "$PKG_CONFIG" >&6; }
8636else
8637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
8639fi
8640
8641
8642fi
8643if test -z "$ac_cv_path_PKG_CONFIG"; then
8644  ac_pt_PKG_CONFIG=$PKG_CONFIG
8645  # Extract the first word of "pkg-config", so it can be a program name with args.
8646set dummy pkg-config; ac_word=$2
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
8649if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  case $ac_pt_PKG_CONFIG in
8653  [\\/]* | ?:[\\/]*)
8654  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8655  ;;
8656  *)
8657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660  IFS=$as_save_IFS
8661  test -z "$as_dir" && as_dir=.
8662    for ac_exec_ext in '' $ac_executable_extensions; do
8663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666    break 2
8667  fi
8668done
8669  done
8670IFS=$as_save_IFS
8671
8672  ;;
8673esac
8674fi
8675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8676if test -n "$ac_pt_PKG_CONFIG"; then
8677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8679else
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
8682fi
8683
8684  if test "x$ac_pt_PKG_CONFIG" = x; then
8685    PKG_CONFIG=""
8686  else
8687    case $cross_compiling:$ac_tool_warned in
8688yes:)
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8691ac_tool_warned=yes ;;
8692esac
8693    PKG_CONFIG=$ac_pt_PKG_CONFIG
8694  fi
8695else
8696  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8697fi
8698
8699fi
8700if test -n "$PKG_CONFIG"; then
8701	_pkg_min_version=0.9.0
8702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8704	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8705		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8706$as_echo "yes" >&6; }
8707	else
8708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709$as_echo "no" >&6; }
8710		PKG_CONFIG=""
8711	fi
8712
8713fi
8714
8715#
8716# Enable run-time checking.
8717#
8718# Check whether --enable-bounds-checking was given.
8719if test "${enable_bounds_checking+set}" = set; then :
8720  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8721else
8722  enable_bounds_checking='no'
8723fi
8724
8725
8726if test "$enable_bounds_checking" = yes; then
8727
8728$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8729
8730fi
8731
8732#
8733# Tests for Windows
8734#
8735
8736
8737
8738GDI32_LIBS=''
8739native_win32_build='no'
8740cygwin_build='no'
8741case "${host_os}" in
8742    cygwin* )
8743        cygwin_build='yes'
8744        GDI32_LIBS='-lgdi32'
8745    ;;
8746    mingw* )
8747        native_win32_build='yes'
8748        GDI32_LIBS='-lgdi32'
8749    ;;
8750esac
8751if test "${GDI32_LIBS}x" != 'x'; then
8752
8753$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8754
8755fi
8756
8757 if test "${GDI32_LIBS}x" != 'x' ; then
8758  WINGDI32_DELEGATE_TRUE=
8759  WINGDI32_DELEGATE_FALSE='#'
8760else
8761  WINGDI32_DELEGATE_TRUE='#'
8762  WINGDI32_DELEGATE_FALSE=
8763fi
8764
8765 if test "${native_win32_build}" = 'yes' ; then
8766  WIN32_NATIVE_BUILD_TRUE=
8767  WIN32_NATIVE_BUILD_FALSE='#'
8768else
8769  WIN32_NATIVE_BUILD_TRUE='#'
8770  WIN32_NATIVE_BUILD_FALSE=
8771fi
8772
8773 if test "${cygwin_build}" = 'yes' ; then
8774  CYGWIN_BUILD_TRUE=
8775  CYGWIN_BUILD_FALSE='#'
8776else
8777  CYGWIN_BUILD_TRUE='#'
8778  CYGWIN_BUILD_FALSE=
8779fi
8780
8781 if test "x${CC}" = 'xcl.exe' ; then
8782  USING_CL_TRUE=
8783  USING_CL_FALSE='#'
8784else
8785  USING_CL_TRUE='#'
8786  USING_CL_FALSE=
8787fi
8788
8789
8790WinPathScript="${srcdirfull}/winpath.sh"
8791
8792
8793#
8794# Compiler flags tweaks
8795#
8796if test "${GCC}" != "yes"; then
8797    case "${host}" in
8798        *-*-hpux* )
8799            # aCC: HP ANSI C++ B3910B A.03.34
8800            CFLAGS="${CFLAGS} -Wp,-H30000"
8801            if test -n "${CXXFLAGS}"; then
8802                CXXFLAGS='-AA'
8803            else
8804                CXXFLAGS="${CXXFLAGS} -AA"
8805            fi
8806        ;;
8807        *-dec-osf5.* )
8808            # Compaq alphaev68-dec-osf5.1 compiler
8809            if test -n "${CXXFLAGS}"; then
8810                CXXFLAGS='-std strict_ansi -noimplicit_include'
8811            else
8812                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8813            fi
8814  esac
8815fi
8816
8817# Check for lazy-loading.
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8819$as_echo_n "checking for linker lazyload option... " >&6; }
8820if ${im_cv_ld_lazyload+:} false; then :
8821  $as_echo_n "(cached) " >&6
8822else
8823
8824im_cv_ld_lazyload='none'
8825case "${host}" in
8826  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8827    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8828       im_cv_ld_lazyload='-Wl,-zlazyload'
8829    fi
8830    ;;
8831esac
8832
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8835$as_echo "$im_cv_ld_lazyload" >&6; }
8836if test "${im_cv_ld_lazyload}" != 'none' ; then
8837  if test -z "${LDFLAGS}" ; then
8838    LDFLAGS="${im_cv_ld_lazyload}"
8839  else
8840    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8841  fi
8842fi
8843
8844case "$host" in
8845*darwin* | *-macos10*)
8846    # Check whether --enable-osx-universal-binary was given.
8847if test "${enable_osx_universal_binary+set}" = set; then :
8848  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8849else
8850  build_osxuniversal=no
8851fi
8852
8853
8854  if test "${build_osxuniversal}" != no ; then
8855    if test "$enable_dependency_tracking" != no ; then
8856      as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8857Please re-run configure with these options:
8858  --disable-dependency-tracking --enable-osx-universal-binary
8859        " "$LINENO" 5
8860    fi
8861    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8862    CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8863    LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8864  fi
8865  ;;
8866esac
8867
8868#
8869# ARCH specific include directory
8870#
8871
8872# Check whether --with-includearch-dir was given.
8873if test "${with_includearch_dir+set}" = set; then :
8874  withval=$with_includearch_dir; includearch_dir=$withval
8875else
8876  includearch_dir=$INCLUDE_DIR
8877fi
8878
8879
8880eval "eval INCLUDEARCH_DIR=$includearch_dir"
8881
8882
8883#
8884# ARCH specific configuration directory
8885#
8886
8887# Check whether --with-sharearch-dir was given.
8888if test "${with_sharearch_dir+set}" = set; then :
8889  withval=$with_sharearch_dir; sharearch_dir=$withval
8890else
8891  sharearch_dir="${LIB_DIR}"
8892fi
8893
8894
8895eval "eval SHAREARCH_DIR=$sharearch_dir"
8896SHAREARCH_DIR="$sharearch_dir"
8897
8898
8899#
8900# Enable support for threads
8901
8902# Check whether --with-threads was given.
8903if test "${with_threads+set}" = set; then :
8904  withval=$with_threads; with_threads=$withval
8905else
8906  with_threads='yes'
8907fi
8908
8909
8910have_threads=no
8911if test "$with_threads" != 'no'; then
8912
8913
8914ac_ext=c
8915ac_cpp='$CPP $CPPFLAGS'
8916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8918ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919
8920ax_pthread_ok=no
8921
8922# We used to check for pthread.h first, but this fails if pthread.h
8923# requires special compiler flags (e.g. on True64 or Sequent).
8924# It gets checked for in the link test anyway.
8925
8926# First of all, check if the user has set any of the PTHREAD_LIBS,
8927# etcetera environment variables, and if threads linking works using
8928# them:
8929if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8930        save_CFLAGS="$CFLAGS"
8931        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8932        save_LIBS="$LIBS"
8933        LIBS="$PTHREAD_LIBS $LIBS"
8934        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8935$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8936        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938
8939/* Override any GCC internal prototype to avoid an error.
8940   Use char because int might match the return type of a GCC
8941   builtin and then its argument prototype would still apply.  */
8942#ifdef __cplusplus
8943extern "C"
8944#endif
8945char pthread_join ();
8946int
8947main ()
8948{
8949return pthread_join ();
8950  ;
8951  return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955  ax_pthread_ok=yes
8956fi
8957rm -f core conftest.err conftest.$ac_objext \
8958    conftest$ac_exeext conftest.$ac_ext
8959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8960$as_echo "$ax_pthread_ok" >&6; }
8961        if test x"$ax_pthread_ok" = xno; then
8962                PTHREAD_LIBS=""
8963                PTHREAD_CFLAGS=""
8964        fi
8965        LIBS="$save_LIBS"
8966        CFLAGS="$save_CFLAGS"
8967fi
8968
8969# We must check for the threads library under a number of different
8970# names; the ordering is very important because some systems
8971# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8972# libraries is broken (non-POSIX).
8973
8974# Create a list of thread flags to try.  Items starting with a "-" are
8975# C compiler flags, and other items are library names, except for "none"
8976# which indicates that we try without any flags at all, and "pthread-config"
8977# which is a program returning the flags for the Pth emulation library.
8978
8979ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
8980
8981# The ordering *is* (sometimes) important.  Some notes on the
8982# individual items follow:
8983
8984# pthreads: AIX (must check this before -lpthread)
8985# none: in case threads are in libc; should be tried before -Kthread and
8986#       other compiler flags to prevent continual compiler warnings
8987# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8988# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8989# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8990# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8991# -pthreads: Solaris/gcc
8992# -mthreads: Mingw32/gcc, Lynx/gcc
8993# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8994#      doesn't hurt to check since this sometimes defines pthreads too;
8995#      also defines -D_REENTRANT)
8996#      ... -mt is also the pthreads flag for HP/aCC
8997# pthread: Linux, etcetera
8998# --thread-safe: KAI C++
8999# pthread-config: use pthread-config program (for GNU Pth library)
9000
9001case "${host_cpu}-${host_os}" in
9002        *solaris*)
9003
9004        # On Solaris (at least, for some versions), libc contains stubbed
9005        # (non-functional) versions of the pthreads routines, so link-based
9006        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9007        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9008        # a function called by this macro, so we could check for that, but
9009        # who knows whether they'll stub that too in a future libc.)  So,
9010        # we'll just look for -pthreads and -lpthread first:
9011
9012        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9013        ;;
9014
9015        *-darwin*)
9016        ax_pthread_flags="-pthread $ax_pthread_flags"
9017        ;;
9018esac
9019
9020if test x"$ax_pthread_ok" = xno; then
9021for flag in $ax_pthread_flags; do
9022
9023        case $flag in
9024                none)
9025                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9026$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9027                ;;
9028
9029                -*)
9030                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9031$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9032                PTHREAD_CFLAGS="$flag"
9033                ;;
9034
9035                pthread-config)
9036                # Extract the first word of "pthread-config", so it can be a program name with args.
9037set dummy pthread-config; ac_word=$2
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
9040if ${ac_cv_prog_ax_pthread_config+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  if test -n "$ax_pthread_config"; then
9044  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049  IFS=$as_save_IFS
9050  test -z "$as_dir" && as_dir=.
9051    for ac_exec_ext in '' $ac_executable_extensions; do
9052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9053    ac_cv_prog_ax_pthread_config="yes"
9054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055    break 2
9056  fi
9057done
9058  done
9059IFS=$as_save_IFS
9060
9061  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9062fi
9063fi
9064ax_pthread_config=$ac_cv_prog_ax_pthread_config
9065if test -n "$ax_pthread_config"; then
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9067$as_echo "$ax_pthread_config" >&6; }
9068else
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
9071fi
9072
9073
9074                if test x"$ax_pthread_config" = xno; then continue; fi
9075                PTHREAD_CFLAGS="`pthread-config --cflags`"
9076                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9077                ;;
9078
9079                *)
9080                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9081$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9082                PTHREAD_LIBS="-l$flag"
9083                ;;
9084        esac
9085
9086        save_LIBS="$LIBS"
9087        save_CFLAGS="$CFLAGS"
9088        LIBS="$PTHREAD_LIBS $LIBS"
9089        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9090
9091        # Check for various functions.  We must include pthread.h,
9092        # since some functions may be macros.  (On the Sequent, we
9093        # need a special flag -Kthread to make this header compile.)
9094        # We check for pthread_join because it is in -lpthread on IRIX
9095        # while pthread_create is in libc.  We check for pthread_attr_init
9096        # due to DEC craziness with -lpthreads.  We check for
9097        # pthread_cleanup_push because it is one of the few pthread
9098        # functions on Solaris that doesn't have a non-functional libc stub.
9099        # We try pthread_create on general principles.
9100        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102#include <pthread.h>
9103                        static void routine(void *a) { a = 0; }
9104                        static void *start_routine(void *a) { return a; }
9105int
9106main ()
9107{
9108pthread_t th; pthread_attr_t attr;
9109                        pthread_create(&th, 0, start_routine, 0);
9110                        pthread_join(th, 0);
9111                        pthread_attr_init(&attr);
9112                        pthread_cleanup_push(routine, 0);
9113                        pthread_cleanup_pop(0) /* ; */
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_link "$LINENO"; then :
9119  ax_pthread_ok=yes
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122    conftest$ac_exeext conftest.$ac_ext
9123
9124        LIBS="$save_LIBS"
9125        CFLAGS="$save_CFLAGS"
9126
9127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9128$as_echo "$ax_pthread_ok" >&6; }
9129        if test "x$ax_pthread_ok" = xyes; then
9130                break;
9131        fi
9132
9133        PTHREAD_LIBS=""
9134        PTHREAD_CFLAGS=""
9135done
9136fi
9137
9138# Various other checks:
9139if test "x$ax_pthread_ok" = xyes; then
9140        save_LIBS="$LIBS"
9141        LIBS="$PTHREAD_LIBS $LIBS"
9142        save_CFLAGS="$CFLAGS"
9143        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9144
9145        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9146        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9147$as_echo_n "checking for joinable pthread attribute... " >&6; }
9148        attr_name=unknown
9149        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9150            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151/* end confdefs.h.  */
9152#include <pthread.h>
9153int
9154main ()
9155{
9156int attr = $attr; return attr /* ; */
9157  ;
9158  return 0;
9159}
9160_ACEOF
9161if ac_fn_c_try_link "$LINENO"; then :
9162  attr_name=$attr; break
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165    conftest$ac_exeext conftest.$ac_ext
9166        done
9167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9168$as_echo "$attr_name" >&6; }
9169        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9170
9171cat >>confdefs.h <<_ACEOF
9172#define PTHREAD_CREATE_JOINABLE $attr_name
9173_ACEOF
9174
9175        fi
9176
9177        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9178$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9179        flag=no
9180        case "${host_cpu}-${host_os}" in
9181            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9182            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9183        esac
9184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9185$as_echo "${flag}" >&6; }
9186        if test "x$flag" != xno; then
9187            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9188        fi
9189
9190        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9191$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9192if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195
9196                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197/* end confdefs.h.  */
9198
9199                    #include <pthread.h>
9200int
9201main ()
9202{
9203int i = PTHREAD_PRIO_INHERIT;
9204  ;
9205  return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209  ax_cv_PTHREAD_PRIO_INHERIT=yes
9210else
9211  ax_cv_PTHREAD_PRIO_INHERIT=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214    conftest$ac_exeext conftest.$ac_ext
9215
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9218$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9219        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9220
9221$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9222
9223fi
9224
9225        LIBS="$save_LIBS"
9226        CFLAGS="$save_CFLAGS"
9227
9228        # More AIX lossage: must compile with xlc_r or cc_r
9229        if test x"$GCC" != xyes; then
9230          for ac_prog in xlc_r cc_r
9231do
9232  # Extract the first word of "$ac_prog", so it can be a program name with args.
9233set dummy $ac_prog; ac_word=$2
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235$as_echo_n "checking for $ac_word... " >&6; }
9236if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  if test -n "$PTHREAD_CC"; then
9240  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9241else
9242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243for as_dir in $PATH
9244do
9245  IFS=$as_save_IFS
9246  test -z "$as_dir" && as_dir=.
9247    for ac_exec_ext in '' $ac_executable_extensions; do
9248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9249    ac_cv_prog_PTHREAD_CC="$ac_prog"
9250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251    break 2
9252  fi
9253done
9254  done
9255IFS=$as_save_IFS
9256
9257fi
9258fi
9259PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9260if test -n "$PTHREAD_CC"; then
9261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9262$as_echo "$PTHREAD_CC" >&6; }
9263else
9264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265$as_echo "no" >&6; }
9266fi
9267
9268
9269  test -n "$PTHREAD_CC" && break
9270done
9271test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9272
9273        else
9274          PTHREAD_CC=$CC
9275        fi
9276else
9277        PTHREAD_CC="$CC"
9278fi
9279
9280
9281
9282
9283
9284# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9285if test x"$ax_pthread_ok" = xyes; then
9286
9287$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9288
9289        :
9290else
9291        ax_pthread_ok=no
9292
9293fi
9294ac_ext=c
9295ac_cpp='$CPP $CPPFLAGS'
9296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298ac_compiler_gnu=$ac_cv_c_compiler_gnu
9299
9300
9301    if test "$ax_pthread_ok" = yes; then
9302        have_threads=yes
9303        DEF_THREAD="$PTHREAD_CFLAGS"
9304        CFLAGS="$CFLAGS $DEF_THREAD"
9305        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9306        if test "$CC" != "$PTHREAD_CC"; then
9307            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
9308$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9309            CC="$PTHREAD_CC"
9310        fi
9311
9312$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9313
9314    fi
9315fi
9316
9317# Enable support for OpenMP
9318if test "$have_threads" != 'yes'; then
9319  ac_cv_prog_c_openmp=unsupported
9320fi
9321
9322  OPENMP_CFLAGS=
9323  # Check whether --enable-openmp was given.
9324if test "${enable_openmp+set}" = set; then :
9325  enableval=$enable_openmp;
9326fi
9327
9328  if test "$enable_openmp" != no; then
9329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
9330$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
9331if ${ac_cv_prog_c_openmp+:} false; then :
9332  $as_echo_n "(cached) " >&6
9333else
9334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336
9337#ifndef _OPENMP
9338 choke me
9339#endif
9340#include <omp.h>
9341int main () { return omp_get_num_threads (); }
9342
9343_ACEOF
9344if ac_fn_c_try_link "$LINENO"; then :
9345  ac_cv_prog_c_openmp='none needed'
9346else
9347  ac_cv_prog_c_openmp='unsupported'
9348	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9349                           -Popenmp --openmp; do
9350	    ac_save_CFLAGS=$CFLAGS
9351	    CFLAGS="$CFLAGS $ac_option"
9352	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354
9355#ifndef _OPENMP
9356 choke me
9357#endif
9358#include <omp.h>
9359int main () { return omp_get_num_threads (); }
9360
9361_ACEOF
9362if ac_fn_c_try_link "$LINENO"; then :
9363  ac_cv_prog_c_openmp=$ac_option
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366    conftest$ac_exeext conftest.$ac_ext
9367	    CFLAGS=$ac_save_CFLAGS
9368	    if test "$ac_cv_prog_c_openmp" != unsupported; then
9369	      break
9370	    fi
9371	  done
9372fi
9373rm -f core conftest.err conftest.$ac_objext \
9374    conftest$ac_exeext conftest.$ac_ext
9375fi
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
9377$as_echo "$ac_cv_prog_c_openmp" >&6; }
9378    case $ac_cv_prog_c_openmp in #(
9379      "none needed" | unsupported)
9380	;; #(
9381      *)
9382	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
9383    esac
9384  fi
9385
9386
9387CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9388MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9389
9390if test "$enable_openmp" != no; then
9391  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9392    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9393  fi
9394fi
9395
9396# Enable support for OpenCL
9397
9398
9399ac_ext=c
9400ac_cpp='$CPP $CPPFLAGS'
9401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9403ac_compiler_gnu=$ac_cv_c_compiler_gnu
9404
9405ax_pthread_ok=no
9406
9407# We used to check for pthread.h first, but this fails if pthread.h
9408# requires special compiler flags (e.g. on True64 or Sequent).
9409# It gets checked for in the link test anyway.
9410
9411# First of all, check if the user has set any of the PTHREAD_LIBS,
9412# etcetera environment variables, and if threads linking works using
9413# them:
9414if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9415        save_CFLAGS="$CFLAGS"
9416        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9417        save_LIBS="$LIBS"
9418        LIBS="$PTHREAD_LIBS $LIBS"
9419        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9420$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9421        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423
9424/* Override any GCC internal prototype to avoid an error.
9425   Use char because int might match the return type of a GCC
9426   builtin and then its argument prototype would still apply.  */
9427#ifdef __cplusplus
9428extern "C"
9429#endif
9430char pthread_join ();
9431int
9432main ()
9433{
9434return pthread_join ();
9435  ;
9436  return 0;
9437}
9438_ACEOF
9439if ac_fn_c_try_link "$LINENO"; then :
9440  ax_pthread_ok=yes
9441fi
9442rm -f core conftest.err conftest.$ac_objext \
9443    conftest$ac_exeext conftest.$ac_ext
9444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9445$as_echo "$ax_pthread_ok" >&6; }
9446        if test x"$ax_pthread_ok" = xno; then
9447                PTHREAD_LIBS=""
9448                PTHREAD_CFLAGS=""
9449        fi
9450        LIBS="$save_LIBS"
9451        CFLAGS="$save_CFLAGS"
9452fi
9453
9454# We must check for the threads library under a number of different
9455# names; the ordering is very important because some systems
9456# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9457# libraries is broken (non-POSIX).
9458
9459# Create a list of thread flags to try.  Items starting with a "-" are
9460# C compiler flags, and other items are library names, except for "none"
9461# which indicates that we try without any flags at all, and "pthread-config"
9462# which is a program returning the flags for the Pth emulation library.
9463
9464ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
9465
9466# The ordering *is* (sometimes) important.  Some notes on the
9467# individual items follow:
9468
9469# pthreads: AIX (must check this before -lpthread)
9470# none: in case threads are in libc; should be tried before -Kthread and
9471#       other compiler flags to prevent continual compiler warnings
9472# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9473# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9474# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9475# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9476# -pthreads: Solaris/gcc
9477# -mthreads: Mingw32/gcc, Lynx/gcc
9478# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9479#      doesn't hurt to check since this sometimes defines pthreads too;
9480#      also defines -D_REENTRANT)
9481#      ... -mt is also the pthreads flag for HP/aCC
9482# pthread: Linux, etcetera
9483# --thread-safe: KAI C++
9484# pthread-config: use pthread-config program (for GNU Pth library)
9485
9486case "${host_cpu}-${host_os}" in
9487        *solaris*)
9488
9489        # On Solaris (at least, for some versions), libc contains stubbed
9490        # (non-functional) versions of the pthreads routines, so link-based
9491        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9492        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9493        # a function called by this macro, so we could check for that, but
9494        # who knows whether they'll stub that too in a future libc.)  So,
9495        # we'll just look for -pthreads and -lpthread first:
9496
9497        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9498        ;;
9499
9500        *-darwin*)
9501        ax_pthread_flags="-pthread $ax_pthread_flags"
9502        ;;
9503esac
9504
9505if test x"$ax_pthread_ok" = xno; then
9506for flag in $ax_pthread_flags; do
9507
9508        case $flag in
9509                none)
9510                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9511$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9512                ;;
9513
9514                -*)
9515                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9516$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9517                PTHREAD_CFLAGS="$flag"
9518                ;;
9519
9520                pthread-config)
9521                # Extract the first word of "pthread-config", so it can be a program name with args.
9522set dummy pthread-config; ac_word=$2
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524$as_echo_n "checking for $ac_word... " >&6; }
9525if ${ac_cv_prog_ax_pthread_config+:} false; then :
9526  $as_echo_n "(cached) " >&6
9527else
9528  if test -n "$ax_pthread_config"; then
9529  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9530else
9531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532for as_dir in $PATH
9533do
9534  IFS=$as_save_IFS
9535  test -z "$as_dir" && as_dir=.
9536    for ac_exec_ext in '' $ac_executable_extensions; do
9537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9538    ac_cv_prog_ax_pthread_config="yes"
9539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540    break 2
9541  fi
9542done
9543  done
9544IFS=$as_save_IFS
9545
9546  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9547fi
9548fi
9549ax_pthread_config=$ac_cv_prog_ax_pthread_config
9550if test -n "$ax_pthread_config"; then
9551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9552$as_echo "$ax_pthread_config" >&6; }
9553else
9554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555$as_echo "no" >&6; }
9556fi
9557
9558
9559                if test x"$ax_pthread_config" = xno; then continue; fi
9560                PTHREAD_CFLAGS="`pthread-config --cflags`"
9561                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9562                ;;
9563
9564                *)
9565                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9566$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9567                PTHREAD_LIBS="-l$flag"
9568                ;;
9569        esac
9570
9571        save_LIBS="$LIBS"
9572        save_CFLAGS="$CFLAGS"
9573        LIBS="$PTHREAD_LIBS $LIBS"
9574        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9575
9576        # Check for various functions.  We must include pthread.h,
9577        # since some functions may be macros.  (On the Sequent, we
9578        # need a special flag -Kthread to make this header compile.)
9579        # We check for pthread_join because it is in -lpthread on IRIX
9580        # while pthread_create is in libc.  We check for pthread_attr_init
9581        # due to DEC craziness with -lpthreads.  We check for
9582        # pthread_cleanup_push because it is one of the few pthread
9583        # functions on Solaris that doesn't have a non-functional libc stub.
9584        # We try pthread_create on general principles.
9585        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587#include <pthread.h>
9588                        static void routine(void *a) { a = 0; }
9589                        static void *start_routine(void *a) { return a; }
9590int
9591main ()
9592{
9593pthread_t th; pthread_attr_t attr;
9594                        pthread_create(&th, 0, start_routine, 0);
9595                        pthread_join(th, 0);
9596                        pthread_attr_init(&attr);
9597                        pthread_cleanup_push(routine, 0);
9598                        pthread_cleanup_pop(0) /* ; */
9599  ;
9600  return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604  ax_pthread_ok=yes
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607    conftest$ac_exeext conftest.$ac_ext
9608
9609        LIBS="$save_LIBS"
9610        CFLAGS="$save_CFLAGS"
9611
9612        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9613$as_echo "$ax_pthread_ok" >&6; }
9614        if test "x$ax_pthread_ok" = xyes; then
9615                break;
9616        fi
9617
9618        PTHREAD_LIBS=""
9619        PTHREAD_CFLAGS=""
9620done
9621fi
9622
9623# Various other checks:
9624if test "x$ax_pthread_ok" = xyes; then
9625        save_LIBS="$LIBS"
9626        LIBS="$PTHREAD_LIBS $LIBS"
9627        save_CFLAGS="$CFLAGS"
9628        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9629
9630        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9631        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9632$as_echo_n "checking for joinable pthread attribute... " >&6; }
9633        attr_name=unknown
9634        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9635            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637#include <pthread.h>
9638int
9639main ()
9640{
9641int attr = $attr; return attr /* ; */
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"; then :
9647  attr_name=$attr; break
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650    conftest$ac_exeext conftest.$ac_ext
9651        done
9652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9653$as_echo "$attr_name" >&6; }
9654        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9655
9656cat >>confdefs.h <<_ACEOF
9657#define PTHREAD_CREATE_JOINABLE $attr_name
9658_ACEOF
9659
9660        fi
9661
9662        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9663$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9664        flag=no
9665        case "${host_cpu}-${host_os}" in
9666            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9667            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9668        esac
9669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9670$as_echo "${flag}" >&6; }
9671        if test "x$flag" != xno; then
9672            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9673        fi
9674
9675        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9676$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9677if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680
9681                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683
9684                    #include <pthread.h>
9685int
9686main ()
9687{
9688int i = PTHREAD_PRIO_INHERIT;
9689  ;
9690  return 0;
9691}
9692_ACEOF
9693if ac_fn_c_try_link "$LINENO"; then :
9694  ax_cv_PTHREAD_PRIO_INHERIT=yes
9695else
9696  ax_cv_PTHREAD_PRIO_INHERIT=no
9697fi
9698rm -f core conftest.err conftest.$ac_objext \
9699    conftest$ac_exeext conftest.$ac_ext
9700
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9703$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9704        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9705
9706$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9707
9708fi
9709
9710        LIBS="$save_LIBS"
9711        CFLAGS="$save_CFLAGS"
9712
9713        # More AIX lossage: must compile with xlc_r or cc_r
9714        if test x"$GCC" != xyes; then
9715          for ac_prog in xlc_r cc_r
9716do
9717  # Extract the first word of "$ac_prog", so it can be a program name with args.
9718set dummy $ac_prog; ac_word=$2
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720$as_echo_n "checking for $ac_word... " >&6; }
9721if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  if test -n "$PTHREAD_CC"; then
9725  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9726else
9727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730  IFS=$as_save_IFS
9731  test -z "$as_dir" && as_dir=.
9732    for ac_exec_ext in '' $ac_executable_extensions; do
9733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9734    ac_cv_prog_PTHREAD_CC="$ac_prog"
9735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736    break 2
9737  fi
9738done
9739  done
9740IFS=$as_save_IFS
9741
9742fi
9743fi
9744PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9745if test -n "$PTHREAD_CC"; then
9746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9747$as_echo "$PTHREAD_CC" >&6; }
9748else
9749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752
9753
9754  test -n "$PTHREAD_CC" && break
9755done
9756test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9757
9758        else
9759          PTHREAD_CC=$CC
9760        fi
9761else
9762        PTHREAD_CC="$CC"
9763fi
9764
9765
9766
9767
9768
9769# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9770if test x"$ax_pthread_ok" = xyes; then
9771
9772$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9773
9774        :
9775else
9776        ax_pthread_ok=no
9777
9778fi
9779ac_ext=c
9780ac_cpp='$CPP $CPPFLAGS'
9781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784
9785
9786
9787# Check whether --enable-opencl was given.
9788if test "${enable_opencl+set}" = set; then :
9789  enableval=$enable_opencl; enable_opencl=$enableval
9790else
9791  enable_opencl='no'
9792fi
9793
9794
9795if test "$enable_opencl" = 'yes'; then
9796  ac_ext=c
9797ac_cpp='$CPP $CPPFLAGS'
9798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800ac_compiler_gnu=$ac_cv_c_compiler_gnu
9801
9802  AX_LANG_COMPILER_MS
9803  if test X$ax_compiler_ms = Xno; then :
9804  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9805fi
9806
9807  ax_save_CPPFLAGS=$CPPFLAGS
9808  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9809  for ac_header in CL/cl.h OpenCL/cl.h
9810do :
9811  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9814  cat >>confdefs.h <<_ACEOF
9815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9816_ACEOF
9817
9818fi
9819
9820done
9821
9822  CPPFLAGS=$ax_save_CPPFLAGS
9823
9824  for ac_header in windows.h
9825do :
9826  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9827if test "x$ac_cv_header_windows_h" = xyes; then :
9828  cat >>confdefs.h <<_ACEOF
9829#define HAVE_WINDOWS_H 1
9830_ACEOF
9831
9832fi
9833
9834done
9835
9836
9837
9838
9839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9840$as_echo_n "checking for OpenCL library... " >&6; }
9841if ${ax_cv_check_cl_libcl+:} false; then :
9842  $as_echo_n "(cached) " >&6
9843else
9844  ax_cv_check_cl_libcl=no
9845  case $host_cpu in
9846    x86_64) ax_check_cl_libdir=lib64 ;;
9847    *)      ax_check_cl_libdir=lib ;;
9848  esac
9849  ax_save_CPPFLAGS=$CPPFLAGS
9850  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9851  ax_save_LIBS=$LIBS
9852  LIBS=""
9853  ax_check_libs="-lOpenCL -lCL -lclparser"
9854  for ax_lib in $ax_check_libs; do
9855    if test X$ax_compiler_ms = Xyes; then :
9856  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9857else
9858  ax_try_lib=$ax_lib
9859fi
9860    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863
9864  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9865  #   include <windows.h>
9866  # endif
9867  # ifdef HAVE_CL_CL_H
9868  #   include <CL/cl.h>
9869  # elif defined(HAVE_OPENCL_CL_H)
9870  #   include <OpenCL/cl.h>
9871  # else
9872  #   error no CL.h
9873  # endif
9874int
9875main ()
9876{
9877clCreateContextFromType(0,0,0,0,0)
9878  ;
9879  return 0;
9880}
9881_ACEOF
9882if ac_fn_c_try_link "$LINENO"; then :
9883  ax_cv_check_cl_libcl=$ax_try_lib; break
9884else
9885  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"
9886                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h.  */
9888
9889  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9890  #   include <windows.h>
9891  # endif
9892  # ifdef HAVE_CL_CL_H
9893  #   include <CL/cl.h>
9894  # elif defined(HAVE_OPENCL_CL_H)
9895  #   include <OpenCL/cl.h>
9896  # else
9897  #   error no CL.h
9898  # endif
9899int
9900main ()
9901{
9902clCreateContextFromType(0,0,0,0,0)
9903  ;
9904  return 0;
9905}
9906_ACEOF
9907if ac_fn_c_try_link "$LINENO"; then :
9908  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9909else
9910  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"
9911                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913
9914  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9915  #   include <windows.h>
9916  # endif
9917  # ifdef HAVE_CL_CL_H
9918  #   include <CL/cl.h>
9919  # elif defined(HAVE_OPENCL_CL_H)
9920  #   include <OpenCL/cl.h>
9921  # else
9922  #   error no CL.h
9923  # endif
9924int
9925main ()
9926{
9927clCreateContextFromType(0,0,0,0,0)
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932if ac_fn_c_try_link "$LINENO"; then :
9933  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9934fi
9935rm -f core conftest.err conftest.$ac_objext \
9936    conftest$ac_exeext conftest.$ac_ext
9937fi
9938rm -f core conftest.err conftest.$ac_objext \
9939    conftest$ac_exeext conftest.$ac_ext
9940fi
9941rm -f core conftest.err conftest.$ac_objext \
9942    conftest$ac_exeext conftest.$ac_ext
9943  done
9944
9945  if test "X$ax_cv_check_cl_libcl" = Xno; then :
9946  LIBS='-Wl,-framework,OpenCL'
9947        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949
9950  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9951  #   include <windows.h>
9952  # endif
9953  # ifdef HAVE_CL_CL_H
9954  #   include <CL/cl.h>
9955  # elif defined(HAVE_OPENCL_CL_H)
9956  #   include <OpenCL/cl.h>
9957  # else
9958  #   error no CL.h
9959  # endif
9960int
9961main ()
9962{
9963clCreateContextFromType(0,0,0,0,0)
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969  ax_cv_check_cl_libcl=$LIBS
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972    conftest$ac_exeext conftest.$ac_ext
9973fi
9974
9975  LIBS=$ax_save_LIBS
9976  CPPFLAGS=$ax_save_CPPFLAGS
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9979$as_echo "$ax_cv_check_cl_libcl" >&6; }
9980
9981  if test "X$ax_cv_check_cl_libcl" = Xno; then :
9982  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9983else
9984  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9985$as_echo "#define _OPENCL 1" >>confdefs.h
9986
9987fi
9988  ac_ext=c
9989ac_cpp='$CPP $CPPFLAGS'
9990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9992ac_compiler_gnu=$ac_cv_c_compiler_gnu
9993
9994fi
9995
9996
9997
9998
9999CFLAGS="$CL_CFLAGS $CFLAGS"
10000LIBS="$CL_LIBS $LIBS"
10001
10002if test "$enable_opencl" != no; then
10003  if test "X$ax_cv_check_cl_libcl" != Xno; then :
10004    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10005  fi
10006fi
10007
10008########
10009#
10010# Check for large file support
10011#
10012########
10013# Check whether --enable-largefile was given.
10014if test "${enable_largefile+set}" = set; then :
10015  enableval=$enable_largefile;
10016fi
10017
10018if test "$enable_largefile" != no; then
10019
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10021$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10022if ${ac_cv_sys_largefile_CC+:} false; then :
10023  $as_echo_n "(cached) " >&6
10024else
10025  ac_cv_sys_largefile_CC=no
10026     if test "$GCC" != yes; then
10027       ac_save_CC=$CC
10028       while :; do
10029	 # IRIX 6.2 and later do not support large files by default,
10030	 # so use the C compiler's -n32 option if that helps.
10031	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033#include <sys/types.h>
10034 /* Check that off_t can represent 2**63 - 1 correctly.
10035    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10036    since some C++ compilers masquerading as C compilers
10037    incorrectly reject 9223372036854775807.  */
10038#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10039  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10040		       && LARGE_OFF_T % 2147483647 == 1)
10041		      ? 1 : -1];
10042int
10043main ()
10044{
10045
10046  ;
10047  return 0;
10048}
10049_ACEOF
10050	 if ac_fn_c_try_compile "$LINENO"; then :
10051  break
10052fi
10053rm -f core conftest.err conftest.$ac_objext
10054	 CC="$CC -n32"
10055	 if ac_fn_c_try_compile "$LINENO"; then :
10056  ac_cv_sys_largefile_CC=' -n32'; break
10057fi
10058rm -f core conftest.err conftest.$ac_objext
10059	 break
10060       done
10061       CC=$ac_save_CC
10062       rm -f conftest.$ac_ext
10063    fi
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10066$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10067  if test "$ac_cv_sys_largefile_CC" != no; then
10068    CC=$CC$ac_cv_sys_largefile_CC
10069  fi
10070
10071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10072$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10073if ${ac_cv_sys_file_offset_bits+:} false; then :
10074  $as_echo_n "(cached) " >&6
10075else
10076  while :; do
10077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079#include <sys/types.h>
10080 /* Check that off_t can represent 2**63 - 1 correctly.
10081    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10082    since some C++ compilers masquerading as C compilers
10083    incorrectly reject 9223372036854775807.  */
10084#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10085  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10086		       && LARGE_OFF_T % 2147483647 == 1)
10087		      ? 1 : -1];
10088int
10089main ()
10090{
10091
10092  ;
10093  return 0;
10094}
10095_ACEOF
10096if ac_fn_c_try_compile "$LINENO"; then :
10097  ac_cv_sys_file_offset_bits=no; break
10098fi
10099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h.  */
10102#define _FILE_OFFSET_BITS 64
10103#include <sys/types.h>
10104 /* Check that off_t can represent 2**63 - 1 correctly.
10105    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10106    since some C++ compilers masquerading as C compilers
10107    incorrectly reject 9223372036854775807.  */
10108#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10109  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10110		       && LARGE_OFF_T % 2147483647 == 1)
10111		      ? 1 : -1];
10112int
10113main ()
10114{
10115
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"; then :
10121  ac_cv_sys_file_offset_bits=64; break
10122fi
10123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124  ac_cv_sys_file_offset_bits=unknown
10125  break
10126done
10127fi
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10129$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10130case $ac_cv_sys_file_offset_bits in #(
10131  no | unknown) ;;
10132  *)
10133cat >>confdefs.h <<_ACEOF
10134#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10135_ACEOF
10136;;
10137esac
10138rm -rf conftest*
10139  if test $ac_cv_sys_file_offset_bits = unknown; then
10140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10141$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10142if ${ac_cv_sys_large_files+:} false; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  while :; do
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148#include <sys/types.h>
10149 /* Check that off_t can represent 2**63 - 1 correctly.
10150    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10151    since some C++ compilers masquerading as C compilers
10152    incorrectly reject 9223372036854775807.  */
10153#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10154  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10155		       && LARGE_OFF_T % 2147483647 == 1)
10156		      ? 1 : -1];
10157int
10158main ()
10159{
10160
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_compile "$LINENO"; then :
10166  ac_cv_sys_large_files=no; break
10167fi
10168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h.  */
10171#define _LARGE_FILES 1
10172#include <sys/types.h>
10173 /* Check that off_t can represent 2**63 - 1 correctly.
10174    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10175    since some C++ compilers masquerading as C compilers
10176    incorrectly reject 9223372036854775807.  */
10177#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10178  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10179		       && LARGE_OFF_T % 2147483647 == 1)
10180		      ? 1 : -1];
10181int
10182main ()
10183{
10184
10185  ;
10186  return 0;
10187}
10188_ACEOF
10189if ac_fn_c_try_compile "$LINENO"; then :
10190  ac_cv_sys_large_files=1; break
10191fi
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193  ac_cv_sys_large_files=unknown
10194  break
10195done
10196fi
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10198$as_echo "$ac_cv_sys_large_files" >&6; }
10199case $ac_cv_sys_large_files in #(
10200  no | unknown) ;;
10201  *)
10202cat >>confdefs.h <<_ACEOF
10203#define _LARGE_FILES $ac_cv_sys_large_files
10204_ACEOF
10205;;
10206esac
10207rm -rf conftest*
10208  fi
10209
10210
10211fi
10212
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10214$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10215if ${ac_cv_sys_largefile_source+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  while :; do
10219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221#include <sys/types.h> /* for off_t */
10222     #include <stdio.h>
10223int
10224main ()
10225{
10226int (*fp) (FILE *, off_t, int) = fseeko;
10227     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
10233  ac_cv_sys_largefile_source=no; break
10234fi
10235rm -f core conftest.err conftest.$ac_objext \
10236    conftest$ac_exeext conftest.$ac_ext
10237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239#define _LARGEFILE_SOURCE 1
10240#include <sys/types.h> /* for off_t */
10241     #include <stdio.h>
10242int
10243main ()
10244{
10245int (*fp) (FILE *, off_t, int) = fseeko;
10246     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252  ac_cv_sys_largefile_source=1; break
10253fi
10254rm -f core conftest.err conftest.$ac_objext \
10255    conftest$ac_exeext conftest.$ac_ext
10256  ac_cv_sys_largefile_source=unknown
10257  break
10258done
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10261$as_echo "$ac_cv_sys_largefile_source" >&6; }
10262case $ac_cv_sys_largefile_source in #(
10263  no | unknown) ;;
10264  *)
10265cat >>confdefs.h <<_ACEOF
10266#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10267_ACEOF
10268;;
10269esac
10270rm -rf conftest*
10271
10272# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10273# in glibc 2.1.3, but that breaks too many other things.
10274# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10275if test $ac_cv_sys_largefile_source != unknown; then
10276
10277$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10278
10279fi
10280
10281LFS_CPPFLAGS=''
10282if test "$enable_largefile" != no; then
10283    case $ac_cv_sys_file_offset_bits in
10284    no)
10285        # nothing to do here as the host supports LFS fine
10286        ;;
10287    unknown)
10288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
10289$as_echo_n "checking for native large file support... " >&6; }
10290        if test "$cross_compiling" = yes; then :
10291  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10293as_fn_error $? "cannot run test program while cross compiling
10294See \`config.log' for more details" "$LINENO" 5; }
10295else
10296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h.  */
10298#include <unistd.h>
10299          main () {
10300          exit(!(sizeof(off_t) == 8));
10301        }
10302int
10303main ()
10304{
10305
10306  ;
10307  return 0;
10308}
10309_ACEOF
10310if ac_fn_c_try_run "$LINENO"; then :
10311  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
10312
10313         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10314$as_echo "$as_me: yes" >&6;}
10315else
10316  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10317$as_echo "$as_me: no" >&6;}
10318fi
10319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320  conftest.$ac_objext conftest.beam conftest.$ac_ext
10321fi
10322
10323        ;;
10324    *)
10325        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10326        ;;
10327    esac
10328    if test "$ac_cv_sys_large_files" != 'no'; then
10329        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10330    fi
10331    if test "$ac_cv_sys_largefile_source" != 'no'; then
10332        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10333    fi
10334fi
10335
10336
10337# Configure libtool
10338enable_dlopen=yes
10339
10340
10341
10342case `pwd` in
10343  *\ * | *\	*)
10344    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10345$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10346esac
10347
10348
10349
10350macro_version='2.4.2'
10351macro_revision='1.3337'
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365ltmain="$ac_aux_dir/ltmain.sh"
10366
10367# Backslashify metacharacters that are still active within
10368# double-quoted strings.
10369sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10370
10371# Same as above, but do not quote variable references.
10372double_quote_subst='s/\(["`\\]\)/\\\1/g'
10373
10374# Sed substitution to delay expansion of an escaped shell variable in a
10375# double_quote_subst'ed string.
10376delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10377
10378# Sed substitution to delay expansion of an escaped single quote.
10379delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10380
10381# Sed substitution to avoid accidental globbing in evaled expressions
10382no_glob_subst='s/\*/\\\*/g'
10383
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10385$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10386if ${lt_cv_path_NM+:} false; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  if test -n "$NM"; then
10390  # Let the user override the test.
10391  lt_cv_path_NM="$NM"
10392else
10393  lt_nm_to_check="${ac_tool_prefix}nm"
10394  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10395    lt_nm_to_check="$lt_nm_to_check nm"
10396  fi
10397  for lt_tmp_nm in $lt_nm_to_check; do
10398    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10399    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10400      IFS="$lt_save_ifs"
10401      test -z "$ac_dir" && ac_dir=.
10402      tmp_nm="$ac_dir/$lt_tmp_nm"
10403      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10404	# Check to see if the nm accepts a BSD-compat flag.
10405	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10406	#   nm: unknown option "B" ignored
10407	# Tru64's nm complains that /dev/null is an invalid object file
10408	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10409	*/dev/null* | *'Invalid file or object type'*)
10410	  lt_cv_path_NM="$tmp_nm -B"
10411	  break
10412	  ;;
10413	*)
10414	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10415	  */dev/null*)
10416	    lt_cv_path_NM="$tmp_nm -p"
10417	    break
10418	    ;;
10419	  *)
10420	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10421	    continue # so that we can try to find one that supports BSD flags
10422	    ;;
10423	  esac
10424	  ;;
10425	esac
10426      fi
10427    done
10428    IFS="$lt_save_ifs"
10429  done
10430  : ${lt_cv_path_NM=no}
10431fi
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10434$as_echo "$lt_cv_path_NM" >&6; }
10435if test "$lt_cv_path_NM" != "no"; then
10436  NM="$lt_cv_path_NM"
10437else
10438  # Didn't find any BSD compatible name lister, look for dumpbin.
10439  if test -n "$DUMPBIN"; then :
10440    # Let the user override the test.
10441  else
10442    if test -n "$ac_tool_prefix"; then
10443  for ac_prog in dumpbin "link -dump"
10444  do
10445    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10446set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
10449if ${ac_cv_prog_DUMPBIN+:} false; then :
10450  $as_echo_n "(cached) " >&6
10451else
10452  if test -n "$DUMPBIN"; then
10453  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10454else
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458  IFS=$as_save_IFS
10459  test -z "$as_dir" && as_dir=.
10460    for ac_exec_ext in '' $ac_executable_extensions; do
10461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464    break 2
10465  fi
10466done
10467  done
10468IFS=$as_save_IFS
10469
10470fi
10471fi
10472DUMPBIN=$ac_cv_prog_DUMPBIN
10473if test -n "$DUMPBIN"; then
10474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10475$as_echo "$DUMPBIN" >&6; }
10476else
10477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
10479fi
10480
10481
10482    test -n "$DUMPBIN" && break
10483  done
10484fi
10485if test -z "$DUMPBIN"; then
10486  ac_ct_DUMPBIN=$DUMPBIN
10487  for ac_prog in dumpbin "link -dump"
10488do
10489  # Extract the first word of "$ac_prog", so it can be a program name with args.
10490set dummy $ac_prog; ac_word=$2
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
10493if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10494  $as_echo_n "(cached) " >&6
10495else
10496  if test -n "$ac_ct_DUMPBIN"; then
10497  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502  IFS=$as_save_IFS
10503  test -z "$as_dir" && as_dir=.
10504    for ac_exec_ext in '' $ac_executable_extensions; do
10505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508    break 2
10509  fi
10510done
10511  done
10512IFS=$as_save_IFS
10513
10514fi
10515fi
10516ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10517if test -n "$ac_ct_DUMPBIN"; then
10518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10519$as_echo "$ac_ct_DUMPBIN" >&6; }
10520else
10521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
10523fi
10524
10525
10526  test -n "$ac_ct_DUMPBIN" && break
10527done
10528
10529  if test "x$ac_ct_DUMPBIN" = x; then
10530    DUMPBIN=":"
10531  else
10532    case $cross_compiling:$ac_tool_warned in
10533yes:)
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10536ac_tool_warned=yes ;;
10537esac
10538    DUMPBIN=$ac_ct_DUMPBIN
10539  fi
10540fi
10541
10542    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10543    *COFF*)
10544      DUMPBIN="$DUMPBIN -symbols"
10545      ;;
10546    *)
10547      DUMPBIN=:
10548      ;;
10549    esac
10550  fi
10551
10552  if test "$DUMPBIN" != ":"; then
10553    NM="$DUMPBIN"
10554  fi
10555fi
10556test -z "$NM" && NM=nm
10557
10558
10559
10560
10561
10562
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10564$as_echo_n "checking the name lister ($NM) interface... " >&6; }
10565if ${lt_cv_nm_interface+:} false; then :
10566  $as_echo_n "(cached) " >&6
10567else
10568  lt_cv_nm_interface="BSD nm"
10569  echo "int some_variable = 0;" > conftest.$ac_ext
10570  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10571  (eval "$ac_compile" 2>conftest.err)
10572  cat conftest.err >&5
10573  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10574  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10575  cat conftest.err >&5
10576  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10577  cat conftest.out >&5
10578  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10579    lt_cv_nm_interface="MS dumpbin"
10580  fi
10581  rm -f conftest*
10582fi
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10584$as_echo "$lt_cv_nm_interface" >&6; }
10585
10586# find the maximum length of command line arguments
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10588$as_echo_n "checking the maximum length of command line arguments... " >&6; }
10589if ${lt_cv_sys_max_cmd_len+:} false; then :
10590  $as_echo_n "(cached) " >&6
10591else
10592    i=0
10593  teststring="ABCD"
10594
10595  case $build_os in
10596  msdosdjgpp*)
10597    # On DJGPP, this test can blow up pretty badly due to problems in libc
10598    # (any single argument exceeding 2000 bytes causes a buffer overrun
10599    # during glob expansion).  Even if it were fixed, the result of this
10600    # check would be larger than it should be.
10601    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10602    ;;
10603
10604  gnu*)
10605    # Under GNU Hurd, this test is not required because there is
10606    # no limit to the length of command line arguments.
10607    # Libtool will interpret -1 as no limit whatsoever
10608    lt_cv_sys_max_cmd_len=-1;
10609    ;;
10610
10611  cygwin* | mingw* | cegcc*)
10612    # On Win9x/ME, this test blows up -- it succeeds, but takes
10613    # about 5 minutes as the teststring grows exponentially.
10614    # Worse, since 9x/ME are not pre-emptively multitasking,
10615    # you end up with a "frozen" computer, even though with patience
10616    # the test eventually succeeds (with a max line length of 256k).
10617    # Instead, let's just punt: use the minimum linelength reported by
10618    # all of the supported platforms: 8192 (on NT/2K/XP).
10619    lt_cv_sys_max_cmd_len=8192;
10620    ;;
10621
10622  mint*)
10623    # On MiNT this can take a long time and run out of memory.
10624    lt_cv_sys_max_cmd_len=8192;
10625    ;;
10626
10627  amigaos*)
10628    # On AmigaOS with pdksh, this test takes hours, literally.
10629    # So we just punt and use a minimum line length of 8192.
10630    lt_cv_sys_max_cmd_len=8192;
10631    ;;
10632
10633  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10634    # This has been around since 386BSD, at least.  Likely further.
10635    if test -x /sbin/sysctl; then
10636      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10637    elif test -x /usr/sbin/sysctl; then
10638      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10639    else
10640      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
10641    fi
10642    # And add a safety zone
10643    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10644    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10645    ;;
10646
10647  interix*)
10648    # We know the value 262144 and hardcode it with a safety zone (like BSD)
10649    lt_cv_sys_max_cmd_len=196608
10650    ;;
10651
10652  os2*)
10653    # The test takes a long time on OS/2.
10654    lt_cv_sys_max_cmd_len=8192
10655    ;;
10656
10657  osf*)
10658    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10659    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10660    # nice to cause kernel panics so lets avoid the loop below.
10661    # First set a reasonable default.
10662    lt_cv_sys_max_cmd_len=16384
10663    #
10664    if test -x /sbin/sysconfig; then
10665      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10666        *1*) lt_cv_sys_max_cmd_len=-1 ;;
10667      esac
10668    fi
10669    ;;
10670  sco3.2v5*)
10671    lt_cv_sys_max_cmd_len=102400
10672    ;;
10673  sysv5* | sco5v6* | sysv4.2uw2*)
10674    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10675    if test -n "$kargmax"; then
10676      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
10677    else
10678      lt_cv_sys_max_cmd_len=32768
10679    fi
10680    ;;
10681  *)
10682    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10683    if test -n "$lt_cv_sys_max_cmd_len"; then
10684      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10685      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10686    else
10687      # Make teststring a little bigger before we do anything with it.
10688      # a 1K string should be a reasonable start.
10689      for i in 1 2 3 4 5 6 7 8 ; do
10690        teststring=$teststring$teststring
10691      done
10692      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10693      # If test is not a shell built-in, we'll probably end up computing a
10694      # maximum length that is only half of the actual maximum length, but
10695      # we can't tell.
10696      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10697	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10698	      test $i != 17 # 1/2 MB should be enough
10699      do
10700        i=`expr $i + 1`
10701        teststring=$teststring$teststring
10702      done
10703      # Only check the string length outside the loop.
10704      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10705      teststring=
10706      # Add a significant safety factor because C++ compilers can tack on
10707      # massive amounts of additional arguments before passing them to the
10708      # linker.  It appears as though 1/2 is a usable value.
10709      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10710    fi
10711    ;;
10712  esac
10713
10714fi
10715
10716if test -n $lt_cv_sys_max_cmd_len ; then
10717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10718$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10719else
10720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10721$as_echo "none" >&6; }
10722fi
10723max_cmd_len=$lt_cv_sys_max_cmd_len
10724
10725
10726
10727
10728
10729
10730: ${CP="cp -f"}
10731: ${MV="mv -f"}
10732: ${RM="rm -f"}
10733
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10735$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10736# Try some XSI features
10737xsi_shell=no
10738( _lt_dummy="a/b/c"
10739  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10740      = c,a/b,b/c, \
10741    && eval 'test $(( 1 + 1 )) -eq 2 \
10742    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10743  && xsi_shell=yes
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10745$as_echo "$xsi_shell" >&6; }
10746
10747
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10749$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10750lt_shell_append=no
10751( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10752    >/dev/null 2>&1 \
10753  && lt_shell_append=yes
10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10755$as_echo "$lt_shell_append" >&6; }
10756
10757
10758if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10759  lt_unset=unset
10760else
10761  lt_unset=false
10762fi
10763
10764
10765
10766
10767
10768# test EBCDIC or ASCII
10769case `echo X|tr X '\101'` in
10770 A) # ASCII based system
10771    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10772  lt_SP2NL='tr \040 \012'
10773  lt_NL2SP='tr \015\012 \040\040'
10774  ;;
10775 *) # EBCDIC based system
10776  lt_SP2NL='tr \100 \n'
10777  lt_NL2SP='tr \r\n \100\100'
10778  ;;
10779esac
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10790$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10791if ${lt_cv_to_host_file_cmd+:} false; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794  case $host in
10795  *-*-mingw* )
10796    case $build in
10797      *-*-mingw* ) # actually msys
10798        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10799        ;;
10800      *-*-cygwin* )
10801        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10802        ;;
10803      * ) # otherwise, assume *nix
10804        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10805        ;;
10806    esac
10807    ;;
10808  *-*-cygwin* )
10809    case $build in
10810      *-*-mingw* ) # actually msys
10811        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10812        ;;
10813      *-*-cygwin* )
10814        lt_cv_to_host_file_cmd=func_convert_file_noop
10815        ;;
10816      * ) # otherwise, assume *nix
10817        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10818        ;;
10819    esac
10820    ;;
10821  * ) # unhandled hosts (and "normal" native builds)
10822    lt_cv_to_host_file_cmd=func_convert_file_noop
10823    ;;
10824esac
10825
10826fi
10827
10828to_host_file_cmd=$lt_cv_to_host_file_cmd
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10830$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10831
10832
10833
10834
10835
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10837$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10838if ${lt_cv_to_tool_file_cmd+:} false; then :
10839  $as_echo_n "(cached) " >&6
10840else
10841  #assume ordinary cross tools, or native build.
10842lt_cv_to_tool_file_cmd=func_convert_file_noop
10843case $host in
10844  *-*-mingw* )
10845    case $build in
10846      *-*-mingw* ) # actually msys
10847        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10848        ;;
10849    esac
10850    ;;
10851esac
10852
10853fi
10854
10855to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10857$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10858
10859
10860
10861
10862
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10864$as_echo_n "checking for $LD option to reload object files... " >&6; }
10865if ${lt_cv_ld_reload_flag+:} false; then :
10866  $as_echo_n "(cached) " >&6
10867else
10868  lt_cv_ld_reload_flag='-r'
10869fi
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10871$as_echo "$lt_cv_ld_reload_flag" >&6; }
10872reload_flag=$lt_cv_ld_reload_flag
10873case $reload_flag in
10874"" | " "*) ;;
10875*) reload_flag=" $reload_flag" ;;
10876esac
10877reload_cmds='$LD$reload_flag -o $output$reload_objs'
10878case $host_os in
10879  cygwin* | mingw* | pw32* | cegcc*)
10880    if test "$GCC" != yes; then
10881      reload_cmds=false
10882    fi
10883    ;;
10884  darwin*)
10885    if test "$GCC" = yes; then
10886      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10887    else
10888      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10889    fi
10890    ;;
10891esac
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901if test -n "$ac_tool_prefix"; then
10902  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10903set dummy ${ac_tool_prefix}objdump; ac_word=$2
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905$as_echo_n "checking for $ac_word... " >&6; }
10906if ${ac_cv_prog_OBJDUMP+:} false; then :
10907  $as_echo_n "(cached) " >&6
10908else
10909  if test -n "$OBJDUMP"; then
10910  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10911else
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915  IFS=$as_save_IFS
10916  test -z "$as_dir" && as_dir=.
10917    for ac_exec_ext in '' $ac_executable_extensions; do
10918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921    break 2
10922  fi
10923done
10924  done
10925IFS=$as_save_IFS
10926
10927fi
10928fi
10929OBJDUMP=$ac_cv_prog_OBJDUMP
10930if test -n "$OBJDUMP"; then
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10932$as_echo "$OBJDUMP" >&6; }
10933else
10934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
10936fi
10937
10938
10939fi
10940if test -z "$ac_cv_prog_OBJDUMP"; then
10941  ac_ct_OBJDUMP=$OBJDUMP
10942  # Extract the first word of "objdump", so it can be a program name with args.
10943set dummy objdump; ac_word=$2
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945$as_echo_n "checking for $ac_word... " >&6; }
10946if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10947  $as_echo_n "(cached) " >&6
10948else
10949  if test -n "$ac_ct_OBJDUMP"; then
10950  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10951else
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955  IFS=$as_save_IFS
10956  test -z "$as_dir" && as_dir=.
10957    for ac_exec_ext in '' $ac_executable_extensions; do
10958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961    break 2
10962  fi
10963done
10964  done
10965IFS=$as_save_IFS
10966
10967fi
10968fi
10969ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10970if test -n "$ac_ct_OBJDUMP"; then
10971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10972$as_echo "$ac_ct_OBJDUMP" >&6; }
10973else
10974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975$as_echo "no" >&6; }
10976fi
10977
10978  if test "x$ac_ct_OBJDUMP" = x; then
10979    OBJDUMP="false"
10980  else
10981    case $cross_compiling:$ac_tool_warned in
10982yes:)
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10985ac_tool_warned=yes ;;
10986esac
10987    OBJDUMP=$ac_ct_OBJDUMP
10988  fi
10989else
10990  OBJDUMP="$ac_cv_prog_OBJDUMP"
10991fi
10992
10993test -z "$OBJDUMP" && OBJDUMP=objdump
10994
10995
10996
10997
10998
10999
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11001$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11002if ${lt_cv_deplibs_check_method+:} false; then :
11003  $as_echo_n "(cached) " >&6
11004else
11005  lt_cv_file_magic_cmd='$MAGIC_CMD'
11006lt_cv_file_magic_test_file=
11007lt_cv_deplibs_check_method='unknown'
11008# Need to set the preceding variable on all platforms that support
11009# interlibrary dependencies.
11010# 'none' -- dependencies not supported.
11011# `unknown' -- same as none, but documents that we really don't know.
11012# 'pass_all' -- all dependencies passed with no checks.
11013# 'test_compile' -- check by making test program.
11014# 'file_magic [[regex]]' -- check by looking for files in library path
11015# which responds to the $file_magic_cmd with a given extended regex.
11016# If you have `file' or equivalent on your system and you're not sure
11017# whether `pass_all' will *always* work, you probably want this one.
11018
11019case $host_os in
11020aix[4-9]*)
11021  lt_cv_deplibs_check_method=pass_all
11022  ;;
11023
11024beos*)
11025  lt_cv_deplibs_check_method=pass_all
11026  ;;
11027
11028bsdi[45]*)
11029  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11030  lt_cv_file_magic_cmd='/usr/bin/file -L'
11031  lt_cv_file_magic_test_file=/shlib/libc.so
11032  ;;
11033
11034cygwin*)
11035  # func_win32_libid is a shell function defined in ltmain.sh
11036  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11037  lt_cv_file_magic_cmd='func_win32_libid'
11038  ;;
11039
11040mingw* | pw32*)
11041  # Base MSYS/MinGW do not provide the 'file' command needed by
11042  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11043  # unless we find 'file', for example because we are cross-compiling.
11044  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11045  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11046    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11047    lt_cv_file_magic_cmd='func_win32_libid'
11048  else
11049    # Keep this pattern in sync with the one in func_win32_libid.
11050    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11051    lt_cv_file_magic_cmd='$OBJDUMP -f'
11052  fi
11053  ;;
11054
11055cegcc*)
11056  # use the weaker test based on 'objdump'. See mingw*.
11057  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11058  lt_cv_file_magic_cmd='$OBJDUMP -f'
11059  ;;
11060
11061darwin* | rhapsody*)
11062  lt_cv_deplibs_check_method=pass_all
11063  ;;
11064
11065freebsd* | dragonfly*)
11066  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11067    case $host_cpu in
11068    i*86 )
11069      # Not sure whether the presence of OpenBSD here was a mistake.
11070      # Let's accept both of them until this is cleared up.
11071      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11072      lt_cv_file_magic_cmd=/usr/bin/file
11073      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11074      ;;
11075    esac
11076  else
11077    lt_cv_deplibs_check_method=pass_all
11078  fi
11079  ;;
11080
11081gnu*)
11082  lt_cv_deplibs_check_method=pass_all
11083  ;;
11084
11085haiku*)
11086  lt_cv_deplibs_check_method=pass_all
11087  ;;
11088
11089hpux10.20* | hpux11*)
11090  lt_cv_file_magic_cmd=/usr/bin/file
11091  case $host_cpu in
11092  ia64*)
11093    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11094    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11095    ;;
11096  hppa*64*)
11097    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]'
11098    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11099    ;;
11100  *)
11101    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11102    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11103    ;;
11104  esac
11105  ;;
11106
11107interix[3-9]*)
11108  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11109  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11110  ;;
11111
11112irix5* | irix6* | nonstopux*)
11113  case $LD in
11114  *-32|*"-32 ") libmagic=32-bit;;
11115  *-n32|*"-n32 ") libmagic=N32;;
11116  *-64|*"-64 ") libmagic=64-bit;;
11117  *) libmagic=never-match;;
11118  esac
11119  lt_cv_deplibs_check_method=pass_all
11120  ;;
11121
11122# This must be glibc/ELF.
11123linux* | k*bsd*-gnu | kopensolaris*-gnu)
11124  lt_cv_deplibs_check_method=pass_all
11125  ;;
11126
11127netbsd*)
11128  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11129    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11130  else
11131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11132  fi
11133  ;;
11134
11135newos6*)
11136  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11137  lt_cv_file_magic_cmd=/usr/bin/file
11138  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11139  ;;
11140
11141*nto* | *qnx*)
11142  lt_cv_deplibs_check_method=pass_all
11143  ;;
11144
11145openbsd*)
11146  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11147    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11148  else
11149    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11150  fi
11151  ;;
11152
11153osf3* | osf4* | osf5*)
11154  lt_cv_deplibs_check_method=pass_all
11155  ;;
11156
11157rdos*)
11158  lt_cv_deplibs_check_method=pass_all
11159  ;;
11160
11161solaris*)
11162  lt_cv_deplibs_check_method=pass_all
11163  ;;
11164
11165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166  lt_cv_deplibs_check_method=pass_all
11167  ;;
11168
11169sysv4 | sysv4.3*)
11170  case $host_vendor in
11171  motorola)
11172    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]'
11173    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11174    ;;
11175  ncr)
11176    lt_cv_deplibs_check_method=pass_all
11177    ;;
11178  sequent)
11179    lt_cv_file_magic_cmd='/bin/file'
11180    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11181    ;;
11182  sni)
11183    lt_cv_file_magic_cmd='/bin/file'
11184    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11185    lt_cv_file_magic_test_file=/lib/libc.so
11186    ;;
11187  siemens)
11188    lt_cv_deplibs_check_method=pass_all
11189    ;;
11190  pc)
11191    lt_cv_deplibs_check_method=pass_all
11192    ;;
11193  esac
11194  ;;
11195
11196tpf*)
11197  lt_cv_deplibs_check_method=pass_all
11198  ;;
11199esac
11200
11201fi
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11203$as_echo "$lt_cv_deplibs_check_method" >&6; }
11204
11205file_magic_glob=
11206want_nocaseglob=no
11207if test "$build" = "$host"; then
11208  case $host_os in
11209  mingw* | pw32*)
11210    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11211      want_nocaseglob=yes
11212    else
11213      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11214    fi
11215    ;;
11216  esac
11217fi
11218
11219file_magic_cmd=$lt_cv_file_magic_cmd
11220deplibs_check_method=$lt_cv_deplibs_check_method
11221test -z "$deplibs_check_method" && deplibs_check_method=unknown
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244if test -n "$ac_tool_prefix"; then
11245  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11246set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if ${ac_cv_prog_DLLTOOL+:} false; then :
11250  $as_echo_n "(cached) " >&6
11251else
11252  if test -n "$DLLTOOL"; then
11253  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258  IFS=$as_save_IFS
11259  test -z "$as_dir" && as_dir=.
11260    for ac_exec_ext in '' $ac_executable_extensions; do
11261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264    break 2
11265  fi
11266done
11267  done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272DLLTOOL=$ac_cv_prog_DLLTOOL
11273if test -n "$DLLTOOL"; then
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11275$as_echo "$DLLTOOL" >&6; }
11276else
11277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282fi
11283if test -z "$ac_cv_prog_DLLTOOL"; then
11284  ac_ct_DLLTOOL=$DLLTOOL
11285  # Extract the first word of "dlltool", so it can be a program name with args.
11286set dummy dlltool; ac_word=$2
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288$as_echo_n "checking for $ac_word... " >&6; }
11289if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11290  $as_echo_n "(cached) " >&6
11291else
11292  if test -n "$ac_ct_DLLTOOL"; then
11293  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298  IFS=$as_save_IFS
11299  test -z "$as_dir" && as_dir=.
11300    for ac_exec_ext in '' $ac_executable_extensions; do
11301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304    break 2
11305  fi
11306done
11307  done
11308IFS=$as_save_IFS
11309
11310fi
11311fi
11312ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11313if test -n "$ac_ct_DLLTOOL"; then
11314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11315$as_echo "$ac_ct_DLLTOOL" >&6; }
11316else
11317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319fi
11320
11321  if test "x$ac_ct_DLLTOOL" = x; then
11322    DLLTOOL="false"
11323  else
11324    case $cross_compiling:$ac_tool_warned in
11325yes:)
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11328ac_tool_warned=yes ;;
11329esac
11330    DLLTOOL=$ac_ct_DLLTOOL
11331  fi
11332else
11333  DLLTOOL="$ac_cv_prog_DLLTOOL"
11334fi
11335
11336test -z "$DLLTOOL" && DLLTOOL=dlltool
11337
11338
11339
11340
11341
11342
11343
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11345$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11346if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11347  $as_echo_n "(cached) " >&6
11348else
11349  lt_cv_sharedlib_from_linklib_cmd='unknown'
11350
11351case $host_os in
11352cygwin* | mingw* | pw32* | cegcc*)
11353  # two different shell functions defined in ltmain.sh
11354  # decide which to use based on capabilities of $DLLTOOL
11355  case `$DLLTOOL --help 2>&1` in
11356  *--identify-strict*)
11357    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11358    ;;
11359  *)
11360    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11361    ;;
11362  esac
11363  ;;
11364*)
11365  # fallback: assume linklib IS sharedlib
11366  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11367  ;;
11368esac
11369
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11372$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11373sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11374test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11375
11376
11377
11378
11379
11380
11381
11382if test -n "$ac_tool_prefix"; then
11383  for ac_prog in ar
11384  do
11385    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11386set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if ${ac_cv_prog_AR+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  if test -n "$AR"; then
11393  ac_cv_prog_AR="$AR" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398  IFS=$as_save_IFS
11399  test -z "$as_dir" && as_dir=.
11400    for ac_exec_ext in '' $ac_executable_extensions; do
11401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404    break 2
11405  fi
11406done
11407  done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412AR=$ac_cv_prog_AR
11413if test -n "$AR"; then
11414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11415$as_echo "$AR" >&6; }
11416else
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419fi
11420
11421
11422    test -n "$AR" && break
11423  done
11424fi
11425if test -z "$AR"; then
11426  ac_ct_AR=$AR
11427  for ac_prog in ar
11428do
11429  # Extract the first word of "$ac_prog", so it can be a program name with args.
11430set dummy $ac_prog; ac_word=$2
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
11433if ${ac_cv_prog_ac_ct_AR+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  if test -n "$ac_ct_AR"; then
11437  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442  IFS=$as_save_IFS
11443  test -z "$as_dir" && as_dir=.
11444    for ac_exec_ext in '' $ac_executable_extensions; do
11445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446    ac_cv_prog_ac_ct_AR="$ac_prog"
11447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448    break 2
11449  fi
11450done
11451  done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456ac_ct_AR=$ac_cv_prog_ac_ct_AR
11457if test -n "$ac_ct_AR"; then
11458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11459$as_echo "$ac_ct_AR" >&6; }
11460else
11461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465
11466  test -n "$ac_ct_AR" && break
11467done
11468
11469  if test "x$ac_ct_AR" = x; then
11470    AR="false"
11471  else
11472    case $cross_compiling:$ac_tool_warned in
11473yes:)
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11476ac_tool_warned=yes ;;
11477esac
11478    AR=$ac_ct_AR
11479  fi
11480fi
11481
11482: ${AR=ar}
11483: ${AR_FLAGS=cru}
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11496$as_echo_n "checking for archiver @FILE support... " >&6; }
11497if ${lt_cv_ar_at_file+:} false; then :
11498  $as_echo_n "(cached) " >&6
11499else
11500  lt_cv_ar_at_file=no
11501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h.  */
11503
11504int
11505main ()
11506{
11507
11508  ;
11509  return 0;
11510}
11511_ACEOF
11512if ac_fn_c_try_compile "$LINENO"; then :
11513  echo conftest.$ac_objext > conftest.lst
11514      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11515      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11516  (eval $lt_ar_try) 2>&5
11517  ac_status=$?
11518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519  test $ac_status = 0; }
11520      if test "$ac_status" -eq 0; then
11521	# Ensure the archiver fails upon bogus file names.
11522	rm -f conftest.$ac_objext libconftest.a
11523	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11524  (eval $lt_ar_try) 2>&5
11525  ac_status=$?
11526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527  test $ac_status = 0; }
11528	if test "$ac_status" -ne 0; then
11529          lt_cv_ar_at_file=@
11530        fi
11531      fi
11532      rm -f conftest.* libconftest.a
11533
11534fi
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536
11537fi
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11539$as_echo "$lt_cv_ar_at_file" >&6; }
11540
11541if test "x$lt_cv_ar_at_file" = xno; then
11542  archiver_list_spec=
11543else
11544  archiver_list_spec=$lt_cv_ar_at_file
11545fi
11546
11547
11548
11549
11550
11551
11552
11553if test -n "$ac_tool_prefix"; then
11554  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11555set dummy ${ac_tool_prefix}strip; ac_word=$2
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
11558if ${ac_cv_prog_STRIP+:} false; then :
11559  $as_echo_n "(cached) " >&6
11560else
11561  if test -n "$STRIP"; then
11562  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567  IFS=$as_save_IFS
11568  test -z "$as_dir" && as_dir=.
11569    for ac_exec_ext in '' $ac_executable_extensions; do
11570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573    break 2
11574  fi
11575done
11576  done
11577IFS=$as_save_IFS
11578
11579fi
11580fi
11581STRIP=$ac_cv_prog_STRIP
11582if test -n "$STRIP"; then
11583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11584$as_echo "$STRIP" >&6; }
11585else
11586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
11588fi
11589
11590
11591fi
11592if test -z "$ac_cv_prog_STRIP"; then
11593  ac_ct_STRIP=$STRIP
11594  # Extract the first word of "strip", so it can be a program name with args.
11595set dummy strip; ac_word=$2
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597$as_echo_n "checking for $ac_word... " >&6; }
11598if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11599  $as_echo_n "(cached) " >&6
11600else
11601  if test -n "$ac_ct_STRIP"; then
11602  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11603else
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607  IFS=$as_save_IFS
11608  test -z "$as_dir" && as_dir=.
11609    for ac_exec_ext in '' $ac_executable_extensions; do
11610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611    ac_cv_prog_ac_ct_STRIP="strip"
11612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613    break 2
11614  fi
11615done
11616  done
11617IFS=$as_save_IFS
11618
11619fi
11620fi
11621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11622if test -n "$ac_ct_STRIP"; then
11623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11624$as_echo "$ac_ct_STRIP" >&6; }
11625else
11626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627$as_echo "no" >&6; }
11628fi
11629
11630  if test "x$ac_ct_STRIP" = x; then
11631    STRIP=":"
11632  else
11633    case $cross_compiling:$ac_tool_warned in
11634yes:)
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11637ac_tool_warned=yes ;;
11638esac
11639    STRIP=$ac_ct_STRIP
11640  fi
11641else
11642  STRIP="$ac_cv_prog_STRIP"
11643fi
11644
11645test -z "$STRIP" && STRIP=:
11646
11647
11648
11649
11650
11651
11652if test -n "$ac_tool_prefix"; then
11653  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11654set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if ${ac_cv_prog_RANLIB+:} false; then :
11658  $as_echo_n "(cached) " >&6
11659else
11660  if test -n "$RANLIB"; then
11661  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666  IFS=$as_save_IFS
11667  test -z "$as_dir" && as_dir=.
11668    for ac_exec_ext in '' $ac_executable_extensions; do
11669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672    break 2
11673  fi
11674done
11675  done
11676IFS=$as_save_IFS
11677
11678fi
11679fi
11680RANLIB=$ac_cv_prog_RANLIB
11681if test -n "$RANLIB"; then
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11683$as_echo "$RANLIB" >&6; }
11684else
11685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
11687fi
11688
11689
11690fi
11691if test -z "$ac_cv_prog_RANLIB"; then
11692  ac_ct_RANLIB=$RANLIB
11693  # Extract the first word of "ranlib", so it can be a program name with args.
11694set dummy ranlib; ac_word=$2
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696$as_echo_n "checking for $ac_word... " >&6; }
11697if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11698  $as_echo_n "(cached) " >&6
11699else
11700  if test -n "$ac_ct_RANLIB"; then
11701  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11702else
11703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704for as_dir in $PATH
11705do
11706  IFS=$as_save_IFS
11707  test -z "$as_dir" && as_dir=.
11708    for ac_exec_ext in '' $ac_executable_extensions; do
11709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710    ac_cv_prog_ac_ct_RANLIB="ranlib"
11711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712    break 2
11713  fi
11714done
11715  done
11716IFS=$as_save_IFS
11717
11718fi
11719fi
11720ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11721if test -n "$ac_ct_RANLIB"; then
11722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11723$as_echo "$ac_ct_RANLIB" >&6; }
11724else
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726$as_echo "no" >&6; }
11727fi
11728
11729  if test "x$ac_ct_RANLIB" = x; then
11730    RANLIB=":"
11731  else
11732    case $cross_compiling:$ac_tool_warned in
11733yes:)
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11736ac_tool_warned=yes ;;
11737esac
11738    RANLIB=$ac_ct_RANLIB
11739  fi
11740else
11741  RANLIB="$ac_cv_prog_RANLIB"
11742fi
11743
11744test -z "$RANLIB" && RANLIB=:
11745
11746
11747
11748
11749
11750
11751# Determine commands to create old-style static archives.
11752old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11753old_postinstall_cmds='chmod 644 $oldlib'
11754old_postuninstall_cmds=
11755
11756if test -n "$RANLIB"; then
11757  case $host_os in
11758  openbsd*)
11759    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11760    ;;
11761  *)
11762    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11763    ;;
11764  esac
11765  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11766fi
11767
11768case $host_os in
11769  darwin*)
11770    lock_old_archive_extraction=yes ;;
11771  *)
11772    lock_old_archive_extraction=no ;;
11773esac
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813# If no C compiler was specified, use CC.
11814LTCC=${LTCC-"$CC"}
11815
11816# If no C compiler flags were specified, use CFLAGS.
11817LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11818
11819# Allow CC to be a program name with arguments.
11820compiler=$CC
11821
11822
11823# Check for command to grab the raw symbol name followed by C symbol from nm.
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11825$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11826if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11827  $as_echo_n "(cached) " >&6
11828else
11829
11830# These are sane defaults that work on at least a few old systems.
11831# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11832
11833# Character class describing NM global symbol codes.
11834symcode='[BCDEGRST]'
11835
11836# Regexp to match symbols that can be accessed directly from C.
11837sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11838
11839# Define system-specific variables.
11840case $host_os in
11841aix*)
11842  symcode='[BCDT]'
11843  ;;
11844cygwin* | mingw* | pw32* | cegcc*)
11845  symcode='[ABCDGISTW]'
11846  ;;
11847hpux*)
11848  if test "$host_cpu" = ia64; then
11849    symcode='[ABCDEGRST]'
11850  fi
11851  ;;
11852irix* | nonstopux*)
11853  symcode='[BCDEGRST]'
11854  ;;
11855osf*)
11856  symcode='[BCDEGQRST]'
11857  ;;
11858solaris*)
11859  symcode='[BDRT]'
11860  ;;
11861sco3.2v5*)
11862  symcode='[DT]'
11863  ;;
11864sysv4.2uw2*)
11865  symcode='[DT]'
11866  ;;
11867sysv5* | sco5v6* | unixware* | OpenUNIX*)
11868  symcode='[ABDT]'
11869  ;;
11870sysv4)
11871  symcode='[DFNSTU]'
11872  ;;
11873esac
11874
11875# If we're using GNU nm, then use its standard symbol codes.
11876case `$NM -V 2>&1` in
11877*GNU* | *'with BFD'*)
11878  symcode='[ABCDGIRSTW]' ;;
11879esac
11880
11881# Transform an extracted symbol line into a proper C declaration.
11882# Some systems (esp. on ia64) link data and code symbols differently,
11883# so use this general approach.
11884lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11885
11886# Transform an extracted symbol line into symbol name and symbol address
11887lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11888lt_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'"
11889
11890# Handle CRLF in mingw tool chain
11891opt_cr=
11892case $build_os in
11893mingw*)
11894  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11895  ;;
11896esac
11897
11898# Try without a prefix underscore, then with it.
11899for ac_symprfx in "" "_"; do
11900
11901  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11902  symxfrm="\\1 $ac_symprfx\\2 \\2"
11903
11904  # Write the raw and C identifiers.
11905  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11906    # Fake it for dumpbin and say T for any non-static function
11907    # and D for any global variable.
11908    # Also find C++ and __fastcall symbols from MSVC++,
11909    # which start with @ or ?.
11910    lt_cv_sys_global_symbol_pipe="$AWK '"\
11911"     {last_section=section; section=\$ 3};"\
11912"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11913"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11914"     \$ 0!~/External *\|/{next};"\
11915"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11916"     {if(hide[section]) next};"\
11917"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11918"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11919"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11920"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11921"     ' prfx=^$ac_symprfx"
11922  else
11923    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11924  fi
11925  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11926
11927  # Check to see that the pipe works correctly.
11928  pipe_works=no
11929
11930  rm -f conftest*
11931  cat > conftest.$ac_ext <<_LT_EOF
11932#ifdef __cplusplus
11933extern "C" {
11934#endif
11935char nm_test_var;
11936void nm_test_func(void);
11937void nm_test_func(void){}
11938#ifdef __cplusplus
11939}
11940#endif
11941int main(){nm_test_var='a';nm_test_func();return(0);}
11942_LT_EOF
11943
11944  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11945  (eval $ac_compile) 2>&5
11946  ac_status=$?
11947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11948  test $ac_status = 0; }; then
11949    # Now try to grab the symbols.
11950    nlist=conftest.nm
11951    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11952  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11953  ac_status=$?
11954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11955  test $ac_status = 0; } && test -s "$nlist"; then
11956      # Try sorting and uniquifying the output.
11957      if sort "$nlist" | uniq > "$nlist"T; then
11958	mv -f "$nlist"T "$nlist"
11959      else
11960	rm -f "$nlist"T
11961      fi
11962
11963      # Make sure that we snagged all the symbols we need.
11964      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11965	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11966	  cat <<_LT_EOF > conftest.$ac_ext
11967/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11968#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11969/* DATA imports from DLLs on WIN32 con't be const, because runtime
11970   relocations are performed -- see ld's documentation on pseudo-relocs.  */
11971# define LT_DLSYM_CONST
11972#elif defined(__osf__)
11973/* This system does not cope well with relocations in const data.  */
11974# define LT_DLSYM_CONST
11975#else
11976# define LT_DLSYM_CONST const
11977#endif
11978
11979#ifdef __cplusplus
11980extern "C" {
11981#endif
11982
11983_LT_EOF
11984	  # Now generate the symbol file.
11985	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11986
11987	  cat <<_LT_EOF >> conftest.$ac_ext
11988
11989/* The mapping between symbol names and symbols.  */
11990LT_DLSYM_CONST struct {
11991  const char *name;
11992  void       *address;
11993}
11994lt__PROGRAM__LTX_preloaded_symbols[] =
11995{
11996  { "@PROGRAM@", (void *) 0 },
11997_LT_EOF
11998	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11999	  cat <<\_LT_EOF >> conftest.$ac_ext
12000  {0, (void *) 0}
12001};
12002
12003/* This works around a problem in FreeBSD linker */
12004#ifdef FREEBSD_WORKAROUND
12005static const void *lt_preloaded_setup() {
12006  return lt__PROGRAM__LTX_preloaded_symbols;
12007}
12008#endif
12009
12010#ifdef __cplusplus
12011}
12012#endif
12013_LT_EOF
12014	  # Now try linking the two files.
12015	  mv conftest.$ac_objext conftstm.$ac_objext
12016	  lt_globsym_save_LIBS=$LIBS
12017	  lt_globsym_save_CFLAGS=$CFLAGS
12018	  LIBS="conftstm.$ac_objext"
12019	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12020	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12021  (eval $ac_link) 2>&5
12022  ac_status=$?
12023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12025	    pipe_works=yes
12026	  fi
12027	  LIBS=$lt_globsym_save_LIBS
12028	  CFLAGS=$lt_globsym_save_CFLAGS
12029	else
12030	  echo "cannot find nm_test_func in $nlist" >&5
12031	fi
12032      else
12033	echo "cannot find nm_test_var in $nlist" >&5
12034      fi
12035    else
12036      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12037    fi
12038  else
12039    echo "$progname: failed program was:" >&5
12040    cat conftest.$ac_ext >&5
12041  fi
12042  rm -rf conftest* conftst*
12043
12044  # Do not use the global_symbol_pipe unless it works.
12045  if test "$pipe_works" = yes; then
12046    break
12047  else
12048    lt_cv_sys_global_symbol_pipe=
12049  fi
12050done
12051
12052fi
12053
12054if test -z "$lt_cv_sys_global_symbol_pipe"; then
12055  lt_cv_sys_global_symbol_to_cdecl=
12056fi
12057if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12059$as_echo "failed" >&6; }
12060else
12061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12062$as_echo "ok" >&6; }
12063fi
12064
12065# Response file support.
12066if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12067  nm_file_list_spec='@'
12068elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12069  nm_file_list_spec='@'
12070fi
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12099$as_echo_n "checking for sysroot... " >&6; }
12100
12101# Check whether --with-sysroot was given.
12102if test "${with_sysroot+set}" = set; then :
12103  withval=$with_sysroot;
12104else
12105  with_sysroot=no
12106fi
12107
12108
12109lt_sysroot=
12110case ${with_sysroot} in #(
12111 yes)
12112   if test "$GCC" = yes; then
12113     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12114   fi
12115   ;; #(
12116 /*)
12117   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12118   ;; #(
12119 no|'')
12120   ;; #(
12121 *)
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12123$as_echo "${with_sysroot}" >&6; }
12124   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12125   ;;
12126esac
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12129$as_echo "${lt_sysroot:-no}" >&6; }
12130
12131
12132
12133
12134
12135# Check whether --enable-libtool-lock was given.
12136if test "${enable_libtool_lock+set}" = set; then :
12137  enableval=$enable_libtool_lock;
12138fi
12139
12140test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12141
12142# Some flags need to be propagated to the compiler or linker for good
12143# libtool support.
12144case $host in
12145ia64-*-hpux*)
12146  # Find out which ABI we are using.
12147  echo 'int i;' > conftest.$ac_ext
12148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12149  (eval $ac_compile) 2>&5
12150  ac_status=$?
12151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152  test $ac_status = 0; }; then
12153    case `/usr/bin/file conftest.$ac_objext` in
12154      *ELF-32*)
12155	HPUX_IA64_MODE="32"
12156	;;
12157      *ELF-64*)
12158	HPUX_IA64_MODE="64"
12159	;;
12160    esac
12161  fi
12162  rm -rf conftest*
12163  ;;
12164*-*-irix6*)
12165  # Find out which ABI we are using.
12166  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12167  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12168  (eval $ac_compile) 2>&5
12169  ac_status=$?
12170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12171  test $ac_status = 0; }; then
12172    if test "$lt_cv_prog_gnu_ld" = yes; then
12173      case `/usr/bin/file conftest.$ac_objext` in
12174	*32-bit*)
12175	  LD="${LD-ld} -melf32bsmip"
12176	  ;;
12177	*N32*)
12178	  LD="${LD-ld} -melf32bmipn32"
12179	  ;;
12180	*64-bit*)
12181	  LD="${LD-ld} -melf64bmip"
12182	;;
12183      esac
12184    else
12185      case `/usr/bin/file conftest.$ac_objext` in
12186	*32-bit*)
12187	  LD="${LD-ld} -32"
12188	  ;;
12189	*N32*)
12190	  LD="${LD-ld} -n32"
12191	  ;;
12192	*64-bit*)
12193	  LD="${LD-ld} -64"
12194	  ;;
12195      esac
12196    fi
12197  fi
12198  rm -rf conftest*
12199  ;;
12200
12201x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12202s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12203  # Find out which ABI we are using.
12204  echo 'int i;' > conftest.$ac_ext
12205  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12206  (eval $ac_compile) 2>&5
12207  ac_status=$?
12208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12209  test $ac_status = 0; }; then
12210    case `/usr/bin/file conftest.o` in
12211      *32-bit*)
12212	case $host in
12213	  x86_64-*kfreebsd*-gnu)
12214	    LD="${LD-ld} -m elf_i386_fbsd"
12215	    ;;
12216	  x86_64-*linux*)
12217	    LD="${LD-ld} -m elf_i386"
12218	    ;;
12219	  ppc64-*linux*|powerpc64-*linux*)
12220	    LD="${LD-ld} -m elf32ppclinux"
12221	    ;;
12222	  s390x-*linux*)
12223	    LD="${LD-ld} -m elf_s390"
12224	    ;;
12225	  sparc64-*linux*)
12226	    LD="${LD-ld} -m elf32_sparc"
12227	    ;;
12228	esac
12229	;;
12230      *64-bit*)
12231	case $host in
12232	  x86_64-*kfreebsd*-gnu)
12233	    LD="${LD-ld} -m elf_x86_64_fbsd"
12234	    ;;
12235	  x86_64-*linux*)
12236	    LD="${LD-ld} -m elf_x86_64"
12237	    ;;
12238	  ppc*-*linux*|powerpc*-*linux*)
12239	    LD="${LD-ld} -m elf64ppc"
12240	    ;;
12241	  s390*-*linux*|s390*-*tpf*)
12242	    LD="${LD-ld} -m elf64_s390"
12243	    ;;
12244	  sparc*-*linux*)
12245	    LD="${LD-ld} -m elf64_sparc"
12246	    ;;
12247	esac
12248	;;
12249    esac
12250  fi
12251  rm -rf conftest*
12252  ;;
12253
12254*-*-sco3.2v5*)
12255  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12256  SAVE_CFLAGS="$CFLAGS"
12257  CFLAGS="$CFLAGS -belf"
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12259$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12260if ${lt_cv_cc_needs_belf+:} false; then :
12261  $as_echo_n "(cached) " >&6
12262else
12263  ac_ext=c
12264ac_cpp='$CPP $CPPFLAGS'
12265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267ac_compiler_gnu=$ac_cv_c_compiler_gnu
12268
12269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271
12272int
12273main ()
12274{
12275
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"; then :
12281  lt_cv_cc_needs_belf=yes
12282else
12283  lt_cv_cc_needs_belf=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286    conftest$ac_exeext conftest.$ac_ext
12287     ac_ext=c
12288ac_cpp='$CPP $CPPFLAGS'
12289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12291ac_compiler_gnu=$ac_cv_c_compiler_gnu
12292
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12295$as_echo "$lt_cv_cc_needs_belf" >&6; }
12296  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12297    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12298    CFLAGS="$SAVE_CFLAGS"
12299  fi
12300  ;;
12301*-*solaris*)
12302  # Find out which ABI we are using.
12303  echo 'int i;' > conftest.$ac_ext
12304  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12305  (eval $ac_compile) 2>&5
12306  ac_status=$?
12307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308  test $ac_status = 0; }; then
12309    case `/usr/bin/file conftest.o` in
12310    *64-bit*)
12311      case $lt_cv_prog_gnu_ld in
12312      yes*)
12313        case $host in
12314        i?86-*-solaris*)
12315          LD="${LD-ld} -m elf_x86_64"
12316          ;;
12317        sparc*-*-solaris*)
12318          LD="${LD-ld} -m elf64_sparc"
12319          ;;
12320        esac
12321        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12322        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12323          LD="${LD-ld}_sol2"
12324        fi
12325        ;;
12326      *)
12327	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12328	  LD="${LD-ld} -64"
12329	fi
12330	;;
12331      esac
12332      ;;
12333    esac
12334  fi
12335  rm -rf conftest*
12336  ;;
12337esac
12338
12339need_locks="$enable_libtool_lock"
12340
12341if test -n "$ac_tool_prefix"; then
12342  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12343set dummy ${ac_tool_prefix}mt; ac_word=$2
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  if test -n "$MANIFEST_TOOL"; then
12350  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355  IFS=$as_save_IFS
12356  test -z "$as_dir" && as_dir=.
12357    for ac_exec_ext in '' $ac_executable_extensions; do
12358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361    break 2
12362  fi
12363done
12364  done
12365IFS=$as_save_IFS
12366
12367fi
12368fi
12369MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12370if test -n "$MANIFEST_TOOL"; then
12371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12372$as_echo "$MANIFEST_TOOL" >&6; }
12373else
12374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376fi
12377
12378
12379fi
12380if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12381  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12382  # Extract the first word of "mt", so it can be a program name with args.
12383set dummy mt; ac_word=$2
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385$as_echo_n "checking for $ac_word... " >&6; }
12386if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12387  $as_echo_n "(cached) " >&6
12388else
12389  if test -n "$ac_ct_MANIFEST_TOOL"; then
12390  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12391else
12392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393for as_dir in $PATH
12394do
12395  IFS=$as_save_IFS
12396  test -z "$as_dir" && as_dir=.
12397    for ac_exec_ext in '' $ac_executable_extensions; do
12398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401    break 2
12402  fi
12403done
12404  done
12405IFS=$as_save_IFS
12406
12407fi
12408fi
12409ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12410if test -n "$ac_ct_MANIFEST_TOOL"; then
12411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12412$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12413else
12414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
12416fi
12417
12418  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12419    MANIFEST_TOOL=":"
12420  else
12421    case $cross_compiling:$ac_tool_warned in
12422yes:)
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12425ac_tool_warned=yes ;;
12426esac
12427    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12428  fi
12429else
12430  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12431fi
12432
12433test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12435$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12436if ${lt_cv_path_mainfest_tool+:} false; then :
12437  $as_echo_n "(cached) " >&6
12438else
12439  lt_cv_path_mainfest_tool=no
12440  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12441  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12442  cat conftest.err >&5
12443  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12444    lt_cv_path_mainfest_tool=yes
12445  fi
12446  rm -f conftest*
12447fi
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12449$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12450if test "x$lt_cv_path_mainfest_tool" != xyes; then
12451  MANIFEST_TOOL=:
12452fi
12453
12454
12455
12456
12457
12458
12459  case $host_os in
12460    rhapsody* | darwin*)
12461    if test -n "$ac_tool_prefix"; then
12462  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12463set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
12466if ${ac_cv_prog_DSYMUTIL+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  if test -n "$DSYMUTIL"; then
12470  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12471else
12472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475  IFS=$as_save_IFS
12476  test -z "$as_dir" && as_dir=.
12477    for ac_exec_ext in '' $ac_executable_extensions; do
12478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481    break 2
12482  fi
12483done
12484  done
12485IFS=$as_save_IFS
12486
12487fi
12488fi
12489DSYMUTIL=$ac_cv_prog_DSYMUTIL
12490if test -n "$DSYMUTIL"; then
12491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12492$as_echo "$DSYMUTIL" >&6; }
12493else
12494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495$as_echo "no" >&6; }
12496fi
12497
12498
12499fi
12500if test -z "$ac_cv_prog_DSYMUTIL"; then
12501  ac_ct_DSYMUTIL=$DSYMUTIL
12502  # Extract the first word of "dsymutil", so it can be a program name with args.
12503set dummy dsymutil; ac_word=$2
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505$as_echo_n "checking for $ac_word... " >&6; }
12506if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12507  $as_echo_n "(cached) " >&6
12508else
12509  if test -n "$ac_ct_DSYMUTIL"; then
12510  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12511else
12512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513for as_dir in $PATH
12514do
12515  IFS=$as_save_IFS
12516  test -z "$as_dir" && as_dir=.
12517    for ac_exec_ext in '' $ac_executable_extensions; do
12518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521    break 2
12522  fi
12523done
12524  done
12525IFS=$as_save_IFS
12526
12527fi
12528fi
12529ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12530if test -n "$ac_ct_DSYMUTIL"; then
12531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12532$as_echo "$ac_ct_DSYMUTIL" >&6; }
12533else
12534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535$as_echo "no" >&6; }
12536fi
12537
12538  if test "x$ac_ct_DSYMUTIL" = x; then
12539    DSYMUTIL=":"
12540  else
12541    case $cross_compiling:$ac_tool_warned in
12542yes:)
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12545ac_tool_warned=yes ;;
12546esac
12547    DSYMUTIL=$ac_ct_DSYMUTIL
12548  fi
12549else
12550  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12551fi
12552
12553    if test -n "$ac_tool_prefix"; then
12554  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12555set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557$as_echo_n "checking for $ac_word... " >&6; }
12558if ${ac_cv_prog_NMEDIT+:} false; then :
12559  $as_echo_n "(cached) " >&6
12560else
12561  if test -n "$NMEDIT"; then
12562  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12563else
12564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565for as_dir in $PATH
12566do
12567  IFS=$as_save_IFS
12568  test -z "$as_dir" && as_dir=.
12569    for ac_exec_ext in '' $ac_executable_extensions; do
12570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12571    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573    break 2
12574  fi
12575done
12576  done
12577IFS=$as_save_IFS
12578
12579fi
12580fi
12581NMEDIT=$ac_cv_prog_NMEDIT
12582if test -n "$NMEDIT"; then
12583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12584$as_echo "$NMEDIT" >&6; }
12585else
12586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588fi
12589
12590
12591fi
12592if test -z "$ac_cv_prog_NMEDIT"; then
12593  ac_ct_NMEDIT=$NMEDIT
12594  # Extract the first word of "nmedit", so it can be a program name with args.
12595set dummy nmedit; ac_word=$2
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
12598if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12599  $as_echo_n "(cached) " >&6
12600else
12601  if test -n "$ac_ct_NMEDIT"; then
12602  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12603else
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607  IFS=$as_save_IFS
12608  test -z "$as_dir" && as_dir=.
12609    for ac_exec_ext in '' $ac_executable_extensions; do
12610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611    ac_cv_prog_ac_ct_NMEDIT="nmedit"
12612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613    break 2
12614  fi
12615done
12616  done
12617IFS=$as_save_IFS
12618
12619fi
12620fi
12621ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12622if test -n "$ac_ct_NMEDIT"; then
12623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12624$as_echo "$ac_ct_NMEDIT" >&6; }
12625else
12626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
12628fi
12629
12630  if test "x$ac_ct_NMEDIT" = x; then
12631    NMEDIT=":"
12632  else
12633    case $cross_compiling:$ac_tool_warned in
12634yes:)
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12637ac_tool_warned=yes ;;
12638esac
12639    NMEDIT=$ac_ct_NMEDIT
12640  fi
12641else
12642  NMEDIT="$ac_cv_prog_NMEDIT"
12643fi
12644
12645    if test -n "$ac_tool_prefix"; then
12646  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12647set dummy ${ac_tool_prefix}lipo; ac_word=$2
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649$as_echo_n "checking for $ac_word... " >&6; }
12650if ${ac_cv_prog_LIPO+:} false; then :
12651  $as_echo_n "(cached) " >&6
12652else
12653  if test -n "$LIPO"; then
12654  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12655else
12656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657for as_dir in $PATH
12658do
12659  IFS=$as_save_IFS
12660  test -z "$as_dir" && as_dir=.
12661    for ac_exec_ext in '' $ac_executable_extensions; do
12662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665    break 2
12666  fi
12667done
12668  done
12669IFS=$as_save_IFS
12670
12671fi
12672fi
12673LIPO=$ac_cv_prog_LIPO
12674if test -n "$LIPO"; then
12675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12676$as_echo "$LIPO" >&6; }
12677else
12678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680fi
12681
12682
12683fi
12684if test -z "$ac_cv_prog_LIPO"; then
12685  ac_ct_LIPO=$LIPO
12686  # Extract the first word of "lipo", so it can be a program name with args.
12687set dummy lipo; ac_word=$2
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
12690if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693  if test -n "$ac_ct_LIPO"; then
12694  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699  IFS=$as_save_IFS
12700  test -z "$as_dir" && as_dir=.
12701    for ac_exec_ext in '' $ac_executable_extensions; do
12702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703    ac_cv_prog_ac_ct_LIPO="lipo"
12704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705    break 2
12706  fi
12707done
12708  done
12709IFS=$as_save_IFS
12710
12711fi
12712fi
12713ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12714if test -n "$ac_ct_LIPO"; then
12715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12716$as_echo "$ac_ct_LIPO" >&6; }
12717else
12718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
12720fi
12721
12722  if test "x$ac_ct_LIPO" = x; then
12723    LIPO=":"
12724  else
12725    case $cross_compiling:$ac_tool_warned in
12726yes:)
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12729ac_tool_warned=yes ;;
12730esac
12731    LIPO=$ac_ct_LIPO
12732  fi
12733else
12734  LIPO="$ac_cv_prog_LIPO"
12735fi
12736
12737    if test -n "$ac_tool_prefix"; then
12738  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12739set dummy ${ac_tool_prefix}otool; ac_word=$2
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
12742if ${ac_cv_prog_OTOOL+:} false; then :
12743  $as_echo_n "(cached) " >&6
12744else
12745  if test -n "$OTOOL"; then
12746  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12747else
12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751  IFS=$as_save_IFS
12752  test -z "$as_dir" && as_dir=.
12753    for ac_exec_ext in '' $ac_executable_extensions; do
12754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12755    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757    break 2
12758  fi
12759done
12760  done
12761IFS=$as_save_IFS
12762
12763fi
12764fi
12765OTOOL=$ac_cv_prog_OTOOL
12766if test -n "$OTOOL"; then
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12768$as_echo "$OTOOL" >&6; }
12769else
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774
12775fi
12776if test -z "$ac_cv_prog_OTOOL"; then
12777  ac_ct_OTOOL=$OTOOL
12778  # Extract the first word of "otool", so it can be a program name with args.
12779set dummy otool; ac_word=$2
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781$as_echo_n "checking for $ac_word... " >&6; }
12782if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12783  $as_echo_n "(cached) " >&6
12784else
12785  if test -n "$ac_ct_OTOOL"; then
12786  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12787else
12788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789for as_dir in $PATH
12790do
12791  IFS=$as_save_IFS
12792  test -z "$as_dir" && as_dir=.
12793    for ac_exec_ext in '' $ac_executable_extensions; do
12794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12795    ac_cv_prog_ac_ct_OTOOL="otool"
12796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797    break 2
12798  fi
12799done
12800  done
12801IFS=$as_save_IFS
12802
12803fi
12804fi
12805ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12806if test -n "$ac_ct_OTOOL"; then
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12808$as_echo "$ac_ct_OTOOL" >&6; }
12809else
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813
12814  if test "x$ac_ct_OTOOL" = x; then
12815    OTOOL=":"
12816  else
12817    case $cross_compiling:$ac_tool_warned in
12818yes:)
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12821ac_tool_warned=yes ;;
12822esac
12823    OTOOL=$ac_ct_OTOOL
12824  fi
12825else
12826  OTOOL="$ac_cv_prog_OTOOL"
12827fi
12828
12829    if test -n "$ac_tool_prefix"; then
12830  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12831set dummy ${ac_tool_prefix}otool64; ac_word=$2
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833$as_echo_n "checking for $ac_word... " >&6; }
12834if ${ac_cv_prog_OTOOL64+:} false; then :
12835  $as_echo_n "(cached) " >&6
12836else
12837  if test -n "$OTOOL64"; then
12838  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12839else
12840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843  IFS=$as_save_IFS
12844  test -z "$as_dir" && as_dir=.
12845    for ac_exec_ext in '' $ac_executable_extensions; do
12846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849    break 2
12850  fi
12851done
12852  done
12853IFS=$as_save_IFS
12854
12855fi
12856fi
12857OTOOL64=$ac_cv_prog_OTOOL64
12858if test -n "$OTOOL64"; then
12859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12860$as_echo "$OTOOL64" >&6; }
12861else
12862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
12864fi
12865
12866
12867fi
12868if test -z "$ac_cv_prog_OTOOL64"; then
12869  ac_ct_OTOOL64=$OTOOL64
12870  # Extract the first word of "otool64", so it can be a program name with args.
12871set dummy otool64; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
12874if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12875  $as_echo_n "(cached) " >&6
12876else
12877  if test -n "$ac_ct_OTOOL64"; then
12878  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883  IFS=$as_save_IFS
12884  test -z "$as_dir" && as_dir=.
12885    for ac_exec_ext in '' $ac_executable_extensions; do
12886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887    ac_cv_prog_ac_ct_OTOOL64="otool64"
12888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889    break 2
12890  fi
12891done
12892  done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12898if test -n "$ac_ct_OTOOL64"; then
12899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12900$as_echo "$ac_ct_OTOOL64" >&6; }
12901else
12902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
12905
12906  if test "x$ac_ct_OTOOL64" = x; then
12907    OTOOL64=":"
12908  else
12909    case $cross_compiling:$ac_tool_warned in
12910yes:)
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12913ac_tool_warned=yes ;;
12914esac
12915    OTOOL64=$ac_ct_OTOOL64
12916  fi
12917else
12918  OTOOL64="$ac_cv_prog_OTOOL64"
12919fi
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12948$as_echo_n "checking for -single_module linker flag... " >&6; }
12949if ${lt_cv_apple_cc_single_mod+:} false; then :
12950  $as_echo_n "(cached) " >&6
12951else
12952  lt_cv_apple_cc_single_mod=no
12953      if test -z "${LT_MULTI_MODULE}"; then
12954	# By default we will add the -single_module flag. You can override
12955	# by either setting the environment variable LT_MULTI_MODULE
12956	# non-empty at configure time, or by adding -multi_module to the
12957	# link flags.
12958	rm -rf libconftest.dylib*
12959	echo "int foo(void){return 1;}" > conftest.c
12960	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12961-dynamiclib -Wl,-single_module conftest.c" >&5
12962	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12963	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12964        _lt_result=$?
12965	# If there is a non-empty error log, and "single_module"
12966	# appears in it, assume the flag caused a linker warning
12967        if test -s conftest.err && $GREP single_module conftest.err; then
12968	  cat conftest.err >&5
12969	# Otherwise, if the output was created with a 0 exit code from
12970	# the compiler, it worked.
12971	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
12972	  lt_cv_apple_cc_single_mod=yes
12973	else
12974	  cat conftest.err >&5
12975	fi
12976	rm -rf libconftest.dylib*
12977	rm -f conftest.*
12978      fi
12979fi
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12981$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12982
12983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12984$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12985if ${lt_cv_ld_exported_symbols_list+:} false; then :
12986  $as_echo_n "(cached) " >&6
12987else
12988  lt_cv_ld_exported_symbols_list=no
12989      save_LDFLAGS=$LDFLAGS
12990      echo "_main" > conftest.sym
12991      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993/* end confdefs.h.  */
12994
12995int
12996main ()
12997{
12998
12999  ;
13000  return 0;
13001}
13002_ACEOF
13003if ac_fn_c_try_link "$LINENO"; then :
13004  lt_cv_ld_exported_symbols_list=yes
13005else
13006  lt_cv_ld_exported_symbols_list=no
13007fi
13008rm -f core conftest.err conftest.$ac_objext \
13009    conftest$ac_exeext conftest.$ac_ext
13010	LDFLAGS="$save_LDFLAGS"
13011
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13014$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13015
13016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13017$as_echo_n "checking for -force_load linker flag... " >&6; }
13018if ${lt_cv_ld_force_load+:} false; then :
13019  $as_echo_n "(cached) " >&6
13020else
13021  lt_cv_ld_force_load=no
13022      cat > conftest.c << _LT_EOF
13023int forced_loaded() { return 2;}
13024_LT_EOF
13025      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13026      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13027      echo "$AR cru libconftest.a conftest.o" >&5
13028      $AR cru libconftest.a conftest.o 2>&5
13029      echo "$RANLIB libconftest.a" >&5
13030      $RANLIB libconftest.a 2>&5
13031      cat > conftest.c << _LT_EOF
13032int main() { return 0;}
13033_LT_EOF
13034      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13035      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13036      _lt_result=$?
13037      if test -s conftest.err && $GREP force_load conftest.err; then
13038	cat conftest.err >&5
13039      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13040	lt_cv_ld_force_load=yes
13041      else
13042	cat conftest.err >&5
13043      fi
13044        rm -f conftest.err libconftest.a conftest conftest.c
13045        rm -rf conftest.dSYM
13046
13047fi
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13049$as_echo "$lt_cv_ld_force_load" >&6; }
13050    case $host_os in
13051    rhapsody* | darwin1.[012])
13052      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13053    darwin1.*)
13054      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13055    darwin*) # darwin 5.x on
13056      # if running on 10.5 or later, the deployment target defaults
13057      # to the OS version, if on x86, and 10.4, the deployment
13058      # target defaults to 10.4. Don't you love it?
13059      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13060	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13061	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13062	10.[012]*)
13063	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13064	10.*)
13065	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13066      esac
13067    ;;
13068  esac
13069    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13070      _lt_dar_single_mod='$single_module'
13071    fi
13072    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13073      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13074    else
13075      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13076    fi
13077    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13078      _lt_dsymutil='~$DSYMUTIL $lib || :'
13079    else
13080      _lt_dsymutil=
13081    fi
13082    ;;
13083  esac
13084
13085for ac_header in dlfcn.h
13086do :
13087  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13088"
13089if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13090  cat >>confdefs.h <<_ACEOF
13091#define HAVE_DLFCN_H 1
13092_ACEOF
13093
13094fi
13095
13096done
13097
13098
13099
13100
13101func_stripname_cnf ()
13102{
13103  case ${2} in
13104  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13105  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13106  esac
13107} # func_stripname_cnf
13108
13109
13110
13111
13112
13113# Set options
13114enable_win32_dll=yes
13115
13116case $host in
13117*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13118  if test -n "$ac_tool_prefix"; then
13119  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13120set dummy ${ac_tool_prefix}as; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
13123if ${ac_cv_prog_AS+:} false; then :
13124  $as_echo_n "(cached) " >&6
13125else
13126  if test -n "$AS"; then
13127  ac_cv_prog_AS="$AS" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132  IFS=$as_save_IFS
13133  test -z "$as_dir" && as_dir=.
13134    for ac_exec_ext in '' $ac_executable_extensions; do
13135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136    ac_cv_prog_AS="${ac_tool_prefix}as"
13137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138    break 2
13139  fi
13140done
13141  done
13142IFS=$as_save_IFS
13143
13144fi
13145fi
13146AS=$ac_cv_prog_AS
13147if test -n "$AS"; then
13148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13149$as_echo "$AS" >&6; }
13150else
13151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
13153fi
13154
13155
13156fi
13157if test -z "$ac_cv_prog_AS"; then
13158  ac_ct_AS=$AS
13159  # Extract the first word of "as", so it can be a program name with args.
13160set dummy as; ac_word=$2
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162$as_echo_n "checking for $ac_word... " >&6; }
13163if ${ac_cv_prog_ac_ct_AS+:} false; then :
13164  $as_echo_n "(cached) " >&6
13165else
13166  if test -n "$ac_ct_AS"; then
13167  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13168else
13169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170for as_dir in $PATH
13171do
13172  IFS=$as_save_IFS
13173  test -z "$as_dir" && as_dir=.
13174    for ac_exec_ext in '' $ac_executable_extensions; do
13175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13176    ac_cv_prog_ac_ct_AS="as"
13177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13178    break 2
13179  fi
13180done
13181  done
13182IFS=$as_save_IFS
13183
13184fi
13185fi
13186ac_ct_AS=$ac_cv_prog_ac_ct_AS
13187if test -n "$ac_ct_AS"; then
13188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13189$as_echo "$ac_ct_AS" >&6; }
13190else
13191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192$as_echo "no" >&6; }
13193fi
13194
13195  if test "x$ac_ct_AS" = x; then
13196    AS="false"
13197  else
13198    case $cross_compiling:$ac_tool_warned in
13199yes:)
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13202ac_tool_warned=yes ;;
13203esac
13204    AS=$ac_ct_AS
13205  fi
13206else
13207  AS="$ac_cv_prog_AS"
13208fi
13209
13210  if test -n "$ac_tool_prefix"; then
13211  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13212set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
13215if ${ac_cv_prog_DLLTOOL+:} false; then :
13216  $as_echo_n "(cached) " >&6
13217else
13218  if test -n "$DLLTOOL"; then
13219  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13220else
13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222for as_dir in $PATH
13223do
13224  IFS=$as_save_IFS
13225  test -z "$as_dir" && as_dir=.
13226    for ac_exec_ext in '' $ac_executable_extensions; do
13227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13228    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230    break 2
13231  fi
13232done
13233  done
13234IFS=$as_save_IFS
13235
13236fi
13237fi
13238DLLTOOL=$ac_cv_prog_DLLTOOL
13239if test -n "$DLLTOOL"; then
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13241$as_echo "$DLLTOOL" >&6; }
13242else
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
13245fi
13246
13247
13248fi
13249if test -z "$ac_cv_prog_DLLTOOL"; then
13250  ac_ct_DLLTOOL=$DLLTOOL
13251  # Extract the first word of "dlltool", so it can be a program name with args.
13252set dummy dlltool; ac_word=$2
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254$as_echo_n "checking for $ac_word... " >&6; }
13255if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13256  $as_echo_n "(cached) " >&6
13257else
13258  if test -n "$ac_ct_DLLTOOL"; then
13259  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13260else
13261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262for as_dir in $PATH
13263do
13264  IFS=$as_save_IFS
13265  test -z "$as_dir" && as_dir=.
13266    for ac_exec_ext in '' $ac_executable_extensions; do
13267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13268    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270    break 2
13271  fi
13272done
13273  done
13274IFS=$as_save_IFS
13275
13276fi
13277fi
13278ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13279if test -n "$ac_ct_DLLTOOL"; then
13280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13281$as_echo "$ac_ct_DLLTOOL" >&6; }
13282else
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
13285fi
13286
13287  if test "x$ac_ct_DLLTOOL" = x; then
13288    DLLTOOL="false"
13289  else
13290    case $cross_compiling:$ac_tool_warned in
13291yes:)
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13294ac_tool_warned=yes ;;
13295esac
13296    DLLTOOL=$ac_ct_DLLTOOL
13297  fi
13298else
13299  DLLTOOL="$ac_cv_prog_DLLTOOL"
13300fi
13301
13302  if test -n "$ac_tool_prefix"; then
13303  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13304set dummy ${ac_tool_prefix}objdump; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
13307if ${ac_cv_prog_OBJDUMP+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  if test -n "$OBJDUMP"; then
13311  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316  IFS=$as_save_IFS
13317  test -z "$as_dir" && as_dir=.
13318    for ac_exec_ext in '' $ac_executable_extensions; do
13319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13320    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322    break 2
13323  fi
13324done
13325  done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330OBJDUMP=$ac_cv_prog_OBJDUMP
13331if test -n "$OBJDUMP"; then
13332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13333$as_echo "$OBJDUMP" >&6; }
13334else
13335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339
13340fi
13341if test -z "$ac_cv_prog_OBJDUMP"; then
13342  ac_ct_OBJDUMP=$OBJDUMP
13343  # Extract the first word of "objdump", so it can be a program name with args.
13344set dummy objdump; ac_word=$2
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346$as_echo_n "checking for $ac_word... " >&6; }
13347if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13348  $as_echo_n "(cached) " >&6
13349else
13350  if test -n "$ac_ct_OBJDUMP"; then
13351  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13352else
13353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354for as_dir in $PATH
13355do
13356  IFS=$as_save_IFS
13357  test -z "$as_dir" && as_dir=.
13358    for ac_exec_ext in '' $ac_executable_extensions; do
13359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362    break 2
13363  fi
13364done
13365  done
13366IFS=$as_save_IFS
13367
13368fi
13369fi
13370ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13371if test -n "$ac_ct_OBJDUMP"; then
13372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13373$as_echo "$ac_ct_OBJDUMP" >&6; }
13374else
13375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376$as_echo "no" >&6; }
13377fi
13378
13379  if test "x$ac_ct_OBJDUMP" = x; then
13380    OBJDUMP="false"
13381  else
13382    case $cross_compiling:$ac_tool_warned in
13383yes:)
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13386ac_tool_warned=yes ;;
13387esac
13388    OBJDUMP=$ac_ct_OBJDUMP
13389  fi
13390else
13391  OBJDUMP="$ac_cv_prog_OBJDUMP"
13392fi
13393
13394  ;;
13395esac
13396
13397test -z "$AS" && AS=as
13398
13399
13400
13401
13402
13403test -z "$DLLTOOL" && DLLTOOL=dlltool
13404
13405
13406
13407
13408
13409test -z "$OBJDUMP" && OBJDUMP=objdump
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419            # Check whether --enable-shared was given.
13420if test "${enable_shared+set}" = set; then :
13421  enableval=$enable_shared; p=${PACKAGE-default}
13422    case $enableval in
13423    yes) enable_shared=yes ;;
13424    no) enable_shared=no ;;
13425    *)
13426      enable_shared=no
13427      # Look at the argument we got.  We use all the common list separators.
13428      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13429      for pkg in $enableval; do
13430	IFS="$lt_save_ifs"
13431	if test "X$pkg" = "X$p"; then
13432	  enable_shared=yes
13433	fi
13434      done
13435      IFS="$lt_save_ifs"
13436      ;;
13437    esac
13438else
13439  enable_shared=yes
13440fi
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450  # Check whether --enable-static was given.
13451if test "${enable_static+set}" = set; then :
13452  enableval=$enable_static; p=${PACKAGE-default}
13453    case $enableval in
13454    yes) enable_static=yes ;;
13455    no) enable_static=no ;;
13456    *)
13457     enable_static=no
13458      # Look at the argument we got.  We use all the common list separators.
13459      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13460      for pkg in $enableval; do
13461	IFS="$lt_save_ifs"
13462	if test "X$pkg" = "X$p"; then
13463	  enable_static=yes
13464	fi
13465      done
13466      IFS="$lt_save_ifs"
13467      ;;
13468    esac
13469else
13470  enable_static=yes
13471fi
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482# Check whether --with-pic was given.
13483if test "${with_pic+set}" = set; then :
13484  withval=$with_pic; lt_p=${PACKAGE-default}
13485    case $withval in
13486    yes|no) pic_mode=$withval ;;
13487    *)
13488      pic_mode=default
13489      # Look at the argument we got.  We use all the common list separators.
13490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13491      for lt_pkg in $withval; do
13492	IFS="$lt_save_ifs"
13493	if test "X$lt_pkg" = "X$lt_p"; then
13494	  pic_mode=yes
13495	fi
13496      done
13497      IFS="$lt_save_ifs"
13498      ;;
13499    esac
13500else
13501  pic_mode=default
13502fi
13503
13504
13505test -z "$pic_mode" && pic_mode=default
13506
13507
13508
13509
13510
13511
13512
13513  # Check whether --enable-fast-install was given.
13514if test "${enable_fast_install+set}" = set; then :
13515  enableval=$enable_fast_install; p=${PACKAGE-default}
13516    case $enableval in
13517    yes) enable_fast_install=yes ;;
13518    no) enable_fast_install=no ;;
13519    *)
13520      enable_fast_install=no
13521      # Look at the argument we got.  We use all the common list separators.
13522      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13523      for pkg in $enableval; do
13524	IFS="$lt_save_ifs"
13525	if test "X$pkg" = "X$p"; then
13526	  enable_fast_install=yes
13527	fi
13528      done
13529      IFS="$lt_save_ifs"
13530      ;;
13531    esac
13532else
13533  enable_fast_install=yes
13534fi
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546# This can be used to rebuild libtool when needed
13547LIBTOOL_DEPS="$ltmain"
13548
13549# Always use our own libtool.
13550LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581test -z "$LN_S" && LN_S="ln -s"
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596if test -n "${ZSH_VERSION+set}" ; then
13597   setopt NO_GLOB_SUBST
13598fi
13599
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13601$as_echo_n "checking for objdir... " >&6; }
13602if ${lt_cv_objdir+:} false; then :
13603  $as_echo_n "(cached) " >&6
13604else
13605  rm -f .libs 2>/dev/null
13606mkdir .libs 2>/dev/null
13607if test -d .libs; then
13608  lt_cv_objdir=.libs
13609else
13610  # MS-DOS does not allow filenames that begin with a dot.
13611  lt_cv_objdir=_libs
13612fi
13613rmdir .libs 2>/dev/null
13614fi
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13616$as_echo "$lt_cv_objdir" >&6; }
13617objdir=$lt_cv_objdir
13618
13619
13620
13621
13622
13623cat >>confdefs.h <<_ACEOF
13624#define LT_OBJDIR "$lt_cv_objdir/"
13625_ACEOF
13626
13627
13628
13629
13630case $host_os in
13631aix3*)
13632  # AIX sometimes has problems with the GCC collect2 program.  For some
13633  # reason, if we set the COLLECT_NAMES environment variable, the problems
13634  # vanish in a puff of smoke.
13635  if test "X${COLLECT_NAMES+set}" != Xset; then
13636    COLLECT_NAMES=
13637    export COLLECT_NAMES
13638  fi
13639  ;;
13640esac
13641
13642# Global variables:
13643ofile=libtool
13644can_build_shared=yes
13645
13646# All known linkers require a `.a' archive for static linking (except MSVC,
13647# which needs '.lib').
13648libext=a
13649
13650with_gnu_ld="$lt_cv_prog_gnu_ld"
13651
13652old_CC="$CC"
13653old_CFLAGS="$CFLAGS"
13654
13655# Set sane defaults for various variables
13656test -z "$CC" && CC=cc
13657test -z "$LTCC" && LTCC=$CC
13658test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13659test -z "$LD" && LD=ld
13660test -z "$ac_objext" && ac_objext=o
13661
13662for cc_temp in $compiler""; do
13663  case $cc_temp in
13664    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13665    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13666    \-*) ;;
13667    *) break;;
13668  esac
13669done
13670cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13671
13672
13673# Only perform the check for file, if the check method requires it
13674test -z "$MAGIC_CMD" && MAGIC_CMD=file
13675case $deplibs_check_method in
13676file_magic*)
13677  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13679$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13680if ${lt_cv_path_MAGIC_CMD+:} false; then :
13681  $as_echo_n "(cached) " >&6
13682else
13683  case $MAGIC_CMD in
13684[\\/*] |  ?:[\\/]*)
13685  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13686  ;;
13687*)
13688  lt_save_MAGIC_CMD="$MAGIC_CMD"
13689  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13690  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13691  for ac_dir in $ac_dummy; do
13692    IFS="$lt_save_ifs"
13693    test -z "$ac_dir" && ac_dir=.
13694    if test -f $ac_dir/${ac_tool_prefix}file; then
13695      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13696      if test -n "$file_magic_test_file"; then
13697	case $deplibs_check_method in
13698	"file_magic "*)
13699	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13700	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13701	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13702	    $EGREP "$file_magic_regex" > /dev/null; then
13703	    :
13704	  else
13705	    cat <<_LT_EOF 1>&2
13706
13707*** Warning: the command libtool uses to detect shared libraries,
13708*** $file_magic_cmd, produces output that libtool cannot recognize.
13709*** The result is that libtool may fail to recognize shared libraries
13710*** as such.  This will affect the creation of libtool libraries that
13711*** depend on shared libraries, but programs linked with such libtool
13712*** libraries will work regardless of this problem.  Nevertheless, you
13713*** may want to report the problem to your system manager and/or to
13714*** bug-libtool@gnu.org
13715
13716_LT_EOF
13717	  fi ;;
13718	esac
13719      fi
13720      break
13721    fi
13722  done
13723  IFS="$lt_save_ifs"
13724  MAGIC_CMD="$lt_save_MAGIC_CMD"
13725  ;;
13726esac
13727fi
13728
13729MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13730if test -n "$MAGIC_CMD"; then
13731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13732$as_echo "$MAGIC_CMD" >&6; }
13733else
13734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735$as_echo "no" >&6; }
13736fi
13737
13738
13739
13740
13741
13742if test -z "$lt_cv_path_MAGIC_CMD"; then
13743  if test -n "$ac_tool_prefix"; then
13744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13745$as_echo_n "checking for file... " >&6; }
13746if ${lt_cv_path_MAGIC_CMD+:} false; then :
13747  $as_echo_n "(cached) " >&6
13748else
13749  case $MAGIC_CMD in
13750[\\/*] |  ?:[\\/]*)
13751  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13752  ;;
13753*)
13754  lt_save_MAGIC_CMD="$MAGIC_CMD"
13755  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13756  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13757  for ac_dir in $ac_dummy; do
13758    IFS="$lt_save_ifs"
13759    test -z "$ac_dir" && ac_dir=.
13760    if test -f $ac_dir/file; then
13761      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13762      if test -n "$file_magic_test_file"; then
13763	case $deplibs_check_method in
13764	"file_magic "*)
13765	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13766	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13767	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13768	    $EGREP "$file_magic_regex" > /dev/null; then
13769	    :
13770	  else
13771	    cat <<_LT_EOF 1>&2
13772
13773*** Warning: the command libtool uses to detect shared libraries,
13774*** $file_magic_cmd, produces output that libtool cannot recognize.
13775*** The result is that libtool may fail to recognize shared libraries
13776*** as such.  This will affect the creation of libtool libraries that
13777*** depend on shared libraries, but programs linked with such libtool
13778*** libraries will work regardless of this problem.  Nevertheless, you
13779*** may want to report the problem to your system manager and/or to
13780*** bug-libtool@gnu.org
13781
13782_LT_EOF
13783	  fi ;;
13784	esac
13785      fi
13786      break
13787    fi
13788  done
13789  IFS="$lt_save_ifs"
13790  MAGIC_CMD="$lt_save_MAGIC_CMD"
13791  ;;
13792esac
13793fi
13794
13795MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13796if test -n "$MAGIC_CMD"; then
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13798$as_echo "$MAGIC_CMD" >&6; }
13799else
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801$as_echo "no" >&6; }
13802fi
13803
13804
13805  else
13806    MAGIC_CMD=:
13807  fi
13808fi
13809
13810  fi
13811  ;;
13812esac
13813
13814# Use C for the default configuration in the libtool script
13815
13816lt_save_CC="$CC"
13817ac_ext=c
13818ac_cpp='$CPP $CPPFLAGS'
13819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821ac_compiler_gnu=$ac_cv_c_compiler_gnu
13822
13823
13824# Source file extension for C test sources.
13825ac_ext=c
13826
13827# Object file extension for compiled C test sources.
13828objext=o
13829objext=$objext
13830
13831# Code to be used in simple compile tests
13832lt_simple_compile_test_code="int some_variable = 0;"
13833
13834# Code to be used in simple link tests
13835lt_simple_link_test_code='int main(){return(0);}'
13836
13837
13838
13839
13840
13841
13842
13843# If no C compiler was specified, use CC.
13844LTCC=${LTCC-"$CC"}
13845
13846# If no C compiler flags were specified, use CFLAGS.
13847LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13848
13849# Allow CC to be a program name with arguments.
13850compiler=$CC
13851
13852# Save the default compiler, since it gets overwritten when the other
13853# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13854compiler_DEFAULT=$CC
13855
13856# save warnings/boilerplate of simple test code
13857ac_outfile=conftest.$ac_objext
13858echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13860_lt_compiler_boilerplate=`cat conftest.err`
13861$RM conftest*
13862
13863ac_outfile=conftest.$ac_objext
13864echo "$lt_simple_link_test_code" >conftest.$ac_ext
13865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13866_lt_linker_boilerplate=`cat conftest.err`
13867$RM -r conftest*
13868
13869
13870## CAVEAT EMPTOR:
13871## There is no encapsulation within the following macros, do not change
13872## the running order or otherwise move them around unless you know exactly
13873## what you are doing...
13874if test -n "$compiler"; then
13875
13876lt_prog_compiler_no_builtin_flag=
13877
13878if test "$GCC" = yes; then
13879  case $cc_basename in
13880  nvcc*)
13881    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13882  *)
13883    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13884  esac
13885
13886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13887$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13888if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13889  $as_echo_n "(cached) " >&6
13890else
13891  lt_cv_prog_compiler_rtti_exceptions=no
13892   ac_outfile=conftest.$ac_objext
13893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13894   lt_compiler_flag="-fno-rtti -fno-exceptions"
13895   # Insert the option either (1) after the last *FLAGS variable, or
13896   # (2) before a word containing "conftest.", or (3) at the end.
13897   # Note that $ac_compile itself does not contain backslashes and begins
13898   # with a dollar sign (not a hyphen), so the echo should work correctly.
13899   # The option is referenced via a variable to avoid confusing sed.
13900   lt_compile=`echo "$ac_compile" | $SED \
13901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13903   -e 's:$: $lt_compiler_flag:'`
13904   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13905   (eval "$lt_compile" 2>conftest.err)
13906   ac_status=$?
13907   cat conftest.err >&5
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   if (exit $ac_status) && test -s "$ac_outfile"; then
13910     # The compiler can only warn and ignore the option if not recognized
13911     # So say no if there are warnings other than the usual output.
13912     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13913     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13914     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13915       lt_cv_prog_compiler_rtti_exceptions=yes
13916     fi
13917   fi
13918   $RM conftest*
13919
13920fi
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13922$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13923
13924if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13925    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13926else
13927    :
13928fi
13929
13930fi
13931
13932
13933
13934
13935
13936
13937  lt_prog_compiler_wl=
13938lt_prog_compiler_pic=
13939lt_prog_compiler_static=
13940
13941
13942  if test "$GCC" = yes; then
13943    lt_prog_compiler_wl='-Wl,'
13944    lt_prog_compiler_static='-static'
13945
13946    case $host_os in
13947      aix*)
13948      # All AIX code is PIC.
13949      if test "$host_cpu" = ia64; then
13950	# AIX 5 now supports IA64 processor
13951	lt_prog_compiler_static='-Bstatic'
13952      fi
13953      ;;
13954
13955    amigaos*)
13956      case $host_cpu in
13957      powerpc)
13958            # see comment about AmigaOS4 .so support
13959            lt_prog_compiler_pic='-fPIC'
13960        ;;
13961      m68k)
13962            # FIXME: we need at least 68020 code to build shared libraries, but
13963            # adding the `-m68020' flag to GCC prevents building anything better,
13964            # like `-m68040'.
13965            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13966        ;;
13967      esac
13968      ;;
13969
13970    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13971      # PIC is the default for these OSes.
13972      ;;
13973
13974    mingw* | cygwin* | pw32* | os2* | cegcc*)
13975      # This hack is so that the source file can tell whether it is being
13976      # built for inclusion in a dll (and should export symbols for example).
13977      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13978      # (--disable-auto-import) libraries
13979      lt_prog_compiler_pic='-DDLL_EXPORT'
13980      ;;
13981
13982    darwin* | rhapsody*)
13983      # PIC is the default on this platform
13984      # Common symbols not allowed in MH_DYLIB files
13985      lt_prog_compiler_pic='-fno-common'
13986      ;;
13987
13988    haiku*)
13989      # PIC is the default for Haiku.
13990      # The "-static" flag exists, but is broken.
13991      lt_prog_compiler_static=
13992      ;;
13993
13994    hpux*)
13995      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13996      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13997      # sets the default TLS model and affects inlining.
13998      case $host_cpu in
13999      hppa*64*)
14000	# +Z the default
14001	;;
14002      *)
14003	lt_prog_compiler_pic='-fPIC'
14004	;;
14005      esac
14006      ;;
14007
14008    interix[3-9]*)
14009      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14010      # Instead, we relocate shared libraries at runtime.
14011      ;;
14012
14013    msdosdjgpp*)
14014      # Just because we use GCC doesn't mean we suddenly get shared libraries
14015      # on systems that don't support them.
14016      lt_prog_compiler_can_build_shared=no
14017      enable_shared=no
14018      ;;
14019
14020    *nto* | *qnx*)
14021      # QNX uses GNU C++, but need to define -shared option too, otherwise
14022      # it will coredump.
14023      lt_prog_compiler_pic='-fPIC -shared'
14024      ;;
14025
14026    sysv4*MP*)
14027      if test -d /usr/nec; then
14028	lt_prog_compiler_pic=-Kconform_pic
14029      fi
14030      ;;
14031
14032    *)
14033      lt_prog_compiler_pic='-fPIC'
14034      ;;
14035    esac
14036
14037    case $cc_basename in
14038    nvcc*) # Cuda Compiler Driver 2.2
14039      lt_prog_compiler_wl='-Xlinker '
14040      if test -n "$lt_prog_compiler_pic"; then
14041        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14042      fi
14043      ;;
14044    esac
14045  else
14046    # PORTME Check for flag to pass linker flags through the system compiler.
14047    case $host_os in
14048    aix*)
14049      lt_prog_compiler_wl='-Wl,'
14050      if test "$host_cpu" = ia64; then
14051	# AIX 5 now supports IA64 processor
14052	lt_prog_compiler_static='-Bstatic'
14053      else
14054	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14055      fi
14056      ;;
14057
14058    mingw* | cygwin* | pw32* | os2* | cegcc*)
14059      # This hack is so that the source file can tell whether it is being
14060      # built for inclusion in a dll (and should export symbols for example).
14061      lt_prog_compiler_pic='-DDLL_EXPORT'
14062      ;;
14063
14064    hpux9* | hpux10* | hpux11*)
14065      lt_prog_compiler_wl='-Wl,'
14066      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14067      # not for PA HP-UX.
14068      case $host_cpu in
14069      hppa*64*|ia64*)
14070	# +Z the default
14071	;;
14072      *)
14073	lt_prog_compiler_pic='+Z'
14074	;;
14075      esac
14076      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14077      lt_prog_compiler_static='${wl}-a ${wl}archive'
14078      ;;
14079
14080    irix5* | irix6* | nonstopux*)
14081      lt_prog_compiler_wl='-Wl,'
14082      # PIC (with -KPIC) is the default.
14083      lt_prog_compiler_static='-non_shared'
14084      ;;
14085
14086    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14087      case $cc_basename in
14088      # old Intel for x86_64 which still supported -KPIC.
14089      ecc*)
14090	lt_prog_compiler_wl='-Wl,'
14091	lt_prog_compiler_pic='-KPIC'
14092	lt_prog_compiler_static='-static'
14093        ;;
14094      # icc used to be incompatible with GCC.
14095      # ICC 10 doesn't accept -KPIC any more.
14096      icc* | ifort*)
14097	lt_prog_compiler_wl='-Wl,'
14098	lt_prog_compiler_pic='-fPIC'
14099	lt_prog_compiler_static='-static'
14100        ;;
14101      # Lahey Fortran 8.1.
14102      lf95*)
14103	lt_prog_compiler_wl='-Wl,'
14104	lt_prog_compiler_pic='--shared'
14105	lt_prog_compiler_static='--static'
14106	;;
14107      nagfor*)
14108	# NAG Fortran compiler
14109	lt_prog_compiler_wl='-Wl,-Wl,,'
14110	lt_prog_compiler_pic='-PIC'
14111	lt_prog_compiler_static='-Bstatic'
14112	;;
14113      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14114        # Portland Group compilers (*not* the Pentium gcc compiler,
14115	# which looks to be a dead project)
14116	lt_prog_compiler_wl='-Wl,'
14117	lt_prog_compiler_pic='-fpic'
14118	lt_prog_compiler_static='-Bstatic'
14119        ;;
14120      ccc*)
14121        lt_prog_compiler_wl='-Wl,'
14122        # All Alpha code is PIC.
14123        lt_prog_compiler_static='-non_shared'
14124        ;;
14125      xl* | bgxl* | bgf* | mpixl*)
14126	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14127	lt_prog_compiler_wl='-Wl,'
14128	lt_prog_compiler_pic='-qpic'
14129	lt_prog_compiler_static='-qstaticlink'
14130	;;
14131      *)
14132	case `$CC -V 2>&1 | sed 5q` in
14133	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14134	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14135	  lt_prog_compiler_pic='-KPIC'
14136	  lt_prog_compiler_static='-Bstatic'
14137	  lt_prog_compiler_wl=''
14138	  ;;
14139	*Sun\ F* | *Sun*Fortran*)
14140	  lt_prog_compiler_pic='-KPIC'
14141	  lt_prog_compiler_static='-Bstatic'
14142	  lt_prog_compiler_wl='-Qoption ld '
14143	  ;;
14144	*Sun\ C*)
14145	  # Sun C 5.9
14146	  lt_prog_compiler_pic='-KPIC'
14147	  lt_prog_compiler_static='-Bstatic'
14148	  lt_prog_compiler_wl='-Wl,'
14149	  ;;
14150        *Intel*\ [CF]*Compiler*)
14151	  lt_prog_compiler_wl='-Wl,'
14152	  lt_prog_compiler_pic='-fPIC'
14153	  lt_prog_compiler_static='-static'
14154	  ;;
14155	*Portland\ Group*)
14156	  lt_prog_compiler_wl='-Wl,'
14157	  lt_prog_compiler_pic='-fpic'
14158	  lt_prog_compiler_static='-Bstatic'
14159	  ;;
14160	esac
14161	;;
14162      esac
14163      ;;
14164
14165    newsos6)
14166      lt_prog_compiler_pic='-KPIC'
14167      lt_prog_compiler_static='-Bstatic'
14168      ;;
14169
14170    *nto* | *qnx*)
14171      # QNX uses GNU C++, but need to define -shared option too, otherwise
14172      # it will coredump.
14173      lt_prog_compiler_pic='-fPIC -shared'
14174      ;;
14175
14176    osf3* | osf4* | osf5*)
14177      lt_prog_compiler_wl='-Wl,'
14178      # All OSF/1 code is PIC.
14179      lt_prog_compiler_static='-non_shared'
14180      ;;
14181
14182    rdos*)
14183      lt_prog_compiler_static='-non_shared'
14184      ;;
14185
14186    solaris*)
14187      lt_prog_compiler_pic='-KPIC'
14188      lt_prog_compiler_static='-Bstatic'
14189      case $cc_basename in
14190      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14191	lt_prog_compiler_wl='-Qoption ld ';;
14192      *)
14193	lt_prog_compiler_wl='-Wl,';;
14194      esac
14195      ;;
14196
14197    sunos4*)
14198      lt_prog_compiler_wl='-Qoption ld '
14199      lt_prog_compiler_pic='-PIC'
14200      lt_prog_compiler_static='-Bstatic'
14201      ;;
14202
14203    sysv4 | sysv4.2uw2* | sysv4.3*)
14204      lt_prog_compiler_wl='-Wl,'
14205      lt_prog_compiler_pic='-KPIC'
14206      lt_prog_compiler_static='-Bstatic'
14207      ;;
14208
14209    sysv4*MP*)
14210      if test -d /usr/nec ;then
14211	lt_prog_compiler_pic='-Kconform_pic'
14212	lt_prog_compiler_static='-Bstatic'
14213      fi
14214      ;;
14215
14216    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14217      lt_prog_compiler_wl='-Wl,'
14218      lt_prog_compiler_pic='-KPIC'
14219      lt_prog_compiler_static='-Bstatic'
14220      ;;
14221
14222    unicos*)
14223      lt_prog_compiler_wl='-Wl,'
14224      lt_prog_compiler_can_build_shared=no
14225      ;;
14226
14227    uts4*)
14228      lt_prog_compiler_pic='-pic'
14229      lt_prog_compiler_static='-Bstatic'
14230      ;;
14231
14232    *)
14233      lt_prog_compiler_can_build_shared=no
14234      ;;
14235    esac
14236  fi
14237
14238case $host_os in
14239  # For platforms which do not support PIC, -DPIC is meaningless:
14240  *djgpp*)
14241    lt_prog_compiler_pic=
14242    ;;
14243  *)
14244    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14245    ;;
14246esac
14247
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14249$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14250if ${lt_cv_prog_compiler_pic+:} false; then :
14251  $as_echo_n "(cached) " >&6
14252else
14253  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14254fi
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14256$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14257lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14258
14259#
14260# Check to make sure the PIC flag actually works.
14261#
14262if test -n "$lt_prog_compiler_pic"; then
14263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14264$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14265if ${lt_cv_prog_compiler_pic_works+:} false; then :
14266  $as_echo_n "(cached) " >&6
14267else
14268  lt_cv_prog_compiler_pic_works=no
14269   ac_outfile=conftest.$ac_objext
14270   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14271   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14272   # Insert the option either (1) after the last *FLAGS variable, or
14273   # (2) before a word containing "conftest.", or (3) at the end.
14274   # Note that $ac_compile itself does not contain backslashes and begins
14275   # with a dollar sign (not a hyphen), so the echo should work correctly.
14276   # The option is referenced via a variable to avoid confusing sed.
14277   lt_compile=`echo "$ac_compile" | $SED \
14278   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280   -e 's:$: $lt_compiler_flag:'`
14281   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14282   (eval "$lt_compile" 2>conftest.err)
14283   ac_status=$?
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   if (exit $ac_status) && test -s "$ac_outfile"; then
14287     # The compiler can only warn and ignore the option if not recognized
14288     # So say no if there are warnings other than the usual output.
14289     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14290     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14292       lt_cv_prog_compiler_pic_works=yes
14293     fi
14294   fi
14295   $RM conftest*
14296
14297fi
14298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14299$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14300
14301if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14302    case $lt_prog_compiler_pic in
14303     "" | " "*) ;;
14304     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14305     esac
14306else
14307    lt_prog_compiler_pic=
14308     lt_prog_compiler_can_build_shared=no
14309fi
14310
14311fi
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323#
14324# Check to make sure the static flag actually works.
14325#
14326wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14328$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14329if ${lt_cv_prog_compiler_static_works+:} false; then :
14330  $as_echo_n "(cached) " >&6
14331else
14332  lt_cv_prog_compiler_static_works=no
14333   save_LDFLAGS="$LDFLAGS"
14334   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14335   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14336   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14337     # The linker can only warn and ignore the option if not recognized
14338     # So say no if there are warnings
14339     if test -s conftest.err; then
14340       # Append any errors to the config.log.
14341       cat conftest.err 1>&5
14342       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14343       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14344       if diff conftest.exp conftest.er2 >/dev/null; then
14345         lt_cv_prog_compiler_static_works=yes
14346       fi
14347     else
14348       lt_cv_prog_compiler_static_works=yes
14349     fi
14350   fi
14351   $RM -r conftest*
14352   LDFLAGS="$save_LDFLAGS"
14353
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14356$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14357
14358if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14359    :
14360else
14361    lt_prog_compiler_static=
14362fi
14363
14364
14365
14366
14367
14368
14369
14370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14372if ${lt_cv_prog_compiler_c_o+:} false; then :
14373  $as_echo_n "(cached) " >&6
14374else
14375  lt_cv_prog_compiler_c_o=no
14376   $RM -r conftest 2>/dev/null
14377   mkdir conftest
14378   cd conftest
14379   mkdir out
14380   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381
14382   lt_compiler_flag="-o out/conftest2.$ac_objext"
14383   # Insert the option either (1) after the last *FLAGS variable, or
14384   # (2) before a word containing "conftest.", or (3) at the end.
14385   # Note that $ac_compile itself does not contain backslashes and begins
14386   # with a dollar sign (not a hyphen), so the echo should work correctly.
14387   lt_compile=`echo "$ac_compile" | $SED \
14388   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390   -e 's:$: $lt_compiler_flag:'`
14391   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14392   (eval "$lt_compile" 2>out/conftest.err)
14393   ac_status=$?
14394   cat out/conftest.err >&5
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14397   then
14398     # The compiler can only warn and ignore the option if not recognized
14399     # So say no if there are warnings
14400     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14401     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14402     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14403       lt_cv_prog_compiler_c_o=yes
14404     fi
14405   fi
14406   chmod u+w . 2>&5
14407   $RM conftest*
14408   # SGI C++ compiler will create directory out/ii_files/ for
14409   # template instantiation
14410   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14411   $RM out/* && rmdir out
14412   cd ..
14413   $RM -r conftest
14414   $RM conftest*
14415
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14418$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14419
14420
14421
14422
14423
14424
14425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14427if ${lt_cv_prog_compiler_c_o+:} false; then :
14428  $as_echo_n "(cached) " >&6
14429else
14430  lt_cv_prog_compiler_c_o=no
14431   $RM -r conftest 2>/dev/null
14432   mkdir conftest
14433   cd conftest
14434   mkdir out
14435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14436
14437   lt_compiler_flag="-o out/conftest2.$ac_objext"
14438   # Insert the option either (1) after the last *FLAGS variable, or
14439   # (2) before a word containing "conftest.", or (3) at the end.
14440   # Note that $ac_compile itself does not contain backslashes and begins
14441   # with a dollar sign (not a hyphen), so the echo should work correctly.
14442   lt_compile=`echo "$ac_compile" | $SED \
14443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14445   -e 's:$: $lt_compiler_flag:'`
14446   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14447   (eval "$lt_compile" 2>out/conftest.err)
14448   ac_status=$?
14449   cat out/conftest.err >&5
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14452   then
14453     # The compiler can only warn and ignore the option if not recognized
14454     # So say no if there are warnings
14455     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14456     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14457     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14458       lt_cv_prog_compiler_c_o=yes
14459     fi
14460   fi
14461   chmod u+w . 2>&5
14462   $RM conftest*
14463   # SGI C++ compiler will create directory out/ii_files/ for
14464   # template instantiation
14465   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14466   $RM out/* && rmdir out
14467   cd ..
14468   $RM -r conftest
14469   $RM conftest*
14470
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14473$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14474
14475
14476
14477
14478hard_links="nottested"
14479if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14480  # do not overwrite the value of need_locks provided by the user
14481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14482$as_echo_n "checking if we can lock with hard links... " >&6; }
14483  hard_links=yes
14484  $RM conftest*
14485  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14486  touch conftest.a
14487  ln conftest.a conftest.b 2>&5 || hard_links=no
14488  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14490$as_echo "$hard_links" >&6; }
14491  if test "$hard_links" = no; then
14492    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14494    need_locks=warn
14495  fi
14496else
14497  need_locks=no
14498fi
14499
14500
14501
14502
14503
14504
14505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14506$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14507
14508  runpath_var=
14509  allow_undefined_flag=
14510  always_export_symbols=no
14511  archive_cmds=
14512  archive_expsym_cmds=
14513  compiler_needs_object=no
14514  enable_shared_with_static_runtimes=no
14515  export_dynamic_flag_spec=
14516  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14517  hardcode_automatic=no
14518  hardcode_direct=no
14519  hardcode_direct_absolute=no
14520  hardcode_libdir_flag_spec=
14521  hardcode_libdir_separator=
14522  hardcode_minus_L=no
14523  hardcode_shlibpath_var=unsupported
14524  inherit_rpath=no
14525  link_all_deplibs=unknown
14526  module_cmds=
14527  module_expsym_cmds=
14528  old_archive_from_new_cmds=
14529  old_archive_from_expsyms_cmds=
14530  thread_safe_flag_spec=
14531  whole_archive_flag_spec=
14532  # include_expsyms should be a list of space-separated symbols to be *always*
14533  # included in the symbol list
14534  include_expsyms=
14535  # exclude_expsyms can be an extended regexp of symbols to exclude
14536  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14537  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14538  # as well as any symbol that contains `d'.
14539  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14540  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14541  # platforms (ab)use it in PIC code, but their linkers get confused if
14542  # the symbol is explicitly referenced.  Since portable code cannot
14543  # rely on this symbol name, it's probably fine to never include it in
14544  # preloaded symbol tables.
14545  # Exclude shared library initialization/finalization symbols.
14546  extract_expsyms_cmds=
14547
14548  case $host_os in
14549  cygwin* | mingw* | pw32* | cegcc*)
14550    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14551    # When not using gcc, we currently assume that we are using
14552    # Microsoft Visual C++.
14553    if test "$GCC" != yes; then
14554      with_gnu_ld=no
14555    fi
14556    ;;
14557  interix*)
14558    # we just hope/assume this is gcc and not c89 (= MSVC++)
14559    with_gnu_ld=yes
14560    ;;
14561  openbsd*)
14562    with_gnu_ld=no
14563    ;;
14564  esac
14565
14566  ld_shlibs=yes
14567
14568  # On some targets, GNU ld is compatible enough with the native linker
14569  # that we're better off using the native interface for both.
14570  lt_use_gnu_ld_interface=no
14571  if test "$with_gnu_ld" = yes; then
14572    case $host_os in
14573      aix*)
14574	# The AIX port of GNU ld has always aspired to compatibility
14575	# with the native linker.  However, as the warning in the GNU ld
14576	# block says, versions before 2.19.5* couldn't really create working
14577	# shared libraries, regardless of the interface used.
14578	case `$LD -v 2>&1` in
14579	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14580	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14581	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14582	  *)
14583	    lt_use_gnu_ld_interface=yes
14584	    ;;
14585	esac
14586	;;
14587      *)
14588	lt_use_gnu_ld_interface=yes
14589	;;
14590    esac
14591  fi
14592
14593  if test "$lt_use_gnu_ld_interface" = yes; then
14594    # If archive_cmds runs LD, not CC, wlarc should be empty
14595    wlarc='${wl}'
14596
14597    # Set some defaults for GNU ld with shared library support. These
14598    # are reset later if shared libraries are not supported. Putting them
14599    # here allows them to be overridden if necessary.
14600    runpath_var=LD_RUN_PATH
14601    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14602    export_dynamic_flag_spec='${wl}--export-dynamic'
14603    # ancient GNU ld didn't support --whole-archive et. al.
14604    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14605      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14606    else
14607      whole_archive_flag_spec=
14608    fi
14609    supports_anon_versioning=no
14610    case `$LD -v 2>&1` in
14611      *GNU\ gold*) supports_anon_versioning=yes ;;
14612      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14613      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14614      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14615      *\ 2.11.*) ;; # other 2.11 versions
14616      *) supports_anon_versioning=yes ;;
14617    esac
14618
14619    # See if GNU ld supports shared libraries.
14620    case $host_os in
14621    aix[3-9]*)
14622      # On AIX/PPC, the GNU linker is very broken
14623      if test "$host_cpu" != ia64; then
14624	ld_shlibs=no
14625	cat <<_LT_EOF 1>&2
14626
14627*** Warning: the GNU linker, at least up to release 2.19, is reported
14628*** to be unable to reliably create shared libraries on AIX.
14629*** Therefore, libtool is disabling shared libraries support.  If you
14630*** really care for shared libraries, you may want to install binutils
14631*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14632*** You will then need to restart the configuration process.
14633
14634_LT_EOF
14635      fi
14636      ;;
14637
14638    amigaos*)
14639      case $host_cpu in
14640      powerpc)
14641            # see comment about AmigaOS4 .so support
14642            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643            archive_expsym_cmds=''
14644        ;;
14645      m68k)
14646            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)'
14647            hardcode_libdir_flag_spec='-L$libdir'
14648            hardcode_minus_L=yes
14649        ;;
14650      esac
14651      ;;
14652
14653    beos*)
14654      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14655	allow_undefined_flag=unsupported
14656	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14657	# support --undefined.  This deserves some investigation.  FIXME
14658	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659      else
14660	ld_shlibs=no
14661      fi
14662      ;;
14663
14664    cygwin* | mingw* | pw32* | cegcc*)
14665      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14666      # as there is no search path for DLLs.
14667      hardcode_libdir_flag_spec='-L$libdir'
14668      export_dynamic_flag_spec='${wl}--export-all-symbols'
14669      allow_undefined_flag=unsupported
14670      always_export_symbols=no
14671      enable_shared_with_static_runtimes=yes
14672      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'
14673      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14674
14675      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14676        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14677	# If the export-symbols file already is a .def file (1st line
14678	# is EXPORTS), use it as is; otherwise, prepend...
14679	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14680	  cp $export_symbols $output_objdir/$soname.def;
14681	else
14682	  echo EXPORTS > $output_objdir/$soname.def;
14683	  cat $export_symbols >> $output_objdir/$soname.def;
14684	fi~
14685	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14686      else
14687	ld_shlibs=no
14688      fi
14689      ;;
14690
14691    haiku*)
14692      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14693      link_all_deplibs=yes
14694      ;;
14695
14696    interix[3-9]*)
14697      hardcode_direct=no
14698      hardcode_shlibpath_var=no
14699      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14700      export_dynamic_flag_spec='${wl}-E'
14701      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14702      # Instead, shared libraries are loaded at an image base (0x10000000 by
14703      # default) and relocated if they conflict, which is a slow very memory
14704      # consuming and fragmenting process.  To avoid this, we pick a random,
14705      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14706      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14707      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14708      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'
14709      ;;
14710
14711    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14712      tmp_diet=no
14713      if test "$host_os" = linux-dietlibc; then
14714	case $cc_basename in
14715	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14716	esac
14717      fi
14718      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14719	 && test "$tmp_diet" = no
14720      then
14721	tmp_addflag=' $pic_flag'
14722	tmp_sharedflag='-shared'
14723	case $cc_basename,$host_cpu in
14724        pgcc*)				# Portland Group C compiler
14725	  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'
14726	  tmp_addflag=' $pic_flag'
14727	  ;;
14728	pgf77* | pgf90* | pgf95* | pgfortran*)
14729					# Portland Group f77 and f90 compilers
14730	  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'
14731	  tmp_addflag=' $pic_flag -Mnomain' ;;
14732	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14733	  tmp_addflag=' -i_dynamic' ;;
14734	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14735	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14736	ifc* | ifort*)			# Intel Fortran compiler
14737	  tmp_addflag=' -nofor_main' ;;
14738	lf95*)				# Lahey Fortran 8.1
14739	  whole_archive_flag_spec=
14740	  tmp_sharedflag='--shared' ;;
14741	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14742	  tmp_sharedflag='-qmkshrobj'
14743	  tmp_addflag= ;;
14744	nvcc*)	# Cuda Compiler Driver 2.2
14745	  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'
14746	  compiler_needs_object=yes
14747	  ;;
14748	esac
14749	case `$CC -V 2>&1 | sed 5q` in
14750	*Sun\ C*)			# Sun C 5.9
14751	  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'
14752	  compiler_needs_object=yes
14753	  tmp_sharedflag='-G' ;;
14754	*Sun\ F*)			# Sun Fortran 8.3
14755	  tmp_sharedflag='-G' ;;
14756	esac
14757	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758
14759        if test "x$supports_anon_versioning" = xyes; then
14760          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14761	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14762	    echo "local: *; };" >> $output_objdir/$libname.ver~
14763	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14764        fi
14765
14766	case $cc_basename in
14767	xlf* | bgf* | bgxlf* | mpixlf*)
14768	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14769	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14770	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14771	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14772	  if test "x$supports_anon_versioning" = xyes; then
14773	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14774	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14775	      echo "local: *; };" >> $output_objdir/$libname.ver~
14776	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14777	  fi
14778	  ;;
14779	esac
14780      else
14781        ld_shlibs=no
14782      fi
14783      ;;
14784
14785    netbsd*)
14786      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14787	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14788	wlarc=
14789      else
14790	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792      fi
14793      ;;
14794
14795    solaris*)
14796      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14797	ld_shlibs=no
14798	cat <<_LT_EOF 1>&2
14799
14800*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14801*** create shared libraries on Solaris systems.  Therefore, libtool
14802*** is disabling shared libraries support.  We urge you to upgrade GNU
14803*** binutils to release 2.9.1 or newer.  Another option is to modify
14804*** your PATH or compiler configuration so that the native linker is
14805*** used, and then restart.
14806
14807_LT_EOF
14808      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14809	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14811      else
14812	ld_shlibs=no
14813      fi
14814      ;;
14815
14816    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14817      case `$LD -v 2>&1` in
14818        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14819	ld_shlibs=no
14820	cat <<_LT_EOF 1>&2
14821
14822*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14823*** reliably create shared libraries on SCO systems.  Therefore, libtool
14824*** is disabling shared libraries support.  We urge you to upgrade GNU
14825*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14826*** your PATH or compiler configuration so that the native linker is
14827*** used, and then restart.
14828
14829_LT_EOF
14830	;;
14831	*)
14832	  # For security reasons, it is highly recommended that you always
14833	  # use absolute paths for naming shared libraries, and exclude the
14834	  # DT_RUNPATH tag from executables and libraries.  But doing so
14835	  # requires that you compile everything twice, which is a pain.
14836	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14837	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14838	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14840	  else
14841	    ld_shlibs=no
14842	  fi
14843	;;
14844      esac
14845      ;;
14846
14847    sunos4*)
14848      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14849      wlarc=
14850      hardcode_direct=yes
14851      hardcode_shlibpath_var=no
14852      ;;
14853
14854    *)
14855      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14856	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14858      else
14859	ld_shlibs=no
14860      fi
14861      ;;
14862    esac
14863
14864    if test "$ld_shlibs" = no; then
14865      runpath_var=
14866      hardcode_libdir_flag_spec=
14867      export_dynamic_flag_spec=
14868      whole_archive_flag_spec=
14869    fi
14870  else
14871    # PORTME fill in a description of your system's linker (not GNU ld)
14872    case $host_os in
14873    aix3*)
14874      allow_undefined_flag=unsupported
14875      always_export_symbols=yes
14876      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'
14877      # Note: this linker hardcodes the directories in LIBPATH if there
14878      # are no directories specified by -L.
14879      hardcode_minus_L=yes
14880      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14881	# Neither direct hardcoding nor static linking is supported with a
14882	# broken collect2.
14883	hardcode_direct=unsupported
14884      fi
14885      ;;
14886
14887    aix[4-9]*)
14888      if test "$host_cpu" = ia64; then
14889	# On IA64, the linker does run time linking by default, so we don't
14890	# have to do anything special.
14891	aix_use_runtimelinking=no
14892	exp_sym_flag='-Bexport'
14893	no_entry_flag=""
14894      else
14895	# If we're using GNU nm, then we don't want the "-C" option.
14896	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14897	# Also, AIX nm treats weak defined symbols like other global
14898	# defined symbols, whereas GNU nm marks them as "W".
14899	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14900	  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'
14901	else
14902	  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'
14903	fi
14904	aix_use_runtimelinking=no
14905
14906	# Test if we are trying to use run time linking or normal
14907	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14908	# need to do runtime linking.
14909	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14910	  for ld_flag in $LDFLAGS; do
14911	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14912	    aix_use_runtimelinking=yes
14913	    break
14914	  fi
14915	  done
14916	  ;;
14917	esac
14918
14919	exp_sym_flag='-bexport'
14920	no_entry_flag='-bnoentry'
14921      fi
14922
14923      # When large executables or shared objects are built, AIX ld can
14924      # have problems creating the table of contents.  If linking a library
14925      # or program results in "error TOC overflow" add -mminimal-toc to
14926      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14927      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14928
14929      archive_cmds=''
14930      hardcode_direct=yes
14931      hardcode_direct_absolute=yes
14932      hardcode_libdir_separator=':'
14933      link_all_deplibs=yes
14934      file_list_spec='${wl}-f,'
14935
14936      if test "$GCC" = yes; then
14937	case $host_os in aix4.[012]|aix4.[012].*)
14938	# We only want to do this on AIX 4.2 and lower, the check
14939	# below for broken collect2 doesn't work under 4.3+
14940	  collect2name=`${CC} -print-prog-name=collect2`
14941	  if test -f "$collect2name" &&
14942	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14943	  then
14944	  # We have reworked collect2
14945	  :
14946	  else
14947	  # We have old collect2
14948	  hardcode_direct=unsupported
14949	  # It fails to find uninstalled libraries when the uninstalled
14950	  # path is not listed in the libpath.  Setting hardcode_minus_L
14951	  # to unsupported forces relinking
14952	  hardcode_minus_L=yes
14953	  hardcode_libdir_flag_spec='-L$libdir'
14954	  hardcode_libdir_separator=
14955	  fi
14956	  ;;
14957	esac
14958	shared_flag='-shared'
14959	if test "$aix_use_runtimelinking" = yes; then
14960	  shared_flag="$shared_flag "'${wl}-G'
14961	fi
14962      else
14963	# not using gcc
14964	if test "$host_cpu" = ia64; then
14965	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14966	# chokes on -Wl,-G. The following line is correct:
14967	  shared_flag='-G'
14968	else
14969	  if test "$aix_use_runtimelinking" = yes; then
14970	    shared_flag='${wl}-G'
14971	  else
14972	    shared_flag='${wl}-bM:SRE'
14973	  fi
14974	fi
14975      fi
14976
14977      export_dynamic_flag_spec='${wl}-bexpall'
14978      # It seems that -bexpall does not export symbols beginning with
14979      # underscore (_), so it is better to generate a list of symbols to export.
14980      always_export_symbols=yes
14981      if test "$aix_use_runtimelinking" = yes; then
14982	# Warning - without using the other runtime loading flags (-brtl),
14983	# -berok will link without error, but may produce a broken library.
14984	allow_undefined_flag='-berok'
14985        # Determine the default libpath from the value encoded in an
14986        # empty executable.
14987        if test "${lt_cv_aix_libpath+set}" = set; then
14988  aix_libpath=$lt_cv_aix_libpath
14989else
14990  if ${lt_cv_aix_libpath_+:} false; then :
14991  $as_echo_n "(cached) " >&6
14992else
14993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994/* end confdefs.h.  */
14995
14996int
14997main ()
14998{
14999
15000  ;
15001  return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"; then :
15005
15006  lt_aix_libpath_sed='
15007      /Import File Strings/,/^$/ {
15008	  /^0/ {
15009	      s/^0  *\([^ ]*\) *$/\1/
15010	      p
15011	  }
15012      }'
15013  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15014  # Check for a 64-bit object if we didn't find anything.
15015  if test -z "$lt_cv_aix_libpath_"; then
15016    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15017  fi
15018fi
15019rm -f core conftest.err conftest.$ac_objext \
15020    conftest$ac_exeext conftest.$ac_ext
15021  if test -z "$lt_cv_aix_libpath_"; then
15022    lt_cv_aix_libpath_="/usr/lib:/lib"
15023  fi
15024
15025fi
15026
15027  aix_libpath=$lt_cv_aix_libpath_
15028fi
15029
15030        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15031        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"
15032      else
15033	if test "$host_cpu" = ia64; then
15034	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15035	  allow_undefined_flag="-z nodefs"
15036	  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"
15037	else
15038	 # Determine the default libpath from the value encoded in an
15039	 # empty executable.
15040	 if test "${lt_cv_aix_libpath+set}" = set; then
15041  aix_libpath=$lt_cv_aix_libpath
15042else
15043  if ${lt_cv_aix_libpath_+:} false; then :
15044  $as_echo_n "(cached) " >&6
15045else
15046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047/* end confdefs.h.  */
15048
15049int
15050main ()
15051{
15052
15053  ;
15054  return 0;
15055}
15056_ACEOF
15057if ac_fn_c_try_link "$LINENO"; then :
15058
15059  lt_aix_libpath_sed='
15060      /Import File Strings/,/^$/ {
15061	  /^0/ {
15062	      s/^0  *\([^ ]*\) *$/\1/
15063	      p
15064	  }
15065      }'
15066  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15067  # Check for a 64-bit object if we didn't find anything.
15068  if test -z "$lt_cv_aix_libpath_"; then
15069    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15070  fi
15071fi
15072rm -f core conftest.err conftest.$ac_objext \
15073    conftest$ac_exeext conftest.$ac_ext
15074  if test -z "$lt_cv_aix_libpath_"; then
15075    lt_cv_aix_libpath_="/usr/lib:/lib"
15076  fi
15077
15078fi
15079
15080  aix_libpath=$lt_cv_aix_libpath_
15081fi
15082
15083	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15084	  # Warning - without using the other run time loading flags,
15085	  # -berok will link without error, but may produce a broken library.
15086	  no_undefined_flag=' ${wl}-bernotok'
15087	  allow_undefined_flag=' ${wl}-berok'
15088	  if test "$with_gnu_ld" = yes; then
15089	    # We only use this code for GNU lds that support --whole-archive.
15090	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15091	  else
15092	    # Exported symbols can be pulled into shared objects from archives
15093	    whole_archive_flag_spec='$convenience'
15094	  fi
15095	  archive_cmds_need_lc=yes
15096	  # This is similar to how AIX traditionally builds its shared libraries.
15097	  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'
15098	fi
15099      fi
15100      ;;
15101
15102    amigaos*)
15103      case $host_cpu in
15104      powerpc)
15105            # see comment about AmigaOS4 .so support
15106            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107            archive_expsym_cmds=''
15108        ;;
15109      m68k)
15110            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)'
15111            hardcode_libdir_flag_spec='-L$libdir'
15112            hardcode_minus_L=yes
15113        ;;
15114      esac
15115      ;;
15116
15117    bsdi[45]*)
15118      export_dynamic_flag_spec=-rdynamic
15119      ;;
15120
15121    cygwin* | mingw* | pw32* | cegcc*)
15122      # When not using gcc, we currently assume that we are using
15123      # Microsoft Visual C++.
15124      # hardcode_libdir_flag_spec is actually meaningless, as there is
15125      # no search path for DLLs.
15126      case $cc_basename in
15127      cl*)
15128	# Native MSVC
15129	hardcode_libdir_flag_spec=' '
15130	allow_undefined_flag=unsupported
15131	always_export_symbols=yes
15132	file_list_spec='@'
15133	# Tell ltmain to make .lib files, not .a files.
15134	libext=lib
15135	# Tell ltmain to make .dll files, not .so files.
15136	shrext_cmds=".dll"
15137	# FIXME: Setting linknames here is a bad hack.
15138	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15139	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15140	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15141	  else
15142	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15143	  fi~
15144	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15145	  linknames='
15146	# The linker will not automatically build a static lib if we build a DLL.
15147	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15148	enable_shared_with_static_runtimes=yes
15149	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15150	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15151	# Don't use ranlib
15152	old_postinstall_cmds='chmod 644 $oldlib'
15153	postlink_cmds='lt_outputfile="@OUTPUT@"~
15154	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15155	  case $lt_outputfile in
15156	    *.exe|*.EXE) ;;
15157	    *)
15158	      lt_outputfile="$lt_outputfile.exe"
15159	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15160	      ;;
15161	  esac~
15162	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15163	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15164	    $RM "$lt_outputfile.manifest";
15165	  fi'
15166	;;
15167      *)
15168	# Assume MSVC wrapper
15169	hardcode_libdir_flag_spec=' '
15170	allow_undefined_flag=unsupported
15171	# Tell ltmain to make .lib files, not .a files.
15172	libext=lib
15173	# Tell ltmain to make .dll files, not .so files.
15174	shrext_cmds=".dll"
15175	# FIXME: Setting linknames here is a bad hack.
15176	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15177	# The linker will automatically build a .lib file if we build a DLL.
15178	old_archive_from_new_cmds='true'
15179	# FIXME: Should let the user specify the lib program.
15180	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15181	enable_shared_with_static_runtimes=yes
15182	;;
15183      esac
15184      ;;
15185
15186    darwin* | rhapsody*)
15187
15188
15189  archive_cmds_need_lc=no
15190  hardcode_direct=no
15191  hardcode_automatic=yes
15192  hardcode_shlibpath_var=unsupported
15193  if test "$lt_cv_ld_force_load" = "yes"; then
15194    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\"`'
15195
15196  else
15197    whole_archive_flag_spec=''
15198  fi
15199  link_all_deplibs=yes
15200  allow_undefined_flag="$_lt_dar_allow_undefined"
15201  case $cc_basename in
15202     ifort*) _lt_dar_can_shared=yes ;;
15203     *) _lt_dar_can_shared=$GCC ;;
15204  esac
15205  if test "$_lt_dar_can_shared" = "yes"; then
15206    output_verbose_link_cmd=func_echo_all
15207    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15208    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15209    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}"
15210    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}"
15211
15212  else
15213  ld_shlibs=no
15214  fi
15215
15216      ;;
15217
15218    dgux*)
15219      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15220      hardcode_libdir_flag_spec='-L$libdir'
15221      hardcode_shlibpath_var=no
15222      ;;
15223
15224    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15225    # support.  Future versions do this automatically, but an explicit c++rt0.o
15226    # does not break anything, and helps significantly (at the cost of a little
15227    # extra space).
15228    freebsd2.2*)
15229      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15230      hardcode_libdir_flag_spec='-R$libdir'
15231      hardcode_direct=yes
15232      hardcode_shlibpath_var=no
15233      ;;
15234
15235    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15236    freebsd2.*)
15237      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15238      hardcode_direct=yes
15239      hardcode_minus_L=yes
15240      hardcode_shlibpath_var=no
15241      ;;
15242
15243    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15244    freebsd* | dragonfly*)
15245      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15246      hardcode_libdir_flag_spec='-R$libdir'
15247      hardcode_direct=yes
15248      hardcode_shlibpath_var=no
15249      ;;
15250
15251    hpux9*)
15252      if test "$GCC" = yes; then
15253	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'
15254      else
15255	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'
15256      fi
15257      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15258      hardcode_libdir_separator=:
15259      hardcode_direct=yes
15260
15261      # hardcode_minus_L: Not really in the search PATH,
15262      # but as the default location of the library.
15263      hardcode_minus_L=yes
15264      export_dynamic_flag_spec='${wl}-E'
15265      ;;
15266
15267    hpux10*)
15268      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15269	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15270      else
15271	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15272      fi
15273      if test "$with_gnu_ld" = no; then
15274	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15275	hardcode_libdir_separator=:
15276	hardcode_direct=yes
15277	hardcode_direct_absolute=yes
15278	export_dynamic_flag_spec='${wl}-E'
15279	# hardcode_minus_L: Not really in the search PATH,
15280	# but as the default location of the library.
15281	hardcode_minus_L=yes
15282      fi
15283      ;;
15284
15285    hpux11*)
15286      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15287	case $host_cpu in
15288	hppa*64*)
15289	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15290	  ;;
15291	ia64*)
15292	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15293	  ;;
15294	*)
15295	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15296	  ;;
15297	esac
15298      else
15299	case $host_cpu in
15300	hppa*64*)
15301	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15302	  ;;
15303	ia64*)
15304	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15305	  ;;
15306	*)
15307
15308	  # Older versions of the 11.00 compiler do not understand -b yet
15309	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15310	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15311$as_echo_n "checking if $CC understands -b... " >&6; }
15312if ${lt_cv_prog_compiler__b+:} false; then :
15313  $as_echo_n "(cached) " >&6
15314else
15315  lt_cv_prog_compiler__b=no
15316   save_LDFLAGS="$LDFLAGS"
15317   LDFLAGS="$LDFLAGS -b"
15318   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15319   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15320     # The linker can only warn and ignore the option if not recognized
15321     # So say no if there are warnings
15322     if test -s conftest.err; then
15323       # Append any errors to the config.log.
15324       cat conftest.err 1>&5
15325       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15326       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15327       if diff conftest.exp conftest.er2 >/dev/null; then
15328         lt_cv_prog_compiler__b=yes
15329       fi
15330     else
15331       lt_cv_prog_compiler__b=yes
15332     fi
15333   fi
15334   $RM -r conftest*
15335   LDFLAGS="$save_LDFLAGS"
15336
15337fi
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15339$as_echo "$lt_cv_prog_compiler__b" >&6; }
15340
15341if test x"$lt_cv_prog_compiler__b" = xyes; then
15342    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15343else
15344    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15345fi
15346
15347	  ;;
15348	esac
15349      fi
15350      if test "$with_gnu_ld" = no; then
15351	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15352	hardcode_libdir_separator=:
15353
15354	case $host_cpu in
15355	hppa*64*|ia64*)
15356	  hardcode_direct=no
15357	  hardcode_shlibpath_var=no
15358	  ;;
15359	*)
15360	  hardcode_direct=yes
15361	  hardcode_direct_absolute=yes
15362	  export_dynamic_flag_spec='${wl}-E'
15363
15364	  # hardcode_minus_L: Not really in the search PATH,
15365	  # but as the default location of the library.
15366	  hardcode_minus_L=yes
15367	  ;;
15368	esac
15369      fi
15370      ;;
15371
15372    irix5* | irix6* | nonstopux*)
15373      if test "$GCC" = yes; then
15374	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'
15375	# Try to use the -exported_symbol ld option, if it does not
15376	# work, assume that -exports_file does not work either and
15377	# implicitly export all symbols.
15378	# This should be the same for all languages, so no per-tag cache variable.
15379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15380$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15381if ${lt_cv_irix_exported_symbol+:} false; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384  save_LDFLAGS="$LDFLAGS"
15385	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15386	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387/* end confdefs.h.  */
15388int foo (void) { return 0; }
15389_ACEOF
15390if ac_fn_c_try_link "$LINENO"; then :
15391  lt_cv_irix_exported_symbol=yes
15392else
15393  lt_cv_irix_exported_symbol=no
15394fi
15395rm -f core conftest.err conftest.$ac_objext \
15396    conftest$ac_exeext conftest.$ac_ext
15397           LDFLAGS="$save_LDFLAGS"
15398fi
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15400$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15401	if test "$lt_cv_irix_exported_symbol" = yes; then
15402          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'
15403	fi
15404      else
15405	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'
15406	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'
15407      fi
15408      archive_cmds_need_lc='no'
15409      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15410      hardcode_libdir_separator=:
15411      inherit_rpath=yes
15412      link_all_deplibs=yes
15413      ;;
15414
15415    netbsd*)
15416      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15417	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15418      else
15419	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15420      fi
15421      hardcode_libdir_flag_spec='-R$libdir'
15422      hardcode_direct=yes
15423      hardcode_shlibpath_var=no
15424      ;;
15425
15426    newsos6)
15427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428      hardcode_direct=yes
15429      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15430      hardcode_libdir_separator=:
15431      hardcode_shlibpath_var=no
15432      ;;
15433
15434    *nto* | *qnx*)
15435      ;;
15436
15437    openbsd*)
15438      if test -f /usr/libexec/ld.so; then
15439	hardcode_direct=yes
15440	hardcode_shlibpath_var=no
15441	hardcode_direct_absolute=yes
15442	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15443	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15444	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15445	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15446	  export_dynamic_flag_spec='${wl}-E'
15447	else
15448	  case $host_os in
15449	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15450	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15451	     hardcode_libdir_flag_spec='-R$libdir'
15452	     ;;
15453	   *)
15454	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15455	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15456	     ;;
15457	  esac
15458	fi
15459      else
15460	ld_shlibs=no
15461      fi
15462      ;;
15463
15464    os2*)
15465      hardcode_libdir_flag_spec='-L$libdir'
15466      hardcode_minus_L=yes
15467      allow_undefined_flag=unsupported
15468      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'
15469      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15470      ;;
15471
15472    osf3*)
15473      if test "$GCC" = yes; then
15474	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15475	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'
15476      else
15477	allow_undefined_flag=' -expect_unresolved \*'
15478	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'
15479      fi
15480      archive_cmds_need_lc='no'
15481      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15482      hardcode_libdir_separator=:
15483      ;;
15484
15485    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15486      if test "$GCC" = yes; then
15487	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15488	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'
15489	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15490      else
15491	allow_undefined_flag=' -expect_unresolved \*'
15492	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'
15493	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~
15494	$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'
15495
15496	# Both c and cxx compiler support -rpath directly
15497	hardcode_libdir_flag_spec='-rpath $libdir'
15498      fi
15499      archive_cmds_need_lc='no'
15500      hardcode_libdir_separator=:
15501      ;;
15502
15503    solaris*)
15504      no_undefined_flag=' -z defs'
15505      if test "$GCC" = yes; then
15506	wlarc='${wl}'
15507	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15509	  $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'
15510      else
15511	case `$CC -V 2>&1` in
15512	*"Compilers 5.0"*)
15513	  wlarc=''
15514	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15516	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15517	  ;;
15518	*)
15519	  wlarc='${wl}'
15520	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15521	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15522	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15523	  ;;
15524	esac
15525      fi
15526      hardcode_libdir_flag_spec='-R$libdir'
15527      hardcode_shlibpath_var=no
15528      case $host_os in
15529      solaris2.[0-5] | solaris2.[0-5].*) ;;
15530      *)
15531	# The compiler driver will combine and reorder linker options,
15532	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15533	# but is careful enough not to reorder.
15534	# Supported since Solaris 2.6 (maybe 2.5.1?)
15535	if test "$GCC" = yes; then
15536	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15537	else
15538	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15539	fi
15540	;;
15541      esac
15542      link_all_deplibs=yes
15543      ;;
15544
15545    sunos4*)
15546      if test "x$host_vendor" = xsequent; then
15547	# Use $CC to link under sequent, because it throws in some extra .o
15548	# files that make .init and .fini sections work.
15549	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15550      else
15551	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15552      fi
15553      hardcode_libdir_flag_spec='-L$libdir'
15554      hardcode_direct=yes
15555      hardcode_minus_L=yes
15556      hardcode_shlibpath_var=no
15557      ;;
15558
15559    sysv4)
15560      case $host_vendor in
15561	sni)
15562	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563	  hardcode_direct=yes # is this really true???
15564	;;
15565	siemens)
15566	  ## LD is ld it makes a PLAMLIB
15567	  ## CC just makes a GrossModule.
15568	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15569	  reload_cmds='$CC -r -o $output$reload_objs'
15570	  hardcode_direct=no
15571        ;;
15572	motorola)
15573	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15575	;;
15576      esac
15577      runpath_var='LD_RUN_PATH'
15578      hardcode_shlibpath_var=no
15579      ;;
15580
15581    sysv4.3*)
15582      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583      hardcode_shlibpath_var=no
15584      export_dynamic_flag_spec='-Bexport'
15585      ;;
15586
15587    sysv4*MP*)
15588      if test -d /usr/nec; then
15589	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15590	hardcode_shlibpath_var=no
15591	runpath_var=LD_RUN_PATH
15592	hardcode_runpath_var=yes
15593	ld_shlibs=yes
15594      fi
15595      ;;
15596
15597    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15598      no_undefined_flag='${wl}-z,text'
15599      archive_cmds_need_lc=no
15600      hardcode_shlibpath_var=no
15601      runpath_var='LD_RUN_PATH'
15602
15603      if test "$GCC" = yes; then
15604	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15605	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15606      else
15607	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15608	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15609      fi
15610      ;;
15611
15612    sysv5* | sco3.2v5* | sco5v6*)
15613      # Note: We can NOT use -z defs as we might desire, because we do not
15614      # link with -lc, and that would cause any symbols used from libc to
15615      # always be unresolved, which means just about no library would
15616      # ever link correctly.  If we're not using GNU ld we use -z text
15617      # though, which does catch some bad symbols but isn't as heavy-handed
15618      # as -z defs.
15619      no_undefined_flag='${wl}-z,text'
15620      allow_undefined_flag='${wl}-z,nodefs'
15621      archive_cmds_need_lc=no
15622      hardcode_shlibpath_var=no
15623      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15624      hardcode_libdir_separator=':'
15625      link_all_deplibs=yes
15626      export_dynamic_flag_spec='${wl}-Bexport'
15627      runpath_var='LD_RUN_PATH'
15628
15629      if test "$GCC" = yes; then
15630	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632      else
15633	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15635      fi
15636      ;;
15637
15638    uts4*)
15639      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15640      hardcode_libdir_flag_spec='-L$libdir'
15641      hardcode_shlibpath_var=no
15642      ;;
15643
15644    *)
15645      ld_shlibs=no
15646      ;;
15647    esac
15648
15649    if test x$host_vendor = xsni; then
15650      case $host in
15651      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15652	export_dynamic_flag_spec='${wl}-Blargedynsym'
15653	;;
15654      esac
15655    fi
15656  fi
15657
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15659$as_echo "$ld_shlibs" >&6; }
15660test "$ld_shlibs" = no && can_build_shared=no
15661
15662with_gnu_ld=$with_gnu_ld
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678#
15679# Do we need to explicitly link libc?
15680#
15681case "x$archive_cmds_need_lc" in
15682x|xyes)
15683  # Assume -lc should be added
15684  archive_cmds_need_lc=yes
15685
15686  if test "$enable_shared" = yes && test "$GCC" = yes; then
15687    case $archive_cmds in
15688    *'~'*)
15689      # FIXME: we may have to deal with multi-command sequences.
15690      ;;
15691    '$CC '*)
15692      # Test whether the compiler implicitly links with -lc since on some
15693      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15694      # to ld, don't add -lc before -lgcc.
15695      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15697if ${lt_cv_archive_cmds_need_lc+:} false; then :
15698  $as_echo_n "(cached) " >&6
15699else
15700  $RM conftest*
15701	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15702
15703	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15704  (eval $ac_compile) 2>&5
15705  ac_status=$?
15706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15707  test $ac_status = 0; } 2>conftest.err; then
15708	  soname=conftest
15709	  lib=conftest
15710	  libobjs=conftest.$ac_objext
15711	  deplibs=
15712	  wl=$lt_prog_compiler_wl
15713	  pic_flag=$lt_prog_compiler_pic
15714	  compiler_flags=-v
15715	  linker_flags=-v
15716	  verstring=
15717	  output_objdir=.
15718	  libname=conftest
15719	  lt_save_allow_undefined_flag=$allow_undefined_flag
15720	  allow_undefined_flag=
15721	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15722  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15723  ac_status=$?
15724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725  test $ac_status = 0; }
15726	  then
15727	    lt_cv_archive_cmds_need_lc=no
15728	  else
15729	    lt_cv_archive_cmds_need_lc=yes
15730	  fi
15731	  allow_undefined_flag=$lt_save_allow_undefined_flag
15732	else
15733	  cat conftest.err 1>&5
15734	fi
15735	$RM conftest*
15736
15737fi
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15739$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15740      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15741      ;;
15742    esac
15743  fi
15744  ;;
15745esac
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15899$as_echo_n "checking dynamic linker characteristics... " >&6; }
15900
15901if test "$GCC" = yes; then
15902  case $host_os in
15903    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15904    *) lt_awk_arg="/^libraries:/" ;;
15905  esac
15906  case $host_os in
15907    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15908    *) lt_sed_strip_eq="s,=/,/,g" ;;
15909  esac
15910  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15911  case $lt_search_path_spec in
15912  *\;*)
15913    # if the path contains ";" then we assume it to be the separator
15914    # otherwise default to the standard path separator (i.e. ":") - it is
15915    # assumed that no part of a normal pathname contains ";" but that should
15916    # okay in the real world where ";" in dirpaths is itself problematic.
15917    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15918    ;;
15919  *)
15920    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15921    ;;
15922  esac
15923  # Ok, now we have the path, separated by spaces, we can step through it
15924  # and add multilib dir if necessary.
15925  lt_tmp_lt_search_path_spec=
15926  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15927  for lt_sys_path in $lt_search_path_spec; do
15928    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15929      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15930    else
15931      test -d "$lt_sys_path" && \
15932	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15933    fi
15934  done
15935  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15936BEGIN {RS=" "; FS="/|\n";} {
15937  lt_foo="";
15938  lt_count=0;
15939  for (lt_i = NF; lt_i > 0; lt_i--) {
15940    if ($lt_i != "" && $lt_i != ".") {
15941      if ($lt_i == "..") {
15942        lt_count++;
15943      } else {
15944        if (lt_count == 0) {
15945          lt_foo="/" $lt_i lt_foo;
15946        } else {
15947          lt_count--;
15948        }
15949      }
15950    }
15951  }
15952  if (lt_foo != "") { lt_freq[lt_foo]++; }
15953  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15954}'`
15955  # AWK program above erroneously prepends '/' to C:/dos/paths
15956  # for these hosts.
15957  case $host_os in
15958    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15959      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15960  esac
15961  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15962else
15963  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15964fi
15965library_names_spec=
15966libname_spec='lib$name'
15967soname_spec=
15968shrext_cmds=".so"
15969postinstall_cmds=
15970postuninstall_cmds=
15971finish_cmds=
15972finish_eval=
15973shlibpath_var=
15974shlibpath_overrides_runpath=unknown
15975version_type=none
15976dynamic_linker="$host_os ld.so"
15977sys_lib_dlsearch_path_spec="/lib /usr/lib"
15978need_lib_prefix=unknown
15979hardcode_into_libs=no
15980
15981# when you set need_version to no, make sure it does not cause -set_version
15982# flags to be left without arguments
15983need_version=unknown
15984
15985case $host_os in
15986aix3*)
15987  version_type=linux # correct to gnu/linux during the next big refactor
15988  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15989  shlibpath_var=LIBPATH
15990
15991  # AIX 3 has no versioning support, so we append a major version to the name.
15992  soname_spec='${libname}${release}${shared_ext}$major'
15993  ;;
15994
15995aix[4-9]*)
15996  version_type=linux # correct to gnu/linux during the next big refactor
15997  need_lib_prefix=no
15998  need_version=no
15999  hardcode_into_libs=yes
16000  if test "$host_cpu" = ia64; then
16001    # AIX 5 supports IA64
16002    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16003    shlibpath_var=LD_LIBRARY_PATH
16004  else
16005    # With GCC up to 2.95.x, collect2 would create an import file
16006    # for dependence libraries.  The import file would start with
16007    # the line `#! .'.  This would cause the generated library to
16008    # depend on `.', always an invalid library.  This was fixed in
16009    # development snapshots of GCC prior to 3.0.
16010    case $host_os in
16011      aix4 | aix4.[01] | aix4.[01].*)
16012      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16013	   echo ' yes '
16014	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16015	:
16016      else
16017	can_build_shared=no
16018      fi
16019      ;;
16020    esac
16021    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16022    # soname into executable. Probably we can add versioning support to
16023    # collect2, so additional links can be useful in future.
16024    if test "$aix_use_runtimelinking" = yes; then
16025      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16026      # instead of lib<name>.a to let people know that these are not
16027      # typical AIX shared libraries.
16028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029    else
16030      # We preserve .a as extension for shared libraries through AIX4.2
16031      # and later when we are not doing run time linking.
16032      library_names_spec='${libname}${release}.a $libname.a'
16033      soname_spec='${libname}${release}${shared_ext}$major'
16034    fi
16035    shlibpath_var=LIBPATH
16036  fi
16037  ;;
16038
16039amigaos*)
16040  case $host_cpu in
16041  powerpc)
16042    # Since July 2007 AmigaOS4 officially supports .so libraries.
16043    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16044    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045    ;;
16046  m68k)
16047    library_names_spec='$libname.ixlibrary $libname.a'
16048    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049    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'
16050    ;;
16051  esac
16052  ;;
16053
16054beos*)
16055  library_names_spec='${libname}${shared_ext}'
16056  dynamic_linker="$host_os ld.so"
16057  shlibpath_var=LIBRARY_PATH
16058  ;;
16059
16060bsdi[45]*)
16061  version_type=linux # correct to gnu/linux during the next big refactor
16062  need_version=no
16063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064  soname_spec='${libname}${release}${shared_ext}$major'
16065  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066  shlibpath_var=LD_LIBRARY_PATH
16067  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069  # the default ld.so.conf also contains /usr/contrib/lib and
16070  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071  # libtool to hard-code these into programs
16072  ;;
16073
16074cygwin* | mingw* | pw32* | cegcc*)
16075  version_type=windows
16076  shrext_cmds=".dll"
16077  need_version=no
16078  need_lib_prefix=no
16079
16080  case $GCC,$cc_basename in
16081  yes,*)
16082    # gcc
16083    library_names_spec='$libname.dll.a'
16084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16085    postinstall_cmds='base_file=`basename \${file}`~
16086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16087      dldir=$destdir/`dirname \$dlpath`~
16088      test -d \$dldir || mkdir -p \$dldir~
16089      $install_prog $dir/$dlname \$dldir/$dlname~
16090      chmod a+x \$dldir/$dlname~
16091      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16092        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16093      fi'
16094    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16095      dlpath=$dir/\$dldll~
16096       $RM \$dlpath'
16097    shlibpath_overrides_runpath=yes
16098
16099    case $host_os in
16100    cygwin*)
16101      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16102      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103
16104      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16105      ;;
16106    mingw* | cegcc*)
16107      # MinGW DLLs use traditional 'lib' prefix
16108      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16109      ;;
16110    pw32*)
16111      # pw32 DLLs use 'pw' prefix rather than 'lib'
16112      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113      ;;
16114    esac
16115    dynamic_linker='Win32 ld.exe'
16116    ;;
16117
16118  *,cl*)
16119    # Native MSVC
16120    libname_spec='$name'
16121    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122    library_names_spec='${libname}.dll.lib'
16123
16124    case $build_os in
16125    mingw*)
16126      sys_lib_search_path_spec=
16127      lt_save_ifs=$IFS
16128      IFS=';'
16129      for lt_path in $LIB
16130      do
16131        IFS=$lt_save_ifs
16132        # Let DOS variable expansion print the short 8.3 style file name.
16133        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16134        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16135      done
16136      IFS=$lt_save_ifs
16137      # Convert to MSYS style.
16138      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16139      ;;
16140    cygwin*)
16141      # Convert to unix form, then to dos form, then back to unix form
16142      # but this time dos style (no spaces!) so that the unix form looks
16143      # like /cygdrive/c/PROGRA~1:/cygdr...
16144      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16145      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16146      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16147      ;;
16148    *)
16149      sys_lib_search_path_spec="$LIB"
16150      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16151        # It is most probably a Windows format PATH.
16152        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16153      else
16154        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16155      fi
16156      # FIXME: find the short name or the path components, as spaces are
16157      # common. (e.g. "Program Files" -> "PROGRA~1")
16158      ;;
16159    esac
16160
16161    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16162    postinstall_cmds='base_file=`basename \${file}`~
16163      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16164      dldir=$destdir/`dirname \$dlpath`~
16165      test -d \$dldir || mkdir -p \$dldir~
16166      $install_prog $dir/$dlname \$dldir/$dlname'
16167    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16168      dlpath=$dir/\$dldll~
16169       $RM \$dlpath'
16170    shlibpath_overrides_runpath=yes
16171    dynamic_linker='Win32 link.exe'
16172    ;;
16173
16174  *)
16175    # Assume MSVC wrapper
16176    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16177    dynamic_linker='Win32 ld.exe'
16178    ;;
16179  esac
16180  # FIXME: first we should search . and the directory the executable is in
16181  shlibpath_var=PATH
16182  ;;
16183
16184darwin* | rhapsody*)
16185  dynamic_linker="$host_os dyld"
16186  version_type=darwin
16187  need_lib_prefix=no
16188  need_version=no
16189  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16190  soname_spec='${libname}${release}${major}$shared_ext'
16191  shlibpath_overrides_runpath=yes
16192  shlibpath_var=DYLD_LIBRARY_PATH
16193  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16194
16195  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16196  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16197  ;;
16198
16199dgux*)
16200  version_type=linux # correct to gnu/linux during the next big refactor
16201  need_lib_prefix=no
16202  need_version=no
16203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16204  soname_spec='${libname}${release}${shared_ext}$major'
16205  shlibpath_var=LD_LIBRARY_PATH
16206  ;;
16207
16208freebsd* | dragonfly*)
16209  # DragonFly does not have aout.  When/if they implement a new
16210  # versioning mechanism, adjust this.
16211  if test -x /usr/bin/objformat; then
16212    objformat=`/usr/bin/objformat`
16213  else
16214    case $host_os in
16215    freebsd[23].*) objformat=aout ;;
16216    *) objformat=elf ;;
16217    esac
16218  fi
16219  version_type=freebsd-$objformat
16220  case $version_type in
16221    freebsd-elf*)
16222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16223      need_version=no
16224      need_lib_prefix=no
16225      ;;
16226    freebsd-*)
16227      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16228      need_version=yes
16229      ;;
16230  esac
16231  shlibpath_var=LD_LIBRARY_PATH
16232  case $host_os in
16233  freebsd2.*)
16234    shlibpath_overrides_runpath=yes
16235    ;;
16236  freebsd3.[01]* | freebsdelf3.[01]*)
16237    shlibpath_overrides_runpath=yes
16238    hardcode_into_libs=yes
16239    ;;
16240  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16241  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16242    shlibpath_overrides_runpath=no
16243    hardcode_into_libs=yes
16244    ;;
16245  *) # from 4.6 on, and DragonFly
16246    shlibpath_overrides_runpath=yes
16247    hardcode_into_libs=yes
16248    ;;
16249  esac
16250  ;;
16251
16252gnu*)
16253  version_type=linux # correct to gnu/linux during the next big refactor
16254  need_lib_prefix=no
16255  need_version=no
16256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16257  soname_spec='${libname}${release}${shared_ext}$major'
16258  shlibpath_var=LD_LIBRARY_PATH
16259  shlibpath_overrides_runpath=no
16260  hardcode_into_libs=yes
16261  ;;
16262
16263haiku*)
16264  version_type=linux # correct to gnu/linux during the next big refactor
16265  need_lib_prefix=no
16266  need_version=no
16267  dynamic_linker="$host_os runtime_loader"
16268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16269  soname_spec='${libname}${release}${shared_ext}$major'
16270  shlibpath_var=LIBRARY_PATH
16271  shlibpath_overrides_runpath=yes
16272  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16273  hardcode_into_libs=yes
16274  ;;
16275
16276hpux9* | hpux10* | hpux11*)
16277  # Give a soname corresponding to the major version so that dld.sl refuses to
16278  # link against other versions.
16279  version_type=sunos
16280  need_lib_prefix=no
16281  need_version=no
16282  case $host_cpu in
16283  ia64*)
16284    shrext_cmds='.so'
16285    hardcode_into_libs=yes
16286    dynamic_linker="$host_os dld.so"
16287    shlibpath_var=LD_LIBRARY_PATH
16288    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16289    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290    soname_spec='${libname}${release}${shared_ext}$major'
16291    if test "X$HPUX_IA64_MODE" = X32; then
16292      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16293    else
16294      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16295    fi
16296    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16297    ;;
16298  hppa*64*)
16299    shrext_cmds='.sl'
16300    hardcode_into_libs=yes
16301    dynamic_linker="$host_os dld.sl"
16302    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16303    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305    soname_spec='${libname}${release}${shared_ext}$major'
16306    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16307    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16308    ;;
16309  *)
16310    shrext_cmds='.sl'
16311    dynamic_linker="$host_os dld.sl"
16312    shlibpath_var=SHLIB_PATH
16313    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16314    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315    soname_spec='${libname}${release}${shared_ext}$major'
16316    ;;
16317  esac
16318  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16319  postinstall_cmds='chmod 555 $lib'
16320  # or fails outright, so override atomically:
16321  install_override_mode=555
16322  ;;
16323
16324interix[3-9]*)
16325  version_type=linux # correct to gnu/linux during the next big refactor
16326  need_lib_prefix=no
16327  need_version=no
16328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16329  soname_spec='${libname}${release}${shared_ext}$major'
16330  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16331  shlibpath_var=LD_LIBRARY_PATH
16332  shlibpath_overrides_runpath=no
16333  hardcode_into_libs=yes
16334  ;;
16335
16336irix5* | irix6* | nonstopux*)
16337  case $host_os in
16338    nonstopux*) version_type=nonstopux ;;
16339    *)
16340	if test "$lt_cv_prog_gnu_ld" = yes; then
16341		version_type=linux # correct to gnu/linux during the next big refactor
16342	else
16343		version_type=irix
16344	fi ;;
16345  esac
16346  need_lib_prefix=no
16347  need_version=no
16348  soname_spec='${libname}${release}${shared_ext}$major'
16349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16350  case $host_os in
16351  irix5* | nonstopux*)
16352    libsuff= shlibsuff=
16353    ;;
16354  *)
16355    case $LD in # libtool.m4 will add one of these switches to LD
16356    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16357      libsuff= shlibsuff= libmagic=32-bit;;
16358    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16359      libsuff=32 shlibsuff=N32 libmagic=N32;;
16360    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16361      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16362    *) libsuff= shlibsuff= libmagic=never-match;;
16363    esac
16364    ;;
16365  esac
16366  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16367  shlibpath_overrides_runpath=no
16368  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16369  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16370  hardcode_into_libs=yes
16371  ;;
16372
16373# No shared lib support for Linux oldld, aout, or coff.
16374linux*oldld* | linux*aout* | linux*coff*)
16375  dynamic_linker=no
16376  ;;
16377
16378# This must be glibc/ELF.
16379linux* | k*bsd*-gnu | kopensolaris*-gnu)
16380  version_type=linux # correct to gnu/linux during the next big refactor
16381  need_lib_prefix=no
16382  need_version=no
16383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384  soname_spec='${libname}${release}${shared_ext}$major'
16385  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16386  shlibpath_var=LD_LIBRARY_PATH
16387  shlibpath_overrides_runpath=no
16388
16389  # Some binutils ld are patched to set DT_RUNPATH
16390  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16391  $as_echo_n "(cached) " >&6
16392else
16393  lt_cv_shlibpath_overrides_runpath=no
16394    save_LDFLAGS=$LDFLAGS
16395    save_libdir=$libdir
16396    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16397	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399/* end confdefs.h.  */
16400
16401int
16402main ()
16403{
16404
16405  ;
16406  return 0;
16407}
16408_ACEOF
16409if ac_fn_c_try_link "$LINENO"; then :
16410  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16411  lt_cv_shlibpath_overrides_runpath=yes
16412fi
16413fi
16414rm -f core conftest.err conftest.$ac_objext \
16415    conftest$ac_exeext conftest.$ac_ext
16416    LDFLAGS=$save_LDFLAGS
16417    libdir=$save_libdir
16418
16419fi
16420
16421  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16422
16423  # This implies no fast_install, which is unacceptable.
16424  # Some rework will be needed to allow for fast_install
16425  # before this can be enabled.
16426  hardcode_into_libs=yes
16427
16428  # Add ABI-specific directories to the system library path.
16429  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16430
16431  # Append ld.so.conf contents to the search path
16432  if test -f /etc/ld.so.conf; then
16433    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' ' '`
16434    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16435
16436  fi
16437
16438  # We used to test for /lib/ld.so.1 and disable shared libraries on
16439  # powerpc, because MkLinux only supported shared libraries with the
16440  # GNU dynamic linker.  Since this was broken with cross compilers,
16441  # most powerpc-linux boxes support dynamic linking these days and
16442  # people can always --disable-shared, the test was removed, and we
16443  # assume the GNU/Linux dynamic linker is in use.
16444  dynamic_linker='GNU/Linux ld.so'
16445  ;;
16446
16447netbsd*)
16448  version_type=sunos
16449  need_lib_prefix=no
16450  need_version=no
16451  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16453    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16454    dynamic_linker='NetBSD (a.out) ld.so'
16455  else
16456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16457    soname_spec='${libname}${release}${shared_ext}$major'
16458    dynamic_linker='NetBSD ld.elf_so'
16459  fi
16460  shlibpath_var=LD_LIBRARY_PATH
16461  shlibpath_overrides_runpath=yes
16462  hardcode_into_libs=yes
16463  ;;
16464
16465newsos6)
16466  version_type=linux # correct to gnu/linux during the next big refactor
16467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468  shlibpath_var=LD_LIBRARY_PATH
16469  shlibpath_overrides_runpath=yes
16470  ;;
16471
16472*nto* | *qnx*)
16473  version_type=qnx
16474  need_lib_prefix=no
16475  need_version=no
16476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477  soname_spec='${libname}${release}${shared_ext}$major'
16478  shlibpath_var=LD_LIBRARY_PATH
16479  shlibpath_overrides_runpath=no
16480  hardcode_into_libs=yes
16481  dynamic_linker='ldqnx.so'
16482  ;;
16483
16484openbsd*)
16485  version_type=sunos
16486  sys_lib_dlsearch_path_spec="/usr/lib"
16487  need_lib_prefix=no
16488  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16489  case $host_os in
16490    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16491    *)				need_version=no  ;;
16492  esac
16493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16494  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16495  shlibpath_var=LD_LIBRARY_PATH
16496  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16497    case $host_os in
16498      openbsd2.[89] | openbsd2.[89].*)
16499	shlibpath_overrides_runpath=no
16500	;;
16501      *)
16502	shlibpath_overrides_runpath=yes
16503	;;
16504      esac
16505  else
16506    shlibpath_overrides_runpath=yes
16507  fi
16508  ;;
16509
16510os2*)
16511  libname_spec='$name'
16512  shrext_cmds=".dll"
16513  need_lib_prefix=no
16514  library_names_spec='$libname${shared_ext} $libname.a'
16515  dynamic_linker='OS/2 ld.exe'
16516  shlibpath_var=LIBPATH
16517  ;;
16518
16519osf3* | osf4* | osf5*)
16520  version_type=osf
16521  need_lib_prefix=no
16522  need_version=no
16523  soname_spec='${libname}${release}${shared_ext}$major'
16524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525  shlibpath_var=LD_LIBRARY_PATH
16526  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16527  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16528  ;;
16529
16530rdos*)
16531  dynamic_linker=no
16532  ;;
16533
16534solaris*)
16535  version_type=linux # correct to gnu/linux during the next big refactor
16536  need_lib_prefix=no
16537  need_version=no
16538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16539  soname_spec='${libname}${release}${shared_ext}$major'
16540  shlibpath_var=LD_LIBRARY_PATH
16541  shlibpath_overrides_runpath=yes
16542  hardcode_into_libs=yes
16543  # ldd complains unless libraries are executable
16544  postinstall_cmds='chmod +x $lib'
16545  ;;
16546
16547sunos4*)
16548  version_type=sunos
16549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16550  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16551  shlibpath_var=LD_LIBRARY_PATH
16552  shlibpath_overrides_runpath=yes
16553  if test "$with_gnu_ld" = yes; then
16554    need_lib_prefix=no
16555  fi
16556  need_version=yes
16557  ;;
16558
16559sysv4 | sysv4.3*)
16560  version_type=linux # correct to gnu/linux during the next big refactor
16561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562  soname_spec='${libname}${release}${shared_ext}$major'
16563  shlibpath_var=LD_LIBRARY_PATH
16564  case $host_vendor in
16565    sni)
16566      shlibpath_overrides_runpath=no
16567      need_lib_prefix=no
16568      runpath_var=LD_RUN_PATH
16569      ;;
16570    siemens)
16571      need_lib_prefix=no
16572      ;;
16573    motorola)
16574      need_lib_prefix=no
16575      need_version=no
16576      shlibpath_overrides_runpath=no
16577      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16578      ;;
16579  esac
16580  ;;
16581
16582sysv4*MP*)
16583  if test -d /usr/nec ;then
16584    version_type=linux # correct to gnu/linux during the next big refactor
16585    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16586    soname_spec='$libname${shared_ext}.$major'
16587    shlibpath_var=LD_LIBRARY_PATH
16588  fi
16589  ;;
16590
16591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16592  version_type=freebsd-elf
16593  need_lib_prefix=no
16594  need_version=no
16595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16596  soname_spec='${libname}${release}${shared_ext}$major'
16597  shlibpath_var=LD_LIBRARY_PATH
16598  shlibpath_overrides_runpath=yes
16599  hardcode_into_libs=yes
16600  if test "$with_gnu_ld" = yes; then
16601    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16602  else
16603    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16604    case $host_os in
16605      sco3.2v5*)
16606        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16607	;;
16608    esac
16609  fi
16610  sys_lib_dlsearch_path_spec='/usr/lib'
16611  ;;
16612
16613tpf*)
16614  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16615  version_type=linux # correct to gnu/linux during the next big refactor
16616  need_lib_prefix=no
16617  need_version=no
16618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619  shlibpath_var=LD_LIBRARY_PATH
16620  shlibpath_overrides_runpath=no
16621  hardcode_into_libs=yes
16622  ;;
16623
16624uts4*)
16625  version_type=linux # correct to gnu/linux during the next big refactor
16626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627  soname_spec='${libname}${release}${shared_ext}$major'
16628  shlibpath_var=LD_LIBRARY_PATH
16629  ;;
16630
16631*)
16632  dynamic_linker=no
16633  ;;
16634esac
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16636$as_echo "$dynamic_linker" >&6; }
16637test "$dynamic_linker" = no && can_build_shared=no
16638
16639variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16640if test "$GCC" = yes; then
16641  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16642fi
16643
16644if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16645  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16646fi
16647if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16648  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16649fi
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16743$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16744hardcode_action=
16745if test -n "$hardcode_libdir_flag_spec" ||
16746   test -n "$runpath_var" ||
16747   test "X$hardcode_automatic" = "Xyes" ; then
16748
16749  # We can hardcode non-existent directories.
16750  if test "$hardcode_direct" != no &&
16751     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16752     # have to relink, otherwise we might link with an installed library
16753     # when we should be linking with a yet-to-be-installed one
16754     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16755     test "$hardcode_minus_L" != no; then
16756    # Linking always hardcodes the temporary library directory.
16757    hardcode_action=relink
16758  else
16759    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16760    hardcode_action=immediate
16761  fi
16762else
16763  # We cannot hardcode anything, or else we can only hardcode existing
16764  # directories.
16765  hardcode_action=unsupported
16766fi
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16768$as_echo "$hardcode_action" >&6; }
16769
16770if test "$hardcode_action" = relink ||
16771   test "$inherit_rpath" = yes; then
16772  # Fast installation is not supported
16773  enable_fast_install=no
16774elif test "$shlibpath_overrides_runpath" = yes ||
16775     test "$enable_shared" = no; then
16776  # Fast installation is not necessary
16777  enable_fast_install=needless
16778fi
16779
16780
16781
16782
16783
16784
16785  if test "x$enable_dlopen" != xyes; then
16786  enable_dlopen=unknown
16787  enable_dlopen_self=unknown
16788  enable_dlopen_self_static=unknown
16789else
16790  lt_cv_dlopen=no
16791  lt_cv_dlopen_libs=
16792
16793  case $host_os in
16794  beos*)
16795    lt_cv_dlopen="load_add_on"
16796    lt_cv_dlopen_libs=
16797    lt_cv_dlopen_self=yes
16798    ;;
16799
16800  mingw* | pw32* | cegcc*)
16801    lt_cv_dlopen="LoadLibrary"
16802    lt_cv_dlopen_libs=
16803    ;;
16804
16805  cygwin*)
16806    lt_cv_dlopen="dlopen"
16807    lt_cv_dlopen_libs=
16808    ;;
16809
16810  darwin*)
16811  # if libdl is installed we need to link against it
16812    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16813$as_echo_n "checking for dlopen in -ldl... " >&6; }
16814if ${ac_cv_lib_dl_dlopen+:} false; then :
16815  $as_echo_n "(cached) " >&6
16816else
16817  ac_check_lib_save_LIBS=$LIBS
16818LIBS="-ldl  $LIBS"
16819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821
16822/* Override any GCC internal prototype to avoid an error.
16823   Use char because int might match the return type of a GCC
16824   builtin and then its argument prototype would still apply.  */
16825#ifdef __cplusplus
16826extern "C"
16827#endif
16828char dlopen ();
16829int
16830main ()
16831{
16832return dlopen ();
16833  ;
16834  return 0;
16835}
16836_ACEOF
16837if ac_fn_c_try_link "$LINENO"; then :
16838  ac_cv_lib_dl_dlopen=yes
16839else
16840  ac_cv_lib_dl_dlopen=no
16841fi
16842rm -f core conftest.err conftest.$ac_objext \
16843    conftest$ac_exeext conftest.$ac_ext
16844LIBS=$ac_check_lib_save_LIBS
16845fi
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16847$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16848if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16849  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16850else
16851
16852    lt_cv_dlopen="dyld"
16853    lt_cv_dlopen_libs=
16854    lt_cv_dlopen_self=yes
16855
16856fi
16857
16858    ;;
16859
16860  *)
16861    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16862if test "x$ac_cv_func_shl_load" = xyes; then :
16863  lt_cv_dlopen="shl_load"
16864else
16865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16866$as_echo_n "checking for shl_load in -ldld... " >&6; }
16867if ${ac_cv_lib_dld_shl_load+:} false; then :
16868  $as_echo_n "(cached) " >&6
16869else
16870  ac_check_lib_save_LIBS=$LIBS
16871LIBS="-ldld  $LIBS"
16872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873/* end confdefs.h.  */
16874
16875/* Override any GCC internal prototype to avoid an error.
16876   Use char because int might match the return type of a GCC
16877   builtin and then its argument prototype would still apply.  */
16878#ifdef __cplusplus
16879extern "C"
16880#endif
16881char shl_load ();
16882int
16883main ()
16884{
16885return shl_load ();
16886  ;
16887  return 0;
16888}
16889_ACEOF
16890if ac_fn_c_try_link "$LINENO"; then :
16891  ac_cv_lib_dld_shl_load=yes
16892else
16893  ac_cv_lib_dld_shl_load=no
16894fi
16895rm -f core conftest.err conftest.$ac_objext \
16896    conftest$ac_exeext conftest.$ac_ext
16897LIBS=$ac_check_lib_save_LIBS
16898fi
16899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16900$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16901if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16902  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16903else
16904  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16905if test "x$ac_cv_func_dlopen" = xyes; then :
16906  lt_cv_dlopen="dlopen"
16907else
16908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16909$as_echo_n "checking for dlopen in -ldl... " >&6; }
16910if ${ac_cv_lib_dl_dlopen+:} false; then :
16911  $as_echo_n "(cached) " >&6
16912else
16913  ac_check_lib_save_LIBS=$LIBS
16914LIBS="-ldl  $LIBS"
16915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h.  */
16917
16918/* Override any GCC internal prototype to avoid an error.
16919   Use char because int might match the return type of a GCC
16920   builtin and then its argument prototype would still apply.  */
16921#ifdef __cplusplus
16922extern "C"
16923#endif
16924char dlopen ();
16925int
16926main ()
16927{
16928return dlopen ();
16929  ;
16930  return 0;
16931}
16932_ACEOF
16933if ac_fn_c_try_link "$LINENO"; then :
16934  ac_cv_lib_dl_dlopen=yes
16935else
16936  ac_cv_lib_dl_dlopen=no
16937fi
16938rm -f core conftest.err conftest.$ac_objext \
16939    conftest$ac_exeext conftest.$ac_ext
16940LIBS=$ac_check_lib_save_LIBS
16941fi
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16943$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16944if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16945  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16946else
16947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16948$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16949if ${ac_cv_lib_svld_dlopen+:} false; then :
16950  $as_echo_n "(cached) " >&6
16951else
16952  ac_check_lib_save_LIBS=$LIBS
16953LIBS="-lsvld  $LIBS"
16954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h.  */
16956
16957/* Override any GCC internal prototype to avoid an error.
16958   Use char because int might match the return type of a GCC
16959   builtin and then its argument prototype would still apply.  */
16960#ifdef __cplusplus
16961extern "C"
16962#endif
16963char dlopen ();
16964int
16965main ()
16966{
16967return dlopen ();
16968  ;
16969  return 0;
16970}
16971_ACEOF
16972if ac_fn_c_try_link "$LINENO"; then :
16973  ac_cv_lib_svld_dlopen=yes
16974else
16975  ac_cv_lib_svld_dlopen=no
16976fi
16977rm -f core conftest.err conftest.$ac_objext \
16978    conftest$ac_exeext conftest.$ac_ext
16979LIBS=$ac_check_lib_save_LIBS
16980fi
16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16982$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16983if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16984  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16985else
16986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16987$as_echo_n "checking for dld_link in -ldld... " >&6; }
16988if ${ac_cv_lib_dld_dld_link+:} false; then :
16989  $as_echo_n "(cached) " >&6
16990else
16991  ac_check_lib_save_LIBS=$LIBS
16992LIBS="-ldld  $LIBS"
16993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h.  */
16995
16996/* Override any GCC internal prototype to avoid an error.
16997   Use char because int might match the return type of a GCC
16998   builtin and then its argument prototype would still apply.  */
16999#ifdef __cplusplus
17000extern "C"
17001#endif
17002char dld_link ();
17003int
17004main ()
17005{
17006return dld_link ();
17007  ;
17008  return 0;
17009}
17010_ACEOF
17011if ac_fn_c_try_link "$LINENO"; then :
17012  ac_cv_lib_dld_dld_link=yes
17013else
17014  ac_cv_lib_dld_dld_link=no
17015fi
17016rm -f core conftest.err conftest.$ac_objext \
17017    conftest$ac_exeext conftest.$ac_ext
17018LIBS=$ac_check_lib_save_LIBS
17019fi
17020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17021$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17022if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17023  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17024fi
17025
17026
17027fi
17028
17029
17030fi
17031
17032
17033fi
17034
17035
17036fi
17037
17038
17039fi
17040
17041    ;;
17042  esac
17043
17044  if test "x$lt_cv_dlopen" != xno; then
17045    enable_dlopen=yes
17046  else
17047    enable_dlopen=no
17048  fi
17049
17050  case $lt_cv_dlopen in
17051  dlopen)
17052    save_CPPFLAGS="$CPPFLAGS"
17053    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17054
17055    save_LDFLAGS="$LDFLAGS"
17056    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17057
17058    save_LIBS="$LIBS"
17059    LIBS="$lt_cv_dlopen_libs $LIBS"
17060
17061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17062$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17063if ${lt_cv_dlopen_self+:} false; then :
17064  $as_echo_n "(cached) " >&6
17065else
17066  	  if test "$cross_compiling" = yes; then :
17067  lt_cv_dlopen_self=cross
17068else
17069  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17070  lt_status=$lt_dlunknown
17071  cat > conftest.$ac_ext <<_LT_EOF
17072#line $LINENO "configure"
17073#include "confdefs.h"
17074
17075#if HAVE_DLFCN_H
17076#include <dlfcn.h>
17077#endif
17078
17079#include <stdio.h>
17080
17081#ifdef RTLD_GLOBAL
17082#  define LT_DLGLOBAL		RTLD_GLOBAL
17083#else
17084#  ifdef DL_GLOBAL
17085#    define LT_DLGLOBAL		DL_GLOBAL
17086#  else
17087#    define LT_DLGLOBAL		0
17088#  endif
17089#endif
17090
17091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17092   find out it does not work in some platform. */
17093#ifndef LT_DLLAZY_OR_NOW
17094#  ifdef RTLD_LAZY
17095#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17096#  else
17097#    ifdef DL_LAZY
17098#      define LT_DLLAZY_OR_NOW		DL_LAZY
17099#    else
17100#      ifdef RTLD_NOW
17101#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17102#      else
17103#        ifdef DL_NOW
17104#          define LT_DLLAZY_OR_NOW	DL_NOW
17105#        else
17106#          define LT_DLLAZY_OR_NOW	0
17107#        endif
17108#      endif
17109#    endif
17110#  endif
17111#endif
17112
17113/* When -fvisbility=hidden is used, assume the code has been annotated
17114   correspondingly for the symbols needed.  */
17115#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17116int fnord () __attribute__((visibility("default")));
17117#endif
17118
17119int fnord () { return 42; }
17120int main ()
17121{
17122  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17123  int status = $lt_dlunknown;
17124
17125  if (self)
17126    {
17127      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17128      else
17129        {
17130	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17131          else puts (dlerror ());
17132	}
17133      /* dlclose (self); */
17134    }
17135  else
17136    puts (dlerror ());
17137
17138  return status;
17139}
17140_LT_EOF
17141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17142  (eval $ac_link) 2>&5
17143  ac_status=$?
17144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17146    (./conftest; exit; ) >&5 2>/dev/null
17147    lt_status=$?
17148    case x$lt_status in
17149      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17150      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17151      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17152    esac
17153  else :
17154    # compilation failed
17155    lt_cv_dlopen_self=no
17156  fi
17157fi
17158rm -fr conftest*
17159
17160
17161fi
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17163$as_echo "$lt_cv_dlopen_self" >&6; }
17164
17165    if test "x$lt_cv_dlopen_self" = xyes; then
17166      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17167      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17168$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17169if ${lt_cv_dlopen_self_static+:} false; then :
17170  $as_echo_n "(cached) " >&6
17171else
17172  	  if test "$cross_compiling" = yes; then :
17173  lt_cv_dlopen_self_static=cross
17174else
17175  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17176  lt_status=$lt_dlunknown
17177  cat > conftest.$ac_ext <<_LT_EOF
17178#line $LINENO "configure"
17179#include "confdefs.h"
17180
17181#if HAVE_DLFCN_H
17182#include <dlfcn.h>
17183#endif
17184
17185#include <stdio.h>
17186
17187#ifdef RTLD_GLOBAL
17188#  define LT_DLGLOBAL		RTLD_GLOBAL
17189#else
17190#  ifdef DL_GLOBAL
17191#    define LT_DLGLOBAL		DL_GLOBAL
17192#  else
17193#    define LT_DLGLOBAL		0
17194#  endif
17195#endif
17196
17197/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17198   find out it does not work in some platform. */
17199#ifndef LT_DLLAZY_OR_NOW
17200#  ifdef RTLD_LAZY
17201#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17202#  else
17203#    ifdef DL_LAZY
17204#      define LT_DLLAZY_OR_NOW		DL_LAZY
17205#    else
17206#      ifdef RTLD_NOW
17207#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17208#      else
17209#        ifdef DL_NOW
17210#          define LT_DLLAZY_OR_NOW	DL_NOW
17211#        else
17212#          define LT_DLLAZY_OR_NOW	0
17213#        endif
17214#      endif
17215#    endif
17216#  endif
17217#endif
17218
17219/* When -fvisbility=hidden is used, assume the code has been annotated
17220   correspondingly for the symbols needed.  */
17221#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17222int fnord () __attribute__((visibility("default")));
17223#endif
17224
17225int fnord () { return 42; }
17226int main ()
17227{
17228  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17229  int status = $lt_dlunknown;
17230
17231  if (self)
17232    {
17233      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17234      else
17235        {
17236	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17237          else puts (dlerror ());
17238	}
17239      /* dlclose (self); */
17240    }
17241  else
17242    puts (dlerror ());
17243
17244  return status;
17245}
17246_LT_EOF
17247  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17248  (eval $ac_link) 2>&5
17249  ac_status=$?
17250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17251  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17252    (./conftest; exit; ) >&5 2>/dev/null
17253    lt_status=$?
17254    case x$lt_status in
17255      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17256      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17257      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17258    esac
17259  else :
17260    # compilation failed
17261    lt_cv_dlopen_self_static=no
17262  fi
17263fi
17264rm -fr conftest*
17265
17266
17267fi
17268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17269$as_echo "$lt_cv_dlopen_self_static" >&6; }
17270    fi
17271
17272    CPPFLAGS="$save_CPPFLAGS"
17273    LDFLAGS="$save_LDFLAGS"
17274    LIBS="$save_LIBS"
17275    ;;
17276  esac
17277
17278  case $lt_cv_dlopen_self in
17279  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17280  *) enable_dlopen_self=unknown ;;
17281  esac
17282
17283  case $lt_cv_dlopen_self_static in
17284  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17285  *) enable_dlopen_self_static=unknown ;;
17286  esac
17287fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305striplib=
17306old_striplib=
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17308$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17309if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17310  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17311  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17313$as_echo "yes" >&6; }
17314else
17315# FIXME - insert some real tests, host_os isn't really good enough
17316  case $host_os in
17317  darwin*)
17318    if test -n "$STRIP" ; then
17319      striplib="$STRIP -x"
17320      old_striplib="$STRIP -S"
17321      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17322$as_echo "yes" >&6; }
17323    else
17324      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325$as_echo "no" >&6; }
17326    fi
17327    ;;
17328  *)
17329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17330$as_echo "no" >&6; }
17331    ;;
17332  esac
17333fi
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346  # Report which library types will actually be built
17347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17348$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17350$as_echo "$can_build_shared" >&6; }
17351
17352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17353$as_echo_n "checking whether to build shared libraries... " >&6; }
17354  test "$can_build_shared" = "no" && enable_shared=no
17355
17356  # On AIX, shared libraries and static libraries use the same namespace, and
17357  # are all built from PIC.
17358  case $host_os in
17359  aix3*)
17360    test "$enable_shared" = yes && enable_static=no
17361    if test -n "$RANLIB"; then
17362      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17363      postinstall_cmds='$RANLIB $lib'
17364    fi
17365    ;;
17366
17367  aix[4-9]*)
17368    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17369      test "$enable_shared" = yes && enable_static=no
17370    fi
17371    ;;
17372  esac
17373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17374$as_echo "$enable_shared" >&6; }
17375
17376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17377$as_echo_n "checking whether to build static libraries... " >&6; }
17378  # Make sure either enable_shared or enable_static is yes.
17379  test "$enable_shared" = yes || enable_static=yes
17380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17381$as_echo "$enable_static" >&6; }
17382
17383
17384
17385
17386fi
17387ac_ext=c
17388ac_cpp='$CPP $CPPFLAGS'
17389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17391ac_compiler_gnu=$ac_cv_c_compiler_gnu
17392
17393CC="$lt_save_CC"
17394
17395      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17396    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17397    (test "X$CXX" != "Xg++"))) ; then
17398  ac_ext=cpp
17399ac_cpp='$CXXCPP $CPPFLAGS'
17400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17404$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17405if test -z "$CXXCPP"; then
17406  if ${ac_cv_prog_CXXCPP+:} false; then :
17407  $as_echo_n "(cached) " >&6
17408else
17409      # Double quotes because CXXCPP needs to be expanded
17410    for CXXCPP in "$CXX -E" "/lib/cpp"
17411    do
17412      ac_preproc_ok=false
17413for ac_cxx_preproc_warn_flag in '' yes
17414do
17415  # Use a header file that comes with gcc, so configuring glibc
17416  # with a fresh cross-compiler works.
17417  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17418  # <limits.h> exists even on freestanding compilers.
17419  # On the NeXT, cc -E runs the code through the compiler's parser,
17420  # not just through cpp. "Syntax error" is here to catch this case.
17421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422/* end confdefs.h.  */
17423#ifdef __STDC__
17424# include <limits.h>
17425#else
17426# include <assert.h>
17427#endif
17428		     Syntax error
17429_ACEOF
17430if ac_fn_cxx_try_cpp "$LINENO"; then :
17431
17432else
17433  # Broken: fails on valid input.
17434continue
17435fi
17436rm -f conftest.err conftest.i conftest.$ac_ext
17437
17438  # OK, works on sane cases.  Now check whether nonexistent headers
17439  # can be detected and how.
17440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441/* end confdefs.h.  */
17442#include <ac_nonexistent.h>
17443_ACEOF
17444if ac_fn_cxx_try_cpp "$LINENO"; then :
17445  # Broken: success on invalid input.
17446continue
17447else
17448  # Passes both tests.
17449ac_preproc_ok=:
17450break
17451fi
17452rm -f conftest.err conftest.i conftest.$ac_ext
17453
17454done
17455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17456rm -f conftest.i conftest.err conftest.$ac_ext
17457if $ac_preproc_ok; then :
17458  break
17459fi
17460
17461    done
17462    ac_cv_prog_CXXCPP=$CXXCPP
17463
17464fi
17465  CXXCPP=$ac_cv_prog_CXXCPP
17466else
17467  ac_cv_prog_CXXCPP=$CXXCPP
17468fi
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17470$as_echo "$CXXCPP" >&6; }
17471ac_preproc_ok=false
17472for ac_cxx_preproc_warn_flag in '' yes
17473do
17474  # Use a header file that comes with gcc, so configuring glibc
17475  # with a fresh cross-compiler works.
17476  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477  # <limits.h> exists even on freestanding compilers.
17478  # On the NeXT, cc -E runs the code through the compiler's parser,
17479  # not just through cpp. "Syntax error" is here to catch this case.
17480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481/* end confdefs.h.  */
17482#ifdef __STDC__
17483# include <limits.h>
17484#else
17485# include <assert.h>
17486#endif
17487		     Syntax error
17488_ACEOF
17489if ac_fn_cxx_try_cpp "$LINENO"; then :
17490
17491else
17492  # Broken: fails on valid input.
17493continue
17494fi
17495rm -f conftest.err conftest.i conftest.$ac_ext
17496
17497  # OK, works on sane cases.  Now check whether nonexistent headers
17498  # can be detected and how.
17499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h.  */
17501#include <ac_nonexistent.h>
17502_ACEOF
17503if ac_fn_cxx_try_cpp "$LINENO"; then :
17504  # Broken: success on invalid input.
17505continue
17506else
17507  # Passes both tests.
17508ac_preproc_ok=:
17509break
17510fi
17511rm -f conftest.err conftest.i conftest.$ac_ext
17512
17513done
17514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17515rm -f conftest.i conftest.err conftest.$ac_ext
17516if $ac_preproc_ok; then :
17517
17518else
17519  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17521as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17522See \`config.log' for more details" "$LINENO" 5; }
17523fi
17524
17525ac_ext=c
17526ac_cpp='$CPP $CPPFLAGS'
17527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529ac_compiler_gnu=$ac_cv_c_compiler_gnu
17530
17531else
17532  _lt_caught_CXX_error=yes
17533fi
17534
17535ac_ext=cpp
17536ac_cpp='$CXXCPP $CPPFLAGS'
17537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540
17541archive_cmds_need_lc_CXX=no
17542allow_undefined_flag_CXX=
17543always_export_symbols_CXX=no
17544archive_expsym_cmds_CXX=
17545compiler_needs_object_CXX=no
17546export_dynamic_flag_spec_CXX=
17547hardcode_direct_CXX=no
17548hardcode_direct_absolute_CXX=no
17549hardcode_libdir_flag_spec_CXX=
17550hardcode_libdir_separator_CXX=
17551hardcode_minus_L_CXX=no
17552hardcode_shlibpath_var_CXX=unsupported
17553hardcode_automatic_CXX=no
17554inherit_rpath_CXX=no
17555module_cmds_CXX=
17556module_expsym_cmds_CXX=
17557link_all_deplibs_CXX=unknown
17558old_archive_cmds_CXX=$old_archive_cmds
17559reload_flag_CXX=$reload_flag
17560reload_cmds_CXX=$reload_cmds
17561no_undefined_flag_CXX=
17562whole_archive_flag_spec_CXX=
17563enable_shared_with_static_runtimes_CXX=no
17564
17565# Source file extension for C++ test sources.
17566ac_ext=cpp
17567
17568# Object file extension for compiled C++ test sources.
17569objext=o
17570objext_CXX=$objext
17571
17572# No sense in running all these tests if we already determined that
17573# the CXX compiler isn't working.  Some variables (like enable_shared)
17574# are currently assumed to apply to all compilers on this platform,
17575# and will be corrupted by setting them based on a non-working compiler.
17576if test "$_lt_caught_CXX_error" != yes; then
17577  # Code to be used in simple compile tests
17578  lt_simple_compile_test_code="int some_variable = 0;"
17579
17580  # Code to be used in simple link tests
17581  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17582
17583  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17584
17585
17586
17587
17588
17589
17590# If no C compiler was specified, use CC.
17591LTCC=${LTCC-"$CC"}
17592
17593# If no C compiler flags were specified, use CFLAGS.
17594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17595
17596# Allow CC to be a program name with arguments.
17597compiler=$CC
17598
17599
17600  # save warnings/boilerplate of simple test code
17601  ac_outfile=conftest.$ac_objext
17602echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17603eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17604_lt_compiler_boilerplate=`cat conftest.err`
17605$RM conftest*
17606
17607  ac_outfile=conftest.$ac_objext
17608echo "$lt_simple_link_test_code" >conftest.$ac_ext
17609eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17610_lt_linker_boilerplate=`cat conftest.err`
17611$RM -r conftest*
17612
17613
17614  # Allow CC to be a program name with arguments.
17615  lt_save_CC=$CC
17616  lt_save_CFLAGS=$CFLAGS
17617  lt_save_LD=$LD
17618  lt_save_GCC=$GCC
17619  GCC=$GXX
17620  lt_save_with_gnu_ld=$with_gnu_ld
17621  lt_save_path_LD=$lt_cv_path_LD
17622  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17623    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17624  else
17625    $as_unset lt_cv_prog_gnu_ld
17626  fi
17627  if test -n "${lt_cv_path_LDCXX+set}"; then
17628    lt_cv_path_LD=$lt_cv_path_LDCXX
17629  else
17630    $as_unset lt_cv_path_LD
17631  fi
17632  test -z "${LDCXX+set}" || LD=$LDCXX
17633  CC=${CXX-"c++"}
17634  CFLAGS=$CXXFLAGS
17635  compiler=$CC
17636  compiler_CXX=$CC
17637  for cc_temp in $compiler""; do
17638  case $cc_temp in
17639    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17640    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17641    \-*) ;;
17642    *) break;;
17643  esac
17644done
17645cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17646
17647
17648  if test -n "$compiler"; then
17649    # We don't want -fno-exception when compiling C++ code, so set the
17650    # no_builtin_flag separately
17651    if test "$GXX" = yes; then
17652      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17653    else
17654      lt_prog_compiler_no_builtin_flag_CXX=
17655    fi
17656
17657    if test "$GXX" = yes; then
17658      # Set up default GNU C++ configuration
17659
17660
17661
17662# Check whether --with-gnu-ld was given.
17663if test "${with_gnu_ld+set}" = set; then :
17664  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17665else
17666  with_gnu_ld=no
17667fi
17668
17669ac_prog=ld
17670if test "$GCC" = yes; then
17671  # Check if gcc -print-prog-name=ld gives a path.
17672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17673$as_echo_n "checking for ld used by $CC... " >&6; }
17674  case $host in
17675  *-*-mingw*)
17676    # gcc leaves a trailing carriage return which upsets mingw
17677    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17678  *)
17679    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17680  esac
17681  case $ac_prog in
17682    # Accept absolute paths.
17683    [\\/]* | ?:[\\/]*)
17684      re_direlt='/[^/][^/]*/\.\./'
17685      # Canonicalize the pathname of ld
17686      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17687      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17688	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17689      done
17690      test -z "$LD" && LD="$ac_prog"
17691      ;;
17692  "")
17693    # If it fails, then pretend we aren't using GCC.
17694    ac_prog=ld
17695    ;;
17696  *)
17697    # If it is relative, then search for the first ld in PATH.
17698    with_gnu_ld=unknown
17699    ;;
17700  esac
17701elif test "$with_gnu_ld" = yes; then
17702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17703$as_echo_n "checking for GNU ld... " >&6; }
17704else
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17706$as_echo_n "checking for non-GNU ld... " >&6; }
17707fi
17708if ${lt_cv_path_LD+:} false; then :
17709  $as_echo_n "(cached) " >&6
17710else
17711  if test -z "$LD"; then
17712  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17713  for ac_dir in $PATH; do
17714    IFS="$lt_save_ifs"
17715    test -z "$ac_dir" && ac_dir=.
17716    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17717      lt_cv_path_LD="$ac_dir/$ac_prog"
17718      # Check to see if the program is GNU ld.  I'd rather use --version,
17719      # but apparently some variants of GNU ld only accept -v.
17720      # Break only if it was the GNU/non-GNU ld that we prefer.
17721      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17722      *GNU* | *'with BFD'*)
17723	test "$with_gnu_ld" != no && break
17724	;;
17725      *)
17726	test "$with_gnu_ld" != yes && break
17727	;;
17728      esac
17729    fi
17730  done
17731  IFS="$lt_save_ifs"
17732else
17733  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17734fi
17735fi
17736
17737LD="$lt_cv_path_LD"
17738if test -n "$LD"; then
17739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17740$as_echo "$LD" >&6; }
17741else
17742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17743$as_echo "no" >&6; }
17744fi
17745test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17747$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17748if ${lt_cv_prog_gnu_ld+:} false; then :
17749  $as_echo_n "(cached) " >&6
17750else
17751  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17752case `$LD -v 2>&1 </dev/null` in
17753*GNU* | *'with BFD'*)
17754  lt_cv_prog_gnu_ld=yes
17755  ;;
17756*)
17757  lt_cv_prog_gnu_ld=no
17758  ;;
17759esac
17760fi
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17762$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17763with_gnu_ld=$lt_cv_prog_gnu_ld
17764
17765
17766
17767
17768
17769
17770
17771      # Check if GNU C++ uses GNU ld as the underlying linker, since the
17772      # archiving commands below assume that GNU ld is being used.
17773      if test "$with_gnu_ld" = yes; then
17774        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17775        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'
17776
17777        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17778        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17779
17780        # If archive_cmds runs LD, not CC, wlarc should be empty
17781        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17782        #     investigate it a little bit more. (MM)
17783        wlarc='${wl}'
17784
17785        # ancient GNU ld didn't support --whole-archive et. al.
17786        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17787	  $GREP 'no-whole-archive' > /dev/null; then
17788          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17789        else
17790          whole_archive_flag_spec_CXX=
17791        fi
17792      else
17793        with_gnu_ld=no
17794        wlarc=
17795
17796        # A generic and very simple default shared library creation
17797        # command for GNU C++ for the case where it uses the native
17798        # linker, instead of GNU ld.  If possible, this setting should
17799        # overridden to take advantage of the native linker features on
17800        # the platform it is being used on.
17801        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17802      fi
17803
17804      # Commands to make compiler produce verbose output that lists
17805      # what "hidden" libraries, object files and flags are used when
17806      # linking a shared library.
17807      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17808
17809    else
17810      GXX=no
17811      with_gnu_ld=no
17812      wlarc=
17813    fi
17814
17815    # PORTME: fill in a description of your system's C++ link characteristics
17816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17817$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17818    ld_shlibs_CXX=yes
17819    case $host_os in
17820      aix3*)
17821        # FIXME: insert proper C++ library support
17822        ld_shlibs_CXX=no
17823        ;;
17824      aix[4-9]*)
17825        if test "$host_cpu" = ia64; then
17826          # On IA64, the linker does run time linking by default, so we don't
17827          # have to do anything special.
17828          aix_use_runtimelinking=no
17829          exp_sym_flag='-Bexport'
17830          no_entry_flag=""
17831        else
17832          aix_use_runtimelinking=no
17833
17834          # Test if we are trying to use run time linking or normal
17835          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17836          # need to do runtime linking.
17837          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17838	    for ld_flag in $LDFLAGS; do
17839	      case $ld_flag in
17840	      *-brtl*)
17841	        aix_use_runtimelinking=yes
17842	        break
17843	        ;;
17844	      esac
17845	    done
17846	    ;;
17847          esac
17848
17849          exp_sym_flag='-bexport'
17850          no_entry_flag='-bnoentry'
17851        fi
17852
17853        # When large executables or shared objects are built, AIX ld can
17854        # have problems creating the table of contents.  If linking a library
17855        # or program results in "error TOC overflow" add -mminimal-toc to
17856        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17857        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17858
17859        archive_cmds_CXX=''
17860        hardcode_direct_CXX=yes
17861        hardcode_direct_absolute_CXX=yes
17862        hardcode_libdir_separator_CXX=':'
17863        link_all_deplibs_CXX=yes
17864        file_list_spec_CXX='${wl}-f,'
17865
17866        if test "$GXX" = yes; then
17867          case $host_os in aix4.[012]|aix4.[012].*)
17868          # We only want to do this on AIX 4.2 and lower, the check
17869          # below for broken collect2 doesn't work under 4.3+
17870	  collect2name=`${CC} -print-prog-name=collect2`
17871	  if test -f "$collect2name" &&
17872	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17873	  then
17874	    # We have reworked collect2
17875	    :
17876	  else
17877	    # We have old collect2
17878	    hardcode_direct_CXX=unsupported
17879	    # It fails to find uninstalled libraries when the uninstalled
17880	    # path is not listed in the libpath.  Setting hardcode_minus_L
17881	    # to unsupported forces relinking
17882	    hardcode_minus_L_CXX=yes
17883	    hardcode_libdir_flag_spec_CXX='-L$libdir'
17884	    hardcode_libdir_separator_CXX=
17885	  fi
17886          esac
17887          shared_flag='-shared'
17888	  if test "$aix_use_runtimelinking" = yes; then
17889	    shared_flag="$shared_flag "'${wl}-G'
17890	  fi
17891        else
17892          # not using gcc
17893          if test "$host_cpu" = ia64; then
17894	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17895	  # chokes on -Wl,-G. The following line is correct:
17896	  shared_flag='-G'
17897          else
17898	    if test "$aix_use_runtimelinking" = yes; then
17899	      shared_flag='${wl}-G'
17900	    else
17901	      shared_flag='${wl}-bM:SRE'
17902	    fi
17903          fi
17904        fi
17905
17906        export_dynamic_flag_spec_CXX='${wl}-bexpall'
17907        # It seems that -bexpall does not export symbols beginning with
17908        # underscore (_), so it is better to generate a list of symbols to
17909	# export.
17910        always_export_symbols_CXX=yes
17911        if test "$aix_use_runtimelinking" = yes; then
17912          # Warning - without using the other runtime loading flags (-brtl),
17913          # -berok will link without error, but may produce a broken library.
17914          allow_undefined_flag_CXX='-berok'
17915          # Determine the default libpath from the value encoded in an empty
17916          # executable.
17917          if test "${lt_cv_aix_libpath+set}" = set; then
17918  aix_libpath=$lt_cv_aix_libpath
17919else
17920  if ${lt_cv_aix_libpath__CXX+:} false; then :
17921  $as_echo_n "(cached) " >&6
17922else
17923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924/* end confdefs.h.  */
17925
17926int
17927main ()
17928{
17929
17930  ;
17931  return 0;
17932}
17933_ACEOF
17934if ac_fn_cxx_try_link "$LINENO"; then :
17935
17936  lt_aix_libpath_sed='
17937      /Import File Strings/,/^$/ {
17938	  /^0/ {
17939	      s/^0  *\([^ ]*\) *$/\1/
17940	      p
17941	  }
17942      }'
17943  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944  # Check for a 64-bit object if we didn't find anything.
17945  if test -z "$lt_cv_aix_libpath__CXX"; then
17946    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17947  fi
17948fi
17949rm -f core conftest.err conftest.$ac_objext \
17950    conftest$ac_exeext conftest.$ac_ext
17951  if test -z "$lt_cv_aix_libpath__CXX"; then
17952    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17953  fi
17954
17955fi
17956
17957  aix_libpath=$lt_cv_aix_libpath__CXX
17958fi
17959
17960          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17961
17962          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"
17963        else
17964          if test "$host_cpu" = ia64; then
17965	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17966	    allow_undefined_flag_CXX="-z nodefs"
17967	    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"
17968          else
17969	    # Determine the default libpath from the value encoded in an
17970	    # empty executable.
17971	    if test "${lt_cv_aix_libpath+set}" = set; then
17972  aix_libpath=$lt_cv_aix_libpath
17973else
17974  if ${lt_cv_aix_libpath__CXX+:} false; then :
17975  $as_echo_n "(cached) " >&6
17976else
17977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979
17980int
17981main ()
17982{
17983
17984  ;
17985  return 0;
17986}
17987_ACEOF
17988if ac_fn_cxx_try_link "$LINENO"; then :
17989
17990  lt_aix_libpath_sed='
17991      /Import File Strings/,/^$/ {
17992	  /^0/ {
17993	      s/^0  *\([^ ]*\) *$/\1/
17994	      p
17995	  }
17996      }'
17997  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998  # Check for a 64-bit object if we didn't find anything.
17999  if test -z "$lt_cv_aix_libpath__CXX"; then
18000    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001  fi
18002fi
18003rm -f core conftest.err conftest.$ac_objext \
18004    conftest$ac_exeext conftest.$ac_ext
18005  if test -z "$lt_cv_aix_libpath__CXX"; then
18006    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18007  fi
18008
18009fi
18010
18011  aix_libpath=$lt_cv_aix_libpath__CXX
18012fi
18013
18014	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18015	    # Warning - without using the other run time loading flags,
18016	    # -berok will link without error, but may produce a broken library.
18017	    no_undefined_flag_CXX=' ${wl}-bernotok'
18018	    allow_undefined_flag_CXX=' ${wl}-berok'
18019	    if test "$with_gnu_ld" = yes; then
18020	      # We only use this code for GNU lds that support --whole-archive.
18021	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18022	    else
18023	      # Exported symbols can be pulled into shared objects from archives
18024	      whole_archive_flag_spec_CXX='$convenience'
18025	    fi
18026	    archive_cmds_need_lc_CXX=yes
18027	    # This is similar to how AIX traditionally builds its shared
18028	    # libraries.
18029	    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'
18030          fi
18031        fi
18032        ;;
18033
18034      beos*)
18035	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18036	  allow_undefined_flag_CXX=unsupported
18037	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18038	  # support --undefined.  This deserves some investigation.  FIXME
18039	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18040	else
18041	  ld_shlibs_CXX=no
18042	fi
18043	;;
18044
18045      chorus*)
18046        case $cc_basename in
18047          *)
18048	  # FIXME: insert proper C++ library support
18049	  ld_shlibs_CXX=no
18050	  ;;
18051        esac
18052        ;;
18053
18054      cygwin* | mingw* | pw32* | cegcc*)
18055	case $GXX,$cc_basename in
18056	,cl* | no,cl*)
18057	  # Native MSVC
18058	  # hardcode_libdir_flag_spec is actually meaningless, as there is
18059	  # no search path for DLLs.
18060	  hardcode_libdir_flag_spec_CXX=' '
18061	  allow_undefined_flag_CXX=unsupported
18062	  always_export_symbols_CXX=yes
18063	  file_list_spec_CXX='@'
18064	  # Tell ltmain to make .lib files, not .a files.
18065	  libext=lib
18066	  # Tell ltmain to make .dll files, not .so files.
18067	  shrext_cmds=".dll"
18068	  # FIXME: Setting linknames here is a bad hack.
18069	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18070	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18071	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18072	    else
18073	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18074	    fi~
18075	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18076	    linknames='
18077	  # The linker will not automatically build a static lib if we build a DLL.
18078	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18079	  enable_shared_with_static_runtimes_CXX=yes
18080	  # Don't use ranlib
18081	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
18082	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18083	    lt_tool_outputfile="@TOOL_OUTPUT@"~
18084	    case $lt_outputfile in
18085	      *.exe|*.EXE) ;;
18086	      *)
18087		lt_outputfile="$lt_outputfile.exe"
18088		lt_tool_outputfile="$lt_tool_outputfile.exe"
18089		;;
18090	    esac~
18091	    func_to_tool_file "$lt_outputfile"~
18092	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18093	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18094	      $RM "$lt_outputfile.manifest";
18095	    fi'
18096	  ;;
18097	*)
18098	  # g++
18099	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18100	  # as there is no search path for DLLs.
18101	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18102	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18103	  allow_undefined_flag_CXX=unsupported
18104	  always_export_symbols_CXX=no
18105	  enable_shared_with_static_runtimes_CXX=yes
18106
18107	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18108	    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'
18109	    # If the export-symbols file already is a .def file (1st line
18110	    # is EXPORTS), use it as is; otherwise, prepend...
18111	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18112	      cp $export_symbols $output_objdir/$soname.def;
18113	    else
18114	      echo EXPORTS > $output_objdir/$soname.def;
18115	      cat $export_symbols >> $output_objdir/$soname.def;
18116	    fi~
18117	    $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'
18118	  else
18119	    ld_shlibs_CXX=no
18120	  fi
18121	  ;;
18122	esac
18123	;;
18124      darwin* | rhapsody*)
18125
18126
18127  archive_cmds_need_lc_CXX=no
18128  hardcode_direct_CXX=no
18129  hardcode_automatic_CXX=yes
18130  hardcode_shlibpath_var_CXX=unsupported
18131  if test "$lt_cv_ld_force_load" = "yes"; then
18132    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\"`'
18133
18134  else
18135    whole_archive_flag_spec_CXX=''
18136  fi
18137  link_all_deplibs_CXX=yes
18138  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18139  case $cc_basename in
18140     ifort*) _lt_dar_can_shared=yes ;;
18141     *) _lt_dar_can_shared=$GCC ;;
18142  esac
18143  if test "$_lt_dar_can_shared" = "yes"; then
18144    output_verbose_link_cmd=func_echo_all
18145    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}"
18146    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18147    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}"
18148    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}"
18149       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18150      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}"
18151      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}"
18152    fi
18153
18154  else
18155  ld_shlibs_CXX=no
18156  fi
18157
18158	;;
18159
18160      dgux*)
18161        case $cc_basename in
18162          ec++*)
18163	    # FIXME: insert proper C++ library support
18164	    ld_shlibs_CXX=no
18165	    ;;
18166          ghcx*)
18167	    # Green Hills C++ Compiler
18168	    # FIXME: insert proper C++ library support
18169	    ld_shlibs_CXX=no
18170	    ;;
18171          *)
18172	    # FIXME: insert proper C++ library support
18173	    ld_shlibs_CXX=no
18174	    ;;
18175        esac
18176        ;;
18177
18178      freebsd2.*)
18179        # C++ shared libraries reported to be fairly broken before
18180	# switch to ELF
18181        ld_shlibs_CXX=no
18182        ;;
18183
18184      freebsd-elf*)
18185        archive_cmds_need_lc_CXX=no
18186        ;;
18187
18188      freebsd* | dragonfly*)
18189        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18190        # conventions
18191        ld_shlibs_CXX=yes
18192        ;;
18193
18194      gnu*)
18195        ;;
18196
18197      haiku*)
18198        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199        link_all_deplibs_CXX=yes
18200        ;;
18201
18202      hpux9*)
18203        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18204        hardcode_libdir_separator_CXX=:
18205        export_dynamic_flag_spec_CXX='${wl}-E'
18206        hardcode_direct_CXX=yes
18207        hardcode_minus_L_CXX=yes # Not in the search PATH,
18208				             # but as the default
18209				             # location of the library.
18210
18211        case $cc_basename in
18212          CC*)
18213            # FIXME: insert proper C++ library support
18214            ld_shlibs_CXX=no
18215            ;;
18216          aCC*)
18217            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'
18218            # Commands to make compiler produce verbose output that lists
18219            # what "hidden" libraries, object files and flags are used when
18220            # linking a shared library.
18221            #
18222            # There doesn't appear to be a way to prevent this compiler from
18223            # explicitly linking system object files so we need to strip them
18224            # from the output so that they don't get included in the library
18225            # dependencies.
18226            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"'
18227            ;;
18228          *)
18229            if test "$GXX" = yes; then
18230              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'
18231            else
18232              # FIXME: insert proper C++ library support
18233              ld_shlibs_CXX=no
18234            fi
18235            ;;
18236        esac
18237        ;;
18238
18239      hpux10*|hpux11*)
18240        if test $with_gnu_ld = no; then
18241	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18242	  hardcode_libdir_separator_CXX=:
18243
18244          case $host_cpu in
18245            hppa*64*|ia64*)
18246              ;;
18247            *)
18248	      export_dynamic_flag_spec_CXX='${wl}-E'
18249              ;;
18250          esac
18251        fi
18252        case $host_cpu in
18253          hppa*64*|ia64*)
18254            hardcode_direct_CXX=no
18255            hardcode_shlibpath_var_CXX=no
18256            ;;
18257          *)
18258            hardcode_direct_CXX=yes
18259            hardcode_direct_absolute_CXX=yes
18260            hardcode_minus_L_CXX=yes # Not in the search PATH,
18261					         # but as the default
18262					         # location of the library.
18263            ;;
18264        esac
18265
18266        case $cc_basename in
18267          CC*)
18268	    # FIXME: insert proper C++ library support
18269	    ld_shlibs_CXX=no
18270	    ;;
18271          aCC*)
18272	    case $host_cpu in
18273	      hppa*64*)
18274	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18275	        ;;
18276	      ia64*)
18277	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18278	        ;;
18279	      *)
18280	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18281	        ;;
18282	    esac
18283	    # Commands to make compiler produce verbose output that lists
18284	    # what "hidden" libraries, object files and flags are used when
18285	    # linking a shared library.
18286	    #
18287	    # There doesn't appear to be a way to prevent this compiler from
18288	    # explicitly linking system object files so we need to strip them
18289	    # from the output so that they don't get included in the library
18290	    # dependencies.
18291	    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"'
18292	    ;;
18293          *)
18294	    if test "$GXX" = yes; then
18295	      if test $with_gnu_ld = no; then
18296	        case $host_cpu in
18297	          hppa*64*)
18298	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18299	            ;;
18300	          ia64*)
18301	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18302	            ;;
18303	          *)
18304	            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'
18305	            ;;
18306	        esac
18307	      fi
18308	    else
18309	      # FIXME: insert proper C++ library support
18310	      ld_shlibs_CXX=no
18311	    fi
18312	    ;;
18313        esac
18314        ;;
18315
18316      interix[3-9]*)
18317	hardcode_direct_CXX=no
18318	hardcode_shlibpath_var_CXX=no
18319	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18320	export_dynamic_flag_spec_CXX='${wl}-E'
18321	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18322	# Instead, shared libraries are loaded at an image base (0x10000000 by
18323	# default) and relocated if they conflict, which is a slow very memory
18324	# consuming and fragmenting process.  To avoid this, we pick a random,
18325	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18326	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18327	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'
18328	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'
18329	;;
18330      irix5* | irix6*)
18331        case $cc_basename in
18332          CC*)
18333	    # SGI C++
18334	    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'
18335
18336	    # Archives containing C++ object files must be created using
18337	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18338	    # necessary to make sure instantiated templates are included
18339	    # in the archive.
18340	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18341	    ;;
18342          *)
18343	    if test "$GXX" = yes; then
18344	      if test "$with_gnu_ld" = no; then
18345	        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'
18346	      else
18347	        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'
18348	      fi
18349	    fi
18350	    link_all_deplibs_CXX=yes
18351	    ;;
18352        esac
18353        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18354        hardcode_libdir_separator_CXX=:
18355        inherit_rpath_CXX=yes
18356        ;;
18357
18358      linux* | k*bsd*-gnu | kopensolaris*-gnu)
18359        case $cc_basename in
18360          KCC*)
18361	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18362
18363	    # KCC will only create a shared library if the output file
18364	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18365	    # to its proper name (with version) after linking.
18366	    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'
18367	    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'
18368	    # Commands to make compiler produce verbose output that lists
18369	    # what "hidden" libraries, object files and flags are used when
18370	    # linking a shared library.
18371	    #
18372	    # There doesn't appear to be a way to prevent this compiler from
18373	    # explicitly linking system object files so we need to strip them
18374	    # from the output so that they don't get included in the library
18375	    # dependencies.
18376	    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"'
18377
18378	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18379	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18380
18381	    # Archives containing C++ object files must be created using
18382	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18383	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18384	    ;;
18385	  icpc* | ecpc* )
18386	    # Intel C++
18387	    with_gnu_ld=yes
18388	    # version 8.0 and above of icpc choke on multiply defined symbols
18389	    # if we add $predep_objects and $postdep_objects, however 7.1 and
18390	    # earlier do not add the objects themselves.
18391	    case `$CC -V 2>&1` in
18392	      *"Version 7."*)
18393	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18394		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'
18395		;;
18396	      *)  # Version 8.0 or newer
18397	        tmp_idyn=
18398	        case $host_cpu in
18399		  ia64*) tmp_idyn=' -i_dynamic';;
18400		esac
18401	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18402		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'
18403		;;
18404	    esac
18405	    archive_cmds_need_lc_CXX=no
18406	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18407	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18408	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18409	    ;;
18410          pgCC* | pgcpp*)
18411            # Portland Group C++ compiler
18412	    case `$CC -V` in
18413	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18414	      prelink_cmds_CXX='tpldir=Template.dir~
18415		rm -rf $tpldir~
18416		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18417		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18418	      old_archive_cmds_CXX='tpldir=Template.dir~
18419		rm -rf $tpldir~
18420		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18421		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18422		$RANLIB $oldlib'
18423	      archive_cmds_CXX='tpldir=Template.dir~
18424		rm -rf $tpldir~
18425		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18426		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18427	      archive_expsym_cmds_CXX='tpldir=Template.dir~
18428		rm -rf $tpldir~
18429		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18430		$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'
18431	      ;;
18432	    *) # Version 6 and above use weak symbols
18433	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18434	      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'
18435	      ;;
18436	    esac
18437
18438	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18439	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18440	    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'
18441            ;;
18442	  cxx*)
18443	    # Compaq C++
18444	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18445	    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'
18446
18447	    runpath_var=LD_RUN_PATH
18448	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18449	    hardcode_libdir_separator_CXX=:
18450
18451	    # Commands to make compiler produce verbose output that lists
18452	    # what "hidden" libraries, object files and flags are used when
18453	    # linking a shared library.
18454	    #
18455	    # There doesn't appear to be a way to prevent this compiler from
18456	    # explicitly linking system object files so we need to strip them
18457	    # from the output so that they don't get included in the library
18458	    # dependencies.
18459	    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'
18460	    ;;
18461	  xl* | mpixl* | bgxl*)
18462	    # IBM XL 8.0 on PPC, with GNU ld
18463	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18464	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18465	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18466	    if test "x$supports_anon_versioning" = xyes; then
18467	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18468		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18469		echo "local: *; };" >> $output_objdir/$libname.ver~
18470		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18471	    fi
18472	    ;;
18473	  *)
18474	    case `$CC -V 2>&1 | sed 5q` in
18475	    *Sun\ C*)
18476	      # Sun C++ 5.9
18477	      no_undefined_flag_CXX=' -zdefs'
18478	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18479	      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'
18480	      hardcode_libdir_flag_spec_CXX='-R$libdir'
18481	      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'
18482	      compiler_needs_object_CXX=yes
18483
18484	      # Not sure whether something based on
18485	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18486	      # would be better.
18487	      output_verbose_link_cmd='func_echo_all'
18488
18489	      # Archives containing C++ object files must be created using
18490	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18491	      # necessary to make sure instantiated templates are included
18492	      # in the archive.
18493	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18494	      ;;
18495	    esac
18496	    ;;
18497	esac
18498	;;
18499
18500      lynxos*)
18501        # FIXME: insert proper C++ library support
18502	ld_shlibs_CXX=no
18503	;;
18504
18505      m88k*)
18506        # FIXME: insert proper C++ library support
18507        ld_shlibs_CXX=no
18508	;;
18509
18510      mvs*)
18511        case $cc_basename in
18512          cxx*)
18513	    # FIXME: insert proper C++ library support
18514	    ld_shlibs_CXX=no
18515	    ;;
18516	  *)
18517	    # FIXME: insert proper C++ library support
18518	    ld_shlibs_CXX=no
18519	    ;;
18520	esac
18521	;;
18522
18523      netbsd*)
18524        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18525	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18526	  wlarc=
18527	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18528	  hardcode_direct_CXX=yes
18529	  hardcode_shlibpath_var_CXX=no
18530	fi
18531	# Workaround some broken pre-1.5 toolchains
18532	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18533	;;
18534
18535      *nto* | *qnx*)
18536        ld_shlibs_CXX=yes
18537	;;
18538
18539      openbsd2*)
18540        # C++ shared libraries are fairly broken
18541	ld_shlibs_CXX=no
18542	;;
18543
18544      openbsd*)
18545	if test -f /usr/libexec/ld.so; then
18546	  hardcode_direct_CXX=yes
18547	  hardcode_shlibpath_var_CXX=no
18548	  hardcode_direct_absolute_CXX=yes
18549	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18550	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18551	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18552	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18553	    export_dynamic_flag_spec_CXX='${wl}-E'
18554	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18555	  fi
18556	  output_verbose_link_cmd=func_echo_all
18557	else
18558	  ld_shlibs_CXX=no
18559	fi
18560	;;
18561
18562      osf3* | osf4* | osf5*)
18563        case $cc_basename in
18564          KCC*)
18565	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18566
18567	    # KCC will only create a shared library if the output file
18568	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18569	    # to its proper name (with version) after linking.
18570	    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'
18571
18572	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18573	    hardcode_libdir_separator_CXX=:
18574
18575	    # Archives containing C++ object files must be created using
18576	    # the KAI C++ compiler.
18577	    case $host in
18578	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18579	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18580	    esac
18581	    ;;
18582          RCC*)
18583	    # Rational C++ 2.4.1
18584	    # FIXME: insert proper C++ library support
18585	    ld_shlibs_CXX=no
18586	    ;;
18587          cxx*)
18588	    case $host in
18589	      osf3*)
18590	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18591	        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'
18592	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18593		;;
18594	      *)
18595	        allow_undefined_flag_CXX=' -expect_unresolved \*'
18596	        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'
18597	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18598	          echo "-hidden">> $lib.exp~
18599	          $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~
18600	          $RM $lib.exp'
18601	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18602		;;
18603	    esac
18604
18605	    hardcode_libdir_separator_CXX=:
18606
18607	    # Commands to make compiler produce verbose output that lists
18608	    # what "hidden" libraries, object files and flags are used when
18609	    # linking a shared library.
18610	    #
18611	    # There doesn't appear to be a way to prevent this compiler from
18612	    # explicitly linking system object files so we need to strip them
18613	    # from the output so that they don't get included in the library
18614	    # dependencies.
18615	    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"'
18616	    ;;
18617	  *)
18618	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18619	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18620	      case $host in
18621	        osf3*)
18622	          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'
18623		  ;;
18624	        *)
18625	          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'
18626		  ;;
18627	      esac
18628
18629	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18630	      hardcode_libdir_separator_CXX=:
18631
18632	      # Commands to make compiler produce verbose output that lists
18633	      # what "hidden" libraries, object files and flags are used when
18634	      # linking a shared library.
18635	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18636
18637	    else
18638	      # FIXME: insert proper C++ library support
18639	      ld_shlibs_CXX=no
18640	    fi
18641	    ;;
18642        esac
18643        ;;
18644
18645      psos*)
18646        # FIXME: insert proper C++ library support
18647        ld_shlibs_CXX=no
18648        ;;
18649
18650      sunos4*)
18651        case $cc_basename in
18652          CC*)
18653	    # Sun C++ 4.x
18654	    # FIXME: insert proper C++ library support
18655	    ld_shlibs_CXX=no
18656	    ;;
18657          lcc*)
18658	    # Lucid
18659	    # FIXME: insert proper C++ library support
18660	    ld_shlibs_CXX=no
18661	    ;;
18662          *)
18663	    # FIXME: insert proper C++ library support
18664	    ld_shlibs_CXX=no
18665	    ;;
18666        esac
18667        ;;
18668
18669      solaris*)
18670        case $cc_basename in
18671          CC* | sunCC*)
18672	    # Sun C++ 4.2, 5.x and Centerline C++
18673            archive_cmds_need_lc_CXX=yes
18674	    no_undefined_flag_CXX=' -zdefs'
18675	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18676	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18677	      $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'
18678
18679	    hardcode_libdir_flag_spec_CXX='-R$libdir'
18680	    hardcode_shlibpath_var_CXX=no
18681	    case $host_os in
18682	      solaris2.[0-5] | solaris2.[0-5].*) ;;
18683	      *)
18684		# The compiler driver will combine and reorder linker options,
18685		# but understands `-z linker_flag'.
18686	        # Supported since Solaris 2.6 (maybe 2.5.1?)
18687		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18688	        ;;
18689	    esac
18690	    link_all_deplibs_CXX=yes
18691
18692	    output_verbose_link_cmd='func_echo_all'
18693
18694	    # Archives containing C++ object files must be created using
18695	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18696	    # necessary to make sure instantiated templates are included
18697	    # in the archive.
18698	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18699	    ;;
18700          gcx*)
18701	    # Green Hills C++ Compiler
18702	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18703
18704	    # The C++ compiler must be used to create the archive.
18705	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18706	    ;;
18707          *)
18708	    # GNU C++ compiler with Solaris linker
18709	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18710	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18711	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18712	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18713	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18714		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18715
18716	        # Commands to make compiler produce verbose output that lists
18717	        # what "hidden" libraries, object files and flags are used when
18718	        # linking a shared library.
18719	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18720	      else
18721	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
18722	        # platform.
18723	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18724	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18725		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18726
18727	        # Commands to make compiler produce verbose output that lists
18728	        # what "hidden" libraries, object files and flags are used when
18729	        # linking a shared library.
18730	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18731	      fi
18732
18733	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18734	      case $host_os in
18735		solaris2.[0-5] | solaris2.[0-5].*) ;;
18736		*)
18737		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18738		  ;;
18739	      esac
18740	    fi
18741	    ;;
18742        esac
18743        ;;
18744
18745    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18746      no_undefined_flag_CXX='${wl}-z,text'
18747      archive_cmds_need_lc_CXX=no
18748      hardcode_shlibpath_var_CXX=no
18749      runpath_var='LD_RUN_PATH'
18750
18751      case $cc_basename in
18752        CC*)
18753	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18754	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755	  ;;
18756	*)
18757	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18758	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759	  ;;
18760      esac
18761      ;;
18762
18763      sysv5* | sco3.2v5* | sco5v6*)
18764	# Note: We can NOT use -z defs as we might desire, because we do not
18765	# link with -lc, and that would cause any symbols used from libc to
18766	# always be unresolved, which means just about no library would
18767	# ever link correctly.  If we're not using GNU ld we use -z text
18768	# though, which does catch some bad symbols but isn't as heavy-handed
18769	# as -z defs.
18770	no_undefined_flag_CXX='${wl}-z,text'
18771	allow_undefined_flag_CXX='${wl}-z,nodefs'
18772	archive_cmds_need_lc_CXX=no
18773	hardcode_shlibpath_var_CXX=no
18774	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18775	hardcode_libdir_separator_CXX=':'
18776	link_all_deplibs_CXX=yes
18777	export_dynamic_flag_spec_CXX='${wl}-Bexport'
18778	runpath_var='LD_RUN_PATH'
18779
18780	case $cc_basename in
18781          CC*)
18782	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18783	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18784	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18785	      '"$old_archive_cmds_CXX"
18786	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18787	      '"$reload_cmds_CXX"
18788	    ;;
18789	  *)
18790	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18792	    ;;
18793	esac
18794      ;;
18795
18796      tandem*)
18797        case $cc_basename in
18798          NCC*)
18799	    # NonStop-UX NCC 3.20
18800	    # FIXME: insert proper C++ library support
18801	    ld_shlibs_CXX=no
18802	    ;;
18803          *)
18804	    # FIXME: insert proper C++ library support
18805	    ld_shlibs_CXX=no
18806	    ;;
18807        esac
18808        ;;
18809
18810      vxworks*)
18811        # FIXME: insert proper C++ library support
18812        ld_shlibs_CXX=no
18813        ;;
18814
18815      *)
18816        # FIXME: insert proper C++ library support
18817        ld_shlibs_CXX=no
18818        ;;
18819    esac
18820
18821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18822$as_echo "$ld_shlibs_CXX" >&6; }
18823    test "$ld_shlibs_CXX" = no && can_build_shared=no
18824
18825    GCC_CXX="$GXX"
18826    LD_CXX="$LD"
18827
18828    ## CAVEAT EMPTOR:
18829    ## There is no encapsulation within the following macros, do not change
18830    ## the running order or otherwise move them around unless you know exactly
18831    ## what you are doing...
18832    # Dependencies to place before and after the object being linked:
18833predep_objects_CXX=
18834postdep_objects_CXX=
18835predeps_CXX=
18836postdeps_CXX=
18837compiler_lib_search_path_CXX=
18838
18839cat > conftest.$ac_ext <<_LT_EOF
18840class Foo
18841{
18842public:
18843  Foo (void) { a = 0; }
18844private:
18845  int a;
18846};
18847_LT_EOF
18848
18849
18850_lt_libdeps_save_CFLAGS=$CFLAGS
18851case "$CC $CFLAGS " in #(
18852*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18853*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18854*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18855esac
18856
18857if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18858  (eval $ac_compile) 2>&5
18859  ac_status=$?
18860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18861  test $ac_status = 0; }; then
18862  # Parse the compiler output and extract the necessary
18863  # objects, libraries and library flags.
18864
18865  # Sentinel used to keep track of whether or not we are before
18866  # the conftest object file.
18867  pre_test_object_deps_done=no
18868
18869  for p in `eval "$output_verbose_link_cmd"`; do
18870    case ${prev}${p} in
18871
18872    -L* | -R* | -l*)
18873       # Some compilers place space between "-{L,R}" and the path.
18874       # Remove the space.
18875       if test $p = "-L" ||
18876          test $p = "-R"; then
18877	 prev=$p
18878	 continue
18879       fi
18880
18881       # Expand the sysroot to ease extracting the directories later.
18882       if test -z "$prev"; then
18883         case $p in
18884         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18885         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18886         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18887         esac
18888       fi
18889       case $p in
18890       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18891       esac
18892       if test "$pre_test_object_deps_done" = no; then
18893	 case ${prev} in
18894	 -L | -R)
18895	   # Internal compiler library paths should come after those
18896	   # provided the user.  The postdeps already come after the
18897	   # user supplied libs so there is no need to process them.
18898	   if test -z "$compiler_lib_search_path_CXX"; then
18899	     compiler_lib_search_path_CXX="${prev}${p}"
18900	   else
18901	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18902	   fi
18903	   ;;
18904	 # The "-l" case would never come before the object being
18905	 # linked, so don't bother handling this case.
18906	 esac
18907       else
18908	 if test -z "$postdeps_CXX"; then
18909	   postdeps_CXX="${prev}${p}"
18910	 else
18911	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18912	 fi
18913       fi
18914       prev=
18915       ;;
18916
18917    *.lto.$objext) ;; # Ignore GCC LTO objects
18918    *.$objext)
18919       # This assumes that the test object file only shows up
18920       # once in the compiler output.
18921       if test "$p" = "conftest.$objext"; then
18922	 pre_test_object_deps_done=yes
18923	 continue
18924       fi
18925
18926       if test "$pre_test_object_deps_done" = no; then
18927	 if test -z "$predep_objects_CXX"; then
18928	   predep_objects_CXX="$p"
18929	 else
18930	   predep_objects_CXX="$predep_objects_CXX $p"
18931	 fi
18932       else
18933	 if test -z "$postdep_objects_CXX"; then
18934	   postdep_objects_CXX="$p"
18935	 else
18936	   postdep_objects_CXX="$postdep_objects_CXX $p"
18937	 fi
18938       fi
18939       ;;
18940
18941    *) ;; # Ignore the rest.
18942
18943    esac
18944  done
18945
18946  # Clean up.
18947  rm -f a.out a.exe
18948else
18949  echo "libtool.m4: error: problem compiling CXX test program"
18950fi
18951
18952$RM -f confest.$objext
18953CFLAGS=$_lt_libdeps_save_CFLAGS
18954
18955# PORTME: override above test on systems where it is broken
18956case $host_os in
18957interix[3-9]*)
18958  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18959  # hack all around it, let's just trust "g++" to DTRT.
18960  predep_objects_CXX=
18961  postdep_objects_CXX=
18962  postdeps_CXX=
18963  ;;
18964
18965linux*)
18966  case `$CC -V 2>&1 | sed 5q` in
18967  *Sun\ C*)
18968    # Sun C++ 5.9
18969
18970    # The more standards-conforming stlport4 library is
18971    # incompatible with the Cstd library. Avoid specifying
18972    # it if it's in CXXFLAGS. Ignore libCrun as
18973    # -library=stlport4 depends on it.
18974    case " $CXX $CXXFLAGS " in
18975    *" -library=stlport4 "*)
18976      solaris_use_stlport4=yes
18977      ;;
18978    esac
18979
18980    if test "$solaris_use_stlport4" != yes; then
18981      postdeps_CXX='-library=Cstd -library=Crun'
18982    fi
18983    ;;
18984  esac
18985  ;;
18986
18987solaris*)
18988  case $cc_basename in
18989  CC* | sunCC*)
18990    # The more standards-conforming stlport4 library is
18991    # incompatible with the Cstd library. Avoid specifying
18992    # it if it's in CXXFLAGS. Ignore libCrun as
18993    # -library=stlport4 depends on it.
18994    case " $CXX $CXXFLAGS " in
18995    *" -library=stlport4 "*)
18996      solaris_use_stlport4=yes
18997      ;;
18998    esac
18999
19000    # Adding this requires a known-good setup of shared libraries for
19001    # Sun compiler versions before 5.6, else PIC objects from an old
19002    # archive will be linked into the output, leading to subtle bugs.
19003    if test "$solaris_use_stlport4" != yes; then
19004      postdeps_CXX='-library=Cstd -library=Crun'
19005    fi
19006    ;;
19007  esac
19008  ;;
19009esac
19010
19011
19012case " $postdeps_CXX " in
19013*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19014esac
19015 compiler_lib_search_dirs_CXX=
19016if test -n "${compiler_lib_search_path_CXX}"; then
19017 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19018fi
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050    lt_prog_compiler_wl_CXX=
19051lt_prog_compiler_pic_CXX=
19052lt_prog_compiler_static_CXX=
19053
19054
19055  # C++ specific cases for pic, static, wl, etc.
19056  if test "$GXX" = yes; then
19057    lt_prog_compiler_wl_CXX='-Wl,'
19058    lt_prog_compiler_static_CXX='-static'
19059
19060    case $host_os in
19061    aix*)
19062      # All AIX code is PIC.
19063      if test "$host_cpu" = ia64; then
19064	# AIX 5 now supports IA64 processor
19065	lt_prog_compiler_static_CXX='-Bstatic'
19066      fi
19067      ;;
19068
19069    amigaos*)
19070      case $host_cpu in
19071      powerpc)
19072            # see comment about AmigaOS4 .so support
19073            lt_prog_compiler_pic_CXX='-fPIC'
19074        ;;
19075      m68k)
19076            # FIXME: we need at least 68020 code to build shared libraries, but
19077            # adding the `-m68020' flag to GCC prevents building anything better,
19078            # like `-m68040'.
19079            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19080        ;;
19081      esac
19082      ;;
19083
19084    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19085      # PIC is the default for these OSes.
19086      ;;
19087    mingw* | cygwin* | os2* | pw32* | cegcc*)
19088      # This hack is so that the source file can tell whether it is being
19089      # built for inclusion in a dll (and should export symbols for example).
19090      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19091      # (--disable-auto-import) libraries
19092      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19093      ;;
19094    darwin* | rhapsody*)
19095      # PIC is the default on this platform
19096      # Common symbols not allowed in MH_DYLIB files
19097      lt_prog_compiler_pic_CXX='-fno-common'
19098      ;;
19099    *djgpp*)
19100      # DJGPP does not support shared libraries at all
19101      lt_prog_compiler_pic_CXX=
19102      ;;
19103    haiku*)
19104      # PIC is the default for Haiku.
19105      # The "-static" flag exists, but is broken.
19106      lt_prog_compiler_static_CXX=
19107      ;;
19108    interix[3-9]*)
19109      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19110      # Instead, we relocate shared libraries at runtime.
19111      ;;
19112    sysv4*MP*)
19113      if test -d /usr/nec; then
19114	lt_prog_compiler_pic_CXX=-Kconform_pic
19115      fi
19116      ;;
19117    hpux*)
19118      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19119      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19120      # sets the default TLS model and affects inlining.
19121      case $host_cpu in
19122      hppa*64*)
19123	;;
19124      *)
19125	lt_prog_compiler_pic_CXX='-fPIC'
19126	;;
19127      esac
19128      ;;
19129    *qnx* | *nto*)
19130      # QNX uses GNU C++, but need to define -shared option too, otherwise
19131      # it will coredump.
19132      lt_prog_compiler_pic_CXX='-fPIC -shared'
19133      ;;
19134    *)
19135      lt_prog_compiler_pic_CXX='-fPIC'
19136      ;;
19137    esac
19138  else
19139    case $host_os in
19140      aix[4-9]*)
19141	# All AIX code is PIC.
19142	if test "$host_cpu" = ia64; then
19143	  # AIX 5 now supports IA64 processor
19144	  lt_prog_compiler_static_CXX='-Bstatic'
19145	else
19146	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19147	fi
19148	;;
19149      chorus*)
19150	case $cc_basename in
19151	cxch68*)
19152	  # Green Hills C++ Compiler
19153	  # _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"
19154	  ;;
19155	esac
19156	;;
19157      mingw* | cygwin* | os2* | pw32* | cegcc*)
19158	# This hack is so that the source file can tell whether it is being
19159	# built for inclusion in a dll (and should export symbols for example).
19160	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19161	;;
19162      dgux*)
19163	case $cc_basename in
19164	  ec++*)
19165	    lt_prog_compiler_pic_CXX='-KPIC'
19166	    ;;
19167	  ghcx*)
19168	    # Green Hills C++ Compiler
19169	    lt_prog_compiler_pic_CXX='-pic'
19170	    ;;
19171	  *)
19172	    ;;
19173	esac
19174	;;
19175      freebsd* | dragonfly*)
19176	# FreeBSD uses GNU C++
19177	;;
19178      hpux9* | hpux10* | hpux11*)
19179	case $cc_basename in
19180	  CC*)
19181	    lt_prog_compiler_wl_CXX='-Wl,'
19182	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19183	    if test "$host_cpu" != ia64; then
19184	      lt_prog_compiler_pic_CXX='+Z'
19185	    fi
19186	    ;;
19187	  aCC*)
19188	    lt_prog_compiler_wl_CXX='-Wl,'
19189	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19190	    case $host_cpu in
19191	    hppa*64*|ia64*)
19192	      # +Z the default
19193	      ;;
19194	    *)
19195	      lt_prog_compiler_pic_CXX='+Z'
19196	      ;;
19197	    esac
19198	    ;;
19199	  *)
19200	    ;;
19201	esac
19202	;;
19203      interix*)
19204	# This is c89, which is MS Visual C++ (no shared libs)
19205	# Anyone wants to do a port?
19206	;;
19207      irix5* | irix6* | nonstopux*)
19208	case $cc_basename in
19209	  CC*)
19210	    lt_prog_compiler_wl_CXX='-Wl,'
19211	    lt_prog_compiler_static_CXX='-non_shared'
19212	    # CC pic flag -KPIC is the default.
19213	    ;;
19214	  *)
19215	    ;;
19216	esac
19217	;;
19218      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19219	case $cc_basename in
19220	  KCC*)
19221	    # KAI C++ Compiler
19222	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19223	    lt_prog_compiler_pic_CXX='-fPIC'
19224	    ;;
19225	  ecpc* )
19226	    # old Intel C++ for x86_64 which still supported -KPIC.
19227	    lt_prog_compiler_wl_CXX='-Wl,'
19228	    lt_prog_compiler_pic_CXX='-KPIC'
19229	    lt_prog_compiler_static_CXX='-static'
19230	    ;;
19231	  icpc* )
19232	    # Intel C++, used to be incompatible with GCC.
19233	    # ICC 10 doesn't accept -KPIC any more.
19234	    lt_prog_compiler_wl_CXX='-Wl,'
19235	    lt_prog_compiler_pic_CXX='-fPIC'
19236	    lt_prog_compiler_static_CXX='-static'
19237	    ;;
19238	  pgCC* | pgcpp*)
19239	    # Portland Group C++ compiler
19240	    lt_prog_compiler_wl_CXX='-Wl,'
19241	    lt_prog_compiler_pic_CXX='-fpic'
19242	    lt_prog_compiler_static_CXX='-Bstatic'
19243	    ;;
19244	  cxx*)
19245	    # Compaq C++
19246	    # Make sure the PIC flag is empty.  It appears that all Alpha
19247	    # Linux and Compaq Tru64 Unix objects are PIC.
19248	    lt_prog_compiler_pic_CXX=
19249	    lt_prog_compiler_static_CXX='-non_shared'
19250	    ;;
19251	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19252	    # IBM XL 8.0, 9.0 on PPC and BlueGene
19253	    lt_prog_compiler_wl_CXX='-Wl,'
19254	    lt_prog_compiler_pic_CXX='-qpic'
19255	    lt_prog_compiler_static_CXX='-qstaticlink'
19256	    ;;
19257	  *)
19258	    case `$CC -V 2>&1 | sed 5q` in
19259	    *Sun\ C*)
19260	      # Sun C++ 5.9
19261	      lt_prog_compiler_pic_CXX='-KPIC'
19262	      lt_prog_compiler_static_CXX='-Bstatic'
19263	      lt_prog_compiler_wl_CXX='-Qoption ld '
19264	      ;;
19265	    esac
19266	    ;;
19267	esac
19268	;;
19269      lynxos*)
19270	;;
19271      m88k*)
19272	;;
19273      mvs*)
19274	case $cc_basename in
19275	  cxx*)
19276	    lt_prog_compiler_pic_CXX='-W c,exportall'
19277	    ;;
19278	  *)
19279	    ;;
19280	esac
19281	;;
19282      netbsd*)
19283	;;
19284      *qnx* | *nto*)
19285        # QNX uses GNU C++, but need to define -shared option too, otherwise
19286        # it will coredump.
19287        lt_prog_compiler_pic_CXX='-fPIC -shared'
19288        ;;
19289      osf3* | osf4* | osf5*)
19290	case $cc_basename in
19291	  KCC*)
19292	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19293	    ;;
19294	  RCC*)
19295	    # Rational C++ 2.4.1
19296	    lt_prog_compiler_pic_CXX='-pic'
19297	    ;;
19298	  cxx*)
19299	    # Digital/Compaq C++
19300	    lt_prog_compiler_wl_CXX='-Wl,'
19301	    # Make sure the PIC flag is empty.  It appears that all Alpha
19302	    # Linux and Compaq Tru64 Unix objects are PIC.
19303	    lt_prog_compiler_pic_CXX=
19304	    lt_prog_compiler_static_CXX='-non_shared'
19305	    ;;
19306	  *)
19307	    ;;
19308	esac
19309	;;
19310      psos*)
19311	;;
19312      solaris*)
19313	case $cc_basename in
19314	  CC* | sunCC*)
19315	    # Sun C++ 4.2, 5.x and Centerline C++
19316	    lt_prog_compiler_pic_CXX='-KPIC'
19317	    lt_prog_compiler_static_CXX='-Bstatic'
19318	    lt_prog_compiler_wl_CXX='-Qoption ld '
19319	    ;;
19320	  gcx*)
19321	    # Green Hills C++ Compiler
19322	    lt_prog_compiler_pic_CXX='-PIC'
19323	    ;;
19324	  *)
19325	    ;;
19326	esac
19327	;;
19328      sunos4*)
19329	case $cc_basename in
19330	  CC*)
19331	    # Sun C++ 4.x
19332	    lt_prog_compiler_pic_CXX='-pic'
19333	    lt_prog_compiler_static_CXX='-Bstatic'
19334	    ;;
19335	  lcc*)
19336	    # Lucid
19337	    lt_prog_compiler_pic_CXX='-pic'
19338	    ;;
19339	  *)
19340	    ;;
19341	esac
19342	;;
19343      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19344	case $cc_basename in
19345	  CC*)
19346	    lt_prog_compiler_wl_CXX='-Wl,'
19347	    lt_prog_compiler_pic_CXX='-KPIC'
19348	    lt_prog_compiler_static_CXX='-Bstatic'
19349	    ;;
19350	esac
19351	;;
19352      tandem*)
19353	case $cc_basename in
19354	  NCC*)
19355	    # NonStop-UX NCC 3.20
19356	    lt_prog_compiler_pic_CXX='-KPIC'
19357	    ;;
19358	  *)
19359	    ;;
19360	esac
19361	;;
19362      vxworks*)
19363	;;
19364      *)
19365	lt_prog_compiler_can_build_shared_CXX=no
19366	;;
19367    esac
19368  fi
19369
19370case $host_os in
19371  # For platforms which do not support PIC, -DPIC is meaningless:
19372  *djgpp*)
19373    lt_prog_compiler_pic_CXX=
19374    ;;
19375  *)
19376    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19377    ;;
19378esac
19379
19380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19381$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19382if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19383  $as_echo_n "(cached) " >&6
19384else
19385  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19386fi
19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19388$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19389lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19390
19391#
19392# Check to make sure the PIC flag actually works.
19393#
19394if test -n "$lt_prog_compiler_pic_CXX"; then
19395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19396$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19397if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
19398  $as_echo_n "(cached) " >&6
19399else
19400  lt_cv_prog_compiler_pic_works_CXX=no
19401   ac_outfile=conftest.$ac_objext
19402   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19403   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19404   # Insert the option either (1) after the last *FLAGS variable, or
19405   # (2) before a word containing "conftest.", or (3) at the end.
19406   # Note that $ac_compile itself does not contain backslashes and begins
19407   # with a dollar sign (not a hyphen), so the echo should work correctly.
19408   # The option is referenced via a variable to avoid confusing sed.
19409   lt_compile=`echo "$ac_compile" | $SED \
19410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19412   -e 's:$: $lt_compiler_flag:'`
19413   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19414   (eval "$lt_compile" 2>conftest.err)
19415   ac_status=$?
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   if (exit $ac_status) && test -s "$ac_outfile"; then
19419     # The compiler can only warn and ignore the option if not recognized
19420     # So say no if there are warnings other than the usual output.
19421     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19422     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19423     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19424       lt_cv_prog_compiler_pic_works_CXX=yes
19425     fi
19426   fi
19427   $RM conftest*
19428
19429fi
19430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19431$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19432
19433if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19434    case $lt_prog_compiler_pic_CXX in
19435     "" | " "*) ;;
19436     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19437     esac
19438else
19439    lt_prog_compiler_pic_CXX=
19440     lt_prog_compiler_can_build_shared_CXX=no
19441fi
19442
19443fi
19444
19445
19446
19447
19448
19449#
19450# Check to make sure the static flag actually works.
19451#
19452wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19454$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19455if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
19456  $as_echo_n "(cached) " >&6
19457else
19458  lt_cv_prog_compiler_static_works_CXX=no
19459   save_LDFLAGS="$LDFLAGS"
19460   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19461   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19462   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19463     # The linker can only warn and ignore the option if not recognized
19464     # So say no if there are warnings
19465     if test -s conftest.err; then
19466       # Append any errors to the config.log.
19467       cat conftest.err 1>&5
19468       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19469       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19470       if diff conftest.exp conftest.er2 >/dev/null; then
19471         lt_cv_prog_compiler_static_works_CXX=yes
19472       fi
19473     else
19474       lt_cv_prog_compiler_static_works_CXX=yes
19475     fi
19476   fi
19477   $RM -r conftest*
19478   LDFLAGS="$save_LDFLAGS"
19479
19480fi
19481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19482$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19483
19484if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19485    :
19486else
19487    lt_prog_compiler_static_CXX=
19488fi
19489
19490
19491
19492
19493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19494$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19495if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19496  $as_echo_n "(cached) " >&6
19497else
19498  lt_cv_prog_compiler_c_o_CXX=no
19499   $RM -r conftest 2>/dev/null
19500   mkdir conftest
19501   cd conftest
19502   mkdir out
19503   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19504
19505   lt_compiler_flag="-o out/conftest2.$ac_objext"
19506   # Insert the option either (1) after the last *FLAGS variable, or
19507   # (2) before a word containing "conftest.", or (3) at the end.
19508   # Note that $ac_compile itself does not contain backslashes and begins
19509   # with a dollar sign (not a hyphen), so the echo should work correctly.
19510   lt_compile=`echo "$ac_compile" | $SED \
19511   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19512   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19513   -e 's:$: $lt_compiler_flag:'`
19514   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19515   (eval "$lt_compile" 2>out/conftest.err)
19516   ac_status=$?
19517   cat out/conftest.err >&5
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19520   then
19521     # The compiler can only warn and ignore the option if not recognized
19522     # So say no if there are warnings
19523     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19524     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19525     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19526       lt_cv_prog_compiler_c_o_CXX=yes
19527     fi
19528   fi
19529   chmod u+w . 2>&5
19530   $RM conftest*
19531   # SGI C++ compiler will create directory out/ii_files/ for
19532   # template instantiation
19533   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19534   $RM out/* && rmdir out
19535   cd ..
19536   $RM -r conftest
19537   $RM conftest*
19538
19539fi
19540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19541$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19542
19543
19544
19545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19546$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19547if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19548  $as_echo_n "(cached) " >&6
19549else
19550  lt_cv_prog_compiler_c_o_CXX=no
19551   $RM -r conftest 2>/dev/null
19552   mkdir conftest
19553   cd conftest
19554   mkdir out
19555   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19556
19557   lt_compiler_flag="-o out/conftest2.$ac_objext"
19558   # Insert the option either (1) after the last *FLAGS variable, or
19559   # (2) before a word containing "conftest.", or (3) at the end.
19560   # Note that $ac_compile itself does not contain backslashes and begins
19561   # with a dollar sign (not a hyphen), so the echo should work correctly.
19562   lt_compile=`echo "$ac_compile" | $SED \
19563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19565   -e 's:$: $lt_compiler_flag:'`
19566   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19567   (eval "$lt_compile" 2>out/conftest.err)
19568   ac_status=$?
19569   cat out/conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19572   then
19573     # The compiler can only warn and ignore the option if not recognized
19574     # So say no if there are warnings
19575     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19576     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19577     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19578       lt_cv_prog_compiler_c_o_CXX=yes
19579     fi
19580   fi
19581   chmod u+w . 2>&5
19582   $RM conftest*
19583   # SGI C++ compiler will create directory out/ii_files/ for
19584   # template instantiation
19585   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19586   $RM out/* && rmdir out
19587   cd ..
19588   $RM -r conftest
19589   $RM conftest*
19590
19591fi
19592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19593$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19594
19595
19596
19597
19598hard_links="nottested"
19599if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19600  # do not overwrite the value of need_locks provided by the user
19601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19602$as_echo_n "checking if we can lock with hard links... " >&6; }
19603  hard_links=yes
19604  $RM conftest*
19605  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19606  touch conftest.a
19607  ln conftest.a conftest.b 2>&5 || hard_links=no
19608  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19610$as_echo "$hard_links" >&6; }
19611  if test "$hard_links" = no; then
19612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19613$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19614    need_locks=warn
19615  fi
19616else
19617  need_locks=no
19618fi
19619
19620
19621
19622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19623$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19624
19625  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19626  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19627  case $host_os in
19628  aix[4-9]*)
19629    # If we're using GNU nm, then we don't want the "-C" option.
19630    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19631    # Also, AIX nm treats weak defined symbols like other global defined
19632    # symbols, whereas GNU nm marks them as "W".
19633    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19634      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'
19635    else
19636      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'
19637    fi
19638    ;;
19639  pw32*)
19640    export_symbols_cmds_CXX="$ltdll_cmds"
19641    ;;
19642  cygwin* | mingw* | cegcc*)
19643    case $cc_basename in
19644    cl*)
19645      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19646      ;;
19647    *)
19648      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'
19649      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19650      ;;
19651    esac
19652    ;;
19653  *)
19654    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19655    ;;
19656  esac
19657
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19659$as_echo "$ld_shlibs_CXX" >&6; }
19660test "$ld_shlibs_CXX" = no && can_build_shared=no
19661
19662with_gnu_ld_CXX=$with_gnu_ld
19663
19664
19665
19666
19667
19668
19669#
19670# Do we need to explicitly link libc?
19671#
19672case "x$archive_cmds_need_lc_CXX" in
19673x|xyes)
19674  # Assume -lc should be added
19675  archive_cmds_need_lc_CXX=yes
19676
19677  if test "$enable_shared" = yes && test "$GCC" = yes; then
19678    case $archive_cmds_CXX in
19679    *'~'*)
19680      # FIXME: we may have to deal with multi-command sequences.
19681      ;;
19682    '$CC '*)
19683      # Test whether the compiler implicitly links with -lc since on some
19684      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19685      # to ld, don't add -lc before -lgcc.
19686      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19687$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19688if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19689  $as_echo_n "(cached) " >&6
19690else
19691  $RM conftest*
19692	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19693
19694	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19695  (eval $ac_compile) 2>&5
19696  ac_status=$?
19697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698  test $ac_status = 0; } 2>conftest.err; then
19699	  soname=conftest
19700	  lib=conftest
19701	  libobjs=conftest.$ac_objext
19702	  deplibs=
19703	  wl=$lt_prog_compiler_wl_CXX
19704	  pic_flag=$lt_prog_compiler_pic_CXX
19705	  compiler_flags=-v
19706	  linker_flags=-v
19707	  verstring=
19708	  output_objdir=.
19709	  libname=conftest
19710	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19711	  allow_undefined_flag_CXX=
19712	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19713  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19714  ac_status=$?
19715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19716  test $ac_status = 0; }
19717	  then
19718	    lt_cv_archive_cmds_need_lc_CXX=no
19719	  else
19720	    lt_cv_archive_cmds_need_lc_CXX=yes
19721	  fi
19722	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19723	else
19724	  cat conftest.err 1>&5
19725	fi
19726	$RM conftest*
19727
19728fi
19729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19730$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19731      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19732      ;;
19733    esac
19734  fi
19735  ;;
19736esac
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19800$as_echo_n "checking dynamic linker characteristics... " >&6; }
19801
19802library_names_spec=
19803libname_spec='lib$name'
19804soname_spec=
19805shrext_cmds=".so"
19806postinstall_cmds=
19807postuninstall_cmds=
19808finish_cmds=
19809finish_eval=
19810shlibpath_var=
19811shlibpath_overrides_runpath=unknown
19812version_type=none
19813dynamic_linker="$host_os ld.so"
19814sys_lib_dlsearch_path_spec="/lib /usr/lib"
19815need_lib_prefix=unknown
19816hardcode_into_libs=no
19817
19818# when you set need_version to no, make sure it does not cause -set_version
19819# flags to be left without arguments
19820need_version=unknown
19821
19822case $host_os in
19823aix3*)
19824  version_type=linux # correct to gnu/linux during the next big refactor
19825  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19826  shlibpath_var=LIBPATH
19827
19828  # AIX 3 has no versioning support, so we append a major version to the name.
19829  soname_spec='${libname}${release}${shared_ext}$major'
19830  ;;
19831
19832aix[4-9]*)
19833  version_type=linux # correct to gnu/linux during the next big refactor
19834  need_lib_prefix=no
19835  need_version=no
19836  hardcode_into_libs=yes
19837  if test "$host_cpu" = ia64; then
19838    # AIX 5 supports IA64
19839    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19840    shlibpath_var=LD_LIBRARY_PATH
19841  else
19842    # With GCC up to 2.95.x, collect2 would create an import file
19843    # for dependence libraries.  The import file would start with
19844    # the line `#! .'.  This would cause the generated library to
19845    # depend on `.', always an invalid library.  This was fixed in
19846    # development snapshots of GCC prior to 3.0.
19847    case $host_os in
19848      aix4 | aix4.[01] | aix4.[01].*)
19849      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19850	   echo ' yes '
19851	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19852	:
19853      else
19854	can_build_shared=no
19855      fi
19856      ;;
19857    esac
19858    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19859    # soname into executable. Probably we can add versioning support to
19860    # collect2, so additional links can be useful in future.
19861    if test "$aix_use_runtimelinking" = yes; then
19862      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19863      # instead of lib<name>.a to let people know that these are not
19864      # typical AIX shared libraries.
19865      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19866    else
19867      # We preserve .a as extension for shared libraries through AIX4.2
19868      # and later when we are not doing run time linking.
19869      library_names_spec='${libname}${release}.a $libname.a'
19870      soname_spec='${libname}${release}${shared_ext}$major'
19871    fi
19872    shlibpath_var=LIBPATH
19873  fi
19874  ;;
19875
19876amigaos*)
19877  case $host_cpu in
19878  powerpc)
19879    # Since July 2007 AmigaOS4 officially supports .so libraries.
19880    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19882    ;;
19883  m68k)
19884    library_names_spec='$libname.ixlibrary $libname.a'
19885    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19886    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'
19887    ;;
19888  esac
19889  ;;
19890
19891beos*)
19892  library_names_spec='${libname}${shared_ext}'
19893  dynamic_linker="$host_os ld.so"
19894  shlibpath_var=LIBRARY_PATH
19895  ;;
19896
19897bsdi[45]*)
19898  version_type=linux # correct to gnu/linux during the next big refactor
19899  need_version=no
19900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19901  soname_spec='${libname}${release}${shared_ext}$major'
19902  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19903  shlibpath_var=LD_LIBRARY_PATH
19904  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19905  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19906  # the default ld.so.conf also contains /usr/contrib/lib and
19907  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19908  # libtool to hard-code these into programs
19909  ;;
19910
19911cygwin* | mingw* | pw32* | cegcc*)
19912  version_type=windows
19913  shrext_cmds=".dll"
19914  need_version=no
19915  need_lib_prefix=no
19916
19917  case $GCC,$cc_basename in
19918  yes,*)
19919    # gcc
19920    library_names_spec='$libname.dll.a'
19921    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19922    postinstall_cmds='base_file=`basename \${file}`~
19923      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19924      dldir=$destdir/`dirname \$dlpath`~
19925      test -d \$dldir || mkdir -p \$dldir~
19926      $install_prog $dir/$dlname \$dldir/$dlname~
19927      chmod a+x \$dldir/$dlname~
19928      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19929        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19930      fi'
19931    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19932      dlpath=$dir/\$dldll~
19933       $RM \$dlpath'
19934    shlibpath_overrides_runpath=yes
19935
19936    case $host_os in
19937    cygwin*)
19938      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19939      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19940
19941      ;;
19942    mingw* | cegcc*)
19943      # MinGW DLLs use traditional 'lib' prefix
19944      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19945      ;;
19946    pw32*)
19947      # pw32 DLLs use 'pw' prefix rather than 'lib'
19948      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19949      ;;
19950    esac
19951    dynamic_linker='Win32 ld.exe'
19952    ;;
19953
19954  *,cl*)
19955    # Native MSVC
19956    libname_spec='$name'
19957    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19958    library_names_spec='${libname}.dll.lib'
19959
19960    case $build_os in
19961    mingw*)
19962      sys_lib_search_path_spec=
19963      lt_save_ifs=$IFS
19964      IFS=';'
19965      for lt_path in $LIB
19966      do
19967        IFS=$lt_save_ifs
19968        # Let DOS variable expansion print the short 8.3 style file name.
19969        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19970        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19971      done
19972      IFS=$lt_save_ifs
19973      # Convert to MSYS style.
19974      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19975      ;;
19976    cygwin*)
19977      # Convert to unix form, then to dos form, then back to unix form
19978      # but this time dos style (no spaces!) so that the unix form looks
19979      # like /cygdrive/c/PROGRA~1:/cygdr...
19980      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19981      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19982      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19983      ;;
19984    *)
19985      sys_lib_search_path_spec="$LIB"
19986      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19987        # It is most probably a Windows format PATH.
19988        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19989      else
19990        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19991      fi
19992      # FIXME: find the short name or the path components, as spaces are
19993      # common. (e.g. "Program Files" -> "PROGRA~1")
19994      ;;
19995    esac
19996
19997    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19998    postinstall_cmds='base_file=`basename \${file}`~
19999      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20000      dldir=$destdir/`dirname \$dlpath`~
20001      test -d \$dldir || mkdir -p \$dldir~
20002      $install_prog $dir/$dlname \$dldir/$dlname'
20003    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20004      dlpath=$dir/\$dldll~
20005       $RM \$dlpath'
20006    shlibpath_overrides_runpath=yes
20007    dynamic_linker='Win32 link.exe'
20008    ;;
20009
20010  *)
20011    # Assume MSVC wrapper
20012    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20013    dynamic_linker='Win32 ld.exe'
20014    ;;
20015  esac
20016  # FIXME: first we should search . and the directory the executable is in
20017  shlibpath_var=PATH
20018  ;;
20019
20020darwin* | rhapsody*)
20021  dynamic_linker="$host_os dyld"
20022  version_type=darwin
20023  need_lib_prefix=no
20024  need_version=no
20025  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20026  soname_spec='${libname}${release}${major}$shared_ext'
20027  shlibpath_overrides_runpath=yes
20028  shlibpath_var=DYLD_LIBRARY_PATH
20029  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20030
20031  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20032  ;;
20033
20034dgux*)
20035  version_type=linux # correct to gnu/linux during the next big refactor
20036  need_lib_prefix=no
20037  need_version=no
20038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20039  soname_spec='${libname}${release}${shared_ext}$major'
20040  shlibpath_var=LD_LIBRARY_PATH
20041  ;;
20042
20043freebsd* | dragonfly*)
20044  # DragonFly does not have aout.  When/if they implement a new
20045  # versioning mechanism, adjust this.
20046  if test -x /usr/bin/objformat; then
20047    objformat=`/usr/bin/objformat`
20048  else
20049    case $host_os in
20050    freebsd[23].*) objformat=aout ;;
20051    *) objformat=elf ;;
20052    esac
20053  fi
20054  version_type=freebsd-$objformat
20055  case $version_type in
20056    freebsd-elf*)
20057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20058      need_version=no
20059      need_lib_prefix=no
20060      ;;
20061    freebsd-*)
20062      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20063      need_version=yes
20064      ;;
20065  esac
20066  shlibpath_var=LD_LIBRARY_PATH
20067  case $host_os in
20068  freebsd2.*)
20069    shlibpath_overrides_runpath=yes
20070    ;;
20071  freebsd3.[01]* | freebsdelf3.[01]*)
20072    shlibpath_overrides_runpath=yes
20073    hardcode_into_libs=yes
20074    ;;
20075  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20076  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20077    shlibpath_overrides_runpath=no
20078    hardcode_into_libs=yes
20079    ;;
20080  *) # from 4.6 on, and DragonFly
20081    shlibpath_overrides_runpath=yes
20082    hardcode_into_libs=yes
20083    ;;
20084  esac
20085  ;;
20086
20087gnu*)
20088  version_type=linux # correct to gnu/linux during the next big refactor
20089  need_lib_prefix=no
20090  need_version=no
20091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20092  soname_spec='${libname}${release}${shared_ext}$major'
20093  shlibpath_var=LD_LIBRARY_PATH
20094  shlibpath_overrides_runpath=no
20095  hardcode_into_libs=yes
20096  ;;
20097
20098haiku*)
20099  version_type=linux # correct to gnu/linux during the next big refactor
20100  need_lib_prefix=no
20101  need_version=no
20102  dynamic_linker="$host_os runtime_loader"
20103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20104  soname_spec='${libname}${release}${shared_ext}$major'
20105  shlibpath_var=LIBRARY_PATH
20106  shlibpath_overrides_runpath=yes
20107  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20108  hardcode_into_libs=yes
20109  ;;
20110
20111hpux9* | hpux10* | hpux11*)
20112  # Give a soname corresponding to the major version so that dld.sl refuses to
20113  # link against other versions.
20114  version_type=sunos
20115  need_lib_prefix=no
20116  need_version=no
20117  case $host_cpu in
20118  ia64*)
20119    shrext_cmds='.so'
20120    hardcode_into_libs=yes
20121    dynamic_linker="$host_os dld.so"
20122    shlibpath_var=LD_LIBRARY_PATH
20123    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20124    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20125    soname_spec='${libname}${release}${shared_ext}$major'
20126    if test "X$HPUX_IA64_MODE" = X32; then
20127      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20128    else
20129      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20130    fi
20131    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20132    ;;
20133  hppa*64*)
20134    shrext_cmds='.sl'
20135    hardcode_into_libs=yes
20136    dynamic_linker="$host_os dld.sl"
20137    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20138    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20139    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140    soname_spec='${libname}${release}${shared_ext}$major'
20141    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20142    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20143    ;;
20144  *)
20145    shrext_cmds='.sl'
20146    dynamic_linker="$host_os dld.sl"
20147    shlibpath_var=SHLIB_PATH
20148    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150    soname_spec='${libname}${release}${shared_ext}$major'
20151    ;;
20152  esac
20153  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20154  postinstall_cmds='chmod 555 $lib'
20155  # or fails outright, so override atomically:
20156  install_override_mode=555
20157  ;;
20158
20159interix[3-9]*)
20160  version_type=linux # correct to gnu/linux during the next big refactor
20161  need_lib_prefix=no
20162  need_version=no
20163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20164  soname_spec='${libname}${release}${shared_ext}$major'
20165  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20166  shlibpath_var=LD_LIBRARY_PATH
20167  shlibpath_overrides_runpath=no
20168  hardcode_into_libs=yes
20169  ;;
20170
20171irix5* | irix6* | nonstopux*)
20172  case $host_os in
20173    nonstopux*) version_type=nonstopux ;;
20174    *)
20175	if test "$lt_cv_prog_gnu_ld" = yes; then
20176		version_type=linux # correct to gnu/linux during the next big refactor
20177	else
20178		version_type=irix
20179	fi ;;
20180  esac
20181  need_lib_prefix=no
20182  need_version=no
20183  soname_spec='${libname}${release}${shared_ext}$major'
20184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20185  case $host_os in
20186  irix5* | nonstopux*)
20187    libsuff= shlibsuff=
20188    ;;
20189  *)
20190    case $LD in # libtool.m4 will add one of these switches to LD
20191    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20192      libsuff= shlibsuff= libmagic=32-bit;;
20193    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20194      libsuff=32 shlibsuff=N32 libmagic=N32;;
20195    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20196      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20197    *) libsuff= shlibsuff= libmagic=never-match;;
20198    esac
20199    ;;
20200  esac
20201  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20202  shlibpath_overrides_runpath=no
20203  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20204  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20205  hardcode_into_libs=yes
20206  ;;
20207
20208# No shared lib support for Linux oldld, aout, or coff.
20209linux*oldld* | linux*aout* | linux*coff*)
20210  dynamic_linker=no
20211  ;;
20212
20213# This must be glibc/ELF.
20214linux* | k*bsd*-gnu | kopensolaris*-gnu)
20215  version_type=linux # correct to gnu/linux during the next big refactor
20216  need_lib_prefix=no
20217  need_version=no
20218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219  soname_spec='${libname}${release}${shared_ext}$major'
20220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20221  shlibpath_var=LD_LIBRARY_PATH
20222  shlibpath_overrides_runpath=no
20223
20224  # Some binutils ld are patched to set DT_RUNPATH
20225  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20226  $as_echo_n "(cached) " >&6
20227else
20228  lt_cv_shlibpath_overrides_runpath=no
20229    save_LDFLAGS=$LDFLAGS
20230    save_libdir=$libdir
20231    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20232	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234/* end confdefs.h.  */
20235
20236int
20237main ()
20238{
20239
20240  ;
20241  return 0;
20242}
20243_ACEOF
20244if ac_fn_cxx_try_link "$LINENO"; then :
20245  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20246  lt_cv_shlibpath_overrides_runpath=yes
20247fi
20248fi
20249rm -f core conftest.err conftest.$ac_objext \
20250    conftest$ac_exeext conftest.$ac_ext
20251    LDFLAGS=$save_LDFLAGS
20252    libdir=$save_libdir
20253
20254fi
20255
20256  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20257
20258  # This implies no fast_install, which is unacceptable.
20259  # Some rework will be needed to allow for fast_install
20260  # before this can be enabled.
20261  hardcode_into_libs=yes
20262
20263  # Add ABI-specific directories to the system library path.
20264  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20265
20266  # Append ld.so.conf contents to the search path
20267  if test -f /etc/ld.so.conf; then
20268    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' ' '`
20269    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20270
20271  fi
20272
20273  # We used to test for /lib/ld.so.1 and disable shared libraries on
20274  # powerpc, because MkLinux only supported shared libraries with the
20275  # GNU dynamic linker.  Since this was broken with cross compilers,
20276  # most powerpc-linux boxes support dynamic linking these days and
20277  # people can always --disable-shared, the test was removed, and we
20278  # assume the GNU/Linux dynamic linker is in use.
20279  dynamic_linker='GNU/Linux ld.so'
20280  ;;
20281
20282netbsd*)
20283  version_type=sunos
20284  need_lib_prefix=no
20285  need_version=no
20286  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20287    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20288    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20289    dynamic_linker='NetBSD (a.out) ld.so'
20290  else
20291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20292    soname_spec='${libname}${release}${shared_ext}$major'
20293    dynamic_linker='NetBSD ld.elf_so'
20294  fi
20295  shlibpath_var=LD_LIBRARY_PATH
20296  shlibpath_overrides_runpath=yes
20297  hardcode_into_libs=yes
20298  ;;
20299
20300newsos6)
20301  version_type=linux # correct to gnu/linux during the next big refactor
20302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303  shlibpath_var=LD_LIBRARY_PATH
20304  shlibpath_overrides_runpath=yes
20305  ;;
20306
20307*nto* | *qnx*)
20308  version_type=qnx
20309  need_lib_prefix=no
20310  need_version=no
20311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312  soname_spec='${libname}${release}${shared_ext}$major'
20313  shlibpath_var=LD_LIBRARY_PATH
20314  shlibpath_overrides_runpath=no
20315  hardcode_into_libs=yes
20316  dynamic_linker='ldqnx.so'
20317  ;;
20318
20319openbsd*)
20320  version_type=sunos
20321  sys_lib_dlsearch_path_spec="/usr/lib"
20322  need_lib_prefix=no
20323  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20324  case $host_os in
20325    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
20326    *)				need_version=no  ;;
20327  esac
20328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20330  shlibpath_var=LD_LIBRARY_PATH
20331  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20332    case $host_os in
20333      openbsd2.[89] | openbsd2.[89].*)
20334	shlibpath_overrides_runpath=no
20335	;;
20336      *)
20337	shlibpath_overrides_runpath=yes
20338	;;
20339      esac
20340  else
20341    shlibpath_overrides_runpath=yes
20342  fi
20343  ;;
20344
20345os2*)
20346  libname_spec='$name'
20347  shrext_cmds=".dll"
20348  need_lib_prefix=no
20349  library_names_spec='$libname${shared_ext} $libname.a'
20350  dynamic_linker='OS/2 ld.exe'
20351  shlibpath_var=LIBPATH
20352  ;;
20353
20354osf3* | osf4* | osf5*)
20355  version_type=osf
20356  need_lib_prefix=no
20357  need_version=no
20358  soname_spec='${libname}${release}${shared_ext}$major'
20359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360  shlibpath_var=LD_LIBRARY_PATH
20361  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20362  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20363  ;;
20364
20365rdos*)
20366  dynamic_linker=no
20367  ;;
20368
20369solaris*)
20370  version_type=linux # correct to gnu/linux during the next big refactor
20371  need_lib_prefix=no
20372  need_version=no
20373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374  soname_spec='${libname}${release}${shared_ext}$major'
20375  shlibpath_var=LD_LIBRARY_PATH
20376  shlibpath_overrides_runpath=yes
20377  hardcode_into_libs=yes
20378  # ldd complains unless libraries are executable
20379  postinstall_cmds='chmod +x $lib'
20380  ;;
20381
20382sunos4*)
20383  version_type=sunos
20384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20386  shlibpath_var=LD_LIBRARY_PATH
20387  shlibpath_overrides_runpath=yes
20388  if test "$with_gnu_ld" = yes; then
20389    need_lib_prefix=no
20390  fi
20391  need_version=yes
20392  ;;
20393
20394sysv4 | sysv4.3*)
20395  version_type=linux # correct to gnu/linux during the next big refactor
20396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397  soname_spec='${libname}${release}${shared_ext}$major'
20398  shlibpath_var=LD_LIBRARY_PATH
20399  case $host_vendor in
20400    sni)
20401      shlibpath_overrides_runpath=no
20402      need_lib_prefix=no
20403      runpath_var=LD_RUN_PATH
20404      ;;
20405    siemens)
20406      need_lib_prefix=no
20407      ;;
20408    motorola)
20409      need_lib_prefix=no
20410      need_version=no
20411      shlibpath_overrides_runpath=no
20412      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20413      ;;
20414  esac
20415  ;;
20416
20417sysv4*MP*)
20418  if test -d /usr/nec ;then
20419    version_type=linux # correct to gnu/linux during the next big refactor
20420    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20421    soname_spec='$libname${shared_ext}.$major'
20422    shlibpath_var=LD_LIBRARY_PATH
20423  fi
20424  ;;
20425
20426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20427  version_type=freebsd-elf
20428  need_lib_prefix=no
20429  need_version=no
20430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20431  soname_spec='${libname}${release}${shared_ext}$major'
20432  shlibpath_var=LD_LIBRARY_PATH
20433  shlibpath_overrides_runpath=yes
20434  hardcode_into_libs=yes
20435  if test "$with_gnu_ld" = yes; then
20436    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20437  else
20438    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20439    case $host_os in
20440      sco3.2v5*)
20441        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20442	;;
20443    esac
20444  fi
20445  sys_lib_dlsearch_path_spec='/usr/lib'
20446  ;;
20447
20448tpf*)
20449  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20450  version_type=linux # correct to gnu/linux during the next big refactor
20451  need_lib_prefix=no
20452  need_version=no
20453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20454  shlibpath_var=LD_LIBRARY_PATH
20455  shlibpath_overrides_runpath=no
20456  hardcode_into_libs=yes
20457  ;;
20458
20459uts4*)
20460  version_type=linux # correct to gnu/linux during the next big refactor
20461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462  soname_spec='${libname}${release}${shared_ext}$major'
20463  shlibpath_var=LD_LIBRARY_PATH
20464  ;;
20465
20466*)
20467  dynamic_linker=no
20468  ;;
20469esac
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20471$as_echo "$dynamic_linker" >&6; }
20472test "$dynamic_linker" = no && can_build_shared=no
20473
20474variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20475if test "$GCC" = yes; then
20476  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20477fi
20478
20479if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20480  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20481fi
20482if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20483  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20484fi
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20524$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20525hardcode_action_CXX=
20526if test -n "$hardcode_libdir_flag_spec_CXX" ||
20527   test -n "$runpath_var_CXX" ||
20528   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20529
20530  # We can hardcode non-existent directories.
20531  if test "$hardcode_direct_CXX" != no &&
20532     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20533     # have to relink, otherwise we might link with an installed library
20534     # when we should be linking with a yet-to-be-installed one
20535     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20536     test "$hardcode_minus_L_CXX" != no; then
20537    # Linking always hardcodes the temporary library directory.
20538    hardcode_action_CXX=relink
20539  else
20540    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20541    hardcode_action_CXX=immediate
20542  fi
20543else
20544  # We cannot hardcode anything, or else we can only hardcode existing
20545  # directories.
20546  hardcode_action_CXX=unsupported
20547fi
20548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20549$as_echo "$hardcode_action_CXX" >&6; }
20550
20551if test "$hardcode_action_CXX" = relink ||
20552   test "$inherit_rpath_CXX" = yes; then
20553  # Fast installation is not supported
20554  enable_fast_install=no
20555elif test "$shlibpath_overrides_runpath" = yes ||
20556     test "$enable_shared" = no; then
20557  # Fast installation is not necessary
20558  enable_fast_install=needless
20559fi
20560
20561
20562
20563
20564
20565
20566
20567  fi # test -n "$compiler"
20568
20569  CC=$lt_save_CC
20570  CFLAGS=$lt_save_CFLAGS
20571  LDCXX=$LD
20572  LD=$lt_save_LD
20573  GCC=$lt_save_GCC
20574  with_gnu_ld=$lt_save_with_gnu_ld
20575  lt_cv_path_LDCXX=$lt_cv_path_LD
20576  lt_cv_path_LD=$lt_save_path_LD
20577  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20578  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20579fi # test "$_lt_caught_CXX_error" != yes
20580
20581ac_ext=c
20582ac_cpp='$CPP $CPPFLAGS'
20583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585ac_compiler_gnu=$ac_cv_c_compiler_gnu
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601        ac_config_commands="$ac_config_commands libtool"
20602
20603
20604
20605
20606# Only expand once:
20607
20608
20609
20610
20611
20612# Configure libltdl
20613
20614
20615
20616
20617
20618
20619
20620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20621$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
20622if ${libltdl_cv_shlibext+:} false; then :
20623  $as_echo_n "(cached) " >&6
20624else
20625
20626module=yes
20627eval libltdl_cv_shlibext=$shrext_cmds
20628module=no
20629eval libltdl_cv_shrext=$shrext_cmds
20630
20631fi
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20633$as_echo "$libltdl_cv_shlibext" >&6; }
20634if test -n "$libltdl_cv_shlibext"; then
20635
20636cat >>confdefs.h <<_ACEOF
20637#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20638_ACEOF
20639
20640fi
20641if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20642
20643cat >>confdefs.h <<_ACEOF
20644#define LT_SHARED_EXT "$libltdl_cv_shrext"
20645_ACEOF
20646
20647fi
20648
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20650$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
20651if ${lt_cv_module_path_var+:} false; then :
20652  $as_echo_n "(cached) " >&6
20653else
20654  lt_cv_module_path_var="$shlibpath_var"
20655fi
20656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20657$as_echo "$lt_cv_module_path_var" >&6; }
20658if test -n "$lt_cv_module_path_var"; then
20659
20660cat >>confdefs.h <<_ACEOF
20661#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20662_ACEOF
20663
20664fi
20665
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20667$as_echo_n "checking for the default library search path... " >&6; }
20668if ${lt_cv_sys_dlsearch_path+:} false; then :
20669  $as_echo_n "(cached) " >&6
20670else
20671  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20672fi
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20674$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20675if test -n "$lt_cv_sys_dlsearch_path"; then
20676  sys_dlsearch_path=
20677  for dir in $lt_cv_sys_dlsearch_path; do
20678    if test -z "$sys_dlsearch_path"; then
20679      sys_dlsearch_path="$dir"
20680    else
20681      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20682    fi
20683  done
20684
20685cat >>confdefs.h <<_ACEOF
20686#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20687_ACEOF
20688
20689fi
20690
20691
20692LT_DLLOADERS=
20693
20694
20695ac_ext=c
20696ac_cpp='$CPP $CPPFLAGS'
20697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20699ac_compiler_gnu=$ac_cv_c_compiler_gnu
20700
20701
20702LIBADD_DLOPEN=
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20704$as_echo_n "checking for library containing dlopen... " >&6; }
20705if ${ac_cv_search_dlopen+:} false; then :
20706  $as_echo_n "(cached) " >&6
20707else
20708  ac_func_search_save_LIBS=$LIBS
20709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710/* end confdefs.h.  */
20711
20712/* Override any GCC internal prototype to avoid an error.
20713   Use char because int might match the return type of a GCC
20714   builtin and then its argument prototype would still apply.  */
20715#ifdef __cplusplus
20716extern "C"
20717#endif
20718char dlopen ();
20719int
20720main ()
20721{
20722return dlopen ();
20723  ;
20724  return 0;
20725}
20726_ACEOF
20727for ac_lib in '' dl; do
20728  if test -z "$ac_lib"; then
20729    ac_res="none required"
20730  else
20731    ac_res=-l$ac_lib
20732    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20733  fi
20734  if ac_fn_c_try_link "$LINENO"; then :
20735  ac_cv_search_dlopen=$ac_res
20736fi
20737rm -f core conftest.err conftest.$ac_objext \
20738    conftest$ac_exeext
20739  if ${ac_cv_search_dlopen+:} false; then :
20740  break
20741fi
20742done
20743if ${ac_cv_search_dlopen+:} false; then :
20744
20745else
20746  ac_cv_search_dlopen=no
20747fi
20748rm conftest.$ac_ext
20749LIBS=$ac_func_search_save_LIBS
20750fi
20751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20752$as_echo "$ac_cv_search_dlopen" >&6; }
20753ac_res=$ac_cv_search_dlopen
20754if test "$ac_res" != no; then :
20755  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20756
20757$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20758
20759	if test "$ac_cv_search_dlopen" != "none required" ; then
20760	  LIBADD_DLOPEN="-ldl"
20761	fi
20762	libltdl_cv_lib_dl_dlopen="yes"
20763	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20764else
20765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20766/* end confdefs.h.  */
20767#if HAVE_DLFCN_H
20768#  include <dlfcn.h>
20769#endif
20770
20771int
20772main ()
20773{
20774dlopen(0, 0);
20775  ;
20776  return 0;
20777}
20778_ACEOF
20779if ac_fn_c_try_link "$LINENO"; then :
20780
20781$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20782
20783	    libltdl_cv_func_dlopen="yes"
20784	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20785else
20786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20787$as_echo_n "checking for dlopen in -lsvld... " >&6; }
20788if ${ac_cv_lib_svld_dlopen+:} false; then :
20789  $as_echo_n "(cached) " >&6
20790else
20791  ac_check_lib_save_LIBS=$LIBS
20792LIBS="-lsvld  $LIBS"
20793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794/* end confdefs.h.  */
20795
20796/* Override any GCC internal prototype to avoid an error.
20797   Use char because int might match the return type of a GCC
20798   builtin and then its argument prototype would still apply.  */
20799#ifdef __cplusplus
20800extern "C"
20801#endif
20802char dlopen ();
20803int
20804main ()
20805{
20806return dlopen ();
20807  ;
20808  return 0;
20809}
20810_ACEOF
20811if ac_fn_c_try_link "$LINENO"; then :
20812  ac_cv_lib_svld_dlopen=yes
20813else
20814  ac_cv_lib_svld_dlopen=no
20815fi
20816rm -f core conftest.err conftest.$ac_objext \
20817    conftest$ac_exeext conftest.$ac_ext
20818LIBS=$ac_check_lib_save_LIBS
20819fi
20820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20821$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20822if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20823
20824$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20825
20826	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20827		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20828fi
20829
20830fi
20831rm -f core conftest.err conftest.$ac_objext \
20832    conftest$ac_exeext conftest.$ac_ext
20833fi
20834
20835if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20836then
20837  lt_save_LIBS="$LIBS"
20838  LIBS="$LIBS $LIBADD_DLOPEN"
20839  for ac_func in dlerror
20840do :
20841  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20842if test "x$ac_cv_func_dlerror" = xyes; then :
20843  cat >>confdefs.h <<_ACEOF
20844#define HAVE_DLERROR 1
20845_ACEOF
20846
20847fi
20848done
20849
20850  LIBS="$lt_save_LIBS"
20851fi
20852
20853
20854LIBADD_SHL_LOAD=
20855ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20856if test "x$ac_cv_func_shl_load" = xyes; then :
20857
20858$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20859
20860	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20861else
20862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20863$as_echo_n "checking for shl_load in -ldld... " >&6; }
20864if ${ac_cv_lib_dld_shl_load+:} false; then :
20865  $as_echo_n "(cached) " >&6
20866else
20867  ac_check_lib_save_LIBS=$LIBS
20868LIBS="-ldld  $LIBS"
20869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20870/* end confdefs.h.  */
20871
20872/* Override any GCC internal prototype to avoid an error.
20873   Use char because int might match the return type of a GCC
20874   builtin and then its argument prototype would still apply.  */
20875#ifdef __cplusplus
20876extern "C"
20877#endif
20878char shl_load ();
20879int
20880main ()
20881{
20882return shl_load ();
20883  ;
20884  return 0;
20885}
20886_ACEOF
20887if ac_fn_c_try_link "$LINENO"; then :
20888  ac_cv_lib_dld_shl_load=yes
20889else
20890  ac_cv_lib_dld_shl_load=no
20891fi
20892rm -f core conftest.err conftest.$ac_objext \
20893    conftest$ac_exeext conftest.$ac_ext
20894LIBS=$ac_check_lib_save_LIBS
20895fi
20896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20897$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20898if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20899
20900$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20901
20902	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20903	    LIBADD_SHL_LOAD="-ldld"
20904fi
20905
20906fi
20907
20908
20909
20910case $host_os in
20911darwin[1567].*)
20912# We only want this for pre-Mac OS X 10.4.
20913  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20914if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20915
20916$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20917
20918	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20919fi
20920
20921  ;;
20922beos*)
20923  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20924  ;;
20925cygwin* | mingw* | os2* | pw32*)
20926  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20927"
20928if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20929  ac_have_decl=1
20930else
20931  ac_have_decl=0
20932fi
20933
20934cat >>confdefs.h <<_ACEOF
20935#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20936_ACEOF
20937
20938  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20939  ;;
20940esac
20941
20942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20943$as_echo_n "checking for dld_link in -ldld... " >&6; }
20944if ${ac_cv_lib_dld_dld_link+:} false; then :
20945  $as_echo_n "(cached) " >&6
20946else
20947  ac_check_lib_save_LIBS=$LIBS
20948LIBS="-ldld  $LIBS"
20949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20950/* end confdefs.h.  */
20951
20952/* Override any GCC internal prototype to avoid an error.
20953   Use char because int might match the return type of a GCC
20954   builtin and then its argument prototype would still apply.  */
20955#ifdef __cplusplus
20956extern "C"
20957#endif
20958char dld_link ();
20959int
20960main ()
20961{
20962return dld_link ();
20963  ;
20964  return 0;
20965}
20966_ACEOF
20967if ac_fn_c_try_link "$LINENO"; then :
20968  ac_cv_lib_dld_dld_link=yes
20969else
20970  ac_cv_lib_dld_dld_link=no
20971fi
20972rm -f core conftest.err conftest.$ac_objext \
20973    conftest$ac_exeext conftest.$ac_ext
20974LIBS=$ac_check_lib_save_LIBS
20975fi
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20977$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20978if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20979
20980$as_echo "#define HAVE_DLD 1" >>confdefs.h
20981
20982		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20983fi
20984
20985
20986
20987
20988LT_DLPREOPEN=
20989if test -n "$LT_DLLOADERS"
20990then
20991  for lt_loader in $LT_DLLOADERS; do
20992    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20993  done
20994
20995$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20996
20997fi
20998
20999
21000LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21001
21002
21003ac_ext=c
21004ac_cpp='$CPP $CPPFLAGS'
21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21011$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
21012if ${lt_cv_sys_symbol_underscore+:} false; then :
21013  $as_echo_n "(cached) " >&6
21014else
21015  lt_cv_sys_symbol_underscore=no
21016  cat > conftest.$ac_ext <<_LT_EOF
21017void nm_test_func(){}
21018int main(){nm_test_func;return 0;}
21019_LT_EOF
21020  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21021  (eval $ac_compile) 2>&5
21022  ac_status=$?
21023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024  test $ac_status = 0; }; then
21025    # Now try to grab the symbols.
21026    ac_nlist=conftest.nm
21027    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21028  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21029  ac_status=$?
21030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21031  test $ac_status = 0; } && test -s "$ac_nlist"; then
21032      # See whether the symbols have a leading underscore.
21033      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21034        lt_cv_sys_symbol_underscore=yes
21035      else
21036        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21037	  :
21038        else
21039	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21040        fi
21041      fi
21042    else
21043      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21044    fi
21045  else
21046    echo "configure: failed program was:" >&5
21047    cat conftest.c >&5
21048  fi
21049  rm -rf conftest*
21050
21051fi
21052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21053$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21054  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21055
21056
21057if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21058  if test x"$libltdl_cv_func_dlopen" = xyes ||
21059     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21061$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
21062if ${libltdl_cv_need_uscore+:} false; then :
21063  $as_echo_n "(cached) " >&6
21064else
21065  libltdl_cv_need_uscore=unknown
21066          save_LIBS="$LIBS"
21067          LIBS="$LIBS $LIBADD_DLOPEN"
21068	  if test "$cross_compiling" = yes; then :
21069  libltdl_cv_need_uscore=cross
21070else
21071  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21072  lt_status=$lt_dlunknown
21073  cat > conftest.$ac_ext <<_LT_EOF
21074#line $LINENO "configure"
21075#include "confdefs.h"
21076
21077#if HAVE_DLFCN_H
21078#include <dlfcn.h>
21079#endif
21080
21081#include <stdio.h>
21082
21083#ifdef RTLD_GLOBAL
21084#  define LT_DLGLOBAL		RTLD_GLOBAL
21085#else
21086#  ifdef DL_GLOBAL
21087#    define LT_DLGLOBAL		DL_GLOBAL
21088#  else
21089#    define LT_DLGLOBAL		0
21090#  endif
21091#endif
21092
21093/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21094   find out it does not work in some platform. */
21095#ifndef LT_DLLAZY_OR_NOW
21096#  ifdef RTLD_LAZY
21097#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21098#  else
21099#    ifdef DL_LAZY
21100#      define LT_DLLAZY_OR_NOW		DL_LAZY
21101#    else
21102#      ifdef RTLD_NOW
21103#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21104#      else
21105#        ifdef DL_NOW
21106#          define LT_DLLAZY_OR_NOW	DL_NOW
21107#        else
21108#          define LT_DLLAZY_OR_NOW	0
21109#        endif
21110#      endif
21111#    endif
21112#  endif
21113#endif
21114
21115/* When -fvisbility=hidden is used, assume the code has been annotated
21116   correspondingly for the symbols needed.  */
21117#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21118int fnord () __attribute__((visibility("default")));
21119#endif
21120
21121int fnord () { return 42; }
21122int main ()
21123{
21124  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21125  int status = $lt_dlunknown;
21126
21127  if (self)
21128    {
21129      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21130      else
21131        {
21132	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21133          else puts (dlerror ());
21134	}
21135      /* dlclose (self); */
21136    }
21137  else
21138    puts (dlerror ());
21139
21140  return status;
21141}
21142_LT_EOF
21143  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21144  (eval $ac_link) 2>&5
21145  ac_status=$?
21146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21147  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21148    (./conftest; exit; ) >&5 2>/dev/null
21149    lt_status=$?
21150    case x$lt_status in
21151      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21152      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21153      x$lt_dlunknown|x*)  ;;
21154    esac
21155  else :
21156    # compilation failed
21157
21158  fi
21159fi
21160rm -fr conftest*
21161
21162	  LIBS="$save_LIBS"
21163
21164fi
21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21166$as_echo "$libltdl_cv_need_uscore" >&6; }
21167  fi
21168fi
21169
21170if test x"$libltdl_cv_need_uscore" = xyes; then
21171
21172$as_echo "#define NEED_USCORE 1" >>confdefs.h
21173
21174fi
21175
21176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21177$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
21178if ${lt_cv_sys_dlopen_deplibs+:} false; then :
21179  $as_echo_n "(cached) " >&6
21180else
21181  # PORTME does your system automatically load deplibs for dlopen?
21182  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21183  # For now, we just catch OSes we know something about -- in the
21184  # future, we'll try test this programmatically.
21185  lt_cv_sys_dlopen_deplibs=unknown
21186  case $host_os in
21187  aix3*|aix4.1.*|aix4.2.*)
21188    # Unknown whether this is true for these versions of AIX, but
21189    # we want this `case' here to explicitly catch those versions.
21190    lt_cv_sys_dlopen_deplibs=unknown
21191    ;;
21192  aix[4-9]*)
21193    lt_cv_sys_dlopen_deplibs=yes
21194    ;;
21195  amigaos*)
21196    case $host_cpu in
21197    powerpc)
21198      lt_cv_sys_dlopen_deplibs=no
21199      ;;
21200    esac
21201    ;;
21202  darwin*)
21203    # Assuming the user has installed a libdl from somewhere, this is true
21204    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21205    lt_cv_sys_dlopen_deplibs=yes
21206    ;;
21207  freebsd* | dragonfly*)
21208    lt_cv_sys_dlopen_deplibs=yes
21209    ;;
21210  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
21211    # GNU and its variants, using gnu ld.so (Glibc)
21212    lt_cv_sys_dlopen_deplibs=yes
21213    ;;
21214  hpux10*|hpux11*)
21215    lt_cv_sys_dlopen_deplibs=yes
21216    ;;
21217  interix*)
21218    lt_cv_sys_dlopen_deplibs=yes
21219    ;;
21220  irix[12345]*|irix6.[01]*)
21221    # Catch all versions of IRIX before 6.2, and indicate that we don't
21222    # know how it worked for any of those versions.
21223    lt_cv_sys_dlopen_deplibs=unknown
21224    ;;
21225  irix*)
21226    # The case above catches anything before 6.2, and it's known that
21227    # at 6.2 and later dlopen does load deplibs.
21228    lt_cv_sys_dlopen_deplibs=yes
21229    ;;
21230  netbsd*)
21231    lt_cv_sys_dlopen_deplibs=yes
21232    ;;
21233  openbsd*)
21234    lt_cv_sys_dlopen_deplibs=yes
21235    ;;
21236  osf[1234]*)
21237    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21238    # it did *not* use an RPATH in a shared library to find objects the
21239    # library depends on, so we explicitly say `no'.
21240    lt_cv_sys_dlopen_deplibs=no
21241    ;;
21242  osf5.0|osf5.0a|osf5.1)
21243    # dlopen *does* load deplibs and with the right loader patch applied
21244    # it even uses RPATH in a shared library to search for shared objects
21245    # that the library depends on, but there's no easy way to know if that
21246    # patch is installed.  Since this is the case, all we can really
21247    # say is unknown -- it depends on the patch being installed.  If
21248    # it is, this changes to `yes'.  Without it, it would be `no'.
21249    lt_cv_sys_dlopen_deplibs=unknown
21250    ;;
21251  osf*)
21252    # the two cases above should catch all versions of osf <= 5.1.  Read
21253    # the comments above for what we know about them.
21254    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21255    # is used to find them so we can finally say `yes'.
21256    lt_cv_sys_dlopen_deplibs=yes
21257    ;;
21258  qnx*)
21259    lt_cv_sys_dlopen_deplibs=yes
21260    ;;
21261  solaris*)
21262    lt_cv_sys_dlopen_deplibs=yes
21263    ;;
21264  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21265    libltdl_cv_sys_dlopen_deplibs=yes
21266    ;;
21267  esac
21268
21269fi
21270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21271$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21272if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21273
21274$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21275
21276fi
21277
21278:
21279
21280for ac_header in argz.h
21281do :
21282  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21283"
21284if test "x$ac_cv_header_argz_h" = xyes; then :
21285  cat >>confdefs.h <<_ACEOF
21286#define HAVE_ARGZ_H 1
21287_ACEOF
21288
21289fi
21290
21291done
21292
21293
21294ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21295#  include <argz.h>
21296#endif
21297"
21298if test "x$ac_cv_type_error_t" = xyes; then :
21299
21300cat >>confdefs.h <<_ACEOF
21301#define HAVE_ERROR_T 1
21302_ACEOF
21303
21304
21305else
21306
21307$as_echo "#define error_t int" >>confdefs.h
21308
21309
21310$as_echo "#define __error_t_defined 1" >>confdefs.h
21311
21312fi
21313
21314
21315ARGZ_H=
21316for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21317	argz_next argz_stringify
21318do :
21319  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21321if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21322  cat >>confdefs.h <<_ACEOF
21323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21324_ACEOF
21325
21326else
21327  ARGZ_H=argz.h;
21328
21329  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21330
21331fi
21332done
21333
21334
21335if test -z "$ARGZ_H"; then :
21336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21337$as_echo_n "checking if argz actually works... " >&6; }
21338if ${lt_cv_sys_argz_works+:} false; then :
21339  $as_echo_n "(cached) " >&6
21340else
21341  case $host_os in #(
21342	 *cygwin*)
21343	   lt_cv_sys_argz_works=no
21344	   if test "$cross_compiling" != no; then
21345	     lt_cv_sys_argz_works="guessing no"
21346	   else
21347	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21348	     save_IFS=$IFS
21349	     IFS=-.
21350	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21351	     IFS=$save_IFS
21352	     lt_os_major=${2-0}
21353	     lt_os_minor=${3-0}
21354	     lt_os_micro=${4-0}
21355	     if test "$lt_os_major" -gt 1 \
21356		|| { test "$lt_os_major" -eq 1 \
21357		  && { test "$lt_os_minor" -gt 5 \
21358		    || { test "$lt_os_minor" -eq 5 \
21359		      && test "$lt_os_micro" -gt 24; }; }; }; then
21360	       lt_cv_sys_argz_works=yes
21361	     fi
21362	   fi
21363	   ;; #(
21364	 *) lt_cv_sys_argz_works=yes ;;
21365	 esac
21366fi
21367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21368$as_echo "$lt_cv_sys_argz_works" >&6; }
21369     if test "$lt_cv_sys_argz_works" = yes; then :
21370
21371$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21372
21373else
21374  ARGZ_H=argz.h
21375
21376
21377  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21378
21379fi
21380fi
21381
21382
21383
21384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21385$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
21386if ${libltdl_cv_preloaded_symbols+:} false; then :
21387  $as_echo_n "(cached) " >&6
21388else
21389  if test -n "$lt_cv_sys_global_symbol_pipe"; then
21390    libltdl_cv_preloaded_symbols=yes
21391  else
21392    libltdl_cv_preloaded_symbols=no
21393  fi
21394
21395fi
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21397$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21398if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21399
21400$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21401
21402fi
21403
21404# Set options
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416# Check whether --with-included_ltdl was given.
21417if test "${with_included_ltdl+set}" = set; then :
21418  withval=$with_included_ltdl;
21419fi
21420
21421
21422if test "x$with_included_ltdl" != xyes; then
21423  # We are not being forced to use the included libltdl sources, so
21424  # decide whether there is a useful installed version we can use.
21425  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21426
21427"
21428if test "x$ac_cv_header_ltdl_h" = xyes; then :
21429  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21430	    #include <ltdl.h>
21431"
21432if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
21433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21434$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
21435if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
21436  $as_echo_n "(cached) " >&6
21437else
21438  ac_check_lib_save_LIBS=$LIBS
21439LIBS="-lltdl  $LIBS"
21440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441/* end confdefs.h.  */
21442
21443/* Override any GCC internal prototype to avoid an error.
21444   Use char because int might match the return type of a GCC
21445   builtin and then its argument prototype would still apply.  */
21446#ifdef __cplusplus
21447extern "C"
21448#endif
21449char lt_dladvise_preload ();
21450int
21451main ()
21452{
21453return lt_dladvise_preload ();
21454  ;
21455  return 0;
21456}
21457_ACEOF
21458if ac_fn_c_try_link "$LINENO"; then :
21459  ac_cv_lib_ltdl_lt_dladvise_preload=yes
21460else
21461  ac_cv_lib_ltdl_lt_dladvise_preload=no
21462fi
21463rm -f core conftest.err conftest.$ac_objext \
21464    conftest$ac_exeext conftest.$ac_ext
21465LIBS=$ac_check_lib_save_LIBS
21466fi
21467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21468$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21469if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
21470  with_included_ltdl=no
21471else
21472  with_included_ltdl=yes
21473fi
21474
21475else
21476  with_included_ltdl=yes
21477fi
21478
21479else
21480  with_included_ltdl=yes
21481fi
21482
21483
21484fi
21485
21486
21487
21488
21489# Check whether --with-ltdl_include was given.
21490if test "${with_ltdl_include+set}" = set; then :
21491  withval=$with_ltdl_include;
21492fi
21493
21494
21495if test -n "$with_ltdl_include"; then
21496  if test -f "$with_ltdl_include/ltdl.h"; then :
21497  else
21498    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
21499  fi
21500else
21501  with_ltdl_include=no
21502fi
21503
21504
21505# Check whether --with-ltdl_lib was given.
21506if test "${with_ltdl_lib+set}" = set; then :
21507  withval=$with_ltdl_lib;
21508fi
21509
21510
21511if test -n "$with_ltdl_lib"; then
21512  if test -f "$with_ltdl_lib/libltdl.la"; then :
21513  else
21514    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
21515  fi
21516else
21517  with_ltdl_lib=no
21518fi
21519
21520case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21521  ,yes,no,no,)
21522	case $enable_ltdl_convenience in
21523  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
21524  "") enable_ltdl_convenience=yes
21525      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21526esac
21527LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21528LTDLDEPS=$LIBLTDL
21529LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21530
21531
21532
21533
21534
21535# For backwards non-gettext consistent compatibility...
21536INCLTDL="$LTDLINCL"
21537
21538
21539	;;
21540  ,no,no,no,)
21541	# If the included ltdl is not to be used, then use the
21542	# preinstalled libltdl we found.
21543
21544$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21545
21546	LIBLTDL=-lltdl
21547	LTDLDEPS=
21548	LTDLINCL=
21549	;;
21550  ,no*,no,*)
21551	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
21552	;;
21553  *)	with_included_ltdl=no
21554	LIBLTDL="-L$with_ltdl_lib -lltdl"
21555	LTDLDEPS=
21556	LTDLINCL="-I$with_ltdl_include"
21557	;;
21558esac
21559INCLTDL="$LTDLINCL"
21560
21561# Report our decision...
21562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21563$as_echo_n "checking where to find libltdl headers... " >&6; }
21564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21565$as_echo "$LTDLINCL" >&6; }
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21567$as_echo_n "checking where to find libltdl library... " >&6; }
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21569$as_echo "$LIBLTDL" >&6; }
21570
21571
21572
21573# Check whether --enable-ltdl-install was given.
21574if test "${enable_ltdl_install+set}" = set; then :
21575  enableval=$enable_ltdl_install;
21576fi
21577
21578
21579case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21580  *yes*) ;;
21581  *) enable_ltdl_convenience=yes ;;
21582esac
21583
21584 if test x"${enable_ltdl_install-no}" != xno; then
21585  INSTALL_LTDL_TRUE=
21586  INSTALL_LTDL_FALSE='#'
21587else
21588  INSTALL_LTDL_TRUE='#'
21589  INSTALL_LTDL_FALSE=
21590fi
21591
21592  if test x"${enable_ltdl_convenience-no}" != xno; then
21593  CONVENIENCE_LTDL_TRUE=
21594  CONVENIENCE_LTDL_FALSE='#'
21595else
21596  CONVENIENCE_LTDL_TRUE='#'
21597  CONVENIENCE_LTDL_FALSE=
21598fi
21599
21600
21601
21602
21603
21604
21605# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21606# the user used.  This is so that ltdl.h can pick up the parent projects
21607# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21608# definitions required by ltdl.c.
21609# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21610
21611
21612
21613for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21614do :
21615  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21616ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21617"
21618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21619  cat >>confdefs.h <<_ACEOF
21620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21621_ACEOF
21622
21623fi
21624
21625done
21626
21627
21628for ac_func in closedir opendir readdir
21629do :
21630  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21631ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21632if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21633  cat >>confdefs.h <<_ACEOF
21634#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21635_ACEOF
21636
21637else
21638
21639
21640  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21641
21642fi
21643done
21644
21645for ac_func in strlcat strlcpy
21646do :
21647  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21648ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21649if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21650  cat >>confdefs.h <<_ACEOF
21651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21652_ACEOF
21653
21654else
21655
21656
21657  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21658
21659fi
21660done
21661
21662
21663
21664cat >>confdefs.h <<_ACEOF
21665#define LT_LIBEXT "$libext"
21666_ACEOF
21667
21668
21669name=
21670eval "lt_libprefix=\"$libname_spec\""
21671
21672cat >>confdefs.h <<_ACEOF
21673#define LT_LIBPREFIX "$lt_libprefix"
21674_ACEOF
21675
21676
21677name=ltdl
21678eval "LTDLOPEN=\"$libname_spec\""
21679
21680
21681
21682
21683
21684
21685
21686
21687# Only expand once:
21688
21689
21690
21691# Check to see if building shared libraries
21692libtool_build_shared_libs='no'
21693if test "$enable_shared" = 'yes'; then
21694    libtool_build_shared_libs='yes'
21695fi
21696
21697# Check to see if building static libraries
21698libtool_build_static_libs='no'
21699if test "$enable_static" = 'yes'; then
21700    libtool_build_static_libs='yes'
21701fi
21702
21703 if test "${libtool_build_shared_libs}" = 'yes'; then
21704  WITH_SHARED_LIBS_TRUE=
21705  WITH_SHARED_LIBS_FALSE='#'
21706else
21707  WITH_SHARED_LIBS_TRUE='#'
21708  WITH_SHARED_LIBS_FALSE=
21709fi
21710
21711#
21712# Enable support for building loadable modules
21713#
21714
21715# Check whether --with-modules was given.
21716if test "${with_modules+set}" = set; then :
21717  withval=$with_modules; with_modules=$withval
21718else
21719  with_modules='no'
21720fi
21721
21722
21723# Only allow building loadable modules if we are building shared libraries
21724if test "$with_modules" != 'no' ; then
21725    if test "$libtool_build_shared_libs" = 'no'; then
21726        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21727$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21728        with_modules='no'
21729    fi
21730fi
21731if test "$with_modules" != 'no'; then
21732
21733$as_echo "#define BUILD_MODULES 1" >>confdefs.h
21734
21735fi
21736 if test "$with_modules" != 'no'; then
21737  WITH_MODULES_TRUE=
21738  WITH_MODULES_FALSE='#'
21739else
21740  WITH_MODULES_TRUE='#'
21741  WITH_MODULES_FALSE=
21742fi
21743
21744
21745# Enable building/use of libltdl if we are building shared libraries regardless
21746# of whether modules are built or not.
21747with_ltdl='no'
21748if test "$libtool_build_shared_libs" != 'no'; then
21749    with_ltdl='yes'
21750fi
21751
21752 if test "$with_ltdl" != 'no'; then
21753  WITH_LTDL_TRUE=
21754  WITH_LTDL_FALSE='#'
21755else
21756  WITH_LTDL_TRUE='#'
21757  WITH_LTDL_FALSE=
21758fi
21759
21760if test "$with_ltdl" != 'no'; then
21761
21762$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
21763
21764
21765    # Set DLLDFLAGS
21766    if test X"$enable_shared" = Xyes; then
21767        DLLDFLAGS=-export-dynamic
21768
21769    fi
21770fi
21771
21772# Enable build using delegate libraries built in subdirectories rather than installed
21773# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
21774# Check whether --enable-delegate-build was given.
21775if test "${enable_delegate_build+set}" = set; then :
21776  enableval=$enable_delegate_build; enable_delegate_build=$enableval
21777else
21778  enable_delegate_build='no'
21779fi
21780
21781
21782# Check whether --enable-deprecated was given.
21783if test "${enable_deprecated+set}" = set; then :
21784  enableval=$enable_deprecated; enable_deprecated=$enableval
21785else
21786  enable_deprecated='no'
21787fi
21788
21789
21790if test "$enable_deprecated" = 'yes'; then
21791
21792$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21793
21794else
21795  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21796fi
21797
21798# Build a version of ImageMagick which operates uninstalled.
21799# Used to build distributions located via MAGICK_HOME / executable path
21800# Check whether --enable-installed was given.
21801if test "${enable_installed+set}" = set; then :
21802  enableval=$enable_installed; enable_installed=$enableval
21803else
21804  enable_installed='yes'
21805fi
21806
21807
21808if test "$enable_installed" = 'yes'; then
21809
21810$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21811
21812else
21813    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21814fi
21815
21816# Permit enciphering and deciphering image pixels.
21817# Check whether --enable-cipher was given.
21818if test "${enable_cipher+set}" = set; then :
21819  enableval=$enable_cipher; enable_cipher=$enableval
21820else
21821  enable_cipher='yes'
21822fi
21823
21824
21825if test "$enable_cipher" = 'yes'; then
21826
21827$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21828
21829fi
21830
21831# Build a zero-configuration version of ImageMagick.
21832# Check whether --enable-zero-configuration was given.
21833if test "${enable_zero_configuration+set}" = set; then :
21834  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21835else
21836  enable_zero_configuration='no'
21837fi
21838
21839
21840if test "$enable_zero_configuration" = 'yes'; then
21841
21842$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21843
21844    MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21845fi
21846
21847# Build a high dynamic range version of ImageMagick.
21848# Check whether --enable-hdri was given.
21849if test "${enable_hdri+set}" = set; then :
21850  enableval=$enable_hdri; enable_hdri=$enableval
21851else
21852  enable_hdri='yes'
21853fi
21854
21855
21856MAGICK_HDRI=""
21857if test "$enable_hdri" = 'yes'; then
21858    MAGICK_HDRI="HDRI"
21859
21860$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21861
21862    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21863fi
21864
21865# Build a version of ImageMagick with assert statements.
21866# Check whether --enable-assert was given.
21867if test "${enable_assert+set}" = set; then :
21868  enableval=$enable_assert; enable_assert=$enableval
21869else
21870  enable_assert='yes'
21871fi
21872
21873
21874if test "$enable_assert" = 'no'; then
21875
21876$as_echo "#define NDEBUG 1" >>confdefs.h
21877
21878fi
21879
21880# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21881
21882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21883$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21884    # Check whether --enable-maintainer-mode was given.
21885if test "${enable_maintainer_mode+set}" = set; then :
21886  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21887else
21888  USE_MAINTAINER_MODE=no
21889fi
21890
21891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21892$as_echo "$USE_MAINTAINER_MODE" >&6; }
21893   if test $USE_MAINTAINER_MODE = yes; then
21894  MAINTAINER_MODE_TRUE=
21895  MAINTAINER_MODE_FALSE='#'
21896else
21897  MAINTAINER_MODE_TRUE='#'
21898  MAINTAINER_MODE_FALSE=
21899fi
21900
21901  MAINT=$MAINTAINER_MODE_TRUE
21902
21903
21904
21905# Enable ccmalloc memory debugging support
21906# Check whether --enable-ccmalloc was given.
21907if test "${enable_ccmalloc+set}" = set; then :
21908  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21909else
21910  enable_ccmalloc='no'
21911fi
21912
21913
21914# Enable Electric Fence memory debugging support
21915# Check whether --enable-efence was given.
21916if test "${enable_efence+set}" = set; then :
21917  enableval=$enable_efence; enable_efence=$enableval
21918else
21919  enable_efence='no'
21920fi
21921
21922
21923# Enable prof-based profiling support
21924# Check whether --enable-prof was given.
21925if test "${enable_prof+set}" = set; then :
21926  enableval=$enable_prof; enable_prof=$enableval
21927else
21928  enable_prof='no'
21929fi
21930
21931
21932# Enable gprof-based profiling support
21933# Check whether --enable-gprof was given.
21934if test "${enable_gprof+set}" = set; then :
21935  enableval=$enable_gprof; enable_gprof=$enableval
21936else
21937  enable_gprof='no'
21938fi
21939
21940
21941# Enable gcov-based profiling support
21942# Check whether --enable-gcov was given.
21943if test "${enable_gcov+set}" = set; then :
21944  enableval=$enable_gcov; enable_gcov=$enableval
21945else
21946  enable_gcov='no'
21947fi
21948
21949
21950enable_profiling='no'
21951if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21952    enable_profiling='yes'
21953    if test "$libtool_build_shared_libs" = 'yes'; then
21954        echo "Warning: Can not profile code using shared libraries"
21955    fi
21956fi
21957
21958# Magick API method prefix
21959
21960# Check whether --with-method-prefix was given.
21961if test "${with_method_prefix+set}" = set; then :
21962  withval=$with_method_prefix; with_method_prefix=$withval
21963else
21964  with_method_prefix='no'
21965fi
21966
21967
21968if test "$with_method_prefix" != 'no'; then
21969
21970cat >>confdefs.h <<_ACEOF
21971#define NAMESPACE_PREFIX $with_method_prefix
21972_ACEOF
21973
21974    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
21975fi
21976
21977# Enable legacy support (default no)
21978# Check whether --enable-legacy-support was given.
21979if test "${enable_legacy_support+set}" = set; then :
21980  enableval=$enable_legacy_support; with_legacy_support=$enableval
21981else
21982  with_legacy_support='no'
21983fi
21984
21985 if test "$with_legacy_support" != 'no'; then
21986  LEGACY_SUPPORT_TRUE=
21987  LEGACY_SUPPORT_FALSE='#'
21988else
21989  LEGACY_SUPPORT_TRUE='#'
21990  LEGACY_SUPPORT_FALSE=
21991fi
21992
21993
21994# Number of bits in a Quantum
21995
21996# Check whether --with-quantum-depth was given.
21997if test "${with_quantum_depth+set}" = set; then :
21998  withval=$with_quantum_depth; with_quantum_depth=$withval
21999else
22000  with_quantum_depth=16
22001fi
22002
22003
22004if test "$with_quantum_depth" != '8'; then
22005    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22006fi
22007
22008case "${with_quantum_depth}" in
22009    8 ) ;;
22010    16 ) ;;
22011    32 ) ;;
22012    64 ) ;;
22013    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
22014esac
22015QUANTUM_DEPTH="$with_quantum_depth"
22016
22017cat >>confdefs.h <<_ACEOF
22018#define QUANTUM_DEPTH $QUANTUM_DEPTH
22019_ACEOF
22020
22021
22022# Set pixel cache threshold
22023
22024# Check whether --with-cache was given.
22025if test "${with_cache+set}" = set; then :
22026  withval=$with_cache; with_cache=$withval
22027else
22028  with_cache=''
22029fi
22030
22031
22032if test "$with_cache" != ''; then
22033
22034cat >>confdefs.h <<_ACEOF
22035#define PixelCacheThreshold $with_cache
22036_ACEOF
22037
22038    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22039fi
22040
22041# Disable/Enable support for full delegate paths
22042
22043# Check whether --with-frozenpaths was given.
22044if test "${with_frozenpaths+set}" = set; then :
22045  withval=$with_frozenpaths; with_frozenpaths=$withval
22046else
22047  with_frozenpaths='no'
22048fi
22049
22050
22051# Enable build/install of Magick++
22052
22053# Check whether --with-magick-plus-plus was given.
22054if test "${with_magick_plus_plus+set}" = set; then :
22055  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22056else
22057  with_magick_plus_plus='yes'
22058fi
22059
22060
22061# Disable build/install of PerlMagick.
22062
22063# Check whether --with-perl was given.
22064if test "${with_perl+set}" = set; then :
22065  withval=$with_perl; with_perl=$withval
22066else
22067  with_perl='no'
22068fi
22069
22070
22071# Options to pass when configuring PerlMagick
22072
22073# Check whether --with-perl-options was given.
22074if test "${with_perl_options+set}" = set; then :
22075  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
22076fi
22077
22078
22079
22080# Enable umem, object-caching memory allocation library.
22081
22082# Check whether --with-umem was given.
22083if test "${with_umem+set}" = set; then :
22084  withval=$with_umem; with_umem=$withval
22085else
22086  with_umem='no'
22087fi
22088
22089if test "$with_umem" != 'yes' ; then
22090    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22091fi
22092
22093#
22094# Specify path to shared libstdc++ if not in normal location
22095#
22096
22097# Check whether --with-libstdc was given.
22098if test "${with_libstdc+set}" = set; then :
22099  withval=$with_libstdc; with_libstdc=$withval
22100else
22101  with_libstdc=''
22102fi
22103
22104
22105if test "$with_libstdc" != ''; then
22106    if test -d "$with_libstdc"; then
22107        LIBSTDCLDFLAGS="-L$with_libstdc"
22108    fi
22109fi
22110
22111
22112# Does gcc required -traditional?
22113if test $ac_cv_c_compiler_gnu = yes; then
22114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
22115$as_echo_n "checking whether $CC needs -traditional... " >&6; }
22116if ${ac_cv_prog_gcc_traditional+:} false; then :
22117  $as_echo_n "(cached) " >&6
22118else
22119    ac_pattern="Autoconf.*'x'"
22120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121/* end confdefs.h.  */
22122#include <sgtty.h>
22123Autoconf TIOCGETP
22124_ACEOF
22125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22126  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
22127  ac_cv_prog_gcc_traditional=yes
22128else
22129  ac_cv_prog_gcc_traditional=no
22130fi
22131rm -f conftest*
22132
22133
22134  if test $ac_cv_prog_gcc_traditional = no; then
22135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136/* end confdefs.h.  */
22137#include <termio.h>
22138Autoconf TCGETA
22139_ACEOF
22140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22141  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
22142  ac_cv_prog_gcc_traditional=yes
22143fi
22144rm -f conftest*
22145
22146  fi
22147fi
22148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
22149$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22150  if test $ac_cv_prog_gcc_traditional = yes; then
22151    CC="$CC -traditional"
22152  fi
22153fi
22154
22155
22156########
22157#
22158# Set defines required to build DLLs and modules using MinGW
22159#
22160########
22161# These options are set for multi-thread DLL module build
22162#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
22163#  module:              _DLL
22164#  executable/Magick++: _DLL _MAGICKMOD_
22165MODULE_EXTRA_CPPFLAGS=''
22166LIBRARY_EXTRA_CPPFLAGS=''
22167if test "${native_win32_build}" = 'yes'; then
22168    if test "${libtool_build_shared_libs}" = 'yes'; then
22169        CPPFLAGS="$CPPFLAGS -D_DLL"
22170        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22171        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22172        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22173        if test "$with_modules" = 'yes'; then
22174            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22175        else
22176            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22177        fi
22178    else
22179        CPPFLAGS="$CPPFLAGS -D_LIB"
22180        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22181        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22182    fi
22183    if test "$with_threads" = 'yes'; then
22184         CPPFLAGS="$CPPFLAGS -D_MT"
22185         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22186         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22187    fi
22188fi
22189
22190
22191
22192# Check standard headers
22193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22194$as_echo_n "checking for ANSI C header files... " >&6; }
22195if ${ac_cv_header_stdc+:} false; then :
22196  $as_echo_n "(cached) " >&6
22197else
22198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199/* end confdefs.h.  */
22200#include <stdlib.h>
22201#include <stdarg.h>
22202#include <string.h>
22203#include <float.h>
22204
22205int
22206main ()
22207{
22208
22209  ;
22210  return 0;
22211}
22212_ACEOF
22213if ac_fn_c_try_compile "$LINENO"; then :
22214  ac_cv_header_stdc=yes
22215else
22216  ac_cv_header_stdc=no
22217fi
22218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219
22220if test $ac_cv_header_stdc = yes; then
22221  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223/* end confdefs.h.  */
22224#include <string.h>
22225
22226_ACEOF
22227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22228  $EGREP "memchr" >/dev/null 2>&1; then :
22229
22230else
22231  ac_cv_header_stdc=no
22232fi
22233rm -f conftest*
22234
22235fi
22236
22237if test $ac_cv_header_stdc = yes; then
22238  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240/* end confdefs.h.  */
22241#include <stdlib.h>
22242
22243_ACEOF
22244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22245  $EGREP "free" >/dev/null 2>&1; then :
22246
22247else
22248  ac_cv_header_stdc=no
22249fi
22250rm -f conftest*
22251
22252fi
22253
22254if test $ac_cv_header_stdc = yes; then
22255  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22256  if test "$cross_compiling" = yes; then :
22257  :
22258else
22259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260/* end confdefs.h.  */
22261#include <ctype.h>
22262#include <stdlib.h>
22263#if ((' ' & 0x0FF) == 0x020)
22264# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22265# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22266#else
22267# define ISLOWER(c) \
22268		   (('a' <= (c) && (c) <= 'i') \
22269		     || ('j' <= (c) && (c) <= 'r') \
22270		     || ('s' <= (c) && (c) <= 'z'))
22271# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22272#endif
22273
22274#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22275int
22276main ()
22277{
22278  int i;
22279  for (i = 0; i < 256; i++)
22280    if (XOR (islower (i), ISLOWER (i))
22281	|| toupper (i) != TOUPPER (i))
22282      return 2;
22283  return 0;
22284}
22285_ACEOF
22286if ac_fn_c_try_run "$LINENO"; then :
22287
22288else
22289  ac_cv_header_stdc=no
22290fi
22291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22292  conftest.$ac_objext conftest.beam conftest.$ac_ext
22293fi
22294
22295fi
22296fi
22297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22298$as_echo "$ac_cv_header_stdc" >&6; }
22299if test $ac_cv_header_stdc = yes; then
22300
22301$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22302
22303fi
22304
22305if ! test x"$ac_cv_header_stdc" = x"yes"; then
22306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
22307    header files.  Compilation cannot proceed.  Please install the ANSI C
22308    headers and rerun this script." >&5
22309$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22310    header files.  Compilation cannot proceed.  Please install the ANSI C
22311    headers and rerun this script." >&2;};
22312fi
22313
22314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22315$as_echo_n "checking whether to enable assertions... " >&6; }
22316  # Check whether --enable-assert was given.
22317if test "${enable_assert+set}" = set; then :
22318  enableval=$enable_assert; ac_enable_assert=$enableval
22319     if       test "x$enableval" = xno; then :
22320
22321$as_echo "#define NDEBUG 1" >>confdefs.h
22322
22323elif test "x$enableval" != xyes; then :
22324  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22325$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22326	ac_enable_assert=yes
22327fi
22328else
22329  ac_enable_assert=yes
22330fi
22331
22332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22333$as_echo "$ac_enable_assert" >&6; }
22334
22335ac_header_dirent=no
22336for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22337  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22339$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22340if eval \${$as_ac_Header+:} false; then :
22341  $as_echo_n "(cached) " >&6
22342else
22343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22344/* end confdefs.h.  */
22345#include <sys/types.h>
22346#include <$ac_hdr>
22347
22348int
22349main ()
22350{
22351if ((DIR *) 0)
22352return 0;
22353  ;
22354  return 0;
22355}
22356_ACEOF
22357if ac_fn_c_try_compile "$LINENO"; then :
22358  eval "$as_ac_Header=yes"
22359else
22360  eval "$as_ac_Header=no"
22361fi
22362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363fi
22364eval ac_res=\$$as_ac_Header
22365	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22366$as_echo "$ac_res" >&6; }
22367if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22368  cat >>confdefs.h <<_ACEOF
22369#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22370_ACEOF
22371
22372ac_header_dirent=$ac_hdr; break
22373fi
22374
22375done
22376# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22377if test $ac_header_dirent = dirent.h; then
22378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22379$as_echo_n "checking for library containing opendir... " >&6; }
22380if ${ac_cv_search_opendir+:} false; then :
22381  $as_echo_n "(cached) " >&6
22382else
22383  ac_func_search_save_LIBS=$LIBS
22384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22385/* end confdefs.h.  */
22386
22387/* Override any GCC internal prototype to avoid an error.
22388   Use char because int might match the return type of a GCC
22389   builtin and then its argument prototype would still apply.  */
22390#ifdef __cplusplus
22391extern "C"
22392#endif
22393char opendir ();
22394int
22395main ()
22396{
22397return opendir ();
22398  ;
22399  return 0;
22400}
22401_ACEOF
22402for ac_lib in '' dir; do
22403  if test -z "$ac_lib"; then
22404    ac_res="none required"
22405  else
22406    ac_res=-l$ac_lib
22407    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22408  fi
22409  if ac_fn_c_try_link "$LINENO"; then :
22410  ac_cv_search_opendir=$ac_res
22411fi
22412rm -f core conftest.err conftest.$ac_objext \
22413    conftest$ac_exeext
22414  if ${ac_cv_search_opendir+:} false; then :
22415  break
22416fi
22417done
22418if ${ac_cv_search_opendir+:} false; then :
22419
22420else
22421  ac_cv_search_opendir=no
22422fi
22423rm conftest.$ac_ext
22424LIBS=$ac_func_search_save_LIBS
22425fi
22426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22427$as_echo "$ac_cv_search_opendir" >&6; }
22428ac_res=$ac_cv_search_opendir
22429if test "$ac_res" != no; then :
22430  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22431
22432fi
22433
22434else
22435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22436$as_echo_n "checking for library containing opendir... " >&6; }
22437if ${ac_cv_search_opendir+:} false; then :
22438  $as_echo_n "(cached) " >&6
22439else
22440  ac_func_search_save_LIBS=$LIBS
22441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442/* end confdefs.h.  */
22443
22444/* Override any GCC internal prototype to avoid an error.
22445   Use char because int might match the return type of a GCC
22446   builtin and then its argument prototype would still apply.  */
22447#ifdef __cplusplus
22448extern "C"
22449#endif
22450char opendir ();
22451int
22452main ()
22453{
22454return opendir ();
22455  ;
22456  return 0;
22457}
22458_ACEOF
22459for ac_lib in '' x; do
22460  if test -z "$ac_lib"; then
22461    ac_res="none required"
22462  else
22463    ac_res=-l$ac_lib
22464    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22465  fi
22466  if ac_fn_c_try_link "$LINENO"; then :
22467  ac_cv_search_opendir=$ac_res
22468fi
22469rm -f core conftest.err conftest.$ac_objext \
22470    conftest$ac_exeext
22471  if ${ac_cv_search_opendir+:} false; then :
22472  break
22473fi
22474done
22475if ${ac_cv_search_opendir+:} false; then :
22476
22477else
22478  ac_cv_search_opendir=no
22479fi
22480rm conftest.$ac_ext
22481LIBS=$ac_func_search_save_LIBS
22482fi
22483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22484$as_echo "$ac_cv_search_opendir" >&6; }
22485ac_res=$ac_cv_search_opendir
22486if test "$ac_res" != no; then :
22487  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22488
22489fi
22490
22491fi
22492
22493
22494# Check additional headers
22495for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
22496do :
22497  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22500  cat >>confdefs.h <<_ACEOF
22501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22502_ACEOF
22503
22504fi
22505
22506done
22507
22508
22509########
22510#
22511# Checks for typedefs, structures, and compiler characteristics.
22512#
22513########
22514
22515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22516$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22517if ${ac_cv_header_stdbool_h+:} false; then :
22518  $as_echo_n "(cached) " >&6
22519else
22520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521/* end confdefs.h.  */
22522
22523             #include <stdbool.h>
22524             #ifndef bool
22525              "error: bool is not defined"
22526             #endif
22527             #ifndef false
22528              "error: false is not defined"
22529             #endif
22530             #if false
22531              "error: false is not 0"
22532             #endif
22533             #ifndef true
22534              "error: true is not defined"
22535             #endif
22536             #if true != 1
22537              "error: true is not 1"
22538             #endif
22539             #ifndef __bool_true_false_are_defined
22540              "error: __bool_true_false_are_defined is not defined"
22541             #endif
22542
22543             struct s { _Bool s: 1; _Bool t; } s;
22544
22545             char a[true == 1 ? 1 : -1];
22546             char b[false == 0 ? 1 : -1];
22547             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22548             char d[(bool) 0.5 == true ? 1 : -1];
22549             /* See body of main program for 'e'.  */
22550             char f[(_Bool) 0.0 == false ? 1 : -1];
22551             char g[true];
22552             char h[sizeof (_Bool)];
22553             char i[sizeof s.t];
22554             enum { j = false, k = true, l = false * true, m = true * 256 };
22555             /* The following fails for
22556                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22557             _Bool n[m];
22558             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22559             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22560             /* Catch a bug in an HP-UX C compiler.  See
22561                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22562                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22563              */
22564             _Bool q = true;
22565             _Bool *pq = &q;
22566
22567int
22568main ()
22569{
22570
22571             bool e = &s;
22572             *pq |= q;
22573             *pq |= ! q;
22574             /* Refer to every declared value, to avoid compiler optimizations.  */
22575             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22576                     + !m + !n + !o + !p + !q + !pq);
22577
22578  ;
22579  return 0;
22580}
22581_ACEOF
22582if ac_fn_c_try_compile "$LINENO"; then :
22583  ac_cv_header_stdbool_h=yes
22584else
22585  ac_cv_header_stdbool_h=no
22586fi
22587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588fi
22589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22590$as_echo "$ac_cv_header_stdbool_h" >&6; }
22591   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22592if test "x$ac_cv_type__Bool" = xyes; then :
22593
22594cat >>confdefs.h <<_ACEOF
22595#define HAVE__BOOL 1
22596_ACEOF
22597
22598
22599fi
22600
22601
22602if test $ac_cv_header_stdbool_h = yes; then
22603
22604$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
22605
22606fi
22607
22608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22609$as_echo_n "checking for working volatile... " >&6; }
22610if ${ac_cv_c_volatile+:} false; then :
22611  $as_echo_n "(cached) " >&6
22612else
22613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614/* end confdefs.h.  */
22615
22616int
22617main ()
22618{
22619
22620volatile int x;
22621int * volatile y = (int *) 0;
22622return !x && !y;
22623  ;
22624  return 0;
22625}
22626_ACEOF
22627if ac_fn_c_try_compile "$LINENO"; then :
22628  ac_cv_c_volatile=yes
22629else
22630  ac_cv_c_volatile=no
22631fi
22632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633fi
22634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22635$as_echo "$ac_cv_c_volatile" >&6; }
22636if test $ac_cv_c_volatile = no; then
22637
22638$as_echo "#define volatile /**/" >>confdefs.h
22639
22640fi
22641
22642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
22643$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22644if ${ac_cv_c_stringize+:} false; then :
22645  $as_echo_n "(cached) " >&6
22646else
22647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22648/* end confdefs.h.  */
22649#define x(y) #y
22650
22651char *s = x(teststring);
22652_ACEOF
22653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22654  $EGREP "#teststring" >/dev/null 2>&1; then :
22655  ac_cv_c_stringize=no
22656else
22657  ac_cv_c_stringize=yes
22658fi
22659rm -f conftest*
22660
22661fi
22662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22663$as_echo "$ac_cv_c_stringize" >&6; }
22664if test $ac_cv_c_stringize = yes; then
22665
22666$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22667
22668fi
22669
22670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22671$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22672if ${ac_cv_header_stat_broken+:} false; then :
22673  $as_echo_n "(cached) " >&6
22674else
22675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676/* end confdefs.h.  */
22677#include <sys/types.h>
22678#include <sys/stat.h>
22679
22680#if defined S_ISBLK && defined S_IFDIR
22681extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22682#endif
22683
22684#if defined S_ISBLK && defined S_IFCHR
22685extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22686#endif
22687
22688#if defined S_ISLNK && defined S_IFREG
22689extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22690#endif
22691
22692#if defined S_ISSOCK && defined S_IFREG
22693extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22694#endif
22695
22696_ACEOF
22697if ac_fn_c_try_compile "$LINENO"; then :
22698  ac_cv_header_stat_broken=no
22699else
22700  ac_cv_header_stat_broken=yes
22701fi
22702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703fi
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22705$as_echo "$ac_cv_header_stat_broken" >&6; }
22706if test $ac_cv_header_stat_broken = yes; then
22707
22708$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22709
22710fi
22711
22712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22713$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22714if ${ac_cv_header_time+:} false; then :
22715  $as_echo_n "(cached) " >&6
22716else
22717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718/* end confdefs.h.  */
22719#include <sys/types.h>
22720#include <sys/time.h>
22721#include <time.h>
22722
22723int
22724main ()
22725{
22726if ((struct tm *) 0)
22727return 0;
22728  ;
22729  return 0;
22730}
22731_ACEOF
22732if ac_fn_c_try_compile "$LINENO"; then :
22733  ac_cv_header_time=yes
22734else
22735  ac_cv_header_time=no
22736fi
22737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738fi
22739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22740$as_echo "$ac_cv_header_time" >&6; }
22741if test $ac_cv_header_time = yes; then
22742
22743$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22744
22745fi
22746
22747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22748$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22749if ${ac_cv_struct_tm+:} false; then :
22750  $as_echo_n "(cached) " >&6
22751else
22752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753/* end confdefs.h.  */
22754#include <sys/types.h>
22755#include <time.h>
22756
22757int
22758main ()
22759{
22760struct tm tm;
22761				     int *p = &tm.tm_sec;
22762				     return !p;
22763  ;
22764  return 0;
22765}
22766_ACEOF
22767if ac_fn_c_try_compile "$LINENO"; then :
22768  ac_cv_struct_tm=time.h
22769else
22770  ac_cv_struct_tm=sys/time.h
22771fi
22772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773fi
22774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22775$as_echo "$ac_cv_struct_tm" >&6; }
22776if test $ac_cv_struct_tm = sys/time.h; then
22777
22778$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22779
22780fi
22781
22782ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22783#include <$ac_cv_struct_tm>
22784
22785"
22786if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22787
22788cat >>confdefs.h <<_ACEOF
22789#define HAVE_STRUCT_TM_TM_ZONE 1
22790_ACEOF
22791
22792
22793fi
22794
22795if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22796
22797$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22798
22799else
22800  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22801"
22802if test "x$ac_cv_have_decl_tzname" = xyes; then :
22803  ac_have_decl=1
22804else
22805  ac_have_decl=0
22806fi
22807
22808cat >>confdefs.h <<_ACEOF
22809#define HAVE_DECL_TZNAME $ac_have_decl
22810_ACEOF
22811
22812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22813$as_echo_n "checking for tzname... " >&6; }
22814if ${ac_cv_var_tzname+:} false; then :
22815  $as_echo_n "(cached) " >&6
22816else
22817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818/* end confdefs.h.  */
22819#include <time.h>
22820#if !HAVE_DECL_TZNAME
22821extern char *tzname[];
22822#endif
22823
22824int
22825main ()
22826{
22827return tzname[0][0];
22828  ;
22829  return 0;
22830}
22831_ACEOF
22832if ac_fn_c_try_link "$LINENO"; then :
22833  ac_cv_var_tzname=yes
22834else
22835  ac_cv_var_tzname=no
22836fi
22837rm -f core conftest.err conftest.$ac_objext \
22838    conftest$ac_exeext conftest.$ac_ext
22839fi
22840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22841$as_echo "$ac_cv_var_tzname" >&6; }
22842  if test $ac_cv_var_tzname = yes; then
22843
22844$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22845
22846  fi
22847fi
22848
22849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22850$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22851if ${ac_cv_sys_interpreter+:} false; then :
22852  $as_echo_n "(cached) " >&6
22853else
22854  echo '#! /bin/cat
22855exit 69
22856' >conftest
22857chmod u+x conftest
22858(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22859if test $? -ne 69; then
22860   ac_cv_sys_interpreter=yes
22861else
22862   ac_cv_sys_interpreter=no
22863fi
22864rm -f conftest
22865fi
22866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22867$as_echo "$ac_cv_sys_interpreter" >&6; }
22868interpval=$ac_cv_sys_interpreter
22869
22870
22871# If the C compiler supports the keyword inline, do nothing. Otherwise
22872# define inline to __inline__ or __inline if it accepts one of those,
22873# otherwise define inline to be empty.
22874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22875$as_echo_n "checking for inline... " >&6; }
22876if ${ac_cv_c_inline+:} false; then :
22877  $as_echo_n "(cached) " >&6
22878else
22879  ac_cv_c_inline=no
22880for ac_kw in inline __inline__ __inline; do
22881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882/* end confdefs.h.  */
22883#ifndef __cplusplus
22884typedef int foo_t;
22885static $ac_kw foo_t static_foo () {return 0; }
22886$ac_kw foo_t foo () {return 0; }
22887#endif
22888
22889_ACEOF
22890if ac_fn_c_try_compile "$LINENO"; then :
22891  ac_cv_c_inline=$ac_kw
22892fi
22893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894  test "$ac_cv_c_inline" != no && break
22895done
22896
22897fi
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22899$as_echo "$ac_cv_c_inline" >&6; }
22900
22901case $ac_cv_c_inline in
22902  inline | yes) ;;
22903  *)
22904    case $ac_cv_c_inline in
22905      no) ac_val=;;
22906      *) ac_val=$ac_cv_c_inline;;
22907    esac
22908    cat >>confdefs.h <<_ACEOF
22909#ifndef __cplusplus
22910#define inline $ac_val
22911#endif
22912_ACEOF
22913    ;;
22914esac
22915
22916
22917# If the C compiler supports the keyword restrict, do nothing. Otherwise
22918# define restrict to __restrict__ or __restrict if it accepts one of those,
22919# otherwise define restrict to be empty.
22920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22921$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22922if ${ac_cv_c_restrict+:} false; then :
22923  $as_echo_n "(cached) " >&6
22924else
22925  ac_cv_c_restrict=no
22926   # The order here caters to the fact that C++ does not require restrict.
22927   for ac_kw in __restrict __restrict__ _Restrict restrict; do
22928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929/* end confdefs.h.  */
22930typedef int * int_ptr;
22931	int foo (int_ptr $ac_kw ip) {
22932	return ip[0];
22933       }
22934int
22935main ()
22936{
22937int s[1];
22938	int * $ac_kw t = s;
22939	t[0] = 0;
22940	return foo(t)
22941  ;
22942  return 0;
22943}
22944_ACEOF
22945if ac_fn_c_try_compile "$LINENO"; then :
22946  ac_cv_c_restrict=$ac_kw
22947fi
22948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949     test "$ac_cv_c_restrict" != no && break
22950   done
22951
22952fi
22953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22954$as_echo "$ac_cv_c_restrict" >&6; }
22955
22956 case $ac_cv_c_restrict in
22957   restrict) ;;
22958   no) $as_echo "#define restrict /**/" >>confdefs.h
22959 ;;
22960   *)  cat >>confdefs.h <<_ACEOF
22961#define restrict $ac_cv_c_restrict
22962_ACEOF
22963 ;;
22964 esac
22965
22966
22967# If words are stored with the most significant byte first (like
22968# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22970$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22971if ${ac_cv_c_bigendian+:} false; then :
22972  $as_echo_n "(cached) " >&6
22973else
22974  ac_cv_c_bigendian=unknown
22975    # See if we're dealing with a universal compiler.
22976    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977/* end confdefs.h.  */
22978#ifndef __APPLE_CC__
22979	       not a universal capable compiler
22980	     #endif
22981	     typedef int dummy;
22982
22983_ACEOF
22984if ac_fn_c_try_compile "$LINENO"; then :
22985
22986	# Check for potential -arch flags.  It is not universal unless
22987	# there are at least two -arch flags with different values.
22988	ac_arch=
22989	ac_prev=
22990	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22991	 if test -n "$ac_prev"; then
22992	   case $ac_word in
22993	     i?86 | x86_64 | ppc | ppc64)
22994	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22995		 ac_arch=$ac_word
22996	       else
22997		 ac_cv_c_bigendian=universal
22998		 break
22999	       fi
23000	       ;;
23001	   esac
23002	   ac_prev=
23003	 elif test "x$ac_word" = "x-arch"; then
23004	   ac_prev=arch
23005	 fi
23006       done
23007fi
23008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009    if test $ac_cv_c_bigendian = unknown; then
23010      # See if sys/param.h defines the BYTE_ORDER macro.
23011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23012/* end confdefs.h.  */
23013#include <sys/types.h>
23014	     #include <sys/param.h>
23015
23016int
23017main ()
23018{
23019#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23020		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23021		     && LITTLE_ENDIAN)
23022	      bogus endian macros
23023	     #endif
23024
23025  ;
23026  return 0;
23027}
23028_ACEOF
23029if ac_fn_c_try_compile "$LINENO"; then :
23030  # It does; now see whether it defined to BIG_ENDIAN or not.
23031	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23032/* end confdefs.h.  */
23033#include <sys/types.h>
23034		#include <sys/param.h>
23035
23036int
23037main ()
23038{
23039#if BYTE_ORDER != BIG_ENDIAN
23040		 not big endian
23041		#endif
23042
23043  ;
23044  return 0;
23045}
23046_ACEOF
23047if ac_fn_c_try_compile "$LINENO"; then :
23048  ac_cv_c_bigendian=yes
23049else
23050  ac_cv_c_bigendian=no
23051fi
23052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053fi
23054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055    fi
23056    if test $ac_cv_c_bigendian = unknown; then
23057      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23058      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059/* end confdefs.h.  */
23060#include <limits.h>
23061
23062int
23063main ()
23064{
23065#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23066	      bogus endian macros
23067	     #endif
23068
23069  ;
23070  return 0;
23071}
23072_ACEOF
23073if ac_fn_c_try_compile "$LINENO"; then :
23074  # It does; now see whether it defined to _BIG_ENDIAN or not.
23075	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076/* end confdefs.h.  */
23077#include <limits.h>
23078
23079int
23080main ()
23081{
23082#ifndef _BIG_ENDIAN
23083		 not big endian
23084		#endif
23085
23086  ;
23087  return 0;
23088}
23089_ACEOF
23090if ac_fn_c_try_compile "$LINENO"; then :
23091  ac_cv_c_bigendian=yes
23092else
23093  ac_cv_c_bigendian=no
23094fi
23095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096fi
23097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098    fi
23099    if test $ac_cv_c_bigendian = unknown; then
23100      # Compile a test program.
23101      if test "$cross_compiling" = yes; then :
23102  # Try to guess by grepping values from an object file.
23103	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104/* end confdefs.h.  */
23105short int ascii_mm[] =
23106		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23107		short int ascii_ii[] =
23108		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23109		int use_ascii (int i) {
23110		  return ascii_mm[i] + ascii_ii[i];
23111		}
23112		short int ebcdic_ii[] =
23113		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23114		short int ebcdic_mm[] =
23115		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23116		int use_ebcdic (int i) {
23117		  return ebcdic_mm[i] + ebcdic_ii[i];
23118		}
23119		extern int foo;
23120
23121int
23122main ()
23123{
23124return use_ascii (foo) == use_ebcdic (foo);
23125  ;
23126  return 0;
23127}
23128_ACEOF
23129if ac_fn_c_try_compile "$LINENO"; then :
23130  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23131	      ac_cv_c_bigendian=yes
23132	    fi
23133	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23134	      if test "$ac_cv_c_bigendian" = unknown; then
23135		ac_cv_c_bigendian=no
23136	      else
23137		# finding both strings is unlikely to happen, but who knows?
23138		ac_cv_c_bigendian=unknown
23139	      fi
23140	    fi
23141fi
23142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143else
23144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145/* end confdefs.h.  */
23146$ac_includes_default
23147int
23148main ()
23149{
23150
23151	     /* Are we little or big endian?  From Harbison&Steele.  */
23152	     union
23153	     {
23154	       long int l;
23155	       char c[sizeof (long int)];
23156	     } u;
23157	     u.l = 1;
23158	     return u.c[sizeof (long int) - 1] == 1;
23159
23160  ;
23161  return 0;
23162}
23163_ACEOF
23164if ac_fn_c_try_run "$LINENO"; then :
23165  ac_cv_c_bigendian=no
23166else
23167  ac_cv_c_bigendian=yes
23168fi
23169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23170  conftest.$ac_objext conftest.beam conftest.$ac_ext
23171fi
23172
23173    fi
23174fi
23175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23176$as_echo "$ac_cv_c_bigendian" >&6; }
23177 case $ac_cv_c_bigendian in #(
23178   yes)
23179     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23180;; #(
23181   no)
23182      ;; #(
23183   universal)
23184
23185$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23186
23187     ;; #(
23188   *)
23189     as_fn_error $? "unknown endianness
23190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23191 esac
23192
23193
23194# Define to a suitable type, if standard headers do not define it.
23195ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23196case $ac_cv_c_int8_t in #(
23197  no|yes) ;; #(
23198  *)
23199
23200cat >>confdefs.h <<_ACEOF
23201#define int8_t $ac_cv_c_int8_t
23202_ACEOF
23203;;
23204esac
23205
23206ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23207case $ac_cv_c_int16_t in #(
23208  no|yes) ;; #(
23209  *)
23210
23211cat >>confdefs.h <<_ACEOF
23212#define int16_t $ac_cv_c_int16_t
23213_ACEOF
23214;;
23215esac
23216
23217ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23218case $ac_cv_c_int32_t in #(
23219  no|yes) ;; #(
23220  *)
23221
23222cat >>confdefs.h <<_ACEOF
23223#define int32_t $ac_cv_c_int32_t
23224_ACEOF
23225;;
23226esac
23227
23228ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23229case $ac_cv_c_int64_t in #(
23230  no|yes) ;; #(
23231  *)
23232
23233cat >>confdefs.h <<_ACEOF
23234#define int64_t $ac_cv_c_int64_t
23235_ACEOF
23236;;
23237esac
23238
23239
23240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23241$as_echo_n "checking for long long int... " >&6; }
23242if ${ac_cv_type_long_long_int+:} false; then :
23243  $as_echo_n "(cached) " >&6
23244else
23245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246/* end confdefs.h.  */
23247
23248  /* For now, do not test the preprocessor; as of 2007 there are too many
23249         implementations with broken preprocessors.  Perhaps this can
23250         be revisited in 2012.  In the meantime, code should not expect
23251         #if to work with literals wider than 32 bits.  */
23252      /* Test literals.  */
23253      long long int ll = 9223372036854775807ll;
23254      long long int nll = -9223372036854775807LL;
23255      unsigned long long int ull = 18446744073709551615ULL;
23256      /* Test constant expressions.   */
23257      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23258                     ? 1 : -1)];
23259      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23260                     ? 1 : -1)];
23261      int i = 63;
23262int
23263main ()
23264{
23265/* Test availability of runtime routines for shift and division.  */
23266      long long int llmax = 9223372036854775807ll;
23267      unsigned long long int ullmax = 18446744073709551615ull;
23268      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23269              | (llmax / ll) | (llmax % ll)
23270              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23271              | (ullmax / ull) | (ullmax % ull));
23272  ;
23273  return 0;
23274}
23275
23276_ACEOF
23277if ac_fn_c_try_link "$LINENO"; then :
23278                          if test "$cross_compiling" = yes; then :
23279  ac_cv_type_long_long_int=yes
23280else
23281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h.  */
23283#include <limits.h>
23284               #ifndef LLONG_MAX
23285               # define HALF \
23286                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23287               # define LLONG_MAX (HALF - 1 + HALF)
23288               #endif
23289int
23290main ()
23291{
23292long long int n = 1;
23293               int i;
23294               for (i = 0; ; i++)
23295                 {
23296                   long long int m = n << i;
23297                   if (m >> i != n)
23298                     return 1;
23299                   if (LLONG_MAX / 2 < m)
23300                     break;
23301                 }
23302               return 0;
23303  ;
23304  return 0;
23305}
23306_ACEOF
23307if ac_fn_c_try_run "$LINENO"; then :
23308  ac_cv_type_long_long_int=yes
23309else
23310  ac_cv_type_long_long_int=no
23311fi
23312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23313  conftest.$ac_objext conftest.beam conftest.$ac_ext
23314fi
23315
23316else
23317  ac_cv_type_long_long_int=no
23318fi
23319rm -f core conftest.err conftest.$ac_objext \
23320    conftest$ac_exeext conftest.$ac_ext
23321fi
23322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23323$as_echo "$ac_cv_type_long_long_int" >&6; }
23324  if test $ac_cv_type_long_long_int = yes; then
23325
23326$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23327
23328  fi
23329
23330
23331
23332  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23333if test "x$ac_cv_type_intmax_t" = xyes; then :
23334
23335$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23336
23337else
23338  test $ac_cv_type_long_long_int = yes \
23339       && ac_type='long long int' \
23340       || ac_type='long int'
23341
23342cat >>confdefs.h <<_ACEOF
23343#define intmax_t $ac_type
23344_ACEOF
23345
23346fi
23347
23348
23349
23350  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23351if test "x$ac_cv_type_intptr_t" = xyes; then :
23352
23353$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
23354
23355else
23356  for ac_type in 'int' 'long int' 'long long int'; do
23357       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23358/* end confdefs.h.  */
23359$ac_includes_default
23360int
23361main ()
23362{
23363static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23364test_array [0] = 0;
23365return test_array [0];
23366
23367  ;
23368  return 0;
23369}
23370_ACEOF
23371if ac_fn_c_try_compile "$LINENO"; then :
23372
23373cat >>confdefs.h <<_ACEOF
23374#define intptr_t $ac_type
23375_ACEOF
23376
23377	  ac_type=
23378fi
23379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380       test -z "$ac_type" && break
23381     done
23382fi
23383
23384
23385
23386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23387$as_echo_n "checking for long double... " >&6; }
23388if ${ac_cv_type_long_double+:} false; then :
23389  $as_echo_n "(cached) " >&6
23390else
23391  if test "$GCC" = yes; then
23392       ac_cv_type_long_double=yes
23393     else
23394       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395/* end confdefs.h.  */
23396/* The Stardent Vistra knows sizeof (long double), but does
23397		 not support it.  */
23398	      long double foo = 0.0L;
23399int
23400main ()
23401{
23402static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23403	      sizeof (double) <= sizeof (long double))];
23404test_array [0] = 0;
23405return test_array [0];
23406
23407  ;
23408  return 0;
23409}
23410_ACEOF
23411if ac_fn_c_try_compile "$LINENO"; then :
23412  ac_cv_type_long_double=yes
23413else
23414  ac_cv_type_long_double=no
23415fi
23416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417     fi
23418fi
23419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23420$as_echo "$ac_cv_type_long_double" >&6; }
23421  if test $ac_cv_type_long_double = yes; then
23422
23423$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23424
23425  fi
23426
23427
23428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
23429$as_echo_n "checking for long double with more range or precision than double... " >&6; }
23430if ${ac_cv_type_long_double_wider+:} false; then :
23431  $as_echo_n "(cached) " >&6
23432else
23433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434/* end confdefs.h.  */
23435#include <float.h>
23436	    long double const a[] =
23437	      {
23438		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23439		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23440	      };
23441	    long double
23442	    f (long double x)
23443	    {
23444	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23445			+ (x ? f (x) : 'c'));
23446	    }
23447
23448int
23449main ()
23450{
23451static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23452		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
23453		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
23454		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23455	    && (int) LDBL_EPSILON == 0
23456	  )];
23457test_array [0] = 0;
23458return test_array [0];
23459
23460  ;
23461  return 0;
23462}
23463_ACEOF
23464if ac_fn_c_try_compile "$LINENO"; then :
23465  ac_cv_type_long_double_wider=yes
23466else
23467  ac_cv_type_long_double_wider=no
23468fi
23469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470fi
23471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
23472$as_echo "$ac_cv_type_long_double_wider" >&6; }
23473  if test $ac_cv_type_long_double_wider = yes; then
23474
23475$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
23476
23477  fi
23478
23479
23480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23481$as_echo_n "checking for long long int... " >&6; }
23482if ${ac_cv_type_long_long_int+:} false; then :
23483  $as_echo_n "(cached) " >&6
23484else
23485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23486/* end confdefs.h.  */
23487
23488  /* For now, do not test the preprocessor; as of 2007 there are too many
23489         implementations with broken preprocessors.  Perhaps this can
23490         be revisited in 2012.  In the meantime, code should not expect
23491         #if to work with literals wider than 32 bits.  */
23492      /* Test literals.  */
23493      long long int ll = 9223372036854775807ll;
23494      long long int nll = -9223372036854775807LL;
23495      unsigned long long int ull = 18446744073709551615ULL;
23496      /* Test constant expressions.   */
23497      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23498                     ? 1 : -1)];
23499      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23500                     ? 1 : -1)];
23501      int i = 63;
23502int
23503main ()
23504{
23505/* Test availability of runtime routines for shift and division.  */
23506      long long int llmax = 9223372036854775807ll;
23507      unsigned long long int ullmax = 18446744073709551615ull;
23508      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23509              | (llmax / ll) | (llmax % ll)
23510              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23511              | (ullmax / ull) | (ullmax % ull));
23512  ;
23513  return 0;
23514}
23515
23516_ACEOF
23517if ac_fn_c_try_link "$LINENO"; then :
23518                          if test "$cross_compiling" = yes; then :
23519  ac_cv_type_long_long_int=yes
23520else
23521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23522/* end confdefs.h.  */
23523#include <limits.h>
23524               #ifndef LLONG_MAX
23525               # define HALF \
23526                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23527               # define LLONG_MAX (HALF - 1 + HALF)
23528               #endif
23529int
23530main ()
23531{
23532long long int n = 1;
23533               int i;
23534               for (i = 0; ; i++)
23535                 {
23536                   long long int m = n << i;
23537                   if (m >> i != n)
23538                     return 1;
23539                   if (LLONG_MAX / 2 < m)
23540                     break;
23541                 }
23542               return 0;
23543  ;
23544  return 0;
23545}
23546_ACEOF
23547if ac_fn_c_try_run "$LINENO"; then :
23548  ac_cv_type_long_long_int=yes
23549else
23550  ac_cv_type_long_long_int=no
23551fi
23552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23553  conftest.$ac_objext conftest.beam conftest.$ac_ext
23554fi
23555
23556else
23557  ac_cv_type_long_long_int=no
23558fi
23559rm -f core conftest.err conftest.$ac_objext \
23560    conftest$ac_exeext conftest.$ac_ext
23561fi
23562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23563$as_echo "$ac_cv_type_long_long_int" >&6; }
23564  if test $ac_cv_type_long_long_int = yes; then
23565
23566$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23567
23568  fi
23569
23570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23571$as_echo_n "checking for mbstate_t... " >&6; }
23572if ${ac_cv_type_mbstate_t+:} false; then :
23573  $as_echo_n "(cached) " >&6
23574else
23575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576/* end confdefs.h.  */
23577$ac_includes_default
23578#	    include <wchar.h>
23579int
23580main ()
23581{
23582mbstate_t x; return sizeof x;
23583  ;
23584  return 0;
23585}
23586_ACEOF
23587if ac_fn_c_try_compile "$LINENO"; then :
23588  ac_cv_type_mbstate_t=yes
23589else
23590  ac_cv_type_mbstate_t=no
23591fi
23592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593fi
23594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23595$as_echo "$ac_cv_type_mbstate_t" >&6; }
23596   if test $ac_cv_type_mbstate_t = yes; then
23597
23598$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23599
23600   else
23601
23602$as_echo "#define mbstate_t int" >>confdefs.h
23603
23604   fi
23605ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23606if test "x$ac_cv_type_mode_t" = xyes; then :
23607
23608else
23609
23610cat >>confdefs.h <<_ACEOF
23611#define mode_t int
23612_ACEOF
23613
23614fi
23615
23616ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23617if test "x$ac_cv_type_off_t" = xyes; then :
23618
23619else
23620
23621cat >>confdefs.h <<_ACEOF
23622#define off_t long int
23623_ACEOF
23624
23625fi
23626
23627ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23628if test "x$ac_cv_type_pid_t" = xyes; then :
23629
23630else
23631
23632cat >>confdefs.h <<_ACEOF
23633#define pid_t int
23634_ACEOF
23635
23636fi
23637
23638ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23639if test "x$ac_cv_type_size_t" = xyes; then :
23640
23641else
23642
23643cat >>confdefs.h <<_ACEOF
23644#define size_t unsigned int
23645_ACEOF
23646
23647fi
23648
23649ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23650if test "x$ac_cv_type_ssize_t" = xyes; then :
23651
23652else
23653
23654cat >>confdefs.h <<_ACEOF
23655#define ssize_t int
23656_ACEOF
23657
23658fi
23659
23660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23661$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23662if ${ac_cv_type_uid_t+:} false; then :
23663  $as_echo_n "(cached) " >&6
23664else
23665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23666/* end confdefs.h.  */
23667#include <sys/types.h>
23668
23669_ACEOF
23670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23671  $EGREP "uid_t" >/dev/null 2>&1; then :
23672  ac_cv_type_uid_t=yes
23673else
23674  ac_cv_type_uid_t=no
23675fi
23676rm -f conftest*
23677
23678fi
23679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23680$as_echo "$ac_cv_type_uid_t" >&6; }
23681if test $ac_cv_type_uid_t = no; then
23682
23683$as_echo "#define uid_t int" >>confdefs.h
23684
23685
23686$as_echo "#define gid_t int" >>confdefs.h
23687
23688fi
23689
23690ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23691case $ac_cv_c_uint8_t in #(
23692  no|yes) ;; #(
23693  *)
23694
23695$as_echo "#define _UINT8_T 1" >>confdefs.h
23696
23697
23698cat >>confdefs.h <<_ACEOF
23699#define uint8_t $ac_cv_c_uint8_t
23700_ACEOF
23701;;
23702  esac
23703
23704ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23705case $ac_cv_c_uint16_t in #(
23706  no|yes) ;; #(
23707  *)
23708
23709
23710cat >>confdefs.h <<_ACEOF
23711#define uint16_t $ac_cv_c_uint16_t
23712_ACEOF
23713;;
23714  esac
23715
23716ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23717case $ac_cv_c_uint32_t in #(
23718  no|yes) ;; #(
23719  *)
23720
23721$as_echo "#define _UINT32_T 1" >>confdefs.h
23722
23723
23724cat >>confdefs.h <<_ACEOF
23725#define uint32_t $ac_cv_c_uint32_t
23726_ACEOF
23727;;
23728  esac
23729
23730ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23731case $ac_cv_c_uint64_t in #(
23732  no|yes) ;; #(
23733  *)
23734
23735$as_echo "#define _UINT64_T 1" >>confdefs.h
23736
23737
23738cat >>confdefs.h <<_ACEOF
23739#define uint64_t $ac_cv_c_uint64_t
23740_ACEOF
23741;;
23742  esac
23743
23744
23745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23746$as_echo_n "checking for unsigned long long int... " >&6; }
23747if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23748  $as_echo_n "(cached) " >&6
23749else
23750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751/* end confdefs.h.  */
23752
23753  /* For now, do not test the preprocessor; as of 2007 there are too many
23754         implementations with broken preprocessors.  Perhaps this can
23755         be revisited in 2012.  In the meantime, code should not expect
23756         #if to work with literals wider than 32 bits.  */
23757      /* Test literals.  */
23758      long long int ll = 9223372036854775807ll;
23759      long long int nll = -9223372036854775807LL;
23760      unsigned long long int ull = 18446744073709551615ULL;
23761      /* Test constant expressions.   */
23762      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23763                     ? 1 : -1)];
23764      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23765                     ? 1 : -1)];
23766      int i = 63;
23767int
23768main ()
23769{
23770/* Test availability of runtime routines for shift and division.  */
23771      long long int llmax = 9223372036854775807ll;
23772      unsigned long long int ullmax = 18446744073709551615ull;
23773      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23774              | (llmax / ll) | (llmax % ll)
23775              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23776              | (ullmax / ull) | (ullmax % ull));
23777  ;
23778  return 0;
23779}
23780
23781_ACEOF
23782if ac_fn_c_try_link "$LINENO"; then :
23783  ac_cv_type_unsigned_long_long_int=yes
23784else
23785  ac_cv_type_unsigned_long_long_int=no
23786fi
23787rm -f core conftest.err conftest.$ac_objext \
23788    conftest$ac_exeext conftest.$ac_ext
23789fi
23790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23791$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23792  if test $ac_cv_type_unsigned_long_long_int = yes; then
23793
23794$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23795
23796  fi
23797
23798
23799
23800  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23801if test "x$ac_cv_type_uintmax_t" = xyes; then :
23802
23803$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23804
23805else
23806  test $ac_cv_type_unsigned_long_long_int = yes \
23807       && ac_type='unsigned long long int' \
23808       || ac_type='unsigned long int'
23809
23810cat >>confdefs.h <<_ACEOF
23811#define uintmax_t $ac_type
23812_ACEOF
23813
23814fi
23815
23816
23817
23818  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23819if test "x$ac_cv_type_uintptr_t" = xyes; then :
23820
23821$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23822
23823else
23824  for ac_type in 'unsigned int' 'unsigned long int' \
23825	'unsigned long long int'; do
23826       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23827/* end confdefs.h.  */
23828$ac_includes_default
23829int
23830main ()
23831{
23832static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23833test_array [0] = 0;
23834return test_array [0];
23835
23836  ;
23837  return 0;
23838}
23839_ACEOF
23840if ac_fn_c_try_compile "$LINENO"; then :
23841
23842cat >>confdefs.h <<_ACEOF
23843#define uintptr_t $ac_type
23844_ACEOF
23845
23846	  ac_type=
23847fi
23848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849       test -z "$ac_type" && break
23850     done
23851fi
23852
23853
23854
23855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23856$as_echo_n "checking for unsigned long long int... " >&6; }
23857if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23858  $as_echo_n "(cached) " >&6
23859else
23860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861/* end confdefs.h.  */
23862
23863  /* For now, do not test the preprocessor; as of 2007 there are too many
23864         implementations with broken preprocessors.  Perhaps this can
23865         be revisited in 2012.  In the meantime, code should not expect
23866         #if to work with literals wider than 32 bits.  */
23867      /* Test literals.  */
23868      long long int ll = 9223372036854775807ll;
23869      long long int nll = -9223372036854775807LL;
23870      unsigned long long int ull = 18446744073709551615ULL;
23871      /* Test constant expressions.   */
23872      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23873                     ? 1 : -1)];
23874      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23875                     ? 1 : -1)];
23876      int i = 63;
23877int
23878main ()
23879{
23880/* Test availability of runtime routines for shift and division.  */
23881      long long int llmax = 9223372036854775807ll;
23882      unsigned long long int ullmax = 18446744073709551615ull;
23883      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23884              | (llmax / ll) | (llmax % ll)
23885              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23886              | (ullmax / ull) | (ullmax % ull));
23887  ;
23888  return 0;
23889}
23890
23891_ACEOF
23892if ac_fn_c_try_link "$LINENO"; then :
23893  ac_cv_type_unsigned_long_long_int=yes
23894else
23895  ac_cv_type_unsigned_long_long_int=no
23896fi
23897rm -f core conftest.err conftest.$ac_objext \
23898    conftest$ac_exeext conftest.$ac_ext
23899fi
23900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23901$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23902  if test $ac_cv_type_unsigned_long_long_int = yes; then
23903
23904$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23905
23906  fi
23907
23908
23909# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23910# C compiler predefines it.
23911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23912$as_echo_n "checking whether char is unsigned... " >&6; }
23913if ${ac_cv_c_char_unsigned+:} false; then :
23914  $as_echo_n "(cached) " >&6
23915else
23916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917/* end confdefs.h.  */
23918$ac_includes_default
23919int
23920main ()
23921{
23922static int test_array [1 - 2 * !(((char) -1) < 0)];
23923test_array [0] = 0;
23924return test_array [0];
23925
23926  ;
23927  return 0;
23928}
23929_ACEOF
23930if ac_fn_c_try_compile "$LINENO"; then :
23931  ac_cv_c_char_unsigned=no
23932else
23933  ac_cv_c_char_unsigned=yes
23934fi
23935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936fi
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23938$as_echo "$ac_cv_c_char_unsigned" >&6; }
23939if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23940  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23941
23942fi
23943
23944
23945# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23946# The cast to long int works around a bug in the HP C Compiler
23947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23949# This bug is HP SR number 8606223364.
23950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23951$as_echo_n "checking size of signed short... " >&6; }
23952if ${ac_cv_sizeof_signed_short+:} false; then :
23953  $as_echo_n "(cached) " >&6
23954else
23955  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23956
23957else
23958  if test "$ac_cv_type_signed_short" = yes; then
23959     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23961as_fn_error 77 "cannot compute sizeof (signed short)
23962See \`config.log' for more details" "$LINENO" 5; }
23963   else
23964     ac_cv_sizeof_signed_short=0
23965   fi
23966fi
23967
23968fi
23969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23970$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23971
23972
23973
23974cat >>confdefs.h <<_ACEOF
23975#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23976_ACEOF
23977
23978
23979
23980# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23981# The cast to long int works around a bug in the HP C Compiler
23982# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23983# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23984# This bug is HP SR number 8606223364.
23985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23986$as_echo_n "checking size of unsigned short... " >&6; }
23987if ${ac_cv_sizeof_unsigned_short+:} false; then :
23988  $as_echo_n "(cached) " >&6
23989else
23990  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23991
23992else
23993  if test "$ac_cv_type_unsigned_short" = yes; then
23994     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23996as_fn_error 77 "cannot compute sizeof (unsigned short)
23997See \`config.log' for more details" "$LINENO" 5; }
23998   else
23999     ac_cv_sizeof_unsigned_short=0
24000   fi
24001fi
24002
24003fi
24004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
24005$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24006
24007
24008
24009cat >>confdefs.h <<_ACEOF
24010#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24011_ACEOF
24012
24013
24014
24015# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24016# The cast to long int works around a bug in the HP C Compiler
24017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24019# This bug is HP SR number 8606223364.
24020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
24021$as_echo_n "checking size of signed int... " >&6; }
24022if ${ac_cv_sizeof_signed_int+:} false; then :
24023  $as_echo_n "(cached) " >&6
24024else
24025  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
24026
24027else
24028  if test "$ac_cv_type_signed_int" = yes; then
24029     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24031as_fn_error 77 "cannot compute sizeof (signed int)
24032See \`config.log' for more details" "$LINENO" 5; }
24033   else
24034     ac_cv_sizeof_signed_int=0
24035   fi
24036fi
24037
24038fi
24039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
24040$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24041
24042
24043
24044cat >>confdefs.h <<_ACEOF
24045#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24046_ACEOF
24047
24048
24049
24050# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24051# The cast to long int works around a bug in the HP C Compiler
24052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24054# This bug is HP SR number 8606223364.
24055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24056$as_echo_n "checking size of unsigned int... " >&6; }
24057if ${ac_cv_sizeof_unsigned_int+:} false; then :
24058  $as_echo_n "(cached) " >&6
24059else
24060  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
24061
24062else
24063  if test "$ac_cv_type_unsigned_int" = yes; then
24064     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24066as_fn_error 77 "cannot compute sizeof (unsigned int)
24067See \`config.log' for more details" "$LINENO" 5; }
24068   else
24069     ac_cv_sizeof_unsigned_int=0
24070   fi
24071fi
24072
24073fi
24074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24075$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24076
24077
24078
24079cat >>confdefs.h <<_ACEOF
24080#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24081_ACEOF
24082
24083
24084
24085# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24086# The cast to long int works around a bug in the HP C Compiler
24087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24089# This bug is HP SR number 8606223364.
24090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
24091$as_echo_n "checking size of signed long... " >&6; }
24092if ${ac_cv_sizeof_signed_long+:} false; then :
24093  $as_echo_n "(cached) " >&6
24094else
24095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
24096
24097else
24098  if test "$ac_cv_type_signed_long" = yes; then
24099     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24101as_fn_error 77 "cannot compute sizeof (signed long)
24102See \`config.log' for more details" "$LINENO" 5; }
24103   else
24104     ac_cv_sizeof_signed_long=0
24105   fi
24106fi
24107
24108fi
24109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
24110$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24111
24112
24113
24114cat >>confdefs.h <<_ACEOF
24115#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24116_ACEOF
24117
24118
24119
24120# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24121# The cast to long int works around a bug in the HP C Compiler
24122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24124# This bug is HP SR number 8606223364.
24125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
24126$as_echo_n "checking size of unsigned long... " >&6; }
24127if ${ac_cv_sizeof_unsigned_long+:} false; then :
24128  $as_echo_n "(cached) " >&6
24129else
24130  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
24131
24132else
24133  if test "$ac_cv_type_unsigned_long" = yes; then
24134     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24136as_fn_error 77 "cannot compute sizeof (unsigned long)
24137See \`config.log' for more details" "$LINENO" 5; }
24138   else
24139     ac_cv_sizeof_unsigned_long=0
24140   fi
24141fi
24142
24143fi
24144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
24145$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24146
24147
24148
24149cat >>confdefs.h <<_ACEOF
24150#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24151_ACEOF
24152
24153
24154
24155# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
24156# 'signed long long' is not supported then the value defined is zero.
24157# The cast to long int works around a bug in the HP C Compiler
24158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24160# This bug is HP SR number 8606223364.
24161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
24162$as_echo_n "checking size of signed long long... " >&6; }
24163if ${ac_cv_sizeof_signed_long_long+:} false; then :
24164  $as_echo_n "(cached) " >&6
24165else
24166  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
24167
24168else
24169  if test "$ac_cv_type_signed_long_long" = yes; then
24170     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24172as_fn_error 77 "cannot compute sizeof (signed long long)
24173See \`config.log' for more details" "$LINENO" 5; }
24174   else
24175     ac_cv_sizeof_signed_long_long=0
24176   fi
24177fi
24178
24179fi
24180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
24181$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24182
24183
24184
24185cat >>confdefs.h <<_ACEOF
24186#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24187_ACEOF
24188
24189
24190
24191# Obtain size of a 'unsigned long long' and define as
24192# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
24193# supported then the value defined is zero.
24194# The cast to long int works around a bug in the HP C Compiler
24195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24197# This bug is HP SR number 8606223364.
24198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
24199$as_echo_n "checking size of unsigned long long... " >&6; }
24200if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
24201  $as_echo_n "(cached) " >&6
24202else
24203  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
24204
24205else
24206  if test "$ac_cv_type_unsigned_long_long" = yes; then
24207     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24209as_fn_error 77 "cannot compute sizeof (unsigned long long)
24210See \`config.log' for more details" "$LINENO" 5; }
24211   else
24212     ac_cv_sizeof_unsigned_long_long=0
24213   fi
24214fi
24215
24216fi
24217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
24218$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24219
24220
24221
24222cat >>confdefs.h <<_ACEOF
24223#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24224_ACEOF
24225
24226
24227
24228# Obtain size of off_t and define as SIZEOF_OFF_T
24229# The cast to long int works around a bug in the HP C Compiler
24230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24232# This bug is HP SR number 8606223364.
24233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24234$as_echo_n "checking size of off_t... " >&6; }
24235if ${ac_cv_sizeof_off_t+:} false; then :
24236  $as_echo_n "(cached) " >&6
24237else
24238  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
24239
24240else
24241  if test "$ac_cv_type_off_t" = yes; then
24242     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24244as_fn_error 77 "cannot compute sizeof (off_t)
24245See \`config.log' for more details" "$LINENO" 5; }
24246   else
24247     ac_cv_sizeof_off_t=0
24248   fi
24249fi
24250
24251fi
24252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24253$as_echo "$ac_cv_sizeof_off_t" >&6; }
24254
24255
24256
24257cat >>confdefs.h <<_ACEOF
24258#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24259_ACEOF
24260
24261
24262
24263# Obtain size of size_t and define as SIZEOF_SIZE_T
24264# The cast to long int works around a bug in the HP C Compiler
24265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24267# This bug is HP SR number 8606223364.
24268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24269$as_echo_n "checking size of size_t... " >&6; }
24270if ${ac_cv_sizeof_size_t+:} false; then :
24271  $as_echo_n "(cached) " >&6
24272else
24273  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
24274
24275else
24276  if test "$ac_cv_type_size_t" = yes; then
24277     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24279as_fn_error 77 "cannot compute sizeof (size_t)
24280See \`config.log' for more details" "$LINENO" 5; }
24281   else
24282     ac_cv_sizeof_size_t=0
24283   fi
24284fi
24285
24286fi
24287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24288$as_echo "$ac_cv_sizeof_size_t" >&6; }
24289
24290
24291
24292cat >>confdefs.h <<_ACEOF
24293#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24294_ACEOF
24295
24296
24297
24298# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24299# The cast to long int works around a bug in the HP C Compiler
24300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24302# This bug is HP SR number 8606223364.
24303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24304$as_echo_n "checking size of ssize_t... " >&6; }
24305if ${ac_cv_sizeof_ssize_t+:} false; then :
24306  $as_echo_n "(cached) " >&6
24307else
24308  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
24309
24310else
24311  if test "$ac_cv_type_ssize_t" = yes; then
24312     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24314as_fn_error 77 "cannot compute sizeof (ssize_t)
24315See \`config.log' for more details" "$LINENO" 5; }
24316   else
24317     ac_cv_sizeof_ssize_t=0
24318   fi
24319fi
24320
24321fi
24322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24323$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24324
24325
24326
24327cat >>confdefs.h <<_ACEOF
24328#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24329_ACEOF
24330
24331
24332
24333# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24334# The cast to long int works around a bug in the HP C Compiler
24335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24337# This bug is HP SR number 8606223364.
24338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
24339$as_echo_n "checking size of unsigned int*... " >&6; }
24340if ${ac_cv_sizeof_unsigned_intp+:} false; then :
24341  $as_echo_n "(cached) " >&6
24342else
24343  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
24344
24345else
24346  if test "$ac_cv_type_unsigned_intp" = yes; then
24347     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24349as_fn_error 77 "cannot compute sizeof (unsigned int*)
24350See \`config.log' for more details" "$LINENO" 5; }
24351   else
24352     ac_cv_sizeof_unsigned_intp=0
24353   fi
24354fi
24355
24356fi
24357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
24358$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24359
24360
24361
24362cat >>confdefs.h <<_ACEOF
24363#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24364_ACEOF
24365
24366
24367
24368#
24369# Compute sized types for current CPU and compiler options.
24370#
24371
24372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
24373$as_echo_n "checking for signed 8-bit type... " >&6; }
24374INT8_T='signed char'
24375{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24376$as_echo "$as_me: $INT8_T" >&6;}
24377
24378
24379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
24380$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24381UINT8_T='unsigned char'
24382{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24383$as_echo "$as_me: $UINT8_T" >&6;}
24384
24385
24386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
24387$as_echo_n "checking for signed 16-bit type... " >&6; }
24388INT16_T='signed short'
24389{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24390$as_echo "$as_me: $INT16_T" >&6;}
24391
24392
24393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
24394$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24395UINT16_T='unsigned short'
24396{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24397$as_echo "$as_me: $UINT16_T" >&6;}
24398
24399
24400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
24401$as_echo_n "checking for signed 32-bit type... " >&6; }
24402INT32_T='none'
24403INT32_F='none'
24404if test $ac_cv_sizeof_signed_int -eq 4; then
24405  INT32_T='signed int'
24406  INT32_F='""'
24407elif test $ac_cv_sizeof_signed_long -eq 4; then
24408  INT32_T='signed long'
24409  INT32_F='"l"'
24410fi
24411{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24412$as_echo "$as_me: $INT32_T" >&6;}
24413
24414
24415
24416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
24417$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24418UINT32_T='none'
24419UINT32_F='none'
24420if test $ac_cv_sizeof_unsigned_int -eq 4; then
24421  UINT32_T='unsigned int'
24422  UINT32_F='""'
24423elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24424  UINT32_T='unsigned long'
24425  UINT32_F='"l"'
24426fi
24427{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24428$as_echo "$as_me: $UINT32_T" >&6;}
24429
24430
24431
24432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
24433$as_echo_n "checking for signed 64-bit type... " >&6; }
24434INT64_T='none'
24435INT64_F='none'
24436if test $ac_cv_sizeof_signed_long -eq 8; then
24437  INT64_T='signed long'
24438  INT64_F='"l"'
24439elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24440  INT64_T='signed long long'
24441  INT64_F='"ll"'
24442fi
24443case "${host_os}" in
24444  mingw* )
24445    INT64_F='"I64"'
24446    ;;
24447esac
24448{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24449$as_echo "$as_me: $INT64_T" >&6;}
24450
24451
24452
24453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
24454$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24455UINT64_T='none'
24456UINT64_F='none'
24457if test $ac_cv_sizeof_unsigned_long -eq 8; then
24458  UINT64_T='unsigned long'
24459  UINT64_F='"l"'
24460elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24461  UINT64_T='unsigned long long'
24462  UINT64_F='"ll"'
24463fi
24464case "${host_os}" in
24465  mingw* )
24466    UINT64_F='"I64"'
24467    ;;
24468esac
24469{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24470$as_echo "$as_me: $UINT64_T" >&6;}
24471
24472
24473
24474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
24475$as_echo_n "checking for unsigned maximum type... " >&6; }
24476UINTMAX_T='none'
24477UINTMAX_F='none'
24478if test "$UINT64_T" != 'none'; then
24479  UINTMAX_T=$UINT64_T
24480  UINTMAX_F=$UINT64_F
24481elif test "$UINT32_T" != 'none'; then
24482  UINTMAX_T=$UINT32_T
24483  UINTMAX_F=$UINT32_F
24484fi
24485{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24486$as_echo "$as_me: $UINTMAX_T" >&6;}
24487
24488
24489
24490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
24491$as_echo_n "checking for pointer difference type... " >&6; }
24492UINTPTR_T='none'
24493UINTPTR_F='none'
24494if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24495  UINTPTR_T='unsigned long'
24496  UINTPTR_F='"l"'
24497elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24498  UINTPTR_T='unsigned long long'
24499  UINTPTR_F='"ll"'
24500fi
24501{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24502$as_echo "$as_me: $UINTPTR_T" >&6;}
24503
24504
24505
24506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
24507$as_echo_n "checking whether our compiler supports __func__... " >&6; }
24508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24509/* end confdefs.h.  */
24510
24511int
24512main ()
24513{
24514{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24515  ;
24516  return 0;
24517}
24518_ACEOF
24519if ac_fn_c_try_compile "$LINENO"; then :
24520  { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24521$as_echo "$as_me: yes" >&6;}
24522else
24523  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24524$as_echo "$as_me: no" >&6;}
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
24526$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24528/* end confdefs.h.  */
24529
24530int
24531main ()
24532{
24533{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24534  ;
24535  return 0;
24536}
24537_ACEOF
24538if ac_fn_c_try_compile "$LINENO"; then :
24539  { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24540$as_echo "$as_me: yes" >&6;}
24541
24542$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
24543
24544else
24545  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24546$as_echo "$as_me: no" >&6;}
24547
24548$as_echo "#define __func__ __FILE__" >>confdefs.h
24549
24550fi
24551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552fi
24553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24554
24555########
24556#
24557# Check for functions
24558#
24559########
24560for ac_header in stdlib.h unistd.h
24561do :
24562  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24563ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24565  cat >>confdefs.h <<_ACEOF
24566#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567_ACEOF
24568
24569fi
24570
24571done
24572
24573for ac_func in getpagesize
24574do :
24575  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24576if test "x$ac_cv_func_getpagesize" = xyes; then :
24577  cat >>confdefs.h <<_ACEOF
24578#define HAVE_GETPAGESIZE 1
24579_ACEOF
24580
24581fi
24582done
24583
24584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24585$as_echo_n "checking for working mmap file i/o... " >&6; }
24586if ${magick_cv_func_mmap_fileio+:} false; then :
24587  $as_echo_n "(cached) " >&6
24588else
24589  if test "$cross_compiling" = yes; then :
24590  magick_cv_func_mmap_fileio=no
24591else
24592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593/* end confdefs.h.  */
24594$ac_includes_default
24595/* malloc might have been renamed as rpl_malloc. */
24596#undef malloc
24597
24598/*
24599   This test is derived from GNU Autoconf's similar macro.
24600   The purpose of this test is to verify that files may be memory
24601   mapped, and that memory mapping and file I/O are coherent.
24602
24603   The test creates a test file, memory maps the file, updates
24604   the file using the memory map, and then reads the file using
24605   file I/O to verify that the file contains the updates.
24606*/
24607
24608#include <fcntl.h>
24609#include <sys/mman.h>
24610
24611#if !STDC_HEADERS && !HAVE_STDLIB_H
24612char *malloc ();
24613#endif
24614
24615/* This mess was copied from the GNU getpagesize.h.  */
24616#if !HAVE_GETPAGESIZE
24617/* Assume that all systems that can run configure have sys/param.h.  */
24618# if !HAVE_SYS_PARAM_H
24619#  define HAVE_SYS_PARAM_H 1
24620# endif
24621
24622# ifdef _SC_PAGESIZE
24623#  define getpagesize() sysconf(_SC_PAGESIZE)
24624# else /* no _SC_PAGESIZE */
24625#  if HAVE_SYS_PARAM_H
24626#   include <sys/param.h>
24627#   ifdef EXEC_PAGESIZE
24628#    define getpagesize() EXEC_PAGESIZE
24629#   else /* no EXEC_PAGESIZE */
24630#    ifdef NBPG
24631#     define getpagesize() NBPG * CLSIZE
24632#     ifndef CLSIZE
24633#      define CLSIZE 1
24634#     endif /* no CLSIZE */
24635#    else /* no NBPG */
24636#     ifdef NBPC
24637#      define getpagesize() NBPC
24638#     else /* no NBPC */
24639#      ifdef PAGESIZE
24640#       define getpagesize() PAGESIZE
24641#      endif /* PAGESIZE */
24642#     endif /* no NBPC */
24643#    endif /* no NBPG */
24644#   endif /* no EXEC_PAGESIZE */
24645#  else /* no HAVE_SYS_PARAM_H */
24646#   define getpagesize() 8192	/* punt totally */
24647#  endif /* no HAVE_SYS_PARAM_H */
24648# endif /* no _SC_PAGESIZE */
24649
24650#endif /* no HAVE_GETPAGESIZE */
24651
24652int
24653main ()
24654{
24655  char *data, *data2, *data3;
24656  int i, pagesize;
24657  int fd;
24658
24659  pagesize = getpagesize ();
24660
24661  /* First, make a file with some known garbage in it. */
24662  data = (char *) malloc (pagesize);
24663  if (!data)
24664    exit (1);
24665  for (i = 0; i < pagesize; ++i)
24666    *(data + i) = rand ();
24667  umask (0);
24668  fd = creat ("conftest.mmap", 0600);
24669  if (fd < 0)
24670    exit (1);
24671  if (write (fd, data, pagesize) != pagesize)
24672    exit (1);
24673  close (fd);
24674
24675  /* Mmap the file as read/write/shared and verify that we see the
24676  same garbage. */
24677  fd = open ("conftest.mmap", O_RDWR);
24678  if (fd < 0)
24679    exit (1);
24680  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24681  if (data2 == 0)
24682    exit (1);
24683  for (i = 0; i < pagesize; ++i)
24684    if (*(data + i) != *(data2 + i))
24685      exit (1);
24686
24687  /* Finally, make sure that changes to the mapped area
24688     percolate back to the file as seen by read().  */
24689  for (i = 0; i < pagesize; ++i)
24690    *(data2 + i) = *(data2 + i) + 1;
24691  data3 = (char *) malloc (pagesize);
24692  if (!data3)
24693    exit (1);
24694  if (read (fd, data3, pagesize) != pagesize)
24695    exit (1);
24696  for (i = 0; i < pagesize; ++i)
24697    if (*(data2 + i) != *(data3 + i))
24698      exit (1);
24699  close (fd);
24700  exit (0);
24701}
24702_ACEOF
24703if ac_fn_c_try_run "$LINENO"; then :
24704  magick_cv_func_mmap_fileio=yes
24705else
24706  magick_cv_func_mmap_fileio=no
24707fi
24708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24709  conftest.$ac_objext conftest.beam conftest.$ac_ext
24710fi
24711
24712fi
24713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24714$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24715if test $magick_cv_func_mmap_fileio = yes; then
24716
24717$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24718
24719fi
24720rm -f conftest.mmap
24721
24722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24723$as_echo_n "checking whether closedir returns void... " >&6; }
24724if ${ac_cv_func_closedir_void+:} false; then :
24725  $as_echo_n "(cached) " >&6
24726else
24727  if test "$cross_compiling" = yes; then :
24728  ac_cv_func_closedir_void=yes
24729else
24730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731/* end confdefs.h.  */
24732$ac_includes_default
24733#include <$ac_header_dirent>
24734#ifndef __cplusplus
24735int closedir ();
24736#endif
24737
24738int
24739main ()
24740{
24741return closedir (opendir (".")) != 0;
24742  ;
24743  return 0;
24744}
24745_ACEOF
24746if ac_fn_c_try_run "$LINENO"; then :
24747  ac_cv_func_closedir_void=no
24748else
24749  ac_cv_func_closedir_void=yes
24750fi
24751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24752  conftest.$ac_objext conftest.beam conftest.$ac_ext
24753fi
24754
24755fi
24756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24757$as_echo "$ac_cv_func_closedir_void" >&6; }
24758if test $ac_cv_func_closedir_void = yes; then
24759
24760$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24761
24762fi
24763
24764
24765
24766
24767  for ac_header in $ac_header_list
24768do :
24769  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24770ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24771"
24772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24773  cat >>confdefs.h <<_ACEOF
24774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24775_ACEOF
24776
24777fi
24778
24779done
24780
24781
24782
24783
24784
24785
24786
24787
24788for ac_func in getpagesize
24789do :
24790  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24791if test "x$ac_cv_func_getpagesize" = xyes; then :
24792  cat >>confdefs.h <<_ACEOF
24793#define HAVE_GETPAGESIZE 1
24794_ACEOF
24795
24796fi
24797done
24798
24799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24800$as_echo_n "checking for working mmap... " >&6; }
24801if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24802  $as_echo_n "(cached) " >&6
24803else
24804  if test "$cross_compiling" = yes; then :
24805  ac_cv_func_mmap_fixed_mapped=no
24806else
24807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24808/* end confdefs.h.  */
24809$ac_includes_default
24810/* malloc might have been renamed as rpl_malloc. */
24811#undef malloc
24812
24813/* Thanks to Mike Haertel and Jim Avera for this test.
24814   Here is a matrix of mmap possibilities:
24815	mmap private not fixed
24816	mmap private fixed at somewhere currently unmapped
24817	mmap private fixed at somewhere already mapped
24818	mmap shared not fixed
24819	mmap shared fixed at somewhere currently unmapped
24820	mmap shared fixed at somewhere already mapped
24821   For private mappings, we should verify that changes cannot be read()
24822   back from the file, nor mmap's back from the file at a different
24823   address.  (There have been systems where private was not correctly
24824   implemented like the infamous i386 svr4.0, and systems where the
24825   VM page cache was not coherent with the file system buffer cache
24826   like early versions of FreeBSD and possibly contemporary NetBSD.)
24827   For shared mappings, we should conversely verify that changes get
24828   propagated back to all the places they're supposed to be.
24829
24830   Grep wants private fixed already mapped.
24831   The main things grep needs to know about mmap are:
24832   * does it exist and is it safe to write into the mmap'd area
24833   * how to use it (BSD variants)  */
24834
24835#include <fcntl.h>
24836#include <sys/mman.h>
24837
24838#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24839char *malloc ();
24840#endif
24841
24842/* This mess was copied from the GNU getpagesize.h.  */
24843#ifndef HAVE_GETPAGESIZE
24844# ifdef _SC_PAGESIZE
24845#  define getpagesize() sysconf(_SC_PAGESIZE)
24846# else /* no _SC_PAGESIZE */
24847#  ifdef HAVE_SYS_PARAM_H
24848#   include <sys/param.h>
24849#   ifdef EXEC_PAGESIZE
24850#    define getpagesize() EXEC_PAGESIZE
24851#   else /* no EXEC_PAGESIZE */
24852#    ifdef NBPG
24853#     define getpagesize() NBPG * CLSIZE
24854#     ifndef CLSIZE
24855#      define CLSIZE 1
24856#     endif /* no CLSIZE */
24857#    else /* no NBPG */
24858#     ifdef NBPC
24859#      define getpagesize() NBPC
24860#     else /* no NBPC */
24861#      ifdef PAGESIZE
24862#       define getpagesize() PAGESIZE
24863#      endif /* PAGESIZE */
24864#     endif /* no NBPC */
24865#    endif /* no NBPG */
24866#   endif /* no EXEC_PAGESIZE */
24867#  else /* no HAVE_SYS_PARAM_H */
24868#   define getpagesize() 8192	/* punt totally */
24869#  endif /* no HAVE_SYS_PARAM_H */
24870# endif /* no _SC_PAGESIZE */
24871
24872#endif /* no HAVE_GETPAGESIZE */
24873
24874int
24875main ()
24876{
24877  char *data, *data2, *data3;
24878  const char *cdata2;
24879  int i, pagesize;
24880  int fd, fd2;
24881
24882  pagesize = getpagesize ();
24883
24884  /* First, make a file with some known garbage in it. */
24885  data = (char *) malloc (pagesize);
24886  if (!data)
24887    return 1;
24888  for (i = 0; i < pagesize; ++i)
24889    *(data + i) = rand ();
24890  umask (0);
24891  fd = creat ("conftest.mmap", 0600);
24892  if (fd < 0)
24893    return 2;
24894  if (write (fd, data, pagesize) != pagesize)
24895    return 3;
24896  close (fd);
24897
24898  /* Next, check that the tail of a page is zero-filled.  File must have
24899     non-zero length, otherwise we risk SIGBUS for entire page.  */
24900  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24901  if (fd2 < 0)
24902    return 4;
24903  cdata2 = "";
24904  if (write (fd2, cdata2, 1) != 1)
24905    return 5;
24906  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24907  if (data2 == MAP_FAILED)
24908    return 6;
24909  for (i = 0; i < pagesize; ++i)
24910    if (*(data2 + i))
24911      return 7;
24912  close (fd2);
24913  if (munmap (data2, pagesize))
24914    return 8;
24915
24916  /* Next, try to mmap the file at a fixed address which already has
24917     something else allocated at it.  If we can, also make sure that
24918     we see the same garbage.  */
24919  fd = open ("conftest.mmap", O_RDWR);
24920  if (fd < 0)
24921    return 9;
24922  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24923		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24924    return 10;
24925  for (i = 0; i < pagesize; ++i)
24926    if (*(data + i) != *(data2 + i))
24927      return 11;
24928
24929  /* Finally, make sure that changes to the mapped area do not
24930     percolate back to the file as seen by read().  (This is a bug on
24931     some variants of i386 svr4.0.)  */
24932  for (i = 0; i < pagesize; ++i)
24933    *(data2 + i) = *(data2 + i) + 1;
24934  data3 = (char *) malloc (pagesize);
24935  if (!data3)
24936    return 12;
24937  if (read (fd, data3, pagesize) != pagesize)
24938    return 13;
24939  for (i = 0; i < pagesize; ++i)
24940    if (*(data + i) != *(data3 + i))
24941      return 14;
24942  close (fd);
24943  return 0;
24944}
24945_ACEOF
24946if ac_fn_c_try_run "$LINENO"; then :
24947  ac_cv_func_mmap_fixed_mapped=yes
24948else
24949  ac_cv_func_mmap_fixed_mapped=no
24950fi
24951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24952  conftest.$ac_objext conftest.beam conftest.$ac_ext
24953fi
24954
24955fi
24956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24957$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24958if test $ac_cv_func_mmap_fixed_mapped = yes; then
24959
24960$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24961
24962fi
24963rm -f conftest.mmap conftest.txt
24964
24965for ac_header in vfork.h
24966do :
24967  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24968if test "x$ac_cv_header_vfork_h" = xyes; then :
24969  cat >>confdefs.h <<_ACEOF
24970#define HAVE_VFORK_H 1
24971_ACEOF
24972
24973fi
24974
24975done
24976
24977for ac_func in fork vfork
24978do :
24979  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24982  cat >>confdefs.h <<_ACEOF
24983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24984_ACEOF
24985
24986fi
24987done
24988
24989if test "x$ac_cv_func_fork" = xyes; then
24990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24991$as_echo_n "checking for working fork... " >&6; }
24992if ${ac_cv_func_fork_works+:} false; then :
24993  $as_echo_n "(cached) " >&6
24994else
24995  if test "$cross_compiling" = yes; then :
24996  ac_cv_func_fork_works=cross
24997else
24998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999/* end confdefs.h.  */
25000$ac_includes_default
25001int
25002main ()
25003{
25004
25005	  /* By Ruediger Kuhlmann. */
25006	  return fork () < 0;
25007
25008  ;
25009  return 0;
25010}
25011_ACEOF
25012if ac_fn_c_try_run "$LINENO"; then :
25013  ac_cv_func_fork_works=yes
25014else
25015  ac_cv_func_fork_works=no
25016fi
25017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25018  conftest.$ac_objext conftest.beam conftest.$ac_ext
25019fi
25020
25021fi
25022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25023$as_echo "$ac_cv_func_fork_works" >&6; }
25024
25025else
25026  ac_cv_func_fork_works=$ac_cv_func_fork
25027fi
25028if test "x$ac_cv_func_fork_works" = xcross; then
25029  case $host in
25030    *-*-amigaos* | *-*-msdosdjgpp*)
25031      # Override, as these systems have only a dummy fork() stub
25032      ac_cv_func_fork_works=no
25033      ;;
25034    *)
25035      ac_cv_func_fork_works=yes
25036      ;;
25037  esac
25038  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25039$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25040fi
25041ac_cv_func_vfork_works=$ac_cv_func_vfork
25042if test "x$ac_cv_func_vfork" = xyes; then
25043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25044$as_echo_n "checking for working vfork... " >&6; }
25045if ${ac_cv_func_vfork_works+:} false; then :
25046  $as_echo_n "(cached) " >&6
25047else
25048  if test "$cross_compiling" = yes; then :
25049  ac_cv_func_vfork_works=cross
25050else
25051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052/* end confdefs.h.  */
25053/* Thanks to Paul Eggert for this test.  */
25054$ac_includes_default
25055#include <sys/wait.h>
25056#ifdef HAVE_VFORK_H
25057# include <vfork.h>
25058#endif
25059/* On some sparc systems, changes by the child to local and incoming
25060   argument registers are propagated back to the parent.  The compiler
25061   is told about this with #include <vfork.h>, but some compilers
25062   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25063   static variable whose address is put into a register that is
25064   clobbered by the vfork.  */
25065static void
25066#ifdef __cplusplus
25067sparc_address_test (int arg)
25068# else
25069sparc_address_test (arg) int arg;
25070#endif
25071{
25072  static pid_t child;
25073  if (!child) {
25074    child = vfork ();
25075    if (child < 0) {
25076      perror ("vfork");
25077      _exit(2);
25078    }
25079    if (!child) {
25080      arg = getpid();
25081      write(-1, "", 0);
25082      _exit (arg);
25083    }
25084  }
25085}
25086
25087int
25088main ()
25089{
25090  pid_t parent = getpid ();
25091  pid_t child;
25092
25093  sparc_address_test (0);
25094
25095  child = vfork ();
25096
25097  if (child == 0) {
25098    /* Here is another test for sparc vfork register problems.  This
25099       test uses lots of local variables, at least as many local
25100       variables as main has allocated so far including compiler
25101       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25102       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25103       reuse the register of parent for one of the local variables,
25104       since it will think that parent can't possibly be used any more
25105       in this routine.  Assigning to the local variable will thus
25106       munge parent in the parent process.  */
25107    pid_t
25108      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25109      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25110    /* Convince the compiler that p..p7 are live; otherwise, it might
25111       use the same hardware register for all 8 local variables.  */
25112    if (p != p1 || p != p2 || p != p3 || p != p4
25113	|| p != p5 || p != p6 || p != p7)
25114      _exit(1);
25115
25116    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25117       from child file descriptors.  If the child closes a descriptor
25118       before it execs or exits, this munges the parent's descriptor
25119       as well.  Test for this by closing stdout in the child.  */
25120    _exit(close(fileno(stdout)) != 0);
25121  } else {
25122    int status;
25123    struct stat st;
25124
25125    while (wait(&status) != child)
25126      ;
25127    return (
25128	 /* Was there some problem with vforking?  */
25129	 child < 0
25130
25131	 /* Did the child fail?  (This shouldn't happen.)  */
25132	 || status
25133
25134	 /* Did the vfork/compiler bug occur?  */
25135	 || parent != getpid()
25136
25137	 /* Did the file descriptor bug occur?  */
25138	 || fstat(fileno(stdout), &st) != 0
25139	 );
25140  }
25141}
25142_ACEOF
25143if ac_fn_c_try_run "$LINENO"; then :
25144  ac_cv_func_vfork_works=yes
25145else
25146  ac_cv_func_vfork_works=no
25147fi
25148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25149  conftest.$ac_objext conftest.beam conftest.$ac_ext
25150fi
25151
25152fi
25153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25154$as_echo "$ac_cv_func_vfork_works" >&6; }
25155
25156fi;
25157if test "x$ac_cv_func_fork_works" = xcross; then
25158  ac_cv_func_vfork_works=$ac_cv_func_vfork
25159  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25160$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25161fi
25162
25163if test "x$ac_cv_func_vfork_works" = xyes; then
25164
25165$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25166
25167else
25168
25169$as_echo "#define vfork fork" >>confdefs.h
25170
25171fi
25172if test "x$ac_cv_func_fork_works" = xyes; then
25173
25174$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25175
25176fi
25177
25178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
25179$as_echo_n "checking for working memcmp... " >&6; }
25180if ${ac_cv_func_memcmp_working+:} false; then :
25181  $as_echo_n "(cached) " >&6
25182else
25183  if test "$cross_compiling" = yes; then :
25184  ac_cv_func_memcmp_working=no
25185else
25186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25187/* end confdefs.h.  */
25188$ac_includes_default
25189int
25190main ()
25191{
25192
25193  /* Some versions of memcmp are not 8-bit clean.  */
25194  char c0 = '\100', c1 = '\200', c2 = '\201';
25195  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25196    return 1;
25197
25198  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25199     or more and with at least one buffer not starting on a 4-byte boundary.
25200     William Lewis provided this test program.   */
25201  {
25202    char foo[21];
25203    char bar[21];
25204    int i;
25205    for (i = 0; i < 4; i++)
25206      {
25207	char *a = foo + i;
25208	char *b = bar + i;
25209	strcpy (a, "--------01111111");
25210	strcpy (b, "--------10000000");
25211	if (memcmp (a, b, 16) >= 0)
25212	  return 1;
25213      }
25214    return 0;
25215  }
25216
25217  ;
25218  return 0;
25219}
25220_ACEOF
25221if ac_fn_c_try_run "$LINENO"; then :
25222  ac_cv_func_memcmp_working=yes
25223else
25224  ac_cv_func_memcmp_working=no
25225fi
25226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25227  conftest.$ac_objext conftest.beam conftest.$ac_ext
25228fi
25229
25230fi
25231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
25232$as_echo "$ac_cv_func_memcmp_working" >&6; }
25233test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25234  *" memcmp.$ac_objext "* ) ;;
25235  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25236 ;;
25237esac
25238
25239
25240for ac_header in sys/select.h sys/socket.h
25241do :
25242  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25243ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25245  cat >>confdefs.h <<_ACEOF
25246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25247_ACEOF
25248
25249fi
25250
25251done
25252
25253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
25254$as_echo_n "checking types of arguments for select... " >&6; }
25255if ${ac_cv_func_select_args+:} false; then :
25256  $as_echo_n "(cached) " >&6
25257else
25258  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25259 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25260  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262/* end confdefs.h.  */
25263$ac_includes_default
25264#ifdef HAVE_SYS_SELECT_H
25265# include <sys/select.h>
25266#endif
25267#ifdef HAVE_SYS_SOCKET_H
25268# include <sys/socket.h>
25269#endif
25270
25271int
25272main ()
25273{
25274extern int select ($ac_arg1,
25275					    $ac_arg234, $ac_arg234, $ac_arg234,
25276					    $ac_arg5);
25277  ;
25278  return 0;
25279}
25280_ACEOF
25281if ac_fn_c_try_compile "$LINENO"; then :
25282  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25283fi
25284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25285  done
25286 done
25287done
25288# Provide a safe default value.
25289: "${ac_cv_func_select_args=int,int *,struct timeval *}"
25290
25291fi
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
25293$as_echo "$ac_cv_func_select_args" >&6; }
25294ac_save_IFS=$IFS; IFS=','
25295set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25296IFS=$ac_save_IFS
25297shift
25298
25299cat >>confdefs.h <<_ACEOF
25300#define SELECT_TYPE_ARG1 $1
25301_ACEOF
25302
25303
25304cat >>confdefs.h <<_ACEOF
25305#define SELECT_TYPE_ARG234 ($2)
25306_ACEOF
25307
25308
25309cat >>confdefs.h <<_ACEOF
25310#define SELECT_TYPE_ARG5 ($3)
25311_ACEOF
25312
25313rm -f conftest*
25314
25315if ${ac_cv_func_setvbuf_reversed+:} false; then :
25316  $as_echo_n "(cached) " >&6
25317else
25318  ac_cv_func_setvbuf_reversed=no
25319fi
25320
25321
25322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25323$as_echo_n "checking return type of signal handlers... " >&6; }
25324if ${ac_cv_type_signal+:} false; then :
25325  $as_echo_n "(cached) " >&6
25326else
25327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328/* end confdefs.h.  */
25329#include <sys/types.h>
25330#include <signal.h>
25331
25332int
25333main ()
25334{
25335return *(signal (0, 0)) (0) == 1;
25336  ;
25337  return 0;
25338}
25339_ACEOF
25340if ac_fn_c_try_compile "$LINENO"; then :
25341  ac_cv_type_signal=int
25342else
25343  ac_cv_type_signal=void
25344fi
25345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346fi
25347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25348$as_echo "$ac_cv_type_signal" >&6; }
25349
25350cat >>confdefs.h <<_ACEOF
25351#define RETSIGTYPE $ac_cv_type_signal
25352_ACEOF
25353
25354
25355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
25356$as_echo_n "checking for working strtod... " >&6; }
25357if ${ac_cv_func_strtod+:} false; then :
25358  $as_echo_n "(cached) " >&6
25359else
25360  if test "$cross_compiling" = yes; then :
25361  ac_cv_func_strtod=no
25362else
25363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364/* end confdefs.h.  */
25365
25366$ac_includes_default
25367#ifndef strtod
25368double strtod ();
25369#endif
25370int
25371main()
25372{
25373  {
25374    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
25375    char *string = " +69";
25376    char *term;
25377    double value;
25378    value = strtod (string, &term);
25379    if (value != 69 || term != (string + 4))
25380      return 1;
25381  }
25382
25383  {
25384    /* Under Solaris 2.4, strtod returns the wrong value for the
25385       terminating character under some conditions.  */
25386    char *string = "NaN";
25387    char *term;
25388    strtod (string, &term);
25389    if (term != string && *(term - 1) == 0)
25390      return 1;
25391  }
25392  return 0;
25393}
25394
25395_ACEOF
25396if ac_fn_c_try_run "$LINENO"; then :
25397  ac_cv_func_strtod=yes
25398else
25399  ac_cv_func_strtod=no
25400fi
25401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25402  conftest.$ac_objext conftest.beam conftest.$ac_ext
25403fi
25404
25405fi
25406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
25407$as_echo "$ac_cv_func_strtod" >&6; }
25408if test $ac_cv_func_strtod = no; then
25409  case " $LIBOBJS " in
25410  *" strtod.$ac_objext "* ) ;;
25411  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25412 ;;
25413esac
25414
25415ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
25416if test "x$ac_cv_func_pow" = xyes; then :
25417
25418fi
25419
25420if test $ac_cv_func_pow = no; then
25421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
25422$as_echo_n "checking for pow in -lm... " >&6; }
25423if ${ac_cv_lib_m_pow+:} false; then :
25424  $as_echo_n "(cached) " >&6
25425else
25426  ac_check_lib_save_LIBS=$LIBS
25427LIBS="-lm  $LIBS"
25428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429/* end confdefs.h.  */
25430
25431/* Override any GCC internal prototype to avoid an error.
25432   Use char because int might match the return type of a GCC
25433   builtin and then its argument prototype would still apply.  */
25434#ifdef __cplusplus
25435extern "C"
25436#endif
25437char pow ();
25438int
25439main ()
25440{
25441return pow ();
25442  ;
25443  return 0;
25444}
25445_ACEOF
25446if ac_fn_c_try_link "$LINENO"; then :
25447  ac_cv_lib_m_pow=yes
25448else
25449  ac_cv_lib_m_pow=no
25450fi
25451rm -f core conftest.err conftest.$ac_objext \
25452    conftest$ac_exeext conftest.$ac_ext
25453LIBS=$ac_check_lib_save_LIBS
25454fi
25455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
25456$as_echo "$ac_cv_lib_m_pow" >&6; }
25457if test "x$ac_cv_lib_m_pow" = xyes; then :
25458  POW_LIB=-lm
25459else
25460  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
25461$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25462fi
25463
25464fi
25465
25466fi
25467
25468ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25469if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25470  ac_have_decl=1
25471else
25472  ac_have_decl=0
25473fi
25474
25475cat >>confdefs.h <<_ACEOF
25476#define HAVE_DECL_STRERROR_R $ac_have_decl
25477_ACEOF
25478
25479for ac_func in strerror_r
25480do :
25481  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25482if test "x$ac_cv_func_strerror_r" = xyes; then :
25483  cat >>confdefs.h <<_ACEOF
25484#define HAVE_STRERROR_R 1
25485_ACEOF
25486
25487fi
25488done
25489
25490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25491$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25492if ${ac_cv_func_strerror_r_char_p+:} false; then :
25493  $as_echo_n "(cached) " >&6
25494else
25495
25496    ac_cv_func_strerror_r_char_p=no
25497    if test $ac_cv_have_decl_strerror_r = yes; then
25498      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499/* end confdefs.h.  */
25500$ac_includes_default
25501int
25502main ()
25503{
25504
25505	  char buf[100];
25506	  char x = *strerror_r (0, buf, sizeof buf);
25507	  char *p = strerror_r (0, buf, sizeof buf);
25508	  return !p || x;
25509
25510  ;
25511  return 0;
25512}
25513_ACEOF
25514if ac_fn_c_try_compile "$LINENO"; then :
25515  ac_cv_func_strerror_r_char_p=yes
25516fi
25517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518    else
25519      # strerror_r is not declared.  Choose between
25520      # systems that have relatively inaccessible declarations for the
25521      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25522      # former has a strerror_r that returns char*, while the latter
25523      # has a strerror_r that returns `int'.
25524      # This test should segfault on the DEC system.
25525      if test "$cross_compiling" = yes; then :
25526  :
25527else
25528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25529/* end confdefs.h.  */
25530$ac_includes_default
25531	extern char *strerror_r ();
25532int
25533main ()
25534{
25535char buf[100];
25536	  char x = *strerror_r (0, buf, sizeof buf);
25537	  return ! isalpha (x);
25538  ;
25539  return 0;
25540}
25541_ACEOF
25542if ac_fn_c_try_run "$LINENO"; then :
25543  ac_cv_func_strerror_r_char_p=yes
25544fi
25545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25546  conftest.$ac_objext conftest.beam conftest.$ac_ext
25547fi
25548
25549    fi
25550
25551fi
25552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25553$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25554if test $ac_cv_func_strerror_r_char_p = yes; then
25555
25556$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25557
25558fi
25559
25560for ac_func in vprintf
25561do :
25562  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25563if test "x$ac_cv_func_vprintf" = xyes; then :
25564  cat >>confdefs.h <<_ACEOF
25565#define HAVE_VPRINTF 1
25566_ACEOF
25567
25568ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25569if test "x$ac_cv_func__doprnt" = xyes; then :
25570
25571$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25572
25573fi
25574
25575fi
25576done
25577
25578
25579
25580#
25581# Find math library
25582#
25583MATH_LIBS=''
25584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25585$as_echo_n "checking for sqrt in -lm... " >&6; }
25586if ${ac_cv_lib_m_sqrt+:} false; then :
25587  $as_echo_n "(cached) " >&6
25588else
25589  ac_check_lib_save_LIBS=$LIBS
25590LIBS="-lm  $LIBS"
25591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592/* end confdefs.h.  */
25593
25594/* Override any GCC internal prototype to avoid an error.
25595   Use char because int might match the return type of a GCC
25596   builtin and then its argument prototype would still apply.  */
25597#ifdef __cplusplus
25598extern "C"
25599#endif
25600char sqrt ();
25601int
25602main ()
25603{
25604return sqrt ();
25605  ;
25606  return 0;
25607}
25608_ACEOF
25609if ac_fn_c_try_link "$LINENO"; then :
25610  ac_cv_lib_m_sqrt=yes
25611else
25612  ac_cv_lib_m_sqrt=no
25613fi
25614rm -f core conftest.err conftest.$ac_objext \
25615    conftest$ac_exeext conftest.$ac_ext
25616LIBS=$ac_check_lib_save_LIBS
25617fi
25618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25619$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25620if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25621  MATH_LIBS="-lm"
25622fi
25623
25624LIBS="$MATH_LIBS $LIBS"
25625
25626
25627for 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 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
25628do :
25629  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25630ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25631if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25632  cat >>confdefs.h <<_ACEOF
25633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25634_ACEOF
25635
25636fi
25637done
25638
25639
25640#
25641# Check for clock_gettime().
25642#
25643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25644$as_echo_n "checking for library containing clock_gettime... " >&6; }
25645if ${ac_cv_search_clock_gettime+:} false; then :
25646  $as_echo_n "(cached) " >&6
25647else
25648  ac_func_search_save_LIBS=$LIBS
25649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650/* end confdefs.h.  */
25651
25652/* Override any GCC internal prototype to avoid an error.
25653   Use char because int might match the return type of a GCC
25654   builtin and then its argument prototype would still apply.  */
25655#ifdef __cplusplus
25656extern "C"
25657#endif
25658char clock_gettime ();
25659int
25660main ()
25661{
25662return clock_gettime ();
25663  ;
25664  return 0;
25665}
25666_ACEOF
25667for ac_lib in '' rt; do
25668  if test -z "$ac_lib"; then
25669    ac_res="none required"
25670  else
25671    ac_res=-l$ac_lib
25672    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25673  fi
25674  if ac_fn_c_try_link "$LINENO"; then :
25675  ac_cv_search_clock_gettime=$ac_res
25676fi
25677rm -f core conftest.err conftest.$ac_objext \
25678    conftest$ac_exeext
25679  if ${ac_cv_search_clock_gettime+:} false; then :
25680  break
25681fi
25682done
25683if ${ac_cv_search_clock_gettime+:} false; then :
25684
25685else
25686  ac_cv_search_clock_gettime=no
25687fi
25688rm conftest.$ac_ext
25689LIBS=$ac_func_search_save_LIBS
25690fi
25691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25692$as_echo "$ac_cv_search_clock_gettime" >&6; }
25693ac_res=$ac_cv_search_clock_gettime
25694if test "$ac_res" != no; then :
25695  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25696
25697
25698$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25699
25700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25701$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25703/* end confdefs.h.  */
25704
25705    #include <time.h>
25706int
25707main ()
25708{
25709clockid_t clockType = CLOCK_REALTIME;
25710  ;
25711  return 0;
25712}
25713_ACEOF
25714if ac_fn_c_try_compile "$LINENO"; then :
25715
25716        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25717$as_echo "$as_me: yes" >&6;}
25718
25719$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25720
25721
25722else
25723  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25724$as_echo "$as_me: no" >&6;}
25725
25726fi
25727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728
25729else
25730
25731    for ac_func in gettimeofday ftime
25732do :
25733  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25734ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25735if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25736  cat >>confdefs.h <<_ACEOF
25737#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25738_ACEOF
25739 break
25740fi
25741done
25742
25743
25744
25745fi
25746
25747
25748########
25749#
25750# Check for function prototypes
25751#
25752########
25753
25754ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25755#include <unistd.h>
25756"
25757if test "x$ac_cv_have_decl_pread" = xyes; then :
25758  ac_have_decl=1
25759else
25760  ac_have_decl=0
25761fi
25762
25763cat >>confdefs.h <<_ACEOF
25764#define HAVE_DECL_PREAD $ac_have_decl
25765_ACEOF
25766ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25767#include <unistd.h>
25768"
25769if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25770  ac_have_decl=1
25771else
25772  ac_have_decl=0
25773fi
25774
25775cat >>confdefs.h <<_ACEOF
25776#define HAVE_DECL_PWRITE $ac_have_decl
25777_ACEOF
25778
25779
25780ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25781#include <strings.h>
25782"
25783if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25784  ac_have_decl=1
25785else
25786  ac_have_decl=0
25787fi
25788
25789cat >>confdefs.h <<_ACEOF
25790#define HAVE_DECL_STRLCPY $ac_have_decl
25791_ACEOF
25792
25793
25794ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25795#include <stdio.h>
25796#include <stdarg.h>
25797"
25798if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25799  ac_have_decl=1
25800else
25801  ac_have_decl=0
25802fi
25803
25804cat >>confdefs.h <<_ACEOF
25805#define HAVE_DECL_VSNPRINTF $ac_have_decl
25806_ACEOF
25807
25808
25809########
25810#
25811# C++ Support Tests (For Magick++)
25812#
25813########
25814have_magick_plus_plus='no'
25815if test "$with_magick_plus_plus" = 'yes'; then
25816    OLIBS="$LIBS"
25817    LIBS=''
25818    ac_ext=cpp
25819ac_cpp='$CXXCPP $CPPFLAGS'
25820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25823
25824
25825    # Full set of headers used...
25826    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25827    # functional iomanip iosfwd iostream iterator list string strstream utility
25828    ac_ext=cpp
25829ac_cpp='$CXXCPP $CPPFLAGS'
25830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25833
25834    ac_ext=cpp
25835ac_cpp='$CXXCPP $CPPFLAGS'
25836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25839if test -z "$CXX"; then
25840  if test -n "$CCC"; then
25841    CXX=$CCC
25842  else
25843    if test -n "$ac_tool_prefix"; then
25844  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25845  do
25846    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25847set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25849$as_echo_n "checking for $ac_word... " >&6; }
25850if ${ac_cv_prog_CXX+:} false; then :
25851  $as_echo_n "(cached) " >&6
25852else
25853  if test -n "$CXX"; then
25854  ac_cv_prog_CXX="$CXX" # Let the user override the test.
25855else
25856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25857for as_dir in $PATH
25858do
25859  IFS=$as_save_IFS
25860  test -z "$as_dir" && as_dir=.
25861    for ac_exec_ext in '' $ac_executable_extensions; do
25862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25863    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25865    break 2
25866  fi
25867done
25868  done
25869IFS=$as_save_IFS
25870
25871fi
25872fi
25873CXX=$ac_cv_prog_CXX
25874if test -n "$CXX"; then
25875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25876$as_echo "$CXX" >&6; }
25877else
25878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25879$as_echo "no" >&6; }
25880fi
25881
25882
25883    test -n "$CXX" && break
25884  done
25885fi
25886if test -z "$CXX"; then
25887  ac_ct_CXX=$CXX
25888  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25889do
25890  # Extract the first word of "$ac_prog", so it can be a program name with args.
25891set dummy $ac_prog; ac_word=$2
25892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25893$as_echo_n "checking for $ac_word... " >&6; }
25894if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25895  $as_echo_n "(cached) " >&6
25896else
25897  if test -n "$ac_ct_CXX"; then
25898  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25899else
25900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25901for as_dir in $PATH
25902do
25903  IFS=$as_save_IFS
25904  test -z "$as_dir" && as_dir=.
25905    for ac_exec_ext in '' $ac_executable_extensions; do
25906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25907    ac_cv_prog_ac_ct_CXX="$ac_prog"
25908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25909    break 2
25910  fi
25911done
25912  done
25913IFS=$as_save_IFS
25914
25915fi
25916fi
25917ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25918if test -n "$ac_ct_CXX"; then
25919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25920$as_echo "$ac_ct_CXX" >&6; }
25921else
25922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25923$as_echo "no" >&6; }
25924fi
25925
25926
25927  test -n "$ac_ct_CXX" && break
25928done
25929
25930  if test "x$ac_ct_CXX" = x; then
25931    CXX="g++"
25932  else
25933    case $cross_compiling:$ac_tool_warned in
25934yes:)
25935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25937ac_tool_warned=yes ;;
25938esac
25939    CXX=$ac_ct_CXX
25940  fi
25941fi
25942
25943  fi
25944fi
25945# Provide some information about the compiler.
25946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25947set X $ac_compile
25948ac_compiler=$2
25949for ac_option in --version -v -V -qversion; do
25950  { { ac_try="$ac_compiler $ac_option >&5"
25951case "(($ac_try" in
25952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953  *) ac_try_echo=$ac_try;;
25954esac
25955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25956$as_echo "$ac_try_echo"; } >&5
25957  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25958  ac_status=$?
25959  if test -s conftest.err; then
25960    sed '10a\
25961... rest of stderr output deleted ...
25962         10q' conftest.err >conftest.er1
25963    cat conftest.er1 >&5
25964  fi
25965  rm -f conftest.er1 conftest.err
25966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967  test $ac_status = 0; }
25968done
25969
25970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25971$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25972if ${ac_cv_cxx_compiler_gnu+:} false; then :
25973  $as_echo_n "(cached) " >&6
25974else
25975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25976/* end confdefs.h.  */
25977
25978int
25979main ()
25980{
25981#ifndef __GNUC__
25982       choke me
25983#endif
25984
25985  ;
25986  return 0;
25987}
25988_ACEOF
25989if ac_fn_cxx_try_compile "$LINENO"; then :
25990  ac_compiler_gnu=yes
25991else
25992  ac_compiler_gnu=no
25993fi
25994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25996
25997fi
25998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25999$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26000if test $ac_compiler_gnu = yes; then
26001  GXX=yes
26002else
26003  GXX=
26004fi
26005ac_test_CXXFLAGS=${CXXFLAGS+set}
26006ac_save_CXXFLAGS=$CXXFLAGS
26007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
26008$as_echo_n "checking whether $CXX accepts -g... " >&6; }
26009if ${ac_cv_prog_cxx_g+:} false; then :
26010  $as_echo_n "(cached) " >&6
26011else
26012  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26013   ac_cxx_werror_flag=yes
26014   ac_cv_prog_cxx_g=no
26015   CXXFLAGS="-g"
26016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26017/* end confdefs.h.  */
26018
26019int
26020main ()
26021{
26022
26023  ;
26024  return 0;
26025}
26026_ACEOF
26027if ac_fn_cxx_try_compile "$LINENO"; then :
26028  ac_cv_prog_cxx_g=yes
26029else
26030  CXXFLAGS=""
26031      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032/* end confdefs.h.  */
26033
26034int
26035main ()
26036{
26037
26038  ;
26039  return 0;
26040}
26041_ACEOF
26042if ac_fn_cxx_try_compile "$LINENO"; then :
26043
26044else
26045  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26046	 CXXFLAGS="-g"
26047	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26048/* end confdefs.h.  */
26049
26050int
26051main ()
26052{
26053
26054  ;
26055  return 0;
26056}
26057_ACEOF
26058if ac_fn_cxx_try_compile "$LINENO"; then :
26059  ac_cv_prog_cxx_g=yes
26060fi
26061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062fi
26063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26064fi
26065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26067fi
26068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
26069$as_echo "$ac_cv_prog_cxx_g" >&6; }
26070if test "$ac_test_CXXFLAGS" = set; then
26071  CXXFLAGS=$ac_save_CXXFLAGS
26072elif test $ac_cv_prog_cxx_g = yes; then
26073  if test "$GXX" = yes; then
26074    CXXFLAGS="-g -O2"
26075  else
26076    CXXFLAGS="-g"
26077  fi
26078else
26079  if test "$GXX" = yes; then
26080    CXXFLAGS="-O2"
26081  else
26082    CXXFLAGS=
26083  fi
26084fi
26085ac_ext=cpp
26086ac_cpp='$CXXCPP $CPPFLAGS'
26087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26090
26091depcc="$CXX"  am_compiler_list=
26092
26093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26094$as_echo_n "checking dependency style of $depcc... " >&6; }
26095if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26096  $as_echo_n "(cached) " >&6
26097else
26098  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26099  # We make a subdir and do the tests there.  Otherwise we can end up
26100  # making bogus files that we don't know about and never remove.  For
26101  # instance it was reported that on HP-UX the gcc test will end up
26102  # making a dummy file named 'D' -- because '-MD' means "put the output
26103  # in D".
26104  rm -rf conftest.dir
26105  mkdir conftest.dir
26106  # Copy depcomp to subdir because otherwise we won't find it if we're
26107  # using a relative directory.
26108  cp "$am_depcomp" conftest.dir
26109  cd conftest.dir
26110  # We will build objects and dependencies in a subdirectory because
26111  # it helps to detect inapplicable dependency modes.  For instance
26112  # both Tru64's cc and ICC support -MD to output dependencies as a
26113  # side effect of compilation, but ICC will put the dependencies in
26114  # the current directory while Tru64 will put them in the object
26115  # directory.
26116  mkdir sub
26117
26118  am_cv_CXX_dependencies_compiler_type=none
26119  if test "$am_compiler_list" = ""; then
26120     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26121  fi
26122  am__universal=false
26123  case " $depcc " in #(
26124     *\ -arch\ *\ -arch\ *) am__universal=true ;;
26125     esac
26126
26127  for depmode in $am_compiler_list; do
26128    # Setup a source with many dependencies, because some compilers
26129    # like to wrap large dependency lists on column 80 (with \), and
26130    # we should not choose a depcomp mode which is confused by this.
26131    #
26132    # We need to recreate these files for each test, as the compiler may
26133    # overwrite some of them when testing with obscure command lines.
26134    # This happens at least with the AIX C compiler.
26135    : > sub/conftest.c
26136    for i in 1 2 3 4 5 6; do
26137      echo '#include "conftst'$i'.h"' >> sub/conftest.c
26138      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26139      # Solaris 10 /bin/sh.
26140      echo '/* dummy */' > sub/conftst$i.h
26141    done
26142    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26143
26144    # We check with '-c' and '-o' for the sake of the "dashmstdout"
26145    # mode.  It turns out that the SunPro C++ compiler does not properly
26146    # handle '-M -o', and we need to detect this.  Also, some Intel
26147    # versions had trouble with output in subdirs.
26148    am__obj=sub/conftest.${OBJEXT-o}
26149    am__minus_obj="-o $am__obj"
26150    case $depmode in
26151    gcc)
26152      # This depmode causes a compiler race in universal mode.
26153      test "$am__universal" = false || continue
26154      ;;
26155    nosideeffect)
26156      # After this tag, mechanisms are not by side-effect, so they'll
26157      # only be used when explicitly requested.
26158      if test "x$enable_dependency_tracking" = xyes; then
26159	continue
26160      else
26161	break
26162      fi
26163      ;;
26164    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26165      # This compiler won't grok '-c -o', but also, the minuso test has
26166      # not run yet.  These depmodes are late enough in the game, and
26167      # so weak that their functioning should not be impacted.
26168      am__obj=conftest.${OBJEXT-o}
26169      am__minus_obj=
26170      ;;
26171    none) break ;;
26172    esac
26173    if depmode=$depmode \
26174       source=sub/conftest.c object=$am__obj \
26175       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26176       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26177         >/dev/null 2>conftest.err &&
26178       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26179       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26180       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26181       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26182      # icc doesn't choke on unknown options, it will just issue warnings
26183      # or remarks (even with -Werror).  So we grep stderr for any message
26184      # that says an option was ignored or not supported.
26185      # When given -MP, icc 7.0 and 7.1 complain thusly:
26186      #   icc: Command line warning: ignoring option '-M'; no argument required
26187      # The diagnosis changed in icc 8.0:
26188      #   icc: Command line remark: option '-MP' not supported
26189      if (grep 'ignoring option' conftest.err ||
26190          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26191        am_cv_CXX_dependencies_compiler_type=$depmode
26192        break
26193      fi
26194    fi
26195  done
26196
26197  cd ..
26198  rm -rf conftest.dir
26199else
26200  am_cv_CXX_dependencies_compiler_type=none
26201fi
26202
26203fi
26204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26205$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26206CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26207
26208 if
26209  test "x$enable_dependency_tracking" != xno \
26210  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26211  am__fastdepCXX_TRUE=
26212  am__fastdepCXX_FALSE='#'
26213else
26214  am__fastdepCXX_TRUE='#'
26215  am__fastdepCXX_FALSE=
26216fi
26217
26218
26219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26220$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
26221if ${ax_cv_cxx_bool+:} false; then :
26222  $as_echo_n "(cached) " >&6
26223else
26224
26225 ac_ext=cpp
26226ac_cpp='$CXXCPP $CPPFLAGS'
26227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26230
26231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232/* end confdefs.h.  */
26233
26234int f(int  x){return 1;}
26235int f(char x){return 1;}
26236int f(bool x){return 1;}
26237
26238int
26239main ()
26240{
26241bool b = true; return f(b);
26242  ;
26243  return 0;
26244}
26245_ACEOF
26246if ac_fn_cxx_try_compile "$LINENO"; then :
26247  ax_cv_cxx_bool=yes
26248else
26249  ax_cv_cxx_bool=no
26250fi
26251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252 ac_ext=cpp
26253ac_cpp='$CXXCPP $CPPFLAGS'
26254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26257
26258
26259fi
26260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26261$as_echo "$ax_cv_cxx_bool" >&6; }
26262if test "$ax_cv_cxx_bool" = yes; then
26263
26264$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26265
26266fi
26267
26268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26269$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
26270if ${ax_cv_cxx_namespaces+:} false; then :
26271  $as_echo_n "(cached) " >&6
26272else
26273
26274 ac_ext=cpp
26275ac_cpp='$CXXCPP $CPPFLAGS'
26276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26279
26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281/* end confdefs.h.  */
26282namespace Outer { namespace Inner { int i = 0; }}
26283int
26284main ()
26285{
26286using namespace Outer::Inner; return i;
26287  ;
26288  return 0;
26289}
26290_ACEOF
26291if ac_fn_cxx_try_compile "$LINENO"; then :
26292  ax_cv_cxx_namespaces=yes
26293else
26294  ax_cv_cxx_namespaces=no
26295fi
26296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 ac_ext=cpp
26298ac_cpp='$CXXCPP $CPPFLAGS'
26299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26302
26303
26304fi
26305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26306$as_echo "$ax_cv_cxx_namespaces" >&6; }
26307if test "$ax_cv_cxx_namespaces" = yes; then
26308
26309$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26310
26311fi
26312
26313
26314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26315$as_echo_n "checking if g++ supports namespace std... " >&6; }
26316if ${ax_cv_cxx_have_std_namespace+:} false; then :
26317  $as_echo_n "(cached) " >&6
26318else
26319
26320  ac_ext=cpp
26321ac_cpp='$CXXCPP $CPPFLAGS'
26322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26325
26326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327/* end confdefs.h.  */
26328#include <iostream>
26329                  std::istream& is = std::cin;
26330int
26331main ()
26332{
26333
26334  ;
26335  return 0;
26336}
26337_ACEOF
26338if ac_fn_cxx_try_compile "$LINENO"; then :
26339  ax_cv_cxx_have_std_namespace=yes
26340else
26341  ax_cv_cxx_have_std_namespace=no
26342fi
26343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344  ac_ext=cpp
26345ac_cpp='$CXXCPP $CPPFLAGS'
26346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26349
26350
26351fi
26352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26353$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26354  if test "$ax_cv_cxx_have_std_namespace" = yes; then
26355
26356$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26357
26358  fi
26359
26360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26361$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
26362if ${ac_cv_cxx_have_std_libs+:} false; then :
26363  $as_echo_n "(cached) " >&6
26364else
26365
26366
26367 ac_ext=cpp
26368ac_cpp='$CXXCPP $CPPFLAGS'
26369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26372
26373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26374/* end confdefs.h.  */
26375#include <iostream>
26376#include <map>
26377#include <iomanip>
26378#include <cmath>
26379#ifdef HAVE_NAMESPACES
26380using namespace std;
26381#endif
26382int
26383main ()
26384{
26385return 0;
26386  ;
26387  return 0;
26388}
26389_ACEOF
26390if ac_fn_cxx_try_compile "$LINENO"; then :
26391  ac_cv_cxx_have_std_libs=yes
26392else
26393  ac_cv_cxx_have_std_libs=no
26394fi
26395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26396 ac_ext=cpp
26397ac_cpp='$CXXCPP $CPPFLAGS'
26398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26401
26402
26403fi
26404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26405$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26406if test "$ac_cv_cxx_have_std_libs" = yes; then
26407
26408$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26409
26410fi
26411
26412
26413  OPENMP_CXXFLAGS=
26414  # Check whether --enable-openmp was given.
26415if test "${enable_openmp+set}" = set; then :
26416  enableval=$enable_openmp;
26417fi
26418
26419  if test "$enable_openmp" != no; then
26420    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26421$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26422if ${ac_cv_prog_cxx_openmp+:} false; then :
26423  $as_echo_n "(cached) " >&6
26424else
26425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26426/* end confdefs.h.  */
26427
26428#ifndef _OPENMP
26429 choke me
26430#endif
26431#include <omp.h>
26432int main () { return omp_get_num_threads (); }
26433
26434_ACEOF
26435if ac_fn_cxx_try_link "$LINENO"; then :
26436  ac_cv_prog_cxx_openmp='none needed'
26437else
26438  ac_cv_prog_cxx_openmp='unsupported'
26439	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26440                           -Popenmp --openmp; do
26441	    ac_save_CXXFLAGS=$CXXFLAGS
26442	    CXXFLAGS="$CXXFLAGS $ac_option"
26443	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26444/* end confdefs.h.  */
26445
26446#ifndef _OPENMP
26447 choke me
26448#endif
26449#include <omp.h>
26450int main () { return omp_get_num_threads (); }
26451
26452_ACEOF
26453if ac_fn_cxx_try_link "$LINENO"; then :
26454  ac_cv_prog_cxx_openmp=$ac_option
26455fi
26456rm -f core conftest.err conftest.$ac_objext \
26457    conftest$ac_exeext conftest.$ac_ext
26458	    CXXFLAGS=$ac_save_CXXFLAGS
26459	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26460	      break
26461	    fi
26462	  done
26463fi
26464rm -f core conftest.err conftest.$ac_objext \
26465    conftest$ac_exeext conftest.$ac_ext
26466fi
26467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26468$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26469    case $ac_cv_prog_cxx_openmp in #(
26470      "none needed" | unsupported)
26471	;; #(
26472      *)
26473	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26474    esac
26475  fi
26476
26477
26478    ac_ext=c
26479ac_cpp='$CPP $CPPFLAGS'
26480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26482ac_compiler_gnu=$ac_cv_c_compiler_gnu
26483
26484
26485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26486$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26487    if \
26488        test $ax_cv_cxx_bool = 'yes' && \
26489        test $ax_cv_cxx_namespaces = 'yes' && \
26490        test $ac_cv_cxx_have_std_libs = 'yes' && \
26491        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26492        have_magick_plus_plus='yes'
26493    else
26494        have_magick_plus_plus='no (failed tests)'
26495    fi
26496    { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26497$as_echo "$as_me: $have_magick_plus_plus" >&6;}
26498    LIBS="$OLIBS"
26499fi
26500 if test "$have_magick_plus_plus" = 'yes'; then
26501  WITH_MAGICK_PLUS_PLUS_TRUE=
26502  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26503else
26504  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26505  WITH_MAGICK_PLUS_PLUS_FALSE=
26506fi
26507
26508
26509# Only check for delegate libraries in subdirectories if requested.
26510if test "$enable_delegate_build" != 'no'; then
26511    # Check for delegate sub-directories and add -I & -L options as required.
26512    # This presumes that delegates are installed as detailed in the ImageMagick
26513    # README. If delegates are installed in a standard location where the
26514    # compiler will automatically find them then these options should not be
26515    # required.
26516
26517    #
26518    # Most delegates have includes in the same directory as the library, but not all...
26519    #
26520    # Includes
26521    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
26522        if test -d "$builddir/$dir"; then
26523            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26524        else
26525            if test -d "$srcdirfull/$dir"; then
26526                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26527            fi
26528        fi
26529    done
26530
26531    # Libraries
26532    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
26533    if test -d "$builddir/$dir/.libs"; then
26534        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26535    else
26536        if test -d "$srcdirfull/$dir/.libs"; then
26537            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26538        fi
26539    fi
26540    if test -d "$builddir/$dir"; then
26541        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26542    else
26543        if test -d "$srcdirfull/$dir"; then
26544            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26545        fi
26546    fi
26547  done
26548fi
26549
26550# Assume that delegate headers reside under same directory as ImageMagick
26551# installation prefix.
26552MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26553
26554#
26555# Find the X11 RGB database
26556#
26557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26558$as_echo_n "checking for X11 configure files... " >&6; }
26559if ${im_cv_x_configure+:} false; then :
26560  $as_echo_n "(cached) " >&6
26561else
26562  # Look for the header file in a standard set of common directories.
26563# Check X11 before X11Rn because it is often a symlink to the current release.
26564    for ac_dir in          \
26565    /lib/usr/lib/X11       \
26566    /usr/X11/lib           \
26567    /usr/X11R4/lib         \
26568    /usr/X11R5/lib         \
26569    /usr/X11R6/lib         \
26570    /usr/X11R7/lib         \
26571    /usr/X386/lib          \
26572    /usr/XFree86/lib/X11   \
26573    /usr/athena/lib        \
26574    /usr/lib               \
26575    /usr/lib/X11           \
26576    /usr/lib/X11R4         \
26577    /usr/lib/X11R5         \
26578    /usr/lib/X11R6         \
26579    /usr/lib/X11R7         \
26580    /usr/local/X11/lib     \
26581    /usr/local/X11R4/lib   \
26582    /usr/local/X11R5/lib   \
26583    /usr/local/X11R6/lib   \
26584    /usr/local/lib         \
26585    /usr/local/lib/X11     \
26586    /usr/local/lib/X11R4   \
26587    /usr/local/lib/X11R5   \
26588    /usr/local/lib/X11R6   \
26589    /usr/local/lib/X11R7   \
26590    /usr/local/x11r5/lib   \
26591    /usr/lpp/Xamples/lib   \
26592    /usr/openwin/lib       \
26593    /usr/openwin/share/lib \
26594    /usr/unsupported/lib   \
26595    /usr/x386/lib          \
26596    ; do
26597    if test -f "$ac_dir/X11/rgb.txt"; then
26598      im_cv_x_configure="$ac_dir/X11/"
26599      break
26600    elif test -f "$ac_dir/rgb.txt"; then
26601      im_cv_x_configure="$ac_dir/"
26602      break
26603    fi
26604
26605  done
26606fi
26607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
26608$as_echo "$im_cv_x_configure" >&6; }
26609X11_CONFIGURE_PATH="$im_cv_x_configure"
26610case "${build_os}" in
26611  mingw* )
26612    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26613  ;;
26614esac
26615
26616cat >>confdefs.h <<_ACEOF
26617#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26618_ACEOF
26619
26620
26621#
26622# Find OpenMP library
26623#
26624GOMP_LIBS=''
26625if test "$enable_openmp" != 'no'; then
26626  if test "${GCC}" = "yes"; then
26627    # Open64 (passes for GCC but uses different OpenMP implementation)
26628    if test "x$GOMP_LIBS" = x ; then
26629      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26630        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26631$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26632if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26633  $as_echo_n "(cached) " >&6
26634else
26635  ac_check_lib_save_LIBS=$LIBS
26636LIBS="-lopenmp  $LIBS"
26637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26638/* end confdefs.h.  */
26639
26640/* Override any GCC internal prototype to avoid an error.
26641   Use char because int might match the return type of a GCC
26642   builtin and then its argument prototype would still apply.  */
26643#ifdef __cplusplus
26644extern "C"
26645#endif
26646char omp_get_num_procs ();
26647int
26648main ()
26649{
26650return omp_get_num_procs ();
26651  ;
26652  return 0;
26653}
26654_ACEOF
26655if ac_fn_c_try_link "$LINENO"; then :
26656  ac_cv_lib_openmp_omp_get_num_procs=yes
26657else
26658  ac_cv_lib_openmp_omp_get_num_procs=no
26659fi
26660rm -f core conftest.err conftest.$ac_objext \
26661    conftest$ac_exeext conftest.$ac_ext
26662LIBS=$ac_check_lib_save_LIBS
26663fi
26664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26665$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26666if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26667  GOMP_LIBS="-lopenmp"
26668fi
26669
26670      fi
26671    fi
26672    # GCC
26673    if test "x$GOMP_LIBS" = x ; then
26674      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
26675$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
26676if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
26677  $as_echo_n "(cached) " >&6
26678else
26679  ac_check_lib_save_LIBS=$LIBS
26680LIBS="-lgomp  $LIBS"
26681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26682/* end confdefs.h.  */
26683
26684/* Override any GCC internal prototype to avoid an error.
26685   Use char because int might match the return type of a GCC
26686   builtin and then its argument prototype would still apply.  */
26687#ifdef __cplusplus
26688extern "C"
26689#endif
26690char GOMP_parallel_start ();
26691int
26692main ()
26693{
26694return GOMP_parallel_start ();
26695  ;
26696  return 0;
26697}
26698_ACEOF
26699if ac_fn_c_try_link "$LINENO"; then :
26700  ac_cv_lib_gomp_GOMP_parallel_start=yes
26701else
26702  ac_cv_lib_gomp_GOMP_parallel_start=no
26703fi
26704rm -f core conftest.err conftest.$ac_objext \
26705    conftest$ac_exeext conftest.$ac_ext
26706LIBS=$ac_check_lib_save_LIBS
26707fi
26708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
26709$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
26710if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26711  GOMP_LIBS="-lgomp"
26712fi
26713
26714    fi
26715  else
26716    # Sun CC
26717    if test "x$GOMP_LIBS" = x ; then
26718      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26719$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26720if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26721  $as_echo_n "(cached) " >&6
26722else
26723  ac_check_lib_save_LIBS=$LIBS
26724LIBS="-lmtsk  $LIBS"
26725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26726/* end confdefs.h.  */
26727
26728/* Override any GCC internal prototype to avoid an error.
26729   Use char because int might match the return type of a GCC
26730   builtin and then its argument prototype would still apply.  */
26731#ifdef __cplusplus
26732extern "C"
26733#endif
26734char sunw_mp_register_warn ();
26735int
26736main ()
26737{
26738return sunw_mp_register_warn ();
26739  ;
26740  return 0;
26741}
26742_ACEOF
26743if ac_fn_c_try_link "$LINENO"; then :
26744  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26745else
26746  ac_cv_lib_mtsk_sunw_mp_register_warn=no
26747fi
26748rm -f core conftest.err conftest.$ac_objext \
26749    conftest$ac_exeext conftest.$ac_ext
26750LIBS=$ac_check_lib_save_LIBS
26751fi
26752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26753$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26754if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26755  GOMP_LIBS="-lmtsk"
26756fi
26757
26758    fi
26759    # AIX xlc
26760    if test "x$GOMP_LIBS" = x ; then
26761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26762$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26763if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26764  $as_echo_n "(cached) " >&6
26765else
26766  ac_check_lib_save_LIBS=$LIBS
26767LIBS="-lxlsmp  $LIBS"
26768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769/* end confdefs.h.  */
26770
26771/* Override any GCC internal prototype to avoid an error.
26772   Use char because int might match the return type of a GCC
26773   builtin and then its argument prototype would still apply.  */
26774#ifdef __cplusplus
26775extern "C"
26776#endif
26777char _xlsmpFlush ();
26778int
26779main ()
26780{
26781return _xlsmpFlush ();
26782  ;
26783  return 0;
26784}
26785_ACEOF
26786if ac_fn_c_try_link "$LINENO"; then :
26787  ac_cv_lib_xlsmp__xlsmpFlush=yes
26788else
26789  ac_cv_lib_xlsmp__xlsmpFlush=no
26790fi
26791rm -f core conftest.err conftest.$ac_objext \
26792    conftest$ac_exeext conftest.$ac_ext
26793LIBS=$ac_check_lib_save_LIBS
26794fi
26795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26796$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26797if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26798  GOMP_LIBS="-lxlsmp"
26799fi
26800
26801    fi
26802    # SGI IRIX 6.5 MIPSpro C/C++
26803    if test "x$GOMP_LIBS" = x ; then
26804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26805$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26806if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26807  $as_echo_n "(cached) " >&6
26808else
26809  ac_check_lib_save_LIBS=$LIBS
26810LIBS="-lmp  $LIBS"
26811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812/* end confdefs.h.  */
26813
26814/* Override any GCC internal prototype to avoid an error.
26815   Use char because int might match the return type of a GCC
26816   builtin and then its argument prototype would still apply.  */
26817#ifdef __cplusplus
26818extern "C"
26819#endif
26820char mp_destroy ();
26821int
26822main ()
26823{
26824return mp_destroy ();
26825  ;
26826  return 0;
26827}
26828_ACEOF
26829if ac_fn_c_try_link "$LINENO"; then :
26830  ac_cv_lib_mp_mp_destroy=yes
26831else
26832  ac_cv_lib_mp_mp_destroy=no
26833fi
26834rm -f core conftest.err conftest.$ac_objext \
26835    conftest$ac_exeext conftest.$ac_ext
26836LIBS=$ac_check_lib_save_LIBS
26837fi
26838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26839$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26840if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26841  GOMP_LIBS="-lmp"
26842fi
26843
26844    fi
26845  fi
26846  LIBS="$GOMP_LIBS $LIBS"
26847fi
26848
26849
26850#
26851# Find Posix threads library
26852#
26853THREAD_LIBS=''
26854if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26855
26856    if test "x$PTHREAD_LIBS" = "x"; then
26857    case "${host_cpu}-${host_os}" in
26858      *-freebsd*)
26859
26860
26861
26862ac_ext=c
26863ac_cpp='$CPP $CPPFLAGS'
26864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26866ac_compiler_gnu=$ac_cv_c_compiler_gnu
26867
26868magick_pthread_lib_ok=no
26869
26870LIB=-lc_r
26871save_LIBS="$LIBS"
26872LIBS="$LIBS $LIB"
26873
26874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26875$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26877/* end confdefs.h.  */
26878#include <pthread.h>
26879int
26880main ()
26881{
26882  pthread_t th;
26883  pthread_join(th, 0);
26884  pthread_attr_init(0);
26885  pthread_cleanup_push(0, 0);
26886  pthread_create(0,0,0,0);
26887  pthread_cleanup_pop(0);
26888  ;
26889  return 0;
26890}
26891_ACEOF
26892if ac_fn_c_try_link "$LINENO"; then :
26893  magick_pthread_lib_ok=yes
26894fi
26895rm -f core conftest.err conftest.$ac_objext \
26896    conftest$ac_exeext conftest.$ac_ext
26897
26898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26899$as_echo "${magick_pthread_lib_ok}" >&6; }
26900if test "$magick_pthread_lib_ok" = yes
26901then
26902  PTHREAD_LIBS=-lc_r
26903  :
26904else
26905
26906  :
26907fi
26908
26909LIBS="$save_LIBS"
26910
26911ac_ext=c
26912ac_cpp='$CPP $CPPFLAGS'
26913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26915ac_compiler_gnu=$ac_cv_c_compiler_gnu
26916
26917 ;;
26918    esac
26919    fi
26920
26921    for lib in pthread pthreads; do
26922        if test "x$PTHREAD_LIBS" = "x"; then
26923
26924
26925
26926ac_ext=c
26927ac_cpp='$CPP $CPPFLAGS'
26928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930ac_compiler_gnu=$ac_cv_c_compiler_gnu
26931
26932magick_pthread_lib_ok=no
26933
26934LIB=-l$lib
26935save_LIBS="$LIBS"
26936LIBS="$LIBS $LIB"
26937
26938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26939$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26941/* end confdefs.h.  */
26942#include <pthread.h>
26943int
26944main ()
26945{
26946  pthread_t th;
26947  pthread_join(th, 0);
26948  pthread_attr_init(0);
26949  pthread_cleanup_push(0, 0);
26950  pthread_create(0,0,0,0);
26951  pthread_cleanup_pop(0);
26952  ;
26953  return 0;
26954}
26955_ACEOF
26956if ac_fn_c_try_link "$LINENO"; then :
26957  magick_pthread_lib_ok=yes
26958fi
26959rm -f core conftest.err conftest.$ac_objext \
26960    conftest$ac_exeext conftest.$ac_ext
26961
26962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26963$as_echo "${magick_pthread_lib_ok}" >&6; }
26964if test "$magick_pthread_lib_ok" = yes
26965then
26966  PTHREAD_LIBS=-l$lib
26967  :
26968else
26969
26970  :
26971fi
26972
26973LIBS="$save_LIBS"
26974
26975ac_ext=c
26976ac_cpp='$CPP $CPPFLAGS'
26977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26979ac_compiler_gnu=$ac_cv_c_compiler_gnu
26980
26981
26982        fi
26983    done
26984
26985    THREAD_LIBS="$PTHREAD_LIBS"
26986    LIBS="$LIBS $THREAD_LIBS"
26987fi
26988
26989
26990#
26991# Check for umem.
26992#
26993have_umem='no'
26994UMEM_LIBS=''
26995if test "$with_umem" != 'no'; then
26996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26997$as_echo_n "checking for UMEM support ... " >&6; }
26998  { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26999$as_echo "$as_me: " >&6;}
27000  failed=0
27001  passed=0
27002  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
27003if test "x$ac_cv_header_umem_h" = xyes; then :
27004  passed=`expr $passed + 1`
27005else
27006  failed=`expr $failed + 1`
27007fi
27008
27009
27010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
27011$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
27012if ${ac_cv_lib_umem_umem_alloc+:} false; then :
27013  $as_echo_n "(cached) " >&6
27014else
27015  ac_check_lib_save_LIBS=$LIBS
27016LIBS="-lumem  $LIBS"
27017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018/* end confdefs.h.  */
27019
27020/* Override any GCC internal prototype to avoid an error.
27021   Use char because int might match the return type of a GCC
27022   builtin and then its argument prototype would still apply.  */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026char umem_alloc ();
27027int
27028main ()
27029{
27030return umem_alloc ();
27031  ;
27032  return 0;
27033}
27034_ACEOF
27035if ac_fn_c_try_link "$LINENO"; then :
27036  ac_cv_lib_umem_umem_alloc=yes
27037else
27038  ac_cv_lib_umem_umem_alloc=no
27039fi
27040rm -f core conftest.err conftest.$ac_objext \
27041    conftest$ac_exeext conftest.$ac_ext
27042LIBS=$ac_check_lib_save_LIBS
27043fi
27044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
27045$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
27046if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
27047  passed=`expr $passed + 1`
27048else
27049  failed=`expr $failed + 1`
27050fi
27051
27052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
27053$as_echo_n "checking for umem_free in -lumem... " >&6; }
27054if ${ac_cv_lib_umem_umem_free+:} false; then :
27055  $as_echo_n "(cached) " >&6
27056else
27057  ac_check_lib_save_LIBS=$LIBS
27058LIBS="-lumem  $LIBS"
27059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27060/* end confdefs.h.  */
27061
27062/* Override any GCC internal prototype to avoid an error.
27063   Use char because int might match the return type of a GCC
27064   builtin and then its argument prototype would still apply.  */
27065#ifdef __cplusplus
27066extern "C"
27067#endif
27068char umem_free ();
27069int
27070main ()
27071{
27072return umem_free ();
27073  ;
27074  return 0;
27075}
27076_ACEOF
27077if ac_fn_c_try_link "$LINENO"; then :
27078  ac_cv_lib_umem_umem_free=yes
27079else
27080  ac_cv_lib_umem_umem_free=no
27081fi
27082rm -f core conftest.err conftest.$ac_objext \
27083    conftest$ac_exeext conftest.$ac_ext
27084LIBS=$ac_check_lib_save_LIBS
27085fi
27086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
27087$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
27088if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
27089  passed=`expr $passed + 1`
27090else
27091  failed=`expr $failed + 1`
27092fi
27093
27094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
27095$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27096  if test $passed -gt 0; then
27097    if test $failed -gt 0; then
27098      { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27099$as_echo "$as_me: no -- some components failed test" >&6;}
27100      have_umem='no (failed tests)'
27101    else
27102      UMEM_LIBS='-lumem'
27103      LIBS="$UMEM_LIBS $LIBS"
27104
27105$as_echo "#define HasUMEM 1" >>confdefs.h
27106
27107      { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27108$as_echo "$as_me: yes" >&6;}
27109      have_umem='yes'
27110    fi
27111  else
27112    { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27113$as_echo "$as_me: no" >&6;}
27114  fi
27115fi
27116 if test "$have_umem" = 'yes'; then
27117  HasUMEM_TRUE=
27118  HasUMEM_FALSE='#'
27119else
27120  HasUMEM_TRUE='#'
27121  HasUMEM_FALSE=
27122fi
27123
27124
27125
27126#
27127# Add support for ccmalloc memory debugging library if requested
27128#
27129have_ccmalloc='no'
27130CCMALLOC_LIBS=''
27131if test "$enable_ccmalloc" = 'yes'; then
27132    # Extract the first word of "ccmalloc", so it can be a program name with args.
27133set dummy ccmalloc; ac_word=$2
27134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27135$as_echo_n "checking for $ac_word... " >&6; }
27136if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
27137  $as_echo_n "(cached) " >&6
27138else
27139  case $CCMALLOCDelegate in
27140  [\\/]* | ?:[\\/]*)
27141  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27142  ;;
27143  *)
27144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27145for as_dir in $PATH
27146do
27147  IFS=$as_save_IFS
27148  test -z "$as_dir" && as_dir=.
27149    for ac_exec_ext in '' $ac_executable_extensions; do
27150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27151    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
27152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27153    break 2
27154  fi
27155done
27156  done
27157IFS=$as_save_IFS
27158
27159  ;;
27160esac
27161fi
27162CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27163if test -n "$CCMALLOCDelegate"; then
27164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
27165$as_echo "$CCMALLOCDelegate" >&6; }
27166else
27167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27168$as_echo "no" >&6; }
27169fi
27170
27171
27172    if test -n "$CCMALLOCDelegate"; then
27173        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27174        OLIBS="$LIBS"
27175        # Assume that gcc is used with ccmalloc.
27176        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
27177       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
27178$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
27179if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
27180  $as_echo_n "(cached) " >&6
27181else
27182  ac_check_lib_save_LIBS=$LIBS
27183LIBS="-lccmalloc -ldl $LIBS"
27184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27185/* end confdefs.h.  */
27186
27187/* Override any GCC internal prototype to avoid an error.
27188   Use char because int might match the return type of a GCC
27189   builtin and then its argument prototype would still apply.  */
27190#ifdef __cplusplus
27191extern "C"
27192#endif
27193char ccmalloc_malloc ();
27194int
27195main ()
27196{
27197return ccmalloc_malloc ();
27198  ;
27199  return 0;
27200}
27201_ACEOF
27202if ac_fn_c_try_link "$LINENO"; then :
27203  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27204else
27205  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
27206fi
27207rm -f core conftest.err conftest.$ac_objext \
27208    conftest$ac_exeext conftest.$ac_ext
27209LIBS=$ac_check_lib_save_LIBS
27210fi
27211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
27212$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
27213if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
27214  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27215fi
27216
27217        if test -n "$CCMALLOC_LIBS"; then
27218            LIBS="$OLIBS"
27219            LIBS="$LIBS $CCMALLOC_LIBS"
27220            have_ccmalloc='yes'
27221        else
27222            LIBS="$OLIBS"
27223        fi
27224    fi
27225fi
27226
27227#
27228# Add support for efence memory debugging library if requested
27229#
27230if test "$enable_efence" = 'yes'; then
27231    EFENCE_LIBS='-lefence'
27232    LIBS="$EFENCE_LIBS $LIBS"
27233fi
27234
27235
27236#
27237# Check for BZLIB
27238#
27239
27240
27241# Check whether --with-bzlib was given.
27242if test "${with_bzlib+set}" = set; then :
27243  withval=$with_bzlib; with_bzlib=$withval
27244else
27245  with_bzlib='yes'
27246fi
27247
27248
27249if test "$with_bzlib" != 'yes'; then
27250    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27251fi
27252
27253have_bzlib='no'
27254if test "$with_bzlib" != 'no'; then
27255    BZLIB_LIBS=''
27256    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27257$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
27259$as_echo_n "checking for BZLIB... " >&6; }
27260    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27261$as_echo "$as_me: " >&6;}
27262    failed=0
27263    passed=0
27264    found_libbz=0
27265    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
27266if test "x$ac_cv_header_bzlib_h" = xyes; then :
27267  passed=`expr $passed + 1`
27268else
27269  failed=`expr $failed + 1`
27270fi
27271
27272
27273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
27274$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
27275if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
27276  $as_echo_n "(cached) " >&6
27277else
27278  ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lbz2  $LIBS"
27280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27281/* end confdefs.h.  */
27282
27283/* Override any GCC internal prototype to avoid an error.
27284   Use char because int might match the return type of a GCC
27285   builtin and then its argument prototype would still apply.  */
27286#ifdef __cplusplus
27287extern "C"
27288#endif
27289char BZ2_bzDecompress ();
27290int
27291main ()
27292{
27293return BZ2_bzDecompress ();
27294  ;
27295  return 0;
27296}
27297_ACEOF
27298if ac_fn_c_try_link "$LINENO"; then :
27299  ac_cv_lib_bz2_BZ2_bzDecompress=yes
27300else
27301  ac_cv_lib_bz2_BZ2_bzDecompress=no
27302fi
27303rm -f core conftest.err conftest.$ac_objext \
27304    conftest$ac_exeext conftest.$ac_ext
27305LIBS=$ac_check_lib_save_LIBS
27306fi
27307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
27308$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
27309if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
27310  found_libbz=`expr $found_libbz + 1`
27311fi
27312
27313    if test "$native_win32_build" = 'yes'; then
27314      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
27315$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
27316if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
27317  $as_echo_n "(cached) " >&6
27318else
27319  ac_check_lib_save_LIBS=$LIBS
27320LIBS="-lbz2  $LIBS"
27321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27322/* end confdefs.h.  */
27323
27324/* Override any GCC internal prototype to avoid an error.
27325   Use char because int might match the return type of a GCC
27326   builtin and then its argument prototype would still apply.  */
27327#ifdef __cplusplus
27328extern "C"
27329#endif
27330char _imp__BZ2_decompress ();
27331int
27332main ()
27333{
27334return _imp__BZ2_decompress ();
27335  ;
27336  return 0;
27337}
27338_ACEOF
27339if ac_fn_c_try_link "$LINENO"; then :
27340  ac_cv_lib_bz2__imp__BZ2_decompress=yes
27341else
27342  ac_cv_lib_bz2__imp__BZ2_decompress=no
27343fi
27344rm -f core conftest.err conftest.$ac_objext \
27345    conftest$ac_exeext conftest.$ac_ext
27346LIBS=$ac_check_lib_save_LIBS
27347fi
27348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
27349$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
27350if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
27351  found_libbz=`expr $found_libbz + 1`
27352fi
27353
27354    fi
27355    if test $found_libbz -gt 0; then
27356      passed=`expr $passed + 1`
27357    else
27358      failed=`expr $failed + 1`
27359    fi
27360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
27361$as_echo_n "checking if BZLIB package is complete... " >&6; }
27362    if test $passed -gt 0; then
27363      if test $failed -gt 0; then
27364        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27365$as_echo "$as_me: no -- some components failed test" >&6;}
27366        have_bzlib='no (failed tests)'
27367      else
27368        BZLIB_LIBS='-lbz2'
27369        LIBS="$BZLIB_LIBS $LIBS"
27370
27371$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
27372
27373        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27374$as_echo "$as_me: yes" >&6;}
27375        have_bzlib='yes'
27376      fi
27377    else
27378      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27379$as_echo "$as_me: no" >&6;}
27380    fi
27381fi
27382 if test "$have_bzlib" = 'yes'; then
27383  BZLIB_DELEGATE_TRUE=
27384  BZLIB_DELEGATE_FALSE='#'
27385else
27386  BZLIB_DELEGATE_TRUE='#'
27387  BZLIB_DELEGATE_FALSE=
27388fi
27389
27390
27391
27392#
27393# Find the X11 include and library directories.
27394#
27395IPC_LIBS=''
27396X11_LIBS=''
27397XEXT_LIBS=''
27398XT_LIBS=''
27399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
27400$as_echo_n "checking for X... " >&6; }
27401
27402
27403# Check whether --with-x was given.
27404if test "${with_x+set}" = set; then :
27405  withval=$with_x;
27406fi
27407
27408# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27409if test "x$with_x" = xno; then
27410  # The user explicitly disabled X.
27411  have_x=disabled
27412else
27413  case $x_includes,$x_libraries in #(
27414    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
27415    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
27416  $as_echo_n "(cached) " >&6
27417else
27418  # One or both of the vars are not set, and there is no cached value.
27419ac_x_includes=no ac_x_libraries=no
27420rm -f -r conftest.dir
27421if mkdir conftest.dir; then
27422  cd conftest.dir
27423  cat >Imakefile <<'_ACEOF'
27424incroot:
27425	@echo incroot='${INCROOT}'
27426usrlibdir:
27427	@echo usrlibdir='${USRLIBDIR}'
27428libdir:
27429	@echo libdir='${LIBDIR}'
27430_ACEOF
27431  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27432    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27433    for ac_var in incroot usrlibdir libdir; do
27434      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27435    done
27436    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27437    for ac_extension in a so sl dylib la dll; do
27438      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27439	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27440	ac_im_usrlibdir=$ac_im_libdir; break
27441      fi
27442    done
27443    # Screen out bogus values from the imake configuration.  They are
27444    # bogus both because they are the default anyway, and because
27445    # using them would break gcc on systems where it needs fixed includes.
27446    case $ac_im_incroot in
27447	/usr/include) ac_x_includes= ;;
27448	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27449    esac
27450    case $ac_im_usrlibdir in
27451	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
27452	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27453    esac
27454  fi
27455  cd ..
27456  rm -f -r conftest.dir
27457fi
27458
27459# Standard set of common directories for X headers.
27460# Check X11 before X11Rn because it is often a symlink to the current release.
27461ac_x_header_dirs='
27462/usr/X11/include
27463/usr/X11R7/include
27464/usr/X11R6/include
27465/usr/X11R5/include
27466/usr/X11R4/include
27467
27468/usr/include/X11
27469/usr/include/X11R7
27470/usr/include/X11R6
27471/usr/include/X11R5
27472/usr/include/X11R4
27473
27474/usr/local/X11/include
27475/usr/local/X11R7/include
27476/usr/local/X11R6/include
27477/usr/local/X11R5/include
27478/usr/local/X11R4/include
27479
27480/usr/local/include/X11
27481/usr/local/include/X11R7
27482/usr/local/include/X11R6
27483/usr/local/include/X11R5
27484/usr/local/include/X11R4
27485
27486/usr/X386/include
27487/usr/x386/include
27488/usr/XFree86/include/X11
27489
27490/usr/include
27491/usr/local/include
27492/usr/unsupported/include
27493/usr/athena/include
27494/usr/local/x11r5/include
27495/usr/lpp/Xamples/include
27496
27497/usr/openwin/include
27498/usr/openwin/share/include'
27499
27500if test "$ac_x_includes" = no; then
27501  # Guess where to find include files, by looking for Xlib.h.
27502  # First, try using that file with no special directory specified.
27503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27504/* end confdefs.h.  */
27505#include <X11/Xlib.h>
27506_ACEOF
27507if ac_fn_c_try_cpp "$LINENO"; then :
27508  # We can compile using X headers with no special include directory.
27509ac_x_includes=
27510else
27511  for ac_dir in $ac_x_header_dirs; do
27512  if test -r "$ac_dir/X11/Xlib.h"; then
27513    ac_x_includes=$ac_dir
27514    break
27515  fi
27516done
27517fi
27518rm -f conftest.err conftest.i conftest.$ac_ext
27519fi # $ac_x_includes = no
27520
27521if test "$ac_x_libraries" = no; then
27522  # Check for the libraries.
27523  # See if we find them without any special options.
27524  # Don't add to $LIBS permanently.
27525  ac_save_LIBS=$LIBS
27526  LIBS="-lX11 $LIBS"
27527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27528/* end confdefs.h.  */
27529#include <X11/Xlib.h>
27530int
27531main ()
27532{
27533XrmInitialize ()
27534  ;
27535  return 0;
27536}
27537_ACEOF
27538if ac_fn_c_try_link "$LINENO"; then :
27539  LIBS=$ac_save_LIBS
27540# We can link X programs with no special library path.
27541ac_x_libraries=
27542else
27543  LIBS=$ac_save_LIBS
27544for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27545do
27546  # Don't even attempt the hair of trying to link an X program!
27547  for ac_extension in a so sl dylib la dll; do
27548    if test -r "$ac_dir/libX11.$ac_extension"; then
27549      ac_x_libraries=$ac_dir
27550      break 2
27551    fi
27552  done
27553done
27554fi
27555rm -f core conftest.err conftest.$ac_objext \
27556    conftest$ac_exeext conftest.$ac_ext
27557fi # $ac_x_libraries = no
27558
27559case $ac_x_includes,$ac_x_libraries in #(
27560  no,* | *,no | *\'*)
27561    # Didn't find X, or a directory has "'" in its name.
27562    ac_cv_have_x="have_x=no";; #(
27563  *)
27564    # Record where we found X for the cache.
27565    ac_cv_have_x="have_x=yes\
27566	ac_x_includes='$ac_x_includes'\
27567	ac_x_libraries='$ac_x_libraries'"
27568esac
27569fi
27570;; #(
27571    *) have_x=yes;;
27572  esac
27573  eval "$ac_cv_have_x"
27574fi # $with_x != no
27575
27576if test "$have_x" != yes; then
27577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
27578$as_echo "$have_x" >&6; }
27579  no_x=yes
27580else
27581  # If each of the values was on the command line, it overrides each guess.
27582  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27583  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27584  # Update the cache value to reflect the command line values.
27585  ac_cv_have_x="have_x=yes\
27586	ac_x_includes='$x_includes'\
27587	ac_x_libraries='$x_libraries'"
27588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
27589$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27590fi
27591
27592if test "$no_x" = yes; then
27593  # Not all programs may use this symbol, but it does not hurt to define it.
27594
27595$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
27596
27597  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27598else
27599  if test -n "$x_includes"; then
27600    X_CFLAGS="$X_CFLAGS -I$x_includes"
27601  fi
27602
27603  # It would also be nice to do this for all -L options, not just this one.
27604  if test -n "$x_libraries"; then
27605    X_LIBS="$X_LIBS -L$x_libraries"
27606    # For Solaris; some versions of Sun CC require a space after -R and
27607    # others require no space.  Words are not sufficient . . . .
27608    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
27609$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27610    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27611    ac_xsave_c_werror_flag=$ac_c_werror_flag
27612    ac_c_werror_flag=yes
27613    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27614/* end confdefs.h.  */
27615
27616int
27617main ()
27618{
27619
27620  ;
27621  return 0;
27622}
27623_ACEOF
27624if ac_fn_c_try_link "$LINENO"; then :
27625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27626$as_echo "no" >&6; }
27627       X_LIBS="$X_LIBS -R$x_libraries"
27628else
27629  LIBS="$ac_xsave_LIBS -R $x_libraries"
27630       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27631/* end confdefs.h.  */
27632
27633int
27634main ()
27635{
27636
27637  ;
27638  return 0;
27639}
27640_ACEOF
27641if ac_fn_c_try_link "$LINENO"; then :
27642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27643$as_echo "yes" >&6; }
27644	  X_LIBS="$X_LIBS -R $x_libraries"
27645else
27646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
27647$as_echo "neither works" >&6; }
27648fi
27649rm -f core conftest.err conftest.$ac_objext \
27650    conftest$ac_exeext conftest.$ac_ext
27651fi
27652rm -f core conftest.err conftest.$ac_objext \
27653    conftest$ac_exeext conftest.$ac_ext
27654    ac_c_werror_flag=$ac_xsave_c_werror_flag
27655    LIBS=$ac_xsave_LIBS
27656  fi
27657
27658  # Check for system-dependent libraries X programs must link with.
27659  # Do this before checking for the system-independent R6 libraries
27660  # (-lICE), since we may need -lsocket or whatever for X linking.
27661
27662  if test "$ISC" = yes; then
27663    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27664  else
27665    # Martyn Johnson says this is needed for Ultrix, if the X
27666    # libraries were built with DECnet support.  And Karl Berry says
27667    # the Alpha needs dnet_stub (dnet does not exist).
27668    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27669    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27670/* end confdefs.h.  */
27671
27672/* Override any GCC internal prototype to avoid an error.
27673   Use char because int might match the return type of a GCC
27674   builtin and then its argument prototype would still apply.  */
27675#ifdef __cplusplus
27676extern "C"
27677#endif
27678char XOpenDisplay ();
27679int
27680main ()
27681{
27682return XOpenDisplay ();
27683  ;
27684  return 0;
27685}
27686_ACEOF
27687if ac_fn_c_try_link "$LINENO"; then :
27688
27689else
27690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
27691$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
27692if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
27693  $as_echo_n "(cached) " >&6
27694else
27695  ac_check_lib_save_LIBS=$LIBS
27696LIBS="-ldnet  $LIBS"
27697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698/* end confdefs.h.  */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701   Use char because int might match the return type of a GCC
27702   builtin and then its argument prototype would still apply.  */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char dnet_ntoa ();
27707int
27708main ()
27709{
27710return dnet_ntoa ();
27711  ;
27712  return 0;
27713}
27714_ACEOF
27715if ac_fn_c_try_link "$LINENO"; then :
27716  ac_cv_lib_dnet_dnet_ntoa=yes
27717else
27718  ac_cv_lib_dnet_dnet_ntoa=no
27719fi
27720rm -f core conftest.err conftest.$ac_objext \
27721    conftest$ac_exeext conftest.$ac_ext
27722LIBS=$ac_check_lib_save_LIBS
27723fi
27724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27725$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27726if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27727  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27728fi
27729
27730    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27731      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27732$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27733if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27734  $as_echo_n "(cached) " >&6
27735else
27736  ac_check_lib_save_LIBS=$LIBS
27737LIBS="-ldnet_stub  $LIBS"
27738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27739/* end confdefs.h.  */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742   Use char because int might match the return type of a GCC
27743   builtin and then its argument prototype would still apply.  */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char dnet_ntoa ();
27748int
27749main ()
27750{
27751return dnet_ntoa ();
27752  ;
27753  return 0;
27754}
27755_ACEOF
27756if ac_fn_c_try_link "$LINENO"; then :
27757  ac_cv_lib_dnet_stub_dnet_ntoa=yes
27758else
27759  ac_cv_lib_dnet_stub_dnet_ntoa=no
27760fi
27761rm -f core conftest.err conftest.$ac_objext \
27762    conftest$ac_exeext conftest.$ac_ext
27763LIBS=$ac_check_lib_save_LIBS
27764fi
27765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27766$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27767if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27768  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27769fi
27770
27771    fi
27772fi
27773rm -f core conftest.err conftest.$ac_objext \
27774    conftest$ac_exeext conftest.$ac_ext
27775    LIBS="$ac_xsave_LIBS"
27776
27777    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27778    # to get the SysV transport functions.
27779    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27780    # needs -lnsl.
27781    # The nsl library prevents programs from opening the X display
27782    # on Irix 5.2, according to T.E. Dickey.
27783    # The functions gethostbyname, getservbyname, and inet_addr are
27784    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27785    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27786if test "x$ac_cv_func_gethostbyname" = xyes; then :
27787
27788fi
27789
27790    if test $ac_cv_func_gethostbyname = no; then
27791      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27792$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27793if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27794  $as_echo_n "(cached) " >&6
27795else
27796  ac_check_lib_save_LIBS=$LIBS
27797LIBS="-lnsl  $LIBS"
27798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799/* end confdefs.h.  */
27800
27801/* Override any GCC internal prototype to avoid an error.
27802   Use char because int might match the return type of a GCC
27803   builtin and then its argument prototype would still apply.  */
27804#ifdef __cplusplus
27805extern "C"
27806#endif
27807char gethostbyname ();
27808int
27809main ()
27810{
27811return gethostbyname ();
27812  ;
27813  return 0;
27814}
27815_ACEOF
27816if ac_fn_c_try_link "$LINENO"; then :
27817  ac_cv_lib_nsl_gethostbyname=yes
27818else
27819  ac_cv_lib_nsl_gethostbyname=no
27820fi
27821rm -f core conftest.err conftest.$ac_objext \
27822    conftest$ac_exeext conftest.$ac_ext
27823LIBS=$ac_check_lib_save_LIBS
27824fi
27825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27826$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27827if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27828  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27829fi
27830
27831      if test $ac_cv_lib_nsl_gethostbyname = no; then
27832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27833$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27834if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27835  $as_echo_n "(cached) " >&6
27836else
27837  ac_check_lib_save_LIBS=$LIBS
27838LIBS="-lbsd  $LIBS"
27839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840/* end confdefs.h.  */
27841
27842/* Override any GCC internal prototype to avoid an error.
27843   Use char because int might match the return type of a GCC
27844   builtin and then its argument prototype would still apply.  */
27845#ifdef __cplusplus
27846extern "C"
27847#endif
27848char gethostbyname ();
27849int
27850main ()
27851{
27852return gethostbyname ();
27853  ;
27854  return 0;
27855}
27856_ACEOF
27857if ac_fn_c_try_link "$LINENO"; then :
27858  ac_cv_lib_bsd_gethostbyname=yes
27859else
27860  ac_cv_lib_bsd_gethostbyname=no
27861fi
27862rm -f core conftest.err conftest.$ac_objext \
27863    conftest$ac_exeext conftest.$ac_ext
27864LIBS=$ac_check_lib_save_LIBS
27865fi
27866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27867$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27868if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27869  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27870fi
27871
27872      fi
27873    fi
27874
27875    # lieder@skyler.mavd.honeywell.com says without -lsocket,
27876    # socket/setsockopt and other routines are undefined under SCO ODT
27877    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27878    # on later versions), says Simon Leinen: it contains gethostby*
27879    # variants that don't use the name server (or something).  -lsocket
27880    # must be given before -lnsl if both are needed.  We assume that
27881    # if connect needs -lnsl, so does gethostbyname.
27882    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27883if test "x$ac_cv_func_connect" = xyes; then :
27884
27885fi
27886
27887    if test $ac_cv_func_connect = no; then
27888      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27889$as_echo_n "checking for connect in -lsocket... " >&6; }
27890if ${ac_cv_lib_socket_connect+:} false; then :
27891  $as_echo_n "(cached) " >&6
27892else
27893  ac_check_lib_save_LIBS=$LIBS
27894LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896/* end confdefs.h.  */
27897
27898/* Override any GCC internal prototype to avoid an error.
27899   Use char because int might match the return type of a GCC
27900   builtin and then its argument prototype would still apply.  */
27901#ifdef __cplusplus
27902extern "C"
27903#endif
27904char connect ();
27905int
27906main ()
27907{
27908return connect ();
27909  ;
27910  return 0;
27911}
27912_ACEOF
27913if ac_fn_c_try_link "$LINENO"; then :
27914  ac_cv_lib_socket_connect=yes
27915else
27916  ac_cv_lib_socket_connect=no
27917fi
27918rm -f core conftest.err conftest.$ac_objext \
27919    conftest$ac_exeext conftest.$ac_ext
27920LIBS=$ac_check_lib_save_LIBS
27921fi
27922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27923$as_echo "$ac_cv_lib_socket_connect" >&6; }
27924if test "x$ac_cv_lib_socket_connect" = xyes; then :
27925  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27926fi
27927
27928    fi
27929
27930    # Guillermo Gomez says -lposix is necessary on A/UX.
27931    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27932if test "x$ac_cv_func_remove" = xyes; then :
27933
27934fi
27935
27936    if test $ac_cv_func_remove = no; then
27937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27938$as_echo_n "checking for remove in -lposix... " >&6; }
27939if ${ac_cv_lib_posix_remove+:} false; then :
27940  $as_echo_n "(cached) " >&6
27941else
27942  ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lposix  $LIBS"
27944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27945/* end confdefs.h.  */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948   Use char because int might match the return type of a GCC
27949   builtin and then its argument prototype would still apply.  */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char remove ();
27954int
27955main ()
27956{
27957return remove ();
27958  ;
27959  return 0;
27960}
27961_ACEOF
27962if ac_fn_c_try_link "$LINENO"; then :
27963  ac_cv_lib_posix_remove=yes
27964else
27965  ac_cv_lib_posix_remove=no
27966fi
27967rm -f core conftest.err conftest.$ac_objext \
27968    conftest$ac_exeext conftest.$ac_ext
27969LIBS=$ac_check_lib_save_LIBS
27970fi
27971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27972$as_echo "$ac_cv_lib_posix_remove" >&6; }
27973if test "x$ac_cv_lib_posix_remove" = xyes; then :
27974  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27975fi
27976
27977    fi
27978
27979    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27980    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27981if test "x$ac_cv_func_shmat" = xyes; then :
27982
27983fi
27984
27985    if test $ac_cv_func_shmat = no; then
27986      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27987$as_echo_n "checking for shmat in -lipc... " >&6; }
27988if ${ac_cv_lib_ipc_shmat+:} false; then :
27989  $as_echo_n "(cached) " >&6
27990else
27991  ac_check_lib_save_LIBS=$LIBS
27992LIBS="-lipc  $LIBS"
27993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994/* end confdefs.h.  */
27995
27996/* Override any GCC internal prototype to avoid an error.
27997   Use char because int might match the return type of a GCC
27998   builtin and then its argument prototype would still apply.  */
27999#ifdef __cplusplus
28000extern "C"
28001#endif
28002char shmat ();
28003int
28004main ()
28005{
28006return shmat ();
28007  ;
28008  return 0;
28009}
28010_ACEOF
28011if ac_fn_c_try_link "$LINENO"; then :
28012  ac_cv_lib_ipc_shmat=yes
28013else
28014  ac_cv_lib_ipc_shmat=no
28015fi
28016rm -f core conftest.err conftest.$ac_objext \
28017    conftest$ac_exeext conftest.$ac_ext
28018LIBS=$ac_check_lib_save_LIBS
28019fi
28020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
28021$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
28022if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
28023  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28024fi
28025
28026    fi
28027  fi
28028
28029  # Check for libraries that X11R6 Xt/Xaw programs need.
28030  ac_save_LDFLAGS=$LDFLAGS
28031  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28032  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28033  # check for ICE first), but we must link in the order -lSM -lICE or
28034  # we get undefined symbols.  So assume we have SM if we have ICE.
28035  # These have to be linked with before -lX11, unlike the other
28036  # libraries we check for below, so use a different variable.
28037  # John Interrante, Karl Berry
28038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
28039$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
28040if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
28041  $as_echo_n "(cached) " >&6
28042else
28043  ac_check_lib_save_LIBS=$LIBS
28044LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28046/* end confdefs.h.  */
28047
28048/* Override any GCC internal prototype to avoid an error.
28049   Use char because int might match the return type of a GCC
28050   builtin and then its argument prototype would still apply.  */
28051#ifdef __cplusplus
28052extern "C"
28053#endif
28054char IceConnectionNumber ();
28055int
28056main ()
28057{
28058return IceConnectionNumber ();
28059  ;
28060  return 0;
28061}
28062_ACEOF
28063if ac_fn_c_try_link "$LINENO"; then :
28064  ac_cv_lib_ICE_IceConnectionNumber=yes
28065else
28066  ac_cv_lib_ICE_IceConnectionNumber=no
28067fi
28068rm -f core conftest.err conftest.$ac_objext \
28069    conftest$ac_exeext conftest.$ac_ext
28070LIBS=$ac_check_lib_save_LIBS
28071fi
28072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28073$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28074if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
28075  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28076fi
28077
28078  LDFLAGS=$ac_save_LDFLAGS
28079
28080fi
28081
28082if test "$no_x" != 'yes'; then
28083    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28084$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
28086$as_echo_n "checking for X11... " >&6; }
28087    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28088$as_echo "$as_me: " >&6;}
28089    LDFLAGS="$LDFLAGS $X_LIBS"
28090    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28091    LIBS="$X11_LIBS $LIBS"
28092    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28093
28094
28095$as_echo "#define X11_DELEGATE 1" >>confdefs.h
28096
28097    #
28098    # Check for X11 shared memory extension
28099    #
28100    # shmctl is required to support the shared memory extension
28101    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
28102if test "x$ac_cv_func_shmctl" = xyes; then :
28103  have_shmctl='yes'
28104fi
28105
28106    if test "$have_shmctl" != 'yes'; then
28107        PERSIST_LIBS=$LIBS
28108        LIBS="$LIBS -lcygipc"
28109        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28110/* end confdefs.h.  */
28111
28112/* Override any GCC internal prototype to avoid an error.
28113   Use char because int might match the return type of a GCC
28114   builtin and then its argument prototype would still apply.  */
28115#ifdef __cplusplus
28116extern "C"
28117#endif
28118char shmctl ();
28119int
28120main ()
28121{
28122return shmctl ();
28123  ;
28124  return 0;
28125}
28126_ACEOF
28127if ac_fn_c_try_link "$LINENO"; then :
28128  have_shmctl='yes'; IPC_LIBS='-lcygipc'
28129fi
28130rm -f core conftest.err conftest.$ac_objext \
28131    conftest$ac_exeext conftest.$ac_ext
28132        LIBS=$PERSIST_LIBS
28133    fi
28134
28135    if test "$have_shmctl" = 'yes'; then
28136        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
28137$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
28138if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
28139  $as_echo_n "(cached) " >&6
28140else
28141  ac_check_lib_save_LIBS=$LIBS
28142LIBS="-lXext  $LIBS"
28143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28144/* end confdefs.h.  */
28145
28146/* Override any GCC internal prototype to avoid an error.
28147   Use char because int might match the return type of a GCC
28148   builtin and then its argument prototype would still apply.  */
28149#ifdef __cplusplus
28150extern "C"
28151#endif
28152char XShmAttach ();
28153int
28154main ()
28155{
28156return XShmAttach ();
28157  ;
28158  return 0;
28159}
28160_ACEOF
28161if ac_fn_c_try_link "$LINENO"; then :
28162  ac_cv_lib_Xext_XShmAttach=yes
28163else
28164  ac_cv_lib_Xext_XShmAttach=no
28165fi
28166rm -f core conftest.err conftest.$ac_objext \
28167    conftest$ac_exeext conftest.$ac_ext
28168LIBS=$ac_check_lib_save_LIBS
28169fi
28170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
28171$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
28172if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
28173  XEXT_LIBS='-lXext' ;
28174$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
28175
28176fi
28177
28178    fi
28179
28180    #
28181    # Check for X11 shape extension
28182    #
28183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
28184$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
28185if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
28186  $as_echo_n "(cached) " >&6
28187else
28188  ac_check_lib_save_LIBS=$LIBS
28189LIBS="-lXext  $LIBS"
28190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28191/* end confdefs.h.  */
28192
28193/* Override any GCC internal prototype to avoid an error.
28194   Use char because int might match the return type of a GCC
28195   builtin and then its argument prototype would still apply.  */
28196#ifdef __cplusplus
28197extern "C"
28198#endif
28199char XShapeCombineMask ();
28200int
28201main ()
28202{
28203return XShapeCombineMask ();
28204  ;
28205  return 0;
28206}
28207_ACEOF
28208if ac_fn_c_try_link "$LINENO"; then :
28209  ac_cv_lib_Xext_XShapeCombineMask=yes
28210else
28211  ac_cv_lib_Xext_XShapeCombineMask=no
28212fi
28213rm -f core conftest.err conftest.$ac_objext \
28214    conftest$ac_exeext conftest.$ac_ext
28215LIBS=$ac_check_lib_save_LIBS
28216fi
28217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
28218$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
28219if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
28220  XEXT_LIBS='-lXext' ;
28221$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
28222
28223fi
28224
28225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
28226$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
28227if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
28228  $as_echo_n "(cached) " >&6
28229else
28230  ac_check_lib_save_LIBS=$LIBS
28231LIBS="-lXt  $LIBS"
28232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28233/* end confdefs.h.  */
28234
28235/* Override any GCC internal prototype to avoid an error.
28236   Use char because int might match the return type of a GCC
28237   builtin and then its argument prototype would still apply.  */
28238#ifdef __cplusplus
28239extern "C"
28240#endif
28241char XtSetEventDispatcher ();
28242int
28243main ()
28244{
28245return XtSetEventDispatcher ();
28246  ;
28247  return 0;
28248}
28249_ACEOF
28250if ac_fn_c_try_link "$LINENO"; then :
28251  ac_cv_lib_Xt_XtSetEventDispatcher=yes
28252else
28253  ac_cv_lib_Xt_XtSetEventDispatcher=no
28254fi
28255rm -f core conftest.err conftest.$ac_objext \
28256    conftest$ac_exeext conftest.$ac_ext
28257LIBS=$ac_check_lib_save_LIBS
28258fi
28259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
28260$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
28261if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
28262  XT_LIBS='-lXt'
28263fi
28264
28265    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28266fi
28267if test "$no_x" != 'yes'; then
28268  have_x='yes'
28269else
28270  have_x='no'
28271fi
28272 if test "$have_x" = 'yes'; then
28273  X11_DELEGATE_TRUE=
28274  X11_DELEGATE_FALSE='#'
28275else
28276  X11_DELEGATE_TRUE='#'
28277  X11_DELEGATE_FALSE=
28278fi
28279
28280
28281
28282
28283
28284#
28285# Check for ZLIB
28286#
28287
28288# Check whether --with-zlib was given.
28289if test "${with_zlib+set}" = set; then :
28290  withval=$with_zlib; with_zlib=$withval
28291else
28292  with_zlib='yes'
28293fi
28294
28295
28296if test "$with_zlib" != 'yes'; then
28297    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28298fi
28299
28300have_zlib='no'
28301ZLIB_LIBS=''
28302if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
28303    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28304$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
28306$as_echo_n "checking for ZLIB... " >&6; }
28307    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28308$as_echo "$as_me: " >&6;}
28309    ZLIB_LIBS=''
28310    failed=0
28311    passed=0
28312    ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
28313if test "x$ac_cv_header_zconf_h" = xyes; then :
28314  passed=`expr $passed + 1`
28315else
28316  failed=`expr $failed + 1`
28317fi
28318
28319
28320    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28321if test "x$ac_cv_header_zlib_h" = xyes; then :
28322  passed=`expr $passed + 1`
28323else
28324  failed=`expr $failed + 1`
28325fi
28326
28327
28328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
28329$as_echo_n "checking for compress in -lz... " >&6; }
28330if ${ac_cv_lib_z_compress+:} false; then :
28331  $as_echo_n "(cached) " >&6
28332else
28333  ac_check_lib_save_LIBS=$LIBS
28334LIBS="-lz  $LIBS"
28335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28336/* end confdefs.h.  */
28337
28338/* Override any GCC internal prototype to avoid an error.
28339   Use char because int might match the return type of a GCC
28340   builtin and then its argument prototype would still apply.  */
28341#ifdef __cplusplus
28342extern "C"
28343#endif
28344char compress ();
28345int
28346main ()
28347{
28348return compress ();
28349  ;
28350  return 0;
28351}
28352_ACEOF
28353if ac_fn_c_try_link "$LINENO"; then :
28354  ac_cv_lib_z_compress=yes
28355else
28356  ac_cv_lib_z_compress=no
28357fi
28358rm -f core conftest.err conftest.$ac_objext \
28359    conftest$ac_exeext conftest.$ac_ext
28360LIBS=$ac_check_lib_save_LIBS
28361fi
28362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
28363$as_echo "$ac_cv_lib_z_compress" >&6; }
28364if test "x$ac_cv_lib_z_compress" = xyes; then :
28365  passed=`expr $passed + 1`
28366else
28367  failed=`expr $failed + 1`
28368fi
28369
28370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
28371$as_echo_n "checking for uncompress in -lz... " >&6; }
28372if ${ac_cv_lib_z_uncompress+:} false; then :
28373  $as_echo_n "(cached) " >&6
28374else
28375  ac_check_lib_save_LIBS=$LIBS
28376LIBS="-lz  $LIBS"
28377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28378/* end confdefs.h.  */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381   Use char because int might match the return type of a GCC
28382   builtin and then its argument prototype would still apply.  */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char uncompress ();
28387int
28388main ()
28389{
28390return uncompress ();
28391  ;
28392  return 0;
28393}
28394_ACEOF
28395if ac_fn_c_try_link "$LINENO"; then :
28396  ac_cv_lib_z_uncompress=yes
28397else
28398  ac_cv_lib_z_uncompress=no
28399fi
28400rm -f core conftest.err conftest.$ac_objext \
28401    conftest$ac_exeext conftest.$ac_ext
28402LIBS=$ac_check_lib_save_LIBS
28403fi
28404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
28405$as_echo "$ac_cv_lib_z_uncompress" >&6; }
28406if test "x$ac_cv_lib_z_uncompress" = xyes; then :
28407  passed=`expr $passed + 1`
28408else
28409  failed=`expr $failed + 1`
28410fi
28411
28412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28413$as_echo_n "checking for deflate in -lz... " >&6; }
28414if ${ac_cv_lib_z_deflate+:} false; then :
28415  $as_echo_n "(cached) " >&6
28416else
28417  ac_check_lib_save_LIBS=$LIBS
28418LIBS="-lz  $LIBS"
28419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28420/* end confdefs.h.  */
28421
28422/* Override any GCC internal prototype to avoid an error.
28423   Use char because int might match the return type of a GCC
28424   builtin and then its argument prototype would still apply.  */
28425#ifdef __cplusplus
28426extern "C"
28427#endif
28428char deflate ();
28429int
28430main ()
28431{
28432return deflate ();
28433  ;
28434  return 0;
28435}
28436_ACEOF
28437if ac_fn_c_try_link "$LINENO"; then :
28438  ac_cv_lib_z_deflate=yes
28439else
28440  ac_cv_lib_z_deflate=no
28441fi
28442rm -f core conftest.err conftest.$ac_objext \
28443    conftest$ac_exeext conftest.$ac_ext
28444LIBS=$ac_check_lib_save_LIBS
28445fi
28446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28447$as_echo "$ac_cv_lib_z_deflate" >&6; }
28448if test "x$ac_cv_lib_z_deflate" = xyes; then :
28449  passed=`expr $passed + 1`
28450else
28451  failed=`expr $failed + 1`
28452fi
28453
28454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
28455$as_echo_n "checking for inflate in -lz... " >&6; }
28456if ${ac_cv_lib_z_inflate+:} false; then :
28457  $as_echo_n "(cached) " >&6
28458else
28459  ac_check_lib_save_LIBS=$LIBS
28460LIBS="-lz  $LIBS"
28461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28462/* end confdefs.h.  */
28463
28464/* Override any GCC internal prototype to avoid an error.
28465   Use char because int might match the return type of a GCC
28466   builtin and then its argument prototype would still apply.  */
28467#ifdef __cplusplus
28468extern "C"
28469#endif
28470char inflate ();
28471int
28472main ()
28473{
28474return inflate ();
28475  ;
28476  return 0;
28477}
28478_ACEOF
28479if ac_fn_c_try_link "$LINENO"; then :
28480  ac_cv_lib_z_inflate=yes
28481else
28482  ac_cv_lib_z_inflate=no
28483fi
28484rm -f core conftest.err conftest.$ac_objext \
28485    conftest$ac_exeext conftest.$ac_ext
28486LIBS=$ac_check_lib_save_LIBS
28487fi
28488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
28489$as_echo "$ac_cv_lib_z_inflate" >&6; }
28490if test "x$ac_cv_lib_z_inflate" = xyes; then :
28491  passed=`expr $passed + 1`
28492else
28493  failed=`expr $failed + 1`
28494fi
28495
28496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
28497$as_echo_n "checking for gzseek in -lz... " >&6; }
28498if ${ac_cv_lib_z_gzseek+:} false; then :
28499  $as_echo_n "(cached) " >&6
28500else
28501  ac_check_lib_save_LIBS=$LIBS
28502LIBS="-lz  $LIBS"
28503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28504/* end confdefs.h.  */
28505
28506/* Override any GCC internal prototype to avoid an error.
28507   Use char because int might match the return type of a GCC
28508   builtin and then its argument prototype would still apply.  */
28509#ifdef __cplusplus
28510extern "C"
28511#endif
28512char gzseek ();
28513int
28514main ()
28515{
28516return gzseek ();
28517  ;
28518  return 0;
28519}
28520_ACEOF
28521if ac_fn_c_try_link "$LINENO"; then :
28522  ac_cv_lib_z_gzseek=yes
28523else
28524  ac_cv_lib_z_gzseek=no
28525fi
28526rm -f core conftest.err conftest.$ac_objext \
28527    conftest$ac_exeext conftest.$ac_ext
28528LIBS=$ac_check_lib_save_LIBS
28529fi
28530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
28531$as_echo "$ac_cv_lib_z_gzseek" >&6; }
28532if test "x$ac_cv_lib_z_gzseek" = xyes; then :
28533  passed=`expr $passed + 1`
28534else
28535  failed=`expr $failed + 1`
28536fi
28537
28538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
28539$as_echo_n "checking for gztell in -lz... " >&6; }
28540if ${ac_cv_lib_z_gztell+:} false; then :
28541  $as_echo_n "(cached) " >&6
28542else
28543  ac_check_lib_save_LIBS=$LIBS
28544LIBS="-lz  $LIBS"
28545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28546/* end confdefs.h.  */
28547
28548/* Override any GCC internal prototype to avoid an error.
28549   Use char because int might match the return type of a GCC
28550   builtin and then its argument prototype would still apply.  */
28551#ifdef __cplusplus
28552extern "C"
28553#endif
28554char gztell ();
28555int
28556main ()
28557{
28558return gztell ();
28559  ;
28560  return 0;
28561}
28562_ACEOF
28563if ac_fn_c_try_link "$LINENO"; then :
28564  ac_cv_lib_z_gztell=yes
28565else
28566  ac_cv_lib_z_gztell=no
28567fi
28568rm -f core conftest.err conftest.$ac_objext \
28569    conftest$ac_exeext conftest.$ac_ext
28570LIBS=$ac_check_lib_save_LIBS
28571fi
28572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
28573$as_echo "$ac_cv_lib_z_gztell" >&6; }
28574if test "x$ac_cv_lib_z_gztell" = xyes; then :
28575  passed=`expr $passed + 1`
28576else
28577  failed=`expr $failed + 1`
28578fi
28579
28580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
28581$as_echo_n "checking if ZLIB package is complete... " >&6; }
28582    if test $passed -gt 0; then
28583        if test $failed -gt 0; then
28584            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28585$as_echo "$as_me: no -- some components failed test" >&6;}
28586            have_zlib='no (failed tests)'
28587        else
28588            ZLIB_LIBS='-lz'
28589            LIBS="$ZLIB_LIBS $LIBS"
28590
28591$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28592
28593            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28594$as_echo "$as_me: yes" >&6;}
28595            have_zlib='yes'
28596        fi
28597    else
28598        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28599$as_echo "$as_me: no" >&6;}
28600    fi
28601fi
28602 if test "$have_zlib" = 'yes'; then
28603  ZLIB_DELEGATE_TRUE=
28604  ZLIB_DELEGATE_FALSE='#'
28605else
28606  ZLIB_DELEGATE_TRUE='#'
28607  ZLIB_DELEGATE_FALSE=
28608fi
28609
28610
28611
28612#
28613# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28614#
28615LIB_DL=''
28616if test "$enable_profiling" = 'yes'; then
28617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
28618$as_echo_n "checking for dlopen in -ldl... " >&6; }
28619if ${ac_cv_lib_dl_dlopen+:} false; then :
28620  $as_echo_n "(cached) " >&6
28621else
28622  ac_check_lib_save_LIBS=$LIBS
28623LIBS="-ldl  $LIBS"
28624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28625/* end confdefs.h.  */
28626
28627/* Override any GCC internal prototype to avoid an error.
28628   Use char because int might match the return type of a GCC
28629   builtin and then its argument prototype would still apply.  */
28630#ifdef __cplusplus
28631extern "C"
28632#endif
28633char dlopen ();
28634int
28635main ()
28636{
28637return dlopen ();
28638  ;
28639  return 0;
28640}
28641_ACEOF
28642if ac_fn_c_try_link "$LINENO"; then :
28643  ac_cv_lib_dl_dlopen=yes
28644else
28645  ac_cv_lib_dl_dlopen=no
28646fi
28647rm -f core conftest.err conftest.$ac_objext \
28648    conftest$ac_exeext conftest.$ac_ext
28649LIBS=$ac_check_lib_save_LIBS
28650fi
28651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
28652$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28653if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
28654  LIB_DL='-ldl'
28655fi
28656
28657    LIBS="$LIB_DL $LIBS"
28658fi
28659
28660
28661
28662#
28663# Check for Autotrace delegate library.
28664#
28665
28666# Check whether --with-autotrace was given.
28667if test "${with_autotrace+set}" = set; then :
28668  withval=$with_autotrace; with_autotrace=$withval
28669else
28670  with_autotrace='no'
28671fi
28672
28673
28674if test "$with_autotrace" != 'yes'; then
28675    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28676fi
28677
28678have_autotrace='no'
28679AUTOTRACE_CFLAGS=""
28680AUTOTRACE_LIBS=""
28681AUTOTRACE_PKG=""
28682if test "x$with_autotrace" = "xyes"; then
28683    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28684$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28685
28686pkg_failed=no
28687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28688$as_echo_n "checking for AUTOTRACE... " >&6; }
28689
28690if test -n "$AUTOTRACE_CFLAGS"; then
28691    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28692 elif test -n "$PKG_CONFIG"; then
28693    if test -n "$PKG_CONFIG" && \
28694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28695  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28696  ac_status=$?
28697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28698  test $ac_status = 0; }; then
28699  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28700else
28701  pkg_failed=yes
28702fi
28703 else
28704    pkg_failed=untried
28705fi
28706if test -n "$AUTOTRACE_LIBS"; then
28707    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28708 elif test -n "$PKG_CONFIG"; then
28709    if test -n "$PKG_CONFIG" && \
28710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28711  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28712  ac_status=$?
28713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28714  test $ac_status = 0; }; then
28715  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28716else
28717  pkg_failed=yes
28718fi
28719 else
28720    pkg_failed=untried
28721fi
28722
28723
28724
28725if test $pkg_failed = yes; then
28726
28727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28728        _pkg_short_errors_supported=yes
28729else
28730        _pkg_short_errors_supported=no
28731fi
28732        if test $_pkg_short_errors_supported = yes; then
28733	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28734        else
28735	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28736        fi
28737	# Put the nasty error message in config.log where it belongs
28738	echo "$AUTOTRACE_PKG_ERRORS" >&5
28739
28740	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28741$as_echo "no" >&6; }
28742                have_autotrace=no
28743elif test $pkg_failed = untried; then
28744	have_autotrace=no
28745else
28746	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28747	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28748        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28749$as_echo "yes" >&6; }
28750	have_autotrace=yes
28751fi
28752    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28753$as_echo "$as_me: " >&6;}
28754fi
28755
28756if test "$have_autotrace" = 'yes'; then
28757    failed=0
28758
28759$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28760
28761    if test "$with_modules" = 'no'; then
28762    CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28763    fi
28764fi
28765
28766 if test "$have_autotrace" = 'yes'; then
28767  AUTOTRACE_DELEGATE_TRUE=
28768  AUTOTRACE_DELEGATE_FALSE='#'
28769else
28770  AUTOTRACE_DELEGATE_TRUE='#'
28771  AUTOTRACE_DELEGATE_FALSE=
28772fi
28773
28774
28775
28776
28777
28778#
28779# Check for Display Postscript delegate library.
28780#
28781
28782# Check whether --with-dps was given.
28783if test "${with_dps+set}" = set; then :
28784  withval=$with_dps; with_dps=$withval
28785else
28786  with_dps='yes'
28787fi
28788
28789
28790if test "$with_dps" != 'yes'; then
28791    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28792fi
28793
28794have_dps='no'
28795DPS_LIBS=''
28796if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28797    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28800$as_echo_n "checking for DPS... " >&6; }
28801    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28802$as_echo "$as_me: " >&6;}
28803    failed=0
28804    passed=0
28805    PERSIST_CPPFLAGS="$CPPFLAGS"
28806    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28807    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28808if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28809  passed=`expr $passed + 1`
28810else
28811  failed=`expr $failed + 1`
28812fi
28813
28814
28815    # DPS issues:
28816    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28817    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28818    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28819    # ImageMagick itself doesn't use -lXt.
28820    have_libdps='no'
28821    LIBDPS_XT=''
28822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28823$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28824if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28825  $as_echo_n "(cached) " >&6
28826else
28827  ac_check_lib_save_LIBS=$LIBS
28828LIBS="-ldps  $LIBS"
28829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28830/* end confdefs.h.  */
28831
28832/* Override any GCC internal prototype to avoid an error.
28833   Use char because int might match the return type of a GCC
28834   builtin and then its argument prototype would still apply.  */
28835#ifdef __cplusplus
28836extern "C"
28837#endif
28838char DPSInitialize ();
28839int
28840main ()
28841{
28842return DPSInitialize ();
28843  ;
28844  return 0;
28845}
28846_ACEOF
28847if ac_fn_c_try_link "$LINENO"; then :
28848  ac_cv_lib_dps_DPSInitialize=yes
28849else
28850  ac_cv_lib_dps_DPSInitialize=no
28851fi
28852rm -f core conftest.err conftest.$ac_objext \
28853    conftest$ac_exeext conftest.$ac_ext
28854LIBS=$ac_check_lib_save_LIBS
28855fi
28856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28857$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28858if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28859  have_libdps='yes'
28860else
28861  have_libdps='no'
28862fi
28863
28864    if test "$have_libdps" != 'yes'; then
28865        # Unset cache variable so we can try again.
28866        unset ac_cv_lib_dps_DPSInitialize
28867        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28868$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28869if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28870  $as_echo_n "(cached) " >&6
28871else
28872  ac_check_lib_save_LIBS=$LIBS
28873LIBS="-ldps -lXt $LIBS"
28874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28875/* end confdefs.h.  */
28876
28877/* Override any GCC internal prototype to avoid an error.
28878   Use char because int might match the return type of a GCC
28879   builtin and then its argument prototype would still apply.  */
28880#ifdef __cplusplus
28881extern "C"
28882#endif
28883char DPSInitialize ();
28884int
28885main ()
28886{
28887return DPSInitialize ();
28888  ;
28889  return 0;
28890}
28891_ACEOF
28892if ac_fn_c_try_link "$LINENO"; then :
28893  ac_cv_lib_dps_DPSInitialize=yes
28894else
28895  ac_cv_lib_dps_DPSInitialize=no
28896fi
28897rm -f core conftest.err conftest.$ac_objext \
28898    conftest$ac_exeext conftest.$ac_ext
28899LIBS=$ac_check_lib_save_LIBS
28900fi
28901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28902$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28903if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28904  have_libdps='yes'
28905else
28906  have_libdps='no'
28907fi
28908
28909        if test "$have_libdps" = 'yes'; then
28910            LIBDPS_XT='-lXt'
28911        fi
28912    fi
28913    if test "$have_libdps" = 'yes'; then
28914        passed=`expr $passed + 1`
28915    else
28916        failed=`expr $failed + 1`
28917    fi
28918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28919$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28920if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28921  $as_echo_n "(cached) " >&6
28922else
28923  ac_check_lib_save_LIBS=$LIBS
28924LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28926/* end confdefs.h.  */
28927
28928/* Override any GCC internal prototype to avoid an error.
28929   Use char because int might match the return type of a GCC
28930   builtin and then its argument prototype would still apply.  */
28931#ifdef __cplusplus
28932extern "C"
28933#endif
28934char XDPSPixelsPerPoint ();
28935int
28936main ()
28937{
28938return XDPSPixelsPerPoint ();
28939  ;
28940  return 0;
28941}
28942_ACEOF
28943if ac_fn_c_try_link "$LINENO"; then :
28944  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28945else
28946  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28947fi
28948rm -f core conftest.err conftest.$ac_objext \
28949    conftest$ac_exeext conftest.$ac_ext
28950LIBS=$ac_check_lib_save_LIBS
28951fi
28952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28953$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28954if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28955  passed=`expr $passed + 1`
28956else
28957  failed=`expr $failed + 1`
28958fi
28959
28960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28961$as_echo_n "checking if DPS package is complete... " >&6; }
28962    if test $passed -gt 0; then
28963        if test $failed -gt 0; then
28964            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28965$as_echo "$as_me: no -- some components failed test" >&6;}
28966            have_dps='no (failed tests)'
28967            CPPFLAGS="$PERSIST_CPPFLAGS"
28968        else
28969            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28970            LIBS="$DPS_LIBS $LIBS"
28971
28972$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28973
28974            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28975$as_echo "$as_me: yes" >&6;}
28976            have_dps='yes'
28977        fi
28978    else
28979        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28980$as_echo "$as_me: no" >&6;}
28981        CPPFLAGS=$PERSIST_CPPFLAGS
28982    fi
28983fi
28984 if test "$have_dps" = 'yes'; then
28985  DPS_DELEGATE_TRUE=
28986  DPS_DELEGATE_FALSE='#'
28987else
28988  DPS_DELEGATE_TRUE='#'
28989  DPS_DELEGATE_FALSE=
28990fi
28991
28992
28993
28994
28995#
28996# Check for DJVU delegate library.
28997#
28998
28999# Check whether --with-djvu was given.
29000if test "${with_djvu+set}" = set; then :
29001  withval=$with_djvu; with_djvu=$withval
29002else
29003  with_djvu='yes'
29004fi
29005
29006
29007if test "$with_djvu" != 'yes'; then
29008    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29009fi
29010
29011have_djvu='no'
29012DJVU_LIBS=''
29013if test "$with_djvu" != 'no'; then
29014    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29015$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29017$as_echo_n "checking for DJVU... " >&6; }
29018    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29019$as_echo "$as_me: " >&6;}
29020    failed=0
29021    passed=0
29022    ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29023if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29024  passed=`expr $passed + 1`
29025else
29026  failed=`expr $failed + 1`
29027fi
29028
29029
29030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29031$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29032if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29033  $as_echo_n "(cached) " >&6
29034else
29035  ac_check_lib_save_LIBS=$LIBS
29036LIBS="-ldjvulibre  $LIBS"
29037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29038/* end confdefs.h.  */
29039
29040/* Override any GCC internal prototype to avoid an error.
29041   Use char because int might match the return type of a GCC
29042   builtin and then its argument prototype would still apply.  */
29043#ifdef __cplusplus
29044extern "C"
29045#endif
29046char ddjvu_context_create ();
29047int
29048main ()
29049{
29050return ddjvu_context_create ();
29051  ;
29052  return 0;
29053}
29054_ACEOF
29055if ac_fn_c_try_link "$LINENO"; then :
29056  ac_cv_lib_djvulibre_ddjvu_context_create=yes
29057else
29058  ac_cv_lib_djvulibre_ddjvu_context_create=no
29059fi
29060rm -f core conftest.err conftest.$ac_objext \
29061    conftest$ac_exeext conftest.$ac_ext
29062LIBS=$ac_check_lib_save_LIBS
29063fi
29064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29065$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29066if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29067  passed=`expr $passed + 1`
29068else
29069  failed=`expr $failed + 1`
29070fi
29071
29072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29073$as_echo_n "checking if DJVU package is complete... " >&6; }
29074    if test $passed -gt 0; then
29075        if test $failed -gt 0; then
29076            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29077$as_echo "$as_me: no -- some components failed test" >&6;}
29078            have_djvu='no (failed tests)'
29079        else
29080            DJVU_LIBS='-ldjvulibre'
29081            LIBS="$DJVU_LIBS $LIBS"
29082
29083$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29084
29085            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29086$as_echo "$as_me: yes" >&6;}
29087            have_djvu='yes'
29088        fi
29089    else
29090        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29091$as_echo "$as_me: no" >&6;}
29092    fi
29093fi
29094 if test "$have_djvu" = 'yes'; then
29095  DJVU_DELEGATE_TRUE=
29096  DJVU_DELEGATE_FALSE='#'
29097else
29098  DJVU_DELEGATE_TRUE='#'
29099  DJVU_DELEGATE_FALSE=
29100fi
29101
29102
29103
29104
29105#
29106# Set DejaVu font directory.
29107#
29108
29109# Check whether --with-dejavu-font-dir was given.
29110if test "${with_dejavu_font_dir+set}" = set; then :
29111  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29112else
29113  with_dejavu_font_dir='default'
29114fi
29115
29116
29117if test "$with_dejavu_font_dir" != 'default'; then
29118    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29119fi
29120
29121
29122#
29123# Check for FFTW delegate library.
29124#
29125
29126# Check whether --with-fftw was given.
29127if test "${with_fftw+set}" = set; then :
29128  withval=$with_fftw; with_fftw=$withval
29129else
29130  with_fftw='yes'
29131fi
29132
29133
29134if test "$with_fftw" != 'yes'; then
29135    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29136fi
29137
29138have_fftw='no'
29139FFTW_LIBS=''
29140if test "$with_fftw" != 'no'; then
29141    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29142$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29144$as_echo_n "checking for FFTW... " >&6; }
29145    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29146$as_echo "$as_me: " >&6;}
29147    failed=0
29148    passed=0
29149    ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29150if test "x$ac_cv_header_fftw3_h" = xyes; then :
29151  passed=`expr $passed + 1`
29152else
29153  failed=`expr $failed + 1`
29154fi
29155
29156
29157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29158$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29159if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29160  $as_echo_n "(cached) " >&6
29161else
29162  ac_check_lib_save_LIBS=$LIBS
29163LIBS="-lfftw3  $LIBS"
29164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29165/* end confdefs.h.  */
29166
29167/* Override any GCC internal prototype to avoid an error.
29168   Use char because int might match the return type of a GCC
29169   builtin and then its argument prototype would still apply.  */
29170#ifdef __cplusplus
29171extern "C"
29172#endif
29173char fftw_execute ();
29174int
29175main ()
29176{
29177return fftw_execute ();
29178  ;
29179  return 0;
29180}
29181_ACEOF
29182if ac_fn_c_try_link "$LINENO"; then :
29183  ac_cv_lib_fftw3_fftw_execute=yes
29184else
29185  ac_cv_lib_fftw3_fftw_execute=no
29186fi
29187rm -f core conftest.err conftest.$ac_objext \
29188    conftest$ac_exeext conftest.$ac_ext
29189LIBS=$ac_check_lib_save_LIBS
29190fi
29191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29192$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29193if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29194  passed=`expr $passed + 1`
29195else
29196  failed=`expr $failed + 1`
29197fi
29198
29199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29200$as_echo_n "checking if FFTW package is complete... " >&6; }
29201    if test $passed -gt 0; then
29202        if test $failed -gt 0; then
29203            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29204$as_echo "$as_me: no -- some components failed test" >&6;}
29205            have_fftw='no (failed tests)'
29206        else
29207            FFTW_LIBS='-lfftw3'
29208            LIBS="$FFTW_LIBS $LIBS"
29209
29210$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
29211
29212            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29213$as_echo "$as_me: yes" >&6;}
29214            have_fftw='yes'
29215        fi
29216    else
29217        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29218$as_echo "$as_me: no" >&6;}
29219    fi
29220fi
29221 if test "$have_fftw" = 'yes'; then
29222  FFTW_DELEGATE_TRUE=
29223  FFTW_DELEGATE_FALSE='#'
29224else
29225  FFTW_DELEGATE_TRUE='#'
29226  FFTW_DELEGATE_FALSE=
29227fi
29228
29229
29230
29231
29232#
29233# Check for FlashPIX delegate library.
29234#
29235
29236# Check whether --with-fpx was given.
29237if test "${with_fpx+set}" = set; then :
29238  withval=$with_fpx; with_fpx=$withval
29239else
29240  with_fpx='yes'
29241fi
29242
29243
29244if test "$with_fpx" != 'yes'; then
29245    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29246fi
29247
29248have_fpx='no'
29249FPX_LIBS=''
29250if test "$with_fpx" != 'no'; then
29251    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29252$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
29254$as_echo_n "checking for FlashPIX... " >&6; }
29255    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29256$as_echo "$as_me: " >&6;}
29257    failed=0
29258    passed=0
29259    ac_ext=cpp
29260ac_cpp='$CXXCPP $CPPFLAGS'
29261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264
29265
29266ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
29267if test "x$ac_cv_header_fpxlib_h" = xyes; then :
29268  passed=`expr $passed + 1`
29269else
29270  failed=`expr $failed + 1`
29271fi
29272
29273
29274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
29275$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
29276if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
29277  $as_echo_n "(cached) " >&6
29278else
29279  ac_check_lib_save_LIBS=$LIBS
29280LIBS="-lfpx  $LIBS"
29281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29282/* end confdefs.h.  */
29283
29284/* Override any GCC internal prototype to avoid an error.
29285   Use char because int might match the return type of a GCC
29286   builtin and then its argument prototype would still apply.  */
29287#ifdef __cplusplus
29288extern "C"
29289#endif
29290char FPX_OpenImageByFilename ();
29291int
29292main ()
29293{
29294return FPX_OpenImageByFilename ();
29295  ;
29296  return 0;
29297}
29298_ACEOF
29299if ac_fn_cxx_try_link "$LINENO"; then :
29300  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29301else
29302  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
29303fi
29304rm -f core conftest.err conftest.$ac_objext \
29305    conftest$ac_exeext conftest.$ac_ext
29306LIBS=$ac_check_lib_save_LIBS
29307fi
29308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
29309$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
29310if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
29311  passed=`expr $passed + 1`
29312else
29313  failed=`expr $failed + 1`
29314fi
29315
29316    ac_ext=c
29317ac_cpp='$CPP $CPPFLAGS'
29318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29320ac_compiler_gnu=$ac_cv_c_compiler_gnu
29321
29322    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
29323$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29324    if test $passed -gt 0; then
29325        if test $failed -gt 0; then
29326            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29327$as_echo "$as_me: no -- some components failed test" >&6;}
29328            have_fpx='no (failed tests)'
29329        else
29330            FPX_LIBS='-lfpx'
29331
29332$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
29333
29334            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29335$as_echo "$as_me: yes" >&6;}
29336            have_fpx='yes'
29337            PERLMAINCC="$CXX"
29338        fi
29339    else
29340        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29341$as_echo "$as_me: no" >&6;}
29342    fi
29343fi
29344 if test "$have_fpx" = 'yes'; then
29345  FPX_DELEGATE_TRUE=
29346  FPX_DELEGATE_FALSE='#'
29347else
29348  FPX_DELEGATE_TRUE='#'
29349  FPX_DELEGATE_FALSE=
29350fi
29351
29352
29353
29354
29355#
29356# Check for fontconfig delegate library.
29357#
29358
29359# Check whether --with-fontconfig was given.
29360if test "${with_fontconfig+set}" = set; then :
29361  withval=$with_fontconfig; with_fontconfig=$withval
29362else
29363  with_fontconfig='yes'
29364fi
29365
29366
29367if test "$with_fontconfig" != 'yes'; then
29368    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29369fi
29370
29371have_fontconfig='no'
29372FONTCONFIG_CFLAGS=""
29373FONTCONFIG_LIBS=""
29374FONTCONFIG_PKG=""
29375if test "x$with_fontconfig" = "xyes"; then
29376    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29377$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29378
29379pkg_failed=no
29380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29381$as_echo_n "checking for FONTCONFIG... " >&6; }
29382
29383if test -n "$FONTCONFIG_CFLAGS"; then
29384    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29385 elif test -n "$PKG_CONFIG"; then
29386    if test -n "$PKG_CONFIG" && \
29387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29388  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29389  ac_status=$?
29390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391  test $ac_status = 0; }; then
29392  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29393else
29394  pkg_failed=yes
29395fi
29396 else
29397    pkg_failed=untried
29398fi
29399if test -n "$FONTCONFIG_LIBS"; then
29400    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29401 elif test -n "$PKG_CONFIG"; then
29402    if test -n "$PKG_CONFIG" && \
29403    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29404  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29405  ac_status=$?
29406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29407  test $ac_status = 0; }; then
29408  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29409else
29410  pkg_failed=yes
29411fi
29412 else
29413    pkg_failed=untried
29414fi
29415
29416
29417
29418if test $pkg_failed = yes; then
29419
29420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29421        _pkg_short_errors_supported=yes
29422else
29423        _pkg_short_errors_supported=no
29424fi
29425        if test $_pkg_short_errors_supported = yes; then
29426	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29427        else
29428	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29429        fi
29430	# Put the nasty error message in config.log where it belongs
29431	echo "$FONTCONFIG_PKG_ERRORS" >&5
29432
29433	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29434$as_echo "no" >&6; }
29435                have_fontconfig=no
29436elif test $pkg_failed = untried; then
29437	have_fontconfig=no
29438else
29439	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29440	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29442$as_echo "yes" >&6; }
29443	have_fontconfig=yes
29444fi
29445    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29446$as_echo "$as_me: " >&6;}
29447fi
29448
29449if test "$have_fontconfig" = 'yes'; then
29450
29451$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
29452
29453  if test "$with_modules" = 'no'; then
29454    CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
29455  fi
29456fi
29457
29458 if test "$have_fontconfig" = 'yes'; then
29459  FONTCONFIG_DELEGATE_TRUE=
29460  FONTCONFIG_DELEGATE_FALSE='#'
29461else
29462  FONTCONFIG_DELEGATE_TRUE='#'
29463  FONTCONFIG_DELEGATE_FALSE=
29464fi
29465
29466
29467
29468
29469
29470#
29471# Check for freetype delegate library.
29472#
29473
29474# Check whether --with-freetype was given.
29475if test "${with_freetype+set}" = set; then :
29476  withval=$with_freetype; with_freetype=$withval
29477else
29478  with_freetype='yes'
29479fi
29480
29481
29482
29483if test "$with_freetype" != 'yes'; then
29484    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29485fi
29486
29487have_freetype='no'
29488FREETYPE_LIBS=''
29489if test "$with_freetype" != 'no'; then
29490    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29491$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29493$as_echo_n "checking for FreeType 2.0 ... " >&6; }
29494    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29495$as_echo "$as_me: " >&6;}
29496    failed=0
29497    passed=0
29498    PERSIST_LDFLAGS="$LDFLAGS"
29499    PERSIST_CPPFLAGS="$CPPFLAGS"
29500    freetype_config=''
29501    # Allow the user to specify the location of freetype.
29502    if test "$with_freetype" != 'yes'; then
29503      if test -x "${with_freetype}/bin/freetype-config"; then
29504        freetype_config="${with_freetype}/bin/freetype-config"
29505      elif test -x "${with_freetype}"; then
29506        freetype_config=${with_freetype}
29507      fi
29508    fi
29509    if test -z "$freetype_config"; then
29510      # Extract the first word of "freetype-config", so it can be a program name with args.
29511set dummy freetype-config; ac_word=$2
29512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29513$as_echo_n "checking for $ac_word... " >&6; }
29514if ${ac_cv_path_freetype_config+:} false; then :
29515  $as_echo_n "(cached) " >&6
29516else
29517  case $freetype_config in
29518  [\\/]* | ?:[\\/]*)
29519  ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29520  ;;
29521  *)
29522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29523for as_dir in $PATH
29524do
29525  IFS=$as_save_IFS
29526  test -z "$as_dir" && as_dir=.
29527    for ac_exec_ext in '' $ac_executable_extensions; do
29528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29529    ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
29530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29531    break 2
29532  fi
29533done
29534  done
29535IFS=$as_save_IFS
29536
29537  ;;
29538esac
29539fi
29540freetype_config=$ac_cv_path_freetype_config
29541if test -n "$freetype_config"; then
29542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29543$as_echo "$freetype_config" >&6; }
29544else
29545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546$as_echo "no" >&6; }
29547fi
29548
29549    fi
29550    if test -n "$freetype_config"; then
29551      freetype_prefix=`${freetype_config} --prefix`
29552      freetype_exec_prefix=`${freetype_config} --exec-prefix`
29553      LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29554      CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
29555    fi
29556
29557    if test "$FREETYPE_LIBS" = ''; then
29558      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
29559$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29560if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29561  $as_echo_n "(cached) " >&6
29562else
29563  ac_check_lib_save_LIBS=$LIBS
29564LIBS="-lfreetype  $LIBS"
29565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29566/* end confdefs.h.  */
29567
29568/* Override any GCC internal prototype to avoid an error.
29569   Use char because int might match the return type of a GCC
29570   builtin and then its argument prototype would still apply.  */
29571#ifdef __cplusplus
29572extern "C"
29573#endif
29574char FT_Init_FreeType ();
29575int
29576main ()
29577{
29578return FT_Init_FreeType ();
29579  ;
29580  return 0;
29581}
29582_ACEOF
29583if ac_fn_c_try_link "$LINENO"; then :
29584  ac_cv_lib_freetype_FT_Init_FreeType=yes
29585else
29586  ac_cv_lib_freetype_FT_Init_FreeType=no
29587fi
29588rm -f core conftest.err conftest.$ac_objext \
29589    conftest$ac_exeext conftest.$ac_ext
29590LIBS=$ac_check_lib_save_LIBS
29591fi
29592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29593$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29594if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29595  FREETYPE_LIBS='-lfreetype'
29596fi
29597
29598      if test "$FREETYPE_LIBS" != ''; then
29599        passed=`expr $passed + 1`
29600      else
29601        failed=`expr $failed + 1`
29602        LDFLAGS="$PERSIST_LDFLAGS"
29603      fi
29604    fi
29605
29606    ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29607if test "x$ac_cv_header_ft2build_h" = xyes; then :
29608  FT2BUILD_H='#include <ft2build.h>'
29609else
29610  ft2build=''
29611fi
29612
29613
29614    ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29615"
29616if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29617  have_freetype_h='yes'
29618else
29619  have_freetype_h='no'
29620fi
29621
29622
29623    if test "$have_freetype_h" = 'yes'; then
29624      passed=`expr $passed + 1`
29625    else
29626      failed=`expr $failed + 1`
29627      CPPFLAGS="$PERSIST_CPPFLAGS"
29628    fi
29629
29630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29631$as_echo_n "checking if FreeType package is complete... " >&6; }
29632    if test $passed -gt 0; then
29633      if test $failed -gt 0; then
29634        FREETYPE_LIBS=''
29635        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29636$as_echo "$as_me: no -- some components failed test" >&6;}
29637        have_freetype='no (failed tests)'
29638      else
29639        LIBS="$FREETYPE_LIBS $LIBS"
29640
29641$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
29642
29643        if test "$ac_cv_header_ft2build_h" = 'yes'; then
29644
29645$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29646
29647        fi
29648        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29649$as_echo "$as_me: yes" >&6;}
29650        have_freetype='yes'
29651      fi
29652    else
29653      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29654$as_echo "$as_me: no" >&6;}
29655    fi
29656fi
29657 if test "$have_freetype" = 'yes'; then
29658  FREETYPE_DELEGATE_TRUE=
29659  FREETYPE_DELEGATE_FALSE='#'
29660else
29661  FREETYPE_DELEGATE_TRUE='#'
29662  FREETYPE_DELEGATE_FALSE=
29663fi
29664
29665
29666
29667
29668#
29669# Check for Ghostscript library or framework.
29670#
29671# Test for iapi.h & test for gsapi_new_instance in -lgs
29672# or -framework Ghostscript
29673
29674
29675# Check whether --with-gslib was given.
29676if test "${with_gslib+set}" = set; then :
29677  withval=$with_gslib; with_gslib=$withval
29678else
29679  with_gslib='no'
29680fi
29681
29682
29683gslib_framework='no'
29684if test "$with_gslib" != 'yes'; then
29685    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29686fi
29687
29688have_gslib='no'
29689GS_LIBS=''
29690if test "$with_gslib" != 'no'; then
29691    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29692$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
29694$as_echo_n "checking for Ghostscript... " >&6; }
29695    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29696$as_echo "$as_me: " >&6;}
29697    framework=0
29698    failed=0
29699    passed=0
29700    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
29701if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
29702  passed=`expr $passed + 1`
29703else
29704  failed=`expr $failed + 1`
29705fi
29706
29707
29708    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
29709if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
29710  passed=`expr $passed + 1`
29711else
29712  failed=`expr $failed + 1`
29713fi
29714
29715
29716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29717$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
29718if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
29719  $as_echo_n "(cached) " >&6
29720else
29721  ac_check_framework_save_LIBS=$LIBS
29722LIBS="-framework Ghostscript  $LIBS"
29723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724/* end confdefs.h.  */
29725
29726/* Override any GCC internal prototype to avoid an error.
29727   Use char because int might match the return type of a GCC
29728   builtin and then its argument prototype would still apply.  */
29729#ifdef __cplusplus
29730extern "C"
29731#endif
29732char gsapi_new_instance ();
29733int
29734main ()
29735{
29736return gsapi_new_instance ();
29737  ;
29738  return 0;
29739}
29740_ACEOF
29741if ac_fn_c_try_link "$LINENO"; then :
29742  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29743else
29744  ac_cv_framework_Ghostscript_gsapi_new_instance=no
29745fi
29746rm -f core conftest.err conftest.$ac_objext \
29747    conftest$ac_exeext conftest.$ac_ext
29748LIBS=$ac_check_framework_save_LIBS
29749fi
29750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29751$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29752if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29753  framework=`expr $framework + 1`
29754else
29755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29756$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29757if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29758  $as_echo_n "(cached) " >&6
29759else
29760  ac_check_lib_save_LIBS=$LIBS
29761LIBS="-lgs  $LIBS"
29762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29763/* end confdefs.h.  */
29764
29765/* Override any GCC internal prototype to avoid an error.
29766   Use char because int might match the return type of a GCC
29767   builtin and then its argument prototype would still apply.  */
29768#ifdef __cplusplus
29769extern "C"
29770#endif
29771char gsapi_new_instance ();
29772int
29773main ()
29774{
29775return gsapi_new_instance ();
29776  ;
29777  return 0;
29778}
29779_ACEOF
29780if ac_fn_c_try_link "$LINENO"; then :
29781  ac_cv_lib_gs_gsapi_new_instance=yes
29782else
29783  ac_cv_lib_gs_gsapi_new_instance=no
29784fi
29785rm -f core conftest.err conftest.$ac_objext \
29786    conftest$ac_exeext conftest.$ac_ext
29787LIBS=$ac_check_lib_save_LIBS
29788fi
29789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29790$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29791if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29792  passed=`expr $passed + 1`
29793else
29794  failed=`expr $failed + 1`
29795fi
29796
29797fi
29798    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29799$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29800    if test $passed -gt 0; then
29801        if test $failed -gt 0; then
29802            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29803$as_echo "$as_me: no -- some components failed test" >&6;}
29804            have_gslib='no (failed tests)'
29805        else
29806            if test $framework -gt 0; then
29807                GS_LIBS='-framework Ghostscript'
29808                gslib_framework='yes'
29809                { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29810$as_echo "$as_me: yes, using framework." >&6;}
29811            else
29812                { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29813$as_echo "$as_me: yes, using library." >&6;}
29814                GS_LIBS='-lgs'
29815            fi
29816            LIBS="$GS_LIBS $LIBS"
29817
29818$as_echo "#define GS_DELEGATE 1" >>confdefs.h
29819
29820            have_gslib='yes'
29821        fi
29822    else
29823        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29824$as_echo "$as_me: no" >&6;}
29825    fi
29826fi
29827 if test "$have_gslib" = 'yes'; then
29828  GS_DELEGATE_TRUE=
29829  GS_DELEGATE_FALSE='#'
29830else
29831  GS_DELEGATE_TRUE='#'
29832  GS_DELEGATE_FALSE=
29833fi
29834
29835
29836
29837# Set default font search path
29838
29839# Check whether --with-fontpath was given.
29840if test "${with_fontpath+set}" = set; then :
29841  withval=$with_fontpath; with_fontpath=$withval
29842else
29843  with_fontpath=''
29844fi
29845
29846
29847if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29848    with_fontpath=''
29849else
29850
29851cat >>confdefs.h <<_ACEOF
29852#define MAGICK_FONT_PATH "$with_fontpath"
29853_ACEOF
29854
29855fi
29856if test "$with_fontpath=" != ''; then
29857    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29858fi
29859
29860# Set Ghostscript font directory
29861
29862# Check whether --with-gs-font-dir was given.
29863if test "${with_gs_font_dir+set}" = set; then :
29864  withval=$with_gs_font_dir; with_gs_font_dir=$withval
29865else
29866  with_gs_font_dir='default'
29867fi
29868
29869
29870if test "$with_gs_font_dir" != 'default'; then
29871    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29872fi
29873
29874
29875#
29876# Check for GVC delegate library.
29877#
29878
29879# Check whether --with-gvc was given.
29880if test "${with_gvc+set}" = set; then :
29881  withval=$with_gvc; with_gvc=$withval
29882else
29883  with_gvc='no'
29884fi
29885
29886
29887if test "$with_gvc" != 'yes'; then
29888    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29889fi
29890
29891GVC_PKG=""
29892if test "x$with_gvc" = "xyes"; then
29893    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29894$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29895
29896pkg_failed=no
29897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29898$as_echo_n "checking for GVC... " >&6; }
29899
29900if test -n "$GVC_CFLAGS"; then
29901    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29902 elif test -n "$PKG_CONFIG"; then
29903    if test -n "$PKG_CONFIG" && \
29904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29905  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29906  ac_status=$?
29907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29908  test $ac_status = 0; }; then
29909  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29910else
29911  pkg_failed=yes
29912fi
29913 else
29914    pkg_failed=untried
29915fi
29916if test -n "$GVC_LIBS"; then
29917    pkg_cv_GVC_LIBS="$GVC_LIBS"
29918 elif test -n "$PKG_CONFIG"; then
29919    if test -n "$PKG_CONFIG" && \
29920    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29921  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29922  ac_status=$?
29923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29924  test $ac_status = 0; }; then
29925  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29926else
29927  pkg_failed=yes
29928fi
29929 else
29930    pkg_failed=untried
29931fi
29932
29933
29934
29935if test $pkg_failed = yes; then
29936
29937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29938        _pkg_short_errors_supported=yes
29939else
29940        _pkg_short_errors_supported=no
29941fi
29942        if test $_pkg_short_errors_supported = yes; then
29943	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29944        else
29945	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29946        fi
29947	# Put the nasty error message in config.log where it belongs
29948	echo "$GVC_PKG_ERRORS" >&5
29949
29950	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29951$as_echo "no" >&6; }
29952                have_gvc=no
29953elif test $pkg_failed = untried; then
29954	have_gvc=no
29955else
29956	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29957	GVC_LIBS=$pkg_cv_GVC_LIBS
29958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29959$as_echo "yes" >&6; }
29960	have_gvc=yes
29961fi
29962    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29963$as_echo "$as_me: " >&6;}
29964fi
29965
29966if test "$have_gvc" = 'yes'; then
29967
29968$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29969
29970    if test "$with_modules" = 'no'; then
29971        CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29972    fi
29973fi
29974
29975 if test "$have_gvc" = 'yes'; then
29976  GVC_DELEGATE_TRUE=
29977  GVC_DELEGATE_FALSE='#'
29978else
29979  GVC_DELEGATE_TRUE='#'
29980  GVC_DELEGATE_FALSE=
29981fi
29982
29983
29984
29985
29986
29987#
29988# Check for JBIG delegate library.
29989#
29990
29991
29992# Check whether --with-jbig was given.
29993if test "${with_jbig+set}" = set; then :
29994  withval=$with_jbig; with_jbig=$withval
29995else
29996  with_jbig='yes'
29997fi
29998
29999
30000have_jbig='no'
30001JBIG_LIBS=''
30002if test "$with_jbig" != 'no'; then
30003    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30004$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
30006$as_echo_n "checking for JBIG... " >&6; }
30007    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30008$as_echo "$as_me: " >&6;}
30009    failed=0
30010    passed=0
30011    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
30012if test "x$ac_cv_header_jbig_h" = xyes; then :
30013  passed=`expr $passed + 1`
30014else
30015  failed=`expr $failed + 1`
30016fi
30017
30018
30019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
30020$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
30021if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
30022  $as_echo_n "(cached) " >&6
30023else
30024  ac_check_lib_save_LIBS=$LIBS
30025LIBS="-ljbig  $LIBS"
30026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30027/* end confdefs.h.  */
30028
30029/* Override any GCC internal prototype to avoid an error.
30030   Use char because int might match the return type of a GCC
30031   builtin and then its argument prototype would still apply.  */
30032#ifdef __cplusplus
30033extern "C"
30034#endif
30035char jbg_dec_init ();
30036int
30037main ()
30038{
30039return jbg_dec_init ();
30040  ;
30041  return 0;
30042}
30043_ACEOF
30044if ac_fn_c_try_link "$LINENO"; then :
30045  ac_cv_lib_jbig_jbg_dec_init=yes
30046else
30047  ac_cv_lib_jbig_jbg_dec_init=no
30048fi
30049rm -f core conftest.err conftest.$ac_objext \
30050    conftest$ac_exeext conftest.$ac_ext
30051LIBS=$ac_check_lib_save_LIBS
30052fi
30053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
30054$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
30055if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
30056  passed=`expr $passed + 1`
30057else
30058  failed=`expr $failed + 1`
30059fi
30060
30061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
30062$as_echo_n "checking if JBIG package is complete... " >&6; }
30063    if test $passed -gt 0; then
30064        if test $failed -gt 0; then
30065            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30066$as_echo "$as_me: no -- some components failed test" >&6;}
30067            have_jbig='no (failed tests)'
30068        else
30069            JBIG_LIBS='-ljbig'
30070            LIBS="$JBIG_LIBS $LIBS"
30071
30072$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
30073
30074            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30075$as_echo "$as_me: yes" >&6;}
30076            have_jbig='yes'
30077        fi
30078    else
30079        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30080$as_echo "$as_me: no" >&6;}
30081    fi
30082fi
30083 if test "$have_jbig" = 'yes'; then
30084  JBIG_DELEGATE_TRUE=
30085  JBIG_DELEGATE_FALSE='#'
30086else
30087  JBIG_DELEGATE_TRUE='#'
30088  JBIG_DELEGATE_FALSE=
30089fi
30090
30091
30092
30093
30094#
30095# Check for JPEG delegate library.
30096#
30097
30098# Check whether --with-jpeg was given.
30099if test "${with_jpeg+set}" = set; then :
30100  withval=$with_jpeg; with_jpeg=$withval
30101else
30102  with_jpeg='yes'
30103fi
30104
30105
30106if test "$with_jpeg" != 'yes'; then
30107    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30108fi
30109
30110have_jpeg='no'
30111JPEG_LIBS=''
30112if test "$with_jpeg" != 'no'; then
30113    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30114$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
30116$as_echo_n "checking for JPEG... " >&6; }
30117    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30118$as_echo "$as_me: " >&6;}
30119    failed=0
30120    passed=0
30121    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
30122if test "x$ac_cv_header_jconfig_h" = xyes; then :
30123  passed=`expr $passed + 1`
30124else
30125  failed=`expr $failed + 1`
30126fi
30127
30128
30129    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
30130if test "x$ac_cv_header_jerror_h" = xyes; then :
30131  passed=`expr $passed + 1`
30132else
30133  failed=`expr $failed + 1`
30134fi
30135
30136
30137    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
30138if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
30139  passed=`expr $passed + 1`
30140else
30141  failed=`expr $failed + 1`
30142fi
30143
30144
30145    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
30146if test "x$ac_cv_header_jpeglib_h" = xyes; then :
30147  passed=`expr $passed + 1`
30148else
30149  failed=`expr $failed + 1`
30150fi
30151
30152
30153    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
30154$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
30155if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
30156  $as_echo_n "(cached) " >&6
30157else
30158  ac_check_lib_save_LIBS=$LIBS
30159LIBS="-ljpeg  $LIBS"
30160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30161/* end confdefs.h.  */
30162
30163/* Override any GCC internal prototype to avoid an error.
30164   Use char because int might match the return type of a GCC
30165   builtin and then its argument prototype would still apply.  */
30166#ifdef __cplusplus
30167extern "C"
30168#endif
30169char jpeg_read_header ();
30170int
30171main ()
30172{
30173return jpeg_read_header ();
30174  ;
30175  return 0;
30176}
30177_ACEOF
30178if ac_fn_c_try_link "$LINENO"; then :
30179  ac_cv_lib_jpeg_jpeg_read_header=yes
30180else
30181  ac_cv_lib_jpeg_jpeg_read_header=no
30182fi
30183rm -f core conftest.err conftest.$ac_objext \
30184    conftest$ac_exeext conftest.$ac_ext
30185LIBS=$ac_check_lib_save_LIBS
30186fi
30187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
30188$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
30189if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
30190  passed=`expr $passed + 1`
30191else
30192  failed=`expr $failed + 1`
30193fi
30194
30195
30196# Test for compatible JPEG library
30197if test "$ac_cv_jpeg_version_ok" != 'yes'; then
30198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
30199$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
30200if ${ac_cv_jpeg_version_ok+:} false; then :
30201  $as_echo_n "(cached) " >&6
30202else
30203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30204/* end confdefs.h.  */
30205#include <stdio.h>
30206#include <stdlib.h>
30207#include <jpeglib.h>
30208
30209int
30210main ()
30211{
30212
30213#if JPEG_LIB_VERSION < 62
30214#error IJG JPEG library must be version 6b or newer!
30215#endif
30216return 0;
30217
30218  ;
30219  return 0;
30220}
30221_ACEOF
30222if ac_fn_c_try_compile "$LINENO"; then :
30223  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30224else
30225  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
30226fi
30227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30228fi
30229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
30230$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30231fi
30232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
30233$as_echo_n "checking if JPEG package is complete... " >&6; }
30234    if test $passed -gt 0; then
30235        if test $failed -gt 0; then
30236            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30237$as_echo "$as_me: no -- some components failed test" >&6;}
30238            have_jpeg='no (failed tests)'
30239        else
30240            JPEG_LIBS='-ljpeg'
30241            LIBS="$JPEG_LIBS $LIBS"
30242
30243$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
30244
30245            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30246$as_echo "$as_me: yes" >&6;}
30247            have_jpeg='yes'
30248        fi
30249    else
30250        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30251$as_echo "$as_me: no" >&6;}
30252    fi
30253fi
30254 if test "$have_jpeg" = 'yes'; then
30255  JPEG_DELEGATE_TRUE=
30256  JPEG_DELEGATE_FALSE='#'
30257else
30258  JPEG_DELEGATE_TRUE='#'
30259  JPEG_DELEGATE_FALSE=
30260fi
30261
30262
30263
30264
30265#
30266# Check for JPEG Version 2 delegate library.
30267#
30268
30269# Check whether --with-jp2 was given.
30270if test "${with_jp2+set}" = set; then :
30271  withval=$with_jp2; with_jp2=$withval
30272else
30273  with_jp2='yes'
30274fi
30275
30276
30277if test "$with_jp2" != 'yes'; then
30278    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30279fi
30280
30281have_jp2='no'
30282JP2_LIBS=''
30283if test "$with_jp2" != 'no'; then
30284    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30285$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
30287$as_echo_n "checking for JPEG Version 2... " >&6; }
30288    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30289$as_echo "$as_me: " >&6;}
30290    failed=0
30291    passed=0
30292    ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
30293if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
30294  passed=`expr $passed + 1`
30295else
30296  failed=`expr $failed + 1`
30297fi
30298
30299
30300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
30301$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
30302if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
30303  $as_echo_n "(cached) " >&6
30304else
30305  ac_check_lib_save_LIBS=$LIBS
30306LIBS="-ljasper  $LIBS"
30307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30308/* end confdefs.h.  */
30309
30310/* Override any GCC internal prototype to avoid an error.
30311   Use char because int might match the return type of a GCC
30312   builtin and then its argument prototype would still apply.  */
30313#ifdef __cplusplus
30314extern "C"
30315#endif
30316char jas_stream_fopen ();
30317int
30318main ()
30319{
30320return jas_stream_fopen ();
30321  ;
30322  return 0;
30323}
30324_ACEOF
30325if ac_fn_c_try_link "$LINENO"; then :
30326  ac_cv_lib_jasper_jas_stream_fopen=yes
30327else
30328  ac_cv_lib_jasper_jas_stream_fopen=no
30329fi
30330rm -f core conftest.err conftest.$ac_objext \
30331    conftest$ac_exeext conftest.$ac_ext
30332LIBS=$ac_check_lib_save_LIBS
30333fi
30334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
30335$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
30336if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
30337  passed=`expr $passed + 1`
30338else
30339  failed=`expr $failed + 1`
30340fi
30341
30342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
30343$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30344    if test $passed -gt 0; then
30345        if test $failed -gt 0; then
30346            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30347$as_echo "$as_me: no -- some components failed test" >&6;}
30348            have_jp2='no (failed tests)'
30349        else
30350            JP2_LIBS='-ljasper'
30351            LIBS="$JP2_LIBS $LIBS"
30352
30353$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
30354
30355            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30356$as_echo "$as_me: yes" >&6;}
30357            have_jp2='yes'
30358        fi
30359    else
30360        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30361$as_echo "$as_me: no" >&6;}
30362    fi
30363fi
30364 if test "$have_jp2" = 'yes'; then
30365  JP2_DELEGATE_TRUE=
30366  JP2_DELEGATE_FALSE='#'
30367else
30368  JP2_DELEGATE_TRUE='#'
30369  JP2_DELEGATE_FALSE=
30370fi
30371
30372
30373
30374
30375#
30376# Check for LCMS delegate library.
30377#
30378# Disable LCMS.
30379
30380# Check whether --with-lcms was given.
30381if test "${with_lcms+set}" = set; then :
30382  withval=$with_lcms; with_lcms=$withval
30383else
30384  with_lcms='yes'
30385fi
30386
30387if test "$with_lcms" != 'yes' ; then
30388    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30389fi
30390
30391# Disable LCMS2.
30392
30393# Check whether --with-lcms2 was given.
30394if test "${with_lcms2+set}" = set; then :
30395  withval=$with_lcms2; with_lcms2=$withval
30396else
30397  with_lcms2='yes'
30398fi
30399
30400if test "$with_lcms2" != 'yes' ; then
30401    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30402fi
30403
30404have_lcms2='no'
30405LCMS_LIBS=''
30406if test "$with_lcms2" != 'no'; then
30407    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30408$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30410$as_echo_n "checking for LCMS v2... " >&6; }
30411    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30412$as_echo "$as_me: " >&6;}
30413    failed=0
30414    passed=0
30415    have_lcms_header='no'
30416
30417    # Check for <lcms2.h>
30418    ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
30419if test "x$ac_cv_header_lcms2_h" = xyes; then :
30420  have_lcms_header='yes'
30421fi
30422
30423
30424    if test "$have_lcms_header" = 'yes'; then
30425
30426$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30427
30428       passed=`expr $passed + 1`
30429    fi
30430
30431    # Check for <lcms2/lcms2.h)
30432    if test "$have_lcms_header" != 'yes'; then
30433      ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30434if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30435  have_lcms_header='yes'
30436fi
30437
30438
30439      if test "$have_lcms_header" = 'yes'; then
30440        passed=`expr $passed + 1`
30441
30442$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30443
30444      fi
30445    fi
30446
30447    # Failed to find lcms header?
30448    if test "$have_lcms_header" != 'yes'; then
30449      failed=`expr $failed + 1`
30450    fi
30451
30452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30453$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
30454if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
30455  $as_echo_n "(cached) " >&6
30456else
30457  ac_check_lib_save_LIBS=$LIBS
30458LIBS="-llcms2  $LIBS"
30459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30460/* end confdefs.h.  */
30461
30462/* Override any GCC internal prototype to avoid an error.
30463   Use char because int might match the return type of a GCC
30464   builtin and then its argument prototype would still apply.  */
30465#ifdef __cplusplus
30466extern "C"
30467#endif
30468char cmsSetLogErrorHandler ();
30469int
30470main ()
30471{
30472return cmsSetLogErrorHandler ();
30473  ;
30474  return 0;
30475}
30476_ACEOF
30477if ac_fn_c_try_link "$LINENO"; then :
30478  ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
30479else
30480  ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
30481fi
30482rm -f core conftest.err conftest.$ac_objext \
30483    conftest$ac_exeext conftest.$ac_ext
30484LIBS=$ac_check_lib_save_LIBS
30485fi
30486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30487$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
30488if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
30489  passed=`expr $passed + 1`
30490else
30491  failed=`expr $failed + 1`
30492fi
30493
30494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30495$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
30496    if test $passed -gt 0; then
30497      if test $failed -gt 0; then
30498        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30499$as_echo "$as_me: no -- some components failed test" >&6;}
30500        have_lcms2='no (failed tests)'
30501      else
30502        LCMS_LIBS='-llcms2'
30503        LIBS="$LCMS_LIBS $LIBS"
30504        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30505$as_echo "$as_me: yes" >&6;}
30506        have_lcms2='yes'
30507      fi
30508    else
30509      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30510$as_echo "$as_me: no" >&6;}
30511    fi
30512fi
30513
30514#
30515# Check for LCMS v1 (1.11 or later)
30516#
30517if test $have_lcms2 = 'yes'; then
30518  with_lcms='no'
30519fi
30520
30521have_lcms='no'
30522if test "$with_lcms" != 'no'; then
30523    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30524$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30526$as_echo_n "checking for LCMS v1.1X... " >&6; }
30527    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30528$as_echo "$as_me: " >&6;}
30529    failed=0
30530    passed=0
30531    have_lcms_header='no'
30532
30533    # Check for <lcms.h>
30534    if test "$have_lcms_header" != 'yes'; then
30535      ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
30536if test "x$ac_cv_header_lcms_h" = xyes; then :
30537  have_lcms_header='yes'
30538fi
30539
30540
30541      if test "$have_lcms_header" = 'yes'; then
30542        passed=`expr $passed + 1`
30543
30544$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
30545
30546      fi
30547    fi
30548
30549    # Check for <lcms/lcms.h>
30550    if test "$have_lcms_header" != 'yes'; then
30551      ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30552if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30553  have_lcms_header='yes'
30554fi
30555
30556
30557      if test "$have_lcms_header" = 'yes'; then
30558        passed=`expr $passed + 1`
30559
30560$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30561
30562      fi
30563    fi
30564
30565    # Failed to find lcms header?
30566    if test "$have_lcms_header" != 'yes'; then
30567      failed=`expr $failed + 1`
30568    fi
30569
30570    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30571$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
30572if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
30573  $as_echo_n "(cached) " >&6
30574else
30575  ac_check_lib_save_LIBS=$LIBS
30576LIBS="-llcms  $LIBS"
30577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30578/* end confdefs.h.  */
30579
30580/* Override any GCC internal prototype to avoid an error.
30581   Use char because int might match the return type of a GCC
30582   builtin and then its argument prototype would still apply.  */
30583#ifdef __cplusplus
30584extern "C"
30585#endif
30586char cmsSetErrorHandler ();
30587int
30588main ()
30589{
30590return cmsSetErrorHandler ();
30591  ;
30592  return 0;
30593}
30594_ACEOF
30595if ac_fn_c_try_link "$LINENO"; then :
30596  ac_cv_lib_lcms_cmsSetErrorHandler=yes
30597else
30598  ac_cv_lib_lcms_cmsSetErrorHandler=no
30599fi
30600rm -f core conftest.err conftest.$ac_objext \
30601    conftest$ac_exeext conftest.$ac_ext
30602LIBS=$ac_check_lib_save_LIBS
30603fi
30604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30605$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
30606if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
30607  passed=`expr $passed + 1`
30608else
30609  failed=`expr $failed + 1`
30610fi
30611
30612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
30613$as_echo_n "checking if LCMS package is complete... " >&6; }
30614    if test $passed -gt 0; then
30615      if test $failed -gt 0; then
30616        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30617$as_echo "$as_me: no -- some components failed test" >&6;}
30618        have_lcms='no (failed tests)'
30619      else
30620        LCMS_LIBS='-llcms'
30621        LIBS="$LCMS_LIBS $LIBS"
30622        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30623$as_echo "$as_me: yes" >&6;}
30624        have_lcms='yes'
30625      fi
30626    else
30627      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30628$as_echo "$as_me: no" >&6;}
30629    fi
30630fi
30631
30632 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30633  LCMS_DELEGATE_TRUE=
30634  LCMS_DELEGATE_FALSE='#'
30635else
30636  LCMS_DELEGATE_TRUE='#'
30637  LCMS_DELEGATE_FALSE=
30638fi
30639
30640if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30641
30642$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30643
30644fi
30645
30646
30647
30648
30649#
30650# Check for the LQR (Liquid Rescale) delegate library.
30651#
30652
30653# Check whether --with-lqr was given.
30654if test "${with_lqr+set}" = set; then :
30655  withval=$with_lqr; with_lqr=$withval
30656else
30657  with_lqr='yes'
30658fi
30659
30660
30661if test "$with_lqr" != 'yes'; then
30662    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30663fi
30664
30665have_lqr='no'
30666LQR_CFLAGS=""
30667LQR_LIBS=""
30668LQR_PKG=""
30669if test "x$with_lqr" = "xyes"; then
30670    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30671$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30672
30673pkg_failed=no
30674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30675$as_echo_n "checking for LQR... " >&6; }
30676
30677if test -n "$LQR_CFLAGS"; then
30678    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30679 elif test -n "$PKG_CONFIG"; then
30680    if test -n "$PKG_CONFIG" && \
30681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30682  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30683  ac_status=$?
30684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30685  test $ac_status = 0; }; then
30686  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30687else
30688  pkg_failed=yes
30689fi
30690 else
30691    pkg_failed=untried
30692fi
30693if test -n "$LQR_LIBS"; then
30694    pkg_cv_LQR_LIBS="$LQR_LIBS"
30695 elif test -n "$PKG_CONFIG"; then
30696    if test -n "$PKG_CONFIG" && \
30697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30698  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30699  ac_status=$?
30700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30701  test $ac_status = 0; }; then
30702  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30703else
30704  pkg_failed=yes
30705fi
30706 else
30707    pkg_failed=untried
30708fi
30709
30710
30711
30712if test $pkg_failed = yes; then
30713
30714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30715        _pkg_short_errors_supported=yes
30716else
30717        _pkg_short_errors_supported=no
30718fi
30719        if test $_pkg_short_errors_supported = yes; then
30720	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30721        else
30722	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30723        fi
30724	# Put the nasty error message in config.log where it belongs
30725	echo "$LQR_PKG_ERRORS" >&5
30726
30727	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30728$as_echo "no" >&6; }
30729                have_lqr=no
30730elif test $pkg_failed = untried; then
30731	have_lqr=no
30732else
30733	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30734	LQR_LIBS=$pkg_cv_LQR_LIBS
30735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30736$as_echo "yes" >&6; }
30737	have_lqr=yes
30738fi
30739    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30740$as_echo "$as_me: " >&6;}
30741fi
30742
30743if test "$have_lqr" = 'yes'; then
30744
30745$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30746
30747    CFLAGS="$LQR_CFLAGS $CFLAGS"
30748fi
30749
30750 if test "$have_lqr" = 'yes'; then
30751  LQR_DELEGATE_TRUE=
30752  LQR_DELEGATE_FALSE='#'
30753else
30754  LQR_DELEGATE_TRUE='#'
30755  LQR_DELEGATE_FALSE=
30756fi
30757
30758
30759
30760
30761
30762# Disable LZMA (lzma library)
30763
30764# Check whether --with-lzma was given.
30765if test "${with_lzma+set}" = set; then :
30766  withval=$with_lzma; with_lzma=$withval
30767else
30768  with_lzma='yes'
30769fi
30770
30771if test "$with_lzma" != 'yes' ; then
30772    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30773fi
30774
30775LZMA_PKG=""
30776if test "x$with_lzma" = "xyes"; then
30777    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30778$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30779
30780pkg_failed=no
30781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30782$as_echo_n "checking for LZMA... " >&6; }
30783
30784if test -n "$LZMA_CFLAGS"; then
30785    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30786 elif test -n "$PKG_CONFIG"; then
30787    if test -n "$PKG_CONFIG" && \
30788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30789  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30790  ac_status=$?
30791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30792  test $ac_status = 0; }; then
30793  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30794else
30795  pkg_failed=yes
30796fi
30797 else
30798    pkg_failed=untried
30799fi
30800if test -n "$LZMA_LIBS"; then
30801    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30802 elif test -n "$PKG_CONFIG"; then
30803    if test -n "$PKG_CONFIG" && \
30804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30805  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30806  ac_status=$?
30807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30808  test $ac_status = 0; }; then
30809  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30810else
30811  pkg_failed=yes
30812fi
30813 else
30814    pkg_failed=untried
30815fi
30816
30817
30818
30819if test $pkg_failed = yes; then
30820
30821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30822        _pkg_short_errors_supported=yes
30823else
30824        _pkg_short_errors_supported=no
30825fi
30826        if test $_pkg_short_errors_supported = yes; then
30827	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30828        else
30829	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30830        fi
30831	# Put the nasty error message in config.log where it belongs
30832	echo "$LZMA_PKG_ERRORS" >&5
30833
30834	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30835$as_echo "no" >&6; }
30836                have_lzma=no
30837elif test $pkg_failed = untried; then
30838	have_lzma=no
30839else
30840	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30841	LZMA_LIBS=$pkg_cv_LZMA_LIBS
30842        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843$as_echo "yes" >&6; }
30844	have_lzma=yes
30845fi
30846    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30847$as_echo "$as_me: " >&6;}
30848fi
30849
30850if test "$have_lzma" = 'yes'; then
30851
30852$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30853
30854    if test "$with_modules" = 'no'; then
30855        CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
30856    fi
30857fi
30858
30859 if test "$have_lzma" = 'yes'; then
30860  LZMA_DELEGATE_TRUE=
30861  LZMA_DELEGATE_FALSE='#'
30862else
30863  LZMA_DELEGATE_TRUE='#'
30864  LZMA_DELEGATE_FALSE=
30865fi
30866
30867
30868
30869
30870
30871#
30872# Check for the OpenEXR delegate library.
30873#
30874
30875# Check whether --with-openexr was given.
30876if test "${with_openexr+set}" = set; then :
30877  withval=$with_openexr; with_openexr=$withval
30878else
30879  with_openexr='yes'
30880fi
30881
30882
30883if test "$with_openexr" != 'yes'; then
30884    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30885fi
30886
30887have_openexr='no'
30888OPENEXR_CFLAGS=""
30889OPENEXR_LIBS=""
30890OPENEXR_PKG=""
30891if test "x$with_openexr" = "xyes"; then
30892    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30893$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30894
30895pkg_failed=no
30896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30897$as_echo_n "checking for OPENEXR... " >&6; }
30898
30899if test -n "$OPENEXR_CFLAGS"; then
30900    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30901 elif test -n "$PKG_CONFIG"; then
30902    if test -n "$PKG_CONFIG" && \
30903    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30904  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30905  ac_status=$?
30906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30907  test $ac_status = 0; }; then
30908  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30909else
30910  pkg_failed=yes
30911fi
30912 else
30913    pkg_failed=untried
30914fi
30915if test -n "$OPENEXR_LIBS"; then
30916    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30917 elif test -n "$PKG_CONFIG"; then
30918    if test -n "$PKG_CONFIG" && \
30919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30920  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30921  ac_status=$?
30922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30923  test $ac_status = 0; }; then
30924  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30925else
30926  pkg_failed=yes
30927fi
30928 else
30929    pkg_failed=untried
30930fi
30931
30932
30933
30934if test $pkg_failed = yes; then
30935
30936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30937        _pkg_short_errors_supported=yes
30938else
30939        _pkg_short_errors_supported=no
30940fi
30941        if test $_pkg_short_errors_supported = yes; then
30942	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30943        else
30944	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30945        fi
30946	# Put the nasty error message in config.log where it belongs
30947	echo "$OPENEXR_PKG_ERRORS" >&5
30948
30949	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30950$as_echo "no" >&6; }
30951                have_openexr=no
30952elif test $pkg_failed = untried; then
30953	have_openexr=no
30954else
30955	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30956	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30957        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30958$as_echo "yes" >&6; }
30959	have_openexr=yes
30960fi
30961    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30962$as_echo "$as_me: " >&6;}
30963fi
30964
30965if test "$have_openexr" = 'yes'; then
30966
30967$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30968
30969    if test "$with_modules" = 'no'; then
30970        CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30971    fi
30972fi
30973
30974 if test "$have_openexr" = 'yes'; then
30975  OPENEXR_DELEGATE_TRUE=
30976  OPENEXR_DELEGATE_FALSE='#'
30977else
30978  OPENEXR_DELEGATE_TRUE='#'
30979  OPENEXR_DELEGATE_FALSE=
30980fi
30981
30982
30983
30984
30985
30986#
30987# Check for PANGO delegate library.
30988#
30989
30990# Check whether --with-pango was given.
30991if test "${with_pango+set}" = set; then :
30992  withval=$with_pango; with_pango=$withval
30993else
30994  with_pango='yes'
30995fi
30996
30997
30998if test "$with_pango" != 'yes'; then
30999    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31000fi
31001
31002have_pango='no'
31003have_pangocairo='no'
31004PANGO_CFLAGS=""
31005PANGO_LIBS=""
31006PANGO_PKG=""
31007if test "x$with_pango" = "xyes"; then
31008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31009$as_echo "-------------------------------------------------------------" >&6; }
31010
31011pkg_failed=no
31012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31013$as_echo_n "checking for PANGO... " >&6; }
31014
31015if test -n "$PANGO_CFLAGS"; then
31016    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31017 elif test -n "$PKG_CONFIG"; then
31018    if test -n "$PKG_CONFIG" && \
31019    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31020  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31021  ac_status=$?
31022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31023  test $ac_status = 0; }; then
31024  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
31025else
31026  pkg_failed=yes
31027fi
31028 else
31029    pkg_failed=untried
31030fi
31031if test -n "$PANGO_LIBS"; then
31032    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31033 elif test -n "$PKG_CONFIG"; then
31034    if test -n "$PKG_CONFIG" && \
31035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31036  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31037  ac_status=$?
31038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039  test $ac_status = 0; }; then
31040  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
31041else
31042  pkg_failed=yes
31043fi
31044 else
31045    pkg_failed=untried
31046fi
31047
31048
31049
31050if test $pkg_failed = yes; then
31051
31052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31053        _pkg_short_errors_supported=yes
31054else
31055        _pkg_short_errors_supported=no
31056fi
31057        if test $_pkg_short_errors_supported = yes; then
31058	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
31059        else
31060	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
31061        fi
31062	# Put the nasty error message in config.log where it belongs
31063	echo "$PANGO_PKG_ERRORS" >&5
31064
31065	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31066$as_echo "no" >&6; }
31067                have_pangocairo=no
31068elif test $pkg_failed = untried; then
31069	have_pangocairo=no
31070else
31071	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31072	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31073        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31074$as_echo "yes" >&6; }
31075	have_pangocairo=yes
31076fi
31077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31078$as_echo "" >&6; }
31079
31080pkg_failed=no
31081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31082$as_echo_n "checking for PANGO... " >&6; }
31083
31084if test -n "$PANGO_CFLAGS"; then
31085    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31086 elif test -n "$PKG_CONFIG"; then
31087    if test -n "$PKG_CONFIG" && \
31088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31089  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31090  ac_status=$?
31091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31092  test $ac_status = 0; }; then
31093  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
31094else
31095  pkg_failed=yes
31096fi
31097 else
31098    pkg_failed=untried
31099fi
31100if test -n "$PANGO_LIBS"; then
31101    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31102 elif test -n "$PKG_CONFIG"; then
31103    if test -n "$PKG_CONFIG" && \
31104    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31105  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31106  ac_status=$?
31107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31108  test $ac_status = 0; }; then
31109  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
31110else
31111  pkg_failed=yes
31112fi
31113 else
31114    pkg_failed=untried
31115fi
31116
31117
31118
31119if test $pkg_failed = yes; then
31120
31121if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31122        _pkg_short_errors_supported=yes
31123else
31124        _pkg_short_errors_supported=no
31125fi
31126        if test $_pkg_short_errors_supported = yes; then
31127	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
31128        else
31129	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
31130        fi
31131	# Put the nasty error message in config.log where it belongs
31132	echo "$PANGO_PKG_ERRORS" >&5
31133
31134	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31135$as_echo "no" >&6; }
31136                have_pango=no
31137elif test $pkg_failed = untried; then
31138	have_pango=no
31139else
31140	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31141	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31143$as_echo "yes" >&6; }
31144	have_pango=yes
31145fi
31146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31147$as_echo "" >&6; }
31148fi
31149
31150if test "$have_pango" = 'yes'; then
31151
31152$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31153
31154    if test "$with_modules" = 'no'; then
31155        CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31156    fi
31157fi
31158
31159if test "$have_pangocairo" = 'yes'; then
31160
31161$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
31162
31163    if test "$with_modules" = 'no'; then
31164        CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
31165    fi
31166fi
31167
31168 if test "$have_pango" = 'yes'; then
31169  PANGO_DELEGATE_TRUE=
31170  PANGO_DELEGATE_FALSE='#'
31171else
31172  PANGO_DELEGATE_TRUE='#'
31173  PANGO_DELEGATE_FALSE=
31174fi
31175
31176 if test "$have_pangocairo" = 'yes'; then
31177  PANGOCAIRO_DELEGATE_TRUE=
31178  PANGOCAIRO_DELEGATE_FALSE='#'
31179else
31180  PANGOCAIRO_DELEGATE_TRUE='#'
31181  PANGOCAIRO_DELEGATE_FALSE=
31182fi
31183
31184
31185
31186
31187
31188#
31189# Check for PNG delegate library.
31190#
31191
31192# Check whether --with-png was given.
31193if test "${with_png+set}" = set; then :
31194  withval=$with_png; with_png=$withval
31195else
31196  with_png='yes'
31197fi
31198
31199
31200if test "$with_png" != 'yes'; then
31201    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31202fi
31203
31204have_png='no'
31205PNG_LIBS=''
31206
31207if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then
31208  { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31209$as_echo "$as_me: -------------------------------------------------------------" >&6;}
31210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31211$as_echo_n "checking for PNG support ... " >&6; }
31212  { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31213$as_echo "$as_me: " >&6;}
31214  failed=0
31215  passed=0
31216  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31217if test "x$ac_cv_header_png_h" = xyes; then :
31218  passed=`expr $passed + 1`
31219else
31220  failed=`expr $failed + 1`
31221fi
31222
31223
31224
31225  if test $passed -gt 0; then
31226    for var in 5 4 2 '' ; do
31227      if test "$have_png" = 'no' ; then
31228        if test "x${var}" = 'x' ; then
31229          pnglib='png'
31230        else
31231          pnglib="png1${var}"
31232        fi
31233
31234#       Test for compatible LIBPNG library
31235        failed=0
31236        passed=0
31237        if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
31238          if test "${pnglib}" != 'png' ; then
31239            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31240$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31241            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31242/* end confdefs.h.  */
31243#include <stdio.h>
31244#include <stdlib.h>
31245#include <png.h>
31246
31247int
31248main ()
31249{
31250
31251#if PNG_LIBPNG_VER_MINOR != ${var}
31252#error LIBPNG library must be version 1${var}!
31253Kaboom, Kaboom
31254#endif
31255return 0;
31256
31257  ;
31258  return 0;
31259}
31260_ACEOF
31261if ac_fn_c_try_compile "$LINENO"; then :
31262              ac_cv_libpng_ok='yes'
31263else
31264  ac_cv_libpng_ok='no'
31265fi
31266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31267            if test "$ac_cv_libpng_ok" = 'yes' ; then
31268              passed=`expr $passed + 1`
31269              { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31270$as_echo "$as_me: yes" >&6;}
31271            else
31272              failed=`expr $failed + 1`
31273              { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31274$as_echo "$as_me: no" >&6;}
31275            fi
31276          else
31277            passed=`expr $passed + 1`
31278            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31279$as_echo "$as_me: yes" >&6;}
31280          fi
31281        fi
31282
31283        if test $passed -gt 0 -a $failed -le 0; then
31284          if test "1${var}" = '15' ; then
31285            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31286$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31287if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31288  $as_echo_n "(cached) " >&6
31289else
31290  ac_check_lib_save_LIBS=$LIBS
31291LIBS="-lpng15  $LIBS"
31292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31293/* end confdefs.h.  */
31294
31295/* Override any GCC internal prototype to avoid an error.
31296   Use char because int might match the return type of a GCC
31297   builtin and then its argument prototype would still apply.  */
31298#ifdef __cplusplus
31299extern "C"
31300#endif
31301char png_get_io_ptr ();
31302int
31303main ()
31304{
31305return png_get_io_ptr ();
31306  ;
31307  return 0;
31308}
31309_ACEOF
31310if ac_fn_c_try_link "$LINENO"; then :
31311  ac_cv_lib_png15_png_get_io_ptr=yes
31312else
31313  ac_cv_lib_png15_png_get_io_ptr=no
31314fi
31315rm -f core conftest.err conftest.$ac_objext \
31316    conftest$ac_exeext conftest.$ac_ext
31317LIBS=$ac_check_lib_save_LIBS
31318fi
31319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31320$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31321if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31322  passed=`expr $passed + 1`
31323else
31324  failed=`expr $failed + 1`
31325fi
31326
31327            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31328$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31329if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31330  $as_echo_n "(cached) " >&6
31331else
31332  ac_check_lib_save_LIBS=$LIBS
31333LIBS="-lpng15  $LIBS"
31334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31335/* end confdefs.h.  */
31336
31337/* Override any GCC internal prototype to avoid an error.
31338   Use char because int might match the return type of a GCC
31339   builtin and then its argument prototype would still apply.  */
31340#ifdef __cplusplus
31341extern "C"
31342#endif
31343char png_longjmp ();
31344int
31345main ()
31346{
31347return png_longjmp ();
31348  ;
31349  return 0;
31350}
31351_ACEOF
31352if ac_fn_c_try_link "$LINENO"; then :
31353  ac_cv_lib_png15_png_longjmp=yes
31354else
31355  ac_cv_lib_png15_png_longjmp=no
31356fi
31357rm -f core conftest.err conftest.$ac_objext \
31358    conftest$ac_exeext conftest.$ac_ext
31359LIBS=$ac_check_lib_save_LIBS
31360fi
31361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31362$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31363if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31364  passed=`expr $passed + 1`
31365else
31366  failed=`expr $failed + 1`
31367fi
31368
31369          fi
31370          if test "1${var}" = '14' ; then
31371            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31372$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31373if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31374  $as_echo_n "(cached) " >&6
31375else
31376  ac_check_lib_save_LIBS=$LIBS
31377LIBS="-lpng14  $LIBS"
31378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379/* end confdefs.h.  */
31380
31381/* Override any GCC internal prototype to avoid an error.
31382   Use char because int might match the return type of a GCC
31383   builtin and then its argument prototype would still apply.  */
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char png_get_io_ptr ();
31388int
31389main ()
31390{
31391return png_get_io_ptr ();
31392  ;
31393  return 0;
31394}
31395_ACEOF
31396if ac_fn_c_try_link "$LINENO"; then :
31397  ac_cv_lib_png14_png_get_io_ptr=yes
31398else
31399  ac_cv_lib_png14_png_get_io_ptr=no
31400fi
31401rm -f core conftest.err conftest.$ac_objext \
31402    conftest$ac_exeext conftest.$ac_ext
31403LIBS=$ac_check_lib_save_LIBS
31404fi
31405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31406$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31407if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31408  passed=`expr $passed + 1`
31409else
31410  failed=`expr $failed + 1`
31411fi
31412
31413            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31414$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31415if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31416  $as_echo_n "(cached) " >&6
31417else
31418  ac_check_lib_save_LIBS=$LIBS
31419LIBS="-lpng14  $LIBS"
31420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31421/* end confdefs.h.  */
31422
31423/* Override any GCC internal prototype to avoid an error.
31424   Use char because int might match the return type of a GCC
31425   builtin and then its argument prototype would still apply.  */
31426#ifdef __cplusplus
31427extern "C"
31428#endif
31429char png_get_io_state ();
31430int
31431main ()
31432{
31433return png_get_io_state ();
31434  ;
31435  return 0;
31436}
31437_ACEOF
31438if ac_fn_c_try_link "$LINENO"; then :
31439  ac_cv_lib_png14_png_get_io_state=yes
31440else
31441  ac_cv_lib_png14_png_get_io_state=no
31442fi
31443rm -f core conftest.err conftest.$ac_objext \
31444    conftest$ac_exeext conftest.$ac_ext
31445LIBS=$ac_check_lib_save_LIBS
31446fi
31447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31448$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31449if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31450  passed=`expr $passed + 1`
31451else
31452  failed=`expr $failed + 1`
31453fi
31454
31455          fi
31456          if test "1${var}" = '12' ; then
31457            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31458$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31459if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31460  $as_echo_n "(cached) " >&6
31461else
31462  ac_check_lib_save_LIBS=$LIBS
31463LIBS="-lpng12  $LIBS"
31464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31465/* end confdefs.h.  */
31466
31467/* Override any GCC internal prototype to avoid an error.
31468   Use char because int might match the return type of a GCC
31469   builtin and then its argument prototype would still apply.  */
31470#ifdef __cplusplus
31471extern "C"
31472#endif
31473char png_get_io_ptr ();
31474int
31475main ()
31476{
31477return png_get_io_ptr ();
31478  ;
31479  return 0;
31480}
31481_ACEOF
31482if ac_fn_c_try_link "$LINENO"; then :
31483  ac_cv_lib_png12_png_get_io_ptr=yes
31484else
31485  ac_cv_lib_png12_png_get_io_ptr=no
31486fi
31487rm -f core conftest.err conftest.$ac_objext \
31488    conftest$ac_exeext conftest.$ac_ext
31489LIBS=$ac_check_lib_save_LIBS
31490fi
31491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31492$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31493if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31494  passed=`expr $passed + 1`
31495else
31496  failed=`expr $failed + 1`
31497fi
31498
31499          fi
31500          if test "1${var}" = '1' ; then
31501              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31502$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31503if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31504  $as_echo_n "(cached) " >&6
31505else
31506  ac_check_lib_save_LIBS=$LIBS
31507LIBS="-lpng  $LIBS"
31508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31509/* end confdefs.h.  */
31510
31511/* Override any GCC internal prototype to avoid an error.
31512   Use char because int might match the return type of a GCC
31513   builtin and then its argument prototype would still apply.  */
31514#ifdef __cplusplus
31515extern "C"
31516#endif
31517char png_get_io_ptr ();
31518int
31519main ()
31520{
31521return png_get_io_ptr ();
31522  ;
31523  return 0;
31524}
31525_ACEOF
31526if ac_fn_c_try_link "$LINENO"; then :
31527  ac_cv_lib_png_png_get_io_ptr=yes
31528else
31529  ac_cv_lib_png_png_get_io_ptr=no
31530fi
31531rm -f core conftest.err conftest.$ac_objext \
31532    conftest$ac_exeext conftest.$ac_ext
31533LIBS=$ac_check_lib_save_LIBS
31534fi
31535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31536$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31537if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31538  passed=`expr $passed + 1`
31539else
31540  failed=`expr $failed + 1`
31541fi
31542
31543          fi
31544          if test $passed -gt 0 -a $failed -le 0 ; then
31545            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31546$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31547            if test $passed -gt 0 ; then
31548              if test $failed -gt 0 ; then
31549                  { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31550$as_echo "$as_me: no -- some components failed test" >&6;}
31551                  have_png='no (failed tests)'
31552              else
31553                  PNG_LIBS="-l${pnglib}"
31554                  LIBS="$PNG_LIBS $LIBS"
31555
31556$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
31557
31558                  { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31559$as_echo "$as_me: yes" >&6;}
31560                  have_png='yes'
31561              fi
31562            fi
31563          fi
31564        fi
31565      fi
31566    done
31567  fi
31568fi
31569
31570 if test "$have_png" = 'yes'; then
31571  PNG_DELEGATE_TRUE=
31572  PNG_DELEGATE_FALSE='#'
31573else
31574  PNG_DELEGATE_TRUE='#'
31575  PNG_DELEGATE_FALSE=
31576fi
31577
31578
31579
31580
31581
31582#
31583# Check for RSVG delegate library.
31584#
31585
31586# Check whether --with-rsvg was given.
31587if test "${with_rsvg+set}" = set; then :
31588  withval=$with_rsvg; with_rsvg=$withval
31589else
31590  with_rsvg='no'
31591fi
31592
31593
31594if test "$with_rsvg" != 'yes'; then
31595    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31596fi
31597
31598have_rsvg='no'
31599have_cairo='no'
31600RSVG_CFLAGS=""
31601RSVG_LIBS=""
31602RSVG_PKG=""
31603if test "x$with_rsvg" = "xyes"; then
31604    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31605$as_echo "$as_me: -------------------------------------------------------------" >&6;}
31606
31607pkg_failed=no
31608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31609$as_echo_n "checking for RSVG... " >&6; }
31610
31611if test -n "$RSVG_CFLAGS"; then
31612    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31613 elif test -n "$PKG_CONFIG"; then
31614    if test -n "$PKG_CONFIG" && \
31615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31616  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31617  ac_status=$?
31618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31619  test $ac_status = 0; }; then
31620  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31621else
31622  pkg_failed=yes
31623fi
31624 else
31625    pkg_failed=untried
31626fi
31627if test -n "$RSVG_LIBS"; then
31628    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31629 elif test -n "$PKG_CONFIG"; then
31630    if test -n "$PKG_CONFIG" && \
31631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31632  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31633  ac_status=$?
31634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31635  test $ac_status = 0; }; then
31636  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31637else
31638  pkg_failed=yes
31639fi
31640 else
31641    pkg_failed=untried
31642fi
31643
31644
31645
31646if test $pkg_failed = yes; then
31647
31648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31649        _pkg_short_errors_supported=yes
31650else
31651        _pkg_short_errors_supported=no
31652fi
31653        if test $_pkg_short_errors_supported = yes; then
31654	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31655        else
31656	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31657        fi
31658	# Put the nasty error message in config.log where it belongs
31659	echo "$RSVG_PKG_ERRORS" >&5
31660
31661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31662$as_echo "no" >&6; }
31663                have_rsvg=no
31664elif test $pkg_failed = untried; then
31665	have_rsvg=no
31666else
31667	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31668	RSVG_LIBS=$pkg_cv_RSVG_LIBS
31669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31670$as_echo "yes" >&6; }
31671	have_rsvg=yes
31672fi
31673    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31674$as_echo "$as_me: " >&6;}
31675
31676pkg_failed=no
31677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31678$as_echo_n "checking for CAIRO_SVG... " >&6; }
31679
31680if test -n "$CAIRO_SVG_CFLAGS"; then
31681    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31682 elif test -n "$PKG_CONFIG"; then
31683    if test -n "$PKG_CONFIG" && \
31684    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31685  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31686  ac_status=$?
31687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31688  test $ac_status = 0; }; then
31689  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31690else
31691  pkg_failed=yes
31692fi
31693 else
31694    pkg_failed=untried
31695fi
31696if test -n "$CAIRO_SVG_LIBS"; then
31697    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31698 elif test -n "$PKG_CONFIG"; then
31699    if test -n "$PKG_CONFIG" && \
31700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31701  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31702  ac_status=$?
31703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31704  test $ac_status = 0; }; then
31705  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31706else
31707  pkg_failed=yes
31708fi
31709 else
31710    pkg_failed=untried
31711fi
31712
31713
31714
31715if test $pkg_failed = yes; then
31716
31717if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31718        _pkg_short_errors_supported=yes
31719else
31720        _pkg_short_errors_supported=no
31721fi
31722        if test $_pkg_short_errors_supported = yes; then
31723	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31724        else
31725	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31726        fi
31727	# Put the nasty error message in config.log where it belongs
31728	echo "$CAIRO_SVG_PKG_ERRORS" >&5
31729
31730	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31731$as_echo "no" >&6; }
31732                have_cairo=no
31733elif test $pkg_failed = untried; then
31734	have_cairo=no
31735else
31736	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31737	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31738        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31739$as_echo "yes" >&6; }
31740	have_cairo=yes
31741fi
31742    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31743$as_echo "$as_me: " >&6;}
31744fi
31745
31746if test "$have_rsvg" = 'yes'; then
31747
31748$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31749
31750    if test "$with_modules" = 'no'; then
31751        CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31752    fi
31753fi
31754
31755if test "$have_cairo" = 'yes'; then
31756
31757$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31758
31759    if test "$with_modules" = 'no'; then
31760        CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31761    fi
31762fi
31763
31764 if test "$have_rsvg" = 'yes'; then
31765  RSVG_DELEGATE_TRUE=
31766  RSVG_DELEGATE_FALSE='#'
31767else
31768  RSVG_DELEGATE_TRUE='#'
31769  RSVG_DELEGATE_FALSE=
31770fi
31771
31772 if test "$have_cairo" = 'yes'; then
31773  CAIRO_DELEGATE_TRUE=
31774  CAIRO_DELEGATE_FALSE='#'
31775else
31776  CAIRO_DELEGATE_TRUE='#'
31777  CAIRO_DELEGATE_FALSE=
31778fi
31779
31780
31781
31782
31783
31784#
31785# Check for TIFF delegate library.
31786#
31787
31788# Check whether --with-tiff was given.
31789if test "${with_tiff+set}" = set; then :
31790  withval=$with_tiff; with_tiff=$withval
31791else
31792  with_tiff='yes'
31793fi
31794
31795
31796if test "$with_tiff" != 'yes'; then
31797    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31798fi
31799
31800have_tiff='no'
31801TIFF_LIBS=''
31802if test "$with_tiff" != 'no'; then
31803    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31804$as_echo "$as_me: -------------------------------------------------------------" >&6;}
31805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31806$as_echo_n "checking for TIFF... " >&6; }
31807    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31808$as_echo "$as_me: " >&6;}
31809    failed=0
31810    passed=0
31811    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31812if test "x$ac_cv_header_tiff_h" = xyes; then :
31813  passed=`expr $passed + 1`
31814else
31815  failed=`expr $failed + 1`
31816fi
31817
31818
31819    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31820if test "x$ac_cv_header_tiffio_h" = xyes; then :
31821  passed=`expr $passed + 1`
31822else
31823  failed=`expr $failed + 1`
31824fi
31825
31826
31827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31828$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31829if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
31830  $as_echo_n "(cached) " >&6
31831else
31832  ac_check_lib_save_LIBS=$LIBS
31833LIBS="-ltiff  $LIBS"
31834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31835/* end confdefs.h.  */
31836
31837/* Override any GCC internal prototype to avoid an error.
31838   Use char because int might match the return type of a GCC
31839   builtin and then its argument prototype would still apply.  */
31840#ifdef __cplusplus
31841extern "C"
31842#endif
31843char TIFFOpen ();
31844int
31845main ()
31846{
31847return TIFFOpen ();
31848  ;
31849  return 0;
31850}
31851_ACEOF
31852if ac_fn_c_try_link "$LINENO"; then :
31853  ac_cv_lib_tiff_TIFFOpen=yes
31854else
31855  ac_cv_lib_tiff_TIFFOpen=no
31856fi
31857rm -f core conftest.err conftest.$ac_objext \
31858    conftest$ac_exeext conftest.$ac_ext
31859LIBS=$ac_check_lib_save_LIBS
31860fi
31861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31862$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31863if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
31864  passed=`expr $passed + 1`
31865else
31866  failed=`expr $failed + 1`
31867fi
31868
31869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
31870$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31871if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
31872  $as_echo_n "(cached) " >&6
31873else
31874  ac_check_lib_save_LIBS=$LIBS
31875LIBS="-ltiff  $LIBS"
31876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31877/* end confdefs.h.  */
31878
31879/* Override any GCC internal prototype to avoid an error.
31880   Use char because int might match the return type of a GCC
31881   builtin and then its argument prototype would still apply.  */
31882#ifdef __cplusplus
31883extern "C"
31884#endif
31885char TIFFClientOpen ();
31886int
31887main ()
31888{
31889return TIFFClientOpen ();
31890  ;
31891  return 0;
31892}
31893_ACEOF
31894if ac_fn_c_try_link "$LINENO"; then :
31895  ac_cv_lib_tiff_TIFFClientOpen=yes
31896else
31897  ac_cv_lib_tiff_TIFFClientOpen=no
31898fi
31899rm -f core conftest.err conftest.$ac_objext \
31900    conftest$ac_exeext conftest.$ac_ext
31901LIBS=$ac_check_lib_save_LIBS
31902fi
31903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
31904$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31905if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
31906  passed=`expr $passed + 1`
31907else
31908  failed=`expr $failed + 1`
31909fi
31910
31911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
31912$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31913if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
31914  $as_echo_n "(cached) " >&6
31915else
31916  ac_check_lib_save_LIBS=$LIBS
31917LIBS="-ltiff  $LIBS"
31918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31919/* end confdefs.h.  */
31920
31921/* Override any GCC internal prototype to avoid an error.
31922   Use char because int might match the return type of a GCC
31923   builtin and then its argument prototype would still apply.  */
31924#ifdef __cplusplus
31925extern "C"
31926#endif
31927char TIFFIsByteSwapped ();
31928int
31929main ()
31930{
31931return TIFFIsByteSwapped ();
31932  ;
31933  return 0;
31934}
31935_ACEOF
31936if ac_fn_c_try_link "$LINENO"; then :
31937  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31938else
31939  ac_cv_lib_tiff_TIFFIsByteSwapped=no
31940fi
31941rm -f core conftest.err conftest.$ac_objext \
31942    conftest$ac_exeext conftest.$ac_ext
31943LIBS=$ac_check_lib_save_LIBS
31944fi
31945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
31946$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31947if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
31948  passed=`expr $passed + 1`
31949else
31950  failed=`expr $failed + 1`
31951fi
31952
31953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
31954$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31955if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
31956  $as_echo_n "(cached) " >&6
31957else
31958  ac_check_lib_save_LIBS=$LIBS
31959LIBS="-ltiff  $LIBS"
31960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31961/* end confdefs.h.  */
31962
31963/* Override any GCC internal prototype to avoid an error.
31964   Use char because int might match the return type of a GCC
31965   builtin and then its argument prototype would still apply.  */
31966#ifdef __cplusplus
31967extern "C"
31968#endif
31969char TIFFReadRGBATile ();
31970int
31971main ()
31972{
31973return TIFFReadRGBATile ();
31974  ;
31975  return 0;
31976}
31977_ACEOF
31978if ac_fn_c_try_link "$LINENO"; then :
31979  ac_cv_lib_tiff_TIFFReadRGBATile=yes
31980else
31981  ac_cv_lib_tiff_TIFFReadRGBATile=no
31982fi
31983rm -f core conftest.err conftest.$ac_objext \
31984    conftest$ac_exeext conftest.$ac_ext
31985LIBS=$ac_check_lib_save_LIBS
31986fi
31987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
31988$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
31989if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
31990  passed=`expr $passed + 1`
31991else
31992  failed=`expr $failed + 1`
31993fi
31994
31995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
31996$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
31997if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
31998  $as_echo_n "(cached) " >&6
31999else
32000  ac_check_lib_save_LIBS=$LIBS
32001LIBS="-ltiff  $LIBS"
32002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32003/* end confdefs.h.  */
32004
32005/* Override any GCC internal prototype to avoid an error.
32006   Use char because int might match the return type of a GCC
32007   builtin and then its argument prototype would still apply.  */
32008#ifdef __cplusplus
32009extern "C"
32010#endif
32011char TIFFReadRGBAStrip ();
32012int
32013main ()
32014{
32015return TIFFReadRGBAStrip ();
32016  ;
32017  return 0;
32018}
32019_ACEOF
32020if ac_fn_c_try_link "$LINENO"; then :
32021  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32022else
32023  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
32024fi
32025rm -f core conftest.err conftest.$ac_objext \
32026    conftest$ac_exeext conftest.$ac_ext
32027LIBS=$ac_check_lib_save_LIBS
32028fi
32029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
32030$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
32031if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
32032  passed=`expr $passed + 1`
32033else
32034  failed=`expr $failed + 1`
32035fi
32036
32037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
32038$as_echo_n "checking if TIFF package is complete... " >&6; }
32039    if test $passed -gt 0; then
32040        if test $failed -gt 0; then
32041            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32042$as_echo "$as_me: no -- some components failed test" >&6;}
32043            have_tiff='no (failed tests)'
32044        else
32045            TIFF_LIBS='-ltiff'
32046            LIBS="$TIFF_LIBS $LIBS"
32047
32048$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
32049
32050            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32051$as_echo "$as_me: yes" >&6;}
32052            have_tiff='yes'
32053            for ac_header in tiffconf.h
32054do :
32055  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
32056if test "x$ac_cv_header_tiffconf_h" = xyes; then :
32057  cat >>confdefs.h <<_ACEOF
32058#define HAVE_TIFFCONF_H 1
32059_ACEOF
32060
32061fi
32062
32063done
32064
32065            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
32066              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32067              TIFFSetTagExtender TIFFSetWarningHandlerExt \
32068              TIFFSwabArrayOfTriples
32069do :
32070  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32071ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32072if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32073  cat >>confdefs.h <<_ACEOF
32074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32075_ACEOF
32076
32077fi
32078done
32079
32080        fi
32081    else
32082        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32083$as_echo "$as_me: no" >&6;}
32084    fi
32085fi
32086 if test "$have_tiff" = 'yes'; then
32087  TIFF_DELEGATE_TRUE=
32088  TIFF_DELEGATE_FALSE='#'
32089else
32090  TIFF_DELEGATE_TRUE='#'
32091  TIFF_DELEGATE_FALSE=
32092fi
32093
32094
32095
32096
32097#
32098# Check for WEBP delegate library.
32099#
32100
32101# Check whether --with-webp was given.
32102if test "${with_webp+set}" = set; then :
32103  withval=$with_webp; with_webp=$withval
32104else
32105  with_webp='yes'
32106fi
32107
32108
32109if test "$with_webp" != 'yes'; then
32110    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32111fi
32112
32113have_webp='no'
32114WEBP_LIBS=''
32115if test "$with_webp" != 'no'; then
32116    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32117$as_echo "$as_me: -------------------------------------------------------------" >&6;}
32118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32119$as_echo_n "checking for WEBP... " >&6; }
32120    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32121$as_echo "$as_me: " >&6;}
32122    failed=0
32123    passed=0
32124    ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32125if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32126  passed=`expr $passed + 1`
32127else
32128  failed=`expr $failed + 1`
32129fi
32130
32131
32132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32133$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32134if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32135  $as_echo_n "(cached) " >&6
32136else
32137  ac_check_lib_save_LIBS=$LIBS
32138LIBS="-lwebp  $LIBS"
32139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32140/* end confdefs.h.  */
32141
32142/* Override any GCC internal prototype to avoid an error.
32143   Use char because int might match the return type of a GCC
32144   builtin and then its argument prototype would still apply.  */
32145#ifdef __cplusplus
32146extern "C"
32147#endif
32148char WebPDecodeRGB ();
32149int
32150main ()
32151{
32152return WebPDecodeRGB ();
32153  ;
32154  return 0;
32155}
32156_ACEOF
32157if ac_fn_c_try_link "$LINENO"; then :
32158  ac_cv_lib_webp_WebPDecodeRGB=yes
32159else
32160  ac_cv_lib_webp_WebPDecodeRGB=no
32161fi
32162rm -f core conftest.err conftest.$ac_objext \
32163    conftest$ac_exeext conftest.$ac_ext
32164LIBS=$ac_check_lib_save_LIBS
32165fi
32166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32167$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32168if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32169  passed=`expr $passed + 1`
32170else
32171  failed=`expr $failed + 1`
32172fi
32173
32174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32175$as_echo_n "checking if WEBP package is complete... " >&6; }
32176    if test $passed -gt 0; then
32177        if test $failed -gt 0; then
32178            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32179$as_echo "$as_me: no -- some components failed test" >&6;}
32180            have_webp='no (failed tests)'
32181        else
32182            WEBP_LIBS='-lwebp'
32183            LIBS="$WEBP_LIBS $LIBS"
32184
32185$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32186
32187            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32188$as_echo "$as_me: yes" >&6;}
32189            have_webp='yes'
32190        fi
32191    else
32192        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32193$as_echo "$as_me: no" >&6;}
32194    fi
32195fi
32196 if test "$have_webp" = 'yes'; then
32197  WEBP_DELEGATE_TRUE=
32198  WEBP_DELEGATE_FALSE='#'
32199else
32200  WEBP_DELEGATE_TRUE='#'
32201  WEBP_DELEGATE_FALSE=
32202fi
32203
32204
32205
32206
32207#
32208# Set Windows font directory.
32209#
32210
32211# Check whether --with-windows-font-dir was given.
32212if test "${with_windows_font_dir+set}" = set; then :
32213  withval=$with_windows_font_dir; with_windows_font_dir=$withval
32214else
32215  with_windows_font_dir=''
32216fi
32217
32218if test "$with_windows_font_dir" != '' ; then
32219    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32220fi
32221
32222
32223#
32224# Check for WMF delegate library.
32225#
32226
32227# Check whether --with-wmf was given.
32228if test "${with_wmf+set}" = set; then :
32229  withval=$with_wmf; with_wmf=$withval
32230else
32231  with_wmf='no'
32232fi
32233
32234
32235if test "$with_wmf" != 'yes'; then
32236    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32237fi
32238
32239have_wmf='no'
32240WMF_LIBS=''
32241WMF_LIBS_DEPS=''
32242OLIBS="$LIBS"
32243if test "$with_wmf" != 'no'; then
32244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32245$as_echo "-------------------------------------------------------------" >&6; }
32246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
32247$as_echo_n "checking for WMF... " >&6; }
32248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32249$as_echo "" >&6; }
32250    have_libwmf='no'
32251    have_libwmflite='no'
32252    have_libwmf_ipa_h='no'
32253
32254    ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32255"
32256if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32257  have_libwmf_ipa_h='yes'
32258fi
32259
32260
32261    if test "$have_libwmf_ipa_h" = 'yes'; then
32262        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32263$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32264if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32265  $as_echo_n "(cached) " >&6
32266else
32267  ac_check_lib_save_LIBS=$LIBS
32268LIBS="-lwmflite  $LIBS"
32269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32270/* end confdefs.h.  */
32271
32272/* Override any GCC internal prototype to avoid an error.
32273   Use char because int might match the return type of a GCC
32274   builtin and then its argument prototype would still apply.  */
32275#ifdef __cplusplus
32276extern "C"
32277#endif
32278char wmf_lite_create ();
32279int
32280main ()
32281{
32282return wmf_lite_create ();
32283  ;
32284  return 0;
32285}
32286_ACEOF
32287if ac_fn_c_try_link "$LINENO"; then :
32288  ac_cv_lib_wmflite_wmf_lite_create=yes
32289else
32290  ac_cv_lib_wmflite_wmf_lite_create=no
32291fi
32292rm -f core conftest.err conftest.$ac_objext \
32293    conftest$ac_exeext conftest.$ac_ext
32294LIBS=$ac_check_lib_save_LIBS
32295fi
32296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32297$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32298if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32299  have_libwmflite='yes'
32300fi
32301
32302        if test "$have_libwmflite" = 'yes'; then
32303
32304$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32305
32306            WMF_LIBS='-lwmflite'
32307            LIBS="$WMF_LIBS $LIBS"
32308            have_wmf='yes'
32309        else
32310            WMF_LIBS_DEPS=''
32311            WMF_CONFIG_LIBS=`libwmf-config --libs`
32312            for lib in xml2 expat freetype jpeg png z; do
32313                testlib="-l${lib}"
32314                echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32315            done
32316            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32317$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32318if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32319  $as_echo_n "(cached) " >&6
32320else
32321  ac_check_lib_save_LIBS=$LIBS
32322LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32324/* end confdefs.h.  */
32325
32326/* Override any GCC internal prototype to avoid an error.
32327   Use char because int might match the return type of a GCC
32328   builtin and then its argument prototype would still apply.  */
32329#ifdef __cplusplus
32330extern "C"
32331#endif
32332char wmf_api_create ();
32333int
32334main ()
32335{
32336return wmf_api_create ();
32337  ;
32338  return 0;
32339}
32340_ACEOF
32341if ac_fn_c_try_link "$LINENO"; then :
32342  ac_cv_lib_wmf_wmf_api_create=yes
32343else
32344  ac_cv_lib_wmf_wmf_api_create=no
32345fi
32346rm -f core conftest.err conftest.$ac_objext \
32347    conftest$ac_exeext conftest.$ac_ext
32348LIBS=$ac_check_lib_save_LIBS
32349fi
32350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32351$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32352if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32353  have_libwmf='yes'
32354fi
32355
32356            if test "$have_libwmf" = 'yes'; then
32357
32358$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
32359
32360                WMF_LIBS='-lwmf'
32361                LIBS="$WMF_LIBS $LIBS"
32362                have_wmf='yes'
32363            else
32364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32365$as_echo "no -- some components failed test" >&6; }
32366                have_wmf='no (failed tests)'
32367                have_wmflite='no (failed tests)'
32368                LIBS="$OLIBS"
32369                WMF_LIBS=''
32370            fi
32371        fi
32372    fi
32373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32374$as_echo_n "checking if WMF package is complete... " >&6; }
32375    if test "$have_wmf" = 'yes'; then
32376        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32377$as_echo "yes" >&6; }
32378    else
32379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32380$as_echo "no" >&6; }
32381    fi
32382fi
32383 if test "$have_wmf" = 'yes'; then
32384  WMF_DELEGATE_TRUE=
32385  WMF_DELEGATE_FALSE='#'
32386else
32387  WMF_DELEGATE_TRUE='#'
32388  WMF_DELEGATE_FALSE=
32389fi
32390
32391
32392
32393
32394
32395
32396#
32397# Check for XML delegate library.
32398#
32399
32400# Check whether --with-xml was given.
32401if test "${with_xml+set}" = set; then :
32402  withval=$with_xml; with_xml=$withval
32403else
32404  with_xml='yes'
32405fi
32406
32407
32408if test "$with_xml" != 'yes' ; then
32409    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32410fi
32411
32412have_xml='no'
32413XML_LIBS=''
32414if test "$with_xml" != 'no'; then
32415    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32416$as_echo "$as_me: -------------------------------------------------------------" >&6;}
32417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32418$as_echo_n "checking for XML... " >&6; }
32419    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32420$as_echo "$as_me: " >&6;}
32421    PERSIST_LDFLAGS=$LDFLAGS
32422    PERSIST_CPPFLAGS=$CPPFLAGS
32423    xml2_config=''
32424    # Extract the first word of "xml2-config", so it can be a program name with args.
32425set dummy xml2-config; ac_word=$2
32426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32427$as_echo_n "checking for $ac_word... " >&6; }
32428if ${ac_cv_path_xml2_config+:} false; then :
32429  $as_echo_n "(cached) " >&6
32430else
32431  case $xml2_config in
32432  [\\/]* | ?:[\\/]*)
32433  ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32434  ;;
32435  *)
32436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32437for as_dir in $PATH
32438do
32439  IFS=$as_save_IFS
32440  test -z "$as_dir" && as_dir=.
32441    for ac_exec_ext in '' $ac_executable_extensions; do
32442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32443    ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32445    break 2
32446  fi
32447done
32448  done
32449IFS=$as_save_IFS
32450
32451  ;;
32452esac
32453fi
32454xml2_config=$ac_cv_path_xml2_config
32455if test -n "$xml2_config"; then
32456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32457$as_echo "$xml2_config" >&6; }
32458else
32459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32460$as_echo "no" >&6; }
32461fi
32462
32463    if test -n "$xml2_config"; then
32464        # Debian installs libxml headers under /usr/include/libxml2/libxml with
32465        # the shared library installed under /usr/lib, whereas the package
32466        # installs itself under $prefix/libxml and $prefix/lib.
32467        xml2_prefix=`xml2-config --prefix`
32468        if test -d "${xml2_prefix}/include/libxml2"; then
32469            CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32470        fi
32471        if test "${xml2_prefix}" != '/usr'; then
32472            LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32473        fi
32474    fi
32475    failed=0
32476    passed=0
32477    ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32478if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32479  passed=`expr $passed + 1`
32480else
32481  failed=`expr $failed + 1`
32482fi
32483
32484
32485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32486$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32487if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32488  $as_echo_n "(cached) " >&6
32489else
32490  ac_check_lib_save_LIBS=$LIBS
32491LIBS="-lxml2  $LIBS"
32492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493/* end confdefs.h.  */
32494
32495/* Override any GCC internal prototype to avoid an error.
32496   Use char because int might match the return type of a GCC
32497   builtin and then its argument prototype would still apply.  */
32498#ifdef __cplusplus
32499extern "C"
32500#endif
32501char xmlSAXVersion ();
32502int
32503main ()
32504{
32505return xmlSAXVersion ();
32506  ;
32507  return 0;
32508}
32509_ACEOF
32510if ac_fn_c_try_link "$LINENO"; then :
32511  ac_cv_lib_xml2_xmlSAXVersion=yes
32512else
32513  ac_cv_lib_xml2_xmlSAXVersion=no
32514fi
32515rm -f core conftest.err conftest.$ac_objext \
32516    conftest$ac_exeext conftest.$ac_ext
32517LIBS=$ac_check_lib_save_LIBS
32518fi
32519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32520$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32521if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32522  passed=`expr $passed + 1`
32523else
32524  failed=`expr $failed + 1`
32525fi
32526
32527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32528$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32529if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32530  $as_echo_n "(cached) " >&6
32531else
32532  ac_check_lib_save_LIBS=$LIBS
32533LIBS="-lxml2  $LIBS"
32534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32535/* end confdefs.h.  */
32536
32537/* Override any GCC internal prototype to avoid an error.
32538   Use char because int might match the return type of a GCC
32539   builtin and then its argument prototype would still apply.  */
32540#ifdef __cplusplus
32541extern "C"
32542#endif
32543char xmlParseChunk ();
32544int
32545main ()
32546{
32547return xmlParseChunk ();
32548  ;
32549  return 0;
32550}
32551_ACEOF
32552if ac_fn_c_try_link "$LINENO"; then :
32553  ac_cv_lib_xml2_xmlParseChunk=yes
32554else
32555  ac_cv_lib_xml2_xmlParseChunk=no
32556fi
32557rm -f core conftest.err conftest.$ac_objext \
32558    conftest$ac_exeext conftest.$ac_ext
32559LIBS=$ac_check_lib_save_LIBS
32560fi
32561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32562$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32563if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32564  passed=`expr $passed + 1`
32565else
32566  failed=`expr $failed + 1`
32567fi
32568
32569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32570$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32571if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32572  $as_echo_n "(cached) " >&6
32573else
32574  ac_check_lib_save_LIBS=$LIBS
32575LIBS="-lxml2  $LIBS"
32576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32577/* end confdefs.h.  */
32578
32579/* Override any GCC internal prototype to avoid an error.
32580   Use char because int might match the return type of a GCC
32581   builtin and then its argument prototype would still apply.  */
32582#ifdef __cplusplus
32583extern "C"
32584#endif
32585char xmlCreatePushParserCtxt ();
32586int
32587main ()
32588{
32589return xmlCreatePushParserCtxt ();
32590  ;
32591  return 0;
32592}
32593_ACEOF
32594if ac_fn_c_try_link "$LINENO"; then :
32595  ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32596else
32597  ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32598fi
32599rm -f core conftest.err conftest.$ac_objext \
32600    conftest$ac_exeext conftest.$ac_ext
32601LIBS=$ac_check_lib_save_LIBS
32602fi
32603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32604$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32605if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32606  passed=`expr $passed + 1`
32607else
32608  failed=`expr $failed + 1`
32609fi
32610
32611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32612$as_echo_n "checking if XML package is complete... " >&6; }
32613    if test $passed -gt 0; then
32614        if test $failed -gt 0; then
32615            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32616$as_echo "$as_me: no -- some components failed test" >&6;}
32617            have_xml='no (failed tests)'
32618            LDFLAGS="$PERSIST_LDFLAGS"
32619            CPPFLAGS="$PERSIST_CPPFLAGS"
32620        else
32621            XML_LIBS='-lxml2'
32622            LIBS="$XML_LIBS $LIBS"
32623
32624$as_echo "#define XML_DELEGATE 1" >>confdefs.h
32625
32626            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32627$as_echo "$as_me: yes" >&6;}
32628            have_xml='yes'
32629        fi
32630    else
32631        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32632$as_echo "$as_me: no" >&6;}
32633    fi
32634fi
32635 if test "$have_xml" = 'yes'; then
32636  XML_DELEGATE_TRUE=
32637  XML_DELEGATE_FALSE='#'
32638else
32639  XML_DELEGATE_TRUE='#'
32640  XML_DELEGATE_FALSE=
32641fi
32642
32643
32644
32645
32646# Substitute compiler name to build/link PerlMagick
32647#
32648
32649
32650#
32651# Configure install Paths
32652#
32653
32654# Path to ImageMagick header files
32655INCLUDE_RELATIVE_PATH="ImageMagick"
32656INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32657DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32658case "${build_os}" in
32659  mingw* )
32660    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32661    ;;
32662esac
32663
32664cat >>confdefs.h <<_ACEOF
32665#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32666_ACEOF
32667
32668
32669
32670# Subdirectory under lib to place ImageMagick lib files
32671LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32672
32673cat >>confdefs.h <<_ACEOF
32674#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32675_ACEOF
32676
32677
32678# Path to ImageMagick bin directory
32679EXECUTABLE_PATH="${BIN_DIR}"
32680DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32681case "${build_os}" in
32682  mingw* )
32683    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32684    ;;
32685esac
32686
32687cat >>confdefs.h <<_ACEOF
32688#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32689_ACEOF
32690
32691
32692
32693# Path to ImageMagick lib
32694LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32695DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32696case "${build_os}" in
32697  mingw* )
32698    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32699    ;;
32700esac
32701
32702cat >>confdefs.h <<_ACEOF
32703#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32704_ACEOF
32705
32706
32707
32708#
32709# Subdirectory under lib to place ImageMagick coder module files
32710CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32711
32712cat >>confdefs.h <<_ACEOF
32713#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32714_ACEOF
32715
32716CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32717DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32718case "${build_os}" in
32719  mingw* )
32720    DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32721    ;;
32722esac
32723
32724cat >>confdefs.h <<_ACEOF
32725#define CODER_PATH "$DEFINE_CODER_PATH"
32726_ACEOF
32727
32728
32729
32730#
32731# Subdirectory under lib to place ImageMagick filter module files
32732FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32733
32734cat >>confdefs.h <<_ACEOF
32735#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32736_ACEOF
32737
32738FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32739DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32740case "${build_os}" in
32741  mingw* )
32742    DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32743    ;;
32744esac
32745
32746cat >>confdefs.h <<_ACEOF
32747#define FILTER_PATH "$DEFINE_FILTER_PATH"
32748_ACEOF
32749
32750
32751
32752#
32753# Path to ImageMagick documentation files
32754DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32755DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32756DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
32757case "${build_os}" in
32758  mingw* )
32759    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32760    ;;
32761esac
32762
32763cat >>confdefs.h <<_ACEOF
32764#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32765_ACEOF
32766
32767
32768
32769# Subdirectory to place architecture-dependent configuration files
32770CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
32771
32772cat >>confdefs.h <<_ACEOF
32773#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32774_ACEOF
32775
32776CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32777DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32778case "${build_os}" in
32779  mingw* )
32780    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32781    ;;
32782esac
32783
32784cat >>confdefs.h <<_ACEOF
32785#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32786_ACEOF
32787
32788
32789
32790# Subdirectory to place architecture-independent configuration files
32791SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
32792
32793cat >>confdefs.h <<_ACEOF
32794#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32795_ACEOF
32796
32797SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32798DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32799case "${build_os}" in
32800  mingw* )
32801    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32802    ;;
32803esac
32804
32805cat >>confdefs.h <<_ACEOF
32806#define SHARE_PATH "$DEFINE_SHARE_PATH"
32807_ACEOF
32808
32809
32810
32811# Subdirectory to place architecture-dependent configuration files
32812SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
32813
32814cat >>confdefs.h <<_ACEOF
32815#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32816_ACEOF
32817
32818SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32819DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
32820case "${build_os}" in
32821  mingw* )
32822    DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32823    ;;
32824esac
32825
32826cat >>confdefs.h <<_ACEOF
32827#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32828_ACEOF
32829
32830
32831
32832#
32833# program_transform_name is formed for use in a Makefile, so create a
32834# modified version for use in a shell script.
32835configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32836
32837# Default delegate definitions
32838{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32839$as_echo "$as_me: -------------------------------------------------------------" >&6;}
32840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32841$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32842{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32843$as_echo "$as_me: " >&6;}
32844AutotraceDecodeDelegateDefault='autotrace'
32845BlenderDecodeDelegateDefault='blender'
32846BZIPDelegateDefault='bzip2'
32847BrowseDelegateDefault='xdg-open'
32848CGMDecodeDelegateDefault='ralcgm'
32849CatDelegateDefault='cat'
32850DNGDecodeDelegateDefault='ufraw-batch'
32851GVCDecodeDelegateDefault='dot'
32852DVIDecodeDelegateDefault='dvips'
32853EchoDelegateDefault='echo'
32854EditorDelegateDefault='xterm'
32855FIGDecodeDelegateDefault='fig2dev'
32856ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32857DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32858MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32859GnuplotDecodeDelegateDefault='gnuplot'
32860HPGLDecodeDelegateDefault='hp2xx'
32861HTMLDecodeDelegateDefault='html2ps'
32862ILBMDecodeDelegateDefault='ilbmtoppm'
32863ILBMEncodeDelegateDefault='ppmtoilbm'
32864LPDelegateDefault='lp'
32865LPRDelegateDefault='lpr'
32866LaunchDelegateDefault='gimp'
32867MANDelegateDefault='groff'
32868MPEGDecodeDelegateDefault='ffmpeg'
32869MPEGEncodeDelegateDefault='ffmpeg'
32870MrSIDDecodeDelegateDefault='mrsidgeodecode'
32871MVDelegateDefault='mv'
32872PCLDelegateDefault='pcl6'
32873PGPDecodeDelegateDefault='pgpv'
32874POVDelegateDefault='povray'
32875if test "$native_win32_build" = 'yes'; then
32876    PSDelegateDefault='gswin32c'
32877elif test "$gslib_framework" = 'yes'; then
32878    PSDelegateDefault='gsc'
32879else
32880    PSDelegateDefault='gs'
32881fi
32882RLEEncodeDelegateDefault='rawtorle'
32883RMDelegateDefault='rm'
32884RSVGDecodeDelegateDefault='rsvg-convert'
32885SCANDecodeDelegateDefault='scanimage'
32886SVGDecodeDelegateDefault='inkscape'
32887TXTDelegateDefault='enscript'
32888UniconvertorDelegateDefault='uniconvertor'
32889WMFDecodeDelegateDefault='wmf2eps'
32890WWWDecodeDelegateDefault='curl'
32891XPSDelegateDefault='gxps'
32892ZipDelegateDefault='gzip'
32893
32894# Search for delegates
32895# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32896set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32898$as_echo_n "checking for $ac_word... " >&6; }
32899if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32900  $as_echo_n "(cached) " >&6
32901else
32902  case $AutotraceDecodeDelegate in
32903  [\\/]* | ?:[\\/]*)
32904  ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32905  ;;
32906  *)
32907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32908for as_dir in $PATH
32909do
32910  IFS=$as_save_IFS
32911  test -z "$as_dir" && as_dir=.
32912    for ac_exec_ext in '' $ac_executable_extensions; do
32913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32914    ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32916    break 2
32917  fi
32918done
32919  done
32920IFS=$as_save_IFS
32921
32922  test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32923  ;;
32924esac
32925fi
32926AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32927if test -n "$AutotraceDecodeDelegate"; then
32928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32929$as_echo "$AutotraceDecodeDelegate" >&6; }
32930else
32931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32932$as_echo "no" >&6; }
32933fi
32934
32935
32936# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32937set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32939$as_echo_n "checking for $ac_word... " >&6; }
32940if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32941  $as_echo_n "(cached) " >&6
32942else
32943  case $BlenderDecodeDelegate in
32944  [\\/]* | ?:[\\/]*)
32945  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32946  ;;
32947  *)
32948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32949for as_dir in $PATH
32950do
32951  IFS=$as_save_IFS
32952  test -z "$as_dir" && as_dir=.
32953    for ac_exec_ext in '' $ac_executable_extensions; do
32954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32955    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32957    break 2
32958  fi
32959done
32960  done
32961IFS=$as_save_IFS
32962
32963  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32964  ;;
32965esac
32966fi
32967BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32968if test -n "$BlenderDecodeDelegate"; then
32969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
32970$as_echo "$BlenderDecodeDelegate" >&6; }
32971else
32972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32973$as_echo "no" >&6; }
32974fi
32975
32976
32977# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32978set dummy "$BZIPDelegateDefault"; ac_word=$2
32979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32980$as_echo_n "checking for $ac_word... " >&6; }
32981if ${ac_cv_path_BZIPDelegate+:} false; then :
32982  $as_echo_n "(cached) " >&6
32983else
32984  case $BZIPDelegate in
32985  [\\/]* | ?:[\\/]*)
32986  ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32987  ;;
32988  *)
32989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990for as_dir in $PATH
32991do
32992  IFS=$as_save_IFS
32993  test -z "$as_dir" && as_dir=.
32994    for ac_exec_ext in '' $ac_executable_extensions; do
32995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32996    ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
32997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32998    break 2
32999  fi
33000done
33001  done
33002IFS=$as_save_IFS
33003
33004  test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33005  ;;
33006esac
33007fi
33008BZIPDelegate=$ac_cv_path_BZIPDelegate
33009if test -n "$BZIPDelegate"; then
33010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
33011$as_echo "$BZIPDelegate" >&6; }
33012else
33013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33014$as_echo "no" >&6; }
33015fi
33016
33017
33018for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33019do
33020  # Extract the first word of "$ac_prog", so it can be a program name with args.
33021set dummy $ac_prog; 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_BrowseDelegate+:} false; then :
33025  $as_echo_n "(cached) " >&6
33026else
33027  case $BrowseDelegate in
33028  [\\/]* | ?:[\\/]*)
33029  ac_cv_path_BrowseDelegate="$BrowseDelegate" # 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_BrowseDelegate="$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  ;;
33048esac
33049fi
33050BrowseDelegate=$ac_cv_path_BrowseDelegate
33051if test -n "$BrowseDelegate"; then
33052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
33053$as_echo "$BrowseDelegate" >&6; }
33054else
33055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33056$as_echo "no" >&6; }
33057fi
33058
33059
33060  test -n "$BrowseDelegate" && break
33061done
33062test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33063
33064# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33065set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
33066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33067$as_echo_n "checking for $ac_word... " >&6; }
33068if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
33069  $as_echo_n "(cached) " >&6
33070else
33071  case $CGMDecodeDelegate in
33072  [\\/]* | ?:[\\/]*)
33073  ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33074  ;;
33075  *)
33076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33077for as_dir in $PATH
33078do
33079  IFS=$as_save_IFS
33080  test -z "$as_dir" && as_dir=.
33081    for ac_exec_ext in '' $ac_executable_extensions; do
33082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33083    ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33085    break 2
33086  fi
33087done
33088  done
33089IFS=$as_save_IFS
33090
33091  test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33092  ;;
33093esac
33094fi
33095CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33096if test -n "$CGMDecodeDelegate"; then
33097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
33098$as_echo "$CGMDecodeDelegate" >&6; }
33099else
33100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33101$as_echo "no" >&6; }
33102fi
33103
33104
33105# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33106set dummy "$CatDelegateDefault"; ac_word=$2
33107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33108$as_echo_n "checking for $ac_word... " >&6; }
33109if ${ac_cv_path_CatDelegate+:} false; then :
33110  $as_echo_n "(cached) " >&6
33111else
33112  case $CatDelegate in
33113  [\\/]* | ?:[\\/]*)
33114  ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33115  ;;
33116  *)
33117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33118for as_dir in $PATH
33119do
33120  IFS=$as_save_IFS
33121  test -z "$as_dir" && as_dir=.
33122    for ac_exec_ext in '' $ac_executable_extensions; do
33123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33124    ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
33125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33126    break 2
33127  fi
33128done
33129  done
33130IFS=$as_save_IFS
33131
33132  test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33133  ;;
33134esac
33135fi
33136CatDelegate=$ac_cv_path_CatDelegate
33137if test -n "$CatDelegate"; then
33138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
33139$as_echo "$CatDelegate" >&6; }
33140else
33141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33142$as_echo "no" >&6; }
33143fi
33144
33145
33146# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33147set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
33148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33149$as_echo_n "checking for $ac_word... " >&6; }
33150if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
33151  $as_echo_n "(cached) " >&6
33152else
33153  case $DNGDecodeDelegate in
33154  [\\/]* | ?:[\\/]*)
33155  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33156  ;;
33157  *)
33158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33159for as_dir in $PATH
33160do
33161  IFS=$as_save_IFS
33162  test -z "$as_dir" && as_dir=.
33163    for ac_exec_ext in '' $ac_executable_extensions; do
33164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33165    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33167    break 2
33168  fi
33169done
33170  done
33171IFS=$as_save_IFS
33172
33173  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33174  ;;
33175esac
33176fi
33177DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33178if test -n "$DNGDecodeDelegate"; then
33179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
33180$as_echo "$DNGDecodeDelegate" >&6; }
33181else
33182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33183$as_echo "no" >&6; }
33184fi
33185
33186
33187# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33188set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33190$as_echo_n "checking for $ac_word... " >&6; }
33191if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33192  $as_echo_n "(cached) " >&6
33193else
33194  case $GVCDecodeDelegate in
33195  [\\/]* | ?:[\\/]*)
33196  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33197  ;;
33198  *)
33199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33200for as_dir in $PATH
33201do
33202  IFS=$as_save_IFS
33203  test -z "$as_dir" && as_dir=.
33204    for ac_exec_ext in '' $ac_executable_extensions; do
33205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33206    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33208    break 2
33209  fi
33210done
33211  done
33212IFS=$as_save_IFS
33213
33214  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33215  ;;
33216esac
33217fi
33218GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33219if test -n "$GVCDecodeDelegate"; then
33220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33221$as_echo "$GVCDecodeDelegate" >&6; }
33222else
33223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33224$as_echo "no" >&6; }
33225fi
33226
33227
33228# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33229set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33231$as_echo_n "checking for $ac_word... " >&6; }
33232if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33233  $as_echo_n "(cached) " >&6
33234else
33235  case $DVIDecodeDelegate in
33236  [\\/]* | ?:[\\/]*)
33237  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33238  ;;
33239  *)
33240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33241for as_dir in $PATH
33242do
33243  IFS=$as_save_IFS
33244  test -z "$as_dir" && as_dir=.
33245    for ac_exec_ext in '' $ac_executable_extensions; do
33246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33247    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33249    break 2
33250  fi
33251done
33252  done
33253IFS=$as_save_IFS
33254
33255  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33256  ;;
33257esac
33258fi
33259DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33260if test -n "$DVIDecodeDelegate"; then
33261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33262$as_echo "$DVIDecodeDelegate" >&6; }
33263else
33264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33265$as_echo "no" >&6; }
33266fi
33267
33268
33269# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33270set dummy "$EchoDelegateDefault"; ac_word=$2
33271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33272$as_echo_n "checking for $ac_word... " >&6; }
33273if ${ac_cv_path_EchoDelegate+:} false; then :
33274  $as_echo_n "(cached) " >&6
33275else
33276  case $EchoDelegate in
33277  [\\/]* | ?:[\\/]*)
33278  ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33279  ;;
33280  *)
33281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33282for as_dir in $PATH
33283do
33284  IFS=$as_save_IFS
33285  test -z "$as_dir" && as_dir=.
33286    for ac_exec_ext in '' $ac_executable_extensions; do
33287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33288    ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
33289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33290    break 2
33291  fi
33292done
33293  done
33294IFS=$as_save_IFS
33295
33296  test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33297  ;;
33298esac
33299fi
33300EchoDelegate=$ac_cv_path_EchoDelegate
33301if test -n "$EchoDelegate"; then
33302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33303$as_echo "$EchoDelegate" >&6; }
33304else
33305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33306$as_echo "no" >&6; }
33307fi
33308
33309
33310# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33311set dummy "$EditorDelegateDefault"; ac_word=$2
33312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33313$as_echo_n "checking for $ac_word... " >&6; }
33314if ${ac_cv_path_EditorDelegate+:} false; then :
33315  $as_echo_n "(cached) " >&6
33316else
33317  case $EditorDelegate in
33318  [\\/]* | ?:[\\/]*)
33319  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33320  ;;
33321  *)
33322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33323for as_dir in $PATH
33324do
33325  IFS=$as_save_IFS
33326  test -z "$as_dir" && as_dir=.
33327    for ac_exec_ext in '' $ac_executable_extensions; do
33328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33329    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33331    break 2
33332  fi
33333done
33334  done
33335IFS=$as_save_IFS
33336
33337  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33338  ;;
33339esac
33340fi
33341EditorDelegate=$ac_cv_path_EditorDelegate
33342if test -n "$EditorDelegate"; then
33343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33344$as_echo "$EditorDelegate" >&6; }
33345else
33346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33347$as_echo "no" >&6; }
33348fi
33349
33350
33351# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33352set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
33353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33354$as_echo_n "checking for $ac_word... " >&6; }
33355if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
33356  $as_echo_n "(cached) " >&6
33357else
33358  case $FIGDecodeDelegate in
33359  [\\/]* | ?:[\\/]*)
33360  ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33361  ;;
33362  *)
33363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33364for as_dir in $PATH
33365do
33366  IFS=$as_save_IFS
33367  test -z "$as_dir" && as_dir=.
33368    for ac_exec_ext in '' $ac_executable_extensions; do
33369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33370    ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33372    break 2
33373  fi
33374done
33375  done
33376IFS=$as_save_IFS
33377
33378  test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33379  ;;
33380esac
33381fi
33382FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33383if test -n "$FIGDecodeDelegate"; then
33384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
33385$as_echo "$FIGDecodeDelegate" >&6; }
33386else
33387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388$as_echo "no" >&6; }
33389fi
33390
33391
33392# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33393set dummy "$ConvertDelegateDefault"; ac_word=$2
33394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33395$as_echo_n "checking for $ac_word... " >&6; }
33396if ${ac_cv_path_ConvertDelegate+:} false; then :
33397  $as_echo_n "(cached) " >&6
33398else
33399  case $ConvertDelegate in
33400  [\\/]* | ?:[\\/]*)
33401  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33402  ;;
33403  *)
33404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33405for as_dir in $PATH
33406do
33407  IFS=$as_save_IFS
33408  test -z "$as_dir" && as_dir=.
33409    for ac_exec_ext in '' $ac_executable_extensions; do
33410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33411    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33413    break 2
33414  fi
33415done
33416  done
33417IFS=$as_save_IFS
33418
33419  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33420  ;;
33421esac
33422fi
33423ConvertDelegate=$ac_cv_path_ConvertDelegate
33424if test -n "$ConvertDelegate"; then
33425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33426$as_echo "$ConvertDelegate" >&6; }
33427else
33428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33429$as_echo "no" >&6; }
33430fi
33431
33432
33433# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33434set dummy "$DisplayDelegateDefault"; ac_word=$2
33435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33436$as_echo_n "checking for $ac_word... " >&6; }
33437if ${ac_cv_path_DisplayDelegate+:} false; then :
33438  $as_echo_n "(cached) " >&6
33439else
33440  case $DisplayDelegate in
33441  [\\/]* | ?:[\\/]*)
33442  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33443  ;;
33444  *)
33445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33446for as_dir in $PATH
33447do
33448  IFS=$as_save_IFS
33449  test -z "$as_dir" && as_dir=.
33450    for ac_exec_ext in '' $ac_executable_extensions; do
33451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33452    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33454    break 2
33455  fi
33456done
33457  done
33458IFS=$as_save_IFS
33459
33460  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33461  ;;
33462esac
33463fi
33464DisplayDelegate=$ac_cv_path_DisplayDelegate
33465if test -n "$DisplayDelegate"; then
33466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33467$as_echo "$DisplayDelegate" >&6; }
33468else
33469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33470$as_echo "no" >&6; }
33471fi
33472
33473
33474# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33475set dummy "$MogrifyDelegateDefault"; ac_word=$2
33476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33477$as_echo_n "checking for $ac_word... " >&6; }
33478if ${ac_cv_path_MogrifyDelegate+:} false; then :
33479  $as_echo_n "(cached) " >&6
33480else
33481  case $MogrifyDelegate in
33482  [\\/]* | ?:[\\/]*)
33483  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33484  ;;
33485  *)
33486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33487for as_dir in $PATH
33488do
33489  IFS=$as_save_IFS
33490  test -z "$as_dir" && as_dir=.
33491    for ac_exec_ext in '' $ac_executable_extensions; do
33492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33493    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33495    break 2
33496  fi
33497done
33498  done
33499IFS=$as_save_IFS
33500
33501  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33502  ;;
33503esac
33504fi
33505MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33506if test -n "$MogrifyDelegate"; then
33507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33508$as_echo "$MogrifyDelegate" >&6; }
33509else
33510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33511$as_echo "no" >&6; }
33512fi
33513
33514
33515# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33516set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
33517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33518$as_echo_n "checking for $ac_word... " >&6; }
33519if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
33520  $as_echo_n "(cached) " >&6
33521else
33522  case $GnuplotDecodeDelegate in
33523  [\\/]* | ?:[\\/]*)
33524  ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33525  ;;
33526  *)
33527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33528for as_dir in $PATH
33529do
33530  IFS=$as_save_IFS
33531  test -z "$as_dir" && as_dir=.
33532    for ac_exec_ext in '' $ac_executable_extensions; do
33533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33534    ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33536    break 2
33537  fi
33538done
33539  done
33540IFS=$as_save_IFS
33541
33542  test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33543  ;;
33544esac
33545fi
33546GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33547if test -n "$GnuplotDecodeDelegate"; then
33548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
33549$as_echo "$GnuplotDecodeDelegate" >&6; }
33550else
33551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33552$as_echo "no" >&6; }
33553fi
33554
33555
33556# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33557set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
33558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33559$as_echo_n "checking for $ac_word... " >&6; }
33560if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
33561  $as_echo_n "(cached) " >&6
33562else
33563  case $HPGLDecodeDelegate in
33564  [\\/]* | ?:[\\/]*)
33565  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33566  ;;
33567  *)
33568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33569for as_dir in $PATH
33570do
33571  IFS=$as_save_IFS
33572  test -z "$as_dir" && as_dir=.
33573    for ac_exec_ext in '' $ac_executable_extensions; do
33574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33575    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33577    break 2
33578  fi
33579done
33580  done
33581IFS=$as_save_IFS
33582
33583  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33584  ;;
33585esac
33586fi
33587HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33588if test -n "$HPGLDecodeDelegate"; then
33589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
33590$as_echo "$HPGLDecodeDelegate" >&6; }
33591else
33592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33593$as_echo "no" >&6; }
33594fi
33595
33596
33597# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33598set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
33599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33600$as_echo_n "checking for $ac_word... " >&6; }
33601if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
33602  $as_echo_n "(cached) " >&6
33603else
33604  case $HTMLDecodeDelegate in
33605  [\\/]* | ?:[\\/]*)
33606  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33607  ;;
33608  *)
33609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33610for as_dir in $PATH
33611do
33612  IFS=$as_save_IFS
33613  test -z "$as_dir" && as_dir=.
33614    for ac_exec_ext in '' $ac_executable_extensions; do
33615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33616    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33618    break 2
33619  fi
33620done
33621  done
33622IFS=$as_save_IFS
33623
33624  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33625  ;;
33626esac
33627fi
33628HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33629if test -n "$HTMLDecodeDelegate"; then
33630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
33631$as_echo "$HTMLDecodeDelegate" >&6; }
33632else
33633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33634$as_echo "no" >&6; }
33635fi
33636
33637
33638# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33639set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
33640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33641$as_echo_n "checking for $ac_word... " >&6; }
33642if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
33643  $as_echo_n "(cached) " >&6
33644else
33645  case $ILBMDecodeDelegate in
33646  [\\/]* | ?:[\\/]*)
33647  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33648  ;;
33649  *)
33650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33651for as_dir in $PATH
33652do
33653  IFS=$as_save_IFS
33654  test -z "$as_dir" && as_dir=.
33655    for ac_exec_ext in '' $ac_executable_extensions; do
33656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33657    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33659    break 2
33660  fi
33661done
33662  done
33663IFS=$as_save_IFS
33664
33665  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33666  ;;
33667esac
33668fi
33669ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33670if test -n "$ILBMDecodeDelegate"; then
33671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
33672$as_echo "$ILBMDecodeDelegate" >&6; }
33673else
33674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33675$as_echo "no" >&6; }
33676fi
33677
33678
33679# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33680set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
33681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33682$as_echo_n "checking for $ac_word... " >&6; }
33683if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
33684  $as_echo_n "(cached) " >&6
33685else
33686  case $ILBMEncodeDelegate in
33687  [\\/]* | ?:[\\/]*)
33688  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33689  ;;
33690  *)
33691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33692for as_dir in $PATH
33693do
33694  IFS=$as_save_IFS
33695  test -z "$as_dir" && as_dir=.
33696    for ac_exec_ext in '' $ac_executable_extensions; do
33697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33698    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33700    break 2
33701  fi
33702done
33703  done
33704IFS=$as_save_IFS
33705
33706  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33707  ;;
33708esac
33709fi
33710ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33711if test -n "$ILBMEncodeDelegate"; then
33712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
33713$as_echo "$ILBMEncodeDelegate" >&6; }
33714else
33715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33716$as_echo "no" >&6; }
33717fi
33718
33719
33720# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33721set dummy "$LPDelegateDefault"; ac_word=$2
33722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33723$as_echo_n "checking for $ac_word... " >&6; }
33724if ${ac_cv_path_LPDelegate+:} false; then :
33725  $as_echo_n "(cached) " >&6
33726else
33727  case $LPDelegate in
33728  [\\/]* | ?:[\\/]*)
33729  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33730  ;;
33731  *)
33732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33733for as_dir in $PATH
33734do
33735  IFS=$as_save_IFS
33736  test -z "$as_dir" && as_dir=.
33737    for ac_exec_ext in '' $ac_executable_extensions; do
33738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33739    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
33740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33741    break 2
33742  fi
33743done
33744  done
33745IFS=$as_save_IFS
33746
33747  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33748  ;;
33749esac
33750fi
33751LPDelegate=$ac_cv_path_LPDelegate
33752if test -n "$LPDelegate"; then
33753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
33754$as_echo "$LPDelegate" >&6; }
33755else
33756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33757$as_echo "no" >&6; }
33758fi
33759
33760
33761# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33762set dummy "$LPRDelegateDefault"; ac_word=$2
33763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33764$as_echo_n "checking for $ac_word... " >&6; }
33765if ${ac_cv_path_LPRDelegate+:} false; then :
33766  $as_echo_n "(cached) " >&6
33767else
33768  case $LPRDelegate in
33769  [\\/]* | ?:[\\/]*)
33770  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33771  ;;
33772  *)
33773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33774for as_dir in $PATH
33775do
33776  IFS=$as_save_IFS
33777  test -z "$as_dir" && as_dir=.
33778    for ac_exec_ext in '' $ac_executable_extensions; do
33779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33780    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
33781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33782    break 2
33783  fi
33784done
33785  done
33786IFS=$as_save_IFS
33787
33788  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33789  ;;
33790esac
33791fi
33792LPRDelegate=$ac_cv_path_LPRDelegate
33793if test -n "$LPRDelegate"; then
33794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33795$as_echo "$LPRDelegate" >&6; }
33796else
33797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33798$as_echo "no" >&6; }
33799fi
33800
33801
33802# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33803set dummy "$LaunchDelegateDefault"; ac_word=$2
33804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33805$as_echo_n "checking for $ac_word... " >&6; }
33806if ${ac_cv_path_LaunchDelegate+:} false; then :
33807  $as_echo_n "(cached) " >&6
33808else
33809  case $LaunchDelegate in
33810  [\\/]* | ?:[\\/]*)
33811  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33812  ;;
33813  *)
33814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33815for as_dir in $PATH
33816do
33817  IFS=$as_save_IFS
33818  test -z "$as_dir" && as_dir=.
33819    for ac_exec_ext in '' $ac_executable_extensions; do
33820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33821    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33823    break 2
33824  fi
33825done
33826  done
33827IFS=$as_save_IFS
33828
33829  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33830  ;;
33831esac
33832fi
33833LaunchDelegate=$ac_cv_path_LaunchDelegate
33834if test -n "$LaunchDelegate"; then
33835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33836$as_echo "$LaunchDelegate" >&6; }
33837else
33838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33839$as_echo "no" >&6; }
33840fi
33841
33842
33843# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33844set dummy "$MANDelegateDefault"; ac_word=$2
33845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33846$as_echo_n "checking for $ac_word... " >&6; }
33847if ${ac_cv_path_MANDelegate+:} false; then :
33848  $as_echo_n "(cached) " >&6
33849else
33850  case $MANDelegate in
33851  [\\/]* | ?:[\\/]*)
33852  ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33853  ;;
33854  *)
33855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33856for as_dir in $PATH
33857do
33858  IFS=$as_save_IFS
33859  test -z "$as_dir" && as_dir=.
33860    for ac_exec_ext in '' $ac_executable_extensions; do
33861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33862    ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33864    break 2
33865  fi
33866done
33867  done
33868IFS=$as_save_IFS
33869
33870  test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33871  ;;
33872esac
33873fi
33874MANDelegate=$ac_cv_path_MANDelegate
33875if test -n "$MANDelegate"; then
33876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33877$as_echo "$MANDelegate" >&6; }
33878else
33879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33880$as_echo "no" >&6; }
33881fi
33882
33883
33884# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33885set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33887$as_echo_n "checking for $ac_word... " >&6; }
33888if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33889  $as_echo_n "(cached) " >&6
33890else
33891  case $MPEGDecodeDelegate in
33892  [\\/]* | ?:[\\/]*)
33893  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33894  ;;
33895  *)
33896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33897for as_dir in $PATH
33898do
33899  IFS=$as_save_IFS
33900  test -z "$as_dir" && as_dir=.
33901    for ac_exec_ext in '' $ac_executable_extensions; do
33902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33903    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33905    break 2
33906  fi
33907done
33908  done
33909IFS=$as_save_IFS
33910
33911  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33912  ;;
33913esac
33914fi
33915MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33916if test -n "$MPEGDecodeDelegate"; then
33917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33918$as_echo "$MPEGDecodeDelegate" >&6; }
33919else
33920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33921$as_echo "no" >&6; }
33922fi
33923
33924
33925# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33926set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33928$as_echo_n "checking for $ac_word... " >&6; }
33929if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33930  $as_echo_n "(cached) " >&6
33931else
33932  case $MPEGEncodeDelegate in
33933  [\\/]* | ?:[\\/]*)
33934  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33935  ;;
33936  *)
33937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33938for as_dir in $PATH
33939do
33940  IFS=$as_save_IFS
33941  test -z "$as_dir" && as_dir=.
33942    for ac_exec_ext in '' $ac_executable_extensions; do
33943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33944    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33946    break 2
33947  fi
33948done
33949  done
33950IFS=$as_save_IFS
33951
33952  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33953  ;;
33954esac
33955fi
33956MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33957if test -n "$MPEGEncodeDelegate"; then
33958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33959$as_echo "$MPEGEncodeDelegate" >&6; }
33960else
33961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33962$as_echo "no" >&6; }
33963fi
33964
33965
33966# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33967set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33969$as_echo_n "checking for $ac_word... " >&6; }
33970if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
33971  $as_echo_n "(cached) " >&6
33972else
33973  case $MrSIDDecodeDelegate in
33974  [\\/]* | ?:[\\/]*)
33975  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33976  ;;
33977  *)
33978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33979for as_dir in $PATH
33980do
33981  IFS=$as_save_IFS
33982  test -z "$as_dir" && as_dir=.
33983    for ac_exec_ext in '' $ac_executable_extensions; do
33984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33985    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33987    break 2
33988  fi
33989done
33990  done
33991IFS=$as_save_IFS
33992
33993  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33994  ;;
33995esac
33996fi
33997MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33998if test -n "$MrSIDDecodeDelegate"; then
33999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34000$as_echo "$MrSIDDecodeDelegate" >&6; }
34001else
34002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34003$as_echo "no" >&6; }
34004fi
34005
34006
34007# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34008set dummy "$MVDelegateDefault"; ac_word=$2
34009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34010$as_echo_n "checking for $ac_word... " >&6; }
34011if ${ac_cv_path_MVDelegate+:} false; then :
34012  $as_echo_n "(cached) " >&6
34013else
34014  case $MVDelegate in
34015  [\\/]* | ?:[\\/]*)
34016  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34017  ;;
34018  *)
34019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34020for as_dir in $PATH
34021do
34022  IFS=$as_save_IFS
34023  test -z "$as_dir" && as_dir=.
34024    for ac_exec_ext in '' $ac_executable_extensions; do
34025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34026    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
34027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34028    break 2
34029  fi
34030done
34031  done
34032IFS=$as_save_IFS
34033
34034  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34035  ;;
34036esac
34037fi
34038MVDelegate=$ac_cv_path_MVDelegate
34039if test -n "$MVDelegate"; then
34040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
34041$as_echo "$MVDelegate" >&6; }
34042else
34043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34044$as_echo "no" >&6; }
34045fi
34046
34047
34048# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34049set dummy "$PCLDelegateDefault"; ac_word=$2
34050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34051$as_echo_n "checking for $ac_word... " >&6; }
34052if ${ac_cv_path_PCLDelegate+:} false; then :
34053  $as_echo_n "(cached) " >&6
34054else
34055  case $PCLDelegate in
34056  [\\/]* | ?:[\\/]*)
34057  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34058  ;;
34059  *)
34060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34061for as_dir in $PATH
34062do
34063  IFS=$as_save_IFS
34064  test -z "$as_dir" && as_dir=.
34065    for ac_exec_ext in '' $ac_executable_extensions; do
34066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34067    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
34068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34069    break 2
34070  fi
34071done
34072  done
34073IFS=$as_save_IFS
34074
34075  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34076  ;;
34077esac
34078fi
34079PCLDelegate=$ac_cv_path_PCLDelegate
34080if test -n "$PCLDelegate"; then
34081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34082$as_echo "$PCLDelegate" >&6; }
34083else
34084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34085$as_echo "no" >&6; }
34086fi
34087
34088
34089# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34090set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
34091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34092$as_echo_n "checking for $ac_word... " >&6; }
34093if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
34094  $as_echo_n "(cached) " >&6
34095else
34096  case $PGPDecodeDelegate in
34097  [\\/]* | ?:[\\/]*)
34098  ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34099  ;;
34100  *)
34101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34102for as_dir in $PATH
34103do
34104  IFS=$as_save_IFS
34105  test -z "$as_dir" && as_dir=.
34106    for ac_exec_ext in '' $ac_executable_extensions; do
34107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34108    ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34110    break 2
34111  fi
34112done
34113  done
34114IFS=$as_save_IFS
34115
34116  test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34117  ;;
34118esac
34119fi
34120PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34121if test -n "$PGPDecodeDelegate"; then
34122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
34123$as_echo "$PGPDecodeDelegate" >&6; }
34124else
34125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34126$as_echo "no" >&6; }
34127fi
34128
34129
34130# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34131set dummy "$POVDelegateDefault"; ac_word=$2
34132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34133$as_echo_n "checking for $ac_word... " >&6; }
34134if ${ac_cv_path_POVDelegate+:} false; then :
34135  $as_echo_n "(cached) " >&6
34136else
34137  case $POVDelegate in
34138  [\\/]* | ?:[\\/]*)
34139  ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34140  ;;
34141  *)
34142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34143for as_dir in $PATH
34144do
34145  IFS=$as_save_IFS
34146  test -z "$as_dir" && as_dir=.
34147    for ac_exec_ext in '' $ac_executable_extensions; do
34148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34149    ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
34150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34151    break 2
34152  fi
34153done
34154  done
34155IFS=$as_save_IFS
34156
34157  test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34158  ;;
34159esac
34160fi
34161POVDelegate=$ac_cv_path_POVDelegate
34162if test -n "$POVDelegate"; then
34163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
34164$as_echo "$POVDelegate" >&6; }
34165else
34166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34167$as_echo "no" >&6; }
34168fi
34169
34170
34171for ac_prog in gsx gsc "$PSDelegateDefault"
34172do
34173  # Extract the first word of "$ac_prog", so it can be a program name with args.
34174set dummy $ac_prog; 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_PSDelegate+:} false; then :
34178  $as_echo_n "(cached) " >&6
34179else
34180  case $PSDelegate in
34181  [\\/]* | ?:[\\/]*)
34182  ac_cv_path_PSDelegate="$PSDelegate" # 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_PSDelegate="$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  ;;
34201esac
34202fi
34203PSDelegate=$ac_cv_path_PSDelegate
34204if test -n "$PSDelegate"; then
34205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34206$as_echo "$PSDelegate" >&6; }
34207else
34208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34209$as_echo "no" >&6; }
34210fi
34211
34212
34213  test -n "$PSDelegate" && break
34214done
34215test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34216
34217# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34218set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
34219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34220$as_echo_n "checking for $ac_word... " >&6; }
34221if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
34222  $as_echo_n "(cached) " >&6
34223else
34224  case $RLEEncodeDelegate in
34225  [\\/]* | ?:[\\/]*)
34226  ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34227  ;;
34228  *)
34229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34230for as_dir in $PATH
34231do
34232  IFS=$as_save_IFS
34233  test -z "$as_dir" && as_dir=.
34234    for ac_exec_ext in '' $ac_executable_extensions; do
34235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34236    ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34238    break 2
34239  fi
34240done
34241  done
34242IFS=$as_save_IFS
34243
34244  test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34245  ;;
34246esac
34247fi
34248RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34249if test -n "$RLEEncodeDelegate"; then
34250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
34251$as_echo "$RLEEncodeDelegate" >&6; }
34252else
34253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34254$as_echo "no" >&6; }
34255fi
34256
34257
34258# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34259set dummy "$RMDelegateDefault"; ac_word=$2
34260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34261$as_echo_n "checking for $ac_word... " >&6; }
34262if ${ac_cv_path_RMDelegate+:} false; then :
34263  $as_echo_n "(cached) " >&6
34264else
34265  case $RMDelegate in
34266  [\\/]* | ?:[\\/]*)
34267  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34268  ;;
34269  *)
34270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34271for as_dir in $PATH
34272do
34273  IFS=$as_save_IFS
34274  test -z "$as_dir" && as_dir=.
34275    for ac_exec_ext in '' $ac_executable_extensions; do
34276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34277    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34279    break 2
34280  fi
34281done
34282  done
34283IFS=$as_save_IFS
34284
34285  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34286  ;;
34287esac
34288fi
34289RMDelegate=$ac_cv_path_RMDelegate
34290if test -n "$RMDelegate"; then
34291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34292$as_echo "$RMDelegate" >&6; }
34293else
34294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34295$as_echo "no" >&6; }
34296fi
34297
34298
34299# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34300set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34302$as_echo_n "checking for $ac_word... " >&6; }
34303if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34304  $as_echo_n "(cached) " >&6
34305else
34306  case $RSVGDecodeDelegate in
34307  [\\/]* | ?:[\\/]*)
34308  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34309  ;;
34310  *)
34311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34312for as_dir in $PATH
34313do
34314  IFS=$as_save_IFS
34315  test -z "$as_dir" && as_dir=.
34316    for ac_exec_ext in '' $ac_executable_extensions; do
34317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34318    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34320    break 2
34321  fi
34322done
34323  done
34324IFS=$as_save_IFS
34325
34326  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34327  ;;
34328esac
34329fi
34330RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34331if test -n "$RSVGDecodeDelegate"; then
34332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34333$as_echo "$RSVGDecodeDelegate" >&6; }
34334else
34335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34336$as_echo "no" >&6; }
34337fi
34338
34339
34340# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34341set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
34342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34343$as_echo_n "checking for $ac_word... " >&6; }
34344if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
34345  $as_echo_n "(cached) " >&6
34346else
34347  case $SCANDecodeDelegate in
34348  [\\/]* | ?:[\\/]*)
34349  ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34350  ;;
34351  *)
34352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34353for as_dir in $PATH
34354do
34355  IFS=$as_save_IFS
34356  test -z "$as_dir" && as_dir=.
34357    for ac_exec_ext in '' $ac_executable_extensions; do
34358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34359    ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34361    break 2
34362  fi
34363done
34364  done
34365IFS=$as_save_IFS
34366
34367  test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34368  ;;
34369esac
34370fi
34371SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34372if test -n "$SCANDecodeDelegate"; then
34373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
34374$as_echo "$SCANDecodeDelegate" >&6; }
34375else
34376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34377$as_echo "no" >&6; }
34378fi
34379
34380
34381# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34382set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34384$as_echo_n "checking for $ac_word... " >&6; }
34385if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34386  $as_echo_n "(cached) " >&6
34387else
34388  case $SVGDecodeDelegate in
34389  [\\/]* | ?:[\\/]*)
34390  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34391  ;;
34392  *)
34393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34394for as_dir in $PATH
34395do
34396  IFS=$as_save_IFS
34397  test -z "$as_dir" && as_dir=.
34398    for ac_exec_ext in '' $ac_executable_extensions; do
34399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34400    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34402    break 2
34403  fi
34404done
34405  done
34406IFS=$as_save_IFS
34407
34408  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34409  ;;
34410esac
34411fi
34412SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34413if test -n "$SVGDecodeDelegate"; then
34414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34415$as_echo "$SVGDecodeDelegate" >&6; }
34416else
34417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34418$as_echo "no" >&6; }
34419fi
34420
34421
34422# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34423set dummy "$TXTDelegateDefault"; ac_word=$2
34424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34425$as_echo_n "checking for $ac_word... " >&6; }
34426if ${ac_cv_path_TXTDelegate+:} false; then :
34427  $as_echo_n "(cached) " >&6
34428else
34429  case $TXTDelegate in
34430  [\\/]* | ?:[\\/]*)
34431  ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34432  ;;
34433  *)
34434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34435for as_dir in $PATH
34436do
34437  IFS=$as_save_IFS
34438  test -z "$as_dir" && as_dir=.
34439    for ac_exec_ext in '' $ac_executable_extensions; do
34440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34441    ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
34442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34443    break 2
34444  fi
34445done
34446  done
34447IFS=$as_save_IFS
34448
34449  test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34450  ;;
34451esac
34452fi
34453TXTDelegate=$ac_cv_path_TXTDelegate
34454if test -n "$TXTDelegate"; then
34455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
34456$as_echo "$TXTDelegate" >&6; }
34457else
34458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34459$as_echo "no" >&6; }
34460fi
34461
34462
34463# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34464set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34466$as_echo_n "checking for $ac_word... " >&6; }
34467if ${ac_cv_path_UniconvertorDelegate+:} false; then :
34468  $as_echo_n "(cached) " >&6
34469else
34470  case $UniconvertorDelegate in
34471  [\\/]* | ?:[\\/]*)
34472  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34473  ;;
34474  *)
34475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34476for as_dir in $PATH
34477do
34478  IFS=$as_save_IFS
34479  test -z "$as_dir" && as_dir=.
34480    for ac_exec_ext in '' $ac_executable_extensions; do
34481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34482    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34484    break 2
34485  fi
34486done
34487  done
34488IFS=$as_save_IFS
34489
34490  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34491  ;;
34492esac
34493fi
34494UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34495if test -n "$UniconvertorDelegate"; then
34496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34497$as_echo "$UniconvertorDelegate" >&6; }
34498else
34499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34500$as_echo "no" >&6; }
34501fi
34502
34503
34504# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34505set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
34506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34507$as_echo_n "checking for $ac_word... " >&6; }
34508if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
34509  $as_echo_n "(cached) " >&6
34510else
34511  case $WMFDecodeDelegate in
34512  [\\/]* | ?:[\\/]*)
34513  ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34514  ;;
34515  *)
34516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34517for as_dir in $PATH
34518do
34519  IFS=$as_save_IFS
34520  test -z "$as_dir" && as_dir=.
34521    for ac_exec_ext in '' $ac_executable_extensions; do
34522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34523    ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34525    break 2
34526  fi
34527done
34528  done
34529IFS=$as_save_IFS
34530
34531  test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34532  ;;
34533esac
34534fi
34535WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34536if test -n "$WMFDecodeDelegate"; then
34537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
34538$as_echo "$WMFDecodeDelegate" >&6; }
34539else
34540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34541$as_echo "no" >&6; }
34542fi
34543
34544
34545# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34546set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
34547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34548$as_echo_n "checking for $ac_word... " >&6; }
34549if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
34550  $as_echo_n "(cached) " >&6
34551else
34552  case $WWWDecodeDelegate in
34553  [\\/]* | ?:[\\/]*)
34554  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34555  ;;
34556  *)
34557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34558for as_dir in $PATH
34559do
34560  IFS=$as_save_IFS
34561  test -z "$as_dir" && as_dir=.
34562    for ac_exec_ext in '' $ac_executable_extensions; do
34563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34564    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34566    break 2
34567  fi
34568done
34569  done
34570IFS=$as_save_IFS
34571
34572  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34573  ;;
34574esac
34575fi
34576WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34577if test -n "$WWWDecodeDelegate"; then
34578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
34579$as_echo "$WWWDecodeDelegate" >&6; }
34580else
34581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34582$as_echo "no" >&6; }
34583fi
34584
34585
34586# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34587set dummy "$XPSDelegateDefault"; ac_word=$2
34588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34589$as_echo_n "checking for $ac_word... " >&6; }
34590if ${ac_cv_path_XPSDelegate+:} false; then :
34591  $as_echo_n "(cached) " >&6
34592else
34593  case $XPSDelegate in
34594  [\\/]* | ?:[\\/]*)
34595  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34596  ;;
34597  *)
34598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34599for as_dir in $PATH
34600do
34601  IFS=$as_save_IFS
34602  test -z "$as_dir" && as_dir=.
34603    for ac_exec_ext in '' $ac_executable_extensions; do
34604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34605    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
34606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34607    break 2
34608  fi
34609done
34610  done
34611IFS=$as_save_IFS
34612
34613  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34614  ;;
34615esac
34616fi
34617XPSDelegate=$ac_cv_path_XPSDelegate
34618if test -n "$XPSDelegate"; then
34619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
34620$as_echo "$XPSDelegate" >&6; }
34621else
34622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34623$as_echo "no" >&6; }
34624fi
34625
34626
34627# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34628set dummy "$ZipDelegateDefault"; ac_word=$2
34629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34630$as_echo_n "checking for $ac_word... " >&6; }
34631if ${ac_cv_path_ZipDelegate+:} false; then :
34632  $as_echo_n "(cached) " >&6
34633else
34634  case $ZipDelegate in
34635  [\\/]* | ?:[\\/]*)
34636  ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34637  ;;
34638  *)
34639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34640for as_dir in $PATH
34641do
34642  IFS=$as_save_IFS
34643  test -z "$as_dir" && as_dir=.
34644    for ac_exec_ext in '' $ac_executable_extensions; do
34645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34646    ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
34647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34648    break 2
34649  fi
34650done
34651  done
34652IFS=$as_save_IFS
34653
34654  test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34655  ;;
34656esac
34657fi
34658ZipDelegate=$ac_cv_path_ZipDelegate
34659if test -n "$ZipDelegate"; then
34660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
34661$as_echo "$ZipDelegate" >&6; }
34662else
34663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34664$as_echo "no" >&6; }
34665fi
34666
34667
34668
34669# Prefer lpr to lp; lp needs options tacked on.
34670if test "$LPRDelegate" != no; then
34671    PrintDelegate="$LPRDelegate"
34672else
34673    PrintDelegate="$LPDelegate -c -s"
34674fi
34675
34676
34677# Installed ImageMagick utiltity paths
34678ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34679DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34680MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34681
34682# Set delegate booleans
34683have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34684have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34685have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34686have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34687have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
34688have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
34689have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34690have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
34691have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34692have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34693
34694#
34695# Test for font directories
34696#
34697type_include_files=''
34698
34699# Dejavu fonts.
34700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34701$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34702dejavu_font_dir=''
34703if test "${with_dejavu_font_dir}" != 'default'; then
34704  dejavu_font_dir="${with_dejavu_font_dir}/"
34705else
34706  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34707    if test -f "${font_dir}DejaVuSerif.ttf"; then
34708      dejavu_font_dir="${font_dir}"
34709      break 1
34710    fi
34711  done
34712fi
34713if test "${dejavu_font_dir}x" != 'x'; then
34714  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
34715  { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34716$as_echo "$as_me: $dejavu_font_dir" >&6;}
34717else
34718  { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34719$as_echo "$as_me: not found!" >&6;};
34720fi
34721
34722
34723# Windows
34724windows_font_dir=''
34725if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34726   windows_font_dir="${with_windows_font_dir}/"
34727fi
34728if test "${windows_font_dir}x" != 'x'; then
34729    if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34730      windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34731    fi
34732    if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34733      windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34734    fi
34735    if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34736      windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34737    fi
34738fi
34739if test "${windows_font_dir}x" != 'x'; then
34740  type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34741fi
34742
34743
34744# Ghostscript
34745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34746$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34747ghostscript_font_dir=''
34748if test "${with_gs_font_dir}" != 'default'; then
34749  ghostscript_font_dir="${with_gs_font_dir}/"
34750else
34751  if test "${native_win32_build}" = 'yes'; then
34752    # Native Windows Build
34753    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34754      if test -f "${font_dir}a010013l.pfb"; then
34755        ghostscript_font_dir="$font_dir"
34756        break 1
34757      fi
34758    done
34759    if test "${PSDelegate}" != 'gswin32c'; then
34760      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34761    fi
34762  else
34763    # Linux / Mac OS X / Unix Build
34764    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
34765      if test -f "${font_dir}a010013l.pfb"; then
34766        ghostscript_font_dir="${font_dir}"
34767        break 1
34768      fi
34769    done
34770    if test "${ghostscript_font_dir}x" = 'x'; then
34771      if test "$PSDelegate" != 'gs'; then
34772        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34773      fi
34774    fi
34775  fi
34776fi
34777if test "${ghostscript_font_dir}x" != 'x'; then
34778  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34779  { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34780$as_echo "$as_me: $ghostscript_font_dir" >&6;}
34781else
34782  { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34783$as_echo "$as_me: not found!" >&6;};
34784fi
34785
34786case "${build_os}" in
34787  mingw* )
34788    PSDelegate=`$WinPathScript "$PSDelegate" 1`
34789    ;;
34790esac
34791
34792
34793
34794#
34795# Handle case where user doesn't want frozen paths
34796#
34797if test "$with_frozenpaths" != 'yes'; then
34798  # Re-set delegate definitions to default (no paths)
34799  AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34800  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34801  BZIPDelegate="$BZIPDelegateDefault"
34802  BrowseDelegate="$BrowseDelegateDefault"
34803  CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34804  CatDelegate="$CatDelegateDefault"
34805  ConvertDelegate="$ConvertDelegateDefault"
34806  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34807  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34808  EchoDelegate="$EchoDelegateDefault"
34809  EditorDelegate="$EditorDelegateDefault"
34810  FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34811  GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34812  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34813  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34814  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34815  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34816  LPDelegate="$LPDelegateDefault"
34817  LaunchDelegate="$LaunchDelegateDefault"
34818  MANDelegate="$MANDelegateDefault"
34819  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34820  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34821  MogrifyDelegate="$MogrifyDelegateDefault"
34822  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34823  MVDelegate="$MVDelegateDefault"
34824  PCLDelegate="$PCLDelegateDefault"
34825  PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34826  POVDelegate="$POVDelegateDefault"
34827  PSDelegate="$PSDelegateDefault"
34828  RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34829  RMDelegate="$RMDelegateDefault"
34830  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34831  SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34832  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
34833  ShowImageDelegate="$ShowImageDelegateDefault"
34834  TXTDelegate="$TXTDelegateDefault"
34835  UniconvertorDelegate="$UniconvertorDelegateDefault"
34836  WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34837  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34838  XPSDelegate="$XPSDelegateDefault"
34839  ZipDelegate="$ZipDelegateDefault"
34840fi
34841
34842# Delegate substitutions
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883#
34884# RPM support.
34885#
34886RPM=''
34887for ac_prog in gnutar gtar tar
34888do
34889  # Extract the first word of "$ac_prog", so it can be a program name with args.
34890set dummy $ac_prog; ac_word=$2
34891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34892$as_echo_n "checking for $ac_word... " >&6; }
34893if ${ac_cv_prog_TAR+:} false; then :
34894  $as_echo_n "(cached) " >&6
34895else
34896  if test -n "$TAR"; then
34897  ac_cv_prog_TAR="$TAR" # Let the user override the test.
34898else
34899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34900for as_dir in $PATH
34901do
34902  IFS=$as_save_IFS
34903  test -z "$as_dir" && as_dir=.
34904    for ac_exec_ext in '' $ac_executable_extensions; do
34905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34906    ac_cv_prog_TAR="$ac_prog"
34907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34908    break 2
34909  fi
34910done
34911  done
34912IFS=$as_save_IFS
34913
34914fi
34915fi
34916TAR=$ac_cv_prog_TAR
34917if test -n "$TAR"; then
34918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
34919$as_echo "$TAR" >&6; }
34920else
34921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34922$as_echo "no" >&6; }
34923fi
34924
34925
34926  test -n "$TAR" && break
34927done
34928
34929for ac_prog in perl
34930do
34931  # Extract the first word of "$ac_prog", so it can be a program name with args.
34932set dummy $ac_prog; ac_word=$2
34933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34934$as_echo_n "checking for $ac_word... " >&6; }
34935if ${ac_cv_prog_PERL+:} false; then :
34936  $as_echo_n "(cached) " >&6
34937else
34938  if test -n "$PERL"; then
34939  ac_cv_prog_PERL="$PERL" # Let the user override the test.
34940else
34941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34942for as_dir in $PATH
34943do
34944  IFS=$as_save_IFS
34945  test -z "$as_dir" && as_dir=.
34946    for ac_exec_ext in '' $ac_executable_extensions; do
34947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34948    ac_cv_prog_PERL="$ac_prog"
34949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34950    break 2
34951  fi
34952done
34953  done
34954IFS=$as_save_IFS
34955
34956fi
34957fi
34958PERL=$ac_cv_prog_PERL
34959if test -n "$PERL"; then
34960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34961$as_echo "$PERL" >&6; }
34962else
34963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34964$as_echo "no" >&6; }
34965fi
34966
34967
34968  test -n "$PERL" && break
34969done
34970
34971for ac_prog in rpmbuild rpm
34972do
34973  # Extract the first word of "$ac_prog", so it can be a program name with args.
34974set dummy $ac_prog; ac_word=$2
34975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34976$as_echo_n "checking for $ac_word... " >&6; }
34977if ${ac_cv_prog_RPM+:} false; then :
34978  $as_echo_n "(cached) " >&6
34979else
34980  if test -n "$RPM"; then
34981  ac_cv_prog_RPM="$RPM" # Let the user override the test.
34982else
34983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34984for as_dir in $PATH
34985do
34986  IFS=$as_save_IFS
34987  test -z "$as_dir" && as_dir=.
34988    for ac_exec_ext in '' $ac_executable_extensions; do
34989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34990    ac_cv_prog_RPM="$ac_prog"
34991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34992    break 2
34993  fi
34994done
34995  done
34996IFS=$as_save_IFS
34997
34998fi
34999fi
35000RPM=$ac_cv_prog_RPM
35001if test -n "$RPM"; then
35002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
35003$as_echo "$RPM" >&6; }
35004else
35005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35006$as_echo "no" >&6; }
35007fi
35008
35009
35010  test -n "$RPM" && break
35011done
35012
35013
35014ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35015
35016
35017AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35018
35019
35020AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35021
35022
35023AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35024
35025
35026 if test "x$RPM" != "x" ; then
35027  RPM_DELEGATE_TRUE=
35028  RPM_DELEGATE_FALSE='#'
35029else
35030  RPM_DELEGATE_TRUE='#'
35031  RPM_DELEGATE_FALSE=
35032fi
35033
35034
35035#
35036# 7ZIP support (http://p7zip.sourceforge.net/)
35037#
35038P7ZIP=''
35039for ac_prog in 7za
35040do
35041  # Extract the first word of "$ac_prog", so it can be a program name with args.
35042set dummy $ac_prog; ac_word=$2
35043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35044$as_echo_n "checking for $ac_word... " >&6; }
35045if ${ac_cv_prog_P7ZIP+:} false; then :
35046  $as_echo_n "(cached) " >&6
35047else
35048  if test -n "$P7ZIP"; then
35049  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35050else
35051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35052for as_dir in $PATH
35053do
35054  IFS=$as_save_IFS
35055  test -z "$as_dir" && as_dir=.
35056    for ac_exec_ext in '' $ac_executable_extensions; do
35057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35058    ac_cv_prog_P7ZIP="$ac_prog"
35059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35060    break 2
35061  fi
35062done
35063  done
35064IFS=$as_save_IFS
35065
35066fi
35067fi
35068P7ZIP=$ac_cv_prog_P7ZIP
35069if test -n "$P7ZIP"; then
35070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35071$as_echo "$P7ZIP" >&6; }
35072else
35073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35074$as_echo "no" >&6; }
35075fi
35076
35077
35078  test -n "$P7ZIP" && break
35079done
35080
35081
35082 if test "x$P7ZIP" != "x" ; then
35083  P7ZIP_DELEGATE_TRUE=
35084  P7ZIP_DELEGATE_FALSE='#'
35085else
35086  P7ZIP_DELEGATE_TRUE='#'
35087  P7ZIP_DELEGATE_FALSE=
35088fi
35089
35090
35091#
35092# ZIP support (http://www.info-zip.org/Zip.html)
35093#
35094ZIP=''
35095for ac_prog in zip
35096do
35097  # Extract the first word of "$ac_prog", so it can be a program name with args.
35098set dummy $ac_prog; ac_word=$2
35099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35100$as_echo_n "checking for $ac_word... " >&6; }
35101if ${ac_cv_prog_ZIP+:} false; then :
35102  $as_echo_n "(cached) " >&6
35103else
35104  if test -n "$ZIP"; then
35105  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35106else
35107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35108for as_dir in $PATH
35109do
35110  IFS=$as_save_IFS
35111  test -z "$as_dir" && as_dir=.
35112    for ac_exec_ext in '' $ac_executable_extensions; do
35113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35114    ac_cv_prog_ZIP="$ac_prog"
35115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35116    break 2
35117  fi
35118done
35119  done
35120IFS=$as_save_IFS
35121
35122fi
35123fi
35124ZIP=$ac_cv_prog_ZIP
35125if test -n "$ZIP"; then
35126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35127$as_echo "$ZIP" >&6; }
35128else
35129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35130$as_echo "no" >&6; }
35131fi
35132
35133
35134  test -n "$ZIP" && break
35135done
35136
35137
35138 if test "x$ZIP" != "x" ; then
35139  ZIP_DELEGATE_TRUE=
35140  ZIP_DELEGATE_FALSE='#'
35141else
35142  ZIP_DELEGATE_TRUE='#'
35143  ZIP_DELEGATE_FALSE=
35144fi
35145
35146
35147#
35148# GhostPCL related configuration.
35149#
35150PCLColorDevice=ppmraw
35151PCLCMYKDevice=pamcmyk32
35152PCLMonoDevice=pbmraw
35153if test -z "$PCLVersion"; then
35154    PCLVersion='unknown'
35155fi
35156if test $have_pcl = 'yes'; then
35157    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35158$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35160$as_echo_n "checking for PCL... " >&6; }
35161    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35162$as_echo "$as_me: " >&6;}
35163    # PCLColorDevice
35164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35165$as_echo_n "checking for pcl color device... " >&6; }
35166    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35167        :
35168    else
35169        PCLColorDevice=ppmraw
35170    fi
35171    { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35172$as_echo "$as_me: $PCLColorDevice" >&6;}
35173
35174    # PCLCMYKDevice
35175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35176$as_echo_n "checking for pcl CMYK device... " >&6; }
35177    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35178        :
35179    else
35180        PCLCMYKDevice=$PCLColorDevice
35181    fi
35182    { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35183$as_echo "$as_me: $PCLCMYKDevice" >&6;}
35184
35185    # PCLMonoDevice
35186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35187$as_echo_n "checking for pcl mono device... " >&6; }
35188    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35189        :
35190    else
35191        PCLMonoDevice=$PCLColorDevice
35192    fi
35193    { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35194$as_echo "$as_me: $PCLMonoDevice" >&6;}
35195fi
35196
35197
35198
35199
35200
35201
35202#
35203# GhostXPS related configuration.
35204#
35205XPSColorDevice=ppmraw
35206XPSCMYKDevice=bmpsep8
35207XPSMonoDevice=pbmraw
35208if test -z "$XPSVersion"; then
35209    XPSVersion='unknown'
35210fi
35211if test $have_xps = 'yes'; then
35212    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35213$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35215$as_echo_n "checking for XPS... " >&6; }
35216    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35217$as_echo "$as_me: " >&6;}
35218    # XPSColorDevice
35219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35220$as_echo_n "checking for xps color device... " >&6; }
35221    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35222        :
35223    else
35224        XPSColorDevice=ppmraw
35225    fi
35226    { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35227$as_echo "$as_me: $XPSColorDevice" >&6;}
35228
35229    # XPSCMYKDevice
35230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35231$as_echo_n "checking for xps CMYK device... " >&6; }
35232    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35233        :
35234    else
35235        XPSCMYKDevice=$XPSColorDevice
35236    fi
35237    { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35238$as_echo "$as_me: $XPSCMYKDevice" >&6;}
35239
35240    # XPSMonoDevice
35241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35242$as_echo_n "checking for xps mono device... " >&6; }
35243    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35244        :
35245    else
35246        XPSMonoDevice=$XPSColorDevice
35247    fi
35248    { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35249$as_echo "$as_me: $XPSMonoDevice" >&6;}
35250fi
35251
35252
35253
35254
35255
35256
35257#
35258# Ghostscript related configuration.
35259#
35260GSAlphaDevice=pngalpha
35261GSColorDevice=pnmraw
35262GSCMYKDevice=pam
35263GSMonoDevice=pbmraw
35264GSPDFDevice=pdfwrite
35265GSPSDevice=pswrite
35266GSEPSDevice=epswrite
35267GSVersion='unknown'
35268if test $have_gs = 'yes'; then
35269    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35270$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35272$as_echo_n "checking for Ghostscript... " >&6; }
35273    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35274$as_echo "$as_me: " >&6;}
35275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35276$as_echo_n "checking for Ghostscript version... " >&6; }
35277    if GSVersion=`$PSDelegate --version`; then
35278        :
35279    else
35280        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35281    fi
35282    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35283$as_echo "$as_me: $GSVersion" >&6;}
35284
35285    # GSAlphaDevice
35286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35287$as_echo_n "checking for gs alpha device... " >&6; }
35288    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35289        :
35290    else
35291        GSAlphaDevice=pnmraw
35292    fi
35293    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35294$as_echo "$as_me: $GSAlphaDevice" >&6;}
35295
35296    # GSColorDevice
35297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35298$as_echo_n "checking for gs color device... " >&6; }
35299    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35300        :
35301    else
35302        GSColorDevice=pnmraw
35303    fi
35304    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35305$as_echo "$as_me: $GSColorDevice" >&6;}
35306
35307    # GSCMYKDevice
35308    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35309$as_echo_n "checking for gs CMYK device... " >&6; }
35310    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35311        :
35312    else
35313        GSCMYKDevice=bmpsep8
35314    fi
35315    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35316$as_echo "$as_me: $GSCMYKDevice" >&6;}
35317
35318    # GSMonoDevice
35319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35320$as_echo_n "checking for gs mono device... " >&6; }
35321    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35322        :
35323    else
35324        GSMonoDevice=$GSColorDevice
35325    fi
35326    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35327$as_echo "$as_me: $GSMonoDevice" >&6;}
35328
35329    # GSPDFDevice
35330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35331$as_echo_n "checking for gs PDF writing device... " >&6; }
35332    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35333        :
35334    else
35335        GSPDFDevice=nodevice
35336    fi
35337        { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35338$as_echo "$as_me: $GSPDFDevice" >&6;}
35339
35340    # GSPSDevice
35341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35342$as_echo_n "checking for gs PS writing device... " >&6; }
35343    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35344        :
35345    else
35346        GSPSDevice=nodevice
35347    fi
35348    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35349$as_echo "$as_me: $GSPSDevice" >&6;}
35350
35351    # GSEPSDevice
35352    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35353$as_echo_n "checking for gs EPS writing device... " >&6; }
35354    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35355        :
35356    else
35357        GSEPSDevice=nodevice
35358    fi
35359    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35360$as_echo "$as_me: $GSEPSDevice" >&6;}
35361fi
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372#
35373# PerlMagick-related configuration
35374#
35375
35376# Look for PERL if PerlMagick requested
35377# If name/path of desired PERL interpreter is specified, look for that one first
35378have_perl='no'
35379if test "$with_perl" != 'no'; then
35380    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35381$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35383$as_echo_n "checking for Perl... " >&6; }
35384    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35385$as_echo "$as_me: " >&6;}
35386    if test "$with_perl" != 'yes'; then
35387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35388$as_echo_n "checking for perl... " >&6; }
35389if ${ac_cv_path_PERL+:} false; then :
35390  $as_echo_n "(cached) " >&6
35391else
35392  ac_cv_path_PERL="$with_perl"
35393fi
35394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
35395$as_echo "$ac_cv_path_PERL" >&6; };
35396        PERL=$ac_cv_path_PERL
35397                have_perl="$ac_cv_path_PERL"
35398    else
35399        for ac_prog in perl perl5
35400do
35401  # Extract the first word of "$ac_prog", so it can be a program name with args.
35402set dummy $ac_prog; ac_word=$2
35403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35404$as_echo_n "checking for $ac_word... " >&6; }
35405if ${ac_cv_path_PERL+:} false; then :
35406  $as_echo_n "(cached) " >&6
35407else
35408  case $PERL in
35409  [\\/]* | ?:[\\/]*)
35410  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35411  ;;
35412  *)
35413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35414for as_dir in $PATH
35415do
35416  IFS=$as_save_IFS
35417  test -z "$as_dir" && as_dir=.
35418    for ac_exec_ext in '' $ac_executable_extensions; do
35419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35420    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
35421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35422    break 2
35423  fi
35424done
35425  done
35426IFS=$as_save_IFS
35427
35428  ;;
35429esac
35430fi
35431PERL=$ac_cv_path_PERL
35432if test -n "$PERL"; then
35433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35434$as_echo "$PERL" >&6; }
35435else
35436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35437$as_echo "no" >&6; }
35438fi
35439
35440
35441  test -n "$PERL" && break
35442done
35443        if test "$ac_cv_path_PERL"; then
35444            have_perl="$ac_cv_path_PERL"
35445        fi
35446    fi
35447fi
35448
35449if test "$with_perl" != 'yes' ; then
35450    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35451fi
35452
35453PERL_SUPPORTS_DESTDIR='no'
35454
35455with_perl_static='no'
35456with_perl_dynamic='no'
35457if test "$have_perl" != 'no'; then
35458    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35459        with_perl_static='yes'
35460    fi
35461    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35462        with_perl_dynamic='yes'
35463    fi
35464    # Is PERL's MakeMaker new enough to support DESTDIR?
35465
35466
35467
35468
35469    if test -n "$PERL"; then :
35470
35471        ax_perl_version="5.8.1"
35472
35473        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35474$as_echo_n "checking for perl version... " >&6; }
35475
35476        perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35477
35478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35479$as_echo "$perl_version" >&6; }
35480
35481	PERL_VERSION=$perl_version
35482
35483
35484
35485
35486
35487  # Used to indicate true or false condition
35488  ax_compare_version=false
35489
35490  # Convert the two version strings to be compared into a format that
35491  # allows a simple string comparison.  The end result is that a version
35492  # string of the form 1.12.5-r617 will be converted to the form
35493  # 0001001200050617.  In other words, each number is zero padded to four
35494  # digits, and non digits are removed.
35495
35496  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35497                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35498                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35499                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35500                     -e 's/[^0-9]//g'`
35501
35502
35503  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35504                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35505                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35506                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35507                     -e 's/[^0-9]//g'`
35508
35509
35510    ax_compare_version=`echo "x$ax_compare_version_A
35511x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35512
35513
35514
35515    if test "$ax_compare_version" = "true" ; then
35516
35517	    :
35518            PERL_SUPPORTS_DESTDIR='yes'
35519
35520    else
35521	    :
35522            PERL_SUPPORTS_DESTDIR='no'
35523
35524  fi
35525
35526
35527else
35528
35529        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35530$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35531        PERL_SUPPORTS_DESTDIR='no'
35532
35533fi
35534
35535fi
35536 if test "$have_perl" != 'no'; then
35537  WITH_PERL_TRUE=
35538  WITH_PERL_FALSE='#'
35539else
35540  WITH_PERL_TRUE='#'
35541  WITH_PERL_FALSE=
35542fi
35543
35544 if test $with_perl_static = 'yes'; then
35545  WITH_PERL_STATIC_TRUE=
35546  WITH_PERL_STATIC_FALSE='#'
35547else
35548  WITH_PERL_STATIC_TRUE='#'
35549  WITH_PERL_STATIC_FALSE=
35550fi
35551
35552 if test $with_perl_dynamic = 'yes'; then
35553  WITH_PERL_DYNAMIC_TRUE=
35554  WITH_PERL_DYNAMIC_FALSE='#'
35555else
35556  WITH_PERL_DYNAMIC_TRUE='#'
35557  WITH_PERL_DYNAMIC_FALSE=
35558fi
35559
35560
35561
35562# Determine path to pick up MagickCore library from for use with building PerlMagick
35563MAGICKCORE_PATH="${LIB_DIR}"
35564if test $with_perl_static = 'yes'; then
35565    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35566    libtool_objdir=$objdir
35567
35568    # Linker search path to library, followed by -lMagickCore
35569    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
35570fi
35571
35572
35573# Create a simple string containing format names for all delegate libraries
35574DELEGATES=''
35575if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35576if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35577if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35578if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35579if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35580if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35581if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35582if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35583if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35584if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35585if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35586if test "$have_jpeg"       = 'yes'; then
35587  DELEGATES="$DELEGATES jpeg";
35588  if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35589fi
35590if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
35591if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
35592if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35593if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
35594if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
35595if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35596if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35597if test "$have_pango"      = 'yes'; then DELEGATES="$DELEGATES pango"; fi
35598if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
35599if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35600if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35601if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35602if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35603if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35604if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35605
35606
35607
35608#
35609# Handle special compiler flags
35610#
35611
35612# Add '-p' if prof source profiling support enabled
35613if test "$enable_prof" = 'yes'; then
35614    CFLAGS="-p $CFLAGS"
35615    CXXFLAGS="-p $CXXFLAGS"
35616    LDFLAGS="-p $LDFLAGS"
35617fi
35618
35619# Add '-pg' if gprof source profiling support enabled
35620if test "$enable_gprof" = 'yes'; then
35621    CFLAGS="-pg $CFLAGS"
35622    CXXFLAGS="-pg $CXXFLAGS"
35623    LDFLAGS="-pg $LDFLAGS"
35624fi
35625
35626# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35627# This is a gcc-specific feature
35628if test "$enable_gcov" = 'yes'; then
35629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
35630$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
35631if ${ac_cv_lib_gcov__gcov_init+:} false; then :
35632  $as_echo_n "(cached) " >&6
35633else
35634  ac_check_lib_save_LIBS=$LIBS
35635LIBS="-lgcov  $LIBS"
35636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35637/* end confdefs.h.  */
35638
35639/* Override any GCC internal prototype to avoid an error.
35640   Use char because int might match the return type of a GCC
35641   builtin and then its argument prototype would still apply.  */
35642#ifdef __cplusplus
35643extern "C"
35644#endif
35645char _gcov_init ();
35646int
35647main ()
35648{
35649return _gcov_init ();
35650  ;
35651  return 0;
35652}
35653_ACEOF
35654if ac_fn_c_try_link "$LINENO"; then :
35655  ac_cv_lib_gcov__gcov_init=yes
35656else
35657  ac_cv_lib_gcov__gcov_init=no
35658fi
35659rm -f core conftest.err conftest.$ac_objext \
35660    conftest$ac_exeext conftest.$ac_ext
35661LIBS=$ac_check_lib_save_LIBS
35662fi
35663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
35664$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
35665if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
35666  cat >>confdefs.h <<_ACEOF
35667#define HAVE_LIBGCOV 1
35668_ACEOF
35669
35670  LIBS="-lgcov $LIBS"
35671
35672fi
35673
35674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
35675$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
35676if ${ac_cv_lib_gcov___gcov_init+:} false; then :
35677  $as_echo_n "(cached) " >&6
35678else
35679  ac_check_lib_save_LIBS=$LIBS
35680LIBS="-lgcov  $LIBS"
35681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35682/* end confdefs.h.  */
35683
35684/* Override any GCC internal prototype to avoid an error.
35685   Use char because int might match the return type of a GCC
35686   builtin and then its argument prototype would still apply.  */
35687#ifdef __cplusplus
35688extern "C"
35689#endif
35690char __gcov_init ();
35691int
35692main ()
35693{
35694return __gcov_init ();
35695  ;
35696  return 0;
35697}
35698_ACEOF
35699if ac_fn_c_try_link "$LINENO"; then :
35700  ac_cv_lib_gcov___gcov_init=yes
35701else
35702  ac_cv_lib_gcov___gcov_init=no
35703fi
35704rm -f core conftest.err conftest.$ac_objext \
35705    conftest$ac_exeext conftest.$ac_ext
35706LIBS=$ac_check_lib_save_LIBS
35707fi
35708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
35709$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
35710if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
35711  cat >>confdefs.h <<_ACEOF
35712#define HAVE_LIBGCOV 1
35713_ACEOF
35714
35715  LIBS="-lgcov $LIBS"
35716
35717fi
35718
35719    case "$target_os" in
35720        darwin*)
35721            OSX_GCOV_LDFLAG="-Wl,-single_module"
35722        ;;
35723        *)
35724            OSX_GCOV_LDFLAG=""
35725        ;;
35726    esac
35727
35728    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
35729    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
35730    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35731fi
35732
35733#
35734# Build library dependency list for libMagickCore
35735#
35736
35737MAGICK_LIBLTDL='' # Libltdl for build
35738MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
35739MAGICK_LTDLDEPS=''      # extra libltdl dependencies
35740if test "$with_ltdl" != 'no'
35741then
35742  if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35743    MAGICK_API_LIBLTDL='-lltdl'
35744  fi
35745  MAGICK_LIBLTDL=${LIBLTDL}
35746  MAGICK_LTDLDEPS=${LTDLDEPS}
35747fi
35748
35749
35750
35751if test "$with_modules" != 'no'; then
35752    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 $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
35753else
35754    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 $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
35755fi
35756
35757
35758#
35759# Remove extraneous spaces from output variables (asthetic)
35760#
35761X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
35762X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
35763X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
35764X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
35765
35766CC=`echo $CC | sed -e 's/  */ /g'`
35767CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
35768CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
35769CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
35770DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35771DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
35772LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
35773TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35774MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
35775#LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35776
35777# Pass only user-provided LIBS as "global" libraries
35778LIBS=$USER_LIBS
35779
35780#AC_SUBST(CPPFLAGS)
35781
35782#AC_SUBST(LDFLAGS)
35783#AC_SUBST(X_PRE_LIBS)
35784#AC_SUBST(X_LIBS)
35785#AC_SUBST(X_EXTRA_LIBS)
35786
35787MAGICK_CFLAGS=$CFLAGS
35788MAGICK_CXXFLAGS="$CXXFLAGS"
35789MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
35790MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
35791MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35792MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802# Set configured scripts to executable.
35803ac_config_commands="$ac_config_commands default"
35804
35805ac_config_commands="$ac_config_commands magick.sh.in"
35806
35807ac_config_commands="$ac_config_commands MagickCore-config.in"
35808
35809ac_config_commands="$ac_config_commands MagickWand-config.in"
35810
35811ac_config_commands="$ac_config_commands Magick++-config.in"
35812
35813ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35814
35815
35816{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35817$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35818{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35819$as_echo "$as_me: Update ImageMagick configuration" >&6;}
35820cat >confcache <<\_ACEOF
35821# This file is a shell script that caches the results of configure
35822# tests run on this system so they can be shared between configure
35823# scripts and configure runs, see configure's option --config-cache.
35824# It is not useful on other systems.  If it contains results you don't
35825# want to keep, you may remove or edit it.
35826#
35827# config.status only pays attention to the cache file if you give it
35828# the --recheck option to rerun configure.
35829#
35830# `ac_cv_env_foo' variables (set or unset) will be overridden when
35831# loading this file, other *unset* `ac_cv_foo' will be assigned the
35832# following values.
35833
35834_ACEOF
35835
35836# The following way of writing the cache mishandles newlines in values,
35837# but we know of no workaround that is simple, portable, and efficient.
35838# So, we kill variables containing newlines.
35839# Ultrix sh set writes to stderr and can't be redirected directly,
35840# and sets the high bit in the cache file unless we assign to the vars.
35841(
35842  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35843    eval ac_val=\$$ac_var
35844    case $ac_val in #(
35845    *${as_nl}*)
35846      case $ac_var in #(
35847      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35848$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35849      esac
35850      case $ac_var in #(
35851      _ | IFS | as_nl) ;; #(
35852      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35853      *) { eval $ac_var=; unset $ac_var;} ;;
35854      esac ;;
35855    esac
35856  done
35857
35858  (set) 2>&1 |
35859    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35860    *${as_nl}ac_space=\ *)
35861      # `set' does not quote correctly, so add quotes: double-quote
35862      # substitution turns \\\\ into \\, and sed turns \\ into \.
35863      sed -n \
35864	"s/'/'\\\\''/g;
35865	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35866      ;; #(
35867    *)
35868      # `set' quotes correctly as required by POSIX, so do not add quotes.
35869      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35870      ;;
35871    esac |
35872    sort
35873) |
35874  sed '
35875     /^ac_cv_env_/b end
35876     t clear
35877     :clear
35878     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35879     t end
35880     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35881     :end' >>confcache
35882if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35883  if test -w "$cache_file"; then
35884    if test "x$cache_file" != "x/dev/null"; then
35885      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35886$as_echo "$as_me: updating cache $cache_file" >&6;}
35887      if test ! -f "$cache_file" || test -h "$cache_file"; then
35888	cat confcache >"$cache_file"
35889      else
35890        case $cache_file in #(
35891        */* | ?:*)
35892	  mv -f confcache "$cache_file"$$ &&
35893	  mv -f "$cache_file"$$ "$cache_file" ;; #(
35894        *)
35895	  mv -f confcache "$cache_file" ;;
35896	esac
35897      fi
35898    fi
35899  else
35900    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35901$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35902  fi
35903fi
35904rm -f confcache
35905
35906test "x$prefix" = xNONE && prefix=$ac_default_prefix
35907# Let make expand exec_prefix.
35908test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35909
35910DEFS=-DHAVE_CONFIG_H
35911
35912ac_libobjs=
35913ac_ltlibobjs=
35914U=
35915for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35916  # 1. Remove the extension, and $U if already installed.
35917  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35918  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35919  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35920  #    will be set to the directory where LIBOBJS objects are built.
35921  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35922  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35923done
35924LIBOBJS=$ac_libobjs
35925
35926LTLIBOBJS=$ac_ltlibobjs
35927
35928
35929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35930$as_echo_n "checking that generated files are newer than configure... " >&6; }
35931   if test -n "$am_sleep_pid"; then
35932     # Hide warnings about reused PIDs.
35933     wait $am_sleep_pid 2>/dev/null
35934   fi
35935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35936$as_echo "done" >&6; }
35937 if test -n "$EXEEXT"; then
35938  am__EXEEXT_TRUE=
35939  am__EXEEXT_FALSE='#'
35940else
35941  am__EXEEXT_TRUE='#'
35942  am__EXEEXT_FALSE=
35943fi
35944
35945if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35946  as_fn_error $? "conditional \"AMDEP\" was never defined.
35947Usually this means the macro was only invoked conditionally." "$LINENO" 5
35948fi
35949if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35950  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35951Usually this means the macro was only invoked conditionally." "$LINENO" 5
35952fi
35953if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35954  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35955Usually this means the macro was only invoked conditionally." "$LINENO" 5
35956fi
35957if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35958  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35959Usually this means the macro was only invoked conditionally." "$LINENO" 5
35960fi
35961if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
35962  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
35963Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964fi
35965if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
35966  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
35967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
35970  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
35971Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972fi
35973if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
35974  as_fn_error $? "conditional \"USING_CL\" was never defined.
35975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
35977if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35978  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
35979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
35981if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35982  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
35983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
35985LT_CONFIG_H=config/config.h
35986
35987    _ltdl_libobjs=
35988    _ltdl_ltlibobjs=
35989    if test -n "$_LT_LIBOBJS"; then
35990      # Remove the extension.
35991      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35992      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35993        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35994        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35995      done
35996    fi
35997    ltdl_LIBOBJS=$_ltdl_libobjs
35998
35999    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36000
36001
36002if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36003  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
36006if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36007  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36008Usually this means the macro was only invoked conditionally." "$LINENO" 5
36009fi
36010if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36011  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36012Usually this means the macro was only invoked conditionally." "$LINENO" 5
36013fi
36014if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36015  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36016Usually this means the macro was only invoked conditionally." "$LINENO" 5
36017fi
36018if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36019  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36020Usually this means the macro was only invoked conditionally." "$LINENO" 5
36021fi
36022
36023if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36024  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36028  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36029Usually this means the macro was only invoked conditionally." "$LINENO" 5
36030fi
36031if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
36032  as_fn_error $? "conditional \"HasUMEM\" was never defined.
36033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
36035if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36036  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
36039if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36040  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36041Usually this means the macro was only invoked conditionally." "$LINENO" 5
36042fi
36043if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36044  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36045Usually this means the macro was only invoked conditionally." "$LINENO" 5
36046fi
36047if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36048  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36049Usually this means the macro was only invoked conditionally." "$LINENO" 5
36050fi
36051if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36052  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
36055if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36056  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
36059if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36060  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36064  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36068  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
36071if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
36072  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
36073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
36075if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36076  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
36079if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36080  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
36083if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36084  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
36087if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36088  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
36091if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
36092  as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
36093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
36095if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36096  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36100  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
36103if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36104  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
36107if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36108  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36112  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
36115if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36116  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
36119if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36120  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36121Usually this means the macro was only invoked conditionally." "$LINENO" 5
36122fi
36123if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36124  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36125Usually this means the macro was only invoked conditionally." "$LINENO" 5
36126fi
36127if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36128  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36129Usually this means the macro was only invoked conditionally." "$LINENO" 5
36130fi
36131if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36132  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36133Usually this means the macro was only invoked conditionally." "$LINENO" 5
36134fi
36135if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36136  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36137Usually this means the macro was only invoked conditionally." "$LINENO" 5
36138fi
36139if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36140  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36141Usually this means the macro was only invoked conditionally." "$LINENO" 5
36142fi
36143if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36144  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36145Usually this means the macro was only invoked conditionally." "$LINENO" 5
36146fi
36147if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36148  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36149Usually this means the macro was only invoked conditionally." "$LINENO" 5
36150fi
36151if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36152  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36153Usually this means the macro was only invoked conditionally." "$LINENO" 5
36154fi
36155if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36156  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36157Usually this means the macro was only invoked conditionally." "$LINENO" 5
36158fi
36159if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36160  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36161Usually this means the macro was only invoked conditionally." "$LINENO" 5
36162fi
36163if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36164  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36165Usually this means the macro was only invoked conditionally." "$LINENO" 5
36166fi
36167if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36168  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36169Usually this means the macro was only invoked conditionally." "$LINENO" 5
36170fi
36171
36172: "${CONFIG_STATUS=./config.status}"
36173ac_write_fail=0
36174ac_clean_files_save=$ac_clean_files
36175ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36176{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36177$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36178as_write_fail=0
36179cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36180#! $SHELL
36181# Generated by $as_me.
36182# Run this file to recreate the current configuration.
36183# Compiler output produced by configure, useful for debugging
36184# configure, is in config.log if it exists.
36185
36186debug=false
36187ac_cs_recheck=false
36188ac_cs_silent=false
36189
36190SHELL=\${CONFIG_SHELL-$SHELL}
36191export SHELL
36192_ASEOF
36193cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36194## -------------------- ##
36195## M4sh Initialization. ##
36196## -------------------- ##
36197
36198# Be more Bourne compatible
36199DUALCASE=1; export DUALCASE # for MKS sh
36200if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36201  emulate sh
36202  NULLCMD=:
36203  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36204  # is contrary to our usage.  Disable this feature.
36205  alias -g '${1+"$@"}'='"$@"'
36206  setopt NO_GLOB_SUBST
36207else
36208  case `(set -o) 2>/dev/null` in #(
36209  *posix*) :
36210    set -o posix ;; #(
36211  *) :
36212     ;;
36213esac
36214fi
36215
36216
36217as_nl='
36218'
36219export as_nl
36220# Printing a long string crashes Solaris 7 /usr/bin/printf.
36221as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36223as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36224# Prefer a ksh shell builtin over an external printf program on Solaris,
36225# but without wasting forks for bash or zsh.
36226if test -z "$BASH_VERSION$ZSH_VERSION" \
36227    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36228  as_echo='print -r --'
36229  as_echo_n='print -rn --'
36230elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36231  as_echo='printf %s\n'
36232  as_echo_n='printf %s'
36233else
36234  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36235    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36236    as_echo_n='/usr/ucb/echo -n'
36237  else
36238    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36239    as_echo_n_body='eval
36240      arg=$1;
36241      case $arg in #(
36242      *"$as_nl"*)
36243	expr "X$arg" : "X\\(.*\\)$as_nl";
36244	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36245      esac;
36246      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36247    '
36248    export as_echo_n_body
36249    as_echo_n='sh -c $as_echo_n_body as_echo'
36250  fi
36251  export as_echo_body
36252  as_echo='sh -c $as_echo_body as_echo'
36253fi
36254
36255# The user is always right.
36256if test "${PATH_SEPARATOR+set}" != set; then
36257  PATH_SEPARATOR=:
36258  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36259    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36260      PATH_SEPARATOR=';'
36261  }
36262fi
36263
36264
36265# IFS
36266# We need space, tab and new line, in precisely that order.  Quoting is
36267# there to prevent editors from complaining about space-tab.
36268# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36269# splitting by setting IFS to empty value.)
36270IFS=" ""	$as_nl"
36271
36272# Find who we are.  Look in the path if we contain no directory separator.
36273as_myself=
36274case $0 in #((
36275  *[\\/]* ) as_myself=$0 ;;
36276  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36277for as_dir in $PATH
36278do
36279  IFS=$as_save_IFS
36280  test -z "$as_dir" && as_dir=.
36281    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36282  done
36283IFS=$as_save_IFS
36284
36285     ;;
36286esac
36287# We did not find ourselves, most probably we were run as `sh COMMAND'
36288# in which case we are not to be found in the path.
36289if test "x$as_myself" = x; then
36290  as_myself=$0
36291fi
36292if test ! -f "$as_myself"; then
36293  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36294  exit 1
36295fi
36296
36297# Unset variables that we do not need and which cause bugs (e.g. in
36298# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36299# suppresses any "Segmentation fault" message there.  '((' could
36300# trigger a bug in pdksh 5.2.14.
36301for as_var in BASH_ENV ENV MAIL MAILPATH
36302do eval test x\${$as_var+set} = xset \
36303  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36304done
36305PS1='$ '
36306PS2='> '
36307PS4='+ '
36308
36309# NLS nuisances.
36310LC_ALL=C
36311export LC_ALL
36312LANGUAGE=C
36313export LANGUAGE
36314
36315# CDPATH.
36316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36317
36318
36319# as_fn_error STATUS ERROR [LINENO LOG_FD]
36320# ----------------------------------------
36321# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36322# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36323# script with STATUS, using 1 if that was 0.
36324as_fn_error ()
36325{
36326  as_status=$1; test $as_status -eq 0 && as_status=1
36327  if test "$4"; then
36328    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36329    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36330  fi
36331  $as_echo "$as_me: error: $2" >&2
36332  as_fn_exit $as_status
36333} # as_fn_error
36334
36335
36336# as_fn_set_status STATUS
36337# -----------------------
36338# Set $? to STATUS, without forking.
36339as_fn_set_status ()
36340{
36341  return $1
36342} # as_fn_set_status
36343
36344# as_fn_exit STATUS
36345# -----------------
36346# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36347as_fn_exit ()
36348{
36349  set +e
36350  as_fn_set_status $1
36351  exit $1
36352} # as_fn_exit
36353
36354# as_fn_unset VAR
36355# ---------------
36356# Portably unset VAR.
36357as_fn_unset ()
36358{
36359  { eval $1=; unset $1;}
36360}
36361as_unset=as_fn_unset
36362# as_fn_append VAR VALUE
36363# ----------------------
36364# Append the text in VALUE to the end of the definition contained in VAR. Take
36365# advantage of any shell optimizations that allow amortized linear growth over
36366# repeated appends, instead of the typical quadratic growth present in naive
36367# implementations.
36368if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36369  eval 'as_fn_append ()
36370  {
36371    eval $1+=\$2
36372  }'
36373else
36374  as_fn_append ()
36375  {
36376    eval $1=\$$1\$2
36377  }
36378fi # as_fn_append
36379
36380# as_fn_arith ARG...
36381# ------------------
36382# Perform arithmetic evaluation on the ARGs, and store the result in the
36383# global $as_val. Take advantage of shells that can avoid forks. The arguments
36384# must be portable across $(()) and expr.
36385if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36386  eval 'as_fn_arith ()
36387  {
36388    as_val=$(( $* ))
36389  }'
36390else
36391  as_fn_arith ()
36392  {
36393    as_val=`expr "$@" || test $? -eq 1`
36394  }
36395fi # as_fn_arith
36396
36397
36398if expr a : '\(a\)' >/dev/null 2>&1 &&
36399   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36400  as_expr=expr
36401else
36402  as_expr=false
36403fi
36404
36405if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36406  as_basename=basename
36407else
36408  as_basename=false
36409fi
36410
36411if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36412  as_dirname=dirname
36413else
36414  as_dirname=false
36415fi
36416
36417as_me=`$as_basename -- "$0" ||
36418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36419	 X"$0" : 'X\(//\)$' \| \
36420	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36421$as_echo X/"$0" |
36422    sed '/^.*\/\([^/][^/]*\)\/*$/{
36423	    s//\1/
36424	    q
36425	  }
36426	  /^X\/\(\/\/\)$/{
36427	    s//\1/
36428	    q
36429	  }
36430	  /^X\/\(\/\).*/{
36431	    s//\1/
36432	    q
36433	  }
36434	  s/.*/./; q'`
36435
36436# Avoid depending upon Character Ranges.
36437as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36439as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36440as_cr_digits='0123456789'
36441as_cr_alnum=$as_cr_Letters$as_cr_digits
36442
36443ECHO_C= ECHO_N= ECHO_T=
36444case `echo -n x` in #(((((
36445-n*)
36446  case `echo 'xy\c'` in
36447  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36448  xy)  ECHO_C='\c';;
36449  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36450       ECHO_T='	';;
36451  esac;;
36452*)
36453  ECHO_N='-n';;
36454esac
36455
36456rm -f conf$$ conf$$.exe conf$$.file
36457if test -d conf$$.dir; then
36458  rm -f conf$$.dir/conf$$.file
36459else
36460  rm -f conf$$.dir
36461  mkdir conf$$.dir 2>/dev/null
36462fi
36463if (echo >conf$$.file) 2>/dev/null; then
36464  if ln -s conf$$.file conf$$ 2>/dev/null; then
36465    as_ln_s='ln -s'
36466    # ... but there are two gotchas:
36467    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36468    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36469    # In both cases, we have to default to `cp -pR'.
36470    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36471      as_ln_s='cp -pR'
36472  elif ln conf$$.file conf$$ 2>/dev/null; then
36473    as_ln_s=ln
36474  else
36475    as_ln_s='cp -pR'
36476  fi
36477else
36478  as_ln_s='cp -pR'
36479fi
36480rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36481rmdir conf$$.dir 2>/dev/null
36482
36483
36484# as_fn_mkdir_p
36485# -------------
36486# Create "$as_dir" as a directory, including parents if necessary.
36487as_fn_mkdir_p ()
36488{
36489
36490  case $as_dir in #(
36491  -*) as_dir=./$as_dir;;
36492  esac
36493  test -d "$as_dir" || eval $as_mkdir_p || {
36494    as_dirs=
36495    while :; do
36496      case $as_dir in #(
36497      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36498      *) as_qdir=$as_dir;;
36499      esac
36500      as_dirs="'$as_qdir' $as_dirs"
36501      as_dir=`$as_dirname -- "$as_dir" ||
36502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36503	 X"$as_dir" : 'X\(//\)[^/]' \| \
36504	 X"$as_dir" : 'X\(//\)$' \| \
36505	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36506$as_echo X"$as_dir" |
36507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36508	    s//\1/
36509	    q
36510	  }
36511	  /^X\(\/\/\)[^/].*/{
36512	    s//\1/
36513	    q
36514	  }
36515	  /^X\(\/\/\)$/{
36516	    s//\1/
36517	    q
36518	  }
36519	  /^X\(\/\).*/{
36520	    s//\1/
36521	    q
36522	  }
36523	  s/.*/./; q'`
36524      test -d "$as_dir" && break
36525    done
36526    test -z "$as_dirs" || eval "mkdir $as_dirs"
36527  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36528
36529
36530} # as_fn_mkdir_p
36531if mkdir -p . 2>/dev/null; then
36532  as_mkdir_p='mkdir -p "$as_dir"'
36533else
36534  test -d ./-p && rmdir ./-p
36535  as_mkdir_p=false
36536fi
36537
36538
36539# as_fn_executable_p FILE
36540# -----------------------
36541# Test if FILE is an executable regular file.
36542as_fn_executable_p ()
36543{
36544  test -f "$1" && test -x "$1"
36545} # as_fn_executable_p
36546as_test_x='test -x'
36547as_executable_p=as_fn_executable_p
36548
36549# Sed expression to map a string onto a valid CPP name.
36550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36551
36552# Sed expression to map a string onto a valid variable name.
36553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36554
36555
36556exec 6>&1
36557## ----------------------------------- ##
36558## Main body of $CONFIG_STATUS script. ##
36559## ----------------------------------- ##
36560_ASEOF
36561test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36562
36563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36564# Save the log message, to keep $0 and so on meaningful, and to
36565# report actual input values of CONFIG_FILES etc. instead of their
36566# values after options handling.
36567ac_log="
36568This file was extended by ImageMagick $as_me 7.0.0-0, which was
36569generated by GNU Autoconf 2.69.  Invocation command line was
36570
36571  CONFIG_FILES    = $CONFIG_FILES
36572  CONFIG_HEADERS  = $CONFIG_HEADERS
36573  CONFIG_LINKS    = $CONFIG_LINKS
36574  CONFIG_COMMANDS = $CONFIG_COMMANDS
36575  $ $0 $@
36576
36577on `(hostname || uname -n) 2>/dev/null | sed 1q`
36578"
36579
36580_ACEOF
36581
36582case $ac_config_files in *"
36583"*) set x $ac_config_files; shift; ac_config_files=$*;;
36584esac
36585
36586case $ac_config_headers in *"
36587"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36588esac
36589
36590
36591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36592# Files that config.status was made for.
36593config_files="$ac_config_files"
36594config_headers="$ac_config_headers"
36595config_commands="$ac_config_commands"
36596
36597_ACEOF
36598
36599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36600ac_cs_usage="\
36601\`$as_me' instantiates files and other configuration actions
36602from templates according to the current configuration.  Unless the files
36603and actions are specified as TAGs, all are instantiated by default.
36604
36605Usage: $0 [OPTION]... [TAG]...
36606
36607  -h, --help       print this help, then exit
36608  -V, --version    print version number and configuration settings, then exit
36609      --config     print configuration, then exit
36610  -q, --quiet, --silent
36611                   do not print progress messages
36612  -d, --debug      don't remove temporary files
36613      --recheck    update $as_me by reconfiguring in the same conditions
36614      --file=FILE[:TEMPLATE]
36615                   instantiate the configuration file FILE
36616      --header=FILE[:TEMPLATE]
36617                   instantiate the configuration header FILE
36618
36619Configuration files:
36620$config_files
36621
36622Configuration headers:
36623$config_headers
36624
36625Configuration commands:
36626$config_commands
36627
36628Report bugs to <http://www.imagemagick.org>."
36629
36630_ACEOF
36631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36632ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36633ac_cs_version="\\
36634ImageMagick config.status 7.0.0-0
36635configured by $0, generated by GNU Autoconf 2.69,
36636  with options \\"\$ac_cs_config\\"
36637
36638Copyright (C) 2012 Free Software Foundation, Inc.
36639This config.status script is free software; the Free Software Foundation
36640gives unlimited permission to copy, distribute and modify it."
36641
36642ac_pwd='$ac_pwd'
36643srcdir='$srcdir'
36644INSTALL='$INSTALL'
36645MKDIR_P='$MKDIR_P'
36646AWK='$AWK'
36647test -n "\$AWK" || AWK=awk
36648_ACEOF
36649
36650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36651# The default lists apply if the user does not specify any file.
36652ac_need_defaults=:
36653while test $# != 0
36654do
36655  case $1 in
36656  --*=?*)
36657    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36658    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36659    ac_shift=:
36660    ;;
36661  --*=)
36662    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36663    ac_optarg=
36664    ac_shift=:
36665    ;;
36666  *)
36667    ac_option=$1
36668    ac_optarg=$2
36669    ac_shift=shift
36670    ;;
36671  esac
36672
36673  case $ac_option in
36674  # Handling of the options.
36675  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36676    ac_cs_recheck=: ;;
36677  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36678    $as_echo "$ac_cs_version"; exit ;;
36679  --config | --confi | --conf | --con | --co | --c )
36680    $as_echo "$ac_cs_config"; exit ;;
36681  --debug | --debu | --deb | --de | --d | -d )
36682    debug=: ;;
36683  --file | --fil | --fi | --f )
36684    $ac_shift
36685    case $ac_optarg in
36686    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36687    '') as_fn_error $? "missing file argument" ;;
36688    esac
36689    as_fn_append CONFIG_FILES " '$ac_optarg'"
36690    ac_need_defaults=false;;
36691  --header | --heade | --head | --hea )
36692    $ac_shift
36693    case $ac_optarg in
36694    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36695    esac
36696    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36697    ac_need_defaults=false;;
36698  --he | --h)
36699    # Conflict between --help and --header
36700    as_fn_error $? "ambiguous option: \`$1'
36701Try \`$0 --help' for more information.";;
36702  --help | --hel | -h )
36703    $as_echo "$ac_cs_usage"; exit ;;
36704  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36705  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36706    ac_cs_silent=: ;;
36707
36708  # This is an error.
36709  -*) as_fn_error $? "unrecognized option: \`$1'
36710Try \`$0 --help' for more information." ;;
36711
36712  *) as_fn_append ac_config_targets " $1"
36713     ac_need_defaults=false ;;
36714
36715  esac
36716  shift
36717done
36718
36719ac_configure_extra_args=
36720
36721if $ac_cs_silent; then
36722  exec 6>/dev/null
36723  ac_configure_extra_args="$ac_configure_extra_args --silent"
36724fi
36725
36726_ACEOF
36727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36728if \$ac_cs_recheck; then
36729  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36730  shift
36731  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36732  CONFIG_SHELL='$SHELL'
36733  export CONFIG_SHELL
36734  exec "\$@"
36735fi
36736
36737_ACEOF
36738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36739exec 5>>config.log
36740{
36741  echo
36742  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36743## Running $as_me. ##
36744_ASBOX
36745  $as_echo "$ac_log"
36746} >&5
36747
36748_ACEOF
36749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36750#
36751# INIT-COMMANDS
36752#
36753PACKAGE="$PACKAGE"
36754AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36755
36756
36757# The HP-UX ksh and POSIX shell print the target directory to stdout
36758# if CDPATH is set.
36759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36760
36761sed_quote_subst='$sed_quote_subst'
36762double_quote_subst='$double_quote_subst'
36763delay_variable_subst='$delay_variable_subst'
36764SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36765Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36766GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36767EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36768FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36769SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36770ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36771LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36772macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36773macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36774AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36775DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36776OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36777enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36778enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36779pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36780enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36781PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36782host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36783host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36784host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36785build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36786build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36787build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36788NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36789LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36790max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36791ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36792exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36793lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36794lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36795lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36796lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36797lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36798reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36799reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36800deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36801file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36802file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36803want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36804sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36805AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36806AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36807archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36808STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36809RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36810old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36811old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36812old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36813lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36814CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36815CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36816compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36817GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36818lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36819lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36820lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36821lt_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"`'
36822nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36823lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36824objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36825MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36826lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36827lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36828lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36829lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36830lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36831need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36832MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36833DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36834NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36835LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36836OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36837OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36838libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36839shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36840extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36841archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36842enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36843export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36844whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36845compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36846old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36847old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36848archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36849archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36850module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36851module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36852with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36853allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36854no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36855hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36856hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36857hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36858hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36859hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36860hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36861hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36862inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36863link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36864always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36865export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36866exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36867include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36868prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36869postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36870file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36871variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36872need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36873need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36874version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36875runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36876shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36877shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36878libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36879library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36880soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36881install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36882postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36883postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36884finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36885finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36886hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36887sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36888sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36889hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36890enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36891enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36892enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36893old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36894striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36895compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36896predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36897postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36898predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36899postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36900compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36901LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36902reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36903reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36904old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36905compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36906GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36907lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36908lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36909lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36910lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36911lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36912archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36913enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36914export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36915whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36916compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36917old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36918old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36919archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36920archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36921module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36922module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36923with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36924allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36925no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36926hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36927hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36928hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36929hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36930hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36931hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36932hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36933inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36934link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36935always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36936export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36937exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36938include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36939prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36940postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36941file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36942hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36943compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36944predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36945postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36946predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36947postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36948compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36949
36950LTCC='$LTCC'
36951LTCFLAGS='$LTCFLAGS'
36952compiler='$compiler_DEFAULT'
36953
36954# A function that is used when there is no print builtin or printf.
36955func_fallback_echo ()
36956{
36957  eval 'cat <<_LTECHO_EOF
36958\$1
36959_LTECHO_EOF'
36960}
36961
36962# Quote evaled strings.
36963for var in SED \
36964GREP \
36965EGREP \
36966FGREP \
36967SHELL \
36968ECHO \
36969LD \
36970AS \
36971DLLTOOL \
36972OBJDUMP \
36973PATH_SEPARATOR \
36974NM \
36975LN_S \
36976lt_SP2NL \
36977lt_NL2SP \
36978reload_flag \
36979deplibs_check_method \
36980file_magic_cmd \
36981file_magic_glob \
36982want_nocaseglob \
36983sharedlib_from_linklib_cmd \
36984AR \
36985AR_FLAGS \
36986archiver_list_spec \
36987STRIP \
36988RANLIB \
36989CC \
36990CFLAGS \
36991compiler \
36992lt_cv_sys_global_symbol_pipe \
36993lt_cv_sys_global_symbol_to_cdecl \
36994lt_cv_sys_global_symbol_to_c_name_address \
36995lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36996nm_file_list_spec \
36997lt_prog_compiler_no_builtin_flag \
36998lt_prog_compiler_pic \
36999lt_prog_compiler_wl \
37000lt_prog_compiler_static \
37001lt_cv_prog_compiler_c_o \
37002need_locks \
37003MANIFEST_TOOL \
37004DSYMUTIL \
37005NMEDIT \
37006LIPO \
37007OTOOL \
37008OTOOL64 \
37009shrext_cmds \
37010export_dynamic_flag_spec \
37011whole_archive_flag_spec \
37012compiler_needs_object \
37013with_gnu_ld \
37014allow_undefined_flag \
37015no_undefined_flag \
37016hardcode_libdir_flag_spec \
37017hardcode_libdir_separator \
37018exclude_expsyms \
37019include_expsyms \
37020file_list_spec \
37021variables_saved_for_relink \
37022libname_spec \
37023library_names_spec \
37024soname_spec \
37025install_override_mode \
37026finish_eval \
37027old_striplib \
37028striplib \
37029compiler_lib_search_dirs \
37030predep_objects \
37031postdep_objects \
37032predeps \
37033postdeps \
37034compiler_lib_search_path \
37035LD_CXX \
37036reload_flag_CXX \
37037compiler_CXX \
37038lt_prog_compiler_no_builtin_flag_CXX \
37039lt_prog_compiler_pic_CXX \
37040lt_prog_compiler_wl_CXX \
37041lt_prog_compiler_static_CXX \
37042lt_cv_prog_compiler_c_o_CXX \
37043export_dynamic_flag_spec_CXX \
37044whole_archive_flag_spec_CXX \
37045compiler_needs_object_CXX \
37046with_gnu_ld_CXX \
37047allow_undefined_flag_CXX \
37048no_undefined_flag_CXX \
37049hardcode_libdir_flag_spec_CXX \
37050hardcode_libdir_separator_CXX \
37051exclude_expsyms_CXX \
37052include_expsyms_CXX \
37053file_list_spec_CXX \
37054compiler_lib_search_dirs_CXX \
37055predep_objects_CXX \
37056postdep_objects_CXX \
37057predeps_CXX \
37058postdeps_CXX \
37059compiler_lib_search_path_CXX; do
37060    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37061    *[\\\\\\\`\\"\\\$]*)
37062      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37063      ;;
37064    *)
37065      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37066      ;;
37067    esac
37068done
37069
37070# Double-quote double-evaled strings.
37071for var in reload_cmds \
37072old_postinstall_cmds \
37073old_postuninstall_cmds \
37074old_archive_cmds \
37075extract_expsyms_cmds \
37076old_archive_from_new_cmds \
37077old_archive_from_expsyms_cmds \
37078archive_cmds \
37079archive_expsym_cmds \
37080module_cmds \
37081module_expsym_cmds \
37082export_symbols_cmds \
37083prelink_cmds \
37084postlink_cmds \
37085postinstall_cmds \
37086postuninstall_cmds \
37087finish_cmds \
37088sys_lib_search_path_spec \
37089sys_lib_dlsearch_path_spec \
37090reload_cmds_CXX \
37091old_archive_cmds_CXX \
37092old_archive_from_new_cmds_CXX \
37093old_archive_from_expsyms_cmds_CXX \
37094archive_cmds_CXX \
37095archive_expsym_cmds_CXX \
37096module_cmds_CXX \
37097module_expsym_cmds_CXX \
37098export_symbols_cmds_CXX \
37099prelink_cmds_CXX \
37100postlink_cmds_CXX; do
37101    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37102    *[\\\\\\\`\\"\\\$]*)
37103      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37104      ;;
37105    *)
37106      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37107      ;;
37108    esac
37109done
37110
37111ac_aux_dir='$ac_aux_dir'
37112xsi_shell='$xsi_shell'
37113lt_shell_append='$lt_shell_append'
37114
37115# See if we are running on zsh, and set the options which allow our
37116# commands through without removal of \ escapes INIT.
37117if test -n "\${ZSH_VERSION+set}" ; then
37118   setopt NO_GLOB_SUBST
37119fi
37120
37121
37122    PACKAGE='$PACKAGE'
37123    VERSION='$VERSION'
37124    TIMESTAMP='$TIMESTAMP'
37125    RM='$RM'
37126    ofile='$ofile'
37127
37128
37129
37130
37131
37132
37133_ACEOF
37134
37135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37136
37137# Handling of arguments.
37138for ac_config_target in $ac_config_targets
37139do
37140  case $ac_config_target in
37141    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37142    "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
37143    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37144    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37145    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37146    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37147    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37148    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37149    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37150    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37151    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37152    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37153    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37154    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37155    "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37156    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37157    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37158    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37159    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37160    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37161    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37162    "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37163    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37164    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37165    "tests/common.shi") CONFIG_FILES="$CONFIG_FILES tests/common.shi" ;;
37166    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37167    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37168    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37169    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37170    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37171    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37172    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37173    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37174    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37175    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37176    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37177    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37178    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37179    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37180    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37181    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37182    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37183    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37184    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37185    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37186    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37187    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37188
37189  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37190  esac
37191done
37192
37193
37194# If the user did not use the arguments to specify the items to instantiate,
37195# then the envvar interface is used.  Set only those that are not.
37196# We use the long form for the default assignment because of an extremely
37197# bizarre bug on SunOS 4.1.3.
37198if $ac_need_defaults; then
37199  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37200  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37201  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37202fi
37203
37204# Have a temporary directory for convenience.  Make it in the build tree
37205# simply because there is no reason against having it here, and in addition,
37206# creating and moving files from /tmp can sometimes cause problems.
37207# Hook for its removal unless debugging.
37208# Note that there is a small window in which the directory will not be cleaned:
37209# after its creation but before its name has been assigned to `$tmp'.
37210$debug ||
37211{
37212  tmp= ac_tmp=
37213  trap 'exit_status=$?
37214  : "${ac_tmp:=$tmp}"
37215  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37216' 0
37217  trap 'as_fn_exit 1' 1 2 13 15
37218}
37219# Create a (secure) tmp directory for tmp files.
37220
37221{
37222  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37223  test -d "$tmp"
37224}  ||
37225{
37226  tmp=./conf$$-$RANDOM
37227  (umask 077 && mkdir "$tmp")
37228} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37229ac_tmp=$tmp
37230
37231# Set up the scripts for CONFIG_FILES section.
37232# No need to generate them if there are no CONFIG_FILES.
37233# This happens for instance with `./config.status config.h'.
37234if test -n "$CONFIG_FILES"; then
37235
37236
37237ac_cr=`echo X | tr X '\015'`
37238# On cygwin, bash can eat \r inside `` if the user requested igncr.
37239# But we know of no other shell where ac_cr would be empty at this
37240# point, so we can use a bashism as a fallback.
37241if test "x$ac_cr" = x; then
37242  eval ac_cr=\$\'\\r\'
37243fi
37244ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37245if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37246  ac_cs_awk_cr='\\r'
37247else
37248  ac_cs_awk_cr=$ac_cr
37249fi
37250
37251echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37252_ACEOF
37253
37254
37255{
37256  echo "cat >conf$$subs.awk <<_ACEOF" &&
37257  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37258  echo "_ACEOF"
37259} >conf$$subs.sh ||
37260  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37261ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37262ac_delim='%!_!# '
37263for ac_last_try in false false false false false :; do
37264  . ./conf$$subs.sh ||
37265    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37266
37267  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37268  if test $ac_delim_n = $ac_delim_num; then
37269    break
37270  elif $ac_last_try; then
37271    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37272  else
37273    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37274  fi
37275done
37276rm -f conf$$subs.sh
37277
37278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37279cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37280_ACEOF
37281sed -n '
37282h
37283s/^/S["/; s/!.*/"]=/
37284p
37285g
37286s/^[^!]*!//
37287:repl
37288t repl
37289s/'"$ac_delim"'$//
37290t delim
37291:nl
37292h
37293s/\(.\{148\}\)..*/\1/
37294t more1
37295s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37296p
37297n
37298b repl
37299:more1
37300s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37301p
37302g
37303s/.\{148\}//
37304t nl
37305:delim
37306h
37307s/\(.\{148\}\)..*/\1/
37308t more2
37309s/["\\]/\\&/g; s/^/"/; s/$/"/
37310p
37311b
37312:more2
37313s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37314p
37315g
37316s/.\{148\}//
37317t delim
37318' <conf$$subs.awk | sed '
37319/^[^""]/{
37320  N
37321  s/\n//
37322}
37323' >>$CONFIG_STATUS || ac_write_fail=1
37324rm -f conf$$subs.awk
37325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37326_ACAWK
37327cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37328  for (key in S) S_is_set[key] = 1
37329  FS = ""
37330
37331}
37332{
37333  line = $ 0
37334  nfields = split(line, field, "@")
37335  substed = 0
37336  len = length(field[1])
37337  for (i = 2; i < nfields; i++) {
37338    key = field[i]
37339    keylen = length(key)
37340    if (S_is_set[key]) {
37341      value = S[key]
37342      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37343      len += length(value) + length(field[++i])
37344      substed = 1
37345    } else
37346      len += 1 + keylen
37347  }
37348
37349  print line
37350}
37351
37352_ACAWK
37353_ACEOF
37354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37355if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37356  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37357else
37358  cat
37359fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37360  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37361_ACEOF
37362
37363# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37364# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37365# trailing colons and then remove the whole line if VPATH becomes empty
37366# (actually we leave an empty line to preserve line numbers).
37367if test "x$srcdir" = x.; then
37368  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37369h
37370s///
37371s/^/:/
37372s/[	 ]*$/:/
37373s/:\$(srcdir):/:/g
37374s/:\${srcdir}:/:/g
37375s/:@srcdir@:/:/g
37376s/^:*//
37377s/:*$//
37378x
37379s/\(=[	 ]*\).*/\1/
37380G
37381s/\n//
37382s/^[^=]*=[	 ]*$//
37383}'
37384fi
37385
37386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37387fi # test -n "$CONFIG_FILES"
37388
37389# Set up the scripts for CONFIG_HEADERS section.
37390# No need to generate them if there are no CONFIG_HEADERS.
37391# This happens for instance with `./config.status Makefile'.
37392if test -n "$CONFIG_HEADERS"; then
37393cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37394BEGIN {
37395_ACEOF
37396
37397# Transform confdefs.h into an awk script `defines.awk', embedded as
37398# here-document in config.status, that substitutes the proper values into
37399# config.h.in to produce config.h.
37400
37401# Create a delimiter string that does not exist in confdefs.h, to ease
37402# handling of long lines.
37403ac_delim='%!_!# '
37404for ac_last_try in false false :; do
37405  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37406  if test -z "$ac_tt"; then
37407    break
37408  elif $ac_last_try; then
37409    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37410  else
37411    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37412  fi
37413done
37414
37415# For the awk script, D is an array of macro values keyed by name,
37416# likewise P contains macro parameters if any.  Preserve backslash
37417# newline sequences.
37418
37419ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37420sed -n '
37421s/.\{148\}/&'"$ac_delim"'/g
37422t rset
37423:rset
37424s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37425t def
37426d
37427:def
37428s/\\$//
37429t bsnl
37430s/["\\]/\\&/g
37431s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37432D["\1"]=" \3"/p
37433s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37434d
37435:bsnl
37436s/["\\]/\\&/g
37437s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37438D["\1"]=" \3\\\\\\n"\\/p
37439t cont
37440s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37441t cont
37442d
37443:cont
37444n
37445s/.\{148\}/&'"$ac_delim"'/g
37446t clear
37447:clear
37448s/\\$//
37449t bsnlc
37450s/["\\]/\\&/g; s/^/"/; s/$/"/p
37451d
37452:bsnlc
37453s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37454b cont
37455' <confdefs.h | sed '
37456s/'"$ac_delim"'/"\\\
37457"/g' >>$CONFIG_STATUS || ac_write_fail=1
37458
37459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37460  for (key in D) D_is_set[key] = 1
37461  FS = ""
37462}
37463/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37464  line = \$ 0
37465  split(line, arg, " ")
37466  if (arg[1] == "#") {
37467    defundef = arg[2]
37468    mac1 = arg[3]
37469  } else {
37470    defundef = substr(arg[1], 2)
37471    mac1 = arg[2]
37472  }
37473  split(mac1, mac2, "(") #)
37474  macro = mac2[1]
37475  prefix = substr(line, 1, index(line, defundef) - 1)
37476  if (D_is_set[macro]) {
37477    # Preserve the white space surrounding the "#".
37478    print prefix "define", macro P[macro] D[macro]
37479    next
37480  } else {
37481    # Replace #undef with comments.  This is necessary, for example,
37482    # in the case of _POSIX_SOURCE, which is predefined and required
37483    # on some systems where configure will not decide to define it.
37484    if (defundef == "undef") {
37485      print "/*", prefix defundef, macro, "*/"
37486      next
37487    }
37488  }
37489}
37490{ print }
37491_ACAWK
37492_ACEOF
37493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37494  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37495fi # test -n "$CONFIG_HEADERS"
37496
37497
37498eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37499shift
37500for ac_tag
37501do
37502  case $ac_tag in
37503  :[FHLC]) ac_mode=$ac_tag; continue;;
37504  esac
37505  case $ac_mode$ac_tag in
37506  :[FHL]*:*);;
37507  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37508  :[FH]-) ac_tag=-:-;;
37509  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37510  esac
37511  ac_save_IFS=$IFS
37512  IFS=:
37513  set x $ac_tag
37514  IFS=$ac_save_IFS
37515  shift
37516  ac_file=$1
37517  shift
37518
37519  case $ac_mode in
37520  :L) ac_source=$1;;
37521  :[FH])
37522    ac_file_inputs=
37523    for ac_f
37524    do
37525      case $ac_f in
37526      -) ac_f="$ac_tmp/stdin";;
37527      *) # Look for the file first in the build tree, then in the source tree
37528	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37529	 # because $ac_f cannot contain `:'.
37530	 test -f "$ac_f" ||
37531	   case $ac_f in
37532	   [\\/$]*) false;;
37533	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37534	   esac ||
37535	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37536      esac
37537      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37538      as_fn_append ac_file_inputs " '$ac_f'"
37539    done
37540
37541    # Let's still pretend it is `configure' which instantiates (i.e., don't
37542    # use $as_me), people would be surprised to read:
37543    #    /* config.h.  Generated by config.status.  */
37544    configure_input='Generated from '`
37545	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37546	`' by configure.'
37547    if test x"$ac_file" != x-; then
37548      configure_input="$ac_file.  $configure_input"
37549      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37550$as_echo "$as_me: creating $ac_file" >&6;}
37551    fi
37552    # Neutralize special characters interpreted by sed in replacement strings.
37553    case $configure_input in #(
37554    *\&* | *\|* | *\\* )
37555       ac_sed_conf_input=`$as_echo "$configure_input" |
37556       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37557    *) ac_sed_conf_input=$configure_input;;
37558    esac
37559
37560    case $ac_tag in
37561    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37562      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37563    esac
37564    ;;
37565  esac
37566
37567  ac_dir=`$as_dirname -- "$ac_file" ||
37568$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37569	 X"$ac_file" : 'X\(//\)[^/]' \| \
37570	 X"$ac_file" : 'X\(//\)$' \| \
37571	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37572$as_echo X"$ac_file" |
37573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37574	    s//\1/
37575	    q
37576	  }
37577	  /^X\(\/\/\)[^/].*/{
37578	    s//\1/
37579	    q
37580	  }
37581	  /^X\(\/\/\)$/{
37582	    s//\1/
37583	    q
37584	  }
37585	  /^X\(\/\).*/{
37586	    s//\1/
37587	    q
37588	  }
37589	  s/.*/./; q'`
37590  as_dir="$ac_dir"; as_fn_mkdir_p
37591  ac_builddir=.
37592
37593case "$ac_dir" in
37594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37595*)
37596  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37597  # A ".." for each directory in $ac_dir_suffix.
37598  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37599  case $ac_top_builddir_sub in
37600  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37601  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37602  esac ;;
37603esac
37604ac_abs_top_builddir=$ac_pwd
37605ac_abs_builddir=$ac_pwd$ac_dir_suffix
37606# for backward compatibility:
37607ac_top_builddir=$ac_top_build_prefix
37608
37609case $srcdir in
37610  .)  # We are building in place.
37611    ac_srcdir=.
37612    ac_top_srcdir=$ac_top_builddir_sub
37613    ac_abs_top_srcdir=$ac_pwd ;;
37614  [\\/]* | ?:[\\/]* )  # Absolute name.
37615    ac_srcdir=$srcdir$ac_dir_suffix;
37616    ac_top_srcdir=$srcdir
37617    ac_abs_top_srcdir=$srcdir ;;
37618  *) # Relative name.
37619    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37620    ac_top_srcdir=$ac_top_build_prefix$srcdir
37621    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37622esac
37623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37624
37625
37626  case $ac_mode in
37627  :F)
37628  #
37629  # CONFIG_FILE
37630  #
37631
37632  case $INSTALL in
37633  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37634  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37635  esac
37636  ac_MKDIR_P=$MKDIR_P
37637  case $MKDIR_P in
37638  [\\/$]* | ?:[\\/]* ) ;;
37639  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37640  esac
37641_ACEOF
37642
37643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37644# If the template does not know about datarootdir, expand it.
37645# FIXME: This hack should be removed a few years after 2.60.
37646ac_datarootdir_hack=; ac_datarootdir_seen=
37647ac_sed_dataroot='
37648/datarootdir/ {
37649  p
37650  q
37651}
37652/@datadir@/p
37653/@docdir@/p
37654/@infodir@/p
37655/@localedir@/p
37656/@mandir@/p'
37657case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37658*datarootdir*) ac_datarootdir_seen=yes;;
37659*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37660  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37661$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37662_ACEOF
37663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37664  ac_datarootdir_hack='
37665  s&@datadir@&$datadir&g
37666  s&@docdir@&$docdir&g
37667  s&@infodir@&$infodir&g
37668  s&@localedir@&$localedir&g
37669  s&@mandir@&$mandir&g
37670  s&\\\${datarootdir}&$datarootdir&g' ;;
37671esac
37672_ACEOF
37673
37674# Neutralize VPATH when `$srcdir' = `.'.
37675# Shell code in configure.ac might set extrasub.
37676# FIXME: do we really want to maintain this feature?
37677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37678ac_sed_extra="$ac_vpsub
37679$extrasub
37680_ACEOF
37681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37682:t
37683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37684s|@configure_input@|$ac_sed_conf_input|;t t
37685s&@top_builddir@&$ac_top_builddir_sub&;t t
37686s&@top_build_prefix@&$ac_top_build_prefix&;t t
37687s&@srcdir@&$ac_srcdir&;t t
37688s&@abs_srcdir@&$ac_abs_srcdir&;t t
37689s&@top_srcdir@&$ac_top_srcdir&;t t
37690s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37691s&@builddir@&$ac_builddir&;t t
37692s&@abs_builddir@&$ac_abs_builddir&;t t
37693s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37694s&@INSTALL@&$ac_INSTALL&;t t
37695s&@MKDIR_P@&$ac_MKDIR_P&;t t
37696$ac_datarootdir_hack
37697"
37698eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37699  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37700
37701test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37702  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37703  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
37704      "$ac_tmp/out"`; test -z "$ac_out"; } &&
37705  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37706which seems to be undefined.  Please make sure it is defined" >&5
37707$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37708which seems to be undefined.  Please make sure it is defined" >&2;}
37709
37710  rm -f "$ac_tmp/stdin"
37711  case $ac_file in
37712  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37713  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37714  esac \
37715  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37716 ;;
37717  :H)
37718  #
37719  # CONFIG_HEADER
37720  #
37721  if test x"$ac_file" != x-; then
37722    {
37723      $as_echo "/* $configure_input  */" \
37724      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37725    } >"$ac_tmp/config.h" \
37726      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37727    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37728      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37729$as_echo "$as_me: $ac_file is unchanged" >&6;}
37730    else
37731      rm -f "$ac_file"
37732      mv "$ac_tmp/config.h" "$ac_file" \
37733	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
37734    fi
37735  else
37736    $as_echo "/* $configure_input  */" \
37737      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37738      || as_fn_error $? "could not create -" "$LINENO" 5
37739  fi
37740# Compute "$ac_file"'s index in $config_headers.
37741_am_arg="$ac_file"
37742_am_stamp_count=1
37743for _am_header in $config_headers :; do
37744  case $_am_header in
37745    $_am_arg | $_am_arg:* )
37746      break ;;
37747    * )
37748      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37749  esac
37750done
37751echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37752$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37753	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37754	 X"$_am_arg" : 'X\(//\)$' \| \
37755	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37756$as_echo X"$_am_arg" |
37757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37758	    s//\1/
37759	    q
37760	  }
37761	  /^X\(\/\/\)[^/].*/{
37762	    s//\1/
37763	    q
37764	  }
37765	  /^X\(\/\/\)$/{
37766	    s//\1/
37767	    q
37768	  }
37769	  /^X\(\/\).*/{
37770	    s//\1/
37771	    q
37772	  }
37773	  s/.*/./; q'`/stamp-h$_am_stamp_count
37774 ;;
37775
37776  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37777$as_echo "$as_me: executing $ac_file commands" >&6;}
37778 ;;
37779  esac
37780
37781
37782  case $ac_file$ac_mode in
37783    "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
37784ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37785ac_prefix_conf_PKG=`echo MagickCore`
37786ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37787ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
37788ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37789if test ".$ac_prefix_conf_INP" = "."; then
37790   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37791     case "$ac_file" in
37792        *.h) ac_prefix_conf_INP=$ac_file ;;
37793        *)
37794     esac
37795     test ".$ac_prefix_conf_INP" != "." && break
37796   done
37797fi
37798if test ".$ac_prefix_conf_INP" = "."; then
37799   case "$ac_prefix_conf_OUT" in
37800      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37801      ;;
37802      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37803      ;;
37804      *) ac_prefix_conf_INP=config.h
37805      ;;
37806   esac
37807fi
37808if test -z "$ac_prefix_conf_PKG" ; then
37809   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37810else
37811  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37812     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37813  fi fi
37814  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37815$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37816  if test -f $ac_prefix_conf_INP ; then
37817    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37818    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37819    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37820    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37821    $as_echo "#endif/" >> conftest.prefix
37822    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37823    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37824    $as_echo "#endif/" >> conftest.prefix
37825    # now executing _script on _DEF input to create _OUT output file
37826    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
37827    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37828    echo ' ' >>$tmp/pconfig.h
37829    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37830
37831    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37832    echo ' ' >>$tmp/pconfig.h
37833    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37834    echo "#endif" >>$tmp/pconfig.h
37835    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37836      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37837$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37838    else
37839      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37840$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37841	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37842	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37843	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37844$as_echo X"$ac_prefix_conf_OUT" |
37845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37846	    s//\1/
37847	    q
37848	  }
37849	  /^X\(\/\/\)[^/].*/{
37850	    s//\1/
37851	    q
37852	  }
37853	  /^X\(\/\/\)$/{
37854	    s//\1/
37855	    q
37856	  }
37857	  /^X\(\/\).*/{
37858	    s//\1/
37859	    q
37860	  }
37861	  s/.*/./; q'`
37862      as_dir="$ac_dir"; as_fn_mkdir_p
37863      rm -f "$ac_prefix_conf_OUT"
37864      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37865    fi
37866    cp conftest.prefix _configs.sed
37867  else
37868    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
37869  fi
37870  rm -f conftest.*
37871fi
37872 ;;
37873    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37874  # Autoconf 2.62 quotes --file arguments for eval, but not when files
37875  # are listed without --file.  Let's play safe and only enable the eval
37876  # if we detect the quoting.
37877  case $CONFIG_FILES in
37878  *\'*) eval set x "$CONFIG_FILES" ;;
37879  *)   set x $CONFIG_FILES ;;
37880  esac
37881  shift
37882  for mf
37883  do
37884    # Strip MF so we end up with the name of the file.
37885    mf=`echo "$mf" | sed -e 's/:.*$//'`
37886    # Check whether this is an Automake generated Makefile or not.
37887    # We used to match only the files named 'Makefile.in', but
37888    # some people rename them; so instead we look at the file content.
37889    # Grep'ing the first line is not enough: some people post-process
37890    # each Makefile.in and add a new line on top of each file to say so.
37891    # Grep'ing the whole file is not good either: AIX grep has a line
37892    # limit of 2048, but all sed's we know have understand at least 4000.
37893    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37894      dirpart=`$as_dirname -- "$mf" ||
37895$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37896	 X"$mf" : 'X\(//\)[^/]' \| \
37897	 X"$mf" : 'X\(//\)$' \| \
37898	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37899$as_echo X"$mf" |
37900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37901	    s//\1/
37902	    q
37903	  }
37904	  /^X\(\/\/\)[^/].*/{
37905	    s//\1/
37906	    q
37907	  }
37908	  /^X\(\/\/\)$/{
37909	    s//\1/
37910	    q
37911	  }
37912	  /^X\(\/\).*/{
37913	    s//\1/
37914	    q
37915	  }
37916	  s/.*/./; q'`
37917    else
37918      continue
37919    fi
37920    # Extract the definition of DEPDIR, am__include, and am__quote
37921    # from the Makefile without running 'make'.
37922    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37923    test -z "$DEPDIR" && continue
37924    am__include=`sed -n 's/^am__include = //p' < "$mf"`
37925    test -z "am__include" && continue
37926    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37927    # Find all dependency output files, they are included files with
37928    # $(DEPDIR) in their names.  We invoke sed twice because it is the
37929    # simplest approach to changing $(DEPDIR) to its actual value in the
37930    # expansion.
37931    for file in `sed -n "
37932      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37933	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
37934      # Make sure the directory exists.
37935      test -f "$dirpart/$file" && continue
37936      fdir=`$as_dirname -- "$file" ||
37937$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37938	 X"$file" : 'X\(//\)[^/]' \| \
37939	 X"$file" : 'X\(//\)$' \| \
37940	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37941$as_echo X"$file" |
37942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37943	    s//\1/
37944	    q
37945	  }
37946	  /^X\(\/\/\)[^/].*/{
37947	    s//\1/
37948	    q
37949	  }
37950	  /^X\(\/\/\)$/{
37951	    s//\1/
37952	    q
37953	  }
37954	  /^X\(\/\).*/{
37955	    s//\1/
37956	    q
37957	  }
37958	  s/.*/./; q'`
37959      as_dir=$dirpart/$fdir; as_fn_mkdir_p
37960      # echo "creating $dirpart/$file"
37961      echo '# dummy' > "$dirpart/$file"
37962    done
37963  done
37964}
37965 ;;
37966    "libtool":C)
37967
37968    # See if we are running on zsh, and set the options which allow our
37969    # commands through without removal of \ escapes.
37970    if test -n "${ZSH_VERSION+set}" ; then
37971      setopt NO_GLOB_SUBST
37972    fi
37973
37974    cfgfile="${ofile}T"
37975    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37976    $RM "$cfgfile"
37977
37978    cat <<_LT_EOF >> "$cfgfile"
37979#! $SHELL
37980
37981# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37982# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37984# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37985#
37986#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37987#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37988#                 Foundation, Inc.
37989#   Written by Gordon Matzigkeit, 1996
37990#
37991#   This file is part of GNU Libtool.
37992#
37993# GNU Libtool is free software; you can redistribute it and/or
37994# modify it under the terms of the GNU General Public License as
37995# published by the Free Software Foundation; either version 2 of
37996# the License, or (at your option) any later version.
37997#
37998# As a special exception to the GNU General Public License,
37999# if you distribute this file as part of a program or library that
38000# is built using GNU Libtool, you may include this file under the
38001# same distribution terms that you use for the rest of that program.
38002#
38003# GNU Libtool is distributed in the hope that it will be useful,
38004# but WITHOUT ANY WARRANTY; without even the implied warranty of
38005# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38006# GNU General Public License for more details.
38007#
38008# You should have received a copy of the GNU General Public License
38009# along with GNU Libtool; see the file COPYING.  If not, a copy
38010# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38011# obtained by writing to the Free Software Foundation, Inc.,
38012# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38013
38014
38015# The names of the tagged configurations supported by this script.
38016available_tags="CXX "
38017
38018# ### BEGIN LIBTOOL CONFIG
38019
38020# A sed program that does not truncate output.
38021SED=$lt_SED
38022
38023# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38024Xsed="\$SED -e 1s/^X//"
38025
38026# A grep program that handles long lines.
38027GREP=$lt_GREP
38028
38029# An ERE matcher.
38030EGREP=$lt_EGREP
38031
38032# A literal string matcher.
38033FGREP=$lt_FGREP
38034
38035# Shell to use when invoking shell scripts.
38036SHELL=$lt_SHELL
38037
38038# An echo program that protects backslashes.
38039ECHO=$lt_ECHO
38040
38041# Which release of libtool.m4 was used?
38042macro_version=$macro_version
38043macro_revision=$macro_revision
38044
38045# Assembler program.
38046AS=$lt_AS
38047
38048# DLL creation program.
38049DLLTOOL=$lt_DLLTOOL
38050
38051# Object dumper program.
38052OBJDUMP=$lt_OBJDUMP
38053
38054# Whether or not to build shared libraries.
38055build_libtool_libs=$enable_shared
38056
38057# Whether or not to build static libraries.
38058build_old_libs=$enable_static
38059
38060# What type of objects to build.
38061pic_mode=$pic_mode
38062
38063# Whether or not to optimize for fast installation.
38064fast_install=$enable_fast_install
38065
38066# The PATH separator for the build system.
38067PATH_SEPARATOR=$lt_PATH_SEPARATOR
38068
38069# The host system.
38070host_alias=$host_alias
38071host=$host
38072host_os=$host_os
38073
38074# The build system.
38075build_alias=$build_alias
38076build=$build
38077build_os=$build_os
38078
38079# A BSD- or MS-compatible name lister.
38080NM=$lt_NM
38081
38082# Whether we need soft or hard links.
38083LN_S=$lt_LN_S
38084
38085# What is the maximum length of a command?
38086max_cmd_len=$max_cmd_len
38087
38088# Object file suffix (normally "o").
38089objext=$ac_objext
38090
38091# Executable file suffix (normally "").
38092exeext=$exeext
38093
38094# whether the shell understands "unset".
38095lt_unset=$lt_unset
38096
38097# turn spaces into newlines.
38098SP2NL=$lt_lt_SP2NL
38099
38100# turn newlines into spaces.
38101NL2SP=$lt_lt_NL2SP
38102
38103# convert \$build file names to \$host format.
38104to_host_file_cmd=$lt_cv_to_host_file_cmd
38105
38106# convert \$build files to toolchain format.
38107to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38108
38109# Method to check whether dependent libraries are shared objects.
38110deplibs_check_method=$lt_deplibs_check_method
38111
38112# Command to use when deplibs_check_method = "file_magic".
38113file_magic_cmd=$lt_file_magic_cmd
38114
38115# How to find potential files when deplibs_check_method = "file_magic".
38116file_magic_glob=$lt_file_magic_glob
38117
38118# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38119want_nocaseglob=$lt_want_nocaseglob
38120
38121# Command to associate shared and link libraries.
38122sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38123
38124# The archiver.
38125AR=$lt_AR
38126
38127# Flags to create an archive.
38128AR_FLAGS=$lt_AR_FLAGS
38129
38130# How to feed a file listing to the archiver.
38131archiver_list_spec=$lt_archiver_list_spec
38132
38133# A symbol stripping program.
38134STRIP=$lt_STRIP
38135
38136# Commands used to install an old-style archive.
38137RANLIB=$lt_RANLIB
38138old_postinstall_cmds=$lt_old_postinstall_cmds
38139old_postuninstall_cmds=$lt_old_postuninstall_cmds
38140
38141# Whether to use a lock for old archive extraction.
38142lock_old_archive_extraction=$lock_old_archive_extraction
38143
38144# A C compiler.
38145LTCC=$lt_CC
38146
38147# LTCC compiler flags.
38148LTCFLAGS=$lt_CFLAGS
38149
38150# Take the output of nm and produce a listing of raw symbols and C names.
38151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38152
38153# Transform the output of nm in a proper C declaration.
38154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38155
38156# Transform the output of nm in a C name address pair.
38157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38158
38159# Transform the output of nm in a C name address pair when lib prefix is needed.
38160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38161
38162# Specify filename containing input files for \$NM.
38163nm_file_list_spec=$lt_nm_file_list_spec
38164
38165# The root where to search for dependent libraries,and in which our libraries should be installed.
38166lt_sysroot=$lt_sysroot
38167
38168# The name of the directory that contains temporary libtool files.
38169objdir=$objdir
38170
38171# Used to examine libraries when file_magic_cmd begins with "file".
38172MAGIC_CMD=$MAGIC_CMD
38173
38174# Must we lock files when doing compilation?
38175need_locks=$lt_need_locks
38176
38177# Manifest tool.
38178MANIFEST_TOOL=$lt_MANIFEST_TOOL
38179
38180# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38181DSYMUTIL=$lt_DSYMUTIL
38182
38183# Tool to change global to local symbols on Mac OS X.
38184NMEDIT=$lt_NMEDIT
38185
38186# Tool to manipulate fat objects and archives on Mac OS X.
38187LIPO=$lt_LIPO
38188
38189# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38190OTOOL=$lt_OTOOL
38191
38192# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38193OTOOL64=$lt_OTOOL64
38194
38195# Old archive suffix (normally "a").
38196libext=$libext
38197
38198# Shared library suffix (normally ".so").
38199shrext_cmds=$lt_shrext_cmds
38200
38201# The commands to extract the exported symbol list from a shared archive.
38202extract_expsyms_cmds=$lt_extract_expsyms_cmds
38203
38204# Variables whose values should be saved in libtool wrapper scripts and
38205# restored at link time.
38206variables_saved_for_relink=$lt_variables_saved_for_relink
38207
38208# Do we need the "lib" prefix for modules?
38209need_lib_prefix=$need_lib_prefix
38210
38211# Do we need a version for libraries?
38212need_version=$need_version
38213
38214# Library versioning type.
38215version_type=$version_type
38216
38217# Shared library runtime path variable.
38218runpath_var=$runpath_var
38219
38220# Shared library path variable.
38221shlibpath_var=$shlibpath_var
38222
38223# Is shlibpath searched before the hard-coded library search path?
38224shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38225
38226# Format of library name prefix.
38227libname_spec=$lt_libname_spec
38228
38229# List of archive names.  First name is the real one, the rest are links.
38230# The last name is the one that the linker finds with -lNAME
38231library_names_spec=$lt_library_names_spec
38232
38233# The coded name of the library, if different from the real name.
38234soname_spec=$lt_soname_spec
38235
38236# Permission mode override for installation of shared libraries.
38237install_override_mode=$lt_install_override_mode
38238
38239# Command to use after installation of a shared archive.
38240postinstall_cmds=$lt_postinstall_cmds
38241
38242# Command to use after uninstallation of a shared archive.
38243postuninstall_cmds=$lt_postuninstall_cmds
38244
38245# Commands used to finish a libtool library installation in a directory.
38246finish_cmds=$lt_finish_cmds
38247
38248# As "finish_cmds", except a single script fragment to be evaled but
38249# not shown.
38250finish_eval=$lt_finish_eval
38251
38252# Whether we should hardcode library paths into libraries.
38253hardcode_into_libs=$hardcode_into_libs
38254
38255# Compile-time system search path for libraries.
38256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38257
38258# Run-time system search path for libraries.
38259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38260
38261# Whether dlopen is supported.
38262dlopen_support=$enable_dlopen
38263
38264# Whether dlopen of programs is supported.
38265dlopen_self=$enable_dlopen_self
38266
38267# Whether dlopen of statically linked programs is supported.
38268dlopen_self_static=$enable_dlopen_self_static
38269
38270# Commands to strip libraries.
38271old_striplib=$lt_old_striplib
38272striplib=$lt_striplib
38273
38274
38275# The linker used to build libraries.
38276LD=$lt_LD
38277
38278# How to create reloadable object files.
38279reload_flag=$lt_reload_flag
38280reload_cmds=$lt_reload_cmds
38281
38282# Commands used to build an old-style archive.
38283old_archive_cmds=$lt_old_archive_cmds
38284
38285# A language specific compiler.
38286CC=$lt_compiler
38287
38288# Is the compiler the GNU compiler?
38289with_gcc=$GCC
38290
38291# Compiler flag to turn off builtin functions.
38292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38293
38294# Additional compiler flags for building library objects.
38295pic_flag=$lt_lt_prog_compiler_pic
38296
38297# How to pass a linker flag through the compiler.
38298wl=$lt_lt_prog_compiler_wl
38299
38300# Compiler flag to prevent dynamic linking.
38301link_static_flag=$lt_lt_prog_compiler_static
38302
38303# Does compiler simultaneously support -c and -o options?
38304compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38305
38306# Whether or not to add -lc for building shared libraries.
38307build_libtool_need_lc=$archive_cmds_need_lc
38308
38309# Whether or not to disallow shared libs when runtime libs are static.
38310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38311
38312# Compiler flag to allow reflexive dlopens.
38313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38314
38315# Compiler flag to generate shared objects directly from archives.
38316whole_archive_flag_spec=$lt_whole_archive_flag_spec
38317
38318# Whether the compiler copes with passing no objects directly.
38319compiler_needs_object=$lt_compiler_needs_object
38320
38321# Create an old-style archive from a shared archive.
38322old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38323
38324# Create a temporary old-style archive to link instead of a shared archive.
38325old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38326
38327# Commands used to build a shared archive.
38328archive_cmds=$lt_archive_cmds
38329archive_expsym_cmds=$lt_archive_expsym_cmds
38330
38331# Commands used to build a loadable module if different from building
38332# a shared archive.
38333module_cmds=$lt_module_cmds
38334module_expsym_cmds=$lt_module_expsym_cmds
38335
38336# Whether we are building with GNU ld or not.
38337with_gnu_ld=$lt_with_gnu_ld
38338
38339# Flag that allows shared libraries with undefined symbols to be built.
38340allow_undefined_flag=$lt_allow_undefined_flag
38341
38342# Flag that enforces no undefined symbols.
38343no_undefined_flag=$lt_no_undefined_flag
38344
38345# Flag to hardcode \$libdir into a binary during linking.
38346# This must work even if \$libdir does not exist
38347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38348
38349# Whether we need a single "-rpath" flag with a separated argument.
38350hardcode_libdir_separator=$lt_hardcode_libdir_separator
38351
38352# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38353# DIR into the resulting binary.
38354hardcode_direct=$hardcode_direct
38355
38356# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38357# DIR into the resulting binary and the resulting library dependency is
38358# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38359# library is relocated.
38360hardcode_direct_absolute=$hardcode_direct_absolute
38361
38362# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38363# into the resulting binary.
38364hardcode_minus_L=$hardcode_minus_L
38365
38366# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38367# into the resulting binary.
38368hardcode_shlibpath_var=$hardcode_shlibpath_var
38369
38370# Set to "yes" if building a shared library automatically hardcodes DIR
38371# into the library and all subsequent libraries and executables linked
38372# against it.
38373hardcode_automatic=$hardcode_automatic
38374
38375# Set to yes if linker adds runtime paths of dependent libraries
38376# to runtime path list.
38377inherit_rpath=$inherit_rpath
38378
38379# Whether libtool must link a program against all its dependency libraries.
38380link_all_deplibs=$link_all_deplibs
38381
38382# Set to "yes" if exported symbols are required.
38383always_export_symbols=$always_export_symbols
38384
38385# The commands to list exported symbols.
38386export_symbols_cmds=$lt_export_symbols_cmds
38387
38388# Symbols that should not be listed in the preloaded symbols.
38389exclude_expsyms=$lt_exclude_expsyms
38390
38391# Symbols that must always be exported.
38392include_expsyms=$lt_include_expsyms
38393
38394# Commands necessary for linking programs (against libraries) with templates.
38395prelink_cmds=$lt_prelink_cmds
38396
38397# Commands necessary for finishing linking programs.
38398postlink_cmds=$lt_postlink_cmds
38399
38400# Specify filename containing input files.
38401file_list_spec=$lt_file_list_spec
38402
38403# How to hardcode a shared library path into an executable.
38404hardcode_action=$hardcode_action
38405
38406# The directories searched by this compiler when creating a shared library.
38407compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38408
38409# Dependencies to place before and after the objects being linked to
38410# create a shared library.
38411predep_objects=$lt_predep_objects
38412postdep_objects=$lt_postdep_objects
38413predeps=$lt_predeps
38414postdeps=$lt_postdeps
38415
38416# The library search path used internally by the compiler when linking
38417# a shared library.
38418compiler_lib_search_path=$lt_compiler_lib_search_path
38419
38420# ### END LIBTOOL CONFIG
38421
38422_LT_EOF
38423
38424  case $host_os in
38425  aix3*)
38426    cat <<\_LT_EOF >> "$cfgfile"
38427# AIX sometimes has problems with the GCC collect2 program.  For some
38428# reason, if we set the COLLECT_NAMES environment variable, the problems
38429# vanish in a puff of smoke.
38430if test "X${COLLECT_NAMES+set}" != Xset; then
38431  COLLECT_NAMES=
38432  export COLLECT_NAMES
38433fi
38434_LT_EOF
38435    ;;
38436  esac
38437
38438
38439ltmain="$ac_aux_dir/ltmain.sh"
38440
38441
38442  # We use sed instead of cat because bash on DJGPP gets confused if
38443  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38444  # text mode, it properly converts lines to CR/LF.  This bash problem
38445  # is reportedly fixed, but why not run on old versions too?
38446  sed '$q' "$ltmain" >> "$cfgfile" \
38447     || (rm -f "$cfgfile"; exit 1)
38448
38449  if test x"$xsi_shell" = xyes; then
38450  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38451func_dirname ()\
38452{\
38453\    case ${1} in\
38454\      */*) func_dirname_result="${1%/*}${2}" ;;\
38455\      *  ) func_dirname_result="${3}" ;;\
38456\    esac\
38457} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38458  && mv -f "$cfgfile.tmp" "$cfgfile" \
38459    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38460test 0 -eq $? || _lt_function_replace_fail=:
38461
38462
38463  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38464func_basename ()\
38465{\
38466\    func_basename_result="${1##*/}"\
38467} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38468  && mv -f "$cfgfile.tmp" "$cfgfile" \
38469    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38470test 0 -eq $? || _lt_function_replace_fail=:
38471
38472
38473  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38474func_dirname_and_basename ()\
38475{\
38476\    case ${1} in\
38477\      */*) func_dirname_result="${1%/*}${2}" ;;\
38478\      *  ) func_dirname_result="${3}" ;;\
38479\    esac\
38480\    func_basename_result="${1##*/}"\
38481} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38482  && mv -f "$cfgfile.tmp" "$cfgfile" \
38483    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38484test 0 -eq $? || _lt_function_replace_fail=:
38485
38486
38487  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38488func_stripname ()\
38489{\
38490\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38491\    # positional parameters, so assign one to ordinary parameter first.\
38492\    func_stripname_result=${3}\
38493\    func_stripname_result=${func_stripname_result#"${1}"}\
38494\    func_stripname_result=${func_stripname_result%"${2}"}\
38495} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38496  && mv -f "$cfgfile.tmp" "$cfgfile" \
38497    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38498test 0 -eq $? || _lt_function_replace_fail=:
38499
38500
38501  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38502func_split_long_opt ()\
38503{\
38504\    func_split_long_opt_name=${1%%=*}\
38505\    func_split_long_opt_arg=${1#*=}\
38506} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38507  && mv -f "$cfgfile.tmp" "$cfgfile" \
38508    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38509test 0 -eq $? || _lt_function_replace_fail=:
38510
38511
38512  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38513func_split_short_opt ()\
38514{\
38515\    func_split_short_opt_arg=${1#??}\
38516\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38517} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38518  && mv -f "$cfgfile.tmp" "$cfgfile" \
38519    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38520test 0 -eq $? || _lt_function_replace_fail=:
38521
38522
38523  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38524func_lo2o ()\
38525{\
38526\    case ${1} in\
38527\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38528\      *)    func_lo2o_result=${1} ;;\
38529\    esac\
38530} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38531  && mv -f "$cfgfile.tmp" "$cfgfile" \
38532    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38533test 0 -eq $? || _lt_function_replace_fail=:
38534
38535
38536  sed -e '/^func_xform ()$/,/^} # func_xform /c\
38537func_xform ()\
38538{\
38539    func_xform_result=${1%.*}.lo\
38540} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38541  && mv -f "$cfgfile.tmp" "$cfgfile" \
38542    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38543test 0 -eq $? || _lt_function_replace_fail=:
38544
38545
38546  sed -e '/^func_arith ()$/,/^} # func_arith /c\
38547func_arith ()\
38548{\
38549    func_arith_result=$(( $* ))\
38550} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38551  && mv -f "$cfgfile.tmp" "$cfgfile" \
38552    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38553test 0 -eq $? || _lt_function_replace_fail=:
38554
38555
38556  sed -e '/^func_len ()$/,/^} # func_len /c\
38557func_len ()\
38558{\
38559    func_len_result=${#1}\
38560} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38561  && mv -f "$cfgfile.tmp" "$cfgfile" \
38562    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38563test 0 -eq $? || _lt_function_replace_fail=:
38564
38565fi
38566
38567if test x"$lt_shell_append" = xyes; then
38568  sed -e '/^func_append ()$/,/^} # func_append /c\
38569func_append ()\
38570{\
38571    eval "${1}+=\\${2}"\
38572} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38573  && mv -f "$cfgfile.tmp" "$cfgfile" \
38574    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38575test 0 -eq $? || _lt_function_replace_fail=:
38576
38577
38578  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38579func_append_quoted ()\
38580{\
38581\    func_quote_for_eval "${2}"\
38582\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38583} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38584  && mv -f "$cfgfile.tmp" "$cfgfile" \
38585    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38586test 0 -eq $? || _lt_function_replace_fail=:
38587
38588
38589  # Save a `func_append' function call where possible by direct use of '+='
38590  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38591    && mv -f "$cfgfile.tmp" "$cfgfile" \
38592      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38593  test 0 -eq $? || _lt_function_replace_fail=:
38594else
38595  # Save a `func_append' function call even when '+=' is not available
38596  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38597    && mv -f "$cfgfile.tmp" "$cfgfile" \
38598      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38599  test 0 -eq $? || _lt_function_replace_fail=:
38600fi
38601
38602if test x"$_lt_function_replace_fail" = x":"; then
38603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38604$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38605fi
38606
38607
38608   mv -f "$cfgfile" "$ofile" ||
38609    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38610  chmod +x "$ofile"
38611
38612
38613    cat <<_LT_EOF >> "$ofile"
38614
38615# ### BEGIN LIBTOOL TAG CONFIG: CXX
38616
38617# The linker used to build libraries.
38618LD=$lt_LD_CXX
38619
38620# How to create reloadable object files.
38621reload_flag=$lt_reload_flag_CXX
38622reload_cmds=$lt_reload_cmds_CXX
38623
38624# Commands used to build an old-style archive.
38625old_archive_cmds=$lt_old_archive_cmds_CXX
38626
38627# A language specific compiler.
38628CC=$lt_compiler_CXX
38629
38630# Is the compiler the GNU compiler?
38631with_gcc=$GCC_CXX
38632
38633# Compiler flag to turn off builtin functions.
38634no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38635
38636# Additional compiler flags for building library objects.
38637pic_flag=$lt_lt_prog_compiler_pic_CXX
38638
38639# How to pass a linker flag through the compiler.
38640wl=$lt_lt_prog_compiler_wl_CXX
38641
38642# Compiler flag to prevent dynamic linking.
38643link_static_flag=$lt_lt_prog_compiler_static_CXX
38644
38645# Does compiler simultaneously support -c and -o options?
38646compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38647
38648# Whether or not to add -lc for building shared libraries.
38649build_libtool_need_lc=$archive_cmds_need_lc_CXX
38650
38651# Whether or not to disallow shared libs when runtime libs are static.
38652allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38653
38654# Compiler flag to allow reflexive dlopens.
38655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38656
38657# Compiler flag to generate shared objects directly from archives.
38658whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38659
38660# Whether the compiler copes with passing no objects directly.
38661compiler_needs_object=$lt_compiler_needs_object_CXX
38662
38663# Create an old-style archive from a shared archive.
38664old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38665
38666# Create a temporary old-style archive to link instead of a shared archive.
38667old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38668
38669# Commands used to build a shared archive.
38670archive_cmds=$lt_archive_cmds_CXX
38671archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38672
38673# Commands used to build a loadable module if different from building
38674# a shared archive.
38675module_cmds=$lt_module_cmds_CXX
38676module_expsym_cmds=$lt_module_expsym_cmds_CXX
38677
38678# Whether we are building with GNU ld or not.
38679with_gnu_ld=$lt_with_gnu_ld_CXX
38680
38681# Flag that allows shared libraries with undefined symbols to be built.
38682allow_undefined_flag=$lt_allow_undefined_flag_CXX
38683
38684# Flag that enforces no undefined symbols.
38685no_undefined_flag=$lt_no_undefined_flag_CXX
38686
38687# Flag to hardcode \$libdir into a binary during linking.
38688# This must work even if \$libdir does not exist
38689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38690
38691# Whether we need a single "-rpath" flag with a separated argument.
38692hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38693
38694# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38695# DIR into the resulting binary.
38696hardcode_direct=$hardcode_direct_CXX
38697
38698# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38699# DIR into the resulting binary and the resulting library dependency is
38700# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38701# library is relocated.
38702hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38703
38704# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38705# into the resulting binary.
38706hardcode_minus_L=$hardcode_minus_L_CXX
38707
38708# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38709# into the resulting binary.
38710hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38711
38712# Set to "yes" if building a shared library automatically hardcodes DIR
38713# into the library and all subsequent libraries and executables linked
38714# against it.
38715hardcode_automatic=$hardcode_automatic_CXX
38716
38717# Set to yes if linker adds runtime paths of dependent libraries
38718# to runtime path list.
38719inherit_rpath=$inherit_rpath_CXX
38720
38721# Whether libtool must link a program against all its dependency libraries.
38722link_all_deplibs=$link_all_deplibs_CXX
38723
38724# Set to "yes" if exported symbols are required.
38725always_export_symbols=$always_export_symbols_CXX
38726
38727# The commands to list exported symbols.
38728export_symbols_cmds=$lt_export_symbols_cmds_CXX
38729
38730# Symbols that should not be listed in the preloaded symbols.
38731exclude_expsyms=$lt_exclude_expsyms_CXX
38732
38733# Symbols that must always be exported.
38734include_expsyms=$lt_include_expsyms_CXX
38735
38736# Commands necessary for linking programs (against libraries) with templates.
38737prelink_cmds=$lt_prelink_cmds_CXX
38738
38739# Commands necessary for finishing linking programs.
38740postlink_cmds=$lt_postlink_cmds_CXX
38741
38742# Specify filename containing input files.
38743file_list_spec=$lt_file_list_spec_CXX
38744
38745# How to hardcode a shared library path into an executable.
38746hardcode_action=$hardcode_action_CXX
38747
38748# The directories searched by this compiler when creating a shared library.
38749compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38750
38751# Dependencies to place before and after the objects being linked to
38752# create a shared library.
38753predep_objects=$lt_predep_objects_CXX
38754postdep_objects=$lt_postdep_objects_CXX
38755predeps=$lt_predeps_CXX
38756postdeps=$lt_postdeps_CXX
38757
38758# The library search path used internally by the compiler when linking
38759# a shared library.
38760compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38761
38762# ### END LIBTOOL TAG CONFIG: CXX
38763_LT_EOF
38764
38765 ;;
38766    "magick.sh.in":C) chmod +x magick.sh ;;
38767    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38768    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38769    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38770    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38771
38772  esac
38773done # for ac_tag
38774
38775
38776as_fn_exit 0
38777_ACEOF
38778ac_clean_files=$ac_clean_files_save
38779
38780test $ac_write_fail = 0 ||
38781  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38782
38783
38784# configure is writing to config.log, and then calls config.status.
38785# config.status does its own redirection, appending to config.log.
38786# Unfortunately, on DOS this fails, as config.log is still kept open
38787# by configure, so config.status won't be able to write to it; its
38788# output is simply discarded.  So we exec the FD to /dev/null,
38789# effectively closing config.log, so it can be properly (re)opened and
38790# appended to by config.status.  When coming back to configure, we
38791# need to make the FD available again.
38792if test "$no_create" != yes; then
38793  ac_cs_success=:
38794  ac_config_status_args=
38795  test "$silent" = yes &&
38796    ac_config_status_args="$ac_config_status_args --quiet"
38797  exec 5>/dev/null
38798  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38799  exec 5>>config.log
38800  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38801  # would make configure fail if this is the last instruction.
38802  $ac_cs_success || as_fn_exit 1
38803fi
38804if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38805  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38806$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38807fi
38808
38809
38810rm -f magick-version
38811
38812result_dejavu_font_dir='none'
38813if test "${dejavu_font_dir}x" != 'x'; then
38814    result_dejavu_font_dir=$dejavu_font_dir
38815fi
38816
38817result_ghostscript_font_dir='none'
38818if test "${ghostscript_font_dir}x" != 'x'; then
38819    result_ghostscript_font_dir=$ghostscript_font_dir
38820fi
38821
38822result_windows_font_dir='none'
38823if test "${windows_font_dir}x" != 'x'; then
38824    result_windows_font_dir=${windows_font_dir}
38825fi
38826
38827{ $as_echo "$as_me:${as_lineno-$LINENO}:
38828ImageMagick is configured as follows. Please verify that this configuration
38829matches your expectations.
38830
38831Host system type: $host
38832Build system type: $build
38833
38834                  Option                        Value
38835-------------------------------------------------------------------------------
38836Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38837Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38838Module support    --with-modules=$with_modules		$with_modules
38839GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38840Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38841High Dynamic Range Imagery
38842                  --enable-hdri=$enable_hdri		$enable_hdri
38843
38844Delegate Configuration:
38845BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38846Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38847Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38848DJVU              --with-djvu=$with_djvu		$have_djvu
38849DPS               --with-dps=$with_dps		$have_dps
38850FFTW              --with-fftw=$with_fftw		$have_fftw
38851FlashPIX          --with-fpx=$with_fpx		$have_fpx
38852FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38853FreeType          --with-freetype=$with_freetype		$have_freetype
38854GhostPCL          None				$PCLDelegate ($PCLVersion)
38855GhostXPS          None				$XPSDelegate ($XPSVersion)
38856Ghostscript       None				$PSDelegate ($GSVersion)
38857Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38858Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38859Graphviz          --with-gvc=$with_gvc		$have_gvc
38860JBIG              --with-jbig=$with_jbig		$have_jbig
38861JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38862JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38863LCMS v1           --with-lcms=$with_lcms		$have_lcms
38864LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38865LQR               --with-lqr=$with_lqr		$have_lqr
38866LZMA              --with-lzma=$with_lzma		$have_lzma
38867Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38868OpenEXR           --with-openexr=$with_openexr		$have_openexr
38869PANGO             --with-pango=$with_pango		$have_pango
38870PERL              --with-perl=$with_perl		$have_perl
38871PNG               --with-png=$with_png		$have_png
38872RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38873TIFF              --with-tiff=$with_tiff		$have_tiff
38874WEBP              --with-webp=$with_webp		$have_webp
38875Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38876WMF               --with-wmf=$with_wmf		$have_wmf
38877X11               --with-x=$with_x			$have_x
38878XML               --with-xml=$with_xml		$have_xml
38879ZLIB              --with-zlib=$with_zlib		$have_zlib
38880
38881X11 Configuration:
38882      X_CFLAGS        = $X_CFLAGS
38883      X_PRE_LIBS      = $X_PRE_LIBS
38884      X_LIBS          = $X_LIBS
38885      X_EXTRA_LIBS    = $X_EXTRA_LIBS
38886
38887Options used to compile and link:
38888  PREFIX          = $PREFIX_DIR
38889  EXEC-PREFIX     = $EXEC_PREFIX_DIR
38890  VERSION         = $PACKAGE_VERSION
38891  CC              = $CC
38892  CFLAGS          = $CFLAGS
38893  CPPFLAGS        = $MAGICK_CPPFLAGS
38894  PCFLAGS         = $MAGICK_PCFLAGS
38895  DEFS            = $DEFS
38896  LDFLAGS         = $LDFLAGS
38897  MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38898  LIBS            = $MAGICK_LIBS
38899  CXX             = $CXX
38900  CXXFLAGS        = $CXXFLAGS
38901  FEATURES        = $MAGICK_FEATURES
38902" >&5
38903$as_echo "$as_me:
38904ImageMagick is configured as follows. Please verify that this configuration
38905matches your expectations.
38906
38907Host system type: $host
38908Build system type: $build
38909
38910                  Option                        Value
38911-------------------------------------------------------------------------------
38912Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38913Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38914Module support    --with-modules=$with_modules		$with_modules
38915GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38916Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38917High Dynamic Range Imagery
38918                  --enable-hdri=$enable_hdri		$enable_hdri
38919
38920Delegate Configuration:
38921BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38922Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38923Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38924DJVU              --with-djvu=$with_djvu		$have_djvu
38925DPS               --with-dps=$with_dps		$have_dps
38926FFTW              --with-fftw=$with_fftw		$have_fftw
38927FlashPIX          --with-fpx=$with_fpx		$have_fpx
38928FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38929FreeType          --with-freetype=$with_freetype		$have_freetype
38930GhostPCL          None				$PCLDelegate ($PCLVersion)
38931GhostXPS          None				$XPSDelegate ($XPSVersion)
38932Ghostscript       None				$PSDelegate ($GSVersion)
38933Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38934Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38935Graphviz          --with-gvc=$with_gvc		$have_gvc
38936JBIG              --with-jbig=$with_jbig		$have_jbig
38937JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38938JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38939LCMS v1           --with-lcms=$with_lcms		$have_lcms
38940LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38941LQR               --with-lqr=$with_lqr		$have_lqr
38942LZMA              --with-lzma=$with_lzma		$have_lzma
38943Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38944OpenEXR           --with-openexr=$with_openexr		$have_openexr
38945PANGO             --with-pango=$with_pango		$have_pango
38946PERL              --with-perl=$with_perl		$have_perl
38947PNG               --with-png=$with_png		$have_png
38948RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38949TIFF              --with-tiff=$with_tiff		$have_tiff
38950WEBP              --with-webp=$with_webp		$have_webp
38951Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38952WMF               --with-wmf=$with_wmf		$have_wmf
38953X11               --with-x=$with_x			$have_x
38954XML               --with-xml=$with_xml		$have_xml
38955ZLIB              --with-zlib=$with_zlib		$have_zlib
38956
38957X11 Configuration:
38958      X_CFLAGS        = $X_CFLAGS
38959      X_PRE_LIBS      = $X_PRE_LIBS
38960      X_LIBS          = $X_LIBS
38961      X_EXTRA_LIBS    = $X_EXTRA_LIBS
38962
38963Options used to compile and link:
38964  PREFIX          = $PREFIX_DIR
38965  EXEC-PREFIX     = $EXEC_PREFIX_DIR
38966  VERSION         = $PACKAGE_VERSION
38967  CC              = $CC
38968  CFLAGS          = $CFLAGS
38969  CPPFLAGS        = $MAGICK_CPPFLAGS
38970  PCFLAGS         = $MAGICK_PCFLAGS
38971  DEFS            = $DEFS
38972  LDFLAGS         = $LDFLAGS
38973  MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38974  LIBS            = $MAGICK_LIBS
38975  CXX             = $CXX
38976  CXXFLAGS        = $CXXFLAGS
38977  FEATURES        = $MAGICK_FEATURES
38978" >&6;}
38979