configure revision 39dfe0003b308045347a77556f25dda8ec8b39b3
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
887MAGICK_LT_RELEASE_OPTS
888QUANTUM_DEPTH
889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
894MAGICK_HDRI
895DLLDFLAGS
896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
920LIBTOOL_DEPS
921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
927MANIFEST_TOOL
928RANLIB
929ac_ct_AR
930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
938LFS_CPPFLAGS
939CL_LIBS
940CL_CFLAGS
941OPENMP_CFLAGS
942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
946SHAREARCH_DIR
947INCLUDEARCH_DIR
948WinPathScript
949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
957GDI32_LIBS
958PKG_CONFIG
959PRTDIAG
960LN_S
961LD
962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
967ac_ct_CXX
968CXXFLAGS
969CXX
970EGREP
971GREP
972CPP
973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
976am__nodep
977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
1003DOC_DIR
1004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
1014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
1016AM_DEFAULT_V
1017AM_V
1018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
1041PACKAGE_VERSION_ADDENDUM
1042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
1047PACKAGE_PERL_VERSION
1048MAGICK_SVN_REVISION
1049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
1051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
1054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
1057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
1101PACKAGE_URL
1102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
1112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
1116with_gcc_arch
1117enable_bounds_checking
1118enable_osx_universal_binary
1119with_includearch_dir
1120with_sharearch_dir
1121with_threads
1122enable_openmp
1123enable_opencl
1124enable_largefile
1125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
1129with_sysroot
1130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
1135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
1140enable_zero_configuration
1141enable_hdri
1142enable_assert
1143enable_maintainer_mode
1144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
1150enable_legacy_support
1151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
1155with_package_release_name
1156with_perl
1157with_perl_options
1158with_umem
1159with_libstdc
1160with_bzlib
1161with_x
1162with_zlib
1163with_autotrace
1164with_dps
1165with_djvu
1166with_dejavu_font_dir
1167with_fftw
1168with_fpx
1169with_fontconfig
1170with_freetype
1171with_gslib
1172with_fontpath
1173with_gs_font_dir
1174with_gvc
1175with_jbig
1176with_jpeg
1177with_jp2
1178with_lcms
1179with_lcms2
1180with_lqr
1181with_lzma
1182with_openexr
1183with_pango
1184with_png
1185with_rsvg
1186with_tiff
1187with_webp
1188with_windows_font_dir
1189with_wmf
1190with_xml
1191'
1192      ac_precious_vars='build_alias
1193host_alias
1194target_alias
1195CC
1196CFLAGS
1197LDFLAGS
1198LIBS
1199CPPFLAGS
1200CPP
1201CXX
1202CXXFLAGS
1203CCC
1204PKG_CONFIG
1205CXXCPP
1206XMKMF
1207AUTOTRACE_CFLAGS
1208AUTOTRACE_LIBS
1209FONTCONFIG_CFLAGS
1210FONTCONFIG_LIBS
1211GVC_CFLAGS
1212GVC_LIBS
1213LQR_CFLAGS
1214LQR_LIBS
1215LZMA_CFLAGS
1216LZMA_LIBS
1217OPENEXR_CFLAGS
1218OPENEXR_LIBS
1219PANGO_CFLAGS
1220PANGO_LIBS
1221RSVG_CFLAGS
1222RSVG_LIBS
1223CAIRO_SVG_CFLAGS
1224CAIRO_SVG_LIBS'
1225
1226
1227# Initialize some variables set by options.
1228ac_init_help=
1229ac_init_version=false
1230ac_unrecognized_opts=
1231ac_unrecognized_sep=
1232# The variables have the same names as the options, with
1233# dashes changed to underlines.
1234cache_file=/dev/null
1235exec_prefix=NONE
1236no_create=
1237no_recursion=
1238prefix=NONE
1239program_prefix=NONE
1240program_suffix=NONE
1241program_transform_name=s,x,x,
1242silent=
1243site=
1244srcdir=
1245verbose=
1246x_includes=NONE
1247x_libraries=NONE
1248
1249# Installation directory options.
1250# These are left unexpanded so users can "make install exec_prefix=/foo"
1251# and all the variables that are supposed to be based on exec_prefix
1252# by default will actually change.
1253# Use braces instead of parens because sh, perl, etc. also accept them.
1254# (The list follows the same order as the GNU Coding Standards.)
1255bindir='${exec_prefix}/bin'
1256sbindir='${exec_prefix}/sbin'
1257libexecdir='${exec_prefix}/libexec'
1258datarootdir='${prefix}/share'
1259datadir='${datarootdir}'
1260sysconfdir='${prefix}/etc'
1261sharedstatedir='${prefix}/com'
1262localstatedir='${prefix}/var'
1263includedir='${prefix}/include'
1264oldincludedir='/usr/include'
1265docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1266infodir='${datarootdir}/info'
1267htmldir='${docdir}'
1268dvidir='${docdir}'
1269pdfdir='${docdir}'
1270psdir='${docdir}'
1271libdir='${exec_prefix}/lib'
1272localedir='${datarootdir}/locale'
1273mandir='${datarootdir}/man'
1274
1275ac_prev=
1276ac_dashdash=
1277for ac_option
1278do
1279  # If the previous option needs an argument, assign it.
1280  if test -n "$ac_prev"; then
1281    eval $ac_prev=\$ac_option
1282    ac_prev=
1283    continue
1284  fi
1285
1286  case $ac_option in
1287  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1288  *=)   ac_optarg= ;;
1289  *)    ac_optarg=yes ;;
1290  esac
1291
1292  # Accept the important Cygnus configure options, so we can diagnose typos.
1293
1294  case $ac_dashdash$ac_option in
1295  --)
1296    ac_dashdash=yes ;;
1297
1298  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1299    ac_prev=bindir ;;
1300  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1301    bindir=$ac_optarg ;;
1302
1303  -build | --build | --buil | --bui | --bu)
1304    ac_prev=build_alias ;;
1305  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1306    build_alias=$ac_optarg ;;
1307
1308  -cache-file | --cache-file | --cache-fil | --cache-fi \
1309  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1310    ac_prev=cache_file ;;
1311  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1312  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1313    cache_file=$ac_optarg ;;
1314
1315  --config-cache | -C)
1316    cache_file=config.cache ;;
1317
1318  -datadir | --datadir | --datadi | --datad)
1319    ac_prev=datadir ;;
1320  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1321    datadir=$ac_optarg ;;
1322
1323  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1324  | --dataroo | --dataro | --datar)
1325    ac_prev=datarootdir ;;
1326  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1327  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1328    datarootdir=$ac_optarg ;;
1329
1330  -disable-* | --disable-*)
1331    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1332    # Reject names that are not valid shell variable names.
1333    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334      as_fn_error $? "invalid feature name: $ac_useropt"
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"enable_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval enable_$ac_useropt=no ;;
1345
1346  -docdir | --docdir | --docdi | --doc | --do)
1347    ac_prev=docdir ;;
1348  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1349    docdir=$ac_optarg ;;
1350
1351  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1352    ac_prev=dvidir ;;
1353  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1354    dvidir=$ac_optarg ;;
1355
1356  -enable-* | --enable-*)
1357    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1358    # Reject names that are not valid shell variable names.
1359    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360      as_fn_error $? "invalid feature name: $ac_useropt"
1361    ac_useropt_orig=$ac_useropt
1362    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363    case $ac_user_opts in
1364      *"
1365"enable_$ac_useropt"
1366"*) ;;
1367      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1368	 ac_unrecognized_sep=', ';;
1369    esac
1370    eval enable_$ac_useropt=\$ac_optarg ;;
1371
1372  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1373  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1374  | --exec | --exe | --ex)
1375    ac_prev=exec_prefix ;;
1376  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1377  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1378  | --exec=* | --exe=* | --ex=*)
1379    exec_prefix=$ac_optarg ;;
1380
1381  -gas | --gas | --ga | --g)
1382    # Obsolete; use --with-gas.
1383    with_gas=yes ;;
1384
1385  -help | --help | --hel | --he | -h)
1386    ac_init_help=long ;;
1387  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1388    ac_init_help=recursive ;;
1389  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1390    ac_init_help=short ;;
1391
1392  -host | --host | --hos | --ho)
1393    ac_prev=host_alias ;;
1394  -host=* | --host=* | --hos=* | --ho=*)
1395    host_alias=$ac_optarg ;;
1396
1397  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1398    ac_prev=htmldir ;;
1399  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1400  | --ht=*)
1401    htmldir=$ac_optarg ;;
1402
1403  -includedir | --includedir | --includedi | --included | --include \
1404  | --includ | --inclu | --incl | --inc)
1405    ac_prev=includedir ;;
1406  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1407  | --includ=* | --inclu=* | --incl=* | --inc=*)
1408    includedir=$ac_optarg ;;
1409
1410  -infodir | --infodir | --infodi | --infod | --info | --inf)
1411    ac_prev=infodir ;;
1412  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1413    infodir=$ac_optarg ;;
1414
1415  -libdir | --libdir | --libdi | --libd)
1416    ac_prev=libdir ;;
1417  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1418    libdir=$ac_optarg ;;
1419
1420  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1421  | --libexe | --libex | --libe)
1422    ac_prev=libexecdir ;;
1423  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1424  | --libexe=* | --libex=* | --libe=*)
1425    libexecdir=$ac_optarg ;;
1426
1427  -localedir | --localedir | --localedi | --localed | --locale)
1428    ac_prev=localedir ;;
1429  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1430    localedir=$ac_optarg ;;
1431
1432  -localstatedir | --localstatedir | --localstatedi | --localstated \
1433  | --localstate | --localstat | --localsta | --localst | --locals)
1434    ac_prev=localstatedir ;;
1435  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1436  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1437    localstatedir=$ac_optarg ;;
1438
1439  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1440    ac_prev=mandir ;;
1441  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1442    mandir=$ac_optarg ;;
1443
1444  -nfp | --nfp | --nf)
1445    # Obsolete; use --without-fp.
1446    with_fp=no ;;
1447
1448  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1449  | --no-cr | --no-c | -n)
1450    no_create=yes ;;
1451
1452  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1453  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1454    no_recursion=yes ;;
1455
1456  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1457  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1458  | --oldin | --oldi | --old | --ol | --o)
1459    ac_prev=oldincludedir ;;
1460  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1461  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1462  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1463    oldincludedir=$ac_optarg ;;
1464
1465  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1466    ac_prev=prefix ;;
1467  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1468    prefix=$ac_optarg ;;
1469
1470  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1471  | --program-pre | --program-pr | --program-p)
1472    ac_prev=program_prefix ;;
1473  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1474  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1475    program_prefix=$ac_optarg ;;
1476
1477  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1478  | --program-suf | --program-su | --program-s)
1479    ac_prev=program_suffix ;;
1480  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1481  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1482    program_suffix=$ac_optarg ;;
1483
1484  -program-transform-name | --program-transform-name \
1485  | --program-transform-nam | --program-transform-na \
1486  | --program-transform-n | --program-transform- \
1487  | --program-transform | --program-transfor \
1488  | --program-transfo | --program-transf \
1489  | --program-trans | --program-tran \
1490  | --progr-tra | --program-tr | --program-t)
1491    ac_prev=program_transform_name ;;
1492  -program-transform-name=* | --program-transform-name=* \
1493  | --program-transform-nam=* | --program-transform-na=* \
1494  | --program-transform-n=* | --program-transform-=* \
1495  | --program-transform=* | --program-transfor=* \
1496  | --program-transfo=* | --program-transf=* \
1497  | --program-trans=* | --program-tran=* \
1498  | --progr-tra=* | --program-tr=* | --program-t=*)
1499    program_transform_name=$ac_optarg ;;
1500
1501  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1502    ac_prev=pdfdir ;;
1503  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1504    pdfdir=$ac_optarg ;;
1505
1506  -psdir | --psdir | --psdi | --psd | --ps)
1507    ac_prev=psdir ;;
1508  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1509    psdir=$ac_optarg ;;
1510
1511  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512  | -silent | --silent | --silen | --sile | --sil)
1513    silent=yes ;;
1514
1515  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1516    ac_prev=sbindir ;;
1517  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1518  | --sbi=* | --sb=*)
1519    sbindir=$ac_optarg ;;
1520
1521  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1522  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1523  | --sharedst | --shareds | --shared | --share | --shar \
1524  | --sha | --sh)
1525    ac_prev=sharedstatedir ;;
1526  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1527  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1528  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1529  | --sha=* | --sh=*)
1530    sharedstatedir=$ac_optarg ;;
1531
1532  -site | --site | --sit)
1533    ac_prev=site ;;
1534  -site=* | --site=* | --sit=*)
1535    site=$ac_optarg ;;
1536
1537  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1538    ac_prev=srcdir ;;
1539  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1540    srcdir=$ac_optarg ;;
1541
1542  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1543  | --syscon | --sysco | --sysc | --sys | --sy)
1544    ac_prev=sysconfdir ;;
1545  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1546  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1547    sysconfdir=$ac_optarg ;;
1548
1549  -target | --target | --targe | --targ | --tar | --ta | --t)
1550    ac_prev=target_alias ;;
1551  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1552    target_alias=$ac_optarg ;;
1553
1554  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1555    verbose=yes ;;
1556
1557  -version | --version | --versio | --versi | --vers | -V)
1558    ac_init_version=: ;;
1559
1560  -with-* | --with-*)
1561    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1562    # Reject names that are not valid shell variable names.
1563    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1564      as_fn_error $? "invalid package name: $ac_useropt"
1565    ac_useropt_orig=$ac_useropt
1566    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567    case $ac_user_opts in
1568      *"
1569"with_$ac_useropt"
1570"*) ;;
1571      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1572	 ac_unrecognized_sep=', ';;
1573    esac
1574    eval with_$ac_useropt=\$ac_optarg ;;
1575
1576  -without-* | --without-*)
1577    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1578    # Reject names that are not valid shell variable names.
1579    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1580      as_fn_error $? "invalid package name: $ac_useropt"
1581    ac_useropt_orig=$ac_useropt
1582    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1583    case $ac_user_opts in
1584      *"
1585"with_$ac_useropt"
1586"*) ;;
1587      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1588	 ac_unrecognized_sep=', ';;
1589    esac
1590    eval with_$ac_useropt=no ;;
1591
1592  --x)
1593    # Obsolete; use --with-x.
1594    with_x=yes ;;
1595
1596  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1597  | --x-incl | --x-inc | --x-in | --x-i)
1598    ac_prev=x_includes ;;
1599  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1600  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1601    x_includes=$ac_optarg ;;
1602
1603  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1604  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1605    ac_prev=x_libraries ;;
1606  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1607  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1608    x_libraries=$ac_optarg ;;
1609
1610  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1611Try \`$0 --help' for more information"
1612    ;;
1613
1614  *=*)
1615    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1616    # Reject names that are not valid shell variable names.
1617    case $ac_envvar in #(
1618      '' | [0-9]* | *[!_$as_cr_alnum]* )
1619      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1620    esac
1621    eval $ac_envvar=\$ac_optarg
1622    export $ac_envvar ;;
1623
1624  *)
1625    # FIXME: should be removed in autoconf 3.0.
1626    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1627    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1628      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1629    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1630    ;;
1631
1632  esac
1633done
1634
1635if test -n "$ac_prev"; then
1636  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1637  as_fn_error $? "missing argument to $ac_option"
1638fi
1639
1640if test -n "$ac_unrecognized_opts"; then
1641  case $enable_option_checking in
1642    no) ;;
1643    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1644    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1645  esac
1646fi
1647
1648# Check all directory arguments for consistency.
1649for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1650		datadir sysconfdir sharedstatedir localstatedir includedir \
1651		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1652		libdir localedir mandir
1653do
1654  eval ac_val=\$$ac_var
1655  # Remove trailing slashes.
1656  case $ac_val in
1657    */ )
1658      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1659      eval $ac_var=\$ac_val;;
1660  esac
1661  # Be sure to have absolute directory names.
1662  case $ac_val in
1663    [\\/$]* | ?:[\\/]* )  continue;;
1664    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1665  esac
1666  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1667done
1668
1669# There might be people who depend on the old broken behavior: `$host'
1670# used to hold the argument of --host etc.
1671# FIXME: To remove some day.
1672build=$build_alias
1673host=$host_alias
1674target=$target_alias
1675
1676# FIXME: To remove some day.
1677if test "x$host_alias" != x; then
1678  if test "x$build_alias" = x; then
1679    cross_compiling=maybe
1680  elif test "x$build_alias" != "x$host_alias"; then
1681    cross_compiling=yes
1682  fi
1683fi
1684
1685ac_tool_prefix=
1686test -n "$host_alias" && ac_tool_prefix=$host_alias-
1687
1688test "$silent" = yes && exec 6>/dev/null
1689
1690
1691ac_pwd=`pwd` && test -n "$ac_pwd" &&
1692ac_ls_di=`ls -di .` &&
1693ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1694  as_fn_error $? "working directory cannot be determined"
1695test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1696  as_fn_error $? "pwd does not report name of working directory"
1697
1698
1699# Find the source files, if location was not specified.
1700if test -z "$srcdir"; then
1701  ac_srcdir_defaulted=yes
1702  # Try the directory containing this script, then the parent directory.
1703  ac_confdir=`$as_dirname -- "$as_myself" ||
1704$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1705	 X"$as_myself" : 'X\(//\)[^/]' \| \
1706	 X"$as_myself" : 'X\(//\)$' \| \
1707	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1708$as_echo X"$as_myself" |
1709    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1710	    s//\1/
1711	    q
1712	  }
1713	  /^X\(\/\/\)[^/].*/{
1714	    s//\1/
1715	    q
1716	  }
1717	  /^X\(\/\/\)$/{
1718	    s//\1/
1719	    q
1720	  }
1721	  /^X\(\/\).*/{
1722	    s//\1/
1723	    q
1724	  }
1725	  s/.*/./; q'`
1726  srcdir=$ac_confdir
1727  if test ! -r "$srcdir/$ac_unique_file"; then
1728    srcdir=..
1729  fi
1730else
1731  ac_srcdir_defaulted=no
1732fi
1733if test ! -r "$srcdir/$ac_unique_file"; then
1734  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1735  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1736fi
1737ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1738ac_abs_confdir=`(
1739	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1740	pwd)`
1741# When building in place, set srcdir=.
1742if test "$ac_abs_confdir" = "$ac_pwd"; then
1743  srcdir=.
1744fi
1745# Remove unnecessary trailing slashes from srcdir.
1746# Double slashes in file names in object file debugging info
1747# mess up M-x gdb in Emacs.
1748case $srcdir in
1749*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1750esac
1751for ac_var in $ac_precious_vars; do
1752  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1753  eval ac_env_${ac_var}_value=\$${ac_var}
1754  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1755  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1756done
1757
1758#
1759# Report the --help message.
1760#
1761if test "$ac_init_help" = "long"; then
1762  # Omit some internal or obsolete options to make the list less imposing.
1763  # This message is too long to be a string in the A/UX 3.1 sh.
1764  cat <<_ACEOF
1765\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
1766
1767Usage: $0 [OPTION]... [VAR=VALUE]...
1768
1769To assign environment variables (e.g., CC, CFLAGS...), specify them as
1770VAR=VALUE.  See below for descriptions of some of the useful variables.
1771
1772Defaults for the options are specified in brackets.
1773
1774Configuration:
1775  -h, --help              display this help and exit
1776      --help=short        display options specific to this package
1777      --help=recursive    display the short help of all the included packages
1778  -V, --version           display version information and exit
1779  -q, --quiet, --silent   do not print \`checking ...' messages
1780      --cache-file=FILE   cache test results in FILE [disabled]
1781  -C, --config-cache      alias for \`--cache-file=config.cache'
1782  -n, --no-create         do not create output files
1783      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1784
1785Installation directories:
1786  --prefix=PREFIX         install architecture-independent files in PREFIX
1787                          [$ac_default_prefix]
1788  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1789                          [PREFIX]
1790
1791By default, \`make install' will install all the files in
1792\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1793an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1794for instance \`--prefix=\$HOME'.
1795
1796For better control, use the options below.
1797
1798Fine tuning of the installation directories:
1799  --bindir=DIR            user executables [EPREFIX/bin]
1800  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1801  --libexecdir=DIR        program executables [EPREFIX/libexec]
1802  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1803  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1804  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1805  --libdir=DIR            object code libraries [EPREFIX/lib]
1806  --includedir=DIR        C header files [PREFIX/include]
1807  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1808  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1809  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1810  --infodir=DIR           info documentation [DATAROOTDIR/info]
1811  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1812  --mandir=DIR            man documentation [DATAROOTDIR/man]
1813  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1814  --htmldir=DIR           html documentation [DOCDIR]
1815  --dvidir=DIR            dvi documentation [DOCDIR]
1816  --pdfdir=DIR            pdf documentation [DOCDIR]
1817  --psdir=DIR             ps documentation [DOCDIR]
1818_ACEOF
1819
1820  cat <<\_ACEOF
1821
1822Program names:
1823  --program-prefix=PREFIX            prepend PREFIX to installed program names
1824  --program-suffix=SUFFIX            append SUFFIX to installed program names
1825  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1826
1827X features:
1828  --x-includes=DIR    X include files are in DIR
1829  --x-libraries=DIR   X library files are in DIR
1830
1831System types:
1832  --build=BUILD     configure for building on BUILD [guessed]
1833  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1834  --target=TARGET   configure for building compilers for TARGET [HOST]
1835_ACEOF
1836fi
1837
1838if test -n "$ac_init_help"; then
1839  case $ac_init_help in
1840     short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
1841   esac
1842  cat <<\_ACEOF
1843
1844Optional Features:
1845  --disable-option-checking  ignore unrecognized --enable/--with options
1846  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1847  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1848  --enable-silent-rules   less verbose build output (undo: "make V=1")
1849  --disable-silent-rules  verbose build output (undo: "make V=0")
1850  --enable-dependency-tracking
1851                          do not reject slow dependency extractors
1852  --disable-dependency-tracking
1853                          speeds up one-time build
1854  --enable-bounds-checking
1855                          enable run-time bounds-checking
1856  --enable-osx-universal-binary
1857                          build universal binary on OS X [[default=no]]
1858  --disable-openmp        do not use OpenMP
1859  --enable-opencl         enable OpenCL support
1860  --disable-largefile     omit support for large files
1861  --enable-shared[=PKGS]  build shared libraries [default=yes]
1862  --enable-static[=PKGS]  build static libraries [default=yes]
1863  --enable-fast-install[=PKGS]
1864                          optimize for fast installation [default=yes]
1865  --disable-libtool-lock  avoid locking (might break parallel builds)
1866  --enable-ltdl-install   install libltdl
1867  --enable-delegate-build look for delegate libraries in build directory
1868  --disable-deprecated    exclude deprecated methods in MagickCore and
1869                          MagickWand APIs
1870  --disable-installed     Formally install ImageMagick under PREFIX
1871  --disable-cipher        disable enciphering and deciphering image pixels
1872  --enable-zero-configuration
1873                          enable self-contained, embeddable,
1874                          zero-configuration ImageMagick
1875  --disable-hdri          accurately represent the wide range of intensity
1876                          levels found in real scenes
1877  --disable-assert        disable assert() statements in build
1878  --enable-maintainer-mode
1879                          enable make rules and dependencies not useful (and
1880                          sometimes confusing) to the casual installer
1881  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1882  --enable-efence         enable 'efence' memory debug support
1883  --enable-prof           enable 'prof' profiling support
1884  --enable-gprof          enable 'gprof' profiling support
1885  --enable-gcov           enable 'gcov' profiling support
1886  --enable-legacy-support  install legacy command-line utilities (default disabled)
1887  --disable-assert        turn off assertions
1888
1889Optional Packages:
1890  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1891  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1892  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1893  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1894  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1895                          instead of guessing
1896  --includearch-dir=DIR   ARCH specific include directory
1897  --sharearch-dir=DIR     ARCH specific config directory
1898  --without-threads       disable threads support
1899  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1900                          both]
1901  --with-sysroot=DIR Search for dependent libraries within DIR
1902                        (or the compiler's sysroot if not specified).
1903  --with-included-ltdl    use the GNU ltdl sources included here
1904  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1905  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1906  --with-modules          enable building dynamically loadable modules
1907  --with-method-prefix=PREFIX
1908                          prefix MagickCore API methods
1909  --with-quantum-depth=DEPTH
1910                          number of bits in a pixel quantum (default 16)
1911  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1912                          memory)
1913  --with-frozenpaths      freeze delegate paths
1914  --without-magick-plus-plus
1915                          disable build/install of Magick++
1916  --with-package-release-name=NAME
1917                          encode this name into the shared library
1918  --with-perl             enable build/install of PerlMagick
1919  --with-perl-options=OPTIONS
1920                          options to pass on command-line when generating
1921                          PerlMagick build file
1922  --with-umem             enable umem memory allocation library support
1923  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1924  --without-bzlib         disable BZLIB support
1925  --with-x                use the X Window System
1926  --without-zlib          disable ZLIB support
1927  --with-autotrace        enable autotrace support
1928  --without-dps           disable Display Postscript support
1929  --without-djvu          disable DjVu support
1930  --with-dejavu-font-dir=DIR
1931                          DejaVu font directory
1932  --without-fftw          disable FFTW support
1933  --without-fpx           disable FlashPIX support
1934  --without-fontconfig    disable fontconfig support
1935  --without-freetype      disable Freetype support
1936  --without-gslib         enable Ghostscript library support
1937  --with-fontpath=DIR     prepend to default font search path
1938  --with-gs-font-dir=DIR  Ghostscript font directory
1939  --with-gvc              disable GVC support
1940  --without-jbig          disable JBIG support
1941  --without-jpeg          disable JPEG support
1942  --without-jp2           disable JPEG-2000 support
1943  --without-lcms          disable lcms (v1.1X) support
1944  --without-lcms2         disable lcms (v2.X) support
1945  --without-lqr           disable Liquid Rescale support
1946  --without-lzma          disable LZMA support
1947  --without-openexr       disable OpenEXR support
1948  --without-pango         disable PANGO support
1949  --without-png           disable PNG support
1950  --without-rsvg          enable RSVG support
1951  --without-tiff          disable TIFF support
1952  --without-webp          disable WEBP support
1953  --with-windows-font-dir=DIR
1954                          directory containing MS-Windows fonts
1955  --with-wmf              enable WMF support
1956  --without-xml           disable XML support
1957
1958Some influential environment variables:
1959  CC          C compiler command
1960  CFLAGS      C compiler flags
1961  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1962              nonstandard directory <lib dir>
1963  LIBS        libraries to pass to the linker, e.g. -l<library>
1964  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1965              you have headers in a nonstandard directory <include dir>
1966  CPP         C preprocessor
1967  CXX         C++ compiler command
1968  CXXFLAGS    C++ compiler flags
1969  PKG_CONFIG  path to pkg-config utility
1970  CXXCPP      C++ preprocessor
1971  XMKMF       Path to xmkmf, Makefile generator for X Window System
1972  AUTOTRACE_CFLAGS
1973              C compiler flags for AUTOTRACE, overriding pkg-config
1974  AUTOTRACE_LIBS
1975              linker flags for AUTOTRACE, overriding pkg-config
1976  FONTCONFIG_CFLAGS
1977              C compiler flags for FONTCONFIG, overriding pkg-config
1978  FONTCONFIG_LIBS
1979              linker flags for FONTCONFIG, overriding pkg-config
1980  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1981  GVC_LIBS    linker flags for GVC, overriding pkg-config
1982  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1983  LQR_LIBS    linker flags for LQR, overriding pkg-config
1984  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1985  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
1986  OPENEXR_CFLAGS
1987              C compiler flags for OPENEXR, overriding pkg-config
1988  OPENEXR_LIBS
1989              linker flags for OPENEXR, overriding pkg-config
1990  PANGO_CFLAGS
1991              C compiler flags for PANGO, overriding pkg-config
1992  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
1993  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1994  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1995  CAIRO_SVG_CFLAGS
1996              C compiler flags for CAIRO_SVG, overriding pkg-config
1997  CAIRO_SVG_LIBS
1998              linker flags for CAIRO_SVG, overriding pkg-config
1999
2000Use these variables to override the choices made by `configure' or to help
2001it to find libraries and programs with nonstandard names/locations.
2002
2003Report bugs to <http://www.imagemagick.org>.
2004_ACEOF
2005ac_status=$?
2006fi
2007
2008if test "$ac_init_help" = "recursive"; then
2009  # If there are subdirs, report their specific --help.
2010  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2011    test -d "$ac_dir" ||
2012      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2013      continue
2014    ac_builddir=.
2015
2016case "$ac_dir" in
2017.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2018*)
2019  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2020  # A ".." for each directory in $ac_dir_suffix.
2021  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2022  case $ac_top_builddir_sub in
2023  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2024  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2025  esac ;;
2026esac
2027ac_abs_top_builddir=$ac_pwd
2028ac_abs_builddir=$ac_pwd$ac_dir_suffix
2029# for backward compatibility:
2030ac_top_builddir=$ac_top_build_prefix
2031
2032case $srcdir in
2033  .)  # We are building in place.
2034    ac_srcdir=.
2035    ac_top_srcdir=$ac_top_builddir_sub
2036    ac_abs_top_srcdir=$ac_pwd ;;
2037  [\\/]* | ?:[\\/]* )  # Absolute name.
2038    ac_srcdir=$srcdir$ac_dir_suffix;
2039    ac_top_srcdir=$srcdir
2040    ac_abs_top_srcdir=$srcdir ;;
2041  *) # Relative name.
2042    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2043    ac_top_srcdir=$ac_top_build_prefix$srcdir
2044    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2045esac
2046ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2047
2048    cd "$ac_dir" || { ac_status=$?; continue; }
2049    # Check for guested configure.
2050    if test -f "$ac_srcdir/configure.gnu"; then
2051      echo &&
2052      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2053    elif test -f "$ac_srcdir/configure"; then
2054      echo &&
2055      $SHELL "$ac_srcdir/configure" --help=recursive
2056    else
2057      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2058    fi || ac_status=$?
2059    cd "$ac_pwd" || { ac_status=$?; break; }
2060  done
2061fi
2062
2063test -n "$ac_init_help" && exit $ac_status
2064if $ac_init_version; then
2065  cat <<\_ACEOF
2066ImageMagick configure 7.0.0-0
2067generated by GNU Autoconf 2.69
2068
2069Copyright (C) 2012 Free Software Foundation, Inc.
2070This configure script is free software; the Free Software Foundation
2071gives unlimited permission to copy, distribute and modify it.
2072_ACEOF
2073  exit
2074fi
2075
2076## ------------------------ ##
2077## Autoconf initialization. ##
2078## ------------------------ ##
2079
2080# ac_fn_c_try_compile LINENO
2081# --------------------------
2082# Try to compile conftest.$ac_ext, and return whether this succeeded.
2083ac_fn_c_try_compile ()
2084{
2085  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086  rm -f conftest.$ac_objext
2087  if { { ac_try="$ac_compile"
2088case "(($ac_try" in
2089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090  *) ac_try_echo=$ac_try;;
2091esac
2092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093$as_echo "$ac_try_echo"; } >&5
2094  (eval "$ac_compile") 2>conftest.err
2095  ac_status=$?
2096  if test -s conftest.err; then
2097    grep -v '^ *+' conftest.err >conftest.er1
2098    cat conftest.er1 >&5
2099    mv -f conftest.er1 conftest.err
2100  fi
2101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102  test $ac_status = 0; } && {
2103	 test -z "$ac_c_werror_flag" ||
2104	 test ! -s conftest.err
2105       } && test -s conftest.$ac_objext; then :
2106  ac_retval=0
2107else
2108  $as_echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111	ac_retval=1
2112fi
2113  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114  as_fn_set_status $ac_retval
2115
2116} # ac_fn_c_try_compile
2117
2118# ac_fn_c_try_cpp LINENO
2119# ----------------------
2120# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2121ac_fn_c_try_cpp ()
2122{
2123  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124  if { { ac_try="$ac_cpp conftest.$ac_ext"
2125case "(($ac_try" in
2126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127  *) ac_try_echo=$ac_try;;
2128esac
2129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130$as_echo "$ac_try_echo"; } >&5
2131  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2132  ac_status=$?
2133  if test -s conftest.err; then
2134    grep -v '^ *+' conftest.err >conftest.er1
2135    cat conftest.er1 >&5
2136    mv -f conftest.er1 conftest.err
2137  fi
2138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139  test $ac_status = 0; } > conftest.i && {
2140	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2141	 test ! -s conftest.err
2142       }; then :
2143  ac_retval=0
2144else
2145  $as_echo "$as_me: failed program was:" >&5
2146sed 's/^/| /' conftest.$ac_ext >&5
2147
2148    ac_retval=1
2149fi
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151  as_fn_set_status $ac_retval
2152
2153} # ac_fn_c_try_cpp
2154
2155# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2156# -------------------------------------------------------
2157# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2158# the include files in INCLUDES and setting the cache variable VAR
2159# accordingly.
2160ac_fn_c_check_header_mongrel ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  if eval \${$3+:} false; then :
2164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165$as_echo_n "checking for $2... " >&6; }
2166if eval \${$3+:} false; then :
2167  $as_echo_n "(cached) " >&6
2168fi
2169eval ac_res=\$$3
2170	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172else
2173  # Is the header compilable?
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2175$as_echo_n "checking $2 usability... " >&6; }
2176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h.  */
2178$4
2179#include <$2>
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  ac_header_compiler=yes
2183else
2184  ac_header_compiler=no
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2188$as_echo "$ac_header_compiler" >&6; }
2189
2190# Is the header present?
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2192$as_echo_n "checking $2 presence... " >&6; }
2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195#include <$2>
2196_ACEOF
2197if ac_fn_c_try_cpp "$LINENO"; then :
2198  ac_header_preproc=yes
2199else
2200  ac_header_preproc=no
2201fi
2202rm -f conftest.err conftest.i conftest.$ac_ext
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2204$as_echo "$ac_header_preproc" >&6; }
2205
2206# So?  What about this header?
2207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2208  yes:no: )
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2210$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213    ;;
2214  no:yes:* )
2215    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2216$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2217    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2218$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2220$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2222$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2223    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225( $as_echo "## ----------------------------------------- ##
2226## Report this to http://www.imagemagick.org ##
2227## ----------------------------------------- ##"
2228     ) | sed "s/^/$as_me: WARNING:     /" >&2
2229    ;;
2230esac
2231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232$as_echo_n "checking for $2... " >&6; }
2233if eval \${$3+:} false; then :
2234  $as_echo_n "(cached) " >&6
2235else
2236  eval "$3=\$ac_header_compiler"
2237fi
2238eval ac_res=\$$3
2239	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241fi
2242  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243
2244} # ac_fn_c_check_header_mongrel
2245
2246# ac_fn_c_try_run LINENO
2247# ----------------------
2248# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249# that executables *can* be run.
2250ac_fn_c_try_run ()
2251{
2252  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253  if { { ac_try="$ac_link"
2254case "(($ac_try" in
2255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256  *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260  (eval "$ac_link") 2>&5
2261  ac_status=$?
2262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264  { { case "(($ac_try" in
2265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266  *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270  (eval "$ac_try") 2>&5
2271  ac_status=$?
2272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273  test $ac_status = 0; }; }; then :
2274  ac_retval=0
2275else
2276  $as_echo "$as_me: program exited with status $ac_status" >&5
2277       $as_echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280       ac_retval=$ac_status
2281fi
2282  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284  as_fn_set_status $ac_retval
2285
2286} # ac_fn_c_try_run
2287
2288# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289# -------------------------------------------------------
2290# Tests whether HEADER exists and can be compiled using the include files in
2291# INCLUDES, setting the cache variable VAR accordingly.
2292ac_fn_c_check_header_compile ()
2293{
2294  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296$as_echo_n "checking for $2... " >&6; }
2297if eval \${$3+:} false; then :
2298  $as_echo_n "(cached) " >&6
2299else
2300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302$4
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306  eval "$3=yes"
2307else
2308  eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312eval ac_res=\$$3
2313	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
2315  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
2317} # ac_fn_c_check_header_compile
2318
2319# ac_fn_cxx_try_compile LINENO
2320# ----------------------------
2321# Try to compile conftest.$ac_ext, and return whether this succeeded.
2322ac_fn_cxx_try_compile ()
2323{
2324  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325  rm -f conftest.$ac_objext
2326  if { { ac_try="$ac_compile"
2327case "(($ac_try" in
2328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329  *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333  (eval "$ac_compile") 2>conftest.err
2334  ac_status=$?
2335  if test -s conftest.err; then
2336    grep -v '^ *+' conftest.err >conftest.er1
2337    cat conftest.er1 >&5
2338    mv -f conftest.er1 conftest.err
2339  fi
2340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341  test $ac_status = 0; } && {
2342	 test -z "$ac_cxx_werror_flag" ||
2343	 test ! -s conftest.err
2344       } && test -s conftest.$ac_objext; then :
2345  ac_retval=0
2346else
2347  $as_echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350	ac_retval=1
2351fi
2352  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353  as_fn_set_status $ac_retval
2354
2355} # ac_fn_cxx_try_compile
2356
2357# ac_fn_c_try_link LINENO
2358# -----------------------
2359# Try to link conftest.$ac_ext, and return whether this succeeded.
2360ac_fn_c_try_link ()
2361{
2362  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363  rm -f conftest.$ac_objext conftest$ac_exeext
2364  if { { ac_try="$ac_link"
2365case "(($ac_try" in
2366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367  *) ac_try_echo=$ac_try;;
2368esac
2369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370$as_echo "$ac_try_echo"; } >&5
2371  (eval "$ac_link") 2>conftest.err
2372  ac_status=$?
2373  if test -s conftest.err; then
2374    grep -v '^ *+' conftest.err >conftest.er1
2375    cat conftest.er1 >&5
2376    mv -f conftest.er1 conftest.err
2377  fi
2378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379  test $ac_status = 0; } && {
2380	 test -z "$ac_c_werror_flag" ||
2381	 test ! -s conftest.err
2382       } && test -s conftest$ac_exeext && {
2383	 test "$cross_compiling" = yes ||
2384	 test -x conftest$ac_exeext
2385       }; then :
2386  ac_retval=0
2387else
2388  $as_echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391	ac_retval=1
2392fi
2393  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395  # interfere with the next link command; also delete a directory that is
2396  # left behind by Apple's compiler.  We do this before executing the actions.
2397  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399  as_fn_set_status $ac_retval
2400
2401} # ac_fn_c_try_link
2402
2403# ac_fn_c_check_func LINENO FUNC VAR
2404# ----------------------------------
2405# Tests whether FUNC exists, setting the cache variable VAR accordingly
2406ac_fn_c_check_func ()
2407{
2408  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410$as_echo_n "checking for $2... " >&6; }
2411if eval \${$3+:} false; then :
2412  $as_echo_n "(cached) " >&6
2413else
2414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415/* end confdefs.h.  */
2416/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2418#define $2 innocuous_$2
2419
2420/* System header to define __stub macros and hopefully few prototypes,
2421    which can conflict with char $2 (); below.
2422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2423    <limits.h> exists even on freestanding compilers.  */
2424
2425#ifdef __STDC__
2426# include <limits.h>
2427#else
2428# include <assert.h>
2429#endif
2430
2431#undef $2
2432
2433/* Override any GCC internal prototype to avoid an error.
2434   Use char because int might match the return type of a GCC
2435   builtin and then its argument prototype would still apply.  */
2436#ifdef __cplusplus
2437extern "C"
2438#endif
2439char $2 ();
2440/* The GNU C library defines this for functions which it implements
2441    to always fail with ENOSYS.  Some functions are actually named
2442    something starting with __ and the normal name is an alias.  */
2443#if defined __stub_$2 || defined __stub___$2
2444choke me
2445#endif
2446
2447int
2448main ()
2449{
2450return $2 ();
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455if ac_fn_c_try_link "$LINENO"; then :
2456  eval "$3=yes"
2457else
2458  eval "$3=no"
2459fi
2460rm -f core conftest.err conftest.$ac_objext \
2461    conftest$ac_exeext conftest.$ac_ext
2462fi
2463eval ac_res=\$$3
2464	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465$as_echo "$ac_res" >&6; }
2466  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467
2468} # ac_fn_c_check_func
2469
2470# ac_fn_cxx_try_cpp LINENO
2471# ------------------------
2472# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2473ac_fn_cxx_try_cpp ()
2474{
2475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476  if { { ac_try="$ac_cpp conftest.$ac_ext"
2477case "(($ac_try" in
2478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479  *) ac_try_echo=$ac_try;;
2480esac
2481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482$as_echo "$ac_try_echo"; } >&5
2483  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2484  ac_status=$?
2485  if test -s conftest.err; then
2486    grep -v '^ *+' conftest.err >conftest.er1
2487    cat conftest.er1 >&5
2488    mv -f conftest.er1 conftest.err
2489  fi
2490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491  test $ac_status = 0; } > conftest.i && {
2492	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2493	 test ! -s conftest.err
2494       }; then :
2495  ac_retval=0
2496else
2497  $as_echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500    ac_retval=1
2501fi
2502  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503  as_fn_set_status $ac_retval
2504
2505} # ac_fn_cxx_try_cpp
2506
2507# ac_fn_cxx_try_link LINENO
2508# -------------------------
2509# Try to link conftest.$ac_ext, and return whether this succeeded.
2510ac_fn_cxx_try_link ()
2511{
2512  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513  rm -f conftest.$ac_objext conftest$ac_exeext
2514  if { { ac_try="$ac_link"
2515case "(($ac_try" in
2516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517  *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520$as_echo "$ac_try_echo"; } >&5
2521  (eval "$ac_link") 2>conftest.err
2522  ac_status=$?
2523  if test -s conftest.err; then
2524    grep -v '^ *+' conftest.err >conftest.er1
2525    cat conftest.er1 >&5
2526    mv -f conftest.er1 conftest.err
2527  fi
2528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529  test $ac_status = 0; } && {
2530	 test -z "$ac_cxx_werror_flag" ||
2531	 test ! -s conftest.err
2532       } && test -s conftest$ac_exeext && {
2533	 test "$cross_compiling" = yes ||
2534	 test -x conftest$ac_exeext
2535       }; then :
2536  ac_retval=0
2537else
2538  $as_echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541	ac_retval=1
2542fi
2543  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2544  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2545  # interfere with the next link command; also delete a directory that is
2546  # left behind by Apple's compiler.  We do this before executing the actions.
2547  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2548  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549  as_fn_set_status $ac_retval
2550
2551} # ac_fn_cxx_try_link
2552
2553# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2554# ---------------------------------------------
2555# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2556# accordingly.
2557ac_fn_c_check_decl ()
2558{
2559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560  as_decl_name=`echo $2|sed 's/ *(.*//'`
2561  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2563$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2564if eval \${$3+:} false; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h.  */
2569$4
2570int
2571main ()
2572{
2573#ifndef $as_decl_name
2574#ifdef __cplusplus
2575  (void) $as_decl_use;
2576#else
2577  (void) $as_decl_name;
2578#endif
2579#endif
2580
2581  ;
2582  return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586  eval "$3=yes"
2587else
2588  eval "$3=no"
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
2595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596
2597} # ac_fn_c_check_decl
2598
2599# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2600# -------------------------------------------
2601# Tests whether TYPE exists after having included INCLUDES, setting cache
2602# variable VAR accordingly.
2603ac_fn_c_check_type ()
2604{
2605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607$as_echo_n "checking for $2... " >&6; }
2608if eval \${$3+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  eval "$3=no"
2612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h.  */
2614$4
2615int
2616main ()
2617{
2618if (sizeof ($2))
2619	 return 0;
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h.  */
2627$4
2628int
2629main ()
2630{
2631if (sizeof (($2)))
2632	    return 0;
2633  ;
2634  return 0;
2635}
2636_ACEOF
2637if ac_fn_c_try_compile "$LINENO"; then :
2638
2639else
2640  eval "$3=yes"
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643fi
2644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645fi
2646eval ac_res=\$$3
2647	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648$as_echo "$ac_res" >&6; }
2649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650
2651} # ac_fn_c_check_type
2652
2653# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2654# ----------------------------------------------------
2655# Tries to find if the field MEMBER exists in type AGGR, after including
2656# INCLUDES, setting cache variable VAR accordingly.
2657ac_fn_c_check_member ()
2658{
2659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2661$as_echo_n "checking for $2.$3... " >&6; }
2662if eval \${$4+:} false; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h.  */
2667$5
2668int
2669main ()
2670{
2671static $2 ac_aggr;
2672if (ac_aggr.$3)
2673return 0;
2674  ;
2675  return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679  eval "$4=yes"
2680else
2681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h.  */
2683$5
2684int
2685main ()
2686{
2687static $2 ac_aggr;
2688if (sizeof ac_aggr.$3)
2689return 0;
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694if ac_fn_c_try_compile "$LINENO"; then :
2695  eval "$4=yes"
2696else
2697  eval "$4=no"
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702fi
2703eval ac_res=\$$4
2704	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705$as_echo "$ac_res" >&6; }
2706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707
2708} # ac_fn_c_check_member
2709
2710# ac_fn_c_find_intX_t LINENO BITS VAR
2711# -----------------------------------
2712# Finds a signed integer type with width BITS, setting cache variable VAR
2713# accordingly.
2714ac_fn_c_find_intX_t ()
2715{
2716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2718$as_echo_n "checking for int$2_t... " >&6; }
2719if eval \${$3+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  eval "$3=no"
2723     # Order is important - never check a type that is potentially smaller
2724     # than half of the expected target width.
2725     for ac_type in int$2_t 'int' 'long int' \
2726	 'long long int' 'short int' 'signed char'; do
2727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728/* end confdefs.h.  */
2729$ac_includes_default
2730	     enum { N = $2 / 2 - 1 };
2731int
2732main ()
2733{
2734static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2735test_array [0] = 0;
2736return test_array [0];
2737
2738  ;
2739  return 0;
2740}
2741_ACEOF
2742if ac_fn_c_try_compile "$LINENO"; then :
2743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h.  */
2745$ac_includes_default
2746	        enum { N = $2 / 2 - 1 };
2747int
2748main ()
2749{
2750static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2751		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2752test_array [0] = 0;
2753return test_array [0];
2754
2755  ;
2756  return 0;
2757}
2758_ACEOF
2759if ac_fn_c_try_compile "$LINENO"; then :
2760
2761else
2762  case $ac_type in #(
2763  int$2_t) :
2764    eval "$3=yes" ;; #(
2765  *) :
2766    eval "$3=\$ac_type" ;;
2767esac
2768fi
2769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772       if eval test \"x\$"$3"\" = x"no"; then :
2773
2774else
2775  break
2776fi
2777     done
2778fi
2779eval ac_res=\$$3
2780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781$as_echo "$ac_res" >&6; }
2782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2783
2784} # ac_fn_c_find_intX_t
2785
2786# ac_fn_c_find_uintX_t LINENO BITS VAR
2787# ------------------------------------
2788# Finds an unsigned integer type with width BITS, setting cache variable VAR
2789# accordingly.
2790ac_fn_c_find_uintX_t ()
2791{
2792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2794$as_echo_n "checking for uint$2_t... " >&6; }
2795if eval \${$3+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  eval "$3=no"
2799     # Order is important - never check a type that is potentially smaller
2800     # than half of the expected target width.
2801     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2802	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804/* end confdefs.h.  */
2805$ac_includes_default
2806int
2807main ()
2808{
2809static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2810test_array [0] = 0;
2811return test_array [0];
2812
2813  ;
2814  return 0;
2815}
2816_ACEOF
2817if ac_fn_c_try_compile "$LINENO"; then :
2818  case $ac_type in #(
2819  uint$2_t) :
2820    eval "$3=yes" ;; #(
2821  *) :
2822    eval "$3=\$ac_type" ;;
2823esac
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826       if eval test \"x\$"$3"\" = x"no"; then :
2827
2828else
2829  break
2830fi
2831     done
2832fi
2833eval ac_res=\$$3
2834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835$as_echo "$ac_res" >&6; }
2836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837
2838} # ac_fn_c_find_uintX_t
2839
2840# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2841# --------------------------------------------
2842# Tries to find the compile-time value of EXPR in a program that includes
2843# INCLUDES, setting VAR accordingly. Returns whether the value could be
2844# computed
2845ac_fn_c_compute_int ()
2846{
2847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848  if test "$cross_compiling" = yes; then
2849    # Depending upon the size, compute the lo and hi bounds.
2850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851/* end confdefs.h.  */
2852$4
2853int
2854main ()
2855{
2856static int test_array [1 - 2 * !(($2) >= 0)];
2857test_array [0] = 0;
2858return test_array [0];
2859
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865  ac_lo=0 ac_mid=0
2866  while :; do
2867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h.  */
2869$4
2870int
2871main ()
2872{
2873static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2874test_array [0] = 0;
2875return test_array [0];
2876
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882  ac_hi=$ac_mid; break
2883else
2884  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2885			if test $ac_lo -le $ac_mid; then
2886			  ac_lo= ac_hi=
2887			  break
2888			fi
2889			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892  done
2893else
2894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h.  */
2896$4
2897int
2898main ()
2899{
2900static int test_array [1 - 2 * !(($2) < 0)];
2901test_array [0] = 0;
2902return test_array [0];
2903
2904  ;
2905  return 0;
2906}
2907_ACEOF
2908if ac_fn_c_try_compile "$LINENO"; then :
2909  ac_hi=-1 ac_mid=-1
2910  while :; do
2911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912/* end confdefs.h.  */
2913$4
2914int
2915main ()
2916{
2917static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2918test_array [0] = 0;
2919return test_array [0];
2920
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925if ac_fn_c_try_compile "$LINENO"; then :
2926  ac_lo=$ac_mid; break
2927else
2928  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2929			if test $ac_mid -le $ac_hi; then
2930			  ac_lo= ac_hi=
2931			  break
2932			fi
2933			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936  done
2937else
2938  ac_lo= ac_hi=
2939fi
2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941fi
2942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943# Binary search between lo and hi bounds.
2944while test "x$ac_lo" != "x$ac_hi"; do
2945  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h.  */
2948$4
2949int
2950main ()
2951{
2952static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2953test_array [0] = 0;
2954return test_array [0];
2955
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961  ac_hi=$ac_mid
2962else
2963  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966done
2967case $ac_lo in #((
2968?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2969'') ac_retval=1 ;;
2970esac
2971  else
2972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h.  */
2974$4
2975static long int longval () { return $2; }
2976static unsigned long int ulongval () { return $2; }
2977#include <stdio.h>
2978#include <stdlib.h>
2979int
2980main ()
2981{
2982
2983  FILE *f = fopen ("conftest.val", "w");
2984  if (! f)
2985    return 1;
2986  if (($2) < 0)
2987    {
2988      long int i = longval ();
2989      if (i != ($2))
2990	return 1;
2991      fprintf (f, "%ld", i);
2992    }
2993  else
2994    {
2995      unsigned long int i = ulongval ();
2996      if (i != ($2))
2997	return 1;
2998      fprintf (f, "%lu", i);
2999    }
3000  /* Do not output a trailing newline, as this causes \r\n confusion
3001     on some platforms.  */
3002  return ferror (f) || fclose (f) != 0;
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008if ac_fn_c_try_run "$LINENO"; then :
3009  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3010else
3011  ac_retval=1
3012fi
3013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3014  conftest.$ac_objext conftest.beam conftest.$ac_ext
3015rm -f conftest.val
3016
3017  fi
3018  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3019  as_fn_set_status $ac_retval
3020
3021} # ac_fn_c_compute_int
3022
3023# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3024# ---------------------------------------------------------
3025# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3026# the include files in INCLUDES and setting the cache variable VAR
3027# accordingly.
3028ac_fn_cxx_check_header_mongrel ()
3029{
3030  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3031  if eval \${$3+:} false; then :
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3033$as_echo_n "checking for $2... " >&6; }
3034if eval \${$3+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036fi
3037eval ac_res=\$$3
3038	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039$as_echo "$ac_res" >&6; }
3040else
3041  # Is the header compilable?
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3043$as_echo_n "checking $2 usability... " >&6; }
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046$4
3047#include <$2>
3048_ACEOF
3049if ac_fn_cxx_try_compile "$LINENO"; then :
3050  ac_header_compiler=yes
3051else
3052  ac_header_compiler=no
3053fi
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3056$as_echo "$ac_header_compiler" >&6; }
3057
3058# Is the header present?
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3060$as_echo_n "checking $2 presence... " >&6; }
3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h.  */
3063#include <$2>
3064_ACEOF
3065if ac_fn_cxx_try_cpp "$LINENO"; then :
3066  ac_header_preproc=yes
3067else
3068  ac_header_preproc=no
3069fi
3070rm -f conftest.err conftest.i conftest.$ac_ext
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3072$as_echo "$ac_header_preproc" >&6; }
3073
3074# So?  What about this header?
3075case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3076  yes:no: )
3077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3078$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3080$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3081    ;;
3082  no:yes:* )
3083    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3084$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3085    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3086$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3087    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3088$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3089    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3090$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3091    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3093( $as_echo "## ----------------------------------------- ##
3094## Report this to http://www.imagemagick.org ##
3095## ----------------------------------------- ##"
3096     ) | sed "s/^/$as_me: WARNING:     /" >&2
3097    ;;
3098esac
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3100$as_echo_n "checking for $2... " >&6; }
3101if eval \${$3+:} false; then :
3102  $as_echo_n "(cached) " >&6
3103else
3104  eval "$3=\$ac_header_compiler"
3105fi
3106eval ac_res=\$$3
3107	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3108$as_echo "$ac_res" >&6; }
3109fi
3110  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3111
3112} # ac_fn_cxx_check_header_mongrel
3113cat >config.log <<_ACEOF
3114This file contains any messages produced by compilers while
3115running configure, to aid debugging if configure makes a mistake.
3116
3117It was created by ImageMagick $as_me 7.0.0-0, which was
3118generated by GNU Autoconf 2.69.  Invocation command line was
3119
3120  $ $0 $@
3121
3122_ACEOF
3123exec 5>>config.log
3124{
3125cat <<_ASUNAME
3126## --------- ##
3127## Platform. ##
3128## --------- ##
3129
3130hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3131uname -m = `(uname -m) 2>/dev/null || echo unknown`
3132uname -r = `(uname -r) 2>/dev/null || echo unknown`
3133uname -s = `(uname -s) 2>/dev/null || echo unknown`
3134uname -v = `(uname -v) 2>/dev/null || echo unknown`
3135
3136/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3137/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3138
3139/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3140/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3141/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3142/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3143/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3144/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3145/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3146
3147_ASUNAME
3148
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    $as_echo "PATH: $as_dir"
3155  done
3156IFS=$as_save_IFS
3157
3158} >&5
3159
3160cat >&5 <<_ACEOF
3161
3162
3163## ----------- ##
3164## Core tests. ##
3165## ----------- ##
3166
3167_ACEOF
3168
3169
3170# Keep a trace of the command line.
3171# Strip out --no-create and --no-recursion so they do not pile up.
3172# Strip out --silent because we don't want to record it for future runs.
3173# Also quote any args containing shell meta-characters.
3174# Make two passes to allow for proper duplicate-argument suppression.
3175ac_configure_args=
3176ac_configure_args0=
3177ac_configure_args1=
3178ac_must_keep_next=false
3179for ac_pass in 1 2
3180do
3181  for ac_arg
3182  do
3183    case $ac_arg in
3184    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3185    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3186    | -silent | --silent | --silen | --sile | --sil)
3187      continue ;;
3188    *\'*)
3189      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3190    esac
3191    case $ac_pass in
3192    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3193    2)
3194      as_fn_append ac_configure_args1 " '$ac_arg'"
3195      if test $ac_must_keep_next = true; then
3196	ac_must_keep_next=false # Got value, back to normal.
3197      else
3198	case $ac_arg in
3199	  *=* | --config-cache | -C | -disable-* | --disable-* \
3200	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3201	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3202	  | -with-* | --with-* | -without-* | --without-* | --x)
3203	    case "$ac_configure_args0 " in
3204	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3205	    esac
3206	    ;;
3207	  -* ) ac_must_keep_next=true ;;
3208	esac
3209      fi
3210      as_fn_append ac_configure_args " '$ac_arg'"
3211      ;;
3212    esac
3213  done
3214done
3215{ ac_configure_args0=; unset ac_configure_args0;}
3216{ ac_configure_args1=; unset ac_configure_args1;}
3217
3218# When interrupted or exit'd, cleanup temporary files, and complete
3219# config.log.  We remove comments because anyway the quotes in there
3220# would cause problems or look ugly.
3221# WARNING: Use '\'' to represent an apostrophe within the trap.
3222# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3223trap 'exit_status=$?
3224  # Save into config.log some information that might help in debugging.
3225  {
3226    echo
3227
3228    $as_echo "## ---------------- ##
3229## Cache variables. ##
3230## ---------------- ##"
3231    echo
3232    # The following way of writing the cache mishandles newlines in values,
3233(
3234  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3235    eval ac_val=\$$ac_var
3236    case $ac_val in #(
3237    *${as_nl}*)
3238      case $ac_var in #(
3239      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3240$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3241      esac
3242      case $ac_var in #(
3243      _ | IFS | as_nl) ;; #(
3244      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3245      *) { eval $ac_var=; unset $ac_var;} ;;
3246      esac ;;
3247    esac
3248  done
3249  (set) 2>&1 |
3250    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3251    *${as_nl}ac_space=\ *)
3252      sed -n \
3253	"s/'\''/'\''\\\\'\'''\''/g;
3254	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3255      ;; #(
3256    *)
3257      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3258      ;;
3259    esac |
3260    sort
3261)
3262    echo
3263
3264    $as_echo "## ----------------- ##
3265## Output variables. ##
3266## ----------------- ##"
3267    echo
3268    for ac_var in $ac_subst_vars
3269    do
3270      eval ac_val=\$$ac_var
3271      case $ac_val in
3272      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3273      esac
3274      $as_echo "$ac_var='\''$ac_val'\''"
3275    done | sort
3276    echo
3277
3278    if test -n "$ac_subst_files"; then
3279      $as_echo "## ------------------- ##
3280## File substitutions. ##
3281## ------------------- ##"
3282      echo
3283      for ac_var in $ac_subst_files
3284      do
3285	eval ac_val=\$$ac_var
3286	case $ac_val in
3287	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3288	esac
3289	$as_echo "$ac_var='\''$ac_val'\''"
3290      done | sort
3291      echo
3292    fi
3293
3294    if test -s confdefs.h; then
3295      $as_echo "## ----------- ##
3296## confdefs.h. ##
3297## ----------- ##"
3298      echo
3299      cat confdefs.h
3300      echo
3301    fi
3302    test "$ac_signal" != 0 &&
3303      $as_echo "$as_me: caught signal $ac_signal"
3304    $as_echo "$as_me: exit $exit_status"
3305  } >&5
3306  rm -f core *.core core.conftest.* &&
3307    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3308    exit $exit_status
3309' 0
3310for ac_signal in 1 2 13 15; do
3311  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3312done
3313ac_signal=0
3314
3315# confdefs.h avoids OS command line length limits that DEFS can exceed.
3316rm -f -r conftest* confdefs.h
3317
3318$as_echo "/* confdefs.h */" > confdefs.h
3319
3320# Predefined preprocessor variables.
3321
3322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_NAME "$PACKAGE_NAME"
3324_ACEOF
3325
3326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3328_ACEOF
3329
3330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_VERSION "$PACKAGE_VERSION"
3332_ACEOF
3333
3334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_STRING "$PACKAGE_STRING"
3336_ACEOF
3337
3338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3340_ACEOF
3341
3342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_URL "$PACKAGE_URL"
3344_ACEOF
3345
3346
3347# Let the site file select an alternate cache file if it wants to.
3348# Prefer an explicitly selected file to automatically selected ones.
3349ac_site_file1=NONE
3350ac_site_file2=NONE
3351if test -n "$CONFIG_SITE"; then
3352  # We do not want a PATH search for config.site.
3353  case $CONFIG_SITE in #((
3354    -*)  ac_site_file1=./$CONFIG_SITE;;
3355    */*) ac_site_file1=$CONFIG_SITE;;
3356    *)   ac_site_file1=./$CONFIG_SITE;;
3357  esac
3358elif test "x$prefix" != xNONE; then
3359  ac_site_file1=$prefix/share/config.site
3360  ac_site_file2=$prefix/etc/config.site
3361else
3362  ac_site_file1=$ac_default_prefix/share/config.site
3363  ac_site_file2=$ac_default_prefix/etc/config.site
3364fi
3365for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3366do
3367  test "x$ac_site_file" = xNONE && continue
3368  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3369    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3370$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3371    sed 's/^/| /' "$ac_site_file" >&5
3372    . "$ac_site_file" \
3373      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "failed to load site script $ac_site_file
3376See \`config.log' for more details" "$LINENO" 5; }
3377  fi
3378done
3379
3380if test -r "$cache_file"; then
3381  # Some versions of bash will fail to source /dev/null (special files
3382  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3383  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3384    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3385$as_echo "$as_me: loading cache $cache_file" >&6;}
3386    case $cache_file in
3387      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3388      *)                      . "./$cache_file";;
3389    esac
3390  fi
3391else
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3393$as_echo "$as_me: creating cache $cache_file" >&6;}
3394  >$cache_file
3395fi
3396
3397as_fn_append ac_header_list " stdlib.h"
3398as_fn_append ac_header_list " unistd.h"
3399as_fn_append ac_header_list " sys/param.h"
3400# Check that the precious variables saved in the cache have kept the same
3401# value.
3402ac_cache_corrupted=false
3403for ac_var in $ac_precious_vars; do
3404  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3405  eval ac_new_set=\$ac_env_${ac_var}_set
3406  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3407  eval ac_new_val=\$ac_env_${ac_var}_value
3408  case $ac_old_set,$ac_new_set in
3409    set,)
3410      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3411$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3412      ac_cache_corrupted=: ;;
3413    ,set)
3414      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3415$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3416      ac_cache_corrupted=: ;;
3417    ,);;
3418    *)
3419      if test "x$ac_old_val" != "x$ac_new_val"; then
3420	# differences in whitespace do not lead to failure.
3421	ac_old_val_w=`echo x $ac_old_val`
3422	ac_new_val_w=`echo x $ac_new_val`
3423	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3424	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3425$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3426	  ac_cache_corrupted=:
3427	else
3428	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3429$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3430	  eval $ac_var=\$ac_old_val
3431	fi
3432	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3433$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3434	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3435$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3436      fi;;
3437  esac
3438  # Pass precious variables to config.status.
3439  if test "$ac_new_set" = set; then
3440    case $ac_new_val in
3441    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3442    *) ac_arg=$ac_var=$ac_new_val ;;
3443    esac
3444    case " $ac_configure_args " in
3445      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3446      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3447    esac
3448  fi
3449done
3450if $ac_cache_corrupted; then
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3454$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3455  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3456fi
3457## -------------------- ##
3458## Main body of script. ##
3459## -------------------- ##
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469ac_aux_dir=
3470for ac_dir in config "$srcdir"/config; do
3471  if 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/install.sh"; then
3476    ac_aux_dir=$ac_dir
3477    ac_install_sh="$ac_aux_dir/install.sh -c"
3478    break
3479  elif test -f "$ac_dir/shtool"; then
3480    ac_aux_dir=$ac_dir
3481    ac_install_sh="$ac_aux_dir/shtool install -c"
3482    break
3483  fi
3484done
3485if test -z "$ac_aux_dir"; then
3486  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3487fi
3488
3489# These three variables are undocumented and unsupported,
3490# and are intended to be withdrawn in a future Autoconf release.
3491# They can cause serious problems if a builder's source tree is in a directory
3492# whose full name contains unusual characters.
3493ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3494ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3495ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3496
3497
3498
3499
3500
3501ac_config_headers="$ac_config_headers config/config.h"
3502
3503
3504ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3505
3506ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/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 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"
3507
3508
3509#
3510# Save initial user-tunable values
3511#
3512USER_LIBS=$LIBS
3513for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3514  eval isset=\${$var+set}
3515    if test "$isset" = 'set'; then
3516        eval val=$`echo $var`
3517        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3518    fi
3519done
3520
3521
3522CONFIGURE_ARGS="$0 ${ac_configure_args}"
3523
3524
3525# Source file containing package/library versioning information.
3526. ${srcdir}/version.sh
3527
3528echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3529# Make sure we can run config.sub.
3530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3531  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3532
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3534$as_echo_n "checking build system type... " >&6; }
3535if ${ac_cv_build+:} false; then :
3536  $as_echo_n "(cached) " >&6
3537else
3538  ac_build_alias=$build_alias
3539test "x$ac_build_alias" = x &&
3540  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3541test "x$ac_build_alias" = x &&
3542  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3544  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3545
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3548$as_echo "$ac_cv_build" >&6; }
3549case $ac_cv_build in
3550*-*-*) ;;
3551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3552esac
3553build=$ac_cv_build
3554ac_save_IFS=$IFS; IFS='-'
3555set x $ac_cv_build
3556shift
3557build_cpu=$1
3558build_vendor=$2
3559shift; shift
3560# Remember, the first character of IFS is used to create $*,
3561# except with old shells:
3562build_os=$*
3563IFS=$ac_save_IFS
3564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3565
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3568$as_echo_n "checking host system type... " >&6; }
3569if ${ac_cv_host+:} false; then :
3570  $as_echo_n "(cached) " >&6
3571else
3572  if test "x$host_alias" = x; then
3573  ac_cv_host=$ac_cv_build
3574else
3575  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3576    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3577fi
3578
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3581$as_echo "$ac_cv_host" >&6; }
3582case $ac_cv_host in
3583*-*-*) ;;
3584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3585esac
3586host=$ac_cv_host
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_host
3589shift
3590host_cpu=$1
3591host_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595host_os=$*
3596IFS=$ac_save_IFS
3597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3598
3599
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3601$as_echo_n "checking target system type... " >&6; }
3602if ${ac_cv_target+:} false; then :
3603  $as_echo_n "(cached) " >&6
3604else
3605  if test "x$target_alias" = x; then
3606  ac_cv_target=$ac_cv_host
3607else
3608  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3609    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3610fi
3611
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3614$as_echo "$ac_cv_target" >&6; }
3615case $ac_cv_target in
3616*-*-*) ;;
3617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3618esac
3619target=$ac_cv_target
3620ac_save_IFS=$IFS; IFS='-'
3621set x $ac_cv_target
3622shift
3623target_cpu=$1
3624target_vendor=$2
3625shift; shift
3626# Remember, the first character of IFS is used to create $*,
3627# except with old shells:
3628target_os=$*
3629IFS=$ac_save_IFS
3630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3631
3632
3633# The aliases save the names the user supplied, while $host etc.
3634# will get canonicalized.
3635test -n "$target_alias" &&
3636  test "$program_prefix$program_suffix$program_transform_name" = \
3637    NONENONEs,x,x, &&
3638  program_prefix=${target_alias}-
3639
3640
3641
3642
3643
3644MAGICK_TARGET_CPU=$host_cpu
3645
3646
3647cat >>confdefs.h <<_ACEOF
3648#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3649_ACEOF
3650
3651
3652MAGICK_TARGET_VENDOR=$host_vendor
3653
3654
3655cat >>confdefs.h <<_ACEOF
3656#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3657_ACEOF
3658
3659
3660MAGICK_TARGET_OS=$host_os
3661
3662
3663cat >>confdefs.h <<_ACEOF
3664#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3665_ACEOF
3666
3667
3668# Substitute library versioning
3669MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3670
3671MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3672
3673MAGICK_SVN_REVISION=9450:9476M
3674
3675
3676
3677# Ensure that make can run correctly
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3679$as_echo_n "checking whether build environment is sane... " >&6; }
3680# Reject unsafe characters in $srcdir or the absolute working directory
3681# name.  Accept space and tab only in the latter.
3682am_lf='
3683'
3684case `pwd` in
3685  *[\\\"\#\$\&\'\`$am_lf]*)
3686    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3687esac
3688case $srcdir in
3689  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3690    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3691esac
3692
3693# Do 'set' in a subshell so we don't clobber the current shell's
3694# arguments.  Must try -L first in case configure is actually a
3695# symlink; some systems play weird games with the mod time of symlinks
3696# (eg FreeBSD returns the mod time of the symlink's containing
3697# directory).
3698if (
3699   am_has_slept=no
3700   for am_try in 1 2; do
3701     echo "timestamp, slept: $am_has_slept" > conftest.file
3702     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3703     if test "$*" = "X"; then
3704	# -L didn't work.
3705	set X `ls -t "$srcdir/configure" conftest.file`
3706     fi
3707     if test "$*" != "X $srcdir/configure conftest.file" \
3708	&& test "$*" != "X conftest.file $srcdir/configure"; then
3709
3710	# If neither matched, then we have a broken ls.  This can happen
3711	# if, for instance, CONFIG_SHELL is bash and it inherits a
3712	# broken ls alias from the environment.  This has actually
3713	# happened.  Such a system could not be considered "sane".
3714	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3715  alias in your environment" "$LINENO" 5
3716     fi
3717     if test "$2" = conftest.file || test $am_try -eq 2; then
3718       break
3719     fi
3720     # Just in case.
3721     sleep 1
3722     am_has_slept=yes
3723   done
3724   test "$2" = conftest.file
3725   )
3726then
3727   # Ok.
3728   :
3729else
3730   as_fn_error $? "newly created file is older than distributed files!
3731Check your system clock" "$LINENO" 5
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734$as_echo "yes" >&6; }
3735# If we didn't sleep, we still need to ensure time stamps of config.status and
3736# generated files are strictly newer.
3737am_sleep_pid=
3738if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3739  ( sleep 1 ) &
3740  am_sleep_pid=$!
3741fi
3742
3743rm -f conftest.file
3744
3745
3746am__api_version='1.12'
3747
3748# Find a good install program.  We prefer a C program (faster),
3749# so one script is as good as another.  But avoid the broken or
3750# incompatible versions:
3751# SysV /etc/install, /usr/sbin/install
3752# SunOS /usr/etc/install
3753# IRIX /sbin/install
3754# AIX /bin/install
3755# AmigaOS /C/install, which installs bootblocks on floppy discs
3756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3759# OS/2's system install, which has a completely different semantic
3760# ./install, which can be erroneously created by make from ./install.sh.
3761# Reject install programs that cannot install multiple files.
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3763$as_echo_n "checking for a BSD-compatible install... " >&6; }
3764if test -z "$INSTALL"; then
3765if ${ac_cv_path_install+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771  IFS=$as_save_IFS
3772  test -z "$as_dir" && as_dir=.
3773    # Account for people who put trailing slashes in PATH elements.
3774case $as_dir/ in #((
3775  ./ | .// | /[cC]/* | \
3776  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3777  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3778  /usr/ucb/* ) ;;
3779  *)
3780    # OSF1 and SCO ODT 3.0 have their own names for install.
3781    # Don't use installbsd from OSF since it installs stuff as root
3782    # by default.
3783    for ac_prog in ginstall scoinst install; do
3784      for ac_exec_ext in '' $ac_executable_extensions; do
3785	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3786	  if test $ac_prog = install &&
3787	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788	    # AIX install.  It has an incompatible calling convention.
3789	    :
3790	  elif test $ac_prog = install &&
3791	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792	    # program-specific install script used by HP pwplus--don't use.
3793	    :
3794	  else
3795	    rm -rf conftest.one conftest.two conftest.dir
3796	    echo one > conftest.one
3797	    echo two > conftest.two
3798	    mkdir conftest.dir
3799	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3800	      test -s conftest.one && test -s conftest.two &&
3801	      test -s conftest.dir/conftest.one &&
3802	      test -s conftest.dir/conftest.two
3803	    then
3804	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3805	      break 3
3806	    fi
3807	  fi
3808	fi
3809      done
3810    done
3811    ;;
3812esac
3813
3814  done
3815IFS=$as_save_IFS
3816
3817rm -rf conftest.one conftest.two conftest.dir
3818
3819fi
3820  if test "${ac_cv_path_install+set}" = set; then
3821    INSTALL=$ac_cv_path_install
3822  else
3823    # As a last resort, use the slow shell script.  Don't cache a
3824    # value for INSTALL within a source directory, because that will
3825    # break other packages using the cache if that directory is
3826    # removed, or if the value is a relative name.
3827    INSTALL=$ac_install_sh
3828  fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3831$as_echo "$INSTALL" >&6; }
3832
3833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3834# It thinks the first close brace ends the variable substitution.
3835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3836
3837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3838
3839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3840
3841test "$program_prefix" != NONE &&
3842  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3843# Use a double $ so make ignores it.
3844test "$program_suffix" != NONE &&
3845  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3846# Double any \ or $.
3847# By default was `s,x,x', remove it if useless.
3848ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3849program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3850
3851# expand $ac_aux_dir to an absolute path
3852am_aux_dir=`cd $ac_aux_dir && pwd`
3853
3854if test x"${MISSING+set}" != xset; then
3855  case $am_aux_dir in
3856  *\ * | *\	*)
3857    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3858  *)
3859    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3860  esac
3861fi
3862# Use eval to expand $SHELL
3863if eval "$MISSING --run true"; then
3864  am_missing_run="$MISSING --run "
3865else
3866  am_missing_run=
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3868$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3869fi
3870
3871if test x"${install_sh}" != xset; then
3872  case $am_aux_dir in
3873  *\ * | *\	*)
3874    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3875  *)
3876    install_sh="\${SHELL} $am_aux_dir/install-sh"
3877  esac
3878fi
3879
3880# Installed binaries are usually stripped using 'strip' when the user
3881# run "make install-strip".  However 'strip' might not be the right
3882# tool to use in cross-compilation environments, therefore Automake
3883# will honor the 'STRIP' environment variable to overrule this program.
3884if test "$cross_compiling" != no; then
3885  if test -n "$ac_tool_prefix"; then
3886  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3887set dummy ${ac_tool_prefix}strip; ac_word=$2
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889$as_echo_n "checking for $ac_word... " >&6; }
3890if ${ac_cv_prog_STRIP+:} false; then :
3891  $as_echo_n "(cached) " >&6
3892else
3893  if test -n "$STRIP"; then
3894  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899  IFS=$as_save_IFS
3900  test -z "$as_dir" && as_dir=.
3901    for ac_exec_ext in '' $ac_executable_extensions; do
3902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905    break 2
3906  fi
3907done
3908  done
3909IFS=$as_save_IFS
3910
3911fi
3912fi
3913STRIP=$ac_cv_prog_STRIP
3914if test -n "$STRIP"; then
3915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3916$as_echo "$STRIP" >&6; }
3917else
3918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920fi
3921
3922
3923fi
3924if test -z "$ac_cv_prog_STRIP"; then
3925  ac_ct_STRIP=$STRIP
3926  # Extract the first word of "strip", so it can be a program name with args.
3927set dummy strip; ac_word=$2
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929$as_echo_n "checking for $ac_word... " >&6; }
3930if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3931  $as_echo_n "(cached) " >&6
3932else
3933  if test -n "$ac_ct_STRIP"; then
3934  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939  IFS=$as_save_IFS
3940  test -z "$as_dir" && as_dir=.
3941    for ac_exec_ext in '' $ac_executable_extensions; do
3942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943    ac_cv_prog_ac_ct_STRIP="strip"
3944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945    break 2
3946  fi
3947done
3948  done
3949IFS=$as_save_IFS
3950
3951fi
3952fi
3953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3954if test -n "$ac_ct_STRIP"; then
3955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3956$as_echo "$ac_ct_STRIP" >&6; }
3957else
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
3960fi
3961
3962  if test "x$ac_ct_STRIP" = x; then
3963    STRIP=":"
3964  else
3965    case $cross_compiling:$ac_tool_warned in
3966yes:)
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969ac_tool_warned=yes ;;
3970esac
3971    STRIP=$ac_ct_STRIP
3972  fi
3973else
3974  STRIP="$ac_cv_prog_STRIP"
3975fi
3976
3977fi
3978INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3981$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3982if test -z "$MKDIR_P"; then
3983  if ${ac_cv_path_mkdir+:} false; then :
3984  $as_echo_n "(cached) " >&6
3985else
3986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991    for ac_prog in mkdir gmkdir; do
3992	 for ac_exec_ext in '' $ac_executable_extensions; do
3993	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3994	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3995	     'mkdir (GNU coreutils) '* | \
3996	     'mkdir (coreutils) '* | \
3997	     'mkdir (fileutils) '4.1*)
3998	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3999	       break 3;;
4000	   esac
4001	 done
4002       done
4003  done
4004IFS=$as_save_IFS
4005
4006fi
4007
4008  test -d ./--version && rmdir ./--version
4009  if test "${ac_cv_path_mkdir+set}" = set; then
4010    MKDIR_P="$ac_cv_path_mkdir -p"
4011  else
4012    # As a last resort, use the slow shell script.  Don't cache a
4013    # value for MKDIR_P within a source directory, because that will
4014    # break other packages using the cache if that directory is
4015    # removed, or if the value is a relative name.
4016    MKDIR_P="$ac_install_sh -d"
4017  fi
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4020$as_echo "$MKDIR_P" >&6; }
4021
4022for ac_prog in gawk mawk nawk awk
4023do
4024  # Extract the first word of "$ac_prog", so it can be a program name with args.
4025set dummy $ac_prog; ac_word=$2
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if ${ac_cv_prog_AWK+:} false; then :
4029  $as_echo_n "(cached) " >&6
4030else
4031  if test -n "$AWK"; then
4032  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4033else
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037  IFS=$as_save_IFS
4038  test -z "$as_dir" && as_dir=.
4039    for ac_exec_ext in '' $ac_executable_extensions; do
4040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041    ac_cv_prog_AWK="$ac_prog"
4042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043    break 2
4044  fi
4045done
4046  done
4047IFS=$as_save_IFS
4048
4049fi
4050fi
4051AWK=$ac_cv_prog_AWK
4052if test -n "$AWK"; then
4053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4054$as_echo "$AWK" >&6; }
4055else
4056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
4058fi
4059
4060
4061  test -n "$AWK" && break
4062done
4063
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4065$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4066set x ${MAKE-make}
4067ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4068if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  cat >conftest.make <<\_ACEOF
4072SHELL = /bin/sh
4073all:
4074	@echo '@@@%%%=$(MAKE)=@@@%%%'
4075_ACEOF
4076# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4077case `${MAKE-make} -f conftest.make 2>/dev/null` in
4078  *@@@%%%=?*=@@@%%%*)
4079    eval ac_cv_prog_make_${ac_make}_set=yes;;
4080  *)
4081    eval ac_cv_prog_make_${ac_make}_set=no;;
4082esac
4083rm -f conftest.make
4084fi
4085if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087$as_echo "yes" >&6; }
4088  SET_MAKE=
4089else
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092  SET_MAKE="MAKE=${MAKE-make}"
4093fi
4094
4095rm -rf .tst 2>/dev/null
4096mkdir .tst 2>/dev/null
4097if test -d .tst; then
4098  am__leading_dot=.
4099else
4100  am__leading_dot=_
4101fi
4102rmdir .tst 2>/dev/null
4103
4104# Check whether --enable-silent-rules was given.
4105if test "${enable_silent_rules+set}" = set; then :
4106  enableval=$enable_silent_rules;
4107fi
4108
4109case $enable_silent_rules in # (((
4110  yes) AM_DEFAULT_VERBOSITY=0;;
4111   no) AM_DEFAULT_VERBOSITY=1;;
4112    *) AM_DEFAULT_VERBOSITY=1;;
4113esac
4114am_make=${MAKE-make}
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4116$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4117if ${am_cv_make_support_nested_variables+:} false; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  if $as_echo 'TRUE=$(BAR$(V))
4121BAR0=false
4122BAR1=true
4123V=1
4124am__doit:
4125	@$(TRUE)
4126.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4127  am_cv_make_support_nested_variables=yes
4128else
4129  am_cv_make_support_nested_variables=no
4130fi
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4133$as_echo "$am_cv_make_support_nested_variables" >&6; }
4134if test $am_cv_make_support_nested_variables = yes; then
4135    AM_V='$(V)'
4136  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4137else
4138  AM_V=$AM_DEFAULT_VERBOSITY
4139  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4140fi
4141AM_BACKSLASH='\'
4142
4143if test "`cd $srcdir && pwd`" != "`pwd`"; then
4144  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4145  # is not polluted with repeated "-I."
4146  am__isrc=' -I$(srcdir)'
4147  # test to see if srcdir already configured
4148  if test -f $srcdir/config.status; then
4149    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4150  fi
4151fi
4152
4153# test whether we have cygpath
4154if test -z "$CYGPATH_W"; then
4155  if (cygpath --version) >/dev/null 2>/dev/null; then
4156    CYGPATH_W='cygpath -w'
4157  else
4158    CYGPATH_W=echo
4159  fi
4160fi
4161
4162
4163# Define the identity of the package.
4164 PACKAGE='ImageMagick'
4165 VERSION='7.0.0-0'
4166
4167
4168cat >>confdefs.h <<_ACEOF
4169#define PACKAGE "$PACKAGE"
4170_ACEOF
4171
4172
4173cat >>confdefs.h <<_ACEOF
4174#define VERSION "$VERSION"
4175_ACEOF
4176
4177# Some tools Automake needs.
4178
4179ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4180
4181
4182AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4183
4184
4185AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4186
4187
4188AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4189
4190
4191MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4192
4193# For better backward compatibility.  To be removed once Automake 1.9.x
4194# dies out for good.  For more background, see:
4195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4196# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4197mkdir_p='$(MKDIR_P)'
4198
4199# We need awk for the "check" target.  The system "awk" is bad on
4200# some platforms.
4201# Always define AMTAR for backward compatibility.  Yes, it's still used
4202# in the wild :-(  We should find a proper way to deprecate it ...
4203AMTAR='$${TAR-tar}'
4204
4205am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4206
4207
4208
4209
4210
4211
4212# Enable support for silent build rules
4213# Check whether --enable-silent-rules was given.
4214if test "${enable_silent_rules+set}" = set; then :
4215  enableval=$enable_silent_rules;
4216fi
4217
4218case $enable_silent_rules in # (((
4219  yes) AM_DEFAULT_VERBOSITY=0;;
4220   no) AM_DEFAULT_VERBOSITY=1;;
4221    *) AM_DEFAULT_VERBOSITY=0;;
4222esac
4223am_make=${MAKE-make}
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4225$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4226if ${am_cv_make_support_nested_variables+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  if $as_echo 'TRUE=$(BAR$(V))
4230BAR0=false
4231BAR1=true
4232V=1
4233am__doit:
4234	@$(TRUE)
4235.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4236  am_cv_make_support_nested_variables=yes
4237else
4238  am_cv_make_support_nested_variables=no
4239fi
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4242$as_echo "$am_cv_make_support_nested_variables" >&6; }
4243if test $am_cv_make_support_nested_variables = yes; then
4244    AM_V='$(V)'
4245  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4246else
4247  AM_V=$AM_DEFAULT_VERBOSITY
4248  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4249fi
4250AM_BACKSLASH='\'
4251
4252
4253MAGICK_LIB_VERSION="0x"
4254if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4255  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4256fi
4257MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4258if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4259  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4260fi
4261MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4262if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4263  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4264fi
4265MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4266
4267
4268# Definition used to define MagickLibVersionText in version.h
4269MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4270
4271
4272# Definition used to define MagickLibVersionNumber in version.h
4273MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4274
4275
4276# Regenerate config.status if ChangeLog or version.sh is updated.
4277CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4278
4279
4280PERLMAINCC=$CC
4281
4282MAGICK_CFLAGS=''
4283MAGICK_CPPFLAGS=$CPPFLAGS_USER
4284MAGICK_PCFLAGS=$CPPFLAGS_USER
4285MAGICK_LDFLAGS=''
4286MAGICK_LIBS=''
4287MAGICK_FEATURES=''
4288
4289#
4290# Evaluate shell variable equivalents to Makefile directory variables
4291#
4292if test "x$prefix" = xNONE; then
4293    prefix=$ac_default_prefix
4294fi
4295# Let make expand exec_prefix.
4296if test "x$exec_prefix" = xNONE; then
4297    exec_prefix='${prefix}'
4298fi
4299
4300#
4301eval "eval PREFIX_DIR=${prefix}"
4302
4303eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4304
4305eval "eval BIN_DIR=$bindir"
4306
4307eval "eval SBIN_DIR=$sbindir"
4308
4309eval "eval LIBEXEC_DIR=$libexecdir"
4310
4311eval "eval DATA_DIR=$datadir"
4312
4313eval "eval DOC_DIR=$datadir/doc"
4314
4315eval "eval SYSCONF_DIR=$sysconfdir"
4316
4317eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4318
4319eval "eval LOCALSTATE_DIR=$localstatedir"
4320
4321eval "eval LIB_DIR=$libdir"
4322
4323eval "eval INCLUDE_DIR=$includedir"
4324
4325eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4326
4327eval "eval INFO_DIR=$infodir"
4328
4329eval "eval MAN_DIR=$mandir"
4330
4331
4332# Get full paths to source and build directories
4333srcdirfull="`cd $srcdir && pwd`"
4334builddir="`pwd`"
4335
4336#
4337# Compute variables useful for running uninstalled software.
4338#
4339MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4340MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4341MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4342MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4343DIRSEP=':'
4344case "${build_os}" in
4345    mingw* )
4346        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4347        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4348        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4349        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4350        DIRSEP=';'
4351    ;;
4352esac
4353case "${host_os}" in
4354  mingw* )
4355    DIRSEP=';'
4356    ;;
4357esac
4358
4359
4360
4361
4362
4363
4364
4365#
4366# Enable OS features.
4367#
4368DEPDIR="${am__leading_dot}deps"
4369
4370ac_config_commands="$ac_config_commands depfiles"
4371
4372
4373am_make=${MAKE-make}
4374cat > confinc << 'END'
4375am__doit:
4376	@echo this is the am__doit target
4377.PHONY: am__doit
4378END
4379# If we don't find an include directive, just comment out the code.
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4381$as_echo_n "checking for style of include used by $am_make... " >&6; }
4382am__include="#"
4383am__quote=
4384_am_result=none
4385# First try GNU make style include.
4386echo "include confinc" > confmf
4387# Ignore all kinds of additional output from 'make'.
4388case `$am_make -s -f confmf 2> /dev/null` in #(
4389*the\ am__doit\ target*)
4390  am__include=include
4391  am__quote=
4392  _am_result=GNU
4393  ;;
4394esac
4395# Now try BSD make style include.
4396if test "$am__include" = "#"; then
4397   echo '.include "confinc"' > confmf
4398   case `$am_make -s -f confmf 2> /dev/null` in #(
4399   *the\ am__doit\ target*)
4400     am__include=.include
4401     am__quote="\""
4402     _am_result=BSD
4403     ;;
4404   esac
4405fi
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4409$as_echo "$_am_result" >&6; }
4410rm -f confinc confmf
4411
4412# Check whether --enable-dependency-tracking was given.
4413if test "${enable_dependency_tracking+set}" = set; then :
4414  enableval=$enable_dependency_tracking;
4415fi
4416
4417if test "x$enable_dependency_tracking" != xno; then
4418  am_depcomp="$ac_aux_dir/depcomp"
4419  AMDEPBACKSLASH='\'
4420  am__nodep='_no'
4421fi
4422 if test "x$enable_dependency_tracking" != xno; then
4423  AMDEP_TRUE=
4424  AMDEP_FALSE='#'
4425else
4426  AMDEP_TRUE='#'
4427  AMDEP_FALSE=
4428fi
4429
4430
4431ac_ext=c
4432ac_cpp='$CPP $CPPFLAGS'
4433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436if test -n "$ac_tool_prefix"; then
4437  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4438set dummy ${ac_tool_prefix}gcc; ac_word=$2
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440$as_echo_n "checking for $ac_word... " >&6; }
4441if ${ac_cv_prog_CC+:} false; then :
4442  $as_echo_n "(cached) " >&6
4443else
4444  if test -n "$CC"; then
4445  ac_cv_prog_CC="$CC" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452    for ac_exec_ext in '' $ac_executable_extensions; do
4453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456    break 2
4457  fi
4458done
4459  done
4460IFS=$as_save_IFS
4461
4462fi
4463fi
4464CC=$ac_cv_prog_CC
4465if test -n "$CC"; then
4466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4467$as_echo "$CC" >&6; }
4468else
4469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470$as_echo "no" >&6; }
4471fi
4472
4473
4474fi
4475if test -z "$ac_cv_prog_CC"; then
4476  ac_ct_CC=$CC
4477  # Extract the first word of "gcc", so it can be a program name with args.
4478set dummy gcc; ac_word=$2
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480$as_echo_n "checking for $ac_word... " >&6; }
4481if ${ac_cv_prog_ac_ct_CC+:} false; then :
4482  $as_echo_n "(cached) " >&6
4483else
4484  if test -n "$ac_ct_CC"; then
4485  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4486else
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490  IFS=$as_save_IFS
4491  test -z "$as_dir" && as_dir=.
4492    for ac_exec_ext in '' $ac_executable_extensions; do
4493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494    ac_cv_prog_ac_ct_CC="gcc"
4495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496    break 2
4497  fi
4498done
4499  done
4500IFS=$as_save_IFS
4501
4502fi
4503fi
4504ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505if test -n "$ac_ct_CC"; then
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4507$as_echo "$ac_ct_CC" >&6; }
4508else
4509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511fi
4512
4513  if test "x$ac_ct_CC" = x; then
4514    CC=""
4515  else
4516    case $cross_compiling:$ac_tool_warned in
4517yes:)
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520ac_tool_warned=yes ;;
4521esac
4522    CC=$ac_ct_CC
4523  fi
4524else
4525  CC="$ac_cv_prog_CC"
4526fi
4527
4528if test -z "$CC"; then
4529          if test -n "$ac_tool_prefix"; then
4530    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4531set dummy ${ac_tool_prefix}cc; ac_word=$2
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533$as_echo_n "checking for $ac_word... " >&6; }
4534if ${ac_cv_prog_CC+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if test -n "$CC"; then
4538  ac_cv_prog_CC="$CC" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543  IFS=$as_save_IFS
4544  test -z "$as_dir" && as_dir=.
4545    for ac_exec_ext in '' $ac_executable_extensions; do
4546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547    ac_cv_prog_CC="${ac_tool_prefix}cc"
4548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549    break 2
4550  fi
4551done
4552  done
4553IFS=$as_save_IFS
4554
4555fi
4556fi
4557CC=$ac_cv_prog_CC
4558if test -n "$CC"; then
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560$as_echo "$CC" >&6; }
4561else
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563$as_echo "no" >&6; }
4564fi
4565
4566
4567  fi
4568fi
4569if test -z "$CC"; then
4570  # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573$as_echo_n "checking for $ac_word... " >&6; }
4574if ${ac_cv_prog_CC+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  if test -n "$CC"; then
4578  ac_cv_prog_CC="$CC" # Let the user override the test.
4579else
4580  ac_prog_rejected=no
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584  IFS=$as_save_IFS
4585  test -z "$as_dir" && as_dir=.
4586    for ac_exec_ext in '' $ac_executable_extensions; do
4587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589       ac_prog_rejected=yes
4590       continue
4591     fi
4592    ac_cv_prog_CC="cc"
4593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594    break 2
4595  fi
4596done
4597  done
4598IFS=$as_save_IFS
4599
4600if test $ac_prog_rejected = yes; then
4601  # We found a bogon in the path, so make sure we never use it.
4602  set dummy $ac_cv_prog_CC
4603  shift
4604  if test $# != 0; then
4605    # We chose a different compiler from the bogus one.
4606    # However, it has the same basename, so the bogon will be chosen
4607    # first if we set CC to just the basename; use the full file name.
4608    shift
4609    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610  fi
4611fi
4612fi
4613fi
4614CC=$ac_cv_prog_CC
4615if test -n "$CC"; then
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617$as_echo "$CC" >&6; }
4618else
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620$as_echo "no" >&6; }
4621fi
4622
4623
4624fi
4625if test -z "$CC"; then
4626  if test -n "$ac_tool_prefix"; then
4627  for ac_prog in cl.exe
4628  do
4629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
4633if ${ac_cv_prog_CC+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  if test -n "$CC"; then
4637  ac_cv_prog_CC="$CC" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_exec_ext in '' $ac_executable_extensions; do
4645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648    break 2
4649  fi
4650done
4651  done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656CC=$ac_cv_prog_CC
4657if test -n "$CC"; then
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659$as_echo "$CC" >&6; }
4660else
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663fi
4664
4665
4666    test -n "$CC" && break
4667  done
4668fi
4669if test -z "$CC"; then
4670  ac_ct_CC=$CC
4671  for ac_prog in cl.exe
4672do
4673  # Extract the first word of "$ac_prog", so it can be a program name with args.
4674set dummy $ac_prog; ac_word=$2
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676$as_echo_n "checking for $ac_word... " >&6; }
4677if ${ac_cv_prog_ac_ct_CC+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  if test -n "$ac_ct_CC"; then
4681  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686  IFS=$as_save_IFS
4687  test -z "$as_dir" && as_dir=.
4688    for ac_exec_ext in '' $ac_executable_extensions; do
4689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690    ac_cv_prog_ac_ct_CC="$ac_prog"
4691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692    break 2
4693  fi
4694done
4695  done
4696IFS=$as_save_IFS
4697
4698fi
4699fi
4700ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701if test -n "$ac_ct_CC"; then
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703$as_echo "$ac_ct_CC" >&6; }
4704else
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706$as_echo "no" >&6; }
4707fi
4708
4709
4710  test -n "$ac_ct_CC" && break
4711done
4712
4713  if test "x$ac_ct_CC" = x; then
4714    CC=""
4715  else
4716    case $cross_compiling:$ac_tool_warned in
4717yes:)
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720ac_tool_warned=yes ;;
4721esac
4722    CC=$ac_ct_CC
4723  fi
4724fi
4725
4726fi
4727
4728
4729test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4731as_fn_error $? "no acceptable C compiler found in \$PATH
4732See \`config.log' for more details" "$LINENO" 5; }
4733
4734# Provide some information about the compiler.
4735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4736set X $ac_compile
4737ac_compiler=$2
4738for ac_option in --version -v -V -qversion; do
4739  { { ac_try="$ac_compiler $ac_option >&5"
4740case "(($ac_try" in
4741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742  *) ac_try_echo=$ac_try;;
4743esac
4744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745$as_echo "$ac_try_echo"; } >&5
4746  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4747  ac_status=$?
4748  if test -s conftest.err; then
4749    sed '10a\
4750... rest of stderr output deleted ...
4751         10q' conftest.err >conftest.er1
4752    cat conftest.er1 >&5
4753  fi
4754  rm -f conftest.er1 conftest.err
4755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756  test $ac_status = 0; }
4757done
4758
4759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761
4762int
4763main ()
4764{
4765
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770ac_clean_files_save=$ac_clean_files
4771ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4772# Try to create an executable without -o first, disregard a.out.
4773# It will help us diagnose broken compilers, and finding out an intuition
4774# of exeext.
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4776$as_echo_n "checking whether the C compiler works... " >&6; }
4777ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4778
4779# The possible output files:
4780ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4781
4782ac_rmfiles=
4783for ac_file in $ac_files
4784do
4785  case $ac_file in
4786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4787    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4788  esac
4789done
4790rm -f $ac_rmfiles
4791
4792if { { ac_try="$ac_link_default"
4793case "(($ac_try" in
4794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795  *) ac_try_echo=$ac_try;;
4796esac
4797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798$as_echo "$ac_try_echo"; } >&5
4799  (eval "$ac_link_default") 2>&5
4800  ac_status=$?
4801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802  test $ac_status = 0; }; then :
4803  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4804# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4805# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4806# so that the user can short-circuit this test for compilers unknown to
4807# Autoconf.
4808for ac_file in $ac_files ''
4809do
4810  test -f "$ac_file" || continue
4811  case $ac_file in
4812    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4813	;;
4814    [ab].out )
4815	# We found the default executable, but exeext='' is most
4816	# certainly right.
4817	break;;
4818    *.* )
4819	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4820	then :; else
4821	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4822	fi
4823	# We set ac_cv_exeext here because the later test for it is not
4824	# safe: cross compilers may not add the suffix if given an `-o'
4825	# argument, so we may need to know it at that point already.
4826	# Even if this section looks crufty: it has the advantage of
4827	# actually working.
4828	break;;
4829    * )
4830	break;;
4831  esac
4832done
4833test "$ac_cv_exeext" = no && ac_cv_exeext=
4834
4835else
4836  ac_file=''
4837fi
4838if test -z "$ac_file"; then :
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840$as_echo "no" >&6; }
4841$as_echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4846as_fn_error 77 "C compiler cannot create executables
4847See \`config.log' for more details" "$LINENO" 5; }
4848else
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850$as_echo "yes" >&6; }
4851fi
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4853$as_echo_n "checking for C compiler default output file name... " >&6; }
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4855$as_echo "$ac_file" >&6; }
4856ac_exeext=$ac_cv_exeext
4857
4858rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4859ac_clean_files=$ac_clean_files_save
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4861$as_echo_n "checking for suffix of executables... " >&6; }
4862if { { ac_try="$ac_link"
4863case "(($ac_try" in
4864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865  *) ac_try_echo=$ac_try;;
4866esac
4867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4868$as_echo "$ac_try_echo"; } >&5
4869  (eval "$ac_link") 2>&5
4870  ac_status=$?
4871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872  test $ac_status = 0; }; then :
4873  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4874# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4875# work properly (i.e., refer to `conftest.exe'), while it won't with
4876# `rm'.
4877for ac_file in conftest.exe conftest conftest.*; do
4878  test -f "$ac_file" || continue
4879  case $ac_file in
4880    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4881    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4882	  break;;
4883    * ) break;;
4884  esac
4885done
4886else
4887  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4889as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4890See \`config.log' for more details" "$LINENO" 5; }
4891fi
4892rm -f conftest conftest$ac_cv_exeext
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4894$as_echo "$ac_cv_exeext" >&6; }
4895
4896rm -f conftest.$ac_ext
4897EXEEXT=$ac_cv_exeext
4898ac_exeext=$EXEEXT
4899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901#include <stdio.h>
4902int
4903main ()
4904{
4905FILE *f = fopen ("conftest.out", "w");
4906 return ferror (f) || fclose (f) != 0;
4907
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912ac_clean_files="$ac_clean_files conftest.out"
4913# Check that the compiler produces executables we can run.  If not, either
4914# the compiler is broken, or we cross compile.
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4916$as_echo_n "checking whether we are cross compiling... " >&6; }
4917if test "$cross_compiling" != yes; then
4918  { { ac_try="$ac_link"
4919case "(($ac_try" in
4920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921  *) ac_try_echo=$ac_try;;
4922esac
4923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924$as_echo "$ac_try_echo"; } >&5
4925  (eval "$ac_link") 2>&5
4926  ac_status=$?
4927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928  test $ac_status = 0; }
4929  if { ac_try='./conftest$ac_cv_exeext'
4930  { { case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935$as_echo "$ac_try_echo"; } >&5
4936  (eval "$ac_try") 2>&5
4937  ac_status=$?
4938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939  test $ac_status = 0; }; }; then
4940    cross_compiling=no
4941  else
4942    if test "$cross_compiling" = maybe; then
4943	cross_compiling=yes
4944    else
4945	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4947as_fn_error $? "cannot run C compiled programs.
4948If you meant to cross compile, use \`--host'.
4949See \`config.log' for more details" "$LINENO" 5; }
4950    fi
4951  fi
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4954$as_echo "$cross_compiling" >&6; }
4955
4956rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4957ac_clean_files=$ac_clean_files_save
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4959$as_echo_n "checking for suffix of object files... " >&6; }
4960if ${ac_cv_objext+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h.  */
4965
4966int
4967main ()
4968{
4969
4970  ;
4971  return 0;
4972}
4973_ACEOF
4974rm -f conftest.o conftest.obj
4975if { { ac_try="$ac_compile"
4976case "(($ac_try" in
4977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978  *) ac_try_echo=$ac_try;;
4979esac
4980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981$as_echo "$ac_try_echo"; } >&5
4982  (eval "$ac_compile") 2>&5
4983  ac_status=$?
4984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985  test $ac_status = 0; }; then :
4986  for ac_file in conftest.o conftest.obj conftest.*; do
4987  test -f "$ac_file" || continue;
4988  case $ac_file in
4989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4990    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4991       break;;
4992  esac
4993done
4994else
4995  $as_echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5000as_fn_error $? "cannot compute suffix of object files: cannot compile
5001See \`config.log' for more details" "$LINENO" 5; }
5002fi
5003rm -f conftest.$ac_cv_objext conftest.$ac_ext
5004fi
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5006$as_echo "$ac_cv_objext" >&6; }
5007OBJEXT=$ac_cv_objext
5008ac_objext=$OBJEXT
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5010$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5011if ${ac_cv_c_compiler_gnu+:} false; then :
5012  $as_echo_n "(cached) " >&6
5013else
5014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h.  */
5016
5017int
5018main ()
5019{
5020#ifndef __GNUC__
5021       choke me
5022#endif
5023
5024  ;
5025  return 0;
5026}
5027_ACEOF
5028if ac_fn_c_try_compile "$LINENO"; then :
5029  ac_compiler_gnu=yes
5030else
5031  ac_compiler_gnu=no
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034ac_cv_c_compiler_gnu=$ac_compiler_gnu
5035
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5038$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5039if test $ac_compiler_gnu = yes; then
5040  GCC=yes
5041else
5042  GCC=
5043fi
5044ac_test_CFLAGS=${CFLAGS+set}
5045ac_save_CFLAGS=$CFLAGS
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5047$as_echo_n "checking whether $CC accepts -g... " >&6; }
5048if ${ac_cv_prog_cc_g+:} false; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051  ac_save_c_werror_flag=$ac_c_werror_flag
5052   ac_c_werror_flag=yes
5053   ac_cv_prog_cc_g=no
5054   CFLAGS="-g"
5055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h.  */
5057
5058int
5059main ()
5060{
5061
5062  ;
5063  return 0;
5064}
5065_ACEOF
5066if ac_fn_c_try_compile "$LINENO"; then :
5067  ac_cv_prog_cc_g=yes
5068else
5069  CFLAGS=""
5070      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072
5073int
5074main ()
5075{
5076
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081if ac_fn_c_try_compile "$LINENO"; then :
5082
5083else
5084  ac_c_werror_flag=$ac_save_c_werror_flag
5085	 CFLAGS="-g"
5086	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088
5089int
5090main ()
5091{
5092
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_compile "$LINENO"; then :
5098  ac_cv_prog_cc_g=yes
5099fi
5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105   ac_c_werror_flag=$ac_save_c_werror_flag
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5108$as_echo "$ac_cv_prog_cc_g" >&6; }
5109if test "$ac_test_CFLAGS" = set; then
5110  CFLAGS=$ac_save_CFLAGS
5111elif test $ac_cv_prog_cc_g = yes; then
5112  if test "$GCC" = yes; then
5113    CFLAGS="-g -O2"
5114  else
5115    CFLAGS="-g"
5116  fi
5117else
5118  if test "$GCC" = yes; then
5119    CFLAGS="-O2"
5120  else
5121    CFLAGS=
5122  fi
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5125$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5126if ${ac_cv_prog_cc_c89+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  ac_cv_prog_cc_c89=no
5130ac_save_CC=$CC
5131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133#include <stdarg.h>
5134#include <stdio.h>
5135struct stat;
5136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5137struct buf { int x; };
5138FILE * (*rcsopen) (struct buf *, struct stat *, int);
5139static char *e (p, i)
5140     char **p;
5141     int i;
5142{
5143  return p[i];
5144}
5145static char *f (char * (*g) (char **, int), char **p, ...)
5146{
5147  char *s;
5148  va_list v;
5149  va_start (v,p);
5150  s = g (p, va_arg (v,int));
5151  va_end (v);
5152  return s;
5153}
5154
5155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5156   function prototypes and stuff, but not '\xHH' hex character constants.
5157   These don't provoke an error unfortunately, instead are silently treated
5158   as 'x'.  The following induces an error, until -std is added to get
5159   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5160   array size at least.  It's necessary to write '\x00'==0 to get something
5161   that's true only with -std.  */
5162int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5163
5164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5165   inside strings and character constants.  */
5166#define FOO(x) 'x'
5167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5168
5169int test (int i, double x);
5170struct s1 {int (*f) (int a);};
5171struct s2 {int (*f) (double a);};
5172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5173int argc;
5174char **argv;
5175int
5176main ()
5177{
5178return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5179  ;
5180  return 0;
5181}
5182_ACEOF
5183for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5184	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5185do
5186  CC="$ac_save_CC $ac_arg"
5187  if ac_fn_c_try_compile "$LINENO"; then :
5188  ac_cv_prog_cc_c89=$ac_arg
5189fi
5190rm -f core conftest.err conftest.$ac_objext
5191  test "x$ac_cv_prog_cc_c89" != "xno" && break
5192done
5193rm -f conftest.$ac_ext
5194CC=$ac_save_CC
5195
5196fi
5197# AC_CACHE_VAL
5198case "x$ac_cv_prog_cc_c89" in
5199  x)
5200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5201$as_echo "none needed" >&6; } ;;
5202  xno)
5203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5204$as_echo "unsupported" >&6; } ;;
5205  *)
5206    CC="$CC $ac_cv_prog_cc_c89"
5207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5209esac
5210if test "x$ac_cv_prog_cc_c89" != xno; then :
5211
5212fi
5213
5214ac_ext=c
5215ac_cpp='$CPP $CPPFLAGS'
5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219
5220depcc="$CC"   am_compiler_list=
5221
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5223$as_echo_n "checking dependency style of $depcc... " >&6; }
5224if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5228  # We make a subdir and do the tests there.  Otherwise we can end up
5229  # making bogus files that we don't know about and never remove.  For
5230  # instance it was reported that on HP-UX the gcc test will end up
5231  # making a dummy file named 'D' -- because '-MD' means "put the output
5232  # in D".
5233  rm -rf conftest.dir
5234  mkdir conftest.dir
5235  # Copy depcomp to subdir because otherwise we won't find it if we're
5236  # using a relative directory.
5237  cp "$am_depcomp" conftest.dir
5238  cd conftest.dir
5239  # We will build objects and dependencies in a subdirectory because
5240  # it helps to detect inapplicable dependency modes.  For instance
5241  # both Tru64's cc and ICC support -MD to output dependencies as a
5242  # side effect of compilation, but ICC will put the dependencies in
5243  # the current directory while Tru64 will put them in the object
5244  # directory.
5245  mkdir sub
5246
5247  am_cv_CC_dependencies_compiler_type=none
5248  if test "$am_compiler_list" = ""; then
5249     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5250  fi
5251  am__universal=false
5252  case " $depcc " in #(
5253     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5254     esac
5255
5256  for depmode in $am_compiler_list; do
5257    # Setup a source with many dependencies, because some compilers
5258    # like to wrap large dependency lists on column 80 (with \), and
5259    # we should not choose a depcomp mode which is confused by this.
5260    #
5261    # We need to recreate these files for each test, as the compiler may
5262    # overwrite some of them when testing with obscure command lines.
5263    # This happens at least with the AIX C compiler.
5264    : > sub/conftest.c
5265    for i in 1 2 3 4 5 6; do
5266      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5267      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5268      # Solaris 10 /bin/sh.
5269      echo '/* dummy */' > sub/conftst$i.h
5270    done
5271    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5272
5273    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5274    # mode.  It turns out that the SunPro C++ compiler does not properly
5275    # handle '-M -o', and we need to detect this.  Also, some Intel
5276    # versions had trouble with output in subdirs.
5277    am__obj=sub/conftest.${OBJEXT-o}
5278    am__minus_obj="-o $am__obj"
5279    case $depmode in
5280    gcc)
5281      # This depmode causes a compiler race in universal mode.
5282      test "$am__universal" = false || continue
5283      ;;
5284    nosideeffect)
5285      # After this tag, mechanisms are not by side-effect, so they'll
5286      # only be used when explicitly requested.
5287      if test "x$enable_dependency_tracking" = xyes; then
5288	continue
5289      else
5290	break
5291      fi
5292      ;;
5293    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5294      # This compiler won't grok '-c -o', but also, the minuso test has
5295      # not run yet.  These depmodes are late enough in the game, and
5296      # so weak that their functioning should not be impacted.
5297      am__obj=conftest.${OBJEXT-o}
5298      am__minus_obj=
5299      ;;
5300    none) break ;;
5301    esac
5302    if depmode=$depmode \
5303       source=sub/conftest.c object=$am__obj \
5304       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5305       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5306         >/dev/null 2>conftest.err &&
5307       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5308       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5309       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5310       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5311      # icc doesn't choke on unknown options, it will just issue warnings
5312      # or remarks (even with -Werror).  So we grep stderr for any message
5313      # that says an option was ignored or not supported.
5314      # When given -MP, icc 7.0 and 7.1 complain thusly:
5315      #   icc: Command line warning: ignoring option '-M'; no argument required
5316      # The diagnosis changed in icc 8.0:
5317      #   icc: Command line remark: option '-MP' not supported
5318      if (grep 'ignoring option' conftest.err ||
5319          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5320        am_cv_CC_dependencies_compiler_type=$depmode
5321        break
5322      fi
5323    fi
5324  done
5325
5326  cd ..
5327  rm -rf conftest.dir
5328else
5329  am_cv_CC_dependencies_compiler_type=none
5330fi
5331
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5334$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5336
5337 if
5338  test "x$enable_dependency_tracking" != xno \
5339  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5340  am__fastdepCC_TRUE=
5341  am__fastdepCC_FALSE='#'
5342else
5343  am__fastdepCC_TRUE='#'
5344  am__fastdepCC_FALSE=
5345fi
5346
5347
5348
5349ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5355$as_echo_n "checking how to run the C preprocessor... " >&6; }
5356# On Suns, sometimes $CPP names a directory.
5357if test -n "$CPP" && test -d "$CPP"; then
5358  CPP=
5359fi
5360if test -z "$CPP"; then
5361  if ${ac_cv_prog_CPP+:} false; then :
5362  $as_echo_n "(cached) " >&6
5363else
5364      # Double quotes because CPP needs to be expanded
5365    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5366    do
5367      ac_preproc_ok=false
5368for ac_c_preproc_warn_flag in '' yes
5369do
5370  # Use a header file that comes with gcc, so configuring glibc
5371  # with a fresh cross-compiler works.
5372  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373  # <limits.h> exists even on freestanding compilers.
5374  # On the NeXT, cc -E runs the code through the compiler's parser,
5375  # not just through cpp. "Syntax error" is here to catch this case.
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378#ifdef __STDC__
5379# include <limits.h>
5380#else
5381# include <assert.h>
5382#endif
5383		     Syntax error
5384_ACEOF
5385if ac_fn_c_try_cpp "$LINENO"; then :
5386
5387else
5388  # Broken: fails on valid input.
5389continue
5390fi
5391rm -f conftest.err conftest.i conftest.$ac_ext
5392
5393  # OK, works on sane cases.  Now check whether nonexistent headers
5394  # can be detected and how.
5395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397#include <ac_nonexistent.h>
5398_ACEOF
5399if ac_fn_c_try_cpp "$LINENO"; then :
5400  # Broken: success on invalid input.
5401continue
5402else
5403  # Passes both tests.
5404ac_preproc_ok=:
5405break
5406fi
5407rm -f conftest.err conftest.i conftest.$ac_ext
5408
5409done
5410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5411rm -f conftest.i conftest.err conftest.$ac_ext
5412if $ac_preproc_ok; then :
5413  break
5414fi
5415
5416    done
5417    ac_cv_prog_CPP=$CPP
5418
5419fi
5420  CPP=$ac_cv_prog_CPP
5421else
5422  ac_cv_prog_CPP=$CPP
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5425$as_echo "$CPP" >&6; }
5426ac_preproc_ok=false
5427for ac_c_preproc_warn_flag in '' yes
5428do
5429  # Use a header file that comes with gcc, so configuring glibc
5430  # with a fresh cross-compiler works.
5431  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432  # <limits.h> exists even on freestanding compilers.
5433  # On the NeXT, cc -E runs the code through the compiler's parser,
5434  # not just through cpp. "Syntax error" is here to catch this case.
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437#ifdef __STDC__
5438# include <limits.h>
5439#else
5440# include <assert.h>
5441#endif
5442		     Syntax error
5443_ACEOF
5444if ac_fn_c_try_cpp "$LINENO"; then :
5445
5446else
5447  # Broken: fails on valid input.
5448continue
5449fi
5450rm -f conftest.err conftest.i conftest.$ac_ext
5451
5452  # OK, works on sane cases.  Now check whether nonexistent headers
5453  # can be detected and how.
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456#include <ac_nonexistent.h>
5457_ACEOF
5458if ac_fn_c_try_cpp "$LINENO"; then :
5459  # Broken: success on invalid input.
5460continue
5461else
5462  # Passes both tests.
5463ac_preproc_ok=:
5464break
5465fi
5466rm -f conftest.err conftest.i conftest.$ac_ext
5467
5468done
5469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5470rm -f conftest.i conftest.err conftest.$ac_ext
5471if $ac_preproc_ok; then :
5472
5473else
5474  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5476as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5477See \`config.log' for more details" "$LINENO" 5; }
5478fi
5479
5480ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5488$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5489if ${ac_cv_path_GREP+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  if test -z "$GREP"; then
5493  ac_path_GREP_found=false
5494  # Loop through the user's path and test for each of PROGNAME-LIST
5495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497do
5498  IFS=$as_save_IFS
5499  test -z "$as_dir" && as_dir=.
5500    for ac_prog in grep ggrep; do
5501    for ac_exec_ext in '' $ac_executable_extensions; do
5502      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5503      as_fn_executable_p "$ac_path_GREP" || continue
5504# Check for GNU ac_path_GREP and select it if it is found.
5505  # Check for GNU $ac_path_GREP
5506case `"$ac_path_GREP" --version 2>&1` in
5507*GNU*)
5508  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5509*)
5510  ac_count=0
5511  $as_echo_n 0123456789 >"conftest.in"
5512  while :
5513  do
5514    cat "conftest.in" "conftest.in" >"conftest.tmp"
5515    mv "conftest.tmp" "conftest.in"
5516    cp "conftest.in" "conftest.nl"
5517    $as_echo 'GREP' >> "conftest.nl"
5518    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5520    as_fn_arith $ac_count + 1 && ac_count=$as_val
5521    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5522      # Best one so far, save it but keep looking for a better one
5523      ac_cv_path_GREP="$ac_path_GREP"
5524      ac_path_GREP_max=$ac_count
5525    fi
5526    # 10*(2^10) chars as input seems more than enough
5527    test $ac_count -gt 10 && break
5528  done
5529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5530esac
5531
5532      $ac_path_GREP_found && break 3
5533    done
5534  done
5535  done
5536IFS=$as_save_IFS
5537  if test -z "$ac_cv_path_GREP"; then
5538    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5539  fi
5540else
5541  ac_cv_path_GREP=$GREP
5542fi
5543
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5546$as_echo "$ac_cv_path_GREP" >&6; }
5547 GREP="$ac_cv_path_GREP"
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5551$as_echo_n "checking for egrep... " >&6; }
5552if ${ac_cv_path_EGREP+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5556   then ac_cv_path_EGREP="$GREP -E"
5557   else
5558     if test -z "$EGREP"; then
5559  ac_path_EGREP_found=false
5560  # Loop through the user's path and test for each of PROGNAME-LIST
5561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566    for ac_prog in egrep; do
5567    for ac_exec_ext in '' $ac_executable_extensions; do
5568      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5569      as_fn_executable_p "$ac_path_EGREP" || continue
5570# Check for GNU ac_path_EGREP and select it if it is found.
5571  # Check for GNU $ac_path_EGREP
5572case `"$ac_path_EGREP" --version 2>&1` in
5573*GNU*)
5574  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5575*)
5576  ac_count=0
5577  $as_echo_n 0123456789 >"conftest.in"
5578  while :
5579  do
5580    cat "conftest.in" "conftest.in" >"conftest.tmp"
5581    mv "conftest.tmp" "conftest.in"
5582    cp "conftest.in" "conftest.nl"
5583    $as_echo 'EGREP' >> "conftest.nl"
5584    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586    as_fn_arith $ac_count + 1 && ac_count=$as_val
5587    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5588      # Best one so far, save it but keep looking for a better one
5589      ac_cv_path_EGREP="$ac_path_EGREP"
5590      ac_path_EGREP_max=$ac_count
5591    fi
5592    # 10*(2^10) chars as input seems more than enough
5593    test $ac_count -gt 10 && break
5594  done
5595  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596esac
5597
5598      $ac_path_EGREP_found && break 3
5599    done
5600  done
5601  done
5602IFS=$as_save_IFS
5603  if test -z "$ac_cv_path_EGREP"; then
5604    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5605  fi
5606else
5607  ac_cv_path_EGREP=$EGREP
5608fi
5609
5610   fi
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5613$as_echo "$ac_cv_path_EGREP" >&6; }
5614 EGREP="$ac_cv_path_EGREP"
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5618$as_echo_n "checking for ANSI C header files... " >&6; }
5619if ${ac_cv_header_stdc+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624#include <stdlib.h>
5625#include <stdarg.h>
5626#include <string.h>
5627#include <float.h>
5628
5629int
5630main ()
5631{
5632
5633  ;
5634  return 0;
5635}
5636_ACEOF
5637if ac_fn_c_try_compile "$LINENO"; then :
5638  ac_cv_header_stdc=yes
5639else
5640  ac_cv_header_stdc=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643
5644if test $ac_cv_header_stdc = yes; then
5645  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h.  */
5648#include <string.h>
5649
5650_ACEOF
5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652  $EGREP "memchr" >/dev/null 2>&1; then :
5653
5654else
5655  ac_cv_header_stdc=no
5656fi
5657rm -f conftest*
5658
5659fi
5660
5661if test $ac_cv_header_stdc = yes; then
5662  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665#include <stdlib.h>
5666
5667_ACEOF
5668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5669  $EGREP "free" >/dev/null 2>&1; then :
5670
5671else
5672  ac_cv_header_stdc=no
5673fi
5674rm -f conftest*
5675
5676fi
5677
5678if test $ac_cv_header_stdc = yes; then
5679  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5680  if test "$cross_compiling" = yes; then :
5681  :
5682else
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685#include <ctype.h>
5686#include <stdlib.h>
5687#if ((' ' & 0x0FF) == 0x020)
5688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690#else
5691# define ISLOWER(c) \
5692		   (('a' <= (c) && (c) <= 'i') \
5693		     || ('j' <= (c) && (c) <= 'r') \
5694		     || ('s' <= (c) && (c) <= 'z'))
5695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5696#endif
5697
5698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699int
5700main ()
5701{
5702  int i;
5703  for (i = 0; i < 256; i++)
5704    if (XOR (islower (i), ISLOWER (i))
5705	|| toupper (i) != TOUPPER (i))
5706      return 2;
5707  return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_run "$LINENO"; then :
5711
5712else
5713  ac_cv_header_stdc=no
5714fi
5715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716  conftest.$ac_objext conftest.beam conftest.$ac_ext
5717fi
5718
5719fi
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5722$as_echo "$ac_cv_header_stdc" >&6; }
5723if test $ac_cv_header_stdc = yes; then
5724
5725$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5726
5727fi
5728
5729# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5731		  inttypes.h stdint.h unistd.h
5732do :
5733  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5735"
5736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5737  cat >>confdefs.h <<_ACEOF
5738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5739_ACEOF
5740
5741fi
5742
5743done
5744
5745
5746
5747  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5748if test "x$ac_cv_header_minix_config_h" = xyes; then :
5749  MINIX=yes
5750else
5751  MINIX=
5752fi
5753
5754
5755  if test "$MINIX" = yes; then
5756
5757$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5758
5759
5760$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5761
5762
5763$as_echo "#define _MINIX 1" >>confdefs.h
5764
5765  fi
5766
5767
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5769$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5770if ${ac_cv_safe_to_define___extensions__+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h.  */
5775
5776#         define __EXTENSIONS__ 1
5777          $ac_includes_default
5778int
5779main ()
5780{
5781
5782  ;
5783  return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"; then :
5787  ac_cv_safe_to_define___extensions__=yes
5788else
5789  ac_cv_safe_to_define___extensions__=no
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5794$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5795  test $ac_cv_safe_to_define___extensions__ = yes &&
5796    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5797
5798  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5799
5800  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5801
5802  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5803
5804  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5805
5806
5807
5808# Check for programs
5809ac_ext=c
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814if test -n "$ac_tool_prefix"; then
5815  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}gcc; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if ${ac_cv_prog_CC+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  if test -n "$CC"; then
5823  ac_cv_prog_CC="$CC" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828  IFS=$as_save_IFS
5829  test -z "$as_dir" && as_dir=.
5830    for ac_exec_ext in '' $ac_executable_extensions; do
5831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834    break 2
5835  fi
5836done
5837  done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842CC=$ac_cv_prog_CC
5843if test -n "$CC"; then
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5845$as_echo "$CC" >&6; }
5846else
5847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852fi
5853if test -z "$ac_cv_prog_CC"; then
5854  ac_ct_CC=$CC
5855  # Extract the first word of "gcc", so it can be a program name with args.
5856set dummy gcc; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_ac_ct_CC+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  if test -n "$ac_ct_CC"; then
5863  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868  IFS=$as_save_IFS
5869  test -z "$as_dir" && as_dir=.
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872    ac_cv_prog_ac_ct_CC="gcc"
5873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874    break 2
5875  fi
5876done
5877  done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_CC=$ac_cv_prog_ac_ct_CC
5883if test -n "$ac_ct_CC"; then
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5885$as_echo "$ac_ct_CC" >&6; }
5886else
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891  if test "x$ac_ct_CC" = x; then
5892    CC=""
5893  else
5894    case $cross_compiling:$ac_tool_warned in
5895yes:)
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898ac_tool_warned=yes ;;
5899esac
5900    CC=$ac_ct_CC
5901  fi
5902else
5903  CC="$ac_cv_prog_CC"
5904fi
5905
5906if test -z "$CC"; then
5907          if test -n "$ac_tool_prefix"; then
5908    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}cc; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if ${ac_cv_prog_CC+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  if test -n "$CC"; then
5916  ac_cv_prog_CC="$CC" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923    for ac_exec_ext in '' $ac_executable_extensions; do
5924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925    ac_cv_prog_CC="${ac_tool_prefix}cc"
5926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930  done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935CC=$ac_cv_prog_CC
5936if test -n "$CC"; then
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5938$as_echo "$CC" >&6; }
5939else
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945  fi
5946fi
5947if test -z "$CC"; then
5948  # Extract the first word of "cc", so it can be a program name with args.
5949set dummy cc; ac_word=$2
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
5952if ${ac_cv_prog_CC+:} false; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  if test -n "$CC"; then
5956  ac_cv_prog_CC="$CC" # Let the user override the test.
5957else
5958  ac_prog_rejected=no
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5967       ac_prog_rejected=yes
5968       continue
5969     fi
5970    ac_cv_prog_CC="cc"
5971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975  done
5976IFS=$as_save_IFS
5977
5978if test $ac_prog_rejected = yes; then
5979  # We found a bogon in the path, so make sure we never use it.
5980  set dummy $ac_cv_prog_CC
5981  shift
5982  if test $# != 0; then
5983    # We chose a different compiler from the bogus one.
5984    # However, it has the same basename, so the bogon will be chosen
5985    # first if we set CC to just the basename; use the full file name.
5986    shift
5987    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5988  fi
5989fi
5990fi
5991fi
5992CC=$ac_cv_prog_CC
5993if test -n "$CC"; then
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5995$as_echo "$CC" >&6; }
5996else
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001
6002fi
6003if test -z "$CC"; then
6004  if test -n "$ac_tool_prefix"; then
6005  for ac_prog in cl.exe
6006  do
6007    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if ${ac_cv_prog_CC+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  if test -n "$CC"; then
6015  ac_cv_prog_CC="$CC" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020  IFS=$as_save_IFS
6021  test -z "$as_dir" && as_dir=.
6022    for ac_exec_ext in '' $ac_executable_extensions; do
6023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026    break 2
6027  fi
6028done
6029  done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034CC=$ac_cv_prog_CC
6035if test -n "$CC"; then
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6037$as_echo "$CC" >&6; }
6038else
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044    test -n "$CC" && break
6045  done
6046fi
6047if test -z "$CC"; then
6048  ac_ct_CC=$CC
6049  for ac_prog in cl.exe
6050do
6051  # Extract the first word of "$ac_prog", so it can be a program name with args.
6052set dummy $ac_prog; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if ${ac_cv_prog_ac_ct_CC+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  if test -n "$ac_ct_CC"; then
6059  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066    for ac_exec_ext in '' $ac_executable_extensions; do
6067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068    ac_cv_prog_ac_ct_CC="$ac_prog"
6069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073  done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_CC=$ac_cv_prog_ac_ct_CC
6079if test -n "$ac_ct_CC"; then
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6081$as_echo "$ac_ct_CC" >&6; }
6082else
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088  test -n "$ac_ct_CC" && break
6089done
6090
6091  if test "x$ac_ct_CC" = x; then
6092    CC=""
6093  else
6094    case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100    CC=$ac_ct_CC
6101  fi
6102fi
6103
6104fi
6105
6106
6107test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6109as_fn_error $? "no acceptable C compiler found in \$PATH
6110See \`config.log' for more details" "$LINENO" 5; }
6111
6112# Provide some information about the compiler.
6113$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6114set X $ac_compile
6115ac_compiler=$2
6116for ac_option in --version -v -V -qversion; do
6117  { { ac_try="$ac_compiler $ac_option >&5"
6118case "(($ac_try" in
6119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120  *) ac_try_echo=$ac_try;;
6121esac
6122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6123$as_echo "$ac_try_echo"; } >&5
6124  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6125  ac_status=$?
6126  if test -s conftest.err; then
6127    sed '10a\
6128... rest of stderr output deleted ...
6129         10q' conftest.err >conftest.er1
6130    cat conftest.er1 >&5
6131  fi
6132  rm -f conftest.er1 conftest.err
6133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134  test $ac_status = 0; }
6135done
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6138$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6139if ${ac_cv_c_compiler_gnu+:} false; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144
6145int
6146main ()
6147{
6148#ifndef __GNUC__
6149       choke me
6150#endif
6151
6152  ;
6153  return 0;
6154}
6155_ACEOF
6156if ac_fn_c_try_compile "$LINENO"; then :
6157  ac_compiler_gnu=yes
6158else
6159  ac_compiler_gnu=no
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162ac_cv_c_compiler_gnu=$ac_compiler_gnu
6163
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6166$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6167if test $ac_compiler_gnu = yes; then
6168  GCC=yes
6169else
6170  GCC=
6171fi
6172ac_test_CFLAGS=${CFLAGS+set}
6173ac_save_CFLAGS=$CFLAGS
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6175$as_echo_n "checking whether $CC accepts -g... " >&6; }
6176if ${ac_cv_prog_cc_g+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  ac_save_c_werror_flag=$ac_c_werror_flag
6180   ac_c_werror_flag=yes
6181   ac_cv_prog_cc_g=no
6182   CFLAGS="-g"
6183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h.  */
6185
6186int
6187main ()
6188{
6189
6190  ;
6191  return 0;
6192}
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195  ac_cv_prog_cc_g=yes
6196else
6197  CFLAGS=""
6198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h.  */
6200
6201int
6202main ()
6203{
6204
6205  ;
6206  return 0;
6207}
6208_ACEOF
6209if ac_fn_c_try_compile "$LINENO"; then :
6210
6211else
6212  ac_c_werror_flag=$ac_save_c_werror_flag
6213	 CFLAGS="-g"
6214	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216
6217int
6218main ()
6219{
6220
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"; then :
6226  ac_cv_prog_cc_g=yes
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233   ac_c_werror_flag=$ac_save_c_werror_flag
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6236$as_echo "$ac_cv_prog_cc_g" >&6; }
6237if test "$ac_test_CFLAGS" = set; then
6238  CFLAGS=$ac_save_CFLAGS
6239elif test $ac_cv_prog_cc_g = yes; then
6240  if test "$GCC" = yes; then
6241    CFLAGS="-g -O2"
6242  else
6243    CFLAGS="-g"
6244  fi
6245else
6246  if test "$GCC" = yes; then
6247    CFLAGS="-O2"
6248  else
6249    CFLAGS=
6250  fi
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6253$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6254if ${ac_cv_prog_cc_c89+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  ac_cv_prog_cc_c89=no
6258ac_save_CC=$CC
6259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261#include <stdarg.h>
6262#include <stdio.h>
6263struct stat;
6264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6265struct buf { int x; };
6266FILE * (*rcsopen) (struct buf *, struct stat *, int);
6267static char *e (p, i)
6268     char **p;
6269     int i;
6270{
6271  return p[i];
6272}
6273static char *f (char * (*g) (char **, int), char **p, ...)
6274{
6275  char *s;
6276  va_list v;
6277  va_start (v,p);
6278  s = g (p, va_arg (v,int));
6279  va_end (v);
6280  return s;
6281}
6282
6283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6284   function prototypes and stuff, but not '\xHH' hex character constants.
6285   These don't provoke an error unfortunately, instead are silently treated
6286   as 'x'.  The following induces an error, until -std is added to get
6287   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6288   array size at least.  It's necessary to write '\x00'==0 to get something
6289   that's true only with -std.  */
6290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6291
6292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6293   inside strings and character constants.  */
6294#define FOO(x) 'x'
6295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6296
6297int test (int i, double x);
6298struct s1 {int (*f) (int a);};
6299struct s2 {int (*f) (double a);};
6300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6301int argc;
6302char **argv;
6303int
6304main ()
6305{
6306return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6307  ;
6308  return 0;
6309}
6310_ACEOF
6311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6312	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6313do
6314  CC="$ac_save_CC $ac_arg"
6315  if ac_fn_c_try_compile "$LINENO"; then :
6316  ac_cv_prog_cc_c89=$ac_arg
6317fi
6318rm -f core conftest.err conftest.$ac_objext
6319  test "x$ac_cv_prog_cc_c89" != "xno" && break
6320done
6321rm -f conftest.$ac_ext
6322CC=$ac_save_CC
6323
6324fi
6325# AC_CACHE_VAL
6326case "x$ac_cv_prog_cc_c89" in
6327  x)
6328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6329$as_echo "none needed" >&6; } ;;
6330  xno)
6331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6332$as_echo "unsupported" >&6; } ;;
6333  *)
6334    CC="$CC $ac_cv_prog_cc_c89"
6335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6336$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6337esac
6338if test "x$ac_cv_prog_cc_c89" != xno; then :
6339
6340fi
6341
6342ac_ext=c
6343ac_cpp='$CPP $CPPFLAGS'
6344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346ac_compiler_gnu=$ac_cv_c_compiler_gnu
6347
6348depcc="$CC"   am_compiler_list=
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6351$as_echo_n "checking dependency style of $depcc... " >&6; }
6352if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6356  # We make a subdir and do the tests there.  Otherwise we can end up
6357  # making bogus files that we don't know about and never remove.  For
6358  # instance it was reported that on HP-UX the gcc test will end up
6359  # making a dummy file named 'D' -- because '-MD' means "put the output
6360  # in D".
6361  rm -rf conftest.dir
6362  mkdir conftest.dir
6363  # Copy depcomp to subdir because otherwise we won't find it if we're
6364  # using a relative directory.
6365  cp "$am_depcomp" conftest.dir
6366  cd conftest.dir
6367  # We will build objects and dependencies in a subdirectory because
6368  # it helps to detect inapplicable dependency modes.  For instance
6369  # both Tru64's cc and ICC support -MD to output dependencies as a
6370  # side effect of compilation, but ICC will put the dependencies in
6371  # the current directory while Tru64 will put them in the object
6372  # directory.
6373  mkdir sub
6374
6375  am_cv_CC_dependencies_compiler_type=none
6376  if test "$am_compiler_list" = ""; then
6377     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6378  fi
6379  am__universal=false
6380  case " $depcc " in #(
6381     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6382     esac
6383
6384  for depmode in $am_compiler_list; do
6385    # Setup a source with many dependencies, because some compilers
6386    # like to wrap large dependency lists on column 80 (with \), and
6387    # we should not choose a depcomp mode which is confused by this.
6388    #
6389    # We need to recreate these files for each test, as the compiler may
6390    # overwrite some of them when testing with obscure command lines.
6391    # This happens at least with the AIX C compiler.
6392    : > sub/conftest.c
6393    for i in 1 2 3 4 5 6; do
6394      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6395      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6396      # Solaris 10 /bin/sh.
6397      echo '/* dummy */' > sub/conftst$i.h
6398    done
6399    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6400
6401    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6402    # mode.  It turns out that the SunPro C++ compiler does not properly
6403    # handle '-M -o', and we need to detect this.  Also, some Intel
6404    # versions had trouble with output in subdirs.
6405    am__obj=sub/conftest.${OBJEXT-o}
6406    am__minus_obj="-o $am__obj"
6407    case $depmode in
6408    gcc)
6409      # This depmode causes a compiler race in universal mode.
6410      test "$am__universal" = false || continue
6411      ;;
6412    nosideeffect)
6413      # After this tag, mechanisms are not by side-effect, so they'll
6414      # only be used when explicitly requested.
6415      if test "x$enable_dependency_tracking" = xyes; then
6416	continue
6417      else
6418	break
6419      fi
6420      ;;
6421    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6422      # This compiler won't grok '-c -o', but also, the minuso test has
6423      # not run yet.  These depmodes are late enough in the game, and
6424      # so weak that their functioning should not be impacted.
6425      am__obj=conftest.${OBJEXT-o}
6426      am__minus_obj=
6427      ;;
6428    none) break ;;
6429    esac
6430    if depmode=$depmode \
6431       source=sub/conftest.c object=$am__obj \
6432       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6433       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6434         >/dev/null 2>conftest.err &&
6435       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6436       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6437       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6438       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6439      # icc doesn't choke on unknown options, it will just issue warnings
6440      # or remarks (even with -Werror).  So we grep stderr for any message
6441      # that says an option was ignored or not supported.
6442      # When given -MP, icc 7.0 and 7.1 complain thusly:
6443      #   icc: Command line warning: ignoring option '-M'; no argument required
6444      # The diagnosis changed in icc 8.0:
6445      #   icc: Command line remark: option '-MP' not supported
6446      if (grep 'ignoring option' conftest.err ||
6447          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6448        am_cv_CC_dependencies_compiler_type=$depmode
6449        break
6450      fi
6451    fi
6452  done
6453
6454  cd ..
6455  rm -rf conftest.dir
6456else
6457  am_cv_CC_dependencies_compiler_type=none
6458fi
6459
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6462$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6463CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6464
6465 if
6466  test "x$enable_dependency_tracking" != xno \
6467  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6468  am__fastdepCC_TRUE=
6469  am__fastdepCC_FALSE='#'
6470else
6471  am__fastdepCC_TRUE='#'
6472  am__fastdepCC_FALSE=
6473fi
6474
6475
6476ac_ext=cpp
6477ac_cpp='$CXXCPP $CPPFLAGS'
6478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6481if test -z "$CXX"; then
6482  if test -n "$CCC"; then
6483    CXX=$CCC
6484  else
6485    if test -n "$ac_tool_prefix"; then
6486  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6487  do
6488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
6492if ${ac_cv_prog_CXX+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  if test -n "$CXX"; then
6496  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  test -z "$as_dir" && as_dir=.
6503    for ac_exec_ext in '' $ac_executable_extensions; do
6504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    break 2
6508  fi
6509done
6510  done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515CXX=$ac_cv_prog_CXX
6516if test -n "$CXX"; then
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6518$as_echo "$CXX" >&6; }
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525    test -n "$CXX" && break
6526  done
6527fi
6528if test -z "$CXX"; then
6529  ac_ct_CXX=$CXX
6530  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6531do
6532  # Extract the first word of "$ac_prog", so it can be a program name with args.
6533set dummy $ac_prog; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  if test -n "$ac_ct_CXX"; then
6540  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545  IFS=$as_save_IFS
6546  test -z "$as_dir" && as_dir=.
6547    for ac_exec_ext in '' $ac_executable_extensions; do
6548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549    ac_cv_prog_ac_ct_CXX="$ac_prog"
6550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551    break 2
6552  fi
6553done
6554  done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6560if test -n "$ac_ct_CXX"; then
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6562$as_echo "$ac_ct_CXX" >&6; }
6563else
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569  test -n "$ac_ct_CXX" && break
6570done
6571
6572  if test "x$ac_ct_CXX" = x; then
6573    CXX="g++"
6574  else
6575    case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581    CXX=$ac_ct_CXX
6582  fi
6583fi
6584
6585  fi
6586fi
6587# Provide some information about the compiler.
6588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6589set X $ac_compile
6590ac_compiler=$2
6591for ac_option in --version -v -V -qversion; do
6592  { { ac_try="$ac_compiler $ac_option >&5"
6593case "(($ac_try" in
6594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595  *) ac_try_echo=$ac_try;;
6596esac
6597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6598$as_echo "$ac_try_echo"; } >&5
6599  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6600  ac_status=$?
6601  if test -s conftest.err; then
6602    sed '10a\
6603... rest of stderr output deleted ...
6604         10q' conftest.err >conftest.er1
6605    cat conftest.er1 >&5
6606  fi
6607  rm -f conftest.er1 conftest.err
6608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609  test $ac_status = 0; }
6610done
6611
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6613$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6614if ${ac_cv_cxx_compiler_gnu+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619
6620int
6621main ()
6622{
6623#ifndef __GNUC__
6624       choke me
6625#endif
6626
6627  ;
6628  return 0;
6629}
6630_ACEOF
6631if ac_fn_cxx_try_compile "$LINENO"; then :
6632  ac_compiler_gnu=yes
6633else
6634  ac_compiler_gnu=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6638
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6641$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6642if test $ac_compiler_gnu = yes; then
6643  GXX=yes
6644else
6645  GXX=
6646fi
6647ac_test_CXXFLAGS=${CXXFLAGS+set}
6648ac_save_CXXFLAGS=$CXXFLAGS
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6650$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6651if ${ac_cv_prog_cxx_g+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6655   ac_cxx_werror_flag=yes
6656   ac_cv_prog_cxx_g=no
6657   CXXFLAGS="-g"
6658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660
6661int
6662main ()
6663{
6664
6665  ;
6666  return 0;
6667}
6668_ACEOF
6669if ac_fn_cxx_try_compile "$LINENO"; then :
6670  ac_cv_prog_cxx_g=yes
6671else
6672  CXXFLAGS=""
6673      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675
6676int
6677main ()
6678{
6679
6680  ;
6681  return 0;
6682}
6683_ACEOF
6684if ac_fn_cxx_try_compile "$LINENO"; then :
6685
6686else
6687  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6688	 CXXFLAGS="-g"
6689	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h.  */
6691
6692int
6693main ()
6694{
6695
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700if ac_fn_cxx_try_compile "$LINENO"; then :
6701  ac_cv_prog_cxx_g=yes
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6709fi
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6711$as_echo "$ac_cv_prog_cxx_g" >&6; }
6712if test "$ac_test_CXXFLAGS" = set; then
6713  CXXFLAGS=$ac_save_CXXFLAGS
6714elif test $ac_cv_prog_cxx_g = yes; then
6715  if test "$GXX" = yes; then
6716    CXXFLAGS="-g -O2"
6717  else
6718    CXXFLAGS="-g"
6719  fi
6720else
6721  if test "$GXX" = yes; then
6722    CXXFLAGS="-O2"
6723  else
6724    CXXFLAGS=
6725  fi
6726fi
6727ac_ext=c
6728ac_cpp='$CPP $CPPFLAGS'
6729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
6733depcc="$CXX"  am_compiler_list=
6734
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6736$as_echo_n "checking dependency style of $depcc... " >&6; }
6737if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6741  # We make a subdir and do the tests there.  Otherwise we can end up
6742  # making bogus files that we don't know about and never remove.  For
6743  # instance it was reported that on HP-UX the gcc test will end up
6744  # making a dummy file named 'D' -- because '-MD' means "put the output
6745  # in D".
6746  rm -rf conftest.dir
6747  mkdir conftest.dir
6748  # Copy depcomp to subdir because otherwise we won't find it if we're
6749  # using a relative directory.
6750  cp "$am_depcomp" conftest.dir
6751  cd conftest.dir
6752  # We will build objects and dependencies in a subdirectory because
6753  # it helps to detect inapplicable dependency modes.  For instance
6754  # both Tru64's cc and ICC support -MD to output dependencies as a
6755  # side effect of compilation, but ICC will put the dependencies in
6756  # the current directory while Tru64 will put them in the object
6757  # directory.
6758  mkdir sub
6759
6760  am_cv_CXX_dependencies_compiler_type=none
6761  if test "$am_compiler_list" = ""; then
6762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6763  fi
6764  am__universal=false
6765  case " $depcc " in #(
6766     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6767     esac
6768
6769  for depmode in $am_compiler_list; do
6770    # Setup a source with many dependencies, because some compilers
6771    # like to wrap large dependency lists on column 80 (with \), and
6772    # we should not choose a depcomp mode which is confused by this.
6773    #
6774    # We need to recreate these files for each test, as the compiler may
6775    # overwrite some of them when testing with obscure command lines.
6776    # This happens at least with the AIX C compiler.
6777    : > sub/conftest.c
6778    for i in 1 2 3 4 5 6; do
6779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6780      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6781      # Solaris 10 /bin/sh.
6782      echo '/* dummy */' > sub/conftst$i.h
6783    done
6784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6785
6786    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6787    # mode.  It turns out that the SunPro C++ compiler does not properly
6788    # handle '-M -o', and we need to detect this.  Also, some Intel
6789    # versions had trouble with output in subdirs.
6790    am__obj=sub/conftest.${OBJEXT-o}
6791    am__minus_obj="-o $am__obj"
6792    case $depmode in
6793    gcc)
6794      # This depmode causes a compiler race in universal mode.
6795      test "$am__universal" = false || continue
6796      ;;
6797    nosideeffect)
6798      # After this tag, mechanisms are not by side-effect, so they'll
6799      # only be used when explicitly requested.
6800      if test "x$enable_dependency_tracking" = xyes; then
6801	continue
6802      else
6803	break
6804      fi
6805      ;;
6806    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6807      # This compiler won't grok '-c -o', but also, the minuso test has
6808      # not run yet.  These depmodes are late enough in the game, and
6809      # so weak that their functioning should not be impacted.
6810      am__obj=conftest.${OBJEXT-o}
6811      am__minus_obj=
6812      ;;
6813    none) break ;;
6814    esac
6815    if depmode=$depmode \
6816       source=sub/conftest.c object=$am__obj \
6817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6818       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6819         >/dev/null 2>conftest.err &&
6820       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6821       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6822       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6823       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6824      # icc doesn't choke on unknown options, it will just issue warnings
6825      # or remarks (even with -Werror).  So we grep stderr for any message
6826      # that says an option was ignored or not supported.
6827      # When given -MP, icc 7.0 and 7.1 complain thusly:
6828      #   icc: Command line warning: ignoring option '-M'; no argument required
6829      # The diagnosis changed in icc 8.0:
6830      #   icc: Command line remark: option '-MP' not supported
6831      if (grep 'ignoring option' conftest.err ||
6832          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6833        am_cv_CXX_dependencies_compiler_type=$depmode
6834        break
6835      fi
6836    fi
6837  done
6838
6839  cd ..
6840  rm -rf conftest.dir
6841else
6842  am_cv_CXX_dependencies_compiler_type=none
6843fi
6844
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6847$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6848CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6849
6850 if
6851  test "x$enable_dependency_tracking" != xno \
6852  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6853  am__fastdepCXX_TRUE=
6854  am__fastdepCXX_FALSE='#'
6855else
6856  am__fastdepCXX_TRUE='#'
6857  am__fastdepCXX_FALSE=
6858fi
6859
6860
6861   case $ac_cv_prog_cc_stdc in #(
6862  no) :
6863    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6864  *) :
6865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6866$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6867if ${ac_cv_prog_cc_c99+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870  ac_cv_prog_cc_c99=no
6871ac_save_CC=$CC
6872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874#include <stdarg.h>
6875#include <stdbool.h>
6876#include <stdlib.h>
6877#include <wchar.h>
6878#include <stdio.h>
6879
6880// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6881#define debug(...) fprintf (stderr, __VA_ARGS__)
6882#define showlist(...) puts (#__VA_ARGS__)
6883#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6884static void
6885test_varargs_macros (void)
6886{
6887  int x = 1234;
6888  int y = 5678;
6889  debug ("Flag");
6890  debug ("X = %d\n", x);
6891  showlist (The first, second, and third items.);
6892  report (x>y, "x is %d but y is %d", x, y);
6893}
6894
6895// Check long long types.
6896#define BIG64 18446744073709551615ull
6897#define BIG32 4294967295ul
6898#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6899#if !BIG_OK
6900  your preprocessor is broken;
6901#endif
6902#if BIG_OK
6903#else
6904  your preprocessor is broken;
6905#endif
6906static long long int bignum = -9223372036854775807LL;
6907static unsigned long long int ubignum = BIG64;
6908
6909struct incomplete_array
6910{
6911  int datasize;
6912  double data[];
6913};
6914
6915struct named_init {
6916  int number;
6917  const wchar_t *name;
6918  double average;
6919};
6920
6921typedef const char *ccp;
6922
6923static inline int
6924test_restrict (ccp restrict text)
6925{
6926  // See if C++-style comments work.
6927  // Iterate through items via the restricted pointer.
6928  // Also check for declarations in for loops.
6929  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6930    continue;
6931  return 0;
6932}
6933
6934// Check varargs and va_copy.
6935static void
6936test_varargs (const char *format, ...)
6937{
6938  va_list args;
6939  va_start (args, format);
6940  va_list args_copy;
6941  va_copy (args_copy, args);
6942
6943  const char *str;
6944  int number;
6945  float fnumber;
6946
6947  while (*format)
6948    {
6949      switch (*format++)
6950	{
6951	case 's': // string
6952	  str = va_arg (args_copy, const char *);
6953	  break;
6954	case 'd': // int
6955	  number = va_arg (args_copy, int);
6956	  break;
6957	case 'f': // float
6958	  fnumber = va_arg (args_copy, double);
6959	  break;
6960	default:
6961	  break;
6962	}
6963    }
6964  va_end (args_copy);
6965  va_end (args);
6966}
6967
6968int
6969main ()
6970{
6971
6972  // Check bool.
6973  _Bool success = false;
6974
6975  // Check restrict.
6976  if (test_restrict ("String literal") == 0)
6977    success = true;
6978  char *restrict newvar = "Another string";
6979
6980  // Check varargs.
6981  test_varargs ("s, d' f .", "string", 65, 34.234);
6982  test_varargs_macros ();
6983
6984  // Check flexible array members.
6985  struct incomplete_array *ia =
6986    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6987  ia->datasize = 10;
6988  for (int i = 0; i < ia->datasize; ++i)
6989    ia->data[i] = i * 1.234;
6990
6991  // Check named initializers.
6992  struct named_init ni = {
6993    .number = 34,
6994    .name = L"Test wide string",
6995    .average = 543.34343,
6996  };
6997
6998  ni.number = 58;
6999
7000  int dynamic_array[ni.number];
7001  dynamic_array[ni.number - 1] = 543;
7002
7003  // work around unused variable warnings
7004  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7005	  || dynamic_array[ni.number - 1] != 543);
7006
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7012do
7013  CC="$ac_save_CC $ac_arg"
7014  if ac_fn_c_try_compile "$LINENO"; then :
7015  ac_cv_prog_cc_c99=$ac_arg
7016fi
7017rm -f core conftest.err conftest.$ac_objext
7018  test "x$ac_cv_prog_cc_c99" != "xno" && break
7019done
7020rm -f conftest.$ac_ext
7021CC=$ac_save_CC
7022
7023fi
7024# AC_CACHE_VAL
7025case "x$ac_cv_prog_cc_c99" in
7026  x)
7027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7028$as_echo "none needed" >&6; } ;;
7029  xno)
7030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7031$as_echo "unsupported" >&6; } ;;
7032  *)
7033    CC="$CC $ac_cv_prog_cc_c99"
7034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7035$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7036esac
7037if test "x$ac_cv_prog_cc_c99" != xno; then :
7038  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7039else
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7041$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7042if ${ac_cv_prog_cc_c89+:} false; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  ac_cv_prog_cc_c89=no
7046ac_save_CC=$CC
7047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049#include <stdarg.h>
7050#include <stdio.h>
7051struct stat;
7052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7053struct buf { int x; };
7054FILE * (*rcsopen) (struct buf *, struct stat *, int);
7055static char *e (p, i)
7056     char **p;
7057     int i;
7058{
7059  return p[i];
7060}
7061static char *f (char * (*g) (char **, int), char **p, ...)
7062{
7063  char *s;
7064  va_list v;
7065  va_start (v,p);
7066  s = g (p, va_arg (v,int));
7067  va_end (v);
7068  return s;
7069}
7070
7071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7072   function prototypes and stuff, but not '\xHH' hex character constants.
7073   These don't provoke an error unfortunately, instead are silently treated
7074   as 'x'.  The following induces an error, until -std is added to get
7075   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7076   array size at least.  It's necessary to write '\x00'==0 to get something
7077   that's true only with -std.  */
7078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7079
7080/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7081   inside strings and character constants.  */
7082#define FOO(x) 'x'
7083int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7084
7085int test (int i, double x);
7086struct s1 {int (*f) (int a);};
7087struct s2 {int (*f) (double a);};
7088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7089int argc;
7090char **argv;
7091int
7092main ()
7093{
7094return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7100	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7101do
7102  CC="$ac_save_CC $ac_arg"
7103  if ac_fn_c_try_compile "$LINENO"; then :
7104  ac_cv_prog_cc_c89=$ac_arg
7105fi
7106rm -f core conftest.err conftest.$ac_objext
7107  test "x$ac_cv_prog_cc_c89" != "xno" && break
7108done
7109rm -f conftest.$ac_ext
7110CC=$ac_save_CC
7111
7112fi
7113# AC_CACHE_VAL
7114case "x$ac_cv_prog_cc_c89" in
7115  x)
7116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7117$as_echo "none needed" >&6; } ;;
7118  xno)
7119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7120$as_echo "unsupported" >&6; } ;;
7121  *)
7122    CC="$CC $ac_cv_prog_cc_c89"
7123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7125esac
7126if test "x$ac_cv_prog_cc_c89" != xno; then :
7127  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7128else
7129  ac_cv_prog_cc_stdc=no
7130fi
7131
7132fi
7133 ;;
7134esac
7135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7136$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7137  if ${ac_cv_prog_cc_stdc+:} false; then :
7138  $as_echo_n "(cached) " >&6
7139fi
7140
7141  case $ac_cv_prog_cc_stdc in #(
7142  no) :
7143    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7144$as_echo "unsupported" >&6; } ;; #(
7145  '') :
7146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7147$as_echo "none needed" >&6; } ;; #(
7148  *) :
7149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7150$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7151esac
7152
7153ac_ext=c
7154ac_cpp='$CPP $CPPFLAGS'
7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7159$as_echo_n "checking how to run the C preprocessor... " >&6; }
7160# On Suns, sometimes $CPP names a directory.
7161if test -n "$CPP" && test -d "$CPP"; then
7162  CPP=
7163fi
7164if test -z "$CPP"; then
7165  if ${ac_cv_prog_CPP+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168      # Double quotes because CPP needs to be expanded
7169    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7170    do
7171      ac_preproc_ok=false
7172for ac_c_preproc_warn_flag in '' yes
7173do
7174  # Use a header file that comes with gcc, so configuring glibc
7175  # with a fresh cross-compiler works.
7176  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7177  # <limits.h> exists even on freestanding compilers.
7178  # On the NeXT, cc -E runs the code through the compiler's parser,
7179  # not just through cpp. "Syntax error" is here to catch this case.
7180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182#ifdef __STDC__
7183# include <limits.h>
7184#else
7185# include <assert.h>
7186#endif
7187		     Syntax error
7188_ACEOF
7189if ac_fn_c_try_cpp "$LINENO"; then :
7190
7191else
7192  # Broken: fails on valid input.
7193continue
7194fi
7195rm -f conftest.err conftest.i conftest.$ac_ext
7196
7197  # OK, works on sane cases.  Now check whether nonexistent headers
7198  # can be detected and how.
7199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h.  */
7201#include <ac_nonexistent.h>
7202_ACEOF
7203if ac_fn_c_try_cpp "$LINENO"; then :
7204  # Broken: success on invalid input.
7205continue
7206else
7207  # Passes both tests.
7208ac_preproc_ok=:
7209break
7210fi
7211rm -f conftest.err conftest.i conftest.$ac_ext
7212
7213done
7214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7215rm -f conftest.i conftest.err conftest.$ac_ext
7216if $ac_preproc_ok; then :
7217  break
7218fi
7219
7220    done
7221    ac_cv_prog_CPP=$CPP
7222
7223fi
7224  CPP=$ac_cv_prog_CPP
7225else
7226  ac_cv_prog_CPP=$CPP
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7229$as_echo "$CPP" >&6; }
7230ac_preproc_ok=false
7231for ac_c_preproc_warn_flag in '' yes
7232do
7233  # Use a header file that comes with gcc, so configuring glibc
7234  # with a fresh cross-compiler works.
7235  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236  # <limits.h> exists even on freestanding compilers.
7237  # On the NeXT, cc -E runs the code through the compiler's parser,
7238  # not just through cpp. "Syntax error" is here to catch this case.
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241#ifdef __STDC__
7242# include <limits.h>
7243#else
7244# include <assert.h>
7245#endif
7246		     Syntax error
7247_ACEOF
7248if ac_fn_c_try_cpp "$LINENO"; then :
7249
7250else
7251  # Broken: fails on valid input.
7252continue
7253fi
7254rm -f conftest.err conftest.i conftest.$ac_ext
7255
7256  # OK, works on sane cases.  Now check whether nonexistent headers
7257  # can be detected and how.
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260#include <ac_nonexistent.h>
7261_ACEOF
7262if ac_fn_c_try_cpp "$LINENO"; then :
7263  # Broken: success on invalid input.
7264continue
7265else
7266  # Passes both tests.
7267ac_preproc_ok=:
7268break
7269fi
7270rm -f conftest.err conftest.i conftest.$ac_ext
7271
7272done
7273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7274rm -f conftest.i conftest.err conftest.$ac_ext
7275if $ac_preproc_ok; then :
7276
7277else
7278  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7280as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7281See \`config.log' for more details" "$LINENO" 5; }
7282fi
7283
7284ac_ext=c
7285ac_cpp='$CPP $CPPFLAGS'
7286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7291$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7292if ${ac_cv_path_SED+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7296     for ac_i in 1 2 3 4 5 6 7; do
7297       ac_script="$ac_script$as_nl$ac_script"
7298     done
7299     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7300     { ac_script=; unset ac_script;}
7301     if test -z "$SED"; then
7302  ac_path_SED_found=false
7303  # Loop through the user's path and test for each of PROGNAME-LIST
7304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309    for ac_prog in sed gsed; do
7310    for ac_exec_ext in '' $ac_executable_extensions; do
7311      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7312      as_fn_executable_p "$ac_path_SED" || continue
7313# Check for GNU ac_path_SED and select it if it is found.
7314  # Check for GNU $ac_path_SED
7315case `"$ac_path_SED" --version 2>&1` in
7316*GNU*)
7317  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7318*)
7319  ac_count=0
7320  $as_echo_n 0123456789 >"conftest.in"
7321  while :
7322  do
7323    cat "conftest.in" "conftest.in" >"conftest.tmp"
7324    mv "conftest.tmp" "conftest.in"
7325    cp "conftest.in" "conftest.nl"
7326    $as_echo '' >> "conftest.nl"
7327    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7328    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7329    as_fn_arith $ac_count + 1 && ac_count=$as_val
7330    if test $ac_count -gt ${ac_path_SED_max-0}; then
7331      # Best one so far, save it but keep looking for a better one
7332      ac_cv_path_SED="$ac_path_SED"
7333      ac_path_SED_max=$ac_count
7334    fi
7335    # 10*(2^10) chars as input seems more than enough
7336    test $ac_count -gt 10 && break
7337  done
7338  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7339esac
7340
7341      $ac_path_SED_found && break 3
7342    done
7343  done
7344  done
7345IFS=$as_save_IFS
7346  if test -z "$ac_cv_path_SED"; then
7347    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7348  fi
7349else
7350  ac_cv_path_SED=$SED
7351fi
7352
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7355$as_echo "$ac_cv_path_SED" >&6; }
7356 SED="$ac_cv_path_SED"
7357  rm -f conftest.sed
7358
7359test -z "$SED" && SED=sed
7360Xsed="$SED -e 1s/^X//"
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7373$as_echo_n "checking for fgrep... " >&6; }
7374if ${ac_cv_path_FGREP+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7378   then ac_cv_path_FGREP="$GREP -F"
7379   else
7380     if test -z "$FGREP"; then
7381  ac_path_FGREP_found=false
7382  # Loop through the user's path and test for each of PROGNAME-LIST
7383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7385do
7386  IFS=$as_save_IFS
7387  test -z "$as_dir" && as_dir=.
7388    for ac_prog in fgrep; do
7389    for ac_exec_ext in '' $ac_executable_extensions; do
7390      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7391      as_fn_executable_p "$ac_path_FGREP" || continue
7392# Check for GNU ac_path_FGREP and select it if it is found.
7393  # Check for GNU $ac_path_FGREP
7394case `"$ac_path_FGREP" --version 2>&1` in
7395*GNU*)
7396  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7397*)
7398  ac_count=0
7399  $as_echo_n 0123456789 >"conftest.in"
7400  while :
7401  do
7402    cat "conftest.in" "conftest.in" >"conftest.tmp"
7403    mv "conftest.tmp" "conftest.in"
7404    cp "conftest.in" "conftest.nl"
7405    $as_echo 'FGREP' >> "conftest.nl"
7406    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7407    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7408    as_fn_arith $ac_count + 1 && ac_count=$as_val
7409    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7410      # Best one so far, save it but keep looking for a better one
7411      ac_cv_path_FGREP="$ac_path_FGREP"
7412      ac_path_FGREP_max=$ac_count
7413    fi
7414    # 10*(2^10) chars as input seems more than enough
7415    test $ac_count -gt 10 && break
7416  done
7417  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7418esac
7419
7420      $ac_path_FGREP_found && break 3
7421    done
7422  done
7423  done
7424IFS=$as_save_IFS
7425  if test -z "$ac_cv_path_FGREP"; then
7426    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7427  fi
7428else
7429  ac_cv_path_FGREP=$FGREP
7430fi
7431
7432   fi
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7435$as_echo "$ac_cv_path_FGREP" >&6; }
7436 FGREP="$ac_cv_path_FGREP"
7437
7438
7439test -z "$GREP" && GREP=grep
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7459ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7460
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7462$as_echo_n "checking how to print strings... " >&6; }
7463# Test print first, because it will be a builtin if present.
7464if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7465   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7466  ECHO='print -r --'
7467elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7468  ECHO='printf %s\n'
7469else
7470  # Use this function as a fallback that always works.
7471  func_fallback_echo ()
7472  {
7473    eval 'cat <<_LTECHO_EOF
7474$1
7475_LTECHO_EOF'
7476  }
7477  ECHO='func_fallback_echo'
7478fi
7479
7480# func_echo_all arg...
7481# Invoke $ECHO with all args, space-separated.
7482func_echo_all ()
7483{
7484    $ECHO ""
7485}
7486
7487case "$ECHO" in
7488  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7489$as_echo "printf" >&6; } ;;
7490  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7491$as_echo "print -r" >&6; } ;;
7492  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7493$as_echo "cat" >&6; } ;;
7494esac
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511# Check whether --with-gnu-ld was given.
7512if test "${with_gnu_ld+set}" = set; then :
7513  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7514else
7515  with_gnu_ld=no
7516fi
7517
7518ac_prog=ld
7519if test "$GCC" = yes; then
7520  # Check if gcc -print-prog-name=ld gives a path.
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7522$as_echo_n "checking for ld used by $CC... " >&6; }
7523  case $host in
7524  *-*-mingw*)
7525    # gcc leaves a trailing carriage return which upsets mingw
7526    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7527  *)
7528    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7529  esac
7530  case $ac_prog in
7531    # Accept absolute paths.
7532    [\\/]* | ?:[\\/]*)
7533      re_direlt='/[^/][^/]*/\.\./'
7534      # Canonicalize the pathname of ld
7535      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7536      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7537	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7538      done
7539      test -z "$LD" && LD="$ac_prog"
7540      ;;
7541  "")
7542    # If it fails, then pretend we aren't using GCC.
7543    ac_prog=ld
7544    ;;
7545  *)
7546    # If it is relative, then search for the first ld in PATH.
7547    with_gnu_ld=unknown
7548    ;;
7549  esac
7550elif test "$with_gnu_ld" = yes; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7552$as_echo_n "checking for GNU ld... " >&6; }
7553else
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7555$as_echo_n "checking for non-GNU ld... " >&6; }
7556fi
7557if ${lt_cv_path_LD+:} false; then :
7558  $as_echo_n "(cached) " >&6
7559else
7560  if test -z "$LD"; then
7561  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7562  for ac_dir in $PATH; do
7563    IFS="$lt_save_ifs"
7564    test -z "$ac_dir" && ac_dir=.
7565    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7566      lt_cv_path_LD="$ac_dir/$ac_prog"
7567      # Check to see if the program is GNU ld.  I'd rather use --version,
7568      # but apparently some variants of GNU ld only accept -v.
7569      # Break only if it was the GNU/non-GNU ld that we prefer.
7570      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7571      *GNU* | *'with BFD'*)
7572	test "$with_gnu_ld" != no && break
7573	;;
7574      *)
7575	test "$with_gnu_ld" != yes && break
7576	;;
7577      esac
7578    fi
7579  done
7580  IFS="$lt_save_ifs"
7581else
7582  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7583fi
7584fi
7585
7586LD="$lt_cv_path_LD"
7587if test -n "$LD"; then
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7589$as_echo "$LD" >&6; }
7590else
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
7593fi
7594test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7596$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7597if ${lt_cv_prog_gnu_ld+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7601case `$LD -v 2>&1 </dev/null` in
7602*GNU* | *'with BFD'*)
7603  lt_cv_prog_gnu_ld=yes
7604  ;;
7605*)
7606  lt_cv_prog_gnu_ld=no
7607  ;;
7608esac
7609fi
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7611$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7612with_gnu_ld=$lt_cv_prog_gnu_ld
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7624$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7625if ${ac_cv_prog_cc_c99+:} false; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  ac_cv_prog_cc_c99=no
7629ac_save_CC=$CC
7630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h.  */
7632#include <stdarg.h>
7633#include <stdbool.h>
7634#include <stdlib.h>
7635#include <wchar.h>
7636#include <stdio.h>
7637
7638// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7639#define debug(...) fprintf (stderr, __VA_ARGS__)
7640#define showlist(...) puts (#__VA_ARGS__)
7641#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7642static void
7643test_varargs_macros (void)
7644{
7645  int x = 1234;
7646  int y = 5678;
7647  debug ("Flag");
7648  debug ("X = %d\n", x);
7649  showlist (The first, second, and third items.);
7650  report (x>y, "x is %d but y is %d", x, y);
7651}
7652
7653// Check long long types.
7654#define BIG64 18446744073709551615ull
7655#define BIG32 4294967295ul
7656#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7657#if !BIG_OK
7658  your preprocessor is broken;
7659#endif
7660#if BIG_OK
7661#else
7662  your preprocessor is broken;
7663#endif
7664static long long int bignum = -9223372036854775807LL;
7665static unsigned long long int ubignum = BIG64;
7666
7667struct incomplete_array
7668{
7669  int datasize;
7670  double data[];
7671};
7672
7673struct named_init {
7674  int number;
7675  const wchar_t *name;
7676  double average;
7677};
7678
7679typedef const char *ccp;
7680
7681static inline int
7682test_restrict (ccp restrict text)
7683{
7684  // See if C++-style comments work.
7685  // Iterate through items via the restricted pointer.
7686  // Also check for declarations in for loops.
7687  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7688    continue;
7689  return 0;
7690}
7691
7692// Check varargs and va_copy.
7693static void
7694test_varargs (const char *format, ...)
7695{
7696  va_list args;
7697  va_start (args, format);
7698  va_list args_copy;
7699  va_copy (args_copy, args);
7700
7701  const char *str;
7702  int number;
7703  float fnumber;
7704
7705  while (*format)
7706    {
7707      switch (*format++)
7708	{
7709	case 's': // string
7710	  str = va_arg (args_copy, const char *);
7711	  break;
7712	case 'd': // int
7713	  number = va_arg (args_copy, int);
7714	  break;
7715	case 'f': // float
7716	  fnumber = va_arg (args_copy, double);
7717	  break;
7718	default:
7719	  break;
7720	}
7721    }
7722  va_end (args_copy);
7723  va_end (args);
7724}
7725
7726int
7727main ()
7728{
7729
7730  // Check bool.
7731  _Bool success = false;
7732
7733  // Check restrict.
7734  if (test_restrict ("String literal") == 0)
7735    success = true;
7736  char *restrict newvar = "Another string";
7737
7738  // Check varargs.
7739  test_varargs ("s, d' f .", "string", 65, 34.234);
7740  test_varargs_macros ();
7741
7742  // Check flexible array members.
7743  struct incomplete_array *ia =
7744    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7745  ia->datasize = 10;
7746  for (int i = 0; i < ia->datasize; ++i)
7747    ia->data[i] = i * 1.234;
7748
7749  // Check named initializers.
7750  struct named_init ni = {
7751    .number = 34,
7752    .name = L"Test wide string",
7753    .average = 543.34343,
7754  };
7755
7756  ni.number = 58;
7757
7758  int dynamic_array[ni.number];
7759  dynamic_array[ni.number - 1] = 543;
7760
7761  // work around unused variable warnings
7762  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7763	  || dynamic_array[ni.number - 1] != 543);
7764
7765  ;
7766  return 0;
7767}
7768_ACEOF
7769for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7770do
7771  CC="$ac_save_CC $ac_arg"
7772  if ac_fn_c_try_compile "$LINENO"; then :
7773  ac_cv_prog_cc_c99=$ac_arg
7774fi
7775rm -f core conftest.err conftest.$ac_objext
7776  test "x$ac_cv_prog_cc_c99" != "xno" && break
7777done
7778rm -f conftest.$ac_ext
7779CC=$ac_save_CC
7780
7781fi
7782# AC_CACHE_VAL
7783case "x$ac_cv_prog_cc_c99" in
7784  x)
7785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7786$as_echo "none needed" >&6; } ;;
7787  xno)
7788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7789$as_echo "unsupported" >&6; } ;;
7790  *)
7791    CC="$CC $ac_cv_prog_cc_c99"
7792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7793$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7794esac
7795if test "x$ac_cv_prog_cc_c99" != xno; then :
7796
7797fi
7798
7799
7800if test "x$CC" != xcc; then
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7802$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7803else
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7805$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7806fi
7807set dummy $CC; ac_cc=`$as_echo "$2" |
7808		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7809if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814
7815int
7816main ()
7817{
7818
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823# Make sure it works both with $CC and with simple cc.
7824# We do the test twice because some compilers refuse to overwrite an
7825# existing .o file with -o, though they will create one.
7826ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7827rm -f conftest2.*
7828if { { case "(($ac_try" in
7829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830  *) ac_try_echo=$ac_try;;
7831esac
7832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7833$as_echo "$ac_try_echo"; } >&5
7834  (eval "$ac_try") 2>&5
7835  ac_status=$?
7836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837  test $ac_status = 0; } &&
7838   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840  *) ac_try_echo=$ac_try;;
7841esac
7842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7843$as_echo "$ac_try_echo"; } >&5
7844  (eval "$ac_try") 2>&5
7845  ac_status=$?
7846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847  test $ac_status = 0; };
7848then
7849  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7850  if test "x$CC" != xcc; then
7851    # Test first that cc exists at all.
7852    if { ac_try='cc -c conftest.$ac_ext >&5'
7853  { { case "(($ac_try" in
7854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855  *) ac_try_echo=$ac_try;;
7856esac
7857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7858$as_echo "$ac_try_echo"; } >&5
7859  (eval "$ac_try") 2>&5
7860  ac_status=$?
7861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862  test $ac_status = 0; }; }; then
7863      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7864      rm -f conftest2.*
7865      if { { case "(($ac_try" in
7866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867  *) ac_try_echo=$ac_try;;
7868esac
7869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7870$as_echo "$ac_try_echo"; } >&5
7871  (eval "$ac_try") 2>&5
7872  ac_status=$?
7873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874  test $ac_status = 0; } &&
7875	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877  *) ac_try_echo=$ac_try;;
7878esac
7879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7880$as_echo "$ac_try_echo"; } >&5
7881  (eval "$ac_try") 2>&5
7882  ac_status=$?
7883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884  test $ac_status = 0; };
7885      then
7886	# cc works too.
7887	:
7888      else
7889	# cc exists but doesn't like -o.
7890	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7891      fi
7892    fi
7893  fi
7894else
7895  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7896fi
7897rm -f core conftest*
7898
7899fi
7900if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902$as_echo "yes" >&6; }
7903else
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
7906
7907$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7908
7909fi
7910
7911# FIXME: we rely on the cache variable name because
7912# there is no other way.
7913set dummy $CC
7914am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7915eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7916if test "$am_t" != yes; then
7917   # Losing compiler, so override with the script.
7918   # FIXME: It is wrong to rewrite CC.
7919   # But if we don't then we get into trouble of one sort or another.
7920   # A longer-term fix would be to have automake use am__CC in this case,
7921   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7922   CC="$am_aux_dir/compile $CC"
7923fi
7924
7925
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7927$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7928if ${ac_cv_cflags_warn_all+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  ac_cv_cflags_warn_all="no, unknown"
7932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938 ac_save_CFLAGS="$CFLAGS"
7939for 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"    #
7940do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943
7944int
7945main ()
7946{
7947
7948  ;
7949  return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_compile "$LINENO"; then :
7953  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956done
7957 CFLAGS="$ac_save_CFLAGS"
7958 ac_ext=c
7959ac_cpp='$CPP $CPPFLAGS'
7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7967$as_echo "$ac_cv_cflags_warn_all" >&6; }
7968case ".$ac_cv_cflags_warn_all" in
7969     .ok|.ok,*)  ;;
7970   .|.no|.no,*)
7971 ;;
7972   *)
7973   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7974   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7975  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7976  ac_status=$?
7977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978  test $ac_status = 0; }
7979   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7980  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7981  ac_status=$?
7982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7983  test $ac_status = 0; }
7984                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7985   fi
7986 ;;
7987esac
7988
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7990$as_echo_n "checking for C compiler vendor... " >&6; }
7991if ${ax_cv_c_compiler_vendor+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  # note: don't check for gcc first since some other compilers define __GNUC__
7995  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
7996           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
7997           pathscale: __PATHCC__,__PATHSCALE__
7998           clang:     __clang__
7999           gnu:       __GNUC__
8000           sun:       __SUNPRO_C,__SUNPRO_CC
8001           hp:        __HP_cc,__HP_aCC
8002           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8003           borland:   __BORLANDC__,__TURBOC__
8004           comeau:    __COMO__
8005           cray:      _CRAYC
8006           kai:       __KCC
8007           lcc:       __LCC__
8008           sgi:       __sgi,sgi
8009           microsoft: _MSC_VER
8010           metrowerks: __MWERKS__
8011           watcom:    __WATCOMC__
8012           portland:  __PGI
8013           unknown:   UNKNOWN"
8014  for ventest in $vendors; do
8015    case $ventest in
8016      *:) vendor=$ventest; continue ;;
8017      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8018    esac
8019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021
8022int
8023main ()
8024{
8025
8026      #if !($vencpp)
8027        thisisanerror;
8028      #endif
8029
8030  ;
8031  return 0;
8032}
8033_ACEOF
8034if ac_fn_c_try_compile "$LINENO"; then :
8035  break
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038  done
8039  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8043$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8044
8045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8048set x ${MAKE-make}
8049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat >conftest.make <<\_ACEOF
8054SHELL = /bin/sh
8055all:
8056	@echo '@@@%%%=$(MAKE)=@@@%%%'
8057_ACEOF
8058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8059case `${MAKE-make} -f conftest.make 2>/dev/null` in
8060  *@@@%%%=?*=@@@%%%*)
8061    eval ac_cv_prog_make_${ac_make}_set=yes;;
8062  *)
8063    eval ac_cv_prog_make_${ac_make}_set=no;;
8064esac
8065rm -f conftest.make
8066fi
8067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069$as_echo "yes" >&6; }
8070  SET_MAKE=
8071else
8072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074  SET_MAKE="MAKE=${MAKE-make}"
8075fi
8076
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8078$as_echo_n "checking whether ln -s works... " >&6; }
8079LN_S=$as_ln_s
8080if test "$LN_S" = "ln -s"; then
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8082$as_echo "yes" >&6; }
8083else
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8085$as_echo "no, using $LN_S" >&6; }
8086fi
8087
8088for ac_prog in gawk mawk nawk awk
8089do
8090  # Extract the first word of "$ac_prog", so it can be a program name with args.
8091set dummy $ac_prog; ac_word=$2
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if ${ac_cv_prog_AWK+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  if test -n "$AWK"; then
8098  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103  IFS=$as_save_IFS
8104  test -z "$as_dir" && as_dir=.
8105    for ac_exec_ext in '' $ac_executable_extensions; do
8106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107    ac_cv_prog_AWK="$ac_prog"
8108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109    break 2
8110  fi
8111done
8112  done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117AWK=$ac_cv_prog_AWK
8118if test -n "$AWK"; then
8119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8120$as_echo "$AWK" >&6; }
8121else
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127  test -n "$AWK" && break
8128done
8129
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8131$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8132
8133# Check whether --with-dmalloc was given.
8134if test "${with_dmalloc+set}" = set; then :
8135  withval=$with_dmalloc; if test "$withval" = yes; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137$as_echo "yes" >&6; }
8138
8139$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8140
8141  LIBS="$LIBS -ldmalloc"
8142  LDFLAGS="$LDFLAGS -g"
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147else
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
8150fi
8151
8152
8153
8154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8155$as_echo_n "checking for __attribute__... " >&6; }
8156if ${ax_cv___attribute__+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h.  */
8161#include <stdlib.h>
8162	  static void foo(void) __attribute__ ((__unused__));
8163	  static void
8164	  foo(void) {
8165	      exit(1);
8166	  }
8167
8168int
8169main ()
8170{
8171
8172  ;
8173  return 0;
8174}
8175_ACEOF
8176if ac_fn_c_try_compile "$LINENO"; then :
8177  ax_cv___attribute__=yes
8178else
8179  ax_cv___attribute__=no
8180
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183
8184fi
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8186$as_echo "$ax_cv___attribute__" >&6; }
8187  if test "$ax_cv___attribute__" = "yes"; then
8188
8189$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8190
8191  fi
8192
8193
8194
8195
8196
8197# Check whether --with-gcc-arch was given.
8198if test "${with_gcc_arch+set}" = set; then :
8199  withval=$with_gcc_arch; ax_gcc_arch=$withval
8200else
8201  ax_gcc_arch=no
8202fi
8203
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8206$as_echo_n "checking for gcc architecture flag... " >&6; }
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8208$as_echo "" >&6; }
8209if ${ax_cv_gcc_archflag+:} false; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212
8213ax_cv_gcc_archflag="unknown"
8214
8215if test "$GCC" = yes; then
8216
8217if test "x$ax_gcc_arch" = xyes; then
8218ax_gcc_arch=""
8219if test "$cross_compiling" = no; then
8220case $host_cpu in
8221  i[3456]86*|x86_64*) # use cpuid codes
8222
8223ac_ext=c
8224ac_cpp='$CPP $CPPFLAGS'
8225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8230$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8231if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  if test "$cross_compiling" = yes; then :
8235  ax_cv_gcc_x86_cpuid_0=unknown
8236else
8237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239#include <stdio.h>
8240int
8241main ()
8242{
8243
8244     int op = 0, eax, ebx, ecx, edx;
8245     FILE *f;
8246      __asm__("cpuid"
8247        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8248        : "a" (op));
8249     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8250     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8251     fclose(f);
8252     return 0;
8253
8254  ;
8255  return 0;
8256}
8257_ACEOF
8258if ac_fn_c_try_run "$LINENO"; then :
8259  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8260else
8261  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8262fi
8263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8264  conftest.$ac_objext conftest.beam conftest.$ac_ext
8265fi
8266
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8269$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8270ac_ext=c
8271ac_cpp='$CPP $CPPFLAGS'
8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276
8277
8278ac_ext=c
8279ac_cpp='$CPP $CPPFLAGS'
8280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8282ac_compiler_gnu=$ac_cv_c_compiler_gnu
8283
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8285$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8286if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  if test "$cross_compiling" = yes; then :
8290  ax_cv_gcc_x86_cpuid_1=unknown
8291else
8292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h.  */
8294#include <stdio.h>
8295int
8296main ()
8297{
8298
8299     int op = 1, eax, ebx, ecx, edx;
8300     FILE *f;
8301      __asm__("cpuid"
8302        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8303        : "a" (op));
8304     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8305     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8306     fclose(f);
8307     return 0;
8308
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_run "$LINENO"; then :
8314  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8315else
8316  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8317fi
8318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8319  conftest.$ac_objext conftest.beam conftest.$ac_ext
8320fi
8321
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8324$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8325ac_ext=c
8326ac_cpp='$CPP $CPPFLAGS'
8327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8329ac_compiler_gnu=$ac_cv_c_compiler_gnu
8330
8331
8332     case $ax_cv_gcc_x86_cpuid_0 in
8333       *:756e6547:*:*) # Intel
8334          case $ax_cv_gcc_x86_cpuid_1 in
8335	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8336	    *5??:*:*:*) ax_gcc_arch=pentium ;;
8337	    *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8338	    *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8339	    *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8340	    *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8341	    *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8342	    *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8343	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8344	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8345	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8346	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8347	    *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8348	    *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8349	    ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8350		case $host_cpu in
8351	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8352	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8353	        esac ;;
8354	    ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8355          esac ;;
8356       *:68747541:*:*) # AMD
8357          case $ax_cv_gcc_x86_cpuid_1 in
8358	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8359	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8360	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8361	    *60?:*:*:*) ax_gcc_arch=k7 ;;
8362	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8363	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8364	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8365	    *6[68a]?:*:*:*)
8366
8367ac_ext=c
8368ac_cpp='$CPP $CPPFLAGS'
8369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8374$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8375if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8376  $as_echo_n "(cached) " >&6
8377else
8378  if test "$cross_compiling" = yes; then :
8379  ax_cv_gcc_x86_cpuid_0x80000006=unknown
8380else
8381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383#include <stdio.h>
8384int
8385main ()
8386{
8387
8388     int op = 0x80000006, eax, ebx, ecx, edx;
8389     FILE *f;
8390      __asm__("cpuid"
8391        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8392        : "a" (op));
8393     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8394     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8395     fclose(f);
8396     return 0;
8397
8398  ;
8399  return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_run "$LINENO"; then :
8403  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8404else
8405  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8406fi
8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408  conftest.$ac_objext conftest.beam conftest.$ac_ext
8409fi
8410
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8413$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420 # L2 cache size
8421	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
8422                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8423			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8424                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8425	       esac ;;
8426	    ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8427	    ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8428	    ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8429	    ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8430	    ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8431	    ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8432	    *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8433          esac ;;
8434	*:746e6543:*:*) # IDT
8435	   case $ax_cv_gcc_x86_cpuid_1 in
8436	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8437	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8438	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8439	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8440	   esac ;;
8441     esac
8442     if test x"$ax_gcc_arch" = x; then # fallback
8443	case $host_cpu in
8444	  i586*) ax_gcc_arch=pentium ;;
8445	  i686*) ax_gcc_arch=pentiumpro ;;
8446        esac
8447     fi
8448     ;;
8449
8450  sparc*)
8451     # Extract the first word of "prtdiag", so it can be a program name with args.
8452set dummy prtdiag; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if ${ac_cv_path_PRTDIAG+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  case $PRTDIAG in
8459  [\\/]* | ?:[\\/]*)
8460  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8461  ;;
8462  *)
8463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8465for as_dir in $as_dummy
8466do
8467  IFS=$as_save_IFS
8468  test -z "$as_dir" && as_dir=.
8469    for ac_exec_ext in '' $ac_executable_extensions; do
8470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473    break 2
8474  fi
8475done
8476  done
8477IFS=$as_save_IFS
8478
8479  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8480  ;;
8481esac
8482fi
8483PRTDIAG=$ac_cv_path_PRTDIAG
8484if test -n "$PRTDIAG"; then
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8486$as_echo "$PRTDIAG" >&6; }
8487else
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
8490fi
8491
8492
8493     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`
8494     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8495     case $cputype in
8496         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8497         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8498         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8499         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8500         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8501         *cypress*) ax_gcc_arch=cypress ;;
8502     esac ;;
8503
8504  alphaev5) ax_gcc_arch=ev5 ;;
8505  alphaev56) ax_gcc_arch=ev56 ;;
8506  alphapca56) ax_gcc_arch="pca56 ev56" ;;
8507  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8508  alphaev6) ax_gcc_arch=ev6 ;;
8509  alphaev67) ax_gcc_arch=ev67 ;;
8510  alphaev68) ax_gcc_arch="ev68 ev67" ;;
8511  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8512  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8513  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8514
8515  powerpc*)
8516     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`
8517     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8518     case $cputype in
8519       *750*) ax_gcc_arch="750 G3" ;;
8520       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8521       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8522       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8523       *970*) ax_gcc_arch="970 G5 power4";;
8524       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8525       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8526       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8527       *) ax_gcc_arch=$cputype ;;
8528     esac
8529     ax_gcc_arch="$ax_gcc_arch powerpc"
8530     ;;
8531esac
8532fi # not cross-compiling
8533fi # guess arch
8534
8535if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8536for arch in $ax_gcc_arch; do
8537  if test "xno" = xyes; then # if we require portable code
8538    flags="-mtune=$arch"
8539    # -mcpu=$arch and m$arch generate nonportable code on every arch except
8540    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
8541    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8542  else
8543    flags="-march=$arch -mcpu=$arch -m$arch"
8544  fi
8545  for flag in $flags; do
8546    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8548$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8549if eval \${$as_CACHEVAR+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552
8553  ax_check_save_flags=$CFLAGS
8554  CFLAGS="$CFLAGS  $flag"
8555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h.  */
8557
8558int
8559main ()
8560{
8561
8562  ;
8563  return 0;
8564}
8565_ACEOF
8566if ac_fn_c_try_compile "$LINENO"; then :
8567  eval "$as_CACHEVAR=yes"
8568else
8569  eval "$as_CACHEVAR=no"
8570fi
8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572  CFLAGS=$ax_check_save_flags
8573fi
8574eval ac_res=\$$as_CACHEVAR
8575	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8576$as_echo "$ac_res" >&6; }
8577if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8578  ax_cv_gcc_archflag=$flag; break
8579else
8580  :
8581fi
8582
8583  done
8584  test "x$ax_cv_gcc_archflag" = xunknown || break
8585done
8586fi
8587
8588fi # $GCC=yes
8589
8590fi
8591
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8593$as_echo_n "checking for gcc architecture flag... " >&6; }
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8595$as_echo "$ax_cv_gcc_archflag" >&6; }
8596if test "x$ax_cv_gcc_archflag" = xunknown; then
8597  :
8598else
8599  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8600fi
8601
8602
8603
8604if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8605	if test -n "$ac_tool_prefix"; then
8606  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8607set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if ${ac_cv_path_PKG_CONFIG+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  case $PKG_CONFIG in
8614  [\\/]* | ?:[\\/]*)
8615  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8616  ;;
8617  *)
8618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621  IFS=$as_save_IFS
8622  test -z "$as_dir" && as_dir=.
8623    for ac_exec_ext in '' $ac_executable_extensions; do
8624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627    break 2
8628  fi
8629done
8630  done
8631IFS=$as_save_IFS
8632
8633  ;;
8634esac
8635fi
8636PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8637if test -n "$PKG_CONFIG"; then
8638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8639$as_echo "$PKG_CONFIG" >&6; }
8640else
8641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
8643fi
8644
8645
8646fi
8647if test -z "$ac_cv_path_PKG_CONFIG"; then
8648  ac_pt_PKG_CONFIG=$PKG_CONFIG
8649  # Extract the first word of "pkg-config", so it can be a program name with args.
8650set dummy pkg-config; ac_word=$2
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
8653if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  case $ac_pt_PKG_CONFIG in
8657  [\\/]* | ?:[\\/]*)
8658  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8659  ;;
8660  *)
8661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664  IFS=$as_save_IFS
8665  test -z "$as_dir" && as_dir=.
8666    for ac_exec_ext in '' $ac_executable_extensions; do
8667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670    break 2
8671  fi
8672done
8673  done
8674IFS=$as_save_IFS
8675
8676  ;;
8677esac
8678fi
8679ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8680if test -n "$ac_pt_PKG_CONFIG"; then
8681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8682$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8683else
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
8686fi
8687
8688  if test "x$ac_pt_PKG_CONFIG" = x; then
8689    PKG_CONFIG=""
8690  else
8691    case $cross_compiling:$ac_tool_warned in
8692yes:)
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695ac_tool_warned=yes ;;
8696esac
8697    PKG_CONFIG=$ac_pt_PKG_CONFIG
8698  fi
8699else
8700  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8701fi
8702
8703fi
8704if test -n "$PKG_CONFIG"; then
8705	_pkg_min_version=0.9.0
8706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8707$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8708	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8710$as_echo "yes" >&6; }
8711	else
8712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714		PKG_CONFIG=""
8715	fi
8716
8717fi
8718
8719#
8720# Enable run-time checking.
8721#
8722# Check whether --enable-bounds-checking was given.
8723if test "${enable_bounds_checking+set}" = set; then :
8724  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8725else
8726  enable_bounds_checking='no'
8727fi
8728
8729
8730if test "$enable_bounds_checking" = yes; then
8731
8732$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8733
8734fi
8735
8736#
8737# Tests for Windows
8738#
8739
8740
8741
8742GDI32_LIBS=''
8743native_win32_build='no'
8744cygwin_build='no'
8745case "${host_os}" in
8746    cygwin* )
8747        cygwin_build='yes'
8748        GDI32_LIBS='-lgdi32'
8749    ;;
8750    mingw* )
8751        native_win32_build='yes'
8752        GDI32_LIBS='-lgdi32'
8753    ;;
8754esac
8755if test "${GDI32_LIBS}x" != 'x'; then
8756
8757$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8758
8759fi
8760
8761 if test "${GDI32_LIBS}x" != 'x' ; then
8762  WINGDI32_DELEGATE_TRUE=
8763  WINGDI32_DELEGATE_FALSE='#'
8764else
8765  WINGDI32_DELEGATE_TRUE='#'
8766  WINGDI32_DELEGATE_FALSE=
8767fi
8768
8769 if test "${native_win32_build}" = 'yes' ; then
8770  WIN32_NATIVE_BUILD_TRUE=
8771  WIN32_NATIVE_BUILD_FALSE='#'
8772else
8773  WIN32_NATIVE_BUILD_TRUE='#'
8774  WIN32_NATIVE_BUILD_FALSE=
8775fi
8776
8777 if test "${cygwin_build}" = 'yes' ; then
8778  CYGWIN_BUILD_TRUE=
8779  CYGWIN_BUILD_FALSE='#'
8780else
8781  CYGWIN_BUILD_TRUE='#'
8782  CYGWIN_BUILD_FALSE=
8783fi
8784
8785 if test "x${CC}" = 'xcl.exe' ; then
8786  USING_CL_TRUE=
8787  USING_CL_FALSE='#'
8788else
8789  USING_CL_TRUE='#'
8790  USING_CL_FALSE=
8791fi
8792
8793
8794WinPathScript="${srcdirfull}/winpath.sh"
8795
8796
8797#
8798# Compiler flags tweaks
8799#
8800if test "${GCC}" != "yes"; then
8801    case "${host}" in
8802        *-*-hpux* )
8803            # aCC: HP ANSI C++ B3910B A.03.34
8804            CFLAGS="${CFLAGS} -Wp,-H30000"
8805            if test -n "${CXXFLAGS}"; then
8806                CXXFLAGS='-AA'
8807            else
8808                CXXFLAGS="${CXXFLAGS} -AA"
8809            fi
8810        ;;
8811        *-dec-osf5.* )
8812            # Compaq alphaev68-dec-osf5.1 compiler
8813            if test -n "${CXXFLAGS}"; then
8814                CXXFLAGS='-std strict_ansi -noimplicit_include'
8815            else
8816                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8817            fi
8818  esac
8819fi
8820
8821# Check for lazy-loading.
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8823$as_echo_n "checking for linker lazyload option... " >&6; }
8824if ${im_cv_ld_lazyload+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827
8828im_cv_ld_lazyload='none'
8829case "${host}" in
8830  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8831    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8832       im_cv_ld_lazyload='-Wl,-zlazyload'
8833    fi
8834    ;;
8835esac
8836
8837fi
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8839$as_echo "$im_cv_ld_lazyload" >&6; }
8840if test "${im_cv_ld_lazyload}" != 'none' ; then
8841  if test -z "${LDFLAGS}" ; then
8842    LDFLAGS="${im_cv_ld_lazyload}"
8843  else
8844    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8845  fi
8846fi
8847
8848case "$host" in
8849*darwin* | *-macos10*)
8850    # Check whether --enable-osx-universal-binary was given.
8851if test "${enable_osx_universal_binary+set}" = set; then :
8852  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8853else
8854  build_osxuniversal=no
8855fi
8856
8857
8858  if test "${build_osxuniversal}" != no ; then
8859    if test "$enable_dependency_tracking" != no ; then
8860      as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8861Please re-run configure with these options:
8862  --disable-dependency-tracking --enable-osx-universal-binary
8863        " "$LINENO" 5
8864    fi
8865    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8866    CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8867    LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8868  fi
8869  ;;
8870esac
8871
8872#
8873# ARCH specific include directory
8874#
8875
8876# Check whether --with-includearch-dir was given.
8877if test "${with_includearch_dir+set}" = set; then :
8878  withval=$with_includearch_dir; includearch_dir=$withval
8879else
8880  includearch_dir=$INCLUDE_DIR
8881fi
8882
8883
8884eval "eval INCLUDEARCH_DIR=$includearch_dir"
8885
8886
8887#
8888# ARCH specific configuration directory
8889#
8890
8891# Check whether --with-sharearch-dir was given.
8892if test "${with_sharearch_dir+set}" = set; then :
8893  withval=$with_sharearch_dir; sharearch_dir=$withval
8894else
8895  sharearch_dir="${LIB_DIR}"
8896fi
8897
8898
8899eval "eval SHAREARCH_DIR=$sharearch_dir"
8900SHAREARCH_DIR="$sharearch_dir"
8901
8902
8903#
8904# Enable support for threads
8905
8906# Check whether --with-threads was given.
8907if test "${with_threads+set}" = set; then :
8908  withval=$with_threads; with_threads=$withval
8909else
8910  with_threads='yes'
8911fi
8912
8913
8914have_threads=no
8915if test "$with_threads" != 'no'; then
8916
8917
8918ac_ext=c
8919ac_cpp='$CPP $CPPFLAGS'
8920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923
8924ax_pthread_ok=no
8925
8926# We used to check for pthread.h first, but this fails if pthread.h
8927# requires special compiler flags (e.g. on True64 or Sequent).
8928# It gets checked for in the link test anyway.
8929
8930# First of all, check if the user has set any of the PTHREAD_LIBS,
8931# etcetera environment variables, and if threads linking works using
8932# them:
8933if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8934        save_CFLAGS="$CFLAGS"
8935        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8936        save_LIBS="$LIBS"
8937        LIBS="$PTHREAD_LIBS $LIBS"
8938        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8939$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8940        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942
8943/* Override any GCC internal prototype to avoid an error.
8944   Use char because int might match the return type of a GCC
8945   builtin and then its argument prototype would still apply.  */
8946#ifdef __cplusplus
8947extern "C"
8948#endif
8949char pthread_join ();
8950int
8951main ()
8952{
8953return pthread_join ();
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"; then :
8959  ax_pthread_ok=yes
8960fi
8961rm -f core conftest.err conftest.$ac_objext \
8962    conftest$ac_exeext conftest.$ac_ext
8963        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8964$as_echo "$ax_pthread_ok" >&6; }
8965        if test x"$ax_pthread_ok" = xno; then
8966                PTHREAD_LIBS=""
8967                PTHREAD_CFLAGS=""
8968        fi
8969        LIBS="$save_LIBS"
8970        CFLAGS="$save_CFLAGS"
8971fi
8972
8973# We must check for the threads library under a number of different
8974# names; the ordering is very important because some systems
8975# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8976# libraries is broken (non-POSIX).
8977
8978# Create a list of thread flags to try.  Items starting with a "-" are
8979# C compiler flags, and other items are library names, except for "none"
8980# which indicates that we try without any flags at all, and "pthread-config"
8981# which is a program returning the flags for the Pth emulation library.
8982
8983ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
8984
8985# The ordering *is* (sometimes) important.  Some notes on the
8986# individual items follow:
8987
8988# pthreads: AIX (must check this before -lpthread)
8989# none: in case threads are in libc; should be tried before -Kthread and
8990#       other compiler flags to prevent continual compiler warnings
8991# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8992# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8993# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8994# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8995# -pthreads: Solaris/gcc
8996# -mthreads: Mingw32/gcc, Lynx/gcc
8997# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8998#      doesn't hurt to check since this sometimes defines pthreads too;
8999#      also defines -D_REENTRANT)
9000#      ... -mt is also the pthreads flag for HP/aCC
9001# pthread: Linux, etcetera
9002# --thread-safe: KAI C++
9003# pthread-config: use pthread-config program (for GNU Pth library)
9004
9005case "${host_cpu}-${host_os}" in
9006        *solaris*)
9007
9008        # On Solaris (at least, for some versions), libc contains stubbed
9009        # (non-functional) versions of the pthreads routines, so link-based
9010        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9011        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9012        # a function called by this macro, so we could check for that, but
9013        # who knows whether they'll stub that too in a future libc.)  So,
9014        # we'll just look for -pthreads and -lpthread first:
9015
9016        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9017        ;;
9018
9019        *-darwin*)
9020        ax_pthread_flags="-pthread $ax_pthread_flags"
9021        ;;
9022esac
9023
9024if test x"$ax_pthread_ok" = xno; then
9025for flag in $ax_pthread_flags; do
9026
9027        case $flag in
9028                none)
9029                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9030$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9031                ;;
9032
9033                -*)
9034                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9035$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9036                PTHREAD_CFLAGS="$flag"
9037                ;;
9038
9039                pthread-config)
9040                # Extract the first word of "pthread-config", so it can be a program name with args.
9041set dummy pthread-config; ac_word=$2
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
9044if ${ac_cv_prog_ax_pthread_config+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  if test -n "$ax_pthread_config"; then
9048  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053  IFS=$as_save_IFS
9054  test -z "$as_dir" && as_dir=.
9055    for ac_exec_ext in '' $ac_executable_extensions; do
9056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057    ac_cv_prog_ax_pthread_config="yes"
9058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059    break 2
9060  fi
9061done
9062  done
9063IFS=$as_save_IFS
9064
9065  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9066fi
9067fi
9068ax_pthread_config=$ac_cv_prog_ax_pthread_config
9069if test -n "$ax_pthread_config"; then
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9071$as_echo "$ax_pthread_config" >&6; }
9072else
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
9075fi
9076
9077
9078                if test x"$ax_pthread_config" = xno; then continue; fi
9079                PTHREAD_CFLAGS="`pthread-config --cflags`"
9080                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9081                ;;
9082
9083                *)
9084                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9085$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9086                PTHREAD_LIBS="-l$flag"
9087                ;;
9088        esac
9089
9090        save_LIBS="$LIBS"
9091        save_CFLAGS="$CFLAGS"
9092        LIBS="$PTHREAD_LIBS $LIBS"
9093        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9094
9095        # Check for various functions.  We must include pthread.h,
9096        # since some functions may be macros.  (On the Sequent, we
9097        # need a special flag -Kthread to make this header compile.)
9098        # We check for pthread_join because it is in -lpthread on IRIX
9099        # while pthread_create is in libc.  We check for pthread_attr_init
9100        # due to DEC craziness with -lpthreads.  We check for
9101        # pthread_cleanup_push because it is one of the few pthread
9102        # functions on Solaris that doesn't have a non-functional libc stub.
9103        # We try pthread_create on general principles.
9104        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106#include <pthread.h>
9107                        static void routine(void *a) { a = 0; }
9108                        static void *start_routine(void *a) { return a; }
9109int
9110main ()
9111{
9112pthread_t th; pthread_attr_t attr;
9113                        pthread_create(&th, 0, start_routine, 0);
9114                        pthread_join(th, 0);
9115                        pthread_attr_init(&attr);
9116                        pthread_cleanup_push(routine, 0);
9117                        pthread_cleanup_pop(0) /* ; */
9118  ;
9119  return 0;
9120}
9121_ACEOF
9122if ac_fn_c_try_link "$LINENO"; then :
9123  ax_pthread_ok=yes
9124fi
9125rm -f core conftest.err conftest.$ac_objext \
9126    conftest$ac_exeext conftest.$ac_ext
9127
9128        LIBS="$save_LIBS"
9129        CFLAGS="$save_CFLAGS"
9130
9131        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9132$as_echo "$ax_pthread_ok" >&6; }
9133        if test "x$ax_pthread_ok" = xyes; then
9134                break;
9135        fi
9136
9137        PTHREAD_LIBS=""
9138        PTHREAD_CFLAGS=""
9139done
9140fi
9141
9142# Various other checks:
9143if test "x$ax_pthread_ok" = xyes; then
9144        save_LIBS="$LIBS"
9145        LIBS="$PTHREAD_LIBS $LIBS"
9146        save_CFLAGS="$CFLAGS"
9147        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9148
9149        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9150        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9151$as_echo_n "checking for joinable pthread attribute... " >&6; }
9152        attr_name=unknown
9153        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9154            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156#include <pthread.h>
9157int
9158main ()
9159{
9160int attr = $attr; return attr /* ; */
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166  attr_name=$attr; break
9167fi
9168rm -f core conftest.err conftest.$ac_objext \
9169    conftest$ac_exeext conftest.$ac_ext
9170        done
9171        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9172$as_echo "$attr_name" >&6; }
9173        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9174
9175cat >>confdefs.h <<_ACEOF
9176#define PTHREAD_CREATE_JOINABLE $attr_name
9177_ACEOF
9178
9179        fi
9180
9181        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9182$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9183        flag=no
9184        case "${host_cpu}-${host_os}" in
9185            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9186            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9187        esac
9188        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9189$as_echo "${flag}" >&6; }
9190        if test "x$flag" != xno; then
9191            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9192        fi
9193
9194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9195$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9196if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9197  $as_echo_n "(cached) " >&6
9198else
9199
9200                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202
9203                    #include <pthread.h>
9204int
9205main ()
9206{
9207int i = PTHREAD_PRIO_INHERIT;
9208  ;
9209  return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_link "$LINENO"; then :
9213  ax_cv_PTHREAD_PRIO_INHERIT=yes
9214else
9215  ax_cv_PTHREAD_PRIO_INHERIT=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218    conftest$ac_exeext conftest.$ac_ext
9219
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9222$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9223        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9224
9225$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9226
9227fi
9228
9229        LIBS="$save_LIBS"
9230        CFLAGS="$save_CFLAGS"
9231
9232        # More AIX lossage: must compile with xlc_r or cc_r
9233        if test x"$GCC" != xyes; then
9234          for ac_prog in xlc_r cc_r
9235do
9236  # Extract the first word of "$ac_prog", so it can be a program name with args.
9237set dummy $ac_prog; ac_word=$2
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
9240if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9241  $as_echo_n "(cached) " >&6
9242else
9243  if test -n "$PTHREAD_CC"; then
9244  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9245else
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249  IFS=$as_save_IFS
9250  test -z "$as_dir" && as_dir=.
9251    for ac_exec_ext in '' $ac_executable_extensions; do
9252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253    ac_cv_prog_PTHREAD_CC="$ac_prog"
9254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255    break 2
9256  fi
9257done
9258  done
9259IFS=$as_save_IFS
9260
9261fi
9262fi
9263PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9264if test -n "$PTHREAD_CC"; then
9265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9266$as_echo "$PTHREAD_CC" >&6; }
9267else
9268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
9270fi
9271
9272
9273  test -n "$PTHREAD_CC" && break
9274done
9275test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9276
9277        else
9278          PTHREAD_CC=$CC
9279        fi
9280else
9281        PTHREAD_CC="$CC"
9282fi
9283
9284
9285
9286
9287
9288# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9289if test x"$ax_pthread_ok" = xyes; then
9290
9291$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9292
9293        :
9294else
9295        ax_pthread_ok=no
9296
9297fi
9298ac_ext=c
9299ac_cpp='$CPP $CPPFLAGS'
9300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
9305    if test "$ax_pthread_ok" = yes; then
9306        have_threads=yes
9307        DEF_THREAD="$PTHREAD_CFLAGS"
9308        CFLAGS="$CFLAGS $DEF_THREAD"
9309        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9310        if test "$CC" != "$PTHREAD_CC"; then
9311            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
9312$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9313            CC="$PTHREAD_CC"
9314        fi
9315
9316$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9317
9318    fi
9319fi
9320
9321# Enable support for OpenMP
9322if test "$have_threads" != 'yes'; then
9323  ac_cv_prog_c_openmp=unsupported
9324fi
9325
9326  OPENMP_CFLAGS=
9327  # Check whether --enable-openmp was given.
9328if test "${enable_openmp+set}" = set; then :
9329  enableval=$enable_openmp;
9330fi
9331
9332  if test "$enable_openmp" != no; then
9333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
9334$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
9335if ${ac_cv_prog_c_openmp+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h.  */
9340
9341#ifndef _OPENMP
9342 choke me
9343#endif
9344#include <omp.h>
9345int main () { return omp_get_num_threads (); }
9346
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349  ac_cv_prog_c_openmp='none needed'
9350else
9351  ac_cv_prog_c_openmp='unsupported'
9352	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9353                           -Popenmp --openmp; do
9354	    ac_save_CFLAGS=$CFLAGS
9355	    CFLAGS="$CFLAGS $ac_option"
9356	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h.  */
9358
9359#ifndef _OPENMP
9360 choke me
9361#endif
9362#include <omp.h>
9363int main () { return omp_get_num_threads (); }
9364
9365_ACEOF
9366if ac_fn_c_try_link "$LINENO"; then :
9367  ac_cv_prog_c_openmp=$ac_option
9368fi
9369rm -f core conftest.err conftest.$ac_objext \
9370    conftest$ac_exeext conftest.$ac_ext
9371	    CFLAGS=$ac_save_CFLAGS
9372	    if test "$ac_cv_prog_c_openmp" != unsupported; then
9373	      break
9374	    fi
9375	  done
9376fi
9377rm -f core conftest.err conftest.$ac_objext \
9378    conftest$ac_exeext conftest.$ac_ext
9379fi
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
9381$as_echo "$ac_cv_prog_c_openmp" >&6; }
9382    case $ac_cv_prog_c_openmp in #(
9383      "none needed" | unsupported)
9384	;; #(
9385      *)
9386	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
9387    esac
9388  fi
9389
9390
9391CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9392MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9393
9394if test "$enable_openmp" != no; then
9395  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9396    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9397  fi
9398fi
9399
9400# Enable support for OpenCL
9401
9402
9403ac_ext=c
9404ac_cpp='$CPP $CPPFLAGS'
9405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407ac_compiler_gnu=$ac_cv_c_compiler_gnu
9408
9409ax_pthread_ok=no
9410
9411# We used to check for pthread.h first, but this fails if pthread.h
9412# requires special compiler flags (e.g. on True64 or Sequent).
9413# It gets checked for in the link test anyway.
9414
9415# First of all, check if the user has set any of the PTHREAD_LIBS,
9416# etcetera environment variables, and if threads linking works using
9417# them:
9418if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9419        save_CFLAGS="$CFLAGS"
9420        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9421        save_LIBS="$LIBS"
9422        LIBS="$PTHREAD_LIBS $LIBS"
9423        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9424$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9425        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h.  */
9427
9428/* Override any GCC internal prototype to avoid an error.
9429   Use char because int might match the return type of a GCC
9430   builtin and then its argument prototype would still apply.  */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434char pthread_join ();
9435int
9436main ()
9437{
9438return pthread_join ();
9439  ;
9440  return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_link "$LINENO"; then :
9444  ax_pthread_ok=yes
9445fi
9446rm -f core conftest.err conftest.$ac_objext \
9447    conftest$ac_exeext conftest.$ac_ext
9448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9449$as_echo "$ax_pthread_ok" >&6; }
9450        if test x"$ax_pthread_ok" = xno; then
9451                PTHREAD_LIBS=""
9452                PTHREAD_CFLAGS=""
9453        fi
9454        LIBS="$save_LIBS"
9455        CFLAGS="$save_CFLAGS"
9456fi
9457
9458# We must check for the threads library under a number of different
9459# names; the ordering is very important because some systems
9460# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9461# libraries is broken (non-POSIX).
9462
9463# Create a list of thread flags to try.  Items starting with a "-" are
9464# C compiler flags, and other items are library names, except for "none"
9465# which indicates that we try without any flags at all, and "pthread-config"
9466# which is a program returning the flags for the Pth emulation library.
9467
9468ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
9469
9470# The ordering *is* (sometimes) important.  Some notes on the
9471# individual items follow:
9472
9473# pthreads: AIX (must check this before -lpthread)
9474# none: in case threads are in libc; should be tried before -Kthread and
9475#       other compiler flags to prevent continual compiler warnings
9476# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9477# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9478# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9479# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9480# -pthreads: Solaris/gcc
9481# -mthreads: Mingw32/gcc, Lynx/gcc
9482# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9483#      doesn't hurt to check since this sometimes defines pthreads too;
9484#      also defines -D_REENTRANT)
9485#      ... -mt is also the pthreads flag for HP/aCC
9486# pthread: Linux, etcetera
9487# --thread-safe: KAI C++
9488# pthread-config: use pthread-config program (for GNU Pth library)
9489
9490case "${host_cpu}-${host_os}" in
9491        *solaris*)
9492
9493        # On Solaris (at least, for some versions), libc contains stubbed
9494        # (non-functional) versions of the pthreads routines, so link-based
9495        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9496        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9497        # a function called by this macro, so we could check for that, but
9498        # who knows whether they'll stub that too in a future libc.)  So,
9499        # we'll just look for -pthreads and -lpthread first:
9500
9501        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9502        ;;
9503
9504        *-darwin*)
9505        ax_pthread_flags="-pthread $ax_pthread_flags"
9506        ;;
9507esac
9508
9509if test x"$ax_pthread_ok" = xno; then
9510for flag in $ax_pthread_flags; do
9511
9512        case $flag in
9513                none)
9514                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9515$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9516                ;;
9517
9518                -*)
9519                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9520$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9521                PTHREAD_CFLAGS="$flag"
9522                ;;
9523
9524                pthread-config)
9525                # Extract the first word of "pthread-config", so it can be a program name with args.
9526set dummy pthread-config; ac_word=$2
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528$as_echo_n "checking for $ac_word... " >&6; }
9529if ${ac_cv_prog_ax_pthread_config+:} false; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  if test -n "$ax_pthread_config"; then
9533  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9534else
9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538  IFS=$as_save_IFS
9539  test -z "$as_dir" && as_dir=.
9540    for ac_exec_ext in '' $ac_executable_extensions; do
9541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542    ac_cv_prog_ax_pthread_config="yes"
9543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544    break 2
9545  fi
9546done
9547  done
9548IFS=$as_save_IFS
9549
9550  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9551fi
9552fi
9553ax_pthread_config=$ac_cv_prog_ax_pthread_config
9554if test -n "$ax_pthread_config"; then
9555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9556$as_echo "$ax_pthread_config" >&6; }
9557else
9558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
9560fi
9561
9562
9563                if test x"$ax_pthread_config" = xno; then continue; fi
9564                PTHREAD_CFLAGS="`pthread-config --cflags`"
9565                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9566                ;;
9567
9568                *)
9569                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9570$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9571                PTHREAD_LIBS="-l$flag"
9572                ;;
9573        esac
9574
9575        save_LIBS="$LIBS"
9576        save_CFLAGS="$CFLAGS"
9577        LIBS="$PTHREAD_LIBS $LIBS"
9578        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9579
9580        # Check for various functions.  We must include pthread.h,
9581        # since some functions may be macros.  (On the Sequent, we
9582        # need a special flag -Kthread to make this header compile.)
9583        # We check for pthread_join because it is in -lpthread on IRIX
9584        # while pthread_create is in libc.  We check for pthread_attr_init
9585        # due to DEC craziness with -lpthreads.  We check for
9586        # pthread_cleanup_push because it is one of the few pthread
9587        # functions on Solaris that doesn't have a non-functional libc stub.
9588        # We try pthread_create on general principles.
9589        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591#include <pthread.h>
9592                        static void routine(void *a) { a = 0; }
9593                        static void *start_routine(void *a) { return a; }
9594int
9595main ()
9596{
9597pthread_t th; pthread_attr_t attr;
9598                        pthread_create(&th, 0, start_routine, 0);
9599                        pthread_join(th, 0);
9600                        pthread_attr_init(&attr);
9601                        pthread_cleanup_push(routine, 0);
9602                        pthread_cleanup_pop(0) /* ; */
9603  ;
9604  return 0;
9605}
9606_ACEOF
9607if ac_fn_c_try_link "$LINENO"; then :
9608  ax_pthread_ok=yes
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611    conftest$ac_exeext conftest.$ac_ext
9612
9613        LIBS="$save_LIBS"
9614        CFLAGS="$save_CFLAGS"
9615
9616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9617$as_echo "$ax_pthread_ok" >&6; }
9618        if test "x$ax_pthread_ok" = xyes; then
9619                break;
9620        fi
9621
9622        PTHREAD_LIBS=""
9623        PTHREAD_CFLAGS=""
9624done
9625fi
9626
9627# Various other checks:
9628if test "x$ax_pthread_ok" = xyes; then
9629        save_LIBS="$LIBS"
9630        LIBS="$PTHREAD_LIBS $LIBS"
9631        save_CFLAGS="$CFLAGS"
9632        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9633
9634        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9635        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9636$as_echo_n "checking for joinable pthread attribute... " >&6; }
9637        attr_name=unknown
9638        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9639            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641#include <pthread.h>
9642int
9643main ()
9644{
9645int attr = $attr; return attr /* ; */
9646  ;
9647  return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651  attr_name=$attr; break
9652fi
9653rm -f core conftest.err conftest.$ac_objext \
9654    conftest$ac_exeext conftest.$ac_ext
9655        done
9656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9657$as_echo "$attr_name" >&6; }
9658        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9659
9660cat >>confdefs.h <<_ACEOF
9661#define PTHREAD_CREATE_JOINABLE $attr_name
9662_ACEOF
9663
9664        fi
9665
9666        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9667$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9668        flag=no
9669        case "${host_cpu}-${host_os}" in
9670            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9671            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9672        esac
9673        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9674$as_echo "${flag}" >&6; }
9675        if test "x$flag" != xno; then
9676            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9677        fi
9678
9679        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9680$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9681if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684
9685                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687
9688                    #include <pthread.h>
9689int
9690main ()
9691{
9692int i = PTHREAD_PRIO_INHERIT;
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698  ax_cv_PTHREAD_PRIO_INHERIT=yes
9699else
9700  ax_cv_PTHREAD_PRIO_INHERIT=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext \
9703    conftest$ac_exeext conftest.$ac_ext
9704
9705fi
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9707$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9708        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9709
9710$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9711
9712fi
9713
9714        LIBS="$save_LIBS"
9715        CFLAGS="$save_CFLAGS"
9716
9717        # More AIX lossage: must compile with xlc_r or cc_r
9718        if test x"$GCC" != xyes; then
9719          for ac_prog in xlc_r cc_r
9720do
9721  # Extract the first word of "$ac_prog", so it can be a program name with args.
9722set dummy $ac_prog; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
9725if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  if test -n "$PTHREAD_CC"; then
9729  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734  IFS=$as_save_IFS
9735  test -z "$as_dir" && as_dir=.
9736    for ac_exec_ext in '' $ac_executable_extensions; do
9737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738    ac_cv_prog_PTHREAD_CC="$ac_prog"
9739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740    break 2
9741  fi
9742done
9743  done
9744IFS=$as_save_IFS
9745
9746fi
9747fi
9748PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9749if test -n "$PTHREAD_CC"; then
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9751$as_echo "$PTHREAD_CC" >&6; }
9752else
9753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755fi
9756
9757
9758  test -n "$PTHREAD_CC" && break
9759done
9760test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9761
9762        else
9763          PTHREAD_CC=$CC
9764        fi
9765else
9766        PTHREAD_CC="$CC"
9767fi
9768
9769
9770
9771
9772
9773# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9774if test x"$ax_pthread_ok" = xyes; then
9775
9776$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9777
9778        :
9779else
9780        ax_pthread_ok=no
9781
9782fi
9783ac_ext=c
9784ac_cpp='$CPP $CPPFLAGS'
9785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9787ac_compiler_gnu=$ac_cv_c_compiler_gnu
9788
9789
9790
9791# Check whether --enable-opencl was given.
9792if test "${enable_opencl+set}" = set; then :
9793  enableval=$enable_opencl; enable_opencl=$enableval
9794else
9795  enable_opencl='no'
9796fi
9797
9798
9799if test "$enable_opencl" = 'yes'; then
9800  ac_ext=c
9801ac_cpp='$CPP $CPPFLAGS'
9802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805
9806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9807$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9808if ${ax_cv_c_compiler_ms+:} false; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813
9814int
9815main ()
9816{
9817#ifndef _MSC_VER
9818       choke me
9819#endif
9820
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826  ax_compiler_ms=yes
9827else
9828  ax_compiler_ms=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831ax_cv_c_compiler_ms=$ax_compiler_ms
9832
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9835$as_echo "$ax_cv_c_compiler_ms" >&6; }
9836  if test X$ax_compiler_ms = Xno; then :
9837  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9838fi
9839
9840  ax_save_CPPFLAGS=$CPPFLAGS
9841  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9842  for ac_header in CL/cl.h OpenCL/cl.h
9843do :
9844  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9845ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9846if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9847  cat >>confdefs.h <<_ACEOF
9848#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9849_ACEOF
9850
9851fi
9852
9853done
9854
9855  CPPFLAGS=$ax_save_CPPFLAGS
9856
9857  for ac_header in windows.h
9858do :
9859  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9860if test "x$ac_cv_header_windows_h" = xyes; then :
9861  cat >>confdefs.h <<_ACEOF
9862#define HAVE_WINDOWS_H 1
9863_ACEOF
9864
9865fi
9866
9867done
9868
9869
9870
9871
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9873$as_echo_n "checking for OpenCL library... " >&6; }
9874if ${ax_cv_check_cl_libcl+:} false; then :
9875  $as_echo_n "(cached) " >&6
9876else
9877  ax_cv_check_cl_libcl=no
9878  case $host_cpu in
9879    x86_64) ax_check_cl_libdir=lib64 ;;
9880    *)      ax_check_cl_libdir=lib ;;
9881  esac
9882  ax_save_CPPFLAGS=$CPPFLAGS
9883  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9884  ax_save_LIBS=$LIBS
9885  LIBS=""
9886  ax_check_libs="-lOpenCL -lCL -lclparser"
9887  for ax_lib in $ax_check_libs; do
9888    if test X$ax_compiler_ms = Xyes; then :
9889  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9890else
9891  ax_try_lib=$ax_lib
9892fi
9893    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h.  */
9896
9897  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9898  #   include <windows.h>
9899  # endif
9900  # ifdef HAVE_CL_CL_H
9901  #   include <CL/cl.h>
9902  # elif defined(HAVE_OPENCL_CL_H)
9903  #   include <OpenCL/cl.h>
9904  # else
9905  #   error no CL.h
9906  # endif
9907int
9908main ()
9909{
9910clCreateContextFromType(0,0,0,0,0)
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916  ax_cv_check_cl_libcl=$ax_try_lib; break
9917else
9918  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"
9919                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921
9922  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9923  #   include <windows.h>
9924  # endif
9925  # ifdef HAVE_CL_CL_H
9926  #   include <CL/cl.h>
9927  # elif defined(HAVE_OPENCL_CL_H)
9928  #   include <OpenCL/cl.h>
9929  # else
9930  #   error no CL.h
9931  # endif
9932int
9933main ()
9934{
9935clCreateContextFromType(0,0,0,0,0)
9936  ;
9937  return 0;
9938}
9939_ACEOF
9940if ac_fn_c_try_link "$LINENO"; then :
9941  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9942else
9943  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"
9944                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946
9947  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9948  #   include <windows.h>
9949  # endif
9950  # ifdef HAVE_CL_CL_H
9951  #   include <CL/cl.h>
9952  # elif defined(HAVE_OPENCL_CL_H)
9953  #   include <OpenCL/cl.h>
9954  # else
9955  #   error no CL.h
9956  # endif
9957int
9958main ()
9959{
9960clCreateContextFromType(0,0,0,0,0)
9961  ;
9962  return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"; then :
9966  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9967fi
9968rm -f core conftest.err conftest.$ac_objext \
9969    conftest$ac_exeext conftest.$ac_ext
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972    conftest$ac_exeext conftest.$ac_ext
9973fi
9974rm -f core conftest.err conftest.$ac_objext \
9975    conftest$ac_exeext conftest.$ac_ext
9976  done
9977
9978  if test "X$ax_cv_check_cl_libcl" = Xno; then :
9979  LIBS='-Wl,-framework,OpenCL'
9980        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h.  */
9982
9983  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9984  #   include <windows.h>
9985  # endif
9986  # ifdef HAVE_CL_CL_H
9987  #   include <CL/cl.h>
9988  # elif defined(HAVE_OPENCL_CL_H)
9989  #   include <OpenCL/cl.h>
9990  # else
9991  #   error no CL.h
9992  # endif
9993int
9994main ()
9995{
9996clCreateContextFromType(0,0,0,0,0)
9997  ;
9998  return 0;
9999}
10000_ACEOF
10001if ac_fn_c_try_link "$LINENO"; then :
10002  ax_cv_check_cl_libcl=$LIBS
10003fi
10004rm -f core conftest.err conftest.$ac_objext \
10005    conftest$ac_exeext conftest.$ac_ext
10006fi
10007
10008  LIBS=$ax_save_LIBS
10009  CPPFLAGS=$ax_save_CPPFLAGS
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10012$as_echo "$ax_cv_check_cl_libcl" >&6; }
10013
10014  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10015  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10016else
10017  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10018$as_echo "#define _OPENCL 1" >>confdefs.h
10019
10020fi
10021  ac_ext=c
10022ac_cpp='$CPP $CPPFLAGS'
10023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10025ac_compiler_gnu=$ac_cv_c_compiler_gnu
10026
10027fi
10028
10029
10030
10031
10032CFLAGS="$CL_CFLAGS $CFLAGS"
10033LIBS="$CL_LIBS $LIBS"
10034
10035if test "$enable_opencl" != no; then
10036  if test "X$ax_cv_check_cl_libcl" != Xno; then :
10037    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10038  fi
10039fi
10040
10041########
10042#
10043# Check for large file support
10044#
10045########
10046# Check whether --enable-largefile was given.
10047if test "${enable_largefile+set}" = set; then :
10048  enableval=$enable_largefile;
10049fi
10050
10051if test "$enable_largefile" != no; then
10052
10053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10054$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10055if ${ac_cv_sys_largefile_CC+:} false; then :
10056  $as_echo_n "(cached) " >&6
10057else
10058  ac_cv_sys_largefile_CC=no
10059     if test "$GCC" != yes; then
10060       ac_save_CC=$CC
10061       while :; do
10062	 # IRIX 6.2 and later do not support large files by default,
10063	 # so use the C compiler's -n32 option if that helps.
10064	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066#include <sys/types.h>
10067 /* Check that off_t can represent 2**63 - 1 correctly.
10068    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069    since some C++ compilers masquerading as C compilers
10070    incorrectly reject 9223372036854775807.  */
10071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10072  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073		       && LARGE_OFF_T % 2147483647 == 1)
10074		      ? 1 : -1];
10075int
10076main ()
10077{
10078
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083	 if ac_fn_c_try_compile "$LINENO"; then :
10084  break
10085fi
10086rm -f core conftest.err conftest.$ac_objext
10087	 CC="$CC -n32"
10088	 if ac_fn_c_try_compile "$LINENO"; then :
10089  ac_cv_sys_largefile_CC=' -n32'; break
10090fi
10091rm -f core conftest.err conftest.$ac_objext
10092	 break
10093       done
10094       CC=$ac_save_CC
10095       rm -f conftest.$ac_ext
10096    fi
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10099$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10100  if test "$ac_cv_sys_largefile_CC" != no; then
10101    CC=$CC$ac_cv_sys_largefile_CC
10102  fi
10103
10104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10105$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10106if ${ac_cv_sys_file_offset_bits+:} false; then :
10107  $as_echo_n "(cached) " >&6
10108else
10109  while :; do
10110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112#include <sys/types.h>
10113 /* Check that off_t can represent 2**63 - 1 correctly.
10114    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10115    since some C++ compilers masquerading as C compilers
10116    incorrectly reject 9223372036854775807.  */
10117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10118  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10119		       && LARGE_OFF_T % 2147483647 == 1)
10120		      ? 1 : -1];
10121int
10122main ()
10123{
10124
10125  ;
10126  return 0;
10127}
10128_ACEOF
10129if ac_fn_c_try_compile "$LINENO"; then :
10130  ac_cv_sys_file_offset_bits=no; break
10131fi
10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135#define _FILE_OFFSET_BITS 64
10136#include <sys/types.h>
10137 /* Check that off_t can represent 2**63 - 1 correctly.
10138    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10139    since some C++ compilers masquerading as C compilers
10140    incorrectly reject 9223372036854775807.  */
10141#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10142  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10143		       && LARGE_OFF_T % 2147483647 == 1)
10144		      ? 1 : -1];
10145int
10146main ()
10147{
10148
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"; then :
10154  ac_cv_sys_file_offset_bits=64; break
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157  ac_cv_sys_file_offset_bits=unknown
10158  break
10159done
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10162$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10163case $ac_cv_sys_file_offset_bits in #(
10164  no | unknown) ;;
10165  *)
10166cat >>confdefs.h <<_ACEOF
10167#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10168_ACEOF
10169;;
10170esac
10171rm -rf conftest*
10172  if test $ac_cv_sys_file_offset_bits = unknown; then
10173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10174$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10175if ${ac_cv_sys_large_files+:} false; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  while :; do
10179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181#include <sys/types.h>
10182 /* Check that off_t can represent 2**63 - 1 correctly.
10183    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10184    since some C++ compilers masquerading as C compilers
10185    incorrectly reject 9223372036854775807.  */
10186#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10187  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10188		       && LARGE_OFF_T % 2147483647 == 1)
10189		      ? 1 : -1];
10190int
10191main ()
10192{
10193
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_compile "$LINENO"; then :
10199  ac_cv_sys_large_files=no; break
10200fi
10201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204#define _LARGE_FILES 1
10205#include <sys/types.h>
10206 /* Check that off_t can represent 2**63 - 1 correctly.
10207    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10208    since some C++ compilers masquerading as C compilers
10209    incorrectly reject 9223372036854775807.  */
10210#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10211  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10212		       && LARGE_OFF_T % 2147483647 == 1)
10213		      ? 1 : -1];
10214int
10215main ()
10216{
10217
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"; then :
10223  ac_cv_sys_large_files=1; break
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226  ac_cv_sys_large_files=unknown
10227  break
10228done
10229fi
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10231$as_echo "$ac_cv_sys_large_files" >&6; }
10232case $ac_cv_sys_large_files in #(
10233  no | unknown) ;;
10234  *)
10235cat >>confdefs.h <<_ACEOF
10236#define _LARGE_FILES $ac_cv_sys_large_files
10237_ACEOF
10238;;
10239esac
10240rm -rf conftest*
10241  fi
10242
10243
10244fi
10245
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10247$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10248if ${ac_cv_sys_largefile_source+:} false; then :
10249  $as_echo_n "(cached) " >&6
10250else
10251  while :; do
10252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254#include <sys/types.h> /* for off_t */
10255     #include <stdio.h>
10256int
10257main ()
10258{
10259int (*fp) (FILE *, off_t, int) = fseeko;
10260     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10261  ;
10262  return 0;
10263}
10264_ACEOF
10265if ac_fn_c_try_link "$LINENO"; then :
10266  ac_cv_sys_largefile_source=no; break
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272#define _LARGEFILE_SOURCE 1
10273#include <sys/types.h> /* for off_t */
10274     #include <stdio.h>
10275int
10276main ()
10277{
10278int (*fp) (FILE *, off_t, int) = fseeko;
10279     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10280  ;
10281  return 0;
10282}
10283_ACEOF
10284if ac_fn_c_try_link "$LINENO"; then :
10285  ac_cv_sys_largefile_source=1; break
10286fi
10287rm -f core conftest.err conftest.$ac_objext \
10288    conftest$ac_exeext conftest.$ac_ext
10289  ac_cv_sys_largefile_source=unknown
10290  break
10291done
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10294$as_echo "$ac_cv_sys_largefile_source" >&6; }
10295case $ac_cv_sys_largefile_source in #(
10296  no | unknown) ;;
10297  *)
10298cat >>confdefs.h <<_ACEOF
10299#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10300_ACEOF
10301;;
10302esac
10303rm -rf conftest*
10304
10305# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10306# in glibc 2.1.3, but that breaks too many other things.
10307# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10308if test $ac_cv_sys_largefile_source != unknown; then
10309
10310$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10311
10312fi
10313
10314LFS_CPPFLAGS=''
10315if test "$enable_largefile" != no; then
10316    case $ac_cv_sys_file_offset_bits in
10317    no)
10318        # nothing to do here as the host supports LFS fine
10319        ;;
10320    unknown)
10321        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
10322$as_echo_n "checking for native large file support... " >&6; }
10323        if test "$cross_compiling" = yes; then :
10324  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10326as_fn_error $? "cannot run test program while cross compiling
10327See \`config.log' for more details" "$LINENO" 5; }
10328else
10329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h.  */
10331#include <unistd.h>
10332          main () {
10333          exit(!(sizeof(off_t) == 8));
10334        }
10335int
10336main ()
10337{
10338
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343if ac_fn_c_try_run "$LINENO"; then :
10344  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
10345
10346         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10347$as_echo "$as_me: yes" >&6;}
10348else
10349  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10350$as_echo "$as_me: no" >&6;}
10351fi
10352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10353  conftest.$ac_objext conftest.beam conftest.$ac_ext
10354fi
10355
10356        ;;
10357    *)
10358        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10359        ;;
10360    esac
10361    if test "$ac_cv_sys_large_files" != 'no'; then
10362        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10363    fi
10364    if test "$ac_cv_sys_largefile_source" != 'no'; then
10365        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10366    fi
10367fi
10368
10369
10370# Configure libtool
10371enable_dlopen=yes
10372
10373
10374
10375case `pwd` in
10376  *\ * | *\	*)
10377    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10378$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10379esac
10380
10381
10382
10383macro_version='2.4.2'
10384macro_revision='1.3337'
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398ltmain="$ac_aux_dir/ltmain.sh"
10399
10400# Backslashify metacharacters that are still active within
10401# double-quoted strings.
10402sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10403
10404# Same as above, but do not quote variable references.
10405double_quote_subst='s/\(["`\\]\)/\\\1/g'
10406
10407# Sed substitution to delay expansion of an escaped shell variable in a
10408# double_quote_subst'ed string.
10409delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10410
10411# Sed substitution to delay expansion of an escaped single quote.
10412delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10413
10414# Sed substitution to avoid accidental globbing in evaled expressions
10415no_glob_subst='s/\*/\\\*/g'
10416
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10418$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10419if ${lt_cv_path_NM+:} false; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422  if test -n "$NM"; then
10423  # Let the user override the test.
10424  lt_cv_path_NM="$NM"
10425else
10426  lt_nm_to_check="${ac_tool_prefix}nm"
10427  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10428    lt_nm_to_check="$lt_nm_to_check nm"
10429  fi
10430  for lt_tmp_nm in $lt_nm_to_check; do
10431    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10432    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10433      IFS="$lt_save_ifs"
10434      test -z "$ac_dir" && ac_dir=.
10435      tmp_nm="$ac_dir/$lt_tmp_nm"
10436      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10437	# Check to see if the nm accepts a BSD-compat flag.
10438	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10439	#   nm: unknown option "B" ignored
10440	# Tru64's nm complains that /dev/null is an invalid object file
10441	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10442	*/dev/null* | *'Invalid file or object type'*)
10443	  lt_cv_path_NM="$tmp_nm -B"
10444	  break
10445	  ;;
10446	*)
10447	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10448	  */dev/null*)
10449	    lt_cv_path_NM="$tmp_nm -p"
10450	    break
10451	    ;;
10452	  *)
10453	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10454	    continue # so that we can try to find one that supports BSD flags
10455	    ;;
10456	  esac
10457	  ;;
10458	esac
10459      fi
10460    done
10461    IFS="$lt_save_ifs"
10462  done
10463  : ${lt_cv_path_NM=no}
10464fi
10465fi
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10467$as_echo "$lt_cv_path_NM" >&6; }
10468if test "$lt_cv_path_NM" != "no"; then
10469  NM="$lt_cv_path_NM"
10470else
10471  # Didn't find any BSD compatible name lister, look for dumpbin.
10472  if test -n "$DUMPBIN"; then :
10473    # Let the user override the test.
10474  else
10475    if test -n "$ac_tool_prefix"; then
10476  for ac_prog in dumpbin "link -dump"
10477  do
10478    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10479set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481$as_echo_n "checking for $ac_word... " >&6; }
10482if ${ac_cv_prog_DUMPBIN+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  if test -n "$DUMPBIN"; then
10486  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10487else
10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491  IFS=$as_save_IFS
10492  test -z "$as_dir" && as_dir=.
10493    for ac_exec_ext in '' $ac_executable_extensions; do
10494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497    break 2
10498  fi
10499done
10500  done
10501IFS=$as_save_IFS
10502
10503fi
10504fi
10505DUMPBIN=$ac_cv_prog_DUMPBIN
10506if test -n "$DUMPBIN"; then
10507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10508$as_echo "$DUMPBIN" >&6; }
10509else
10510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512fi
10513
10514
10515    test -n "$DUMPBIN" && break
10516  done
10517fi
10518if test -z "$DUMPBIN"; then
10519  ac_ct_DUMPBIN=$DUMPBIN
10520  for ac_prog in dumpbin "link -dump"
10521do
10522  # Extract the first word of "$ac_prog", so it can be a program name with args.
10523set dummy $ac_prog; ac_word=$2
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525$as_echo_n "checking for $ac_word... " >&6; }
10526if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10527  $as_echo_n "(cached) " >&6
10528else
10529  if test -n "$ac_ct_DUMPBIN"; then
10530  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10531else
10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $PATH
10534do
10535  IFS=$as_save_IFS
10536  test -z "$as_dir" && as_dir=.
10537    for ac_exec_ext in '' $ac_executable_extensions; do
10538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541    break 2
10542  fi
10543done
10544  done
10545IFS=$as_save_IFS
10546
10547fi
10548fi
10549ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10550if test -n "$ac_ct_DUMPBIN"; then
10551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10552$as_echo "$ac_ct_DUMPBIN" >&6; }
10553else
10554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
10556fi
10557
10558
10559  test -n "$ac_ct_DUMPBIN" && break
10560done
10561
10562  if test "x$ac_ct_DUMPBIN" = x; then
10563    DUMPBIN=":"
10564  else
10565    case $cross_compiling:$ac_tool_warned in
10566yes:)
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10569ac_tool_warned=yes ;;
10570esac
10571    DUMPBIN=$ac_ct_DUMPBIN
10572  fi
10573fi
10574
10575    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10576    *COFF*)
10577      DUMPBIN="$DUMPBIN -symbols"
10578      ;;
10579    *)
10580      DUMPBIN=:
10581      ;;
10582    esac
10583  fi
10584
10585  if test "$DUMPBIN" != ":"; then
10586    NM="$DUMPBIN"
10587  fi
10588fi
10589test -z "$NM" && NM=nm
10590
10591
10592
10593
10594
10595
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10597$as_echo_n "checking the name lister ($NM) interface... " >&6; }
10598if ${lt_cv_nm_interface+:} false; then :
10599  $as_echo_n "(cached) " >&6
10600else
10601  lt_cv_nm_interface="BSD nm"
10602  echo "int some_variable = 0;" > conftest.$ac_ext
10603  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10604  (eval "$ac_compile" 2>conftest.err)
10605  cat conftest.err >&5
10606  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10607  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10608  cat conftest.err >&5
10609  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10610  cat conftest.out >&5
10611  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10612    lt_cv_nm_interface="MS dumpbin"
10613  fi
10614  rm -f conftest*
10615fi
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10617$as_echo "$lt_cv_nm_interface" >&6; }
10618
10619# find the maximum length of command line arguments
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10621$as_echo_n "checking the maximum length of command line arguments... " >&6; }
10622if ${lt_cv_sys_max_cmd_len+:} false; then :
10623  $as_echo_n "(cached) " >&6
10624else
10625    i=0
10626  teststring="ABCD"
10627
10628  case $build_os in
10629  msdosdjgpp*)
10630    # On DJGPP, this test can blow up pretty badly due to problems in libc
10631    # (any single argument exceeding 2000 bytes causes a buffer overrun
10632    # during glob expansion).  Even if it were fixed, the result of this
10633    # check would be larger than it should be.
10634    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10635    ;;
10636
10637  gnu*)
10638    # Under GNU Hurd, this test is not required because there is
10639    # no limit to the length of command line arguments.
10640    # Libtool will interpret -1 as no limit whatsoever
10641    lt_cv_sys_max_cmd_len=-1;
10642    ;;
10643
10644  cygwin* | mingw* | cegcc*)
10645    # On Win9x/ME, this test blows up -- it succeeds, but takes
10646    # about 5 minutes as the teststring grows exponentially.
10647    # Worse, since 9x/ME are not pre-emptively multitasking,
10648    # you end up with a "frozen" computer, even though with patience
10649    # the test eventually succeeds (with a max line length of 256k).
10650    # Instead, let's just punt: use the minimum linelength reported by
10651    # all of the supported platforms: 8192 (on NT/2K/XP).
10652    lt_cv_sys_max_cmd_len=8192;
10653    ;;
10654
10655  mint*)
10656    # On MiNT this can take a long time and run out of memory.
10657    lt_cv_sys_max_cmd_len=8192;
10658    ;;
10659
10660  amigaos*)
10661    # On AmigaOS with pdksh, this test takes hours, literally.
10662    # So we just punt and use a minimum line length of 8192.
10663    lt_cv_sys_max_cmd_len=8192;
10664    ;;
10665
10666  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10667    # This has been around since 386BSD, at least.  Likely further.
10668    if test -x /sbin/sysctl; then
10669      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10670    elif test -x /usr/sbin/sysctl; then
10671      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10672    else
10673      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
10674    fi
10675    # And add a safety zone
10676    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10677    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10678    ;;
10679
10680  interix*)
10681    # We know the value 262144 and hardcode it with a safety zone (like BSD)
10682    lt_cv_sys_max_cmd_len=196608
10683    ;;
10684
10685  os2*)
10686    # The test takes a long time on OS/2.
10687    lt_cv_sys_max_cmd_len=8192
10688    ;;
10689
10690  osf*)
10691    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10692    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10693    # nice to cause kernel panics so lets avoid the loop below.
10694    # First set a reasonable default.
10695    lt_cv_sys_max_cmd_len=16384
10696    #
10697    if test -x /sbin/sysconfig; then
10698      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10699        *1*) lt_cv_sys_max_cmd_len=-1 ;;
10700      esac
10701    fi
10702    ;;
10703  sco3.2v5*)
10704    lt_cv_sys_max_cmd_len=102400
10705    ;;
10706  sysv5* | sco5v6* | sysv4.2uw2*)
10707    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10708    if test -n "$kargmax"; then
10709      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
10710    else
10711      lt_cv_sys_max_cmd_len=32768
10712    fi
10713    ;;
10714  *)
10715    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10716    if test -n "$lt_cv_sys_max_cmd_len"; then
10717      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10718      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10719    else
10720      # Make teststring a little bigger before we do anything with it.
10721      # a 1K string should be a reasonable start.
10722      for i in 1 2 3 4 5 6 7 8 ; do
10723        teststring=$teststring$teststring
10724      done
10725      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10726      # If test is not a shell built-in, we'll probably end up computing a
10727      # maximum length that is only half of the actual maximum length, but
10728      # we can't tell.
10729      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10730	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10731	      test $i != 17 # 1/2 MB should be enough
10732      do
10733        i=`expr $i + 1`
10734        teststring=$teststring$teststring
10735      done
10736      # Only check the string length outside the loop.
10737      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10738      teststring=
10739      # Add a significant safety factor because C++ compilers can tack on
10740      # massive amounts of additional arguments before passing them to the
10741      # linker.  It appears as though 1/2 is a usable value.
10742      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10743    fi
10744    ;;
10745  esac
10746
10747fi
10748
10749if test -n $lt_cv_sys_max_cmd_len ; then
10750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10751$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10752else
10753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10754$as_echo "none" >&6; }
10755fi
10756max_cmd_len=$lt_cv_sys_max_cmd_len
10757
10758
10759
10760
10761
10762
10763: ${CP="cp -f"}
10764: ${MV="mv -f"}
10765: ${RM="rm -f"}
10766
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10768$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10769# Try some XSI features
10770xsi_shell=no
10771( _lt_dummy="a/b/c"
10772  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10773      = c,a/b,b/c, \
10774    && eval 'test $(( 1 + 1 )) -eq 2 \
10775    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10776  && xsi_shell=yes
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10778$as_echo "$xsi_shell" >&6; }
10779
10780
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10782$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10783lt_shell_append=no
10784( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10785    >/dev/null 2>&1 \
10786  && lt_shell_append=yes
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10788$as_echo "$lt_shell_append" >&6; }
10789
10790
10791if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10792  lt_unset=unset
10793else
10794  lt_unset=false
10795fi
10796
10797
10798
10799
10800
10801# test EBCDIC or ASCII
10802case `echo X|tr X '\101'` in
10803 A) # ASCII based system
10804    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10805  lt_SP2NL='tr \040 \012'
10806  lt_NL2SP='tr \015\012 \040\040'
10807  ;;
10808 *) # EBCDIC based system
10809  lt_SP2NL='tr \100 \n'
10810  lt_NL2SP='tr \r\n \100\100'
10811  ;;
10812esac
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10823$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10824if ${lt_cv_to_host_file_cmd+:} false; then :
10825  $as_echo_n "(cached) " >&6
10826else
10827  case $host in
10828  *-*-mingw* )
10829    case $build in
10830      *-*-mingw* ) # actually msys
10831        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10832        ;;
10833      *-*-cygwin* )
10834        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10835        ;;
10836      * ) # otherwise, assume *nix
10837        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10838        ;;
10839    esac
10840    ;;
10841  *-*-cygwin* )
10842    case $build in
10843      *-*-mingw* ) # actually msys
10844        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10845        ;;
10846      *-*-cygwin* )
10847        lt_cv_to_host_file_cmd=func_convert_file_noop
10848        ;;
10849      * ) # otherwise, assume *nix
10850        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10851        ;;
10852    esac
10853    ;;
10854  * ) # unhandled hosts (and "normal" native builds)
10855    lt_cv_to_host_file_cmd=func_convert_file_noop
10856    ;;
10857esac
10858
10859fi
10860
10861to_host_file_cmd=$lt_cv_to_host_file_cmd
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10863$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10864
10865
10866
10867
10868
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10870$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10871if ${lt_cv_to_tool_file_cmd+:} false; then :
10872  $as_echo_n "(cached) " >&6
10873else
10874  #assume ordinary cross tools, or native build.
10875lt_cv_to_tool_file_cmd=func_convert_file_noop
10876case $host in
10877  *-*-mingw* )
10878    case $build in
10879      *-*-mingw* ) # actually msys
10880        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10881        ;;
10882    esac
10883    ;;
10884esac
10885
10886fi
10887
10888to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10890$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10891
10892
10893
10894
10895
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10897$as_echo_n "checking for $LD option to reload object files... " >&6; }
10898if ${lt_cv_ld_reload_flag+:} false; then :
10899  $as_echo_n "(cached) " >&6
10900else
10901  lt_cv_ld_reload_flag='-r'
10902fi
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10904$as_echo "$lt_cv_ld_reload_flag" >&6; }
10905reload_flag=$lt_cv_ld_reload_flag
10906case $reload_flag in
10907"" | " "*) ;;
10908*) reload_flag=" $reload_flag" ;;
10909esac
10910reload_cmds='$LD$reload_flag -o $output$reload_objs'
10911case $host_os in
10912  cygwin* | mingw* | pw32* | cegcc*)
10913    if test "$GCC" != yes; then
10914      reload_cmds=false
10915    fi
10916    ;;
10917  darwin*)
10918    if test "$GCC" = yes; then
10919      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10920    else
10921      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10922    fi
10923    ;;
10924esac
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934if test -n "$ac_tool_prefix"; then
10935  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10936set dummy ${ac_tool_prefix}objdump; ac_word=$2
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if ${ac_cv_prog_OBJDUMP+:} false; then :
10940  $as_echo_n "(cached) " >&6
10941else
10942  if test -n "$OBJDUMP"; then
10943  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10944else
10945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $PATH
10947do
10948  IFS=$as_save_IFS
10949  test -z "$as_dir" && as_dir=.
10950    for ac_exec_ext in '' $ac_executable_extensions; do
10951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10952    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954    break 2
10955  fi
10956done
10957  done
10958IFS=$as_save_IFS
10959
10960fi
10961fi
10962OBJDUMP=$ac_cv_prog_OBJDUMP
10963if test -n "$OBJDUMP"; then
10964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10965$as_echo "$OBJDUMP" >&6; }
10966else
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
10969fi
10970
10971
10972fi
10973if test -z "$ac_cv_prog_OBJDUMP"; then
10974  ac_ct_OBJDUMP=$OBJDUMP
10975  # Extract the first word of "objdump", so it can be a program name with args.
10976set dummy objdump; ac_word=$2
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978$as_echo_n "checking for $ac_word... " >&6; }
10979if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10980  $as_echo_n "(cached) " >&6
10981else
10982  if test -n "$ac_ct_OBJDUMP"; then
10983  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10984else
10985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $PATH
10987do
10988  IFS=$as_save_IFS
10989  test -z "$as_dir" && as_dir=.
10990    for ac_exec_ext in '' $ac_executable_extensions; do
10991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994    break 2
10995  fi
10996done
10997  done
10998IFS=$as_save_IFS
10999
11000fi
11001fi
11002ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11003if test -n "$ac_ct_OBJDUMP"; then
11004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11005$as_echo "$ac_ct_OBJDUMP" >&6; }
11006else
11007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
11009fi
11010
11011  if test "x$ac_ct_OBJDUMP" = x; then
11012    OBJDUMP="false"
11013  else
11014    case $cross_compiling:$ac_tool_warned in
11015yes:)
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11018ac_tool_warned=yes ;;
11019esac
11020    OBJDUMP=$ac_ct_OBJDUMP
11021  fi
11022else
11023  OBJDUMP="$ac_cv_prog_OBJDUMP"
11024fi
11025
11026test -z "$OBJDUMP" && OBJDUMP=objdump
11027
11028
11029
11030
11031
11032
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11034$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11035if ${lt_cv_deplibs_check_method+:} false; then :
11036  $as_echo_n "(cached) " >&6
11037else
11038  lt_cv_file_magic_cmd='$MAGIC_CMD'
11039lt_cv_file_magic_test_file=
11040lt_cv_deplibs_check_method='unknown'
11041# Need to set the preceding variable on all platforms that support
11042# interlibrary dependencies.
11043# 'none' -- dependencies not supported.
11044# `unknown' -- same as none, but documents that we really don't know.
11045# 'pass_all' -- all dependencies passed with no checks.
11046# 'test_compile' -- check by making test program.
11047# 'file_magic [[regex]]' -- check by looking for files in library path
11048# which responds to the $file_magic_cmd with a given extended regex.
11049# If you have `file' or equivalent on your system and you're not sure
11050# whether `pass_all' will *always* work, you probably want this one.
11051
11052case $host_os in
11053aix[4-9]*)
11054  lt_cv_deplibs_check_method=pass_all
11055  ;;
11056
11057beos*)
11058  lt_cv_deplibs_check_method=pass_all
11059  ;;
11060
11061bsdi[45]*)
11062  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11063  lt_cv_file_magic_cmd='/usr/bin/file -L'
11064  lt_cv_file_magic_test_file=/shlib/libc.so
11065  ;;
11066
11067cygwin*)
11068  # func_win32_libid is a shell function defined in ltmain.sh
11069  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11070  lt_cv_file_magic_cmd='func_win32_libid'
11071  ;;
11072
11073mingw* | pw32*)
11074  # Base MSYS/MinGW do not provide the 'file' command needed by
11075  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11076  # unless we find 'file', for example because we are cross-compiling.
11077  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11078  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11079    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11080    lt_cv_file_magic_cmd='func_win32_libid'
11081  else
11082    # Keep this pattern in sync with the one in func_win32_libid.
11083    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11084    lt_cv_file_magic_cmd='$OBJDUMP -f'
11085  fi
11086  ;;
11087
11088cegcc*)
11089  # use the weaker test based on 'objdump'. See mingw*.
11090  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11091  lt_cv_file_magic_cmd='$OBJDUMP -f'
11092  ;;
11093
11094darwin* | rhapsody*)
11095  lt_cv_deplibs_check_method=pass_all
11096  ;;
11097
11098freebsd* | dragonfly*)
11099  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11100    case $host_cpu in
11101    i*86 )
11102      # Not sure whether the presence of OpenBSD here was a mistake.
11103      # Let's accept both of them until this is cleared up.
11104      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11105      lt_cv_file_magic_cmd=/usr/bin/file
11106      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11107      ;;
11108    esac
11109  else
11110    lt_cv_deplibs_check_method=pass_all
11111  fi
11112  ;;
11113
11114gnu*)
11115  lt_cv_deplibs_check_method=pass_all
11116  ;;
11117
11118haiku*)
11119  lt_cv_deplibs_check_method=pass_all
11120  ;;
11121
11122hpux10.20* | hpux11*)
11123  lt_cv_file_magic_cmd=/usr/bin/file
11124  case $host_cpu in
11125  ia64*)
11126    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11127    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11128    ;;
11129  hppa*64*)
11130    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]'
11131    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11132    ;;
11133  *)
11134    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11135    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11136    ;;
11137  esac
11138  ;;
11139
11140interix[3-9]*)
11141  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11142  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11143  ;;
11144
11145irix5* | irix6* | nonstopux*)
11146  case $LD in
11147  *-32|*"-32 ") libmagic=32-bit;;
11148  *-n32|*"-n32 ") libmagic=N32;;
11149  *-64|*"-64 ") libmagic=64-bit;;
11150  *) libmagic=never-match;;
11151  esac
11152  lt_cv_deplibs_check_method=pass_all
11153  ;;
11154
11155# This must be glibc/ELF.
11156linux* | k*bsd*-gnu | kopensolaris*-gnu)
11157  lt_cv_deplibs_check_method=pass_all
11158  ;;
11159
11160netbsd*)
11161  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11162    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11163  else
11164    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11165  fi
11166  ;;
11167
11168newos6*)
11169  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11170  lt_cv_file_magic_cmd=/usr/bin/file
11171  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11172  ;;
11173
11174*nto* | *qnx*)
11175  lt_cv_deplibs_check_method=pass_all
11176  ;;
11177
11178openbsd*)
11179  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11180    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11181  else
11182    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11183  fi
11184  ;;
11185
11186osf3* | osf4* | osf5*)
11187  lt_cv_deplibs_check_method=pass_all
11188  ;;
11189
11190rdos*)
11191  lt_cv_deplibs_check_method=pass_all
11192  ;;
11193
11194solaris*)
11195  lt_cv_deplibs_check_method=pass_all
11196  ;;
11197
11198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11199  lt_cv_deplibs_check_method=pass_all
11200  ;;
11201
11202sysv4 | sysv4.3*)
11203  case $host_vendor in
11204  motorola)
11205    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]'
11206    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11207    ;;
11208  ncr)
11209    lt_cv_deplibs_check_method=pass_all
11210    ;;
11211  sequent)
11212    lt_cv_file_magic_cmd='/bin/file'
11213    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11214    ;;
11215  sni)
11216    lt_cv_file_magic_cmd='/bin/file'
11217    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11218    lt_cv_file_magic_test_file=/lib/libc.so
11219    ;;
11220  siemens)
11221    lt_cv_deplibs_check_method=pass_all
11222    ;;
11223  pc)
11224    lt_cv_deplibs_check_method=pass_all
11225    ;;
11226  esac
11227  ;;
11228
11229tpf*)
11230  lt_cv_deplibs_check_method=pass_all
11231  ;;
11232esac
11233
11234fi
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11236$as_echo "$lt_cv_deplibs_check_method" >&6; }
11237
11238file_magic_glob=
11239want_nocaseglob=no
11240if test "$build" = "$host"; then
11241  case $host_os in
11242  mingw* | pw32*)
11243    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11244      want_nocaseglob=yes
11245    else
11246      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11247    fi
11248    ;;
11249  esac
11250fi
11251
11252file_magic_cmd=$lt_cv_file_magic_cmd
11253deplibs_check_method=$lt_cv_deplibs_check_method
11254test -z "$deplibs_check_method" && deplibs_check_method=unknown
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277if test -n "$ac_tool_prefix"; then
11278  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11279set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281$as_echo_n "checking for $ac_word... " >&6; }
11282if ${ac_cv_prog_DLLTOOL+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285  if test -n "$DLLTOOL"; then
11286  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11287else
11288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289for as_dir in $PATH
11290do
11291  IFS=$as_save_IFS
11292  test -z "$as_dir" && as_dir=.
11293    for ac_exec_ext in '' $ac_executable_extensions; do
11294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11295    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297    break 2
11298  fi
11299done
11300  done
11301IFS=$as_save_IFS
11302
11303fi
11304fi
11305DLLTOOL=$ac_cv_prog_DLLTOOL
11306if test -n "$DLLTOOL"; then
11307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11308$as_echo "$DLLTOOL" >&6; }
11309else
11310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311$as_echo "no" >&6; }
11312fi
11313
11314
11315fi
11316if test -z "$ac_cv_prog_DLLTOOL"; then
11317  ac_ct_DLLTOOL=$DLLTOOL
11318  # Extract the first word of "dlltool", so it can be a program name with args.
11319set dummy dlltool; ac_word=$2
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11323  $as_echo_n "(cached) " >&6
11324else
11325  if test -n "$ac_ct_DLLTOOL"; then
11326  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331  IFS=$as_save_IFS
11332  test -z "$as_dir" && as_dir=.
11333    for ac_exec_ext in '' $ac_executable_extensions; do
11334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337    break 2
11338  fi
11339done
11340  done
11341IFS=$as_save_IFS
11342
11343fi
11344fi
11345ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11346if test -n "$ac_ct_DLLTOOL"; then
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11348$as_echo "$ac_ct_DLLTOOL" >&6; }
11349else
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
11352fi
11353
11354  if test "x$ac_ct_DLLTOOL" = x; then
11355    DLLTOOL="false"
11356  else
11357    case $cross_compiling:$ac_tool_warned in
11358yes:)
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361ac_tool_warned=yes ;;
11362esac
11363    DLLTOOL=$ac_ct_DLLTOOL
11364  fi
11365else
11366  DLLTOOL="$ac_cv_prog_DLLTOOL"
11367fi
11368
11369test -z "$DLLTOOL" && DLLTOOL=dlltool
11370
11371
11372
11373
11374
11375
11376
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11378$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11379if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  lt_cv_sharedlib_from_linklib_cmd='unknown'
11383
11384case $host_os in
11385cygwin* | mingw* | pw32* | cegcc*)
11386  # two different shell functions defined in ltmain.sh
11387  # decide which to use based on capabilities of $DLLTOOL
11388  case `$DLLTOOL --help 2>&1` in
11389  *--identify-strict*)
11390    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11391    ;;
11392  *)
11393    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11394    ;;
11395  esac
11396  ;;
11397*)
11398  # fallback: assume linklib IS sharedlib
11399  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11400  ;;
11401esac
11402
11403fi
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11405$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11406sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11407test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11408
11409
11410
11411
11412
11413
11414
11415if test -n "$ac_tool_prefix"; then
11416  for ac_prog in ar
11417  do
11418    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421$as_echo_n "checking for $ac_word... " >&6; }
11422if ${ac_cv_prog_AR+:} false; then :
11423  $as_echo_n "(cached) " >&6
11424else
11425  if test -n "$AR"; then
11426  ac_cv_prog_AR="$AR" # Let the user override the test.
11427else
11428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429for as_dir in $PATH
11430do
11431  IFS=$as_save_IFS
11432  test -z "$as_dir" && as_dir=.
11433    for ac_exec_ext in '' $ac_executable_extensions; do
11434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11435    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437    break 2
11438  fi
11439done
11440  done
11441IFS=$as_save_IFS
11442
11443fi
11444fi
11445AR=$ac_cv_prog_AR
11446if test -n "$AR"; then
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11448$as_echo "$AR" >&6; }
11449else
11450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451$as_echo "no" >&6; }
11452fi
11453
11454
11455    test -n "$AR" && break
11456  done
11457fi
11458if test -z "$AR"; then
11459  ac_ct_AR=$AR
11460  for ac_prog in ar
11461do
11462  # Extract the first word of "$ac_prog", so it can be a program name with args.
11463set dummy $ac_prog; ac_word=$2
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465$as_echo_n "checking for $ac_word... " >&6; }
11466if ${ac_cv_prog_ac_ct_AR+:} false; then :
11467  $as_echo_n "(cached) " >&6
11468else
11469  if test -n "$ac_ct_AR"; then
11470  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475  IFS=$as_save_IFS
11476  test -z "$as_dir" && as_dir=.
11477    for ac_exec_ext in '' $ac_executable_extensions; do
11478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479    ac_cv_prog_ac_ct_AR="$ac_prog"
11480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481    break 2
11482  fi
11483done
11484  done
11485IFS=$as_save_IFS
11486
11487fi
11488fi
11489ac_ct_AR=$ac_cv_prog_ac_ct_AR
11490if test -n "$ac_ct_AR"; then
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11492$as_echo "$ac_ct_AR" >&6; }
11493else
11494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
11496fi
11497
11498
11499  test -n "$ac_ct_AR" && break
11500done
11501
11502  if test "x$ac_ct_AR" = x; then
11503    AR="false"
11504  else
11505    case $cross_compiling:$ac_tool_warned in
11506yes:)
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11509ac_tool_warned=yes ;;
11510esac
11511    AR=$ac_ct_AR
11512  fi
11513fi
11514
11515: ${AR=ar}
11516: ${AR_FLAGS=cru}
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11529$as_echo_n "checking for archiver @FILE support... " >&6; }
11530if ${lt_cv_ar_at_file+:} false; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533  lt_cv_ar_at_file=no
11534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h.  */
11536
11537int
11538main ()
11539{
11540
11541  ;
11542  return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_compile "$LINENO"; then :
11546  echo conftest.$ac_objext > conftest.lst
11547      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11548      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11549  (eval $lt_ar_try) 2>&5
11550  ac_status=$?
11551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552  test $ac_status = 0; }
11553      if test "$ac_status" -eq 0; then
11554	# Ensure the archiver fails upon bogus file names.
11555	rm -f conftest.$ac_objext libconftest.a
11556	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11557  (eval $lt_ar_try) 2>&5
11558  ac_status=$?
11559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560  test $ac_status = 0; }
11561	if test "$ac_status" -ne 0; then
11562          lt_cv_ar_at_file=@
11563        fi
11564      fi
11565      rm -f conftest.* libconftest.a
11566
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11572$as_echo "$lt_cv_ar_at_file" >&6; }
11573
11574if test "x$lt_cv_ar_at_file" = xno; then
11575  archiver_list_spec=
11576else
11577  archiver_list_spec=$lt_cv_ar_at_file
11578fi
11579
11580
11581
11582
11583
11584
11585
11586if test -n "$ac_tool_prefix"; then
11587  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11588set dummy ${ac_tool_prefix}strip; ac_word=$2
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590$as_echo_n "checking for $ac_word... " >&6; }
11591if ${ac_cv_prog_STRIP+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  if test -n "$STRIP"; then
11595  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11596else
11597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598for as_dir in $PATH
11599do
11600  IFS=$as_save_IFS
11601  test -z "$as_dir" && as_dir=.
11602    for ac_exec_ext in '' $ac_executable_extensions; do
11603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606    break 2
11607  fi
11608done
11609  done
11610IFS=$as_save_IFS
11611
11612fi
11613fi
11614STRIP=$ac_cv_prog_STRIP
11615if test -n "$STRIP"; then
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11617$as_echo "$STRIP" >&6; }
11618else
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620$as_echo "no" >&6; }
11621fi
11622
11623
11624fi
11625if test -z "$ac_cv_prog_STRIP"; then
11626  ac_ct_STRIP=$STRIP
11627  # Extract the first word of "strip", so it can be a program name with args.
11628set dummy strip; ac_word=$2
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630$as_echo_n "checking for $ac_word... " >&6; }
11631if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11632  $as_echo_n "(cached) " >&6
11633else
11634  if test -n "$ac_ct_STRIP"; then
11635  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11636else
11637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH
11639do
11640  IFS=$as_save_IFS
11641  test -z "$as_dir" && as_dir=.
11642    for ac_exec_ext in '' $ac_executable_extensions; do
11643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644    ac_cv_prog_ac_ct_STRIP="strip"
11645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646    break 2
11647  fi
11648done
11649  done
11650IFS=$as_save_IFS
11651
11652fi
11653fi
11654ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11655if test -n "$ac_ct_STRIP"; then
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11657$as_echo "$ac_ct_STRIP" >&6; }
11658else
11659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
11661fi
11662
11663  if test "x$ac_ct_STRIP" = x; then
11664    STRIP=":"
11665  else
11666    case $cross_compiling:$ac_tool_warned in
11667yes:)
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11670ac_tool_warned=yes ;;
11671esac
11672    STRIP=$ac_ct_STRIP
11673  fi
11674else
11675  STRIP="$ac_cv_prog_STRIP"
11676fi
11677
11678test -z "$STRIP" && STRIP=:
11679
11680
11681
11682
11683
11684
11685if test -n "$ac_tool_prefix"; then
11686  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11687set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689$as_echo_n "checking for $ac_word... " >&6; }
11690if ${ac_cv_prog_RANLIB+:} false; then :
11691  $as_echo_n "(cached) " >&6
11692else
11693  if test -n "$RANLIB"; then
11694  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699  IFS=$as_save_IFS
11700  test -z "$as_dir" && as_dir=.
11701    for ac_exec_ext in '' $ac_executable_extensions; do
11702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705    break 2
11706  fi
11707done
11708  done
11709IFS=$as_save_IFS
11710
11711fi
11712fi
11713RANLIB=$ac_cv_prog_RANLIB
11714if test -n "$RANLIB"; then
11715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11716$as_echo "$RANLIB" >&6; }
11717else
11718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720fi
11721
11722
11723fi
11724if test -z "$ac_cv_prog_RANLIB"; then
11725  ac_ct_RANLIB=$RANLIB
11726  # Extract the first word of "ranlib", so it can be a program name with args.
11727set dummy ranlib; ac_word=$2
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
11730if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  if test -n "$ac_ct_RANLIB"; then
11734  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11735else
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739  IFS=$as_save_IFS
11740  test -z "$as_dir" && as_dir=.
11741    for ac_exec_ext in '' $ac_executable_extensions; do
11742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743    ac_cv_prog_ac_ct_RANLIB="ranlib"
11744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745    break 2
11746  fi
11747done
11748  done
11749IFS=$as_save_IFS
11750
11751fi
11752fi
11753ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11754if test -n "$ac_ct_RANLIB"; then
11755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11756$as_echo "$ac_ct_RANLIB" >&6; }
11757else
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761
11762  if test "x$ac_ct_RANLIB" = x; then
11763    RANLIB=":"
11764  else
11765    case $cross_compiling:$ac_tool_warned in
11766yes:)
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11769ac_tool_warned=yes ;;
11770esac
11771    RANLIB=$ac_ct_RANLIB
11772  fi
11773else
11774  RANLIB="$ac_cv_prog_RANLIB"
11775fi
11776
11777test -z "$RANLIB" && RANLIB=:
11778
11779
11780
11781
11782
11783
11784# Determine commands to create old-style static archives.
11785old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11786old_postinstall_cmds='chmod 644 $oldlib'
11787old_postuninstall_cmds=
11788
11789if test -n "$RANLIB"; then
11790  case $host_os in
11791  openbsd*)
11792    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11793    ;;
11794  *)
11795    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11796    ;;
11797  esac
11798  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11799fi
11800
11801case $host_os in
11802  darwin*)
11803    lock_old_archive_extraction=yes ;;
11804  *)
11805    lock_old_archive_extraction=no ;;
11806esac
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846# If no C compiler was specified, use CC.
11847LTCC=${LTCC-"$CC"}
11848
11849# If no C compiler flags were specified, use CFLAGS.
11850LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11851
11852# Allow CC to be a program name with arguments.
11853compiler=$CC
11854
11855
11856# Check for command to grab the raw symbol name followed by C symbol from nm.
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11858$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11859if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862
11863# These are sane defaults that work on at least a few old systems.
11864# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11865
11866# Character class describing NM global symbol codes.
11867symcode='[BCDEGRST]'
11868
11869# Regexp to match symbols that can be accessed directly from C.
11870sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11871
11872# Define system-specific variables.
11873case $host_os in
11874aix*)
11875  symcode='[BCDT]'
11876  ;;
11877cygwin* | mingw* | pw32* | cegcc*)
11878  symcode='[ABCDGISTW]'
11879  ;;
11880hpux*)
11881  if test "$host_cpu" = ia64; then
11882    symcode='[ABCDEGRST]'
11883  fi
11884  ;;
11885irix* | nonstopux*)
11886  symcode='[BCDEGRST]'
11887  ;;
11888osf*)
11889  symcode='[BCDEGQRST]'
11890  ;;
11891solaris*)
11892  symcode='[BDRT]'
11893  ;;
11894sco3.2v5*)
11895  symcode='[DT]'
11896  ;;
11897sysv4.2uw2*)
11898  symcode='[DT]'
11899  ;;
11900sysv5* | sco5v6* | unixware* | OpenUNIX*)
11901  symcode='[ABDT]'
11902  ;;
11903sysv4)
11904  symcode='[DFNSTU]'
11905  ;;
11906esac
11907
11908# If we're using GNU nm, then use its standard symbol codes.
11909case `$NM -V 2>&1` in
11910*GNU* | *'with BFD'*)
11911  symcode='[ABCDGIRSTW]' ;;
11912esac
11913
11914# Transform an extracted symbol line into a proper C declaration.
11915# Some systems (esp. on ia64) link data and code symbols differently,
11916# so use this general approach.
11917lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11918
11919# Transform an extracted symbol line into symbol name and symbol address
11920lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11921lt_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'"
11922
11923# Handle CRLF in mingw tool chain
11924opt_cr=
11925case $build_os in
11926mingw*)
11927  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11928  ;;
11929esac
11930
11931# Try without a prefix underscore, then with it.
11932for ac_symprfx in "" "_"; do
11933
11934  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11935  symxfrm="\\1 $ac_symprfx\\2 \\2"
11936
11937  # Write the raw and C identifiers.
11938  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11939    # Fake it for dumpbin and say T for any non-static function
11940    # and D for any global variable.
11941    # Also find C++ and __fastcall symbols from MSVC++,
11942    # which start with @ or ?.
11943    lt_cv_sys_global_symbol_pipe="$AWK '"\
11944"     {last_section=section; section=\$ 3};"\
11945"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11946"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11947"     \$ 0!~/External *\|/{next};"\
11948"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11949"     {if(hide[section]) next};"\
11950"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11951"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11952"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11953"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11954"     ' prfx=^$ac_symprfx"
11955  else
11956    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11957  fi
11958  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11959
11960  # Check to see that the pipe works correctly.
11961  pipe_works=no
11962
11963  rm -f conftest*
11964  cat > conftest.$ac_ext <<_LT_EOF
11965#ifdef __cplusplus
11966extern "C" {
11967#endif
11968char nm_test_var;
11969void nm_test_func(void);
11970void nm_test_func(void){}
11971#ifdef __cplusplus
11972}
11973#endif
11974int main(){nm_test_var='a';nm_test_func();return(0);}
11975_LT_EOF
11976
11977  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11978  (eval $ac_compile) 2>&5
11979  ac_status=$?
11980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11981  test $ac_status = 0; }; then
11982    # Now try to grab the symbols.
11983    nlist=conftest.nm
11984    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11985  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11986  ac_status=$?
11987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988  test $ac_status = 0; } && test -s "$nlist"; then
11989      # Try sorting and uniquifying the output.
11990      if sort "$nlist" | uniq > "$nlist"T; then
11991	mv -f "$nlist"T "$nlist"
11992      else
11993	rm -f "$nlist"T
11994      fi
11995
11996      # Make sure that we snagged all the symbols we need.
11997      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11998	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11999	  cat <<_LT_EOF > conftest.$ac_ext
12000/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12001#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12002/* DATA imports from DLLs on WIN32 con't be const, because runtime
12003   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12004# define LT_DLSYM_CONST
12005#elif defined(__osf__)
12006/* This system does not cope well with relocations in const data.  */
12007# define LT_DLSYM_CONST
12008#else
12009# define LT_DLSYM_CONST const
12010#endif
12011
12012#ifdef __cplusplus
12013extern "C" {
12014#endif
12015
12016_LT_EOF
12017	  # Now generate the symbol file.
12018	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12019
12020	  cat <<_LT_EOF >> conftest.$ac_ext
12021
12022/* The mapping between symbol names and symbols.  */
12023LT_DLSYM_CONST struct {
12024  const char *name;
12025  void       *address;
12026}
12027lt__PROGRAM__LTX_preloaded_symbols[] =
12028{
12029  { "@PROGRAM@", (void *) 0 },
12030_LT_EOF
12031	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12032	  cat <<\_LT_EOF >> conftest.$ac_ext
12033  {0, (void *) 0}
12034};
12035
12036/* This works around a problem in FreeBSD linker */
12037#ifdef FREEBSD_WORKAROUND
12038static const void *lt_preloaded_setup() {
12039  return lt__PROGRAM__LTX_preloaded_symbols;
12040}
12041#endif
12042
12043#ifdef __cplusplus
12044}
12045#endif
12046_LT_EOF
12047	  # Now try linking the two files.
12048	  mv conftest.$ac_objext conftstm.$ac_objext
12049	  lt_globsym_save_LIBS=$LIBS
12050	  lt_globsym_save_CFLAGS=$CFLAGS
12051	  LIBS="conftstm.$ac_objext"
12052	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12053	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12054  (eval $ac_link) 2>&5
12055  ac_status=$?
12056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12058	    pipe_works=yes
12059	  fi
12060	  LIBS=$lt_globsym_save_LIBS
12061	  CFLAGS=$lt_globsym_save_CFLAGS
12062	else
12063	  echo "cannot find nm_test_func in $nlist" >&5
12064	fi
12065      else
12066	echo "cannot find nm_test_var in $nlist" >&5
12067      fi
12068    else
12069      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12070    fi
12071  else
12072    echo "$progname: failed program was:" >&5
12073    cat conftest.$ac_ext >&5
12074  fi
12075  rm -rf conftest* conftst*
12076
12077  # Do not use the global_symbol_pipe unless it works.
12078  if test "$pipe_works" = yes; then
12079    break
12080  else
12081    lt_cv_sys_global_symbol_pipe=
12082  fi
12083done
12084
12085fi
12086
12087if test -z "$lt_cv_sys_global_symbol_pipe"; then
12088  lt_cv_sys_global_symbol_to_cdecl=
12089fi
12090if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12092$as_echo "failed" >&6; }
12093else
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12095$as_echo "ok" >&6; }
12096fi
12097
12098# Response file support.
12099if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12100  nm_file_list_spec='@'
12101elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12102  nm_file_list_spec='@'
12103fi
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12132$as_echo_n "checking for sysroot... " >&6; }
12133
12134# Check whether --with-sysroot was given.
12135if test "${with_sysroot+set}" = set; then :
12136  withval=$with_sysroot;
12137else
12138  with_sysroot=no
12139fi
12140
12141
12142lt_sysroot=
12143case ${with_sysroot} in #(
12144 yes)
12145   if test "$GCC" = yes; then
12146     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12147   fi
12148   ;; #(
12149 /*)
12150   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12151   ;; #(
12152 no|'')
12153   ;; #(
12154 *)
12155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12156$as_echo "${with_sysroot}" >&6; }
12157   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12158   ;;
12159esac
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12162$as_echo "${lt_sysroot:-no}" >&6; }
12163
12164
12165
12166
12167
12168# Check whether --enable-libtool-lock was given.
12169if test "${enable_libtool_lock+set}" = set; then :
12170  enableval=$enable_libtool_lock;
12171fi
12172
12173test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12174
12175# Some flags need to be propagated to the compiler or linker for good
12176# libtool support.
12177case $host in
12178ia64-*-hpux*)
12179  # Find out which ABI we are using.
12180  echo 'int i;' > conftest.$ac_ext
12181  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12182  (eval $ac_compile) 2>&5
12183  ac_status=$?
12184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185  test $ac_status = 0; }; then
12186    case `/usr/bin/file conftest.$ac_objext` in
12187      *ELF-32*)
12188	HPUX_IA64_MODE="32"
12189	;;
12190      *ELF-64*)
12191	HPUX_IA64_MODE="64"
12192	;;
12193    esac
12194  fi
12195  rm -rf conftest*
12196  ;;
12197*-*-irix6*)
12198  # Find out which ABI we are using.
12199  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12201  (eval $ac_compile) 2>&5
12202  ac_status=$?
12203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204  test $ac_status = 0; }; then
12205    if test "$lt_cv_prog_gnu_ld" = yes; then
12206      case `/usr/bin/file conftest.$ac_objext` in
12207	*32-bit*)
12208	  LD="${LD-ld} -melf32bsmip"
12209	  ;;
12210	*N32*)
12211	  LD="${LD-ld} -melf32bmipn32"
12212	  ;;
12213	*64-bit*)
12214	  LD="${LD-ld} -melf64bmip"
12215	;;
12216      esac
12217    else
12218      case `/usr/bin/file conftest.$ac_objext` in
12219	*32-bit*)
12220	  LD="${LD-ld} -32"
12221	  ;;
12222	*N32*)
12223	  LD="${LD-ld} -n32"
12224	  ;;
12225	*64-bit*)
12226	  LD="${LD-ld} -64"
12227	  ;;
12228      esac
12229    fi
12230  fi
12231  rm -rf conftest*
12232  ;;
12233
12234x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12235s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12236  # Find out which ABI we are using.
12237  echo 'int i;' > conftest.$ac_ext
12238  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12239  (eval $ac_compile) 2>&5
12240  ac_status=$?
12241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242  test $ac_status = 0; }; then
12243    case `/usr/bin/file conftest.o` in
12244      *32-bit*)
12245	case $host in
12246	  x86_64-*kfreebsd*-gnu)
12247	    LD="${LD-ld} -m elf_i386_fbsd"
12248	    ;;
12249	  x86_64-*linux*)
12250	    LD="${LD-ld} -m elf_i386"
12251	    ;;
12252	  ppc64-*linux*|powerpc64-*linux*)
12253	    LD="${LD-ld} -m elf32ppclinux"
12254	    ;;
12255	  s390x-*linux*)
12256	    LD="${LD-ld} -m elf_s390"
12257	    ;;
12258	  sparc64-*linux*)
12259	    LD="${LD-ld} -m elf32_sparc"
12260	    ;;
12261	esac
12262	;;
12263      *64-bit*)
12264	case $host in
12265	  x86_64-*kfreebsd*-gnu)
12266	    LD="${LD-ld} -m elf_x86_64_fbsd"
12267	    ;;
12268	  x86_64-*linux*)
12269	    LD="${LD-ld} -m elf_x86_64"
12270	    ;;
12271	  ppc*-*linux*|powerpc*-*linux*)
12272	    LD="${LD-ld} -m elf64ppc"
12273	    ;;
12274	  s390*-*linux*|s390*-*tpf*)
12275	    LD="${LD-ld} -m elf64_s390"
12276	    ;;
12277	  sparc*-*linux*)
12278	    LD="${LD-ld} -m elf64_sparc"
12279	    ;;
12280	esac
12281	;;
12282    esac
12283  fi
12284  rm -rf conftest*
12285  ;;
12286
12287*-*-sco3.2v5*)
12288  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12289  SAVE_CFLAGS="$CFLAGS"
12290  CFLAGS="$CFLAGS -belf"
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12292$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12293if ${lt_cv_cc_needs_belf+:} false; then :
12294  $as_echo_n "(cached) " >&6
12295else
12296  ac_ext=c
12297ac_cpp='$CPP $CPPFLAGS'
12298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300ac_compiler_gnu=$ac_cv_c_compiler_gnu
12301
12302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h.  */
12304
12305int
12306main ()
12307{
12308
12309  ;
12310  return 0;
12311}
12312_ACEOF
12313if ac_fn_c_try_link "$LINENO"; then :
12314  lt_cv_cc_needs_belf=yes
12315else
12316  lt_cv_cc_needs_belf=no
12317fi
12318rm -f core conftest.err conftest.$ac_objext \
12319    conftest$ac_exeext conftest.$ac_ext
12320     ac_ext=c
12321ac_cpp='$CPP $CPPFLAGS'
12322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325
12326fi
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12328$as_echo "$lt_cv_cc_needs_belf" >&6; }
12329  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12330    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12331    CFLAGS="$SAVE_CFLAGS"
12332  fi
12333  ;;
12334*-*solaris*)
12335  # Find out which ABI we are using.
12336  echo 'int i;' > conftest.$ac_ext
12337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12338  (eval $ac_compile) 2>&5
12339  ac_status=$?
12340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341  test $ac_status = 0; }; then
12342    case `/usr/bin/file conftest.o` in
12343    *64-bit*)
12344      case $lt_cv_prog_gnu_ld in
12345      yes*)
12346        case $host in
12347        i?86-*-solaris*)
12348          LD="${LD-ld} -m elf_x86_64"
12349          ;;
12350        sparc*-*-solaris*)
12351          LD="${LD-ld} -m elf64_sparc"
12352          ;;
12353        esac
12354        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12355        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12356          LD="${LD-ld}_sol2"
12357        fi
12358        ;;
12359      *)
12360	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12361	  LD="${LD-ld} -64"
12362	fi
12363	;;
12364      esac
12365      ;;
12366    esac
12367  fi
12368  rm -rf conftest*
12369  ;;
12370esac
12371
12372need_locks="$enable_libtool_lock"
12373
12374if test -n "$ac_tool_prefix"; then
12375  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12376set dummy ${ac_tool_prefix}mt; ac_word=$2
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378$as_echo_n "checking for $ac_word... " >&6; }
12379if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  if test -n "$MANIFEST_TOOL"; then
12383  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12384else
12385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388  IFS=$as_save_IFS
12389  test -z "$as_dir" && as_dir=.
12390    for ac_exec_ext in '' $ac_executable_extensions; do
12391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394    break 2
12395  fi
12396done
12397  done
12398IFS=$as_save_IFS
12399
12400fi
12401fi
12402MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12403if test -n "$MANIFEST_TOOL"; then
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12405$as_echo "$MANIFEST_TOOL" >&6; }
12406else
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408$as_echo "no" >&6; }
12409fi
12410
12411
12412fi
12413if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12414  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12415  # Extract the first word of "mt", so it can be a program name with args.
12416set dummy mt; ac_word=$2
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418$as_echo_n "checking for $ac_word... " >&6; }
12419if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422  if test -n "$ac_ct_MANIFEST_TOOL"; then
12423  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12424else
12425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426for as_dir in $PATH
12427do
12428  IFS=$as_save_IFS
12429  test -z "$as_dir" && as_dir=.
12430    for ac_exec_ext in '' $ac_executable_extensions; do
12431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12432    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434    break 2
12435  fi
12436done
12437  done
12438IFS=$as_save_IFS
12439
12440fi
12441fi
12442ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12443if test -n "$ac_ct_MANIFEST_TOOL"; then
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12445$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12446else
12447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
12449fi
12450
12451  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12452    MANIFEST_TOOL=":"
12453  else
12454    case $cross_compiling:$ac_tool_warned in
12455yes:)
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12458ac_tool_warned=yes ;;
12459esac
12460    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12461  fi
12462else
12463  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12464fi
12465
12466test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12468$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12469if ${lt_cv_path_mainfest_tool+:} false; then :
12470  $as_echo_n "(cached) " >&6
12471else
12472  lt_cv_path_mainfest_tool=no
12473  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12474  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12475  cat conftest.err >&5
12476  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12477    lt_cv_path_mainfest_tool=yes
12478  fi
12479  rm -f conftest*
12480fi
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12482$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12483if test "x$lt_cv_path_mainfest_tool" != xyes; then
12484  MANIFEST_TOOL=:
12485fi
12486
12487
12488
12489
12490
12491
12492  case $host_os in
12493    rhapsody* | darwin*)
12494    if test -n "$ac_tool_prefix"; then
12495  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12496set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
12499if ${ac_cv_prog_DSYMUTIL+:} false; then :
12500  $as_echo_n "(cached) " >&6
12501else
12502  if test -n "$DSYMUTIL"; then
12503  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12504else
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508  IFS=$as_save_IFS
12509  test -z "$as_dir" && as_dir=.
12510    for ac_exec_ext in '' $ac_executable_extensions; do
12511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12512    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514    break 2
12515  fi
12516done
12517  done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522DSYMUTIL=$ac_cv_prog_DSYMUTIL
12523if test -n "$DSYMUTIL"; then
12524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12525$as_echo "$DSYMUTIL" >&6; }
12526else
12527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531
12532fi
12533if test -z "$ac_cv_prog_DSYMUTIL"; then
12534  ac_ct_DSYMUTIL=$DSYMUTIL
12535  # Extract the first word of "dsymutil", so it can be a program name with args.
12536set dummy dsymutil; ac_word=$2
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
12539if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12540  $as_echo_n "(cached) " >&6
12541else
12542  if test -n "$ac_ct_DSYMUTIL"; then
12543  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548  IFS=$as_save_IFS
12549  test -z "$as_dir" && as_dir=.
12550    for ac_exec_ext in '' $ac_executable_extensions; do
12551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554    break 2
12555  fi
12556done
12557  done
12558IFS=$as_save_IFS
12559
12560fi
12561fi
12562ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12563if test -n "$ac_ct_DSYMUTIL"; then
12564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12565$as_echo "$ac_ct_DSYMUTIL" >&6; }
12566else
12567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
12569fi
12570
12571  if test "x$ac_ct_DSYMUTIL" = x; then
12572    DSYMUTIL=":"
12573  else
12574    case $cross_compiling:$ac_tool_warned in
12575yes:)
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12578ac_tool_warned=yes ;;
12579esac
12580    DSYMUTIL=$ac_ct_DSYMUTIL
12581  fi
12582else
12583  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12584fi
12585
12586    if test -n "$ac_tool_prefix"; then
12587  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12588set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590$as_echo_n "checking for $ac_word... " >&6; }
12591if ${ac_cv_prog_NMEDIT+:} false; then :
12592  $as_echo_n "(cached) " >&6
12593else
12594  if test -n "$NMEDIT"; then
12595  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12596else
12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
12600  IFS=$as_save_IFS
12601  test -z "$as_dir" && as_dir=.
12602    for ac_exec_ext in '' $ac_executable_extensions; do
12603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606    break 2
12607  fi
12608done
12609  done
12610IFS=$as_save_IFS
12611
12612fi
12613fi
12614NMEDIT=$ac_cv_prog_NMEDIT
12615if test -n "$NMEDIT"; then
12616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12617$as_echo "$NMEDIT" >&6; }
12618else
12619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623
12624fi
12625if test -z "$ac_cv_prog_NMEDIT"; then
12626  ac_ct_NMEDIT=$NMEDIT
12627  # Extract the first word of "nmedit", so it can be a program name with args.
12628set dummy nmedit; ac_word=$2
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
12631if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12632  $as_echo_n "(cached) " >&6
12633else
12634  if test -n "$ac_ct_NMEDIT"; then
12635  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12636else
12637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640  IFS=$as_save_IFS
12641  test -z "$as_dir" && as_dir=.
12642    for ac_exec_ext in '' $ac_executable_extensions; do
12643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644    ac_cv_prog_ac_ct_NMEDIT="nmedit"
12645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646    break 2
12647  fi
12648done
12649  done
12650IFS=$as_save_IFS
12651
12652fi
12653fi
12654ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12655if test -n "$ac_ct_NMEDIT"; then
12656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12657$as_echo "$ac_ct_NMEDIT" >&6; }
12658else
12659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660$as_echo "no" >&6; }
12661fi
12662
12663  if test "x$ac_ct_NMEDIT" = x; then
12664    NMEDIT=":"
12665  else
12666    case $cross_compiling:$ac_tool_warned in
12667yes:)
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12670ac_tool_warned=yes ;;
12671esac
12672    NMEDIT=$ac_ct_NMEDIT
12673  fi
12674else
12675  NMEDIT="$ac_cv_prog_NMEDIT"
12676fi
12677
12678    if test -n "$ac_tool_prefix"; then
12679  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12680set dummy ${ac_tool_prefix}lipo; ac_word=$2
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
12683if ${ac_cv_prog_LIPO+:} false; then :
12684  $as_echo_n "(cached) " >&6
12685else
12686  if test -n "$LIPO"; then
12687  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692  IFS=$as_save_IFS
12693  test -z "$as_dir" && as_dir=.
12694    for ac_exec_ext in '' $ac_executable_extensions; do
12695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12696    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698    break 2
12699  fi
12700done
12701  done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706LIPO=$ac_cv_prog_LIPO
12707if test -n "$LIPO"; then
12708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12709$as_echo "$LIPO" >&6; }
12710else
12711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715
12716fi
12717if test -z "$ac_cv_prog_LIPO"; then
12718  ac_ct_LIPO=$LIPO
12719  # Extract the first word of "lipo", so it can be a program name with args.
12720set dummy lipo; ac_word=$2
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
12723if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12724  $as_echo_n "(cached) " >&6
12725else
12726  if test -n "$ac_ct_LIPO"; then
12727  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12728else
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732  IFS=$as_save_IFS
12733  test -z "$as_dir" && as_dir=.
12734    for ac_exec_ext in '' $ac_executable_extensions; do
12735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12736    ac_cv_prog_ac_ct_LIPO="lipo"
12737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738    break 2
12739  fi
12740done
12741  done
12742IFS=$as_save_IFS
12743
12744fi
12745fi
12746ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12747if test -n "$ac_ct_LIPO"; then
12748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12749$as_echo "$ac_ct_LIPO" >&6; }
12750else
12751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
12753fi
12754
12755  if test "x$ac_ct_LIPO" = x; then
12756    LIPO=":"
12757  else
12758    case $cross_compiling:$ac_tool_warned in
12759yes:)
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12762ac_tool_warned=yes ;;
12763esac
12764    LIPO=$ac_ct_LIPO
12765  fi
12766else
12767  LIPO="$ac_cv_prog_LIPO"
12768fi
12769
12770    if test -n "$ac_tool_prefix"; then
12771  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12772set dummy ${ac_tool_prefix}otool; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if ${ac_cv_prog_OTOOL+:} false; then :
12776  $as_echo_n "(cached) " >&6
12777else
12778  if test -n "$OTOOL"; then
12779  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784  IFS=$as_save_IFS
12785  test -z "$as_dir" && as_dir=.
12786    for ac_exec_ext in '' $ac_executable_extensions; do
12787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790    break 2
12791  fi
12792done
12793  done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798OTOOL=$ac_cv_prog_OTOOL
12799if test -n "$OTOOL"; then
12800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12801$as_echo "$OTOOL" >&6; }
12802else
12803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808fi
12809if test -z "$ac_cv_prog_OTOOL"; then
12810  ac_ct_OTOOL=$OTOOL
12811  # Extract the first word of "otool", so it can be a program name with args.
12812set dummy otool; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12816  $as_echo_n "(cached) " >&6
12817else
12818  if test -n "$ac_ct_OTOOL"; then
12819  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824  IFS=$as_save_IFS
12825  test -z "$as_dir" && as_dir=.
12826    for ac_exec_ext in '' $ac_executable_extensions; do
12827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828    ac_cv_prog_ac_ct_OTOOL="otool"
12829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830    break 2
12831  fi
12832done
12833  done
12834IFS=$as_save_IFS
12835
12836fi
12837fi
12838ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12839if test -n "$ac_ct_OTOOL"; then
12840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12841$as_echo "$ac_ct_OTOOL" >&6; }
12842else
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847  if test "x$ac_ct_OTOOL" = x; then
12848    OTOOL=":"
12849  else
12850    case $cross_compiling:$ac_tool_warned in
12851yes:)
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12854ac_tool_warned=yes ;;
12855esac
12856    OTOOL=$ac_ct_OTOOL
12857  fi
12858else
12859  OTOOL="$ac_cv_prog_OTOOL"
12860fi
12861
12862    if test -n "$ac_tool_prefix"; then
12863  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12864set dummy ${ac_tool_prefix}otool64; ac_word=$2
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
12867if ${ac_cv_prog_OTOOL64+:} false; then :
12868  $as_echo_n "(cached) " >&6
12869else
12870  if test -n "$OTOOL64"; then
12871  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12872else
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876  IFS=$as_save_IFS
12877  test -z "$as_dir" && as_dir=.
12878    for ac_exec_ext in '' $ac_executable_extensions; do
12879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12880    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882    break 2
12883  fi
12884done
12885  done
12886IFS=$as_save_IFS
12887
12888fi
12889fi
12890OTOOL64=$ac_cv_prog_OTOOL64
12891if test -n "$OTOOL64"; then
12892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12893$as_echo "$OTOOL64" >&6; }
12894else
12895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896$as_echo "no" >&6; }
12897fi
12898
12899
12900fi
12901if test -z "$ac_cv_prog_OTOOL64"; then
12902  ac_ct_OTOOL64=$OTOOL64
12903  # Extract the first word of "otool64", so it can be a program name with args.
12904set dummy otool64; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
12907if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  if test -n "$ac_ct_OTOOL64"; then
12911  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916  IFS=$as_save_IFS
12917  test -z "$as_dir" && as_dir=.
12918    for ac_exec_ext in '' $ac_executable_extensions; do
12919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920    ac_cv_prog_ac_ct_OTOOL64="otool64"
12921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922    break 2
12923  fi
12924done
12925  done
12926IFS=$as_save_IFS
12927
12928fi
12929fi
12930ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12931if test -n "$ac_ct_OTOOL64"; then
12932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12933$as_echo "$ac_ct_OTOOL64" >&6; }
12934else
12935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
12937fi
12938
12939  if test "x$ac_ct_OTOOL64" = x; then
12940    OTOOL64=":"
12941  else
12942    case $cross_compiling:$ac_tool_warned in
12943yes:)
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12946ac_tool_warned=yes ;;
12947esac
12948    OTOOL64=$ac_ct_OTOOL64
12949  fi
12950else
12951  OTOOL64="$ac_cv_prog_OTOOL64"
12952fi
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12981$as_echo_n "checking for -single_module linker flag... " >&6; }
12982if ${lt_cv_apple_cc_single_mod+:} false; then :
12983  $as_echo_n "(cached) " >&6
12984else
12985  lt_cv_apple_cc_single_mod=no
12986      if test -z "${LT_MULTI_MODULE}"; then
12987	# By default we will add the -single_module flag. You can override
12988	# by either setting the environment variable LT_MULTI_MODULE
12989	# non-empty at configure time, or by adding -multi_module to the
12990	# link flags.
12991	rm -rf libconftest.dylib*
12992	echo "int foo(void){return 1;}" > conftest.c
12993	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12994-dynamiclib -Wl,-single_module conftest.c" >&5
12995	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12996	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12997        _lt_result=$?
12998	# If there is a non-empty error log, and "single_module"
12999	# appears in it, assume the flag caused a linker warning
13000        if test -s conftest.err && $GREP single_module conftest.err; then
13001	  cat conftest.err >&5
13002	# Otherwise, if the output was created with a 0 exit code from
13003	# the compiler, it worked.
13004	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13005	  lt_cv_apple_cc_single_mod=yes
13006	else
13007	  cat conftest.err >&5
13008	fi
13009	rm -rf libconftest.dylib*
13010	rm -f conftest.*
13011      fi
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13014$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13015
13016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13017$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13018if ${lt_cv_ld_exported_symbols_list+:} false; then :
13019  $as_echo_n "(cached) " >&6
13020else
13021  lt_cv_ld_exported_symbols_list=no
13022      save_LDFLAGS=$LDFLAGS
13023      echo "_main" > conftest.sym
13024      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13025      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h.  */
13027
13028int
13029main ()
13030{
13031
13032  ;
13033  return 0;
13034}
13035_ACEOF
13036if ac_fn_c_try_link "$LINENO"; then :
13037  lt_cv_ld_exported_symbols_list=yes
13038else
13039  lt_cv_ld_exported_symbols_list=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext \
13042    conftest$ac_exeext conftest.$ac_ext
13043	LDFLAGS="$save_LDFLAGS"
13044
13045fi
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13047$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13048
13049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13050$as_echo_n "checking for -force_load linker flag... " >&6; }
13051if ${lt_cv_ld_force_load+:} false; then :
13052  $as_echo_n "(cached) " >&6
13053else
13054  lt_cv_ld_force_load=no
13055      cat > conftest.c << _LT_EOF
13056int forced_loaded() { return 2;}
13057_LT_EOF
13058      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13059      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13060      echo "$AR cru libconftest.a conftest.o" >&5
13061      $AR cru libconftest.a conftest.o 2>&5
13062      echo "$RANLIB libconftest.a" >&5
13063      $RANLIB libconftest.a 2>&5
13064      cat > conftest.c << _LT_EOF
13065int main() { return 0;}
13066_LT_EOF
13067      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13068      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13069      _lt_result=$?
13070      if test -s conftest.err && $GREP force_load conftest.err; then
13071	cat conftest.err >&5
13072      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13073	lt_cv_ld_force_load=yes
13074      else
13075	cat conftest.err >&5
13076      fi
13077        rm -f conftest.err libconftest.a conftest conftest.c
13078        rm -rf conftest.dSYM
13079
13080fi
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13082$as_echo "$lt_cv_ld_force_load" >&6; }
13083    case $host_os in
13084    rhapsody* | darwin1.[012])
13085      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13086    darwin1.*)
13087      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13088    darwin*) # darwin 5.x on
13089      # if running on 10.5 or later, the deployment target defaults
13090      # to the OS version, if on x86, and 10.4, the deployment
13091      # target defaults to 10.4. Don't you love it?
13092      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13093	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13094	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13095	10.[012]*)
13096	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13097	10.*)
13098	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13099      esac
13100    ;;
13101  esac
13102    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13103      _lt_dar_single_mod='$single_module'
13104    fi
13105    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13106      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13107    else
13108      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13109    fi
13110    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13111      _lt_dsymutil='~$DSYMUTIL $lib || :'
13112    else
13113      _lt_dsymutil=
13114    fi
13115    ;;
13116  esac
13117
13118for ac_header in dlfcn.h
13119do :
13120  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13121"
13122if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13123  cat >>confdefs.h <<_ACEOF
13124#define HAVE_DLFCN_H 1
13125_ACEOF
13126
13127fi
13128
13129done
13130
13131
13132
13133
13134func_stripname_cnf ()
13135{
13136  case ${2} in
13137  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13138  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13139  esac
13140} # func_stripname_cnf
13141
13142
13143
13144
13145
13146# Set options
13147enable_win32_dll=yes
13148
13149case $host in
13150*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13151  if test -n "$ac_tool_prefix"; then
13152  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13153set dummy ${ac_tool_prefix}as; ac_word=$2
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155$as_echo_n "checking for $ac_word... " >&6; }
13156if ${ac_cv_prog_AS+:} false; then :
13157  $as_echo_n "(cached) " >&6
13158else
13159  if test -n "$AS"; then
13160  ac_cv_prog_AS="$AS" # Let the user override the test.
13161else
13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165  IFS=$as_save_IFS
13166  test -z "$as_dir" && as_dir=.
13167    for ac_exec_ext in '' $ac_executable_extensions; do
13168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169    ac_cv_prog_AS="${ac_tool_prefix}as"
13170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171    break 2
13172  fi
13173done
13174  done
13175IFS=$as_save_IFS
13176
13177fi
13178fi
13179AS=$ac_cv_prog_AS
13180if test -n "$AS"; then
13181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13182$as_echo "$AS" >&6; }
13183else
13184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185$as_echo "no" >&6; }
13186fi
13187
13188
13189fi
13190if test -z "$ac_cv_prog_AS"; then
13191  ac_ct_AS=$AS
13192  # Extract the first word of "as", so it can be a program name with args.
13193set dummy as; ac_word=$2
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195$as_echo_n "checking for $ac_word... " >&6; }
13196if ${ac_cv_prog_ac_ct_AS+:} false; then :
13197  $as_echo_n "(cached) " >&6
13198else
13199  if test -n "$ac_ct_AS"; then
13200  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13201else
13202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203for as_dir in $PATH
13204do
13205  IFS=$as_save_IFS
13206  test -z "$as_dir" && as_dir=.
13207    for ac_exec_ext in '' $ac_executable_extensions; do
13208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209    ac_cv_prog_ac_ct_AS="as"
13210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211    break 2
13212  fi
13213done
13214  done
13215IFS=$as_save_IFS
13216
13217fi
13218fi
13219ac_ct_AS=$ac_cv_prog_ac_ct_AS
13220if test -n "$ac_ct_AS"; then
13221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13222$as_echo "$ac_ct_AS" >&6; }
13223else
13224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
13226fi
13227
13228  if test "x$ac_ct_AS" = x; then
13229    AS="false"
13230  else
13231    case $cross_compiling:$ac_tool_warned in
13232yes:)
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13235ac_tool_warned=yes ;;
13236esac
13237    AS=$ac_ct_AS
13238  fi
13239else
13240  AS="$ac_cv_prog_AS"
13241fi
13242
13243  if test -n "$ac_tool_prefix"; then
13244  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13245set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247$as_echo_n "checking for $ac_word... " >&6; }
13248if ${ac_cv_prog_DLLTOOL+:} false; then :
13249  $as_echo_n "(cached) " >&6
13250else
13251  if test -n "$DLLTOOL"; then
13252  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13253else
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257  IFS=$as_save_IFS
13258  test -z "$as_dir" && as_dir=.
13259    for ac_exec_ext in '' $ac_executable_extensions; do
13260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263    break 2
13264  fi
13265done
13266  done
13267IFS=$as_save_IFS
13268
13269fi
13270fi
13271DLLTOOL=$ac_cv_prog_DLLTOOL
13272if test -n "$DLLTOOL"; then
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13274$as_echo "$DLLTOOL" >&6; }
13275else
13276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278fi
13279
13280
13281fi
13282if test -z "$ac_cv_prog_DLLTOOL"; then
13283  ac_ct_DLLTOOL=$DLLTOOL
13284  # Extract the first word of "dlltool", so it can be a program name with args.
13285set dummy dlltool; ac_word=$2
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287$as_echo_n "checking for $ac_word... " >&6; }
13288if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290else
13291  if test -n "$ac_ct_DLLTOOL"; then
13292  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13293else
13294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295for as_dir in $PATH
13296do
13297  IFS=$as_save_IFS
13298  test -z "$as_dir" && as_dir=.
13299    for ac_exec_ext in '' $ac_executable_extensions; do
13300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13301    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303    break 2
13304  fi
13305done
13306  done
13307IFS=$as_save_IFS
13308
13309fi
13310fi
13311ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13312if test -n "$ac_ct_DLLTOOL"; then
13313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13314$as_echo "$ac_ct_DLLTOOL" >&6; }
13315else
13316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317$as_echo "no" >&6; }
13318fi
13319
13320  if test "x$ac_ct_DLLTOOL" = x; then
13321    DLLTOOL="false"
13322  else
13323    case $cross_compiling:$ac_tool_warned in
13324yes:)
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13327ac_tool_warned=yes ;;
13328esac
13329    DLLTOOL=$ac_ct_DLLTOOL
13330  fi
13331else
13332  DLLTOOL="$ac_cv_prog_DLLTOOL"
13333fi
13334
13335  if test -n "$ac_tool_prefix"; then
13336  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13337set dummy ${ac_tool_prefix}objdump; ac_word=$2
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339$as_echo_n "checking for $ac_word... " >&6; }
13340if ${ac_cv_prog_OBJDUMP+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  if test -n "$OBJDUMP"; then
13344  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13345else
13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349  IFS=$as_save_IFS
13350  test -z "$as_dir" && as_dir=.
13351    for ac_exec_ext in '' $ac_executable_extensions; do
13352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355    break 2
13356  fi
13357done
13358  done
13359IFS=$as_save_IFS
13360
13361fi
13362fi
13363OBJDUMP=$ac_cv_prog_OBJDUMP
13364if test -n "$OBJDUMP"; then
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13366$as_echo "$OBJDUMP" >&6; }
13367else
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370fi
13371
13372
13373fi
13374if test -z "$ac_cv_prog_OBJDUMP"; then
13375  ac_ct_OBJDUMP=$OBJDUMP
13376  # Extract the first word of "objdump", so it can be a program name with args.
13377set dummy objdump; ac_word=$2
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379$as_echo_n "checking for $ac_word... " >&6; }
13380if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13381  $as_echo_n "(cached) " >&6
13382else
13383  if test -n "$ac_ct_OBJDUMP"; then
13384  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13385else
13386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387for as_dir in $PATH
13388do
13389  IFS=$as_save_IFS
13390  test -z "$as_dir" && as_dir=.
13391    for ac_exec_ext in '' $ac_executable_extensions; do
13392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13393    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13395    break 2
13396  fi
13397done
13398  done
13399IFS=$as_save_IFS
13400
13401fi
13402fi
13403ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13404if test -n "$ac_ct_OBJDUMP"; then
13405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13406$as_echo "$ac_ct_OBJDUMP" >&6; }
13407else
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
13410fi
13411
13412  if test "x$ac_ct_OBJDUMP" = x; then
13413    OBJDUMP="false"
13414  else
13415    case $cross_compiling:$ac_tool_warned in
13416yes:)
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13419ac_tool_warned=yes ;;
13420esac
13421    OBJDUMP=$ac_ct_OBJDUMP
13422  fi
13423else
13424  OBJDUMP="$ac_cv_prog_OBJDUMP"
13425fi
13426
13427  ;;
13428esac
13429
13430test -z "$AS" && AS=as
13431
13432
13433
13434
13435
13436test -z "$DLLTOOL" && DLLTOOL=dlltool
13437
13438
13439
13440
13441
13442test -z "$OBJDUMP" && OBJDUMP=objdump
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452            # Check whether --enable-shared was given.
13453if test "${enable_shared+set}" = set; then :
13454  enableval=$enable_shared; p=${PACKAGE-default}
13455    case $enableval in
13456    yes) enable_shared=yes ;;
13457    no) enable_shared=no ;;
13458    *)
13459      enable_shared=no
13460      # Look at the argument we got.  We use all the common list separators.
13461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13462      for pkg in $enableval; do
13463	IFS="$lt_save_ifs"
13464	if test "X$pkg" = "X$p"; then
13465	  enable_shared=yes
13466	fi
13467      done
13468      IFS="$lt_save_ifs"
13469      ;;
13470    esac
13471else
13472  enable_shared=yes
13473fi
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483  # Check whether --enable-static was given.
13484if test "${enable_static+set}" = set; then :
13485  enableval=$enable_static; p=${PACKAGE-default}
13486    case $enableval in
13487    yes) enable_static=yes ;;
13488    no) enable_static=no ;;
13489    *)
13490     enable_static=no
13491      # Look at the argument we got.  We use all the common list separators.
13492      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13493      for pkg in $enableval; do
13494	IFS="$lt_save_ifs"
13495	if test "X$pkg" = "X$p"; then
13496	  enable_static=yes
13497	fi
13498      done
13499      IFS="$lt_save_ifs"
13500      ;;
13501    esac
13502else
13503  enable_static=yes
13504fi
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515# Check whether --with-pic was given.
13516if test "${with_pic+set}" = set; then :
13517  withval=$with_pic; lt_p=${PACKAGE-default}
13518    case $withval in
13519    yes|no) pic_mode=$withval ;;
13520    *)
13521      pic_mode=default
13522      # Look at the argument we got.  We use all the common list separators.
13523      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13524      for lt_pkg in $withval; do
13525	IFS="$lt_save_ifs"
13526	if test "X$lt_pkg" = "X$lt_p"; then
13527	  pic_mode=yes
13528	fi
13529      done
13530      IFS="$lt_save_ifs"
13531      ;;
13532    esac
13533else
13534  pic_mode=default
13535fi
13536
13537
13538test -z "$pic_mode" && pic_mode=default
13539
13540
13541
13542
13543
13544
13545
13546  # Check whether --enable-fast-install was given.
13547if test "${enable_fast_install+set}" = set; then :
13548  enableval=$enable_fast_install; p=${PACKAGE-default}
13549    case $enableval in
13550    yes) enable_fast_install=yes ;;
13551    no) enable_fast_install=no ;;
13552    *)
13553      enable_fast_install=no
13554      # Look at the argument we got.  We use all the common list separators.
13555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13556      for pkg in $enableval; do
13557	IFS="$lt_save_ifs"
13558	if test "X$pkg" = "X$p"; then
13559	  enable_fast_install=yes
13560	fi
13561      done
13562      IFS="$lt_save_ifs"
13563      ;;
13564    esac
13565else
13566  enable_fast_install=yes
13567fi
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579# This can be used to rebuild libtool when needed
13580LIBTOOL_DEPS="$ltmain"
13581
13582# Always use our own libtool.
13583LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614test -z "$LN_S" && LN_S="ln -s"
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629if test -n "${ZSH_VERSION+set}" ; then
13630   setopt NO_GLOB_SUBST
13631fi
13632
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13634$as_echo_n "checking for objdir... " >&6; }
13635if ${lt_cv_objdir+:} false; then :
13636  $as_echo_n "(cached) " >&6
13637else
13638  rm -f .libs 2>/dev/null
13639mkdir .libs 2>/dev/null
13640if test -d .libs; then
13641  lt_cv_objdir=.libs
13642else
13643  # MS-DOS does not allow filenames that begin with a dot.
13644  lt_cv_objdir=_libs
13645fi
13646rmdir .libs 2>/dev/null
13647fi
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13649$as_echo "$lt_cv_objdir" >&6; }
13650objdir=$lt_cv_objdir
13651
13652
13653
13654
13655
13656cat >>confdefs.h <<_ACEOF
13657#define LT_OBJDIR "$lt_cv_objdir/"
13658_ACEOF
13659
13660
13661
13662
13663case $host_os in
13664aix3*)
13665  # AIX sometimes has problems with the GCC collect2 program.  For some
13666  # reason, if we set the COLLECT_NAMES environment variable, the problems
13667  # vanish in a puff of smoke.
13668  if test "X${COLLECT_NAMES+set}" != Xset; then
13669    COLLECT_NAMES=
13670    export COLLECT_NAMES
13671  fi
13672  ;;
13673esac
13674
13675# Global variables:
13676ofile=libtool
13677can_build_shared=yes
13678
13679# All known linkers require a `.a' archive for static linking (except MSVC,
13680# which needs '.lib').
13681libext=a
13682
13683with_gnu_ld="$lt_cv_prog_gnu_ld"
13684
13685old_CC="$CC"
13686old_CFLAGS="$CFLAGS"
13687
13688# Set sane defaults for various variables
13689test -z "$CC" && CC=cc
13690test -z "$LTCC" && LTCC=$CC
13691test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13692test -z "$LD" && LD=ld
13693test -z "$ac_objext" && ac_objext=o
13694
13695for cc_temp in $compiler""; do
13696  case $cc_temp in
13697    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13698    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13699    \-*) ;;
13700    *) break;;
13701  esac
13702done
13703cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13704
13705
13706# Only perform the check for file, if the check method requires it
13707test -z "$MAGIC_CMD" && MAGIC_CMD=file
13708case $deplibs_check_method in
13709file_magic*)
13710  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13712$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13713if ${lt_cv_path_MAGIC_CMD+:} false; then :
13714  $as_echo_n "(cached) " >&6
13715else
13716  case $MAGIC_CMD in
13717[\\/*] |  ?:[\\/]*)
13718  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13719  ;;
13720*)
13721  lt_save_MAGIC_CMD="$MAGIC_CMD"
13722  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13723  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13724  for ac_dir in $ac_dummy; do
13725    IFS="$lt_save_ifs"
13726    test -z "$ac_dir" && ac_dir=.
13727    if test -f $ac_dir/${ac_tool_prefix}file; then
13728      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13729      if test -n "$file_magic_test_file"; then
13730	case $deplibs_check_method in
13731	"file_magic "*)
13732	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13733	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13734	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13735	    $EGREP "$file_magic_regex" > /dev/null; then
13736	    :
13737	  else
13738	    cat <<_LT_EOF 1>&2
13739
13740*** Warning: the command libtool uses to detect shared libraries,
13741*** $file_magic_cmd, produces output that libtool cannot recognize.
13742*** The result is that libtool may fail to recognize shared libraries
13743*** as such.  This will affect the creation of libtool libraries that
13744*** depend on shared libraries, but programs linked with such libtool
13745*** libraries will work regardless of this problem.  Nevertheless, you
13746*** may want to report the problem to your system manager and/or to
13747*** bug-libtool@gnu.org
13748
13749_LT_EOF
13750	  fi ;;
13751	esac
13752      fi
13753      break
13754    fi
13755  done
13756  IFS="$lt_save_ifs"
13757  MAGIC_CMD="$lt_save_MAGIC_CMD"
13758  ;;
13759esac
13760fi
13761
13762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13763if test -n "$MAGIC_CMD"; then
13764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13765$as_echo "$MAGIC_CMD" >&6; }
13766else
13767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768$as_echo "no" >&6; }
13769fi
13770
13771
13772
13773
13774
13775if test -z "$lt_cv_path_MAGIC_CMD"; then
13776  if test -n "$ac_tool_prefix"; then
13777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13778$as_echo_n "checking for file... " >&6; }
13779if ${lt_cv_path_MAGIC_CMD+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782  case $MAGIC_CMD in
13783[\\/*] |  ?:[\\/]*)
13784  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13785  ;;
13786*)
13787  lt_save_MAGIC_CMD="$MAGIC_CMD"
13788  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13789  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13790  for ac_dir in $ac_dummy; do
13791    IFS="$lt_save_ifs"
13792    test -z "$ac_dir" && ac_dir=.
13793    if test -f $ac_dir/file; then
13794      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13795      if test -n "$file_magic_test_file"; then
13796	case $deplibs_check_method in
13797	"file_magic "*)
13798	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13799	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13800	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13801	    $EGREP "$file_magic_regex" > /dev/null; then
13802	    :
13803	  else
13804	    cat <<_LT_EOF 1>&2
13805
13806*** Warning: the command libtool uses to detect shared libraries,
13807*** $file_magic_cmd, produces output that libtool cannot recognize.
13808*** The result is that libtool may fail to recognize shared libraries
13809*** as such.  This will affect the creation of libtool libraries that
13810*** depend on shared libraries, but programs linked with such libtool
13811*** libraries will work regardless of this problem.  Nevertheless, you
13812*** may want to report the problem to your system manager and/or to
13813*** bug-libtool@gnu.org
13814
13815_LT_EOF
13816	  fi ;;
13817	esac
13818      fi
13819      break
13820    fi
13821  done
13822  IFS="$lt_save_ifs"
13823  MAGIC_CMD="$lt_save_MAGIC_CMD"
13824  ;;
13825esac
13826fi
13827
13828MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13829if test -n "$MAGIC_CMD"; then
13830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13831$as_echo "$MAGIC_CMD" >&6; }
13832else
13833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834$as_echo "no" >&6; }
13835fi
13836
13837
13838  else
13839    MAGIC_CMD=:
13840  fi
13841fi
13842
13843  fi
13844  ;;
13845esac
13846
13847# Use C for the default configuration in the libtool script
13848
13849lt_save_CC="$CC"
13850ac_ext=c
13851ac_cpp='$CPP $CPPFLAGS'
13852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854ac_compiler_gnu=$ac_cv_c_compiler_gnu
13855
13856
13857# Source file extension for C test sources.
13858ac_ext=c
13859
13860# Object file extension for compiled C test sources.
13861objext=o
13862objext=$objext
13863
13864# Code to be used in simple compile tests
13865lt_simple_compile_test_code="int some_variable = 0;"
13866
13867# Code to be used in simple link tests
13868lt_simple_link_test_code='int main(){return(0);}'
13869
13870
13871
13872
13873
13874
13875
13876# If no C compiler was specified, use CC.
13877LTCC=${LTCC-"$CC"}
13878
13879# If no C compiler flags were specified, use CFLAGS.
13880LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13881
13882# Allow CC to be a program name with arguments.
13883compiler=$CC
13884
13885# Save the default compiler, since it gets overwritten when the other
13886# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13887compiler_DEFAULT=$CC
13888
13889# save warnings/boilerplate of simple test code
13890ac_outfile=conftest.$ac_objext
13891echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13893_lt_compiler_boilerplate=`cat conftest.err`
13894$RM conftest*
13895
13896ac_outfile=conftest.$ac_objext
13897echo "$lt_simple_link_test_code" >conftest.$ac_ext
13898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13899_lt_linker_boilerplate=`cat conftest.err`
13900$RM -r conftest*
13901
13902
13903## CAVEAT EMPTOR:
13904## There is no encapsulation within the following macros, do not change
13905## the running order or otherwise move them around unless you know exactly
13906## what you are doing...
13907if test -n "$compiler"; then
13908
13909lt_prog_compiler_no_builtin_flag=
13910
13911if test "$GCC" = yes; then
13912  case $cc_basename in
13913  nvcc*)
13914    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13915  *)
13916    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13917  esac
13918
13919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13920$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13921if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  lt_cv_prog_compiler_rtti_exceptions=no
13925   ac_outfile=conftest.$ac_objext
13926   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13927   lt_compiler_flag="-fno-rtti -fno-exceptions"
13928   # Insert the option either (1) after the last *FLAGS variable, or
13929   # (2) before a word containing "conftest.", or (3) at the end.
13930   # Note that $ac_compile itself does not contain backslashes and begins
13931   # with a dollar sign (not a hyphen), so the echo should work correctly.
13932   # The option is referenced via a variable to avoid confusing sed.
13933   lt_compile=`echo "$ac_compile" | $SED \
13934   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13936   -e 's:$: $lt_compiler_flag:'`
13937   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13938   (eval "$lt_compile" 2>conftest.err)
13939   ac_status=$?
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   if (exit $ac_status) && test -s "$ac_outfile"; then
13943     # The compiler can only warn and ignore the option if not recognized
13944     # So say no if there are warnings other than the usual output.
13945     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13946     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13947     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13948       lt_cv_prog_compiler_rtti_exceptions=yes
13949     fi
13950   fi
13951   $RM conftest*
13952
13953fi
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13955$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13956
13957if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13958    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13959else
13960    :
13961fi
13962
13963fi
13964
13965
13966
13967
13968
13969
13970  lt_prog_compiler_wl=
13971lt_prog_compiler_pic=
13972lt_prog_compiler_static=
13973
13974
13975  if test "$GCC" = yes; then
13976    lt_prog_compiler_wl='-Wl,'
13977    lt_prog_compiler_static='-static'
13978
13979    case $host_os in
13980      aix*)
13981      # All AIX code is PIC.
13982      if test "$host_cpu" = ia64; then
13983	# AIX 5 now supports IA64 processor
13984	lt_prog_compiler_static='-Bstatic'
13985      fi
13986      ;;
13987
13988    amigaos*)
13989      case $host_cpu in
13990      powerpc)
13991            # see comment about AmigaOS4 .so support
13992            lt_prog_compiler_pic='-fPIC'
13993        ;;
13994      m68k)
13995            # FIXME: we need at least 68020 code to build shared libraries, but
13996            # adding the `-m68020' flag to GCC prevents building anything better,
13997            # like `-m68040'.
13998            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13999        ;;
14000      esac
14001      ;;
14002
14003    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14004      # PIC is the default for these OSes.
14005      ;;
14006
14007    mingw* | cygwin* | pw32* | os2* | cegcc*)
14008      # This hack is so that the source file can tell whether it is being
14009      # built for inclusion in a dll (and should export symbols for example).
14010      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14011      # (--disable-auto-import) libraries
14012      lt_prog_compiler_pic='-DDLL_EXPORT'
14013      ;;
14014
14015    darwin* | rhapsody*)
14016      # PIC is the default on this platform
14017      # Common symbols not allowed in MH_DYLIB files
14018      lt_prog_compiler_pic='-fno-common'
14019      ;;
14020
14021    haiku*)
14022      # PIC is the default for Haiku.
14023      # The "-static" flag exists, but is broken.
14024      lt_prog_compiler_static=
14025      ;;
14026
14027    hpux*)
14028      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14029      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14030      # sets the default TLS model and affects inlining.
14031      case $host_cpu in
14032      hppa*64*)
14033	# +Z the default
14034	;;
14035      *)
14036	lt_prog_compiler_pic='-fPIC'
14037	;;
14038      esac
14039      ;;
14040
14041    interix[3-9]*)
14042      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14043      # Instead, we relocate shared libraries at runtime.
14044      ;;
14045
14046    msdosdjgpp*)
14047      # Just because we use GCC doesn't mean we suddenly get shared libraries
14048      # on systems that don't support them.
14049      lt_prog_compiler_can_build_shared=no
14050      enable_shared=no
14051      ;;
14052
14053    *nto* | *qnx*)
14054      # QNX uses GNU C++, but need to define -shared option too, otherwise
14055      # it will coredump.
14056      lt_prog_compiler_pic='-fPIC -shared'
14057      ;;
14058
14059    sysv4*MP*)
14060      if test -d /usr/nec; then
14061	lt_prog_compiler_pic=-Kconform_pic
14062      fi
14063      ;;
14064
14065    *)
14066      lt_prog_compiler_pic='-fPIC'
14067      ;;
14068    esac
14069
14070    case $cc_basename in
14071    nvcc*) # Cuda Compiler Driver 2.2
14072      lt_prog_compiler_wl='-Xlinker '
14073      if test -n "$lt_prog_compiler_pic"; then
14074        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14075      fi
14076      ;;
14077    esac
14078  else
14079    # PORTME Check for flag to pass linker flags through the system compiler.
14080    case $host_os in
14081    aix*)
14082      lt_prog_compiler_wl='-Wl,'
14083      if test "$host_cpu" = ia64; then
14084	# AIX 5 now supports IA64 processor
14085	lt_prog_compiler_static='-Bstatic'
14086      else
14087	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14088      fi
14089      ;;
14090
14091    mingw* | cygwin* | pw32* | os2* | cegcc*)
14092      # This hack is so that the source file can tell whether it is being
14093      # built for inclusion in a dll (and should export symbols for example).
14094      lt_prog_compiler_pic='-DDLL_EXPORT'
14095      ;;
14096
14097    hpux9* | hpux10* | hpux11*)
14098      lt_prog_compiler_wl='-Wl,'
14099      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14100      # not for PA HP-UX.
14101      case $host_cpu in
14102      hppa*64*|ia64*)
14103	# +Z the default
14104	;;
14105      *)
14106	lt_prog_compiler_pic='+Z'
14107	;;
14108      esac
14109      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14110      lt_prog_compiler_static='${wl}-a ${wl}archive'
14111      ;;
14112
14113    irix5* | irix6* | nonstopux*)
14114      lt_prog_compiler_wl='-Wl,'
14115      # PIC (with -KPIC) is the default.
14116      lt_prog_compiler_static='-non_shared'
14117      ;;
14118
14119    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14120      case $cc_basename in
14121      # old Intel for x86_64 which still supported -KPIC.
14122      ecc*)
14123	lt_prog_compiler_wl='-Wl,'
14124	lt_prog_compiler_pic='-KPIC'
14125	lt_prog_compiler_static='-static'
14126        ;;
14127      # icc used to be incompatible with GCC.
14128      # ICC 10 doesn't accept -KPIC any more.
14129      icc* | ifort*)
14130	lt_prog_compiler_wl='-Wl,'
14131	lt_prog_compiler_pic='-fPIC'
14132	lt_prog_compiler_static='-static'
14133        ;;
14134      # Lahey Fortran 8.1.
14135      lf95*)
14136	lt_prog_compiler_wl='-Wl,'
14137	lt_prog_compiler_pic='--shared'
14138	lt_prog_compiler_static='--static'
14139	;;
14140      nagfor*)
14141	# NAG Fortran compiler
14142	lt_prog_compiler_wl='-Wl,-Wl,,'
14143	lt_prog_compiler_pic='-PIC'
14144	lt_prog_compiler_static='-Bstatic'
14145	;;
14146      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14147        # Portland Group compilers (*not* the Pentium gcc compiler,
14148	# which looks to be a dead project)
14149	lt_prog_compiler_wl='-Wl,'
14150	lt_prog_compiler_pic='-fpic'
14151	lt_prog_compiler_static='-Bstatic'
14152        ;;
14153      ccc*)
14154        lt_prog_compiler_wl='-Wl,'
14155        # All Alpha code is PIC.
14156        lt_prog_compiler_static='-non_shared'
14157        ;;
14158      xl* | bgxl* | bgf* | mpixl*)
14159	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14160	lt_prog_compiler_wl='-Wl,'
14161	lt_prog_compiler_pic='-qpic'
14162	lt_prog_compiler_static='-qstaticlink'
14163	;;
14164      *)
14165	case `$CC -V 2>&1 | sed 5q` in
14166	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14167	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14168	  lt_prog_compiler_pic='-KPIC'
14169	  lt_prog_compiler_static='-Bstatic'
14170	  lt_prog_compiler_wl=''
14171	  ;;
14172	*Sun\ F* | *Sun*Fortran*)
14173	  lt_prog_compiler_pic='-KPIC'
14174	  lt_prog_compiler_static='-Bstatic'
14175	  lt_prog_compiler_wl='-Qoption ld '
14176	  ;;
14177	*Sun\ C*)
14178	  # Sun C 5.9
14179	  lt_prog_compiler_pic='-KPIC'
14180	  lt_prog_compiler_static='-Bstatic'
14181	  lt_prog_compiler_wl='-Wl,'
14182	  ;;
14183        *Intel*\ [CF]*Compiler*)
14184	  lt_prog_compiler_wl='-Wl,'
14185	  lt_prog_compiler_pic='-fPIC'
14186	  lt_prog_compiler_static='-static'
14187	  ;;
14188	*Portland\ Group*)
14189	  lt_prog_compiler_wl='-Wl,'
14190	  lt_prog_compiler_pic='-fpic'
14191	  lt_prog_compiler_static='-Bstatic'
14192	  ;;
14193	esac
14194	;;
14195      esac
14196      ;;
14197
14198    newsos6)
14199      lt_prog_compiler_pic='-KPIC'
14200      lt_prog_compiler_static='-Bstatic'
14201      ;;
14202
14203    *nto* | *qnx*)
14204      # QNX uses GNU C++, but need to define -shared option too, otherwise
14205      # it will coredump.
14206      lt_prog_compiler_pic='-fPIC -shared'
14207      ;;
14208
14209    osf3* | osf4* | osf5*)
14210      lt_prog_compiler_wl='-Wl,'
14211      # All OSF/1 code is PIC.
14212      lt_prog_compiler_static='-non_shared'
14213      ;;
14214
14215    rdos*)
14216      lt_prog_compiler_static='-non_shared'
14217      ;;
14218
14219    solaris*)
14220      lt_prog_compiler_pic='-KPIC'
14221      lt_prog_compiler_static='-Bstatic'
14222      case $cc_basename in
14223      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14224	lt_prog_compiler_wl='-Qoption ld ';;
14225      *)
14226	lt_prog_compiler_wl='-Wl,';;
14227      esac
14228      ;;
14229
14230    sunos4*)
14231      lt_prog_compiler_wl='-Qoption ld '
14232      lt_prog_compiler_pic='-PIC'
14233      lt_prog_compiler_static='-Bstatic'
14234      ;;
14235
14236    sysv4 | sysv4.2uw2* | sysv4.3*)
14237      lt_prog_compiler_wl='-Wl,'
14238      lt_prog_compiler_pic='-KPIC'
14239      lt_prog_compiler_static='-Bstatic'
14240      ;;
14241
14242    sysv4*MP*)
14243      if test -d /usr/nec ;then
14244	lt_prog_compiler_pic='-Kconform_pic'
14245	lt_prog_compiler_static='-Bstatic'
14246      fi
14247      ;;
14248
14249    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14250      lt_prog_compiler_wl='-Wl,'
14251      lt_prog_compiler_pic='-KPIC'
14252      lt_prog_compiler_static='-Bstatic'
14253      ;;
14254
14255    unicos*)
14256      lt_prog_compiler_wl='-Wl,'
14257      lt_prog_compiler_can_build_shared=no
14258      ;;
14259
14260    uts4*)
14261      lt_prog_compiler_pic='-pic'
14262      lt_prog_compiler_static='-Bstatic'
14263      ;;
14264
14265    *)
14266      lt_prog_compiler_can_build_shared=no
14267      ;;
14268    esac
14269  fi
14270
14271case $host_os in
14272  # For platforms which do not support PIC, -DPIC is meaningless:
14273  *djgpp*)
14274    lt_prog_compiler_pic=
14275    ;;
14276  *)
14277    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14278    ;;
14279esac
14280
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14282$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14283if ${lt_cv_prog_compiler_pic+:} false; then :
14284  $as_echo_n "(cached) " >&6
14285else
14286  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14287fi
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14289$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14290lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14291
14292#
14293# Check to make sure the PIC flag actually works.
14294#
14295if test -n "$lt_prog_compiler_pic"; then
14296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14297$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14298if ${lt_cv_prog_compiler_pic_works+:} false; then :
14299  $as_echo_n "(cached) " >&6
14300else
14301  lt_cv_prog_compiler_pic_works=no
14302   ac_outfile=conftest.$ac_objext
14303   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14304   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14305   # Insert the option either (1) after the last *FLAGS variable, or
14306   # (2) before a word containing "conftest.", or (3) at the end.
14307   # Note that $ac_compile itself does not contain backslashes and begins
14308   # with a dollar sign (not a hyphen), so the echo should work correctly.
14309   # The option is referenced via a variable to avoid confusing sed.
14310   lt_compile=`echo "$ac_compile" | $SED \
14311   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14312   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14313   -e 's:$: $lt_compiler_flag:'`
14314   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14315   (eval "$lt_compile" 2>conftest.err)
14316   ac_status=$?
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   if (exit $ac_status) && test -s "$ac_outfile"; then
14320     # The compiler can only warn and ignore the option if not recognized
14321     # So say no if there are warnings other than the usual output.
14322     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14323     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14324     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14325       lt_cv_prog_compiler_pic_works=yes
14326     fi
14327   fi
14328   $RM conftest*
14329
14330fi
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14332$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14333
14334if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14335    case $lt_prog_compiler_pic in
14336     "" | " "*) ;;
14337     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14338     esac
14339else
14340    lt_prog_compiler_pic=
14341     lt_prog_compiler_can_build_shared=no
14342fi
14343
14344fi
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356#
14357# Check to make sure the static flag actually works.
14358#
14359wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14361$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14362if ${lt_cv_prog_compiler_static_works+:} false; then :
14363  $as_echo_n "(cached) " >&6
14364else
14365  lt_cv_prog_compiler_static_works=no
14366   save_LDFLAGS="$LDFLAGS"
14367   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14368   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14369   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14370     # The linker can only warn and ignore the option if not recognized
14371     # So say no if there are warnings
14372     if test -s conftest.err; then
14373       # Append any errors to the config.log.
14374       cat conftest.err 1>&5
14375       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14376       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14377       if diff conftest.exp conftest.er2 >/dev/null; then
14378         lt_cv_prog_compiler_static_works=yes
14379       fi
14380     else
14381       lt_cv_prog_compiler_static_works=yes
14382     fi
14383   fi
14384   $RM -r conftest*
14385   LDFLAGS="$save_LDFLAGS"
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14389$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14390
14391if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14392    :
14393else
14394    lt_prog_compiler_static=
14395fi
14396
14397
14398
14399
14400
14401
14402
14403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14405if ${lt_cv_prog_compiler_c_o+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408  lt_cv_prog_compiler_c_o=no
14409   $RM -r conftest 2>/dev/null
14410   mkdir conftest
14411   cd conftest
14412   mkdir out
14413   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414
14415   lt_compiler_flag="-o out/conftest2.$ac_objext"
14416   # Insert the option either (1) after the last *FLAGS variable, or
14417   # (2) before a word containing "conftest.", or (3) at the end.
14418   # Note that $ac_compile itself does not contain backslashes and begins
14419   # with a dollar sign (not a hyphen), so the echo should work correctly.
14420   lt_compile=`echo "$ac_compile" | $SED \
14421   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423   -e 's:$: $lt_compiler_flag:'`
14424   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425   (eval "$lt_compile" 2>out/conftest.err)
14426   ac_status=$?
14427   cat out/conftest.err >&5
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14430   then
14431     # The compiler can only warn and ignore the option if not recognized
14432     # So say no if there are warnings
14433     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14434     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14435     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14436       lt_cv_prog_compiler_c_o=yes
14437     fi
14438   fi
14439   chmod u+w . 2>&5
14440   $RM conftest*
14441   # SGI C++ compiler will create directory out/ii_files/ for
14442   # template instantiation
14443   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14444   $RM out/* && rmdir out
14445   cd ..
14446   $RM -r conftest
14447   $RM conftest*
14448
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14451$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14452
14453
14454
14455
14456
14457
14458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14460if ${lt_cv_prog_compiler_c_o+:} false; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  lt_cv_prog_compiler_c_o=no
14464   $RM -r conftest 2>/dev/null
14465   mkdir conftest
14466   cd conftest
14467   mkdir out
14468   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14469
14470   lt_compiler_flag="-o out/conftest2.$ac_objext"
14471   # Insert the option either (1) after the last *FLAGS variable, or
14472   # (2) before a word containing "conftest.", or (3) at the end.
14473   # Note that $ac_compile itself does not contain backslashes and begins
14474   # with a dollar sign (not a hyphen), so the echo should work correctly.
14475   lt_compile=`echo "$ac_compile" | $SED \
14476   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14477   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14478   -e 's:$: $lt_compiler_flag:'`
14479   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14480   (eval "$lt_compile" 2>out/conftest.err)
14481   ac_status=$?
14482   cat out/conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14485   then
14486     # The compiler can only warn and ignore the option if not recognized
14487     # So say no if there are warnings
14488     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14489     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14490     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14491       lt_cv_prog_compiler_c_o=yes
14492     fi
14493   fi
14494   chmod u+w . 2>&5
14495   $RM conftest*
14496   # SGI C++ compiler will create directory out/ii_files/ for
14497   # template instantiation
14498   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14499   $RM out/* && rmdir out
14500   cd ..
14501   $RM -r conftest
14502   $RM conftest*
14503
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14506$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14507
14508
14509
14510
14511hard_links="nottested"
14512if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14513  # do not overwrite the value of need_locks provided by the user
14514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14515$as_echo_n "checking if we can lock with hard links... " >&6; }
14516  hard_links=yes
14517  $RM conftest*
14518  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14519  touch conftest.a
14520  ln conftest.a conftest.b 2>&5 || hard_links=no
14521  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14523$as_echo "$hard_links" >&6; }
14524  if test "$hard_links" = no; then
14525    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14526$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14527    need_locks=warn
14528  fi
14529else
14530  need_locks=no
14531fi
14532
14533
14534
14535
14536
14537
14538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14539$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14540
14541  runpath_var=
14542  allow_undefined_flag=
14543  always_export_symbols=no
14544  archive_cmds=
14545  archive_expsym_cmds=
14546  compiler_needs_object=no
14547  enable_shared_with_static_runtimes=no
14548  export_dynamic_flag_spec=
14549  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550  hardcode_automatic=no
14551  hardcode_direct=no
14552  hardcode_direct_absolute=no
14553  hardcode_libdir_flag_spec=
14554  hardcode_libdir_separator=
14555  hardcode_minus_L=no
14556  hardcode_shlibpath_var=unsupported
14557  inherit_rpath=no
14558  link_all_deplibs=unknown
14559  module_cmds=
14560  module_expsym_cmds=
14561  old_archive_from_new_cmds=
14562  old_archive_from_expsyms_cmds=
14563  thread_safe_flag_spec=
14564  whole_archive_flag_spec=
14565  # include_expsyms should be a list of space-separated symbols to be *always*
14566  # included in the symbol list
14567  include_expsyms=
14568  # exclude_expsyms can be an extended regexp of symbols to exclude
14569  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14570  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14571  # as well as any symbol that contains `d'.
14572  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14573  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14574  # platforms (ab)use it in PIC code, but their linkers get confused if
14575  # the symbol is explicitly referenced.  Since portable code cannot
14576  # rely on this symbol name, it's probably fine to never include it in
14577  # preloaded symbol tables.
14578  # Exclude shared library initialization/finalization symbols.
14579  extract_expsyms_cmds=
14580
14581  case $host_os in
14582  cygwin* | mingw* | pw32* | cegcc*)
14583    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14584    # When not using gcc, we currently assume that we are using
14585    # Microsoft Visual C++.
14586    if test "$GCC" != yes; then
14587      with_gnu_ld=no
14588    fi
14589    ;;
14590  interix*)
14591    # we just hope/assume this is gcc and not c89 (= MSVC++)
14592    with_gnu_ld=yes
14593    ;;
14594  openbsd*)
14595    with_gnu_ld=no
14596    ;;
14597  esac
14598
14599  ld_shlibs=yes
14600
14601  # On some targets, GNU ld is compatible enough with the native linker
14602  # that we're better off using the native interface for both.
14603  lt_use_gnu_ld_interface=no
14604  if test "$with_gnu_ld" = yes; then
14605    case $host_os in
14606      aix*)
14607	# The AIX port of GNU ld has always aspired to compatibility
14608	# with the native linker.  However, as the warning in the GNU ld
14609	# block says, versions before 2.19.5* couldn't really create working
14610	# shared libraries, regardless of the interface used.
14611	case `$LD -v 2>&1` in
14612	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14613	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14614	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14615	  *)
14616	    lt_use_gnu_ld_interface=yes
14617	    ;;
14618	esac
14619	;;
14620      *)
14621	lt_use_gnu_ld_interface=yes
14622	;;
14623    esac
14624  fi
14625
14626  if test "$lt_use_gnu_ld_interface" = yes; then
14627    # If archive_cmds runs LD, not CC, wlarc should be empty
14628    wlarc='${wl}'
14629
14630    # Set some defaults for GNU ld with shared library support. These
14631    # are reset later if shared libraries are not supported. Putting them
14632    # here allows them to be overridden if necessary.
14633    runpath_var=LD_RUN_PATH
14634    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14635    export_dynamic_flag_spec='${wl}--export-dynamic'
14636    # ancient GNU ld didn't support --whole-archive et. al.
14637    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14638      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14639    else
14640      whole_archive_flag_spec=
14641    fi
14642    supports_anon_versioning=no
14643    case `$LD -v 2>&1` in
14644      *GNU\ gold*) supports_anon_versioning=yes ;;
14645      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14646      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14647      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14648      *\ 2.11.*) ;; # other 2.11 versions
14649      *) supports_anon_versioning=yes ;;
14650    esac
14651
14652    # See if GNU ld supports shared libraries.
14653    case $host_os in
14654    aix[3-9]*)
14655      # On AIX/PPC, the GNU linker is very broken
14656      if test "$host_cpu" != ia64; then
14657	ld_shlibs=no
14658	cat <<_LT_EOF 1>&2
14659
14660*** Warning: the GNU linker, at least up to release 2.19, is reported
14661*** to be unable to reliably create shared libraries on AIX.
14662*** Therefore, libtool is disabling shared libraries support.  If you
14663*** really care for shared libraries, you may want to install binutils
14664*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14665*** You will then need to restart the configuration process.
14666
14667_LT_EOF
14668      fi
14669      ;;
14670
14671    amigaos*)
14672      case $host_cpu in
14673      powerpc)
14674            # see comment about AmigaOS4 .so support
14675            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14676            archive_expsym_cmds=''
14677        ;;
14678      m68k)
14679            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)'
14680            hardcode_libdir_flag_spec='-L$libdir'
14681            hardcode_minus_L=yes
14682        ;;
14683      esac
14684      ;;
14685
14686    beos*)
14687      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14688	allow_undefined_flag=unsupported
14689	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14690	# support --undefined.  This deserves some investigation.  FIXME
14691	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692      else
14693	ld_shlibs=no
14694      fi
14695      ;;
14696
14697    cygwin* | mingw* | pw32* | cegcc*)
14698      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14699      # as there is no search path for DLLs.
14700      hardcode_libdir_flag_spec='-L$libdir'
14701      export_dynamic_flag_spec='${wl}--export-all-symbols'
14702      allow_undefined_flag=unsupported
14703      always_export_symbols=no
14704      enable_shared_with_static_runtimes=yes
14705      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'
14706      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14707
14708      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14709        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14710	# If the export-symbols file already is a .def file (1st line
14711	# is EXPORTS), use it as is; otherwise, prepend...
14712	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14713	  cp $export_symbols $output_objdir/$soname.def;
14714	else
14715	  echo EXPORTS > $output_objdir/$soname.def;
14716	  cat $export_symbols >> $output_objdir/$soname.def;
14717	fi~
14718	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14719      else
14720	ld_shlibs=no
14721      fi
14722      ;;
14723
14724    haiku*)
14725      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14726      link_all_deplibs=yes
14727      ;;
14728
14729    interix[3-9]*)
14730      hardcode_direct=no
14731      hardcode_shlibpath_var=no
14732      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14733      export_dynamic_flag_spec='${wl}-E'
14734      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14735      # Instead, shared libraries are loaded at an image base (0x10000000 by
14736      # default) and relocated if they conflict, which is a slow very memory
14737      # consuming and fragmenting process.  To avoid this, we pick a random,
14738      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14739      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14740      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14741      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'
14742      ;;
14743
14744    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14745      tmp_diet=no
14746      if test "$host_os" = linux-dietlibc; then
14747	case $cc_basename in
14748	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14749	esac
14750      fi
14751      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14752	 && test "$tmp_diet" = no
14753      then
14754	tmp_addflag=' $pic_flag'
14755	tmp_sharedflag='-shared'
14756	case $cc_basename,$host_cpu in
14757        pgcc*)				# Portland Group C compiler
14758	  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'
14759	  tmp_addflag=' $pic_flag'
14760	  ;;
14761	pgf77* | pgf90* | pgf95* | pgfortran*)
14762					# Portland Group f77 and f90 compilers
14763	  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'
14764	  tmp_addflag=' $pic_flag -Mnomain' ;;
14765	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14766	  tmp_addflag=' -i_dynamic' ;;
14767	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14768	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14769	ifc* | ifort*)			# Intel Fortran compiler
14770	  tmp_addflag=' -nofor_main' ;;
14771	lf95*)				# Lahey Fortran 8.1
14772	  whole_archive_flag_spec=
14773	  tmp_sharedflag='--shared' ;;
14774	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14775	  tmp_sharedflag='-qmkshrobj'
14776	  tmp_addflag= ;;
14777	nvcc*)	# Cuda Compiler Driver 2.2
14778	  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'
14779	  compiler_needs_object=yes
14780	  ;;
14781	esac
14782	case `$CC -V 2>&1 | sed 5q` in
14783	*Sun\ C*)			# Sun C 5.9
14784	  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'
14785	  compiler_needs_object=yes
14786	  tmp_sharedflag='-G' ;;
14787	*Sun\ F*)			# Sun Fortran 8.3
14788	  tmp_sharedflag='-G' ;;
14789	esac
14790	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791
14792        if test "x$supports_anon_versioning" = xyes; then
14793          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14794	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14795	    echo "local: *; };" >> $output_objdir/$libname.ver~
14796	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14797        fi
14798
14799	case $cc_basename in
14800	xlf* | bgf* | bgxlf* | mpixlf*)
14801	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14802	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14803	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14804	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14805	  if test "x$supports_anon_versioning" = xyes; then
14806	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14807	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14808	      echo "local: *; };" >> $output_objdir/$libname.ver~
14809	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14810	  fi
14811	  ;;
14812	esac
14813      else
14814        ld_shlibs=no
14815      fi
14816      ;;
14817
14818    netbsd*)
14819      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14820	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14821	wlarc=
14822      else
14823	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14825      fi
14826      ;;
14827
14828    solaris*)
14829      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14830	ld_shlibs=no
14831	cat <<_LT_EOF 1>&2
14832
14833*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14834*** create shared libraries on Solaris systems.  Therefore, libtool
14835*** is disabling shared libraries support.  We urge you to upgrade GNU
14836*** binutils to release 2.9.1 or newer.  Another option is to modify
14837*** your PATH or compiler configuration so that the native linker is
14838*** used, and then restart.
14839
14840_LT_EOF
14841      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14842	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844      else
14845	ld_shlibs=no
14846      fi
14847      ;;
14848
14849    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14850      case `$LD -v 2>&1` in
14851        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14852	ld_shlibs=no
14853	cat <<_LT_EOF 1>&2
14854
14855*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14856*** reliably create shared libraries on SCO systems.  Therefore, libtool
14857*** is disabling shared libraries support.  We urge you to upgrade GNU
14858*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14859*** your PATH or compiler configuration so that the native linker is
14860*** used, and then restart.
14861
14862_LT_EOF
14863	;;
14864	*)
14865	  # For security reasons, it is highly recommended that you always
14866	  # use absolute paths for naming shared libraries, and exclude the
14867	  # DT_RUNPATH tag from executables and libraries.  But doing so
14868	  # requires that you compile everything twice, which is a pain.
14869	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14870	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14871	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14873	  else
14874	    ld_shlibs=no
14875	  fi
14876	;;
14877      esac
14878      ;;
14879
14880    sunos4*)
14881      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14882      wlarc=
14883      hardcode_direct=yes
14884      hardcode_shlibpath_var=no
14885      ;;
14886
14887    *)
14888      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14889	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14891      else
14892	ld_shlibs=no
14893      fi
14894      ;;
14895    esac
14896
14897    if test "$ld_shlibs" = no; then
14898      runpath_var=
14899      hardcode_libdir_flag_spec=
14900      export_dynamic_flag_spec=
14901      whole_archive_flag_spec=
14902    fi
14903  else
14904    # PORTME fill in a description of your system's linker (not GNU ld)
14905    case $host_os in
14906    aix3*)
14907      allow_undefined_flag=unsupported
14908      always_export_symbols=yes
14909      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'
14910      # Note: this linker hardcodes the directories in LIBPATH if there
14911      # are no directories specified by -L.
14912      hardcode_minus_L=yes
14913      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14914	# Neither direct hardcoding nor static linking is supported with a
14915	# broken collect2.
14916	hardcode_direct=unsupported
14917      fi
14918      ;;
14919
14920    aix[4-9]*)
14921      if test "$host_cpu" = ia64; then
14922	# On IA64, the linker does run time linking by default, so we don't
14923	# have to do anything special.
14924	aix_use_runtimelinking=no
14925	exp_sym_flag='-Bexport'
14926	no_entry_flag=""
14927      else
14928	# If we're using GNU nm, then we don't want the "-C" option.
14929	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14930	# Also, AIX nm treats weak defined symbols like other global
14931	# defined symbols, whereas GNU nm marks them as "W".
14932	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14933	  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'
14934	else
14935	  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'
14936	fi
14937	aix_use_runtimelinking=no
14938
14939	# Test if we are trying to use run time linking or normal
14940	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14941	# need to do runtime linking.
14942	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14943	  for ld_flag in $LDFLAGS; do
14944	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14945	    aix_use_runtimelinking=yes
14946	    break
14947	  fi
14948	  done
14949	  ;;
14950	esac
14951
14952	exp_sym_flag='-bexport'
14953	no_entry_flag='-bnoentry'
14954      fi
14955
14956      # When large executables or shared objects are built, AIX ld can
14957      # have problems creating the table of contents.  If linking a library
14958      # or program results in "error TOC overflow" add -mminimal-toc to
14959      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14960      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14961
14962      archive_cmds=''
14963      hardcode_direct=yes
14964      hardcode_direct_absolute=yes
14965      hardcode_libdir_separator=':'
14966      link_all_deplibs=yes
14967      file_list_spec='${wl}-f,'
14968
14969      if test "$GCC" = yes; then
14970	case $host_os in aix4.[012]|aix4.[012].*)
14971	# We only want to do this on AIX 4.2 and lower, the check
14972	# below for broken collect2 doesn't work under 4.3+
14973	  collect2name=`${CC} -print-prog-name=collect2`
14974	  if test -f "$collect2name" &&
14975	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14976	  then
14977	  # We have reworked collect2
14978	  :
14979	  else
14980	  # We have old collect2
14981	  hardcode_direct=unsupported
14982	  # It fails to find uninstalled libraries when the uninstalled
14983	  # path is not listed in the libpath.  Setting hardcode_minus_L
14984	  # to unsupported forces relinking
14985	  hardcode_minus_L=yes
14986	  hardcode_libdir_flag_spec='-L$libdir'
14987	  hardcode_libdir_separator=
14988	  fi
14989	  ;;
14990	esac
14991	shared_flag='-shared'
14992	if test "$aix_use_runtimelinking" = yes; then
14993	  shared_flag="$shared_flag "'${wl}-G'
14994	fi
14995      else
14996	# not using gcc
14997	if test "$host_cpu" = ia64; then
14998	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14999	# chokes on -Wl,-G. The following line is correct:
15000	  shared_flag='-G'
15001	else
15002	  if test "$aix_use_runtimelinking" = yes; then
15003	    shared_flag='${wl}-G'
15004	  else
15005	    shared_flag='${wl}-bM:SRE'
15006	  fi
15007	fi
15008      fi
15009
15010      export_dynamic_flag_spec='${wl}-bexpall'
15011      # It seems that -bexpall does not export symbols beginning with
15012      # underscore (_), so it is better to generate a list of symbols to export.
15013      always_export_symbols=yes
15014      if test "$aix_use_runtimelinking" = yes; then
15015	# Warning - without using the other runtime loading flags (-brtl),
15016	# -berok will link without error, but may produce a broken library.
15017	allow_undefined_flag='-berok'
15018        # Determine the default libpath from the value encoded in an
15019        # empty executable.
15020        if test "${lt_cv_aix_libpath+set}" = set; then
15021  aix_libpath=$lt_cv_aix_libpath
15022else
15023  if ${lt_cv_aix_libpath_+:} false; then :
15024  $as_echo_n "(cached) " >&6
15025else
15026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027/* end confdefs.h.  */
15028
15029int
15030main ()
15031{
15032
15033  ;
15034  return 0;
15035}
15036_ACEOF
15037if ac_fn_c_try_link "$LINENO"; then :
15038
15039  lt_aix_libpath_sed='
15040      /Import File Strings/,/^$/ {
15041	  /^0/ {
15042	      s/^0  *\([^ ]*\) *$/\1/
15043	      p
15044	  }
15045      }'
15046  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15047  # Check for a 64-bit object if we didn't find anything.
15048  if test -z "$lt_cv_aix_libpath_"; then
15049    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15050  fi
15051fi
15052rm -f core conftest.err conftest.$ac_objext \
15053    conftest$ac_exeext conftest.$ac_ext
15054  if test -z "$lt_cv_aix_libpath_"; then
15055    lt_cv_aix_libpath_="/usr/lib:/lib"
15056  fi
15057
15058fi
15059
15060  aix_libpath=$lt_cv_aix_libpath_
15061fi
15062
15063        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15064        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"
15065      else
15066	if test "$host_cpu" = ia64; then
15067	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15068	  allow_undefined_flag="-z nodefs"
15069	  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"
15070	else
15071	 # Determine the default libpath from the value encoded in an
15072	 # empty executable.
15073	 if test "${lt_cv_aix_libpath+set}" = set; then
15074  aix_libpath=$lt_cv_aix_libpath
15075else
15076  if ${lt_cv_aix_libpath_+:} false; then :
15077  $as_echo_n "(cached) " >&6
15078else
15079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h.  */
15081
15082int
15083main ()
15084{
15085
15086  ;
15087  return 0;
15088}
15089_ACEOF
15090if ac_fn_c_try_link "$LINENO"; then :
15091
15092  lt_aix_libpath_sed='
15093      /Import File Strings/,/^$/ {
15094	  /^0/ {
15095	      s/^0  *\([^ ]*\) *$/\1/
15096	      p
15097	  }
15098      }'
15099  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15100  # Check for a 64-bit object if we didn't find anything.
15101  if test -z "$lt_cv_aix_libpath_"; then
15102    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15103  fi
15104fi
15105rm -f core conftest.err conftest.$ac_objext \
15106    conftest$ac_exeext conftest.$ac_ext
15107  if test -z "$lt_cv_aix_libpath_"; then
15108    lt_cv_aix_libpath_="/usr/lib:/lib"
15109  fi
15110
15111fi
15112
15113  aix_libpath=$lt_cv_aix_libpath_
15114fi
15115
15116	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15117	  # Warning - without using the other run time loading flags,
15118	  # -berok will link without error, but may produce a broken library.
15119	  no_undefined_flag=' ${wl}-bernotok'
15120	  allow_undefined_flag=' ${wl}-berok'
15121	  if test "$with_gnu_ld" = yes; then
15122	    # We only use this code for GNU lds that support --whole-archive.
15123	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15124	  else
15125	    # Exported symbols can be pulled into shared objects from archives
15126	    whole_archive_flag_spec='$convenience'
15127	  fi
15128	  archive_cmds_need_lc=yes
15129	  # This is similar to how AIX traditionally builds its shared libraries.
15130	  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'
15131	fi
15132      fi
15133      ;;
15134
15135    amigaos*)
15136      case $host_cpu in
15137      powerpc)
15138            # see comment about AmigaOS4 .so support
15139            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15140            archive_expsym_cmds=''
15141        ;;
15142      m68k)
15143            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)'
15144            hardcode_libdir_flag_spec='-L$libdir'
15145            hardcode_minus_L=yes
15146        ;;
15147      esac
15148      ;;
15149
15150    bsdi[45]*)
15151      export_dynamic_flag_spec=-rdynamic
15152      ;;
15153
15154    cygwin* | mingw* | pw32* | cegcc*)
15155      # When not using gcc, we currently assume that we are using
15156      # Microsoft Visual C++.
15157      # hardcode_libdir_flag_spec is actually meaningless, as there is
15158      # no search path for DLLs.
15159      case $cc_basename in
15160      cl*)
15161	# Native MSVC
15162	hardcode_libdir_flag_spec=' '
15163	allow_undefined_flag=unsupported
15164	always_export_symbols=yes
15165	file_list_spec='@'
15166	# Tell ltmain to make .lib files, not .a files.
15167	libext=lib
15168	# Tell ltmain to make .dll files, not .so files.
15169	shrext_cmds=".dll"
15170	# FIXME: Setting linknames here is a bad hack.
15171	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15172	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15173	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15174	  else
15175	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15176	  fi~
15177	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15178	  linknames='
15179	# The linker will not automatically build a static lib if we build a DLL.
15180	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15181	enable_shared_with_static_runtimes=yes
15182	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15183	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15184	# Don't use ranlib
15185	old_postinstall_cmds='chmod 644 $oldlib'
15186	postlink_cmds='lt_outputfile="@OUTPUT@"~
15187	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15188	  case $lt_outputfile in
15189	    *.exe|*.EXE) ;;
15190	    *)
15191	      lt_outputfile="$lt_outputfile.exe"
15192	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15193	      ;;
15194	  esac~
15195	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15196	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15197	    $RM "$lt_outputfile.manifest";
15198	  fi'
15199	;;
15200      *)
15201	# Assume MSVC wrapper
15202	hardcode_libdir_flag_spec=' '
15203	allow_undefined_flag=unsupported
15204	# Tell ltmain to make .lib files, not .a files.
15205	libext=lib
15206	# Tell ltmain to make .dll files, not .so files.
15207	shrext_cmds=".dll"
15208	# FIXME: Setting linknames here is a bad hack.
15209	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15210	# The linker will automatically build a .lib file if we build a DLL.
15211	old_archive_from_new_cmds='true'
15212	# FIXME: Should let the user specify the lib program.
15213	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15214	enable_shared_with_static_runtimes=yes
15215	;;
15216      esac
15217      ;;
15218
15219    darwin* | rhapsody*)
15220
15221
15222  archive_cmds_need_lc=no
15223  hardcode_direct=no
15224  hardcode_automatic=yes
15225  hardcode_shlibpath_var=unsupported
15226  if test "$lt_cv_ld_force_load" = "yes"; then
15227    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\"`'
15228
15229  else
15230    whole_archive_flag_spec=''
15231  fi
15232  link_all_deplibs=yes
15233  allow_undefined_flag="$_lt_dar_allow_undefined"
15234  case $cc_basename in
15235     ifort*) _lt_dar_can_shared=yes ;;
15236     *) _lt_dar_can_shared=$GCC ;;
15237  esac
15238  if test "$_lt_dar_can_shared" = "yes"; then
15239    output_verbose_link_cmd=func_echo_all
15240    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15241    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15242    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}"
15243    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}"
15244
15245  else
15246  ld_shlibs=no
15247  fi
15248
15249      ;;
15250
15251    dgux*)
15252      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15253      hardcode_libdir_flag_spec='-L$libdir'
15254      hardcode_shlibpath_var=no
15255      ;;
15256
15257    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15258    # support.  Future versions do this automatically, but an explicit c++rt0.o
15259    # does not break anything, and helps significantly (at the cost of a little
15260    # extra space).
15261    freebsd2.2*)
15262      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15263      hardcode_libdir_flag_spec='-R$libdir'
15264      hardcode_direct=yes
15265      hardcode_shlibpath_var=no
15266      ;;
15267
15268    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15269    freebsd2.*)
15270      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15271      hardcode_direct=yes
15272      hardcode_minus_L=yes
15273      hardcode_shlibpath_var=no
15274      ;;
15275
15276    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15277    freebsd* | dragonfly*)
15278      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15279      hardcode_libdir_flag_spec='-R$libdir'
15280      hardcode_direct=yes
15281      hardcode_shlibpath_var=no
15282      ;;
15283
15284    hpux9*)
15285      if test "$GCC" = yes; then
15286	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'
15287      else
15288	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'
15289      fi
15290      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15291      hardcode_libdir_separator=:
15292      hardcode_direct=yes
15293
15294      # hardcode_minus_L: Not really in the search PATH,
15295      # but as the default location of the library.
15296      hardcode_minus_L=yes
15297      export_dynamic_flag_spec='${wl}-E'
15298      ;;
15299
15300    hpux10*)
15301      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15302	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15303      else
15304	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15305      fi
15306      if test "$with_gnu_ld" = no; then
15307	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15308	hardcode_libdir_separator=:
15309	hardcode_direct=yes
15310	hardcode_direct_absolute=yes
15311	export_dynamic_flag_spec='${wl}-E'
15312	# hardcode_minus_L: Not really in the search PATH,
15313	# but as the default location of the library.
15314	hardcode_minus_L=yes
15315      fi
15316      ;;
15317
15318    hpux11*)
15319      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15320	case $host_cpu in
15321	hppa*64*)
15322	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15323	  ;;
15324	ia64*)
15325	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15326	  ;;
15327	*)
15328	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15329	  ;;
15330	esac
15331      else
15332	case $host_cpu in
15333	hppa*64*)
15334	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15335	  ;;
15336	ia64*)
15337	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15338	  ;;
15339	*)
15340
15341	  # Older versions of the 11.00 compiler do not understand -b yet
15342	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15343	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15344$as_echo_n "checking if $CC understands -b... " >&6; }
15345if ${lt_cv_prog_compiler__b+:} false; then :
15346  $as_echo_n "(cached) " >&6
15347else
15348  lt_cv_prog_compiler__b=no
15349   save_LDFLAGS="$LDFLAGS"
15350   LDFLAGS="$LDFLAGS -b"
15351   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15352   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15353     # The linker can only warn and ignore the option if not recognized
15354     # So say no if there are warnings
15355     if test -s conftest.err; then
15356       # Append any errors to the config.log.
15357       cat conftest.err 1>&5
15358       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15359       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15360       if diff conftest.exp conftest.er2 >/dev/null; then
15361         lt_cv_prog_compiler__b=yes
15362       fi
15363     else
15364       lt_cv_prog_compiler__b=yes
15365     fi
15366   fi
15367   $RM -r conftest*
15368   LDFLAGS="$save_LDFLAGS"
15369
15370fi
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15372$as_echo "$lt_cv_prog_compiler__b" >&6; }
15373
15374if test x"$lt_cv_prog_compiler__b" = xyes; then
15375    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376else
15377    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15378fi
15379
15380	  ;;
15381	esac
15382      fi
15383      if test "$with_gnu_ld" = no; then
15384	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15385	hardcode_libdir_separator=:
15386
15387	case $host_cpu in
15388	hppa*64*|ia64*)
15389	  hardcode_direct=no
15390	  hardcode_shlibpath_var=no
15391	  ;;
15392	*)
15393	  hardcode_direct=yes
15394	  hardcode_direct_absolute=yes
15395	  export_dynamic_flag_spec='${wl}-E'
15396
15397	  # hardcode_minus_L: Not really in the search PATH,
15398	  # but as the default location of the library.
15399	  hardcode_minus_L=yes
15400	  ;;
15401	esac
15402      fi
15403      ;;
15404
15405    irix5* | irix6* | nonstopux*)
15406      if test "$GCC" = yes; then
15407	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'
15408	# Try to use the -exported_symbol ld option, if it does not
15409	# work, assume that -exports_file does not work either and
15410	# implicitly export all symbols.
15411	# This should be the same for all languages, so no per-tag cache variable.
15412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15413$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15414if ${lt_cv_irix_exported_symbol+:} false; then :
15415  $as_echo_n "(cached) " >&6
15416else
15417  save_LDFLAGS="$LDFLAGS"
15418	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15419	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420/* end confdefs.h.  */
15421int foo (void) { return 0; }
15422_ACEOF
15423if ac_fn_c_try_link "$LINENO"; then :
15424  lt_cv_irix_exported_symbol=yes
15425else
15426  lt_cv_irix_exported_symbol=no
15427fi
15428rm -f core conftest.err conftest.$ac_objext \
15429    conftest$ac_exeext conftest.$ac_ext
15430           LDFLAGS="$save_LDFLAGS"
15431fi
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15433$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15434	if test "$lt_cv_irix_exported_symbol" = yes; then
15435          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'
15436	fi
15437      else
15438	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'
15439	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'
15440      fi
15441      archive_cmds_need_lc='no'
15442      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443      hardcode_libdir_separator=:
15444      inherit_rpath=yes
15445      link_all_deplibs=yes
15446      ;;
15447
15448    netbsd*)
15449      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15450	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15451      else
15452	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15453      fi
15454      hardcode_libdir_flag_spec='-R$libdir'
15455      hardcode_direct=yes
15456      hardcode_shlibpath_var=no
15457      ;;
15458
15459    newsos6)
15460      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15461      hardcode_direct=yes
15462      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15463      hardcode_libdir_separator=:
15464      hardcode_shlibpath_var=no
15465      ;;
15466
15467    *nto* | *qnx*)
15468      ;;
15469
15470    openbsd*)
15471      if test -f /usr/libexec/ld.so; then
15472	hardcode_direct=yes
15473	hardcode_shlibpath_var=no
15474	hardcode_direct_absolute=yes
15475	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15476	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15477	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15478	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15479	  export_dynamic_flag_spec='${wl}-E'
15480	else
15481	  case $host_os in
15482	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15483	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15484	     hardcode_libdir_flag_spec='-R$libdir'
15485	     ;;
15486	   *)
15487	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15488	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15489	     ;;
15490	  esac
15491	fi
15492      else
15493	ld_shlibs=no
15494      fi
15495      ;;
15496
15497    os2*)
15498      hardcode_libdir_flag_spec='-L$libdir'
15499      hardcode_minus_L=yes
15500      allow_undefined_flag=unsupported
15501      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'
15502      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15503      ;;
15504
15505    osf3*)
15506      if test "$GCC" = yes; then
15507	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15508	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'
15509      else
15510	allow_undefined_flag=' -expect_unresolved \*'
15511	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'
15512      fi
15513      archive_cmds_need_lc='no'
15514      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15515      hardcode_libdir_separator=:
15516      ;;
15517
15518    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15519      if test "$GCC" = yes; then
15520	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15521	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'
15522	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15523      else
15524	allow_undefined_flag=' -expect_unresolved \*'
15525	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'
15526	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~
15527	$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'
15528
15529	# Both c and cxx compiler support -rpath directly
15530	hardcode_libdir_flag_spec='-rpath $libdir'
15531      fi
15532      archive_cmds_need_lc='no'
15533      hardcode_libdir_separator=:
15534      ;;
15535
15536    solaris*)
15537      no_undefined_flag=' -z defs'
15538      if test "$GCC" = yes; then
15539	wlarc='${wl}'
15540	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15542	  $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'
15543      else
15544	case `$CC -V 2>&1` in
15545	*"Compilers 5.0"*)
15546	  wlarc=''
15547	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15549	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15550	  ;;
15551	*)
15552	  wlarc='${wl}'
15553	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15554	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15555	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15556	  ;;
15557	esac
15558      fi
15559      hardcode_libdir_flag_spec='-R$libdir'
15560      hardcode_shlibpath_var=no
15561      case $host_os in
15562      solaris2.[0-5] | solaris2.[0-5].*) ;;
15563      *)
15564	# The compiler driver will combine and reorder linker options,
15565	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15566	# but is careful enough not to reorder.
15567	# Supported since Solaris 2.6 (maybe 2.5.1?)
15568	if test "$GCC" = yes; then
15569	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15570	else
15571	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15572	fi
15573	;;
15574      esac
15575      link_all_deplibs=yes
15576      ;;
15577
15578    sunos4*)
15579      if test "x$host_vendor" = xsequent; then
15580	# Use $CC to link under sequent, because it throws in some extra .o
15581	# files that make .init and .fini sections work.
15582	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15583      else
15584	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15585      fi
15586      hardcode_libdir_flag_spec='-L$libdir'
15587      hardcode_direct=yes
15588      hardcode_minus_L=yes
15589      hardcode_shlibpath_var=no
15590      ;;
15591
15592    sysv4)
15593      case $host_vendor in
15594	sni)
15595	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596	  hardcode_direct=yes # is this really true???
15597	;;
15598	siemens)
15599	  ## LD is ld it makes a PLAMLIB
15600	  ## CC just makes a GrossModule.
15601	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15602	  reload_cmds='$CC -r -o $output$reload_objs'
15603	  hardcode_direct=no
15604        ;;
15605	motorola)
15606	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15608	;;
15609      esac
15610      runpath_var='LD_RUN_PATH'
15611      hardcode_shlibpath_var=no
15612      ;;
15613
15614    sysv4.3*)
15615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616      hardcode_shlibpath_var=no
15617      export_dynamic_flag_spec='-Bexport'
15618      ;;
15619
15620    sysv4*MP*)
15621      if test -d /usr/nec; then
15622	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15623	hardcode_shlibpath_var=no
15624	runpath_var=LD_RUN_PATH
15625	hardcode_runpath_var=yes
15626	ld_shlibs=yes
15627      fi
15628      ;;
15629
15630    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15631      no_undefined_flag='${wl}-z,text'
15632      archive_cmds_need_lc=no
15633      hardcode_shlibpath_var=no
15634      runpath_var='LD_RUN_PATH'
15635
15636      if test "$GCC" = yes; then
15637	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15638	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639      else
15640	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642      fi
15643      ;;
15644
15645    sysv5* | sco3.2v5* | sco5v6*)
15646      # Note: We can NOT use -z defs as we might desire, because we do not
15647      # link with -lc, and that would cause any symbols used from libc to
15648      # always be unresolved, which means just about no library would
15649      # ever link correctly.  If we're not using GNU ld we use -z text
15650      # though, which does catch some bad symbols but isn't as heavy-handed
15651      # as -z defs.
15652      no_undefined_flag='${wl}-z,text'
15653      allow_undefined_flag='${wl}-z,nodefs'
15654      archive_cmds_need_lc=no
15655      hardcode_shlibpath_var=no
15656      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15657      hardcode_libdir_separator=':'
15658      link_all_deplibs=yes
15659      export_dynamic_flag_spec='${wl}-Bexport'
15660      runpath_var='LD_RUN_PATH'
15661
15662      if test "$GCC" = yes; then
15663	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15665      else
15666	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15668      fi
15669      ;;
15670
15671    uts4*)
15672      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673      hardcode_libdir_flag_spec='-L$libdir'
15674      hardcode_shlibpath_var=no
15675      ;;
15676
15677    *)
15678      ld_shlibs=no
15679      ;;
15680    esac
15681
15682    if test x$host_vendor = xsni; then
15683      case $host in
15684      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15685	export_dynamic_flag_spec='${wl}-Blargedynsym'
15686	;;
15687      esac
15688    fi
15689  fi
15690
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15692$as_echo "$ld_shlibs" >&6; }
15693test "$ld_shlibs" = no && can_build_shared=no
15694
15695with_gnu_ld=$with_gnu_ld
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711#
15712# Do we need to explicitly link libc?
15713#
15714case "x$archive_cmds_need_lc" in
15715x|xyes)
15716  # Assume -lc should be added
15717  archive_cmds_need_lc=yes
15718
15719  if test "$enable_shared" = yes && test "$GCC" = yes; then
15720    case $archive_cmds in
15721    *'~'*)
15722      # FIXME: we may have to deal with multi-command sequences.
15723      ;;
15724    '$CC '*)
15725      # Test whether the compiler implicitly links with -lc since on some
15726      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15727      # to ld, don't add -lc before -lgcc.
15728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15730if ${lt_cv_archive_cmds_need_lc+:} false; then :
15731  $as_echo_n "(cached) " >&6
15732else
15733  $RM conftest*
15734	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15735
15736	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15737  (eval $ac_compile) 2>&5
15738  ac_status=$?
15739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740  test $ac_status = 0; } 2>conftest.err; then
15741	  soname=conftest
15742	  lib=conftest
15743	  libobjs=conftest.$ac_objext
15744	  deplibs=
15745	  wl=$lt_prog_compiler_wl
15746	  pic_flag=$lt_prog_compiler_pic
15747	  compiler_flags=-v
15748	  linker_flags=-v
15749	  verstring=
15750	  output_objdir=.
15751	  libname=conftest
15752	  lt_save_allow_undefined_flag=$allow_undefined_flag
15753	  allow_undefined_flag=
15754	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15755  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15756  ac_status=$?
15757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758  test $ac_status = 0; }
15759	  then
15760	    lt_cv_archive_cmds_need_lc=no
15761	  else
15762	    lt_cv_archive_cmds_need_lc=yes
15763	  fi
15764	  allow_undefined_flag=$lt_save_allow_undefined_flag
15765	else
15766	  cat conftest.err 1>&5
15767	fi
15768	$RM conftest*
15769
15770fi
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15772$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15773      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15774      ;;
15775    esac
15776  fi
15777  ;;
15778esac
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
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15932$as_echo_n "checking dynamic linker characteristics... " >&6; }
15933
15934if test "$GCC" = yes; then
15935  case $host_os in
15936    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15937    *) lt_awk_arg="/^libraries:/" ;;
15938  esac
15939  case $host_os in
15940    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15941    *) lt_sed_strip_eq="s,=/,/,g" ;;
15942  esac
15943  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15944  case $lt_search_path_spec in
15945  *\;*)
15946    # if the path contains ";" then we assume it to be the separator
15947    # otherwise default to the standard path separator (i.e. ":") - it is
15948    # assumed that no part of a normal pathname contains ";" but that should
15949    # okay in the real world where ";" in dirpaths is itself problematic.
15950    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15951    ;;
15952  *)
15953    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15954    ;;
15955  esac
15956  # Ok, now we have the path, separated by spaces, we can step through it
15957  # and add multilib dir if necessary.
15958  lt_tmp_lt_search_path_spec=
15959  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15960  for lt_sys_path in $lt_search_path_spec; do
15961    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15962      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15963    else
15964      test -d "$lt_sys_path" && \
15965	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15966    fi
15967  done
15968  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15969BEGIN {RS=" "; FS="/|\n";} {
15970  lt_foo="";
15971  lt_count=0;
15972  for (lt_i = NF; lt_i > 0; lt_i--) {
15973    if ($lt_i != "" && $lt_i != ".") {
15974      if ($lt_i == "..") {
15975        lt_count++;
15976      } else {
15977        if (lt_count == 0) {
15978          lt_foo="/" $lt_i lt_foo;
15979        } else {
15980          lt_count--;
15981        }
15982      }
15983    }
15984  }
15985  if (lt_foo != "") { lt_freq[lt_foo]++; }
15986  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15987}'`
15988  # AWK program above erroneously prepends '/' to C:/dos/paths
15989  # for these hosts.
15990  case $host_os in
15991    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15992      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15993  esac
15994  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15995else
15996  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15997fi
15998library_names_spec=
15999libname_spec='lib$name'
16000soname_spec=
16001shrext_cmds=".so"
16002postinstall_cmds=
16003postuninstall_cmds=
16004finish_cmds=
16005finish_eval=
16006shlibpath_var=
16007shlibpath_overrides_runpath=unknown
16008version_type=none
16009dynamic_linker="$host_os ld.so"
16010sys_lib_dlsearch_path_spec="/lib /usr/lib"
16011need_lib_prefix=unknown
16012hardcode_into_libs=no
16013
16014# when you set need_version to no, make sure it does not cause -set_version
16015# flags to be left without arguments
16016need_version=unknown
16017
16018case $host_os in
16019aix3*)
16020  version_type=linux # correct to gnu/linux during the next big refactor
16021  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16022  shlibpath_var=LIBPATH
16023
16024  # AIX 3 has no versioning support, so we append a major version to the name.
16025  soname_spec='${libname}${release}${shared_ext}$major'
16026  ;;
16027
16028aix[4-9]*)
16029  version_type=linux # correct to gnu/linux during the next big refactor
16030  need_lib_prefix=no
16031  need_version=no
16032  hardcode_into_libs=yes
16033  if test "$host_cpu" = ia64; then
16034    # AIX 5 supports IA64
16035    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16036    shlibpath_var=LD_LIBRARY_PATH
16037  else
16038    # With GCC up to 2.95.x, collect2 would create an import file
16039    # for dependence libraries.  The import file would start with
16040    # the line `#! .'.  This would cause the generated library to
16041    # depend on `.', always an invalid library.  This was fixed in
16042    # development snapshots of GCC prior to 3.0.
16043    case $host_os in
16044      aix4 | aix4.[01] | aix4.[01].*)
16045      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16046	   echo ' yes '
16047	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16048	:
16049      else
16050	can_build_shared=no
16051      fi
16052      ;;
16053    esac
16054    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16055    # soname into executable. Probably we can add versioning support to
16056    # collect2, so additional links can be useful in future.
16057    if test "$aix_use_runtimelinking" = yes; then
16058      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16059      # instead of lib<name>.a to let people know that these are not
16060      # typical AIX shared libraries.
16061      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062    else
16063      # We preserve .a as extension for shared libraries through AIX4.2
16064      # and later when we are not doing run time linking.
16065      library_names_spec='${libname}${release}.a $libname.a'
16066      soname_spec='${libname}${release}${shared_ext}$major'
16067    fi
16068    shlibpath_var=LIBPATH
16069  fi
16070  ;;
16071
16072amigaos*)
16073  case $host_cpu in
16074  powerpc)
16075    # Since July 2007 AmigaOS4 officially supports .so libraries.
16076    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16077    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078    ;;
16079  m68k)
16080    library_names_spec='$libname.ixlibrary $libname.a'
16081    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16082    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'
16083    ;;
16084  esac
16085  ;;
16086
16087beos*)
16088  library_names_spec='${libname}${shared_ext}'
16089  dynamic_linker="$host_os ld.so"
16090  shlibpath_var=LIBRARY_PATH
16091  ;;
16092
16093bsdi[45]*)
16094  version_type=linux # correct to gnu/linux during the next big refactor
16095  need_version=no
16096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097  soname_spec='${libname}${release}${shared_ext}$major'
16098  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16099  shlibpath_var=LD_LIBRARY_PATH
16100  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16101  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16102  # the default ld.so.conf also contains /usr/contrib/lib and
16103  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16104  # libtool to hard-code these into programs
16105  ;;
16106
16107cygwin* | mingw* | pw32* | cegcc*)
16108  version_type=windows
16109  shrext_cmds=".dll"
16110  need_version=no
16111  need_lib_prefix=no
16112
16113  case $GCC,$cc_basename in
16114  yes,*)
16115    # gcc
16116    library_names_spec='$libname.dll.a'
16117    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16118    postinstall_cmds='base_file=`basename \${file}`~
16119      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16120      dldir=$destdir/`dirname \$dlpath`~
16121      test -d \$dldir || mkdir -p \$dldir~
16122      $install_prog $dir/$dlname \$dldir/$dlname~
16123      chmod a+x \$dldir/$dlname~
16124      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16125        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16126      fi'
16127    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16128      dlpath=$dir/\$dldll~
16129       $RM \$dlpath'
16130    shlibpath_overrides_runpath=yes
16131
16132    case $host_os in
16133    cygwin*)
16134      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16135      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16136
16137      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16138      ;;
16139    mingw* | cegcc*)
16140      # MinGW DLLs use traditional 'lib' prefix
16141      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16142      ;;
16143    pw32*)
16144      # pw32 DLLs use 'pw' prefix rather than 'lib'
16145      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16146      ;;
16147    esac
16148    dynamic_linker='Win32 ld.exe'
16149    ;;
16150
16151  *,cl*)
16152    # Native MSVC
16153    libname_spec='$name'
16154    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16155    library_names_spec='${libname}.dll.lib'
16156
16157    case $build_os in
16158    mingw*)
16159      sys_lib_search_path_spec=
16160      lt_save_ifs=$IFS
16161      IFS=';'
16162      for lt_path in $LIB
16163      do
16164        IFS=$lt_save_ifs
16165        # Let DOS variable expansion print the short 8.3 style file name.
16166        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16167        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16168      done
16169      IFS=$lt_save_ifs
16170      # Convert to MSYS style.
16171      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16172      ;;
16173    cygwin*)
16174      # Convert to unix form, then to dos form, then back to unix form
16175      # but this time dos style (no spaces!) so that the unix form looks
16176      # like /cygdrive/c/PROGRA~1:/cygdr...
16177      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16178      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16179      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16180      ;;
16181    *)
16182      sys_lib_search_path_spec="$LIB"
16183      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16184        # It is most probably a Windows format PATH.
16185        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16186      else
16187        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16188      fi
16189      # FIXME: find the short name or the path components, as spaces are
16190      # common. (e.g. "Program Files" -> "PROGRA~1")
16191      ;;
16192    esac
16193
16194    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16195    postinstall_cmds='base_file=`basename \${file}`~
16196      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16197      dldir=$destdir/`dirname \$dlpath`~
16198      test -d \$dldir || mkdir -p \$dldir~
16199      $install_prog $dir/$dlname \$dldir/$dlname'
16200    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16201      dlpath=$dir/\$dldll~
16202       $RM \$dlpath'
16203    shlibpath_overrides_runpath=yes
16204    dynamic_linker='Win32 link.exe'
16205    ;;
16206
16207  *)
16208    # Assume MSVC wrapper
16209    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16210    dynamic_linker='Win32 ld.exe'
16211    ;;
16212  esac
16213  # FIXME: first we should search . and the directory the executable is in
16214  shlibpath_var=PATH
16215  ;;
16216
16217darwin* | rhapsody*)
16218  dynamic_linker="$host_os dyld"
16219  version_type=darwin
16220  need_lib_prefix=no
16221  need_version=no
16222  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16223  soname_spec='${libname}${release}${major}$shared_ext'
16224  shlibpath_overrides_runpath=yes
16225  shlibpath_var=DYLD_LIBRARY_PATH
16226  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16227
16228  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16229  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16230  ;;
16231
16232dgux*)
16233  version_type=linux # correct to gnu/linux during the next big refactor
16234  need_lib_prefix=no
16235  need_version=no
16236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16237  soname_spec='${libname}${release}${shared_ext}$major'
16238  shlibpath_var=LD_LIBRARY_PATH
16239  ;;
16240
16241freebsd* | dragonfly*)
16242  # DragonFly does not have aout.  When/if they implement a new
16243  # versioning mechanism, adjust this.
16244  if test -x /usr/bin/objformat; then
16245    objformat=`/usr/bin/objformat`
16246  else
16247    case $host_os in
16248    freebsd[23].*) objformat=aout ;;
16249    *) objformat=elf ;;
16250    esac
16251  fi
16252  version_type=freebsd-$objformat
16253  case $version_type in
16254    freebsd-elf*)
16255      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16256      need_version=no
16257      need_lib_prefix=no
16258      ;;
16259    freebsd-*)
16260      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16261      need_version=yes
16262      ;;
16263  esac
16264  shlibpath_var=LD_LIBRARY_PATH
16265  case $host_os in
16266  freebsd2.*)
16267    shlibpath_overrides_runpath=yes
16268    ;;
16269  freebsd3.[01]* | freebsdelf3.[01]*)
16270    shlibpath_overrides_runpath=yes
16271    hardcode_into_libs=yes
16272    ;;
16273  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16274  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16275    shlibpath_overrides_runpath=no
16276    hardcode_into_libs=yes
16277    ;;
16278  *) # from 4.6 on, and DragonFly
16279    shlibpath_overrides_runpath=yes
16280    hardcode_into_libs=yes
16281    ;;
16282  esac
16283  ;;
16284
16285gnu*)
16286  version_type=linux # correct to gnu/linux during the next big refactor
16287  need_lib_prefix=no
16288  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
16292  shlibpath_overrides_runpath=no
16293  hardcode_into_libs=yes
16294  ;;
16295
16296haiku*)
16297  version_type=linux # correct to gnu/linux during the next big refactor
16298  need_lib_prefix=no
16299  need_version=no
16300  dynamic_linker="$host_os runtime_loader"
16301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16302  soname_spec='${libname}${release}${shared_ext}$major'
16303  shlibpath_var=LIBRARY_PATH
16304  shlibpath_overrides_runpath=yes
16305  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16306  hardcode_into_libs=yes
16307  ;;
16308
16309hpux9* | hpux10* | hpux11*)
16310  # Give a soname corresponding to the major version so that dld.sl refuses to
16311  # link against other versions.
16312  version_type=sunos
16313  need_lib_prefix=no
16314  need_version=no
16315  case $host_cpu in
16316  ia64*)
16317    shrext_cmds='.so'
16318    hardcode_into_libs=yes
16319    dynamic_linker="$host_os dld.so"
16320    shlibpath_var=LD_LIBRARY_PATH
16321    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16322    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323    soname_spec='${libname}${release}${shared_ext}$major'
16324    if test "X$HPUX_IA64_MODE" = X32; then
16325      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16326    else
16327      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16328    fi
16329    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16330    ;;
16331  hppa*64*)
16332    shrext_cmds='.sl'
16333    hardcode_into_libs=yes
16334    dynamic_linker="$host_os dld.sl"
16335    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16336    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338    soname_spec='${libname}${release}${shared_ext}$major'
16339    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16340    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16341    ;;
16342  *)
16343    shrext_cmds='.sl'
16344    dynamic_linker="$host_os dld.sl"
16345    shlibpath_var=SHLIB_PATH
16346    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348    soname_spec='${libname}${release}${shared_ext}$major'
16349    ;;
16350  esac
16351  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16352  postinstall_cmds='chmod 555 $lib'
16353  # or fails outright, so override atomically:
16354  install_override_mode=555
16355  ;;
16356
16357interix[3-9]*)
16358  version_type=linux # correct to gnu/linux during the next big refactor
16359  need_lib_prefix=no
16360  need_version=no
16361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16362  soname_spec='${libname}${release}${shared_ext}$major'
16363  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16364  shlibpath_var=LD_LIBRARY_PATH
16365  shlibpath_overrides_runpath=no
16366  hardcode_into_libs=yes
16367  ;;
16368
16369irix5* | irix6* | nonstopux*)
16370  case $host_os in
16371    nonstopux*) version_type=nonstopux ;;
16372    *)
16373	if test "$lt_cv_prog_gnu_ld" = yes; then
16374		version_type=linux # correct to gnu/linux during the next big refactor
16375	else
16376		version_type=irix
16377	fi ;;
16378  esac
16379  need_lib_prefix=no
16380  need_version=no
16381  soname_spec='${libname}${release}${shared_ext}$major'
16382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16383  case $host_os in
16384  irix5* | nonstopux*)
16385    libsuff= shlibsuff=
16386    ;;
16387  *)
16388    case $LD in # libtool.m4 will add one of these switches to LD
16389    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16390      libsuff= shlibsuff= libmagic=32-bit;;
16391    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16392      libsuff=32 shlibsuff=N32 libmagic=N32;;
16393    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16394      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16395    *) libsuff= shlibsuff= libmagic=never-match;;
16396    esac
16397    ;;
16398  esac
16399  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16400  shlibpath_overrides_runpath=no
16401  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16402  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16403  hardcode_into_libs=yes
16404  ;;
16405
16406# No shared lib support for Linux oldld, aout, or coff.
16407linux*oldld* | linux*aout* | linux*coff*)
16408  dynamic_linker=no
16409  ;;
16410
16411# This must be glibc/ELF.
16412linux* | k*bsd*-gnu | kopensolaris*-gnu)
16413  version_type=linux # correct to gnu/linux during the next big refactor
16414  need_lib_prefix=no
16415  need_version=no
16416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417  soname_spec='${libname}${release}${shared_ext}$major'
16418  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16419  shlibpath_var=LD_LIBRARY_PATH
16420  shlibpath_overrides_runpath=no
16421
16422  # Some binutils ld are patched to set DT_RUNPATH
16423  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16424  $as_echo_n "(cached) " >&6
16425else
16426  lt_cv_shlibpath_overrides_runpath=no
16427    save_LDFLAGS=$LDFLAGS
16428    save_libdir=$libdir
16429    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16430	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16431    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432/* end confdefs.h.  */
16433
16434int
16435main ()
16436{
16437
16438  ;
16439  return 0;
16440}
16441_ACEOF
16442if ac_fn_c_try_link "$LINENO"; then :
16443  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16444  lt_cv_shlibpath_overrides_runpath=yes
16445fi
16446fi
16447rm -f core conftest.err conftest.$ac_objext \
16448    conftest$ac_exeext conftest.$ac_ext
16449    LDFLAGS=$save_LDFLAGS
16450    libdir=$save_libdir
16451
16452fi
16453
16454  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16455
16456  # This implies no fast_install, which is unacceptable.
16457  # Some rework will be needed to allow for fast_install
16458  # before this can be enabled.
16459  hardcode_into_libs=yes
16460
16461  # Add ABI-specific directories to the system library path.
16462  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16463
16464  # Append ld.so.conf contents to the search path
16465  if test -f /etc/ld.so.conf; then
16466    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' ' '`
16467    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16468
16469  fi
16470
16471  # We used to test for /lib/ld.so.1 and disable shared libraries on
16472  # powerpc, because MkLinux only supported shared libraries with the
16473  # GNU dynamic linker.  Since this was broken with cross compilers,
16474  # most powerpc-linux boxes support dynamic linking these days and
16475  # people can always --disable-shared, the test was removed, and we
16476  # assume the GNU/Linux dynamic linker is in use.
16477  dynamic_linker='GNU/Linux ld.so'
16478  ;;
16479
16480netbsd*)
16481  version_type=sunos
16482  need_lib_prefix=no
16483  need_version=no
16484  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16486    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16487    dynamic_linker='NetBSD (a.out) ld.so'
16488  else
16489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16490    soname_spec='${libname}${release}${shared_ext}$major'
16491    dynamic_linker='NetBSD ld.elf_so'
16492  fi
16493  shlibpath_var=LD_LIBRARY_PATH
16494  shlibpath_overrides_runpath=yes
16495  hardcode_into_libs=yes
16496  ;;
16497
16498newsos6)
16499  version_type=linux # correct to gnu/linux during the next big refactor
16500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501  shlibpath_var=LD_LIBRARY_PATH
16502  shlibpath_overrides_runpath=yes
16503  ;;
16504
16505*nto* | *qnx*)
16506  version_type=qnx
16507  need_lib_prefix=no
16508  need_version=no
16509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510  soname_spec='${libname}${release}${shared_ext}$major'
16511  shlibpath_var=LD_LIBRARY_PATH
16512  shlibpath_overrides_runpath=no
16513  hardcode_into_libs=yes
16514  dynamic_linker='ldqnx.so'
16515  ;;
16516
16517openbsd*)
16518  version_type=sunos
16519  sys_lib_dlsearch_path_spec="/usr/lib"
16520  need_lib_prefix=no
16521  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16522  case $host_os in
16523    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16524    *)				need_version=no  ;;
16525  esac
16526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16527  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16528  shlibpath_var=LD_LIBRARY_PATH
16529  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16530    case $host_os in
16531      openbsd2.[89] | openbsd2.[89].*)
16532	shlibpath_overrides_runpath=no
16533	;;
16534      *)
16535	shlibpath_overrides_runpath=yes
16536	;;
16537      esac
16538  else
16539    shlibpath_overrides_runpath=yes
16540  fi
16541  ;;
16542
16543os2*)
16544  libname_spec='$name'
16545  shrext_cmds=".dll"
16546  need_lib_prefix=no
16547  library_names_spec='$libname${shared_ext} $libname.a'
16548  dynamic_linker='OS/2 ld.exe'
16549  shlibpath_var=LIBPATH
16550  ;;
16551
16552osf3* | osf4* | osf5*)
16553  version_type=osf
16554  need_lib_prefix=no
16555  need_version=no
16556  soname_spec='${libname}${release}${shared_ext}$major'
16557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558  shlibpath_var=LD_LIBRARY_PATH
16559  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16560  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16561  ;;
16562
16563rdos*)
16564  dynamic_linker=no
16565  ;;
16566
16567solaris*)
16568  version_type=linux # correct to gnu/linux during the next big refactor
16569  need_lib_prefix=no
16570  need_version=no
16571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16572  soname_spec='${libname}${release}${shared_ext}$major'
16573  shlibpath_var=LD_LIBRARY_PATH
16574  shlibpath_overrides_runpath=yes
16575  hardcode_into_libs=yes
16576  # ldd complains unless libraries are executable
16577  postinstall_cmds='chmod +x $lib'
16578  ;;
16579
16580sunos4*)
16581  version_type=sunos
16582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16584  shlibpath_var=LD_LIBRARY_PATH
16585  shlibpath_overrides_runpath=yes
16586  if test "$with_gnu_ld" = yes; then
16587    need_lib_prefix=no
16588  fi
16589  need_version=yes
16590  ;;
16591
16592sysv4 | sysv4.3*)
16593  version_type=linux # correct to gnu/linux during the next big refactor
16594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595  soname_spec='${libname}${release}${shared_ext}$major'
16596  shlibpath_var=LD_LIBRARY_PATH
16597  case $host_vendor in
16598    sni)
16599      shlibpath_overrides_runpath=no
16600      need_lib_prefix=no
16601      runpath_var=LD_RUN_PATH
16602      ;;
16603    siemens)
16604      need_lib_prefix=no
16605      ;;
16606    motorola)
16607      need_lib_prefix=no
16608      need_version=no
16609      shlibpath_overrides_runpath=no
16610      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16611      ;;
16612  esac
16613  ;;
16614
16615sysv4*MP*)
16616  if test -d /usr/nec ;then
16617    version_type=linux # correct to gnu/linux during the next big refactor
16618    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16619    soname_spec='$libname${shared_ext}.$major'
16620    shlibpath_var=LD_LIBRARY_PATH
16621  fi
16622  ;;
16623
16624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16625  version_type=freebsd-elf
16626  need_lib_prefix=no
16627  need_version=no
16628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16629  soname_spec='${libname}${release}${shared_ext}$major'
16630  shlibpath_var=LD_LIBRARY_PATH
16631  shlibpath_overrides_runpath=yes
16632  hardcode_into_libs=yes
16633  if test "$with_gnu_ld" = yes; then
16634    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16635  else
16636    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16637    case $host_os in
16638      sco3.2v5*)
16639        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16640	;;
16641    esac
16642  fi
16643  sys_lib_dlsearch_path_spec='/usr/lib'
16644  ;;
16645
16646tpf*)
16647  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16648  version_type=linux # correct to gnu/linux during the next big refactor
16649  need_lib_prefix=no
16650  need_version=no
16651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652  shlibpath_var=LD_LIBRARY_PATH
16653  shlibpath_overrides_runpath=no
16654  hardcode_into_libs=yes
16655  ;;
16656
16657uts4*)
16658  version_type=linux # correct to gnu/linux during the next big refactor
16659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660  soname_spec='${libname}${release}${shared_ext}$major'
16661  shlibpath_var=LD_LIBRARY_PATH
16662  ;;
16663
16664*)
16665  dynamic_linker=no
16666  ;;
16667esac
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16669$as_echo "$dynamic_linker" >&6; }
16670test "$dynamic_linker" = no && can_build_shared=no
16671
16672variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16673if test "$GCC" = yes; then
16674  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16675fi
16676
16677if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16678  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16679fi
16680if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16681  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16682fi
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
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16776$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16777hardcode_action=
16778if test -n "$hardcode_libdir_flag_spec" ||
16779   test -n "$runpath_var" ||
16780   test "X$hardcode_automatic" = "Xyes" ; then
16781
16782  # We can hardcode non-existent directories.
16783  if test "$hardcode_direct" != no &&
16784     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16785     # have to relink, otherwise we might link with an installed library
16786     # when we should be linking with a yet-to-be-installed one
16787     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16788     test "$hardcode_minus_L" != no; then
16789    # Linking always hardcodes the temporary library directory.
16790    hardcode_action=relink
16791  else
16792    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16793    hardcode_action=immediate
16794  fi
16795else
16796  # We cannot hardcode anything, or else we can only hardcode existing
16797  # directories.
16798  hardcode_action=unsupported
16799fi
16800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16801$as_echo "$hardcode_action" >&6; }
16802
16803if test "$hardcode_action" = relink ||
16804   test "$inherit_rpath" = yes; then
16805  # Fast installation is not supported
16806  enable_fast_install=no
16807elif test "$shlibpath_overrides_runpath" = yes ||
16808     test "$enable_shared" = no; then
16809  # Fast installation is not necessary
16810  enable_fast_install=needless
16811fi
16812
16813
16814
16815
16816
16817
16818  if test "x$enable_dlopen" != xyes; then
16819  enable_dlopen=unknown
16820  enable_dlopen_self=unknown
16821  enable_dlopen_self_static=unknown
16822else
16823  lt_cv_dlopen=no
16824  lt_cv_dlopen_libs=
16825
16826  case $host_os in
16827  beos*)
16828    lt_cv_dlopen="load_add_on"
16829    lt_cv_dlopen_libs=
16830    lt_cv_dlopen_self=yes
16831    ;;
16832
16833  mingw* | pw32* | cegcc*)
16834    lt_cv_dlopen="LoadLibrary"
16835    lt_cv_dlopen_libs=
16836    ;;
16837
16838  cygwin*)
16839    lt_cv_dlopen="dlopen"
16840    lt_cv_dlopen_libs=
16841    ;;
16842
16843  darwin*)
16844  # if libdl is installed we need to link against it
16845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16846$as_echo_n "checking for dlopen in -ldl... " >&6; }
16847if ${ac_cv_lib_dl_dlopen+:} false; then :
16848  $as_echo_n "(cached) " >&6
16849else
16850  ac_check_lib_save_LIBS=$LIBS
16851LIBS="-ldl  $LIBS"
16852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h.  */
16854
16855/* Override any GCC internal prototype to avoid an error.
16856   Use char because int might match the return type of a GCC
16857   builtin and then its argument prototype would still apply.  */
16858#ifdef __cplusplus
16859extern "C"
16860#endif
16861char dlopen ();
16862int
16863main ()
16864{
16865return dlopen ();
16866  ;
16867  return 0;
16868}
16869_ACEOF
16870if ac_fn_c_try_link "$LINENO"; then :
16871  ac_cv_lib_dl_dlopen=yes
16872else
16873  ac_cv_lib_dl_dlopen=no
16874fi
16875rm -f core conftest.err conftest.$ac_objext \
16876    conftest$ac_exeext conftest.$ac_ext
16877LIBS=$ac_check_lib_save_LIBS
16878fi
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16880$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16881if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16882  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16883else
16884
16885    lt_cv_dlopen="dyld"
16886    lt_cv_dlopen_libs=
16887    lt_cv_dlopen_self=yes
16888
16889fi
16890
16891    ;;
16892
16893  *)
16894    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16895if test "x$ac_cv_func_shl_load" = xyes; then :
16896  lt_cv_dlopen="shl_load"
16897else
16898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16899$as_echo_n "checking for shl_load in -ldld... " >&6; }
16900if ${ac_cv_lib_dld_shl_load+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903  ac_check_lib_save_LIBS=$LIBS
16904LIBS="-ldld  $LIBS"
16905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h.  */
16907
16908/* Override any GCC internal prototype to avoid an error.
16909   Use char because int might match the return type of a GCC
16910   builtin and then its argument prototype would still apply.  */
16911#ifdef __cplusplus
16912extern "C"
16913#endif
16914char shl_load ();
16915int
16916main ()
16917{
16918return shl_load ();
16919  ;
16920  return 0;
16921}
16922_ACEOF
16923if ac_fn_c_try_link "$LINENO"; then :
16924  ac_cv_lib_dld_shl_load=yes
16925else
16926  ac_cv_lib_dld_shl_load=no
16927fi
16928rm -f core conftest.err conftest.$ac_objext \
16929    conftest$ac_exeext conftest.$ac_ext
16930LIBS=$ac_check_lib_save_LIBS
16931fi
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16933$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16934if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16935  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16936else
16937  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16938if test "x$ac_cv_func_dlopen" = xyes; then :
16939  lt_cv_dlopen="dlopen"
16940else
16941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16942$as_echo_n "checking for dlopen in -ldl... " >&6; }
16943if ${ac_cv_lib_dl_dlopen+:} false; then :
16944  $as_echo_n "(cached) " >&6
16945else
16946  ac_check_lib_save_LIBS=$LIBS
16947LIBS="-ldl  $LIBS"
16948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949/* end confdefs.h.  */
16950
16951/* Override any GCC internal prototype to avoid an error.
16952   Use char because int might match the return type of a GCC
16953   builtin and then its argument prototype would still apply.  */
16954#ifdef __cplusplus
16955extern "C"
16956#endif
16957char dlopen ();
16958int
16959main ()
16960{
16961return dlopen ();
16962  ;
16963  return 0;
16964}
16965_ACEOF
16966if ac_fn_c_try_link "$LINENO"; then :
16967  ac_cv_lib_dl_dlopen=yes
16968else
16969  ac_cv_lib_dl_dlopen=no
16970fi
16971rm -f core conftest.err conftest.$ac_objext \
16972    conftest$ac_exeext conftest.$ac_ext
16973LIBS=$ac_check_lib_save_LIBS
16974fi
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16976$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16977if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16978  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16979else
16980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16981$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16982if ${ac_cv_lib_svld_dlopen+:} false; then :
16983  $as_echo_n "(cached) " >&6
16984else
16985  ac_check_lib_save_LIBS=$LIBS
16986LIBS="-lsvld  $LIBS"
16987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h.  */
16989
16990/* Override any GCC internal prototype to avoid an error.
16991   Use char because int might match the return type of a GCC
16992   builtin and then its argument prototype would still apply.  */
16993#ifdef __cplusplus
16994extern "C"
16995#endif
16996char dlopen ();
16997int
16998main ()
16999{
17000return dlopen ();
17001  ;
17002  return 0;
17003}
17004_ACEOF
17005if ac_fn_c_try_link "$LINENO"; then :
17006  ac_cv_lib_svld_dlopen=yes
17007else
17008  ac_cv_lib_svld_dlopen=no
17009fi
17010rm -f core conftest.err conftest.$ac_objext \
17011    conftest$ac_exeext conftest.$ac_ext
17012LIBS=$ac_check_lib_save_LIBS
17013fi
17014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17015$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17016if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17017  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17018else
17019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17020$as_echo_n "checking for dld_link in -ldld... " >&6; }
17021if ${ac_cv_lib_dld_dld_link+:} false; then :
17022  $as_echo_n "(cached) " >&6
17023else
17024  ac_check_lib_save_LIBS=$LIBS
17025LIBS="-ldld  $LIBS"
17026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027/* end confdefs.h.  */
17028
17029/* Override any GCC internal prototype to avoid an error.
17030   Use char because int might match the return type of a GCC
17031   builtin and then its argument prototype would still apply.  */
17032#ifdef __cplusplus
17033extern "C"
17034#endif
17035char dld_link ();
17036int
17037main ()
17038{
17039return dld_link ();
17040  ;
17041  return 0;
17042}
17043_ACEOF
17044if ac_fn_c_try_link "$LINENO"; then :
17045  ac_cv_lib_dld_dld_link=yes
17046else
17047  ac_cv_lib_dld_dld_link=no
17048fi
17049rm -f core conftest.err conftest.$ac_objext \
17050    conftest$ac_exeext conftest.$ac_ext
17051LIBS=$ac_check_lib_save_LIBS
17052fi
17053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17054$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17055if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17056  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17057fi
17058
17059
17060fi
17061
17062
17063fi
17064
17065
17066fi
17067
17068
17069fi
17070
17071
17072fi
17073
17074    ;;
17075  esac
17076
17077  if test "x$lt_cv_dlopen" != xno; then
17078    enable_dlopen=yes
17079  else
17080    enable_dlopen=no
17081  fi
17082
17083  case $lt_cv_dlopen in
17084  dlopen)
17085    save_CPPFLAGS="$CPPFLAGS"
17086    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17087
17088    save_LDFLAGS="$LDFLAGS"
17089    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17090
17091    save_LIBS="$LIBS"
17092    LIBS="$lt_cv_dlopen_libs $LIBS"
17093
17094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17095$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17096if ${lt_cv_dlopen_self+:} false; then :
17097  $as_echo_n "(cached) " >&6
17098else
17099  	  if test "$cross_compiling" = yes; then :
17100  lt_cv_dlopen_self=cross
17101else
17102  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17103  lt_status=$lt_dlunknown
17104  cat > conftest.$ac_ext <<_LT_EOF
17105#line $LINENO "configure"
17106#include "confdefs.h"
17107
17108#if HAVE_DLFCN_H
17109#include <dlfcn.h>
17110#endif
17111
17112#include <stdio.h>
17113
17114#ifdef RTLD_GLOBAL
17115#  define LT_DLGLOBAL		RTLD_GLOBAL
17116#else
17117#  ifdef DL_GLOBAL
17118#    define LT_DLGLOBAL		DL_GLOBAL
17119#  else
17120#    define LT_DLGLOBAL		0
17121#  endif
17122#endif
17123
17124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17125   find out it does not work in some platform. */
17126#ifndef LT_DLLAZY_OR_NOW
17127#  ifdef RTLD_LAZY
17128#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17129#  else
17130#    ifdef DL_LAZY
17131#      define LT_DLLAZY_OR_NOW		DL_LAZY
17132#    else
17133#      ifdef RTLD_NOW
17134#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17135#      else
17136#        ifdef DL_NOW
17137#          define LT_DLLAZY_OR_NOW	DL_NOW
17138#        else
17139#          define LT_DLLAZY_OR_NOW	0
17140#        endif
17141#      endif
17142#    endif
17143#  endif
17144#endif
17145
17146/* When -fvisbility=hidden is used, assume the code has been annotated
17147   correspondingly for the symbols needed.  */
17148#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17149int fnord () __attribute__((visibility("default")));
17150#endif
17151
17152int fnord () { return 42; }
17153int main ()
17154{
17155  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17156  int status = $lt_dlunknown;
17157
17158  if (self)
17159    {
17160      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17161      else
17162        {
17163	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17164          else puts (dlerror ());
17165	}
17166      /* dlclose (self); */
17167    }
17168  else
17169    puts (dlerror ());
17170
17171  return status;
17172}
17173_LT_EOF
17174  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17175  (eval $ac_link) 2>&5
17176  ac_status=$?
17177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17179    (./conftest; exit; ) >&5 2>/dev/null
17180    lt_status=$?
17181    case x$lt_status in
17182      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17183      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17184      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17185    esac
17186  else :
17187    # compilation failed
17188    lt_cv_dlopen_self=no
17189  fi
17190fi
17191rm -fr conftest*
17192
17193
17194fi
17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17196$as_echo "$lt_cv_dlopen_self" >&6; }
17197
17198    if test "x$lt_cv_dlopen_self" = xyes; then
17199      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17200      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17201$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17202if ${lt_cv_dlopen_self_static+:} false; then :
17203  $as_echo_n "(cached) " >&6
17204else
17205  	  if test "$cross_compiling" = yes; then :
17206  lt_cv_dlopen_self_static=cross
17207else
17208  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17209  lt_status=$lt_dlunknown
17210  cat > conftest.$ac_ext <<_LT_EOF
17211#line $LINENO "configure"
17212#include "confdefs.h"
17213
17214#if HAVE_DLFCN_H
17215#include <dlfcn.h>
17216#endif
17217
17218#include <stdio.h>
17219
17220#ifdef RTLD_GLOBAL
17221#  define LT_DLGLOBAL		RTLD_GLOBAL
17222#else
17223#  ifdef DL_GLOBAL
17224#    define LT_DLGLOBAL		DL_GLOBAL
17225#  else
17226#    define LT_DLGLOBAL		0
17227#  endif
17228#endif
17229
17230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17231   find out it does not work in some platform. */
17232#ifndef LT_DLLAZY_OR_NOW
17233#  ifdef RTLD_LAZY
17234#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17235#  else
17236#    ifdef DL_LAZY
17237#      define LT_DLLAZY_OR_NOW		DL_LAZY
17238#    else
17239#      ifdef RTLD_NOW
17240#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17241#      else
17242#        ifdef DL_NOW
17243#          define LT_DLLAZY_OR_NOW	DL_NOW
17244#        else
17245#          define LT_DLLAZY_OR_NOW	0
17246#        endif
17247#      endif
17248#    endif
17249#  endif
17250#endif
17251
17252/* When -fvisbility=hidden is used, assume the code has been annotated
17253   correspondingly for the symbols needed.  */
17254#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17255int fnord () __attribute__((visibility("default")));
17256#endif
17257
17258int fnord () { return 42; }
17259int main ()
17260{
17261  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17262  int status = $lt_dlunknown;
17263
17264  if (self)
17265    {
17266      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17267      else
17268        {
17269	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17270          else puts (dlerror ());
17271	}
17272      /* dlclose (self); */
17273    }
17274  else
17275    puts (dlerror ());
17276
17277  return status;
17278}
17279_LT_EOF
17280  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17281  (eval $ac_link) 2>&5
17282  ac_status=$?
17283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17284  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17285    (./conftest; exit; ) >&5 2>/dev/null
17286    lt_status=$?
17287    case x$lt_status in
17288      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17289      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17290      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17291    esac
17292  else :
17293    # compilation failed
17294    lt_cv_dlopen_self_static=no
17295  fi
17296fi
17297rm -fr conftest*
17298
17299
17300fi
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17302$as_echo "$lt_cv_dlopen_self_static" >&6; }
17303    fi
17304
17305    CPPFLAGS="$save_CPPFLAGS"
17306    LDFLAGS="$save_LDFLAGS"
17307    LIBS="$save_LIBS"
17308    ;;
17309  esac
17310
17311  case $lt_cv_dlopen_self in
17312  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17313  *) enable_dlopen_self=unknown ;;
17314  esac
17315
17316  case $lt_cv_dlopen_self_static in
17317  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17318  *) enable_dlopen_self_static=unknown ;;
17319  esac
17320fi
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338striplib=
17339old_striplib=
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17341$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17342if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17343  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17344  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17346$as_echo "yes" >&6; }
17347else
17348# FIXME - insert some real tests, host_os isn't really good enough
17349  case $host_os in
17350  darwin*)
17351    if test -n "$STRIP" ; then
17352      striplib="$STRIP -x"
17353      old_striplib="$STRIP -S"
17354      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17355$as_echo "yes" >&6; }
17356    else
17357      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358$as_echo "no" >&6; }
17359    fi
17360    ;;
17361  *)
17362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363$as_echo "no" >&6; }
17364    ;;
17365  esac
17366fi
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379  # Report which library types will actually be built
17380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17381$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17383$as_echo "$can_build_shared" >&6; }
17384
17385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17386$as_echo_n "checking whether to build shared libraries... " >&6; }
17387  test "$can_build_shared" = "no" && enable_shared=no
17388
17389  # On AIX, shared libraries and static libraries use the same namespace, and
17390  # are all built from PIC.
17391  case $host_os in
17392  aix3*)
17393    test "$enable_shared" = yes && enable_static=no
17394    if test -n "$RANLIB"; then
17395      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17396      postinstall_cmds='$RANLIB $lib'
17397    fi
17398    ;;
17399
17400  aix[4-9]*)
17401    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17402      test "$enable_shared" = yes && enable_static=no
17403    fi
17404    ;;
17405  esac
17406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17407$as_echo "$enable_shared" >&6; }
17408
17409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17410$as_echo_n "checking whether to build static libraries... " >&6; }
17411  # Make sure either enable_shared or enable_static is yes.
17412  test "$enable_shared" = yes || enable_static=yes
17413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17414$as_echo "$enable_static" >&6; }
17415
17416
17417
17418
17419fi
17420ac_ext=c
17421ac_cpp='$CPP $CPPFLAGS'
17422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424ac_compiler_gnu=$ac_cv_c_compiler_gnu
17425
17426CC="$lt_save_CC"
17427
17428      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17429    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17430    (test "X$CXX" != "Xg++"))) ; then
17431  ac_ext=cpp
17432ac_cpp='$CXXCPP $CPPFLAGS'
17433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17437$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17438if test -z "$CXXCPP"; then
17439  if ${ac_cv_prog_CXXCPP+:} false; then :
17440  $as_echo_n "(cached) " >&6
17441else
17442      # Double quotes because CXXCPP needs to be expanded
17443    for CXXCPP in "$CXX -E" "/lib/cpp"
17444    do
17445      ac_preproc_ok=false
17446for ac_cxx_preproc_warn_flag in '' yes
17447do
17448  # Use a header file that comes with gcc, so configuring glibc
17449  # with a fresh cross-compiler works.
17450  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451  # <limits.h> exists even on freestanding compilers.
17452  # On the NeXT, cc -E runs the code through the compiler's parser,
17453  # not just through cpp. "Syntax error" is here to catch this case.
17454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456#ifdef __STDC__
17457# include <limits.h>
17458#else
17459# include <assert.h>
17460#endif
17461		     Syntax error
17462_ACEOF
17463if ac_fn_cxx_try_cpp "$LINENO"; then :
17464
17465else
17466  # Broken: fails on valid input.
17467continue
17468fi
17469rm -f conftest.err conftest.i conftest.$ac_ext
17470
17471  # OK, works on sane cases.  Now check whether nonexistent headers
17472  # can be detected and how.
17473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474/* end confdefs.h.  */
17475#include <ac_nonexistent.h>
17476_ACEOF
17477if ac_fn_cxx_try_cpp "$LINENO"; then :
17478  # Broken: success on invalid input.
17479continue
17480else
17481  # Passes both tests.
17482ac_preproc_ok=:
17483break
17484fi
17485rm -f conftest.err conftest.i conftest.$ac_ext
17486
17487done
17488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17489rm -f conftest.i conftest.err conftest.$ac_ext
17490if $ac_preproc_ok; then :
17491  break
17492fi
17493
17494    done
17495    ac_cv_prog_CXXCPP=$CXXCPP
17496
17497fi
17498  CXXCPP=$ac_cv_prog_CXXCPP
17499else
17500  ac_cv_prog_CXXCPP=$CXXCPP
17501fi
17502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17503$as_echo "$CXXCPP" >&6; }
17504ac_preproc_ok=false
17505for ac_cxx_preproc_warn_flag in '' yes
17506do
17507  # Use a header file that comes with gcc, so configuring glibc
17508  # with a fresh cross-compiler works.
17509  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510  # <limits.h> exists even on freestanding compilers.
17511  # On the NeXT, cc -E runs the code through the compiler's parser,
17512  # not just through cpp. "Syntax error" is here to catch this case.
17513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h.  */
17515#ifdef __STDC__
17516# include <limits.h>
17517#else
17518# include <assert.h>
17519#endif
17520		     Syntax error
17521_ACEOF
17522if ac_fn_cxx_try_cpp "$LINENO"; then :
17523
17524else
17525  # Broken: fails on valid input.
17526continue
17527fi
17528rm -f conftest.err conftest.i conftest.$ac_ext
17529
17530  # OK, works on sane cases.  Now check whether nonexistent headers
17531  # can be detected and how.
17532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h.  */
17534#include <ac_nonexistent.h>
17535_ACEOF
17536if ac_fn_cxx_try_cpp "$LINENO"; then :
17537  # Broken: success on invalid input.
17538continue
17539else
17540  # Passes both tests.
17541ac_preproc_ok=:
17542break
17543fi
17544rm -f conftest.err conftest.i conftest.$ac_ext
17545
17546done
17547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17548rm -f conftest.i conftest.err conftest.$ac_ext
17549if $ac_preproc_ok; then :
17550
17551else
17552  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17554as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17555See \`config.log' for more details" "$LINENO" 5; }
17556fi
17557
17558ac_ext=c
17559ac_cpp='$CPP $CPPFLAGS'
17560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562ac_compiler_gnu=$ac_cv_c_compiler_gnu
17563
17564else
17565  _lt_caught_CXX_error=yes
17566fi
17567
17568ac_ext=cpp
17569ac_cpp='$CXXCPP $CPPFLAGS'
17570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17573
17574archive_cmds_need_lc_CXX=no
17575allow_undefined_flag_CXX=
17576always_export_symbols_CXX=no
17577archive_expsym_cmds_CXX=
17578compiler_needs_object_CXX=no
17579export_dynamic_flag_spec_CXX=
17580hardcode_direct_CXX=no
17581hardcode_direct_absolute_CXX=no
17582hardcode_libdir_flag_spec_CXX=
17583hardcode_libdir_separator_CXX=
17584hardcode_minus_L_CXX=no
17585hardcode_shlibpath_var_CXX=unsupported
17586hardcode_automatic_CXX=no
17587inherit_rpath_CXX=no
17588module_cmds_CXX=
17589module_expsym_cmds_CXX=
17590link_all_deplibs_CXX=unknown
17591old_archive_cmds_CXX=$old_archive_cmds
17592reload_flag_CXX=$reload_flag
17593reload_cmds_CXX=$reload_cmds
17594no_undefined_flag_CXX=
17595whole_archive_flag_spec_CXX=
17596enable_shared_with_static_runtimes_CXX=no
17597
17598# Source file extension for C++ test sources.
17599ac_ext=cpp
17600
17601# Object file extension for compiled C++ test sources.
17602objext=o
17603objext_CXX=$objext
17604
17605# No sense in running all these tests if we already determined that
17606# the CXX compiler isn't working.  Some variables (like enable_shared)
17607# are currently assumed to apply to all compilers on this platform,
17608# and will be corrupted by setting them based on a non-working compiler.
17609if test "$_lt_caught_CXX_error" != yes; then
17610  # Code to be used in simple compile tests
17611  lt_simple_compile_test_code="int some_variable = 0;"
17612
17613  # Code to be used in simple link tests
17614  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17615
17616  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17617
17618
17619
17620
17621
17622
17623# If no C compiler was specified, use CC.
17624LTCC=${LTCC-"$CC"}
17625
17626# If no C compiler flags were specified, use CFLAGS.
17627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17628
17629# Allow CC to be a program name with arguments.
17630compiler=$CC
17631
17632
17633  # save warnings/boilerplate of simple test code
17634  ac_outfile=conftest.$ac_objext
17635echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17637_lt_compiler_boilerplate=`cat conftest.err`
17638$RM conftest*
17639
17640  ac_outfile=conftest.$ac_objext
17641echo "$lt_simple_link_test_code" >conftest.$ac_ext
17642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17643_lt_linker_boilerplate=`cat conftest.err`
17644$RM -r conftest*
17645
17646
17647  # Allow CC to be a program name with arguments.
17648  lt_save_CC=$CC
17649  lt_save_CFLAGS=$CFLAGS
17650  lt_save_LD=$LD
17651  lt_save_GCC=$GCC
17652  GCC=$GXX
17653  lt_save_with_gnu_ld=$with_gnu_ld
17654  lt_save_path_LD=$lt_cv_path_LD
17655  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17656    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17657  else
17658    $as_unset lt_cv_prog_gnu_ld
17659  fi
17660  if test -n "${lt_cv_path_LDCXX+set}"; then
17661    lt_cv_path_LD=$lt_cv_path_LDCXX
17662  else
17663    $as_unset lt_cv_path_LD
17664  fi
17665  test -z "${LDCXX+set}" || LD=$LDCXX
17666  CC=${CXX-"c++"}
17667  CFLAGS=$CXXFLAGS
17668  compiler=$CC
17669  compiler_CXX=$CC
17670  for cc_temp in $compiler""; do
17671  case $cc_temp in
17672    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17673    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17674    \-*) ;;
17675    *) break;;
17676  esac
17677done
17678cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17679
17680
17681  if test -n "$compiler"; then
17682    # We don't want -fno-exception when compiling C++ code, so set the
17683    # no_builtin_flag separately
17684    if test "$GXX" = yes; then
17685      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17686    else
17687      lt_prog_compiler_no_builtin_flag_CXX=
17688    fi
17689
17690    if test "$GXX" = yes; then
17691      # Set up default GNU C++ configuration
17692
17693
17694
17695# Check whether --with-gnu-ld was given.
17696if test "${with_gnu_ld+set}" = set; then :
17697  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17698else
17699  with_gnu_ld=no
17700fi
17701
17702ac_prog=ld
17703if test "$GCC" = yes; then
17704  # Check if gcc -print-prog-name=ld gives a path.
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17706$as_echo_n "checking for ld used by $CC... " >&6; }
17707  case $host in
17708  *-*-mingw*)
17709    # gcc leaves a trailing carriage return which upsets mingw
17710    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17711  *)
17712    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17713  esac
17714  case $ac_prog in
17715    # Accept absolute paths.
17716    [\\/]* | ?:[\\/]*)
17717      re_direlt='/[^/][^/]*/\.\./'
17718      # Canonicalize the pathname of ld
17719      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17720      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17721	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17722      done
17723      test -z "$LD" && LD="$ac_prog"
17724      ;;
17725  "")
17726    # If it fails, then pretend we aren't using GCC.
17727    ac_prog=ld
17728    ;;
17729  *)
17730    # If it is relative, then search for the first ld in PATH.
17731    with_gnu_ld=unknown
17732    ;;
17733  esac
17734elif test "$with_gnu_ld" = yes; then
17735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17736$as_echo_n "checking for GNU ld... " >&6; }
17737else
17738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17739$as_echo_n "checking for non-GNU ld... " >&6; }
17740fi
17741if ${lt_cv_path_LD+:} false; then :
17742  $as_echo_n "(cached) " >&6
17743else
17744  if test -z "$LD"; then
17745  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17746  for ac_dir in $PATH; do
17747    IFS="$lt_save_ifs"
17748    test -z "$ac_dir" && ac_dir=.
17749    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17750      lt_cv_path_LD="$ac_dir/$ac_prog"
17751      # Check to see if the program is GNU ld.  I'd rather use --version,
17752      # but apparently some variants of GNU ld only accept -v.
17753      # Break only if it was the GNU/non-GNU ld that we prefer.
17754      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17755      *GNU* | *'with BFD'*)
17756	test "$with_gnu_ld" != no && break
17757	;;
17758      *)
17759	test "$with_gnu_ld" != yes && break
17760	;;
17761      esac
17762    fi
17763  done
17764  IFS="$lt_save_ifs"
17765else
17766  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17767fi
17768fi
17769
17770LD="$lt_cv_path_LD"
17771if test -n "$LD"; then
17772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17773$as_echo "$LD" >&6; }
17774else
17775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776$as_echo "no" >&6; }
17777fi
17778test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17780$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17781if ${lt_cv_prog_gnu_ld+:} false; then :
17782  $as_echo_n "(cached) " >&6
17783else
17784  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17785case `$LD -v 2>&1 </dev/null` in
17786*GNU* | *'with BFD'*)
17787  lt_cv_prog_gnu_ld=yes
17788  ;;
17789*)
17790  lt_cv_prog_gnu_ld=no
17791  ;;
17792esac
17793fi
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17795$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17796with_gnu_ld=$lt_cv_prog_gnu_ld
17797
17798
17799
17800
17801
17802
17803
17804      # Check if GNU C++ uses GNU ld as the underlying linker, since the
17805      # archiving commands below assume that GNU ld is being used.
17806      if test "$with_gnu_ld" = yes; then
17807        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17808        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'
17809
17810        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17811        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17812
17813        # If archive_cmds runs LD, not CC, wlarc should be empty
17814        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17815        #     investigate it a little bit more. (MM)
17816        wlarc='${wl}'
17817
17818        # ancient GNU ld didn't support --whole-archive et. al.
17819        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17820	  $GREP 'no-whole-archive' > /dev/null; then
17821          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17822        else
17823          whole_archive_flag_spec_CXX=
17824        fi
17825      else
17826        with_gnu_ld=no
17827        wlarc=
17828
17829        # A generic and very simple default shared library creation
17830        # command for GNU C++ for the case where it uses the native
17831        # linker, instead of GNU ld.  If possible, this setting should
17832        # overridden to take advantage of the native linker features on
17833        # the platform it is being used on.
17834        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17835      fi
17836
17837      # Commands to make compiler produce verbose output that lists
17838      # what "hidden" libraries, object files and flags are used when
17839      # linking a shared library.
17840      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17841
17842    else
17843      GXX=no
17844      with_gnu_ld=no
17845      wlarc=
17846    fi
17847
17848    # PORTME: fill in a description of your system's C++ link characteristics
17849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17850$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17851    ld_shlibs_CXX=yes
17852    case $host_os in
17853      aix3*)
17854        # FIXME: insert proper C++ library support
17855        ld_shlibs_CXX=no
17856        ;;
17857      aix[4-9]*)
17858        if test "$host_cpu" = ia64; then
17859          # On IA64, the linker does run time linking by default, so we don't
17860          # have to do anything special.
17861          aix_use_runtimelinking=no
17862          exp_sym_flag='-Bexport'
17863          no_entry_flag=""
17864        else
17865          aix_use_runtimelinking=no
17866
17867          # Test if we are trying to use run time linking or normal
17868          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17869          # need to do runtime linking.
17870          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17871	    for ld_flag in $LDFLAGS; do
17872	      case $ld_flag in
17873	      *-brtl*)
17874	        aix_use_runtimelinking=yes
17875	        break
17876	        ;;
17877	      esac
17878	    done
17879	    ;;
17880          esac
17881
17882          exp_sym_flag='-bexport'
17883          no_entry_flag='-bnoentry'
17884        fi
17885
17886        # When large executables or shared objects are built, AIX ld can
17887        # have problems creating the table of contents.  If linking a library
17888        # or program results in "error TOC overflow" add -mminimal-toc to
17889        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17890        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17891
17892        archive_cmds_CXX=''
17893        hardcode_direct_CXX=yes
17894        hardcode_direct_absolute_CXX=yes
17895        hardcode_libdir_separator_CXX=':'
17896        link_all_deplibs_CXX=yes
17897        file_list_spec_CXX='${wl}-f,'
17898
17899        if test "$GXX" = yes; then
17900          case $host_os in aix4.[012]|aix4.[012].*)
17901          # We only want to do this on AIX 4.2 and lower, the check
17902          # below for broken collect2 doesn't work under 4.3+
17903	  collect2name=`${CC} -print-prog-name=collect2`
17904	  if test -f "$collect2name" &&
17905	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17906	  then
17907	    # We have reworked collect2
17908	    :
17909	  else
17910	    # We have old collect2
17911	    hardcode_direct_CXX=unsupported
17912	    # It fails to find uninstalled libraries when the uninstalled
17913	    # path is not listed in the libpath.  Setting hardcode_minus_L
17914	    # to unsupported forces relinking
17915	    hardcode_minus_L_CXX=yes
17916	    hardcode_libdir_flag_spec_CXX='-L$libdir'
17917	    hardcode_libdir_separator_CXX=
17918	  fi
17919          esac
17920          shared_flag='-shared'
17921	  if test "$aix_use_runtimelinking" = yes; then
17922	    shared_flag="$shared_flag "'${wl}-G'
17923	  fi
17924        else
17925          # not using gcc
17926          if test "$host_cpu" = ia64; then
17927	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17928	  # chokes on -Wl,-G. The following line is correct:
17929	  shared_flag='-G'
17930          else
17931	    if test "$aix_use_runtimelinking" = yes; then
17932	      shared_flag='${wl}-G'
17933	    else
17934	      shared_flag='${wl}-bM:SRE'
17935	    fi
17936          fi
17937        fi
17938
17939        export_dynamic_flag_spec_CXX='${wl}-bexpall'
17940        # It seems that -bexpall does not export symbols beginning with
17941        # underscore (_), so it is better to generate a list of symbols to
17942	# export.
17943        always_export_symbols_CXX=yes
17944        if test "$aix_use_runtimelinking" = yes; then
17945          # Warning - without using the other runtime loading flags (-brtl),
17946          # -berok will link without error, but may produce a broken library.
17947          allow_undefined_flag_CXX='-berok'
17948          # Determine the default libpath from the value encoded in an empty
17949          # executable.
17950          if test "${lt_cv_aix_libpath+set}" = set; then
17951  aix_libpath=$lt_cv_aix_libpath
17952else
17953  if ${lt_cv_aix_libpath__CXX+:} false; then :
17954  $as_echo_n "(cached) " >&6
17955else
17956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957/* end confdefs.h.  */
17958
17959int
17960main ()
17961{
17962
17963  ;
17964  return 0;
17965}
17966_ACEOF
17967if ac_fn_cxx_try_link "$LINENO"; then :
17968
17969  lt_aix_libpath_sed='
17970      /Import File Strings/,/^$/ {
17971	  /^0/ {
17972	      s/^0  *\([^ ]*\) *$/\1/
17973	      p
17974	  }
17975      }'
17976  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17977  # Check for a 64-bit object if we didn't find anything.
17978  if test -z "$lt_cv_aix_libpath__CXX"; then
17979    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17980  fi
17981fi
17982rm -f core conftest.err conftest.$ac_objext \
17983    conftest$ac_exeext conftest.$ac_ext
17984  if test -z "$lt_cv_aix_libpath__CXX"; then
17985    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17986  fi
17987
17988fi
17989
17990  aix_libpath=$lt_cv_aix_libpath__CXX
17991fi
17992
17993          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17994
17995          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"
17996        else
17997          if test "$host_cpu" = ia64; then
17998	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17999	    allow_undefined_flag_CXX="-z nodefs"
18000	    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"
18001          else
18002	    # Determine the default libpath from the value encoded in an
18003	    # empty executable.
18004	    if test "${lt_cv_aix_libpath+set}" = set; then
18005  aix_libpath=$lt_cv_aix_libpath
18006else
18007  if ${lt_cv_aix_libpath__CXX+:} false; then :
18008  $as_echo_n "(cached) " >&6
18009else
18010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011/* end confdefs.h.  */
18012
18013int
18014main ()
18015{
18016
18017  ;
18018  return 0;
18019}
18020_ACEOF
18021if ac_fn_cxx_try_link "$LINENO"; then :
18022
18023  lt_aix_libpath_sed='
18024      /Import File Strings/,/^$/ {
18025	  /^0/ {
18026	      s/^0  *\([^ ]*\) *$/\1/
18027	      p
18028	  }
18029      }'
18030  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18031  # Check for a 64-bit object if we didn't find anything.
18032  if test -z "$lt_cv_aix_libpath__CXX"; then
18033    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034  fi
18035fi
18036rm -f core conftest.err conftest.$ac_objext \
18037    conftest$ac_exeext conftest.$ac_ext
18038  if test -z "$lt_cv_aix_libpath__CXX"; then
18039    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18040  fi
18041
18042fi
18043
18044  aix_libpath=$lt_cv_aix_libpath__CXX
18045fi
18046
18047	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18048	    # Warning - without using the other run time loading flags,
18049	    # -berok will link without error, but may produce a broken library.
18050	    no_undefined_flag_CXX=' ${wl}-bernotok'
18051	    allow_undefined_flag_CXX=' ${wl}-berok'
18052	    if test "$with_gnu_ld" = yes; then
18053	      # We only use this code for GNU lds that support --whole-archive.
18054	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18055	    else
18056	      # Exported symbols can be pulled into shared objects from archives
18057	      whole_archive_flag_spec_CXX='$convenience'
18058	    fi
18059	    archive_cmds_need_lc_CXX=yes
18060	    # This is similar to how AIX traditionally builds its shared
18061	    # libraries.
18062	    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'
18063          fi
18064        fi
18065        ;;
18066
18067      beos*)
18068	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18069	  allow_undefined_flag_CXX=unsupported
18070	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18071	  # support --undefined.  This deserves some investigation.  FIXME
18072	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18073	else
18074	  ld_shlibs_CXX=no
18075	fi
18076	;;
18077
18078      chorus*)
18079        case $cc_basename in
18080          *)
18081	  # FIXME: insert proper C++ library support
18082	  ld_shlibs_CXX=no
18083	  ;;
18084        esac
18085        ;;
18086
18087      cygwin* | mingw* | pw32* | cegcc*)
18088	case $GXX,$cc_basename in
18089	,cl* | no,cl*)
18090	  # Native MSVC
18091	  # hardcode_libdir_flag_spec is actually meaningless, as there is
18092	  # no search path for DLLs.
18093	  hardcode_libdir_flag_spec_CXX=' '
18094	  allow_undefined_flag_CXX=unsupported
18095	  always_export_symbols_CXX=yes
18096	  file_list_spec_CXX='@'
18097	  # Tell ltmain to make .lib files, not .a files.
18098	  libext=lib
18099	  # Tell ltmain to make .dll files, not .so files.
18100	  shrext_cmds=".dll"
18101	  # FIXME: Setting linknames here is a bad hack.
18102	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18103	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18104	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18105	    else
18106	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18107	    fi~
18108	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18109	    linknames='
18110	  # The linker will not automatically build a static lib if we build a DLL.
18111	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18112	  enable_shared_with_static_runtimes_CXX=yes
18113	  # Don't use ranlib
18114	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
18115	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18116	    lt_tool_outputfile="@TOOL_OUTPUT@"~
18117	    case $lt_outputfile in
18118	      *.exe|*.EXE) ;;
18119	      *)
18120		lt_outputfile="$lt_outputfile.exe"
18121		lt_tool_outputfile="$lt_tool_outputfile.exe"
18122		;;
18123	    esac~
18124	    func_to_tool_file "$lt_outputfile"~
18125	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18126	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18127	      $RM "$lt_outputfile.manifest";
18128	    fi'
18129	  ;;
18130	*)
18131	  # g++
18132	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18133	  # as there is no search path for DLLs.
18134	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18135	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18136	  allow_undefined_flag_CXX=unsupported
18137	  always_export_symbols_CXX=no
18138	  enable_shared_with_static_runtimes_CXX=yes
18139
18140	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18141	    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'
18142	    # If the export-symbols file already is a .def file (1st line
18143	    # is EXPORTS), use it as is; otherwise, prepend...
18144	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18145	      cp $export_symbols $output_objdir/$soname.def;
18146	    else
18147	      echo EXPORTS > $output_objdir/$soname.def;
18148	      cat $export_symbols >> $output_objdir/$soname.def;
18149	    fi~
18150	    $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'
18151	  else
18152	    ld_shlibs_CXX=no
18153	  fi
18154	  ;;
18155	esac
18156	;;
18157      darwin* | rhapsody*)
18158
18159
18160  archive_cmds_need_lc_CXX=no
18161  hardcode_direct_CXX=no
18162  hardcode_automatic_CXX=yes
18163  hardcode_shlibpath_var_CXX=unsupported
18164  if test "$lt_cv_ld_force_load" = "yes"; then
18165    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\"`'
18166
18167  else
18168    whole_archive_flag_spec_CXX=''
18169  fi
18170  link_all_deplibs_CXX=yes
18171  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18172  case $cc_basename in
18173     ifort*) _lt_dar_can_shared=yes ;;
18174     *) _lt_dar_can_shared=$GCC ;;
18175  esac
18176  if test "$_lt_dar_can_shared" = "yes"; then
18177    output_verbose_link_cmd=func_echo_all
18178    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}"
18179    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18180    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}"
18181    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}"
18182       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18183      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}"
18184      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}"
18185    fi
18186
18187  else
18188  ld_shlibs_CXX=no
18189  fi
18190
18191	;;
18192
18193      dgux*)
18194        case $cc_basename in
18195          ec++*)
18196	    # FIXME: insert proper C++ library support
18197	    ld_shlibs_CXX=no
18198	    ;;
18199          ghcx*)
18200	    # Green Hills C++ Compiler
18201	    # FIXME: insert proper C++ library support
18202	    ld_shlibs_CXX=no
18203	    ;;
18204          *)
18205	    # FIXME: insert proper C++ library support
18206	    ld_shlibs_CXX=no
18207	    ;;
18208        esac
18209        ;;
18210
18211      freebsd2.*)
18212        # C++ shared libraries reported to be fairly broken before
18213	# switch to ELF
18214        ld_shlibs_CXX=no
18215        ;;
18216
18217      freebsd-elf*)
18218        archive_cmds_need_lc_CXX=no
18219        ;;
18220
18221      freebsd* | dragonfly*)
18222        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18223        # conventions
18224        ld_shlibs_CXX=yes
18225        ;;
18226
18227      gnu*)
18228        ;;
18229
18230      haiku*)
18231        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18232        link_all_deplibs_CXX=yes
18233        ;;
18234
18235      hpux9*)
18236        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18237        hardcode_libdir_separator_CXX=:
18238        export_dynamic_flag_spec_CXX='${wl}-E'
18239        hardcode_direct_CXX=yes
18240        hardcode_minus_L_CXX=yes # Not in the search PATH,
18241				             # but as the default
18242				             # location of the library.
18243
18244        case $cc_basename in
18245          CC*)
18246            # FIXME: insert proper C++ library support
18247            ld_shlibs_CXX=no
18248            ;;
18249          aCC*)
18250            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'
18251            # Commands to make compiler produce verbose output that lists
18252            # what "hidden" libraries, object files and flags are used when
18253            # linking a shared library.
18254            #
18255            # There doesn't appear to be a way to prevent this compiler from
18256            # explicitly linking system object files so we need to strip them
18257            # from the output so that they don't get included in the library
18258            # dependencies.
18259            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"'
18260            ;;
18261          *)
18262            if test "$GXX" = yes; then
18263              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'
18264            else
18265              # FIXME: insert proper C++ library support
18266              ld_shlibs_CXX=no
18267            fi
18268            ;;
18269        esac
18270        ;;
18271
18272      hpux10*|hpux11*)
18273        if test $with_gnu_ld = no; then
18274	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18275	  hardcode_libdir_separator_CXX=:
18276
18277          case $host_cpu in
18278            hppa*64*|ia64*)
18279              ;;
18280            *)
18281	      export_dynamic_flag_spec_CXX='${wl}-E'
18282              ;;
18283          esac
18284        fi
18285        case $host_cpu in
18286          hppa*64*|ia64*)
18287            hardcode_direct_CXX=no
18288            hardcode_shlibpath_var_CXX=no
18289            ;;
18290          *)
18291            hardcode_direct_CXX=yes
18292            hardcode_direct_absolute_CXX=yes
18293            hardcode_minus_L_CXX=yes # Not in the search PATH,
18294					         # but as the default
18295					         # location of the library.
18296            ;;
18297        esac
18298
18299        case $cc_basename in
18300          CC*)
18301	    # FIXME: insert proper C++ library support
18302	    ld_shlibs_CXX=no
18303	    ;;
18304          aCC*)
18305	    case $host_cpu in
18306	      hppa*64*)
18307	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18308	        ;;
18309	      ia64*)
18310	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18311	        ;;
18312	      *)
18313	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18314	        ;;
18315	    esac
18316	    # Commands to make compiler produce verbose output that lists
18317	    # what "hidden" libraries, object files and flags are used when
18318	    # linking a shared library.
18319	    #
18320	    # There doesn't appear to be a way to prevent this compiler from
18321	    # explicitly linking system object files so we need to strip them
18322	    # from the output so that they don't get included in the library
18323	    # dependencies.
18324	    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"'
18325	    ;;
18326          *)
18327	    if test "$GXX" = yes; then
18328	      if test $with_gnu_ld = no; then
18329	        case $host_cpu in
18330	          hppa*64*)
18331	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18332	            ;;
18333	          ia64*)
18334	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18335	            ;;
18336	          *)
18337	            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'
18338	            ;;
18339	        esac
18340	      fi
18341	    else
18342	      # FIXME: insert proper C++ library support
18343	      ld_shlibs_CXX=no
18344	    fi
18345	    ;;
18346        esac
18347        ;;
18348
18349      interix[3-9]*)
18350	hardcode_direct_CXX=no
18351	hardcode_shlibpath_var_CXX=no
18352	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18353	export_dynamic_flag_spec_CXX='${wl}-E'
18354	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18355	# Instead, shared libraries are loaded at an image base (0x10000000 by
18356	# default) and relocated if they conflict, which is a slow very memory
18357	# consuming and fragmenting process.  To avoid this, we pick a random,
18358	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18359	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18360	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'
18361	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'
18362	;;
18363      irix5* | irix6*)
18364        case $cc_basename in
18365          CC*)
18366	    # SGI C++
18367	    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'
18368
18369	    # Archives containing C++ object files must be created using
18370	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18371	    # necessary to make sure instantiated templates are included
18372	    # in the archive.
18373	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18374	    ;;
18375          *)
18376	    if test "$GXX" = yes; then
18377	      if test "$with_gnu_ld" = no; then
18378	        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'
18379	      else
18380	        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'
18381	      fi
18382	    fi
18383	    link_all_deplibs_CXX=yes
18384	    ;;
18385        esac
18386        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18387        hardcode_libdir_separator_CXX=:
18388        inherit_rpath_CXX=yes
18389        ;;
18390
18391      linux* | k*bsd*-gnu | kopensolaris*-gnu)
18392        case $cc_basename in
18393          KCC*)
18394	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18395
18396	    # KCC will only create a shared library if the output file
18397	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18398	    # to its proper name (with version) after linking.
18399	    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'
18400	    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'
18401	    # Commands to make compiler produce verbose output that lists
18402	    # what "hidden" libraries, object files and flags are used when
18403	    # linking a shared library.
18404	    #
18405	    # There doesn't appear to be a way to prevent this compiler from
18406	    # explicitly linking system object files so we need to strip them
18407	    # from the output so that they don't get included in the library
18408	    # dependencies.
18409	    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"'
18410
18411	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18412	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18413
18414	    # Archives containing C++ object files must be created using
18415	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18416	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18417	    ;;
18418	  icpc* | ecpc* )
18419	    # Intel C++
18420	    with_gnu_ld=yes
18421	    # version 8.0 and above of icpc choke on multiply defined symbols
18422	    # if we add $predep_objects and $postdep_objects, however 7.1 and
18423	    # earlier do not add the objects themselves.
18424	    case `$CC -V 2>&1` in
18425	      *"Version 7."*)
18426	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18427		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'
18428		;;
18429	      *)  # Version 8.0 or newer
18430	        tmp_idyn=
18431	        case $host_cpu in
18432		  ia64*) tmp_idyn=' -i_dynamic';;
18433		esac
18434	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18435		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'
18436		;;
18437	    esac
18438	    archive_cmds_need_lc_CXX=no
18439	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18440	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18441	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18442	    ;;
18443          pgCC* | pgcpp*)
18444            # Portland Group C++ compiler
18445	    case `$CC -V` in
18446	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18447	      prelink_cmds_CXX='tpldir=Template.dir~
18448		rm -rf $tpldir~
18449		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18450		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18451	      old_archive_cmds_CXX='tpldir=Template.dir~
18452		rm -rf $tpldir~
18453		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18454		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18455		$RANLIB $oldlib'
18456	      archive_cmds_CXX='tpldir=Template.dir~
18457		rm -rf $tpldir~
18458		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18459		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18460	      archive_expsym_cmds_CXX='tpldir=Template.dir~
18461		rm -rf $tpldir~
18462		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18463		$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'
18464	      ;;
18465	    *) # Version 6 and above use weak symbols
18466	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18467	      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'
18468	      ;;
18469	    esac
18470
18471	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18472	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18473	    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'
18474            ;;
18475	  cxx*)
18476	    # Compaq C++
18477	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18478	    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'
18479
18480	    runpath_var=LD_RUN_PATH
18481	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18482	    hardcode_libdir_separator_CXX=:
18483
18484	    # Commands to make compiler produce verbose output that lists
18485	    # what "hidden" libraries, object files and flags are used when
18486	    # linking a shared library.
18487	    #
18488	    # There doesn't appear to be a way to prevent this compiler from
18489	    # explicitly linking system object files so we need to strip them
18490	    # from the output so that they don't get included in the library
18491	    # dependencies.
18492	    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'
18493	    ;;
18494	  xl* | mpixl* | bgxl*)
18495	    # IBM XL 8.0 on PPC, with GNU ld
18496	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18497	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18498	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18499	    if test "x$supports_anon_versioning" = xyes; then
18500	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18501		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18502		echo "local: *; };" >> $output_objdir/$libname.ver~
18503		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18504	    fi
18505	    ;;
18506	  *)
18507	    case `$CC -V 2>&1 | sed 5q` in
18508	    *Sun\ C*)
18509	      # Sun C++ 5.9
18510	      no_undefined_flag_CXX=' -zdefs'
18511	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18512	      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'
18513	      hardcode_libdir_flag_spec_CXX='-R$libdir'
18514	      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'
18515	      compiler_needs_object_CXX=yes
18516
18517	      # Not sure whether something based on
18518	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18519	      # would be better.
18520	      output_verbose_link_cmd='func_echo_all'
18521
18522	      # Archives containing C++ object files must be created using
18523	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18524	      # necessary to make sure instantiated templates are included
18525	      # in the archive.
18526	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18527	      ;;
18528	    esac
18529	    ;;
18530	esac
18531	;;
18532
18533      lynxos*)
18534        # FIXME: insert proper C++ library support
18535	ld_shlibs_CXX=no
18536	;;
18537
18538      m88k*)
18539        # FIXME: insert proper C++ library support
18540        ld_shlibs_CXX=no
18541	;;
18542
18543      mvs*)
18544        case $cc_basename in
18545          cxx*)
18546	    # FIXME: insert proper C++ library support
18547	    ld_shlibs_CXX=no
18548	    ;;
18549	  *)
18550	    # FIXME: insert proper C++ library support
18551	    ld_shlibs_CXX=no
18552	    ;;
18553	esac
18554	;;
18555
18556      netbsd*)
18557        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18558	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18559	  wlarc=
18560	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18561	  hardcode_direct_CXX=yes
18562	  hardcode_shlibpath_var_CXX=no
18563	fi
18564	# Workaround some broken pre-1.5 toolchains
18565	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18566	;;
18567
18568      *nto* | *qnx*)
18569        ld_shlibs_CXX=yes
18570	;;
18571
18572      openbsd2*)
18573        # C++ shared libraries are fairly broken
18574	ld_shlibs_CXX=no
18575	;;
18576
18577      openbsd*)
18578	if test -f /usr/libexec/ld.so; then
18579	  hardcode_direct_CXX=yes
18580	  hardcode_shlibpath_var_CXX=no
18581	  hardcode_direct_absolute_CXX=yes
18582	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18583	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18584	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18585	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18586	    export_dynamic_flag_spec_CXX='${wl}-E'
18587	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18588	  fi
18589	  output_verbose_link_cmd=func_echo_all
18590	else
18591	  ld_shlibs_CXX=no
18592	fi
18593	;;
18594
18595      osf3* | osf4* | osf5*)
18596        case $cc_basename in
18597          KCC*)
18598	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18599
18600	    # KCC will only create a shared library if the output file
18601	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18602	    # to its proper name (with version) after linking.
18603	    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'
18604
18605	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18606	    hardcode_libdir_separator_CXX=:
18607
18608	    # Archives containing C++ object files must be created using
18609	    # the KAI C++ compiler.
18610	    case $host in
18611	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18612	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18613	    esac
18614	    ;;
18615          RCC*)
18616	    # Rational C++ 2.4.1
18617	    # FIXME: insert proper C++ library support
18618	    ld_shlibs_CXX=no
18619	    ;;
18620          cxx*)
18621	    case $host in
18622	      osf3*)
18623	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18624	        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'
18625	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18626		;;
18627	      *)
18628	        allow_undefined_flag_CXX=' -expect_unresolved \*'
18629	        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'
18630	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18631	          echo "-hidden">> $lib.exp~
18632	          $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~
18633	          $RM $lib.exp'
18634	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18635		;;
18636	    esac
18637
18638	    hardcode_libdir_separator_CXX=:
18639
18640	    # Commands to make compiler produce verbose output that lists
18641	    # what "hidden" libraries, object files and flags are used when
18642	    # linking a shared library.
18643	    #
18644	    # There doesn't appear to be a way to prevent this compiler from
18645	    # explicitly linking system object files so we need to strip them
18646	    # from the output so that they don't get included in the library
18647	    # dependencies.
18648	    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"'
18649	    ;;
18650	  *)
18651	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18652	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18653	      case $host in
18654	        osf3*)
18655	          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'
18656		  ;;
18657	        *)
18658	          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'
18659		  ;;
18660	      esac
18661
18662	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18663	      hardcode_libdir_separator_CXX=:
18664
18665	      # Commands to make compiler produce verbose output that lists
18666	      # what "hidden" libraries, object files and flags are used when
18667	      # linking a shared library.
18668	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18669
18670	    else
18671	      # FIXME: insert proper C++ library support
18672	      ld_shlibs_CXX=no
18673	    fi
18674	    ;;
18675        esac
18676        ;;
18677
18678      psos*)
18679        # FIXME: insert proper C++ library support
18680        ld_shlibs_CXX=no
18681        ;;
18682
18683      sunos4*)
18684        case $cc_basename in
18685          CC*)
18686	    # Sun C++ 4.x
18687	    # FIXME: insert proper C++ library support
18688	    ld_shlibs_CXX=no
18689	    ;;
18690          lcc*)
18691	    # Lucid
18692	    # FIXME: insert proper C++ library support
18693	    ld_shlibs_CXX=no
18694	    ;;
18695          *)
18696	    # FIXME: insert proper C++ library support
18697	    ld_shlibs_CXX=no
18698	    ;;
18699        esac
18700        ;;
18701
18702      solaris*)
18703        case $cc_basename in
18704          CC* | sunCC*)
18705	    # Sun C++ 4.2, 5.x and Centerline C++
18706            archive_cmds_need_lc_CXX=yes
18707	    no_undefined_flag_CXX=' -zdefs'
18708	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18709	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18710	      $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'
18711
18712	    hardcode_libdir_flag_spec_CXX='-R$libdir'
18713	    hardcode_shlibpath_var_CXX=no
18714	    case $host_os in
18715	      solaris2.[0-5] | solaris2.[0-5].*) ;;
18716	      *)
18717		# The compiler driver will combine and reorder linker options,
18718		# but understands `-z linker_flag'.
18719	        # Supported since Solaris 2.6 (maybe 2.5.1?)
18720		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18721	        ;;
18722	    esac
18723	    link_all_deplibs_CXX=yes
18724
18725	    output_verbose_link_cmd='func_echo_all'
18726
18727	    # Archives containing C++ object files must be created using
18728	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18729	    # necessary to make sure instantiated templates are included
18730	    # in the archive.
18731	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18732	    ;;
18733          gcx*)
18734	    # Green Hills C++ Compiler
18735	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18736
18737	    # The C++ compiler must be used to create the archive.
18738	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18739	    ;;
18740          *)
18741	    # GNU C++ compiler with Solaris linker
18742	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18743	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18744	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18745	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18746	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18747		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18748
18749	        # Commands to make compiler produce verbose output that lists
18750	        # what "hidden" libraries, object files and flags are used when
18751	        # linking a shared library.
18752	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18753	      else
18754	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
18755	        # platform.
18756	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18757	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18758		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18759
18760	        # Commands to make compiler produce verbose output that lists
18761	        # what "hidden" libraries, object files and flags are used when
18762	        # linking a shared library.
18763	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18764	      fi
18765
18766	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18767	      case $host_os in
18768		solaris2.[0-5] | solaris2.[0-5].*) ;;
18769		*)
18770		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18771		  ;;
18772	      esac
18773	    fi
18774	    ;;
18775        esac
18776        ;;
18777
18778    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18779      no_undefined_flag_CXX='${wl}-z,text'
18780      archive_cmds_need_lc_CXX=no
18781      hardcode_shlibpath_var_CXX=no
18782      runpath_var='LD_RUN_PATH'
18783
18784      case $cc_basename in
18785        CC*)
18786	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
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      sysv5* | sco3.2v5* | sco5v6*)
18797	# Note: We can NOT use -z defs as we might desire, because we do not
18798	# link with -lc, and that would cause any symbols used from libc to
18799	# always be unresolved, which means just about no library would
18800	# ever link correctly.  If we're not using GNU ld we use -z text
18801	# though, which does catch some bad symbols but isn't as heavy-handed
18802	# as -z defs.
18803	no_undefined_flag_CXX='${wl}-z,text'
18804	allow_undefined_flag_CXX='${wl}-z,nodefs'
18805	archive_cmds_need_lc_CXX=no
18806	hardcode_shlibpath_var_CXX=no
18807	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18808	hardcode_libdir_separator_CXX=':'
18809	link_all_deplibs_CXX=yes
18810	export_dynamic_flag_spec_CXX='${wl}-Bexport'
18811	runpath_var='LD_RUN_PATH'
18812
18813	case $cc_basename in
18814          CC*)
18815	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18816	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18817	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18818	      '"$old_archive_cmds_CXX"
18819	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18820	      '"$reload_cmds_CXX"
18821	    ;;
18822	  *)
18823	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18824	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825	    ;;
18826	esac
18827      ;;
18828
18829      tandem*)
18830        case $cc_basename in
18831          NCC*)
18832	    # NonStop-UX NCC 3.20
18833	    # FIXME: insert proper C++ library support
18834	    ld_shlibs_CXX=no
18835	    ;;
18836          *)
18837	    # FIXME: insert proper C++ library support
18838	    ld_shlibs_CXX=no
18839	    ;;
18840        esac
18841        ;;
18842
18843      vxworks*)
18844        # FIXME: insert proper C++ library support
18845        ld_shlibs_CXX=no
18846        ;;
18847
18848      *)
18849        # FIXME: insert proper C++ library support
18850        ld_shlibs_CXX=no
18851        ;;
18852    esac
18853
18854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18855$as_echo "$ld_shlibs_CXX" >&6; }
18856    test "$ld_shlibs_CXX" = no && can_build_shared=no
18857
18858    GCC_CXX="$GXX"
18859    LD_CXX="$LD"
18860
18861    ## CAVEAT EMPTOR:
18862    ## There is no encapsulation within the following macros, do not change
18863    ## the running order or otherwise move them around unless you know exactly
18864    ## what you are doing...
18865    # Dependencies to place before and after the object being linked:
18866predep_objects_CXX=
18867postdep_objects_CXX=
18868predeps_CXX=
18869postdeps_CXX=
18870compiler_lib_search_path_CXX=
18871
18872cat > conftest.$ac_ext <<_LT_EOF
18873class Foo
18874{
18875public:
18876  Foo (void) { a = 0; }
18877private:
18878  int a;
18879};
18880_LT_EOF
18881
18882
18883_lt_libdeps_save_CFLAGS=$CFLAGS
18884case "$CC $CFLAGS " in #(
18885*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18886*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18887*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18888esac
18889
18890if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18891  (eval $ac_compile) 2>&5
18892  ac_status=$?
18893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18894  test $ac_status = 0; }; then
18895  # Parse the compiler output and extract the necessary
18896  # objects, libraries and library flags.
18897
18898  # Sentinel used to keep track of whether or not we are before
18899  # the conftest object file.
18900  pre_test_object_deps_done=no
18901
18902  for p in `eval "$output_verbose_link_cmd"`; do
18903    case ${prev}${p} in
18904
18905    -L* | -R* | -l*)
18906       # Some compilers place space between "-{L,R}" and the path.
18907       # Remove the space.
18908       if test $p = "-L" ||
18909          test $p = "-R"; then
18910	 prev=$p
18911	 continue
18912       fi
18913
18914       # Expand the sysroot to ease extracting the directories later.
18915       if test -z "$prev"; then
18916         case $p in
18917         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18918         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18919         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18920         esac
18921       fi
18922       case $p in
18923       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18924       esac
18925       if test "$pre_test_object_deps_done" = no; then
18926	 case ${prev} in
18927	 -L | -R)
18928	   # Internal compiler library paths should come after those
18929	   # provided the user.  The postdeps already come after the
18930	   # user supplied libs so there is no need to process them.
18931	   if test -z "$compiler_lib_search_path_CXX"; then
18932	     compiler_lib_search_path_CXX="${prev}${p}"
18933	   else
18934	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18935	   fi
18936	   ;;
18937	 # The "-l" case would never come before the object being
18938	 # linked, so don't bother handling this case.
18939	 esac
18940       else
18941	 if test -z "$postdeps_CXX"; then
18942	   postdeps_CXX="${prev}${p}"
18943	 else
18944	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18945	 fi
18946       fi
18947       prev=
18948       ;;
18949
18950    *.lto.$objext) ;; # Ignore GCC LTO objects
18951    *.$objext)
18952       # This assumes that the test object file only shows up
18953       # once in the compiler output.
18954       if test "$p" = "conftest.$objext"; then
18955	 pre_test_object_deps_done=yes
18956	 continue
18957       fi
18958
18959       if test "$pre_test_object_deps_done" = no; then
18960	 if test -z "$predep_objects_CXX"; then
18961	   predep_objects_CXX="$p"
18962	 else
18963	   predep_objects_CXX="$predep_objects_CXX $p"
18964	 fi
18965       else
18966	 if test -z "$postdep_objects_CXX"; then
18967	   postdep_objects_CXX="$p"
18968	 else
18969	   postdep_objects_CXX="$postdep_objects_CXX $p"
18970	 fi
18971       fi
18972       ;;
18973
18974    *) ;; # Ignore the rest.
18975
18976    esac
18977  done
18978
18979  # Clean up.
18980  rm -f a.out a.exe
18981else
18982  echo "libtool.m4: error: problem compiling CXX test program"
18983fi
18984
18985$RM -f confest.$objext
18986CFLAGS=$_lt_libdeps_save_CFLAGS
18987
18988# PORTME: override above test on systems where it is broken
18989case $host_os in
18990interix[3-9]*)
18991  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18992  # hack all around it, let's just trust "g++" to DTRT.
18993  predep_objects_CXX=
18994  postdep_objects_CXX=
18995  postdeps_CXX=
18996  ;;
18997
18998linux*)
18999  case `$CC -V 2>&1 | sed 5q` in
19000  *Sun\ C*)
19001    # Sun C++ 5.9
19002
19003    # The more standards-conforming stlport4 library is
19004    # incompatible with the Cstd library. Avoid specifying
19005    # it if it's in CXXFLAGS. Ignore libCrun as
19006    # -library=stlport4 depends on it.
19007    case " $CXX $CXXFLAGS " in
19008    *" -library=stlport4 "*)
19009      solaris_use_stlport4=yes
19010      ;;
19011    esac
19012
19013    if test "$solaris_use_stlport4" != yes; then
19014      postdeps_CXX='-library=Cstd -library=Crun'
19015    fi
19016    ;;
19017  esac
19018  ;;
19019
19020solaris*)
19021  case $cc_basename in
19022  CC* | sunCC*)
19023    # The more standards-conforming stlport4 library is
19024    # incompatible with the Cstd library. Avoid specifying
19025    # it if it's in CXXFLAGS. Ignore libCrun as
19026    # -library=stlport4 depends on it.
19027    case " $CXX $CXXFLAGS " in
19028    *" -library=stlport4 "*)
19029      solaris_use_stlport4=yes
19030      ;;
19031    esac
19032
19033    # Adding this requires a known-good setup of shared libraries for
19034    # Sun compiler versions before 5.6, else PIC objects from an old
19035    # archive will be linked into the output, leading to subtle bugs.
19036    if test "$solaris_use_stlport4" != yes; then
19037      postdeps_CXX='-library=Cstd -library=Crun'
19038    fi
19039    ;;
19040  esac
19041  ;;
19042esac
19043
19044
19045case " $postdeps_CXX " in
19046*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19047esac
19048 compiler_lib_search_dirs_CXX=
19049if test -n "${compiler_lib_search_path_CXX}"; then
19050 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19051fi
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083    lt_prog_compiler_wl_CXX=
19084lt_prog_compiler_pic_CXX=
19085lt_prog_compiler_static_CXX=
19086
19087
19088  # C++ specific cases for pic, static, wl, etc.
19089  if test "$GXX" = yes; then
19090    lt_prog_compiler_wl_CXX='-Wl,'
19091    lt_prog_compiler_static_CXX='-static'
19092
19093    case $host_os in
19094    aix*)
19095      # All AIX code is PIC.
19096      if test "$host_cpu" = ia64; then
19097	# AIX 5 now supports IA64 processor
19098	lt_prog_compiler_static_CXX='-Bstatic'
19099      fi
19100      ;;
19101
19102    amigaos*)
19103      case $host_cpu in
19104      powerpc)
19105            # see comment about AmigaOS4 .so support
19106            lt_prog_compiler_pic_CXX='-fPIC'
19107        ;;
19108      m68k)
19109            # FIXME: we need at least 68020 code to build shared libraries, but
19110            # adding the `-m68020' flag to GCC prevents building anything better,
19111            # like `-m68040'.
19112            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19113        ;;
19114      esac
19115      ;;
19116
19117    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19118      # PIC is the default for these OSes.
19119      ;;
19120    mingw* | cygwin* | os2* | pw32* | cegcc*)
19121      # This hack is so that the source file can tell whether it is being
19122      # built for inclusion in a dll (and should export symbols for example).
19123      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19124      # (--disable-auto-import) libraries
19125      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19126      ;;
19127    darwin* | rhapsody*)
19128      # PIC is the default on this platform
19129      # Common symbols not allowed in MH_DYLIB files
19130      lt_prog_compiler_pic_CXX='-fno-common'
19131      ;;
19132    *djgpp*)
19133      # DJGPP does not support shared libraries at all
19134      lt_prog_compiler_pic_CXX=
19135      ;;
19136    haiku*)
19137      # PIC is the default for Haiku.
19138      # The "-static" flag exists, but is broken.
19139      lt_prog_compiler_static_CXX=
19140      ;;
19141    interix[3-9]*)
19142      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19143      # Instead, we relocate shared libraries at runtime.
19144      ;;
19145    sysv4*MP*)
19146      if test -d /usr/nec; then
19147	lt_prog_compiler_pic_CXX=-Kconform_pic
19148      fi
19149      ;;
19150    hpux*)
19151      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19152      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19153      # sets the default TLS model and affects inlining.
19154      case $host_cpu in
19155      hppa*64*)
19156	;;
19157      *)
19158	lt_prog_compiler_pic_CXX='-fPIC'
19159	;;
19160      esac
19161      ;;
19162    *qnx* | *nto*)
19163      # QNX uses GNU C++, but need to define -shared option too, otherwise
19164      # it will coredump.
19165      lt_prog_compiler_pic_CXX='-fPIC -shared'
19166      ;;
19167    *)
19168      lt_prog_compiler_pic_CXX='-fPIC'
19169      ;;
19170    esac
19171  else
19172    case $host_os in
19173      aix[4-9]*)
19174	# All AIX code is PIC.
19175	if test "$host_cpu" = ia64; then
19176	  # AIX 5 now supports IA64 processor
19177	  lt_prog_compiler_static_CXX='-Bstatic'
19178	else
19179	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19180	fi
19181	;;
19182      chorus*)
19183	case $cc_basename in
19184	cxch68*)
19185	  # Green Hills C++ Compiler
19186	  # _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"
19187	  ;;
19188	esac
19189	;;
19190      mingw* | cygwin* | os2* | pw32* | cegcc*)
19191	# This hack is so that the source file can tell whether it is being
19192	# built for inclusion in a dll (and should export symbols for example).
19193	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19194	;;
19195      dgux*)
19196	case $cc_basename in
19197	  ec++*)
19198	    lt_prog_compiler_pic_CXX='-KPIC'
19199	    ;;
19200	  ghcx*)
19201	    # Green Hills C++ Compiler
19202	    lt_prog_compiler_pic_CXX='-pic'
19203	    ;;
19204	  *)
19205	    ;;
19206	esac
19207	;;
19208      freebsd* | dragonfly*)
19209	# FreeBSD uses GNU C++
19210	;;
19211      hpux9* | hpux10* | hpux11*)
19212	case $cc_basename in
19213	  CC*)
19214	    lt_prog_compiler_wl_CXX='-Wl,'
19215	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19216	    if test "$host_cpu" != ia64; then
19217	      lt_prog_compiler_pic_CXX='+Z'
19218	    fi
19219	    ;;
19220	  aCC*)
19221	    lt_prog_compiler_wl_CXX='-Wl,'
19222	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19223	    case $host_cpu in
19224	    hppa*64*|ia64*)
19225	      # +Z the default
19226	      ;;
19227	    *)
19228	      lt_prog_compiler_pic_CXX='+Z'
19229	      ;;
19230	    esac
19231	    ;;
19232	  *)
19233	    ;;
19234	esac
19235	;;
19236      interix*)
19237	# This is c89, which is MS Visual C++ (no shared libs)
19238	# Anyone wants to do a port?
19239	;;
19240      irix5* | irix6* | nonstopux*)
19241	case $cc_basename in
19242	  CC*)
19243	    lt_prog_compiler_wl_CXX='-Wl,'
19244	    lt_prog_compiler_static_CXX='-non_shared'
19245	    # CC pic flag -KPIC is the default.
19246	    ;;
19247	  *)
19248	    ;;
19249	esac
19250	;;
19251      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19252	case $cc_basename in
19253	  KCC*)
19254	    # KAI C++ Compiler
19255	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19256	    lt_prog_compiler_pic_CXX='-fPIC'
19257	    ;;
19258	  ecpc* )
19259	    # old Intel C++ for x86_64 which still supported -KPIC.
19260	    lt_prog_compiler_wl_CXX='-Wl,'
19261	    lt_prog_compiler_pic_CXX='-KPIC'
19262	    lt_prog_compiler_static_CXX='-static'
19263	    ;;
19264	  icpc* )
19265	    # Intel C++, used to be incompatible with GCC.
19266	    # ICC 10 doesn't accept -KPIC any more.
19267	    lt_prog_compiler_wl_CXX='-Wl,'
19268	    lt_prog_compiler_pic_CXX='-fPIC'
19269	    lt_prog_compiler_static_CXX='-static'
19270	    ;;
19271	  pgCC* | pgcpp*)
19272	    # Portland Group C++ compiler
19273	    lt_prog_compiler_wl_CXX='-Wl,'
19274	    lt_prog_compiler_pic_CXX='-fpic'
19275	    lt_prog_compiler_static_CXX='-Bstatic'
19276	    ;;
19277	  cxx*)
19278	    # Compaq C++
19279	    # Make sure the PIC flag is empty.  It appears that all Alpha
19280	    # Linux and Compaq Tru64 Unix objects are PIC.
19281	    lt_prog_compiler_pic_CXX=
19282	    lt_prog_compiler_static_CXX='-non_shared'
19283	    ;;
19284	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19285	    # IBM XL 8.0, 9.0 on PPC and BlueGene
19286	    lt_prog_compiler_wl_CXX='-Wl,'
19287	    lt_prog_compiler_pic_CXX='-qpic'
19288	    lt_prog_compiler_static_CXX='-qstaticlink'
19289	    ;;
19290	  *)
19291	    case `$CC -V 2>&1 | sed 5q` in
19292	    *Sun\ C*)
19293	      # Sun C++ 5.9
19294	      lt_prog_compiler_pic_CXX='-KPIC'
19295	      lt_prog_compiler_static_CXX='-Bstatic'
19296	      lt_prog_compiler_wl_CXX='-Qoption ld '
19297	      ;;
19298	    esac
19299	    ;;
19300	esac
19301	;;
19302      lynxos*)
19303	;;
19304      m88k*)
19305	;;
19306      mvs*)
19307	case $cc_basename in
19308	  cxx*)
19309	    lt_prog_compiler_pic_CXX='-W c,exportall'
19310	    ;;
19311	  *)
19312	    ;;
19313	esac
19314	;;
19315      netbsd*)
19316	;;
19317      *qnx* | *nto*)
19318        # QNX uses GNU C++, but need to define -shared option too, otherwise
19319        # it will coredump.
19320        lt_prog_compiler_pic_CXX='-fPIC -shared'
19321        ;;
19322      osf3* | osf4* | osf5*)
19323	case $cc_basename in
19324	  KCC*)
19325	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19326	    ;;
19327	  RCC*)
19328	    # Rational C++ 2.4.1
19329	    lt_prog_compiler_pic_CXX='-pic'
19330	    ;;
19331	  cxx*)
19332	    # Digital/Compaq C++
19333	    lt_prog_compiler_wl_CXX='-Wl,'
19334	    # Make sure the PIC flag is empty.  It appears that all Alpha
19335	    # Linux and Compaq Tru64 Unix objects are PIC.
19336	    lt_prog_compiler_pic_CXX=
19337	    lt_prog_compiler_static_CXX='-non_shared'
19338	    ;;
19339	  *)
19340	    ;;
19341	esac
19342	;;
19343      psos*)
19344	;;
19345      solaris*)
19346	case $cc_basename in
19347	  CC* | sunCC*)
19348	    # Sun C++ 4.2, 5.x and Centerline C++
19349	    lt_prog_compiler_pic_CXX='-KPIC'
19350	    lt_prog_compiler_static_CXX='-Bstatic'
19351	    lt_prog_compiler_wl_CXX='-Qoption ld '
19352	    ;;
19353	  gcx*)
19354	    # Green Hills C++ Compiler
19355	    lt_prog_compiler_pic_CXX='-PIC'
19356	    ;;
19357	  *)
19358	    ;;
19359	esac
19360	;;
19361      sunos4*)
19362	case $cc_basename in
19363	  CC*)
19364	    # Sun C++ 4.x
19365	    lt_prog_compiler_pic_CXX='-pic'
19366	    lt_prog_compiler_static_CXX='-Bstatic'
19367	    ;;
19368	  lcc*)
19369	    # Lucid
19370	    lt_prog_compiler_pic_CXX='-pic'
19371	    ;;
19372	  *)
19373	    ;;
19374	esac
19375	;;
19376      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19377	case $cc_basename in
19378	  CC*)
19379	    lt_prog_compiler_wl_CXX='-Wl,'
19380	    lt_prog_compiler_pic_CXX='-KPIC'
19381	    lt_prog_compiler_static_CXX='-Bstatic'
19382	    ;;
19383	esac
19384	;;
19385      tandem*)
19386	case $cc_basename in
19387	  NCC*)
19388	    # NonStop-UX NCC 3.20
19389	    lt_prog_compiler_pic_CXX='-KPIC'
19390	    ;;
19391	  *)
19392	    ;;
19393	esac
19394	;;
19395      vxworks*)
19396	;;
19397      *)
19398	lt_prog_compiler_can_build_shared_CXX=no
19399	;;
19400    esac
19401  fi
19402
19403case $host_os in
19404  # For platforms which do not support PIC, -DPIC is meaningless:
19405  *djgpp*)
19406    lt_prog_compiler_pic_CXX=
19407    ;;
19408  *)
19409    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19410    ;;
19411esac
19412
19413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19414$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19415if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19416  $as_echo_n "(cached) " >&6
19417else
19418  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19419fi
19420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19421$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19422lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19423
19424#
19425# Check to make sure the PIC flag actually works.
19426#
19427if test -n "$lt_prog_compiler_pic_CXX"; then
19428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19429$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19430if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
19431  $as_echo_n "(cached) " >&6
19432else
19433  lt_cv_prog_compiler_pic_works_CXX=no
19434   ac_outfile=conftest.$ac_objext
19435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19436   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19437   # Insert the option either (1) after the last *FLAGS variable, or
19438   # (2) before a word containing "conftest.", or (3) at the end.
19439   # Note that $ac_compile itself does not contain backslashes and begins
19440   # with a dollar sign (not a hyphen), so the echo should work correctly.
19441   # The option is referenced via a variable to avoid confusing sed.
19442   lt_compile=`echo "$ac_compile" | $SED \
19443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445   -e 's:$: $lt_compiler_flag:'`
19446   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19447   (eval "$lt_compile" 2>conftest.err)
19448   ac_status=$?
19449   cat conftest.err >&5
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   if (exit $ac_status) && test -s "$ac_outfile"; then
19452     # The compiler can only warn and ignore the option if not recognized
19453     # So say no if there are warnings other than the usual output.
19454     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19455     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19456     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19457       lt_cv_prog_compiler_pic_works_CXX=yes
19458     fi
19459   fi
19460   $RM conftest*
19461
19462fi
19463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19464$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19465
19466if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19467    case $lt_prog_compiler_pic_CXX in
19468     "" | " "*) ;;
19469     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19470     esac
19471else
19472    lt_prog_compiler_pic_CXX=
19473     lt_prog_compiler_can_build_shared_CXX=no
19474fi
19475
19476fi
19477
19478
19479
19480
19481
19482#
19483# Check to make sure the static flag actually works.
19484#
19485wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19487$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19488if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
19489  $as_echo_n "(cached) " >&6
19490else
19491  lt_cv_prog_compiler_static_works_CXX=no
19492   save_LDFLAGS="$LDFLAGS"
19493   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19494   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19495   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19496     # The linker can only warn and ignore the option if not recognized
19497     # So say no if there are warnings
19498     if test -s conftest.err; then
19499       # Append any errors to the config.log.
19500       cat conftest.err 1>&5
19501       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19502       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19503       if diff conftest.exp conftest.er2 >/dev/null; then
19504         lt_cv_prog_compiler_static_works_CXX=yes
19505       fi
19506     else
19507       lt_cv_prog_compiler_static_works_CXX=yes
19508     fi
19509   fi
19510   $RM -r conftest*
19511   LDFLAGS="$save_LDFLAGS"
19512
19513fi
19514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19515$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19516
19517if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19518    :
19519else
19520    lt_prog_compiler_static_CXX=
19521fi
19522
19523
19524
19525
19526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19527$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19528if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19529  $as_echo_n "(cached) " >&6
19530else
19531  lt_cv_prog_compiler_c_o_CXX=no
19532   $RM -r conftest 2>/dev/null
19533   mkdir conftest
19534   cd conftest
19535   mkdir out
19536   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19537
19538   lt_compiler_flag="-o out/conftest2.$ac_objext"
19539   # Insert the option either (1) after the last *FLAGS variable, or
19540   # (2) before a word containing "conftest.", or (3) at the end.
19541   # Note that $ac_compile itself does not contain backslashes and begins
19542   # with a dollar sign (not a hyphen), so the echo should work correctly.
19543   lt_compile=`echo "$ac_compile" | $SED \
19544   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19545   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19546   -e 's:$: $lt_compiler_flag:'`
19547   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19548   (eval "$lt_compile" 2>out/conftest.err)
19549   ac_status=$?
19550   cat out/conftest.err >&5
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19553   then
19554     # The compiler can only warn and ignore the option if not recognized
19555     # So say no if there are warnings
19556     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19557     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19558     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19559       lt_cv_prog_compiler_c_o_CXX=yes
19560     fi
19561   fi
19562   chmod u+w . 2>&5
19563   $RM conftest*
19564   # SGI C++ compiler will create directory out/ii_files/ for
19565   # template instantiation
19566   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19567   $RM out/* && rmdir out
19568   cd ..
19569   $RM -r conftest
19570   $RM conftest*
19571
19572fi
19573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19574$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19575
19576
19577
19578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19579$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19580if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19581  $as_echo_n "(cached) " >&6
19582else
19583  lt_cv_prog_compiler_c_o_CXX=no
19584   $RM -r conftest 2>/dev/null
19585   mkdir conftest
19586   cd conftest
19587   mkdir out
19588   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19589
19590   lt_compiler_flag="-o out/conftest2.$ac_objext"
19591   # Insert the option either (1) after the last *FLAGS variable, or
19592   # (2) before a word containing "conftest.", or (3) at the end.
19593   # Note that $ac_compile itself does not contain backslashes and begins
19594   # with a dollar sign (not a hyphen), so the echo should work correctly.
19595   lt_compile=`echo "$ac_compile" | $SED \
19596   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19597   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19598   -e 's:$: $lt_compiler_flag:'`
19599   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19600   (eval "$lt_compile" 2>out/conftest.err)
19601   ac_status=$?
19602   cat out/conftest.err >&5
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19605   then
19606     # The compiler can only warn and ignore the option if not recognized
19607     # So say no if there are warnings
19608     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19609     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19610     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19611       lt_cv_prog_compiler_c_o_CXX=yes
19612     fi
19613   fi
19614   chmod u+w . 2>&5
19615   $RM conftest*
19616   # SGI C++ compiler will create directory out/ii_files/ for
19617   # template instantiation
19618   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19619   $RM out/* && rmdir out
19620   cd ..
19621   $RM -r conftest
19622   $RM conftest*
19623
19624fi
19625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19626$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19627
19628
19629
19630
19631hard_links="nottested"
19632if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19633  # do not overwrite the value of need_locks provided by the user
19634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19635$as_echo_n "checking if we can lock with hard links... " >&6; }
19636  hard_links=yes
19637  $RM conftest*
19638  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19639  touch conftest.a
19640  ln conftest.a conftest.b 2>&5 || hard_links=no
19641  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19643$as_echo "$hard_links" >&6; }
19644  if test "$hard_links" = no; then
19645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19646$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19647    need_locks=warn
19648  fi
19649else
19650  need_locks=no
19651fi
19652
19653
19654
19655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19656$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19657
19658  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19659  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19660  case $host_os in
19661  aix[4-9]*)
19662    # If we're using GNU nm, then we don't want the "-C" option.
19663    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19664    # Also, AIX nm treats weak defined symbols like other global defined
19665    # symbols, whereas GNU nm marks them as "W".
19666    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19667      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'
19668    else
19669      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'
19670    fi
19671    ;;
19672  pw32*)
19673    export_symbols_cmds_CXX="$ltdll_cmds"
19674    ;;
19675  cygwin* | mingw* | cegcc*)
19676    case $cc_basename in
19677    cl*)
19678      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19679      ;;
19680    *)
19681      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'
19682      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19683      ;;
19684    esac
19685    ;;
19686  *)
19687    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19688    ;;
19689  esac
19690
19691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19692$as_echo "$ld_shlibs_CXX" >&6; }
19693test "$ld_shlibs_CXX" = no && can_build_shared=no
19694
19695with_gnu_ld_CXX=$with_gnu_ld
19696
19697
19698
19699
19700
19701
19702#
19703# Do we need to explicitly link libc?
19704#
19705case "x$archive_cmds_need_lc_CXX" in
19706x|xyes)
19707  # Assume -lc should be added
19708  archive_cmds_need_lc_CXX=yes
19709
19710  if test "$enable_shared" = yes && test "$GCC" = yes; then
19711    case $archive_cmds_CXX in
19712    *'~'*)
19713      # FIXME: we may have to deal with multi-command sequences.
19714      ;;
19715    '$CC '*)
19716      # Test whether the compiler implicitly links with -lc since on some
19717      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19718      # to ld, don't add -lc before -lgcc.
19719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19720$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19721if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19722  $as_echo_n "(cached) " >&6
19723else
19724  $RM conftest*
19725	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19726
19727	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19728  (eval $ac_compile) 2>&5
19729  ac_status=$?
19730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19731  test $ac_status = 0; } 2>conftest.err; then
19732	  soname=conftest
19733	  lib=conftest
19734	  libobjs=conftest.$ac_objext
19735	  deplibs=
19736	  wl=$lt_prog_compiler_wl_CXX
19737	  pic_flag=$lt_prog_compiler_pic_CXX
19738	  compiler_flags=-v
19739	  linker_flags=-v
19740	  verstring=
19741	  output_objdir=.
19742	  libname=conftest
19743	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19744	  allow_undefined_flag_CXX=
19745	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19746  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19747  ac_status=$?
19748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19749  test $ac_status = 0; }
19750	  then
19751	    lt_cv_archive_cmds_need_lc_CXX=no
19752	  else
19753	    lt_cv_archive_cmds_need_lc_CXX=yes
19754	  fi
19755	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19756	else
19757	  cat conftest.err 1>&5
19758	fi
19759	$RM conftest*
19760
19761fi
19762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19763$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19764      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19765      ;;
19766    esac
19767  fi
19768  ;;
19769esac
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
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19833$as_echo_n "checking dynamic linker characteristics... " >&6; }
19834
19835library_names_spec=
19836libname_spec='lib$name'
19837soname_spec=
19838shrext_cmds=".so"
19839postinstall_cmds=
19840postuninstall_cmds=
19841finish_cmds=
19842finish_eval=
19843shlibpath_var=
19844shlibpath_overrides_runpath=unknown
19845version_type=none
19846dynamic_linker="$host_os ld.so"
19847sys_lib_dlsearch_path_spec="/lib /usr/lib"
19848need_lib_prefix=unknown
19849hardcode_into_libs=no
19850
19851# when you set need_version to no, make sure it does not cause -set_version
19852# flags to be left without arguments
19853need_version=unknown
19854
19855case $host_os in
19856aix3*)
19857  version_type=linux # correct to gnu/linux during the next big refactor
19858  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19859  shlibpath_var=LIBPATH
19860
19861  # AIX 3 has no versioning support, so we append a major version to the name.
19862  soname_spec='${libname}${release}${shared_ext}$major'
19863  ;;
19864
19865aix[4-9]*)
19866  version_type=linux # correct to gnu/linux during the next big refactor
19867  need_lib_prefix=no
19868  need_version=no
19869  hardcode_into_libs=yes
19870  if test "$host_cpu" = ia64; then
19871    # AIX 5 supports IA64
19872    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19873    shlibpath_var=LD_LIBRARY_PATH
19874  else
19875    # With GCC up to 2.95.x, collect2 would create an import file
19876    # for dependence libraries.  The import file would start with
19877    # the line `#! .'.  This would cause the generated library to
19878    # depend on `.', always an invalid library.  This was fixed in
19879    # development snapshots of GCC prior to 3.0.
19880    case $host_os in
19881      aix4 | aix4.[01] | aix4.[01].*)
19882      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19883	   echo ' yes '
19884	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19885	:
19886      else
19887	can_build_shared=no
19888      fi
19889      ;;
19890    esac
19891    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19892    # soname into executable. Probably we can add versioning support to
19893    # collect2, so additional links can be useful in future.
19894    if test "$aix_use_runtimelinking" = yes; then
19895      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19896      # instead of lib<name>.a to let people know that these are not
19897      # typical AIX shared libraries.
19898      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19899    else
19900      # We preserve .a as extension for shared libraries through AIX4.2
19901      # and later when we are not doing run time linking.
19902      library_names_spec='${libname}${release}.a $libname.a'
19903      soname_spec='${libname}${release}${shared_ext}$major'
19904    fi
19905    shlibpath_var=LIBPATH
19906  fi
19907  ;;
19908
19909amigaos*)
19910  case $host_cpu in
19911  powerpc)
19912    # Since July 2007 AmigaOS4 officially supports .so libraries.
19913    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19915    ;;
19916  m68k)
19917    library_names_spec='$libname.ixlibrary $libname.a'
19918    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19919    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'
19920    ;;
19921  esac
19922  ;;
19923
19924beos*)
19925  library_names_spec='${libname}${shared_ext}'
19926  dynamic_linker="$host_os ld.so"
19927  shlibpath_var=LIBRARY_PATH
19928  ;;
19929
19930bsdi[45]*)
19931  version_type=linux # correct to gnu/linux during the next big refactor
19932  need_version=no
19933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934  soname_spec='${libname}${release}${shared_ext}$major'
19935  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19936  shlibpath_var=LD_LIBRARY_PATH
19937  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19938  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19939  # the default ld.so.conf also contains /usr/contrib/lib and
19940  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19941  # libtool to hard-code these into programs
19942  ;;
19943
19944cygwin* | mingw* | pw32* | cegcc*)
19945  version_type=windows
19946  shrext_cmds=".dll"
19947  need_version=no
19948  need_lib_prefix=no
19949
19950  case $GCC,$cc_basename in
19951  yes,*)
19952    # gcc
19953    library_names_spec='$libname.dll.a'
19954    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19955    postinstall_cmds='base_file=`basename \${file}`~
19956      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19957      dldir=$destdir/`dirname \$dlpath`~
19958      test -d \$dldir || mkdir -p \$dldir~
19959      $install_prog $dir/$dlname \$dldir/$dlname~
19960      chmod a+x \$dldir/$dlname~
19961      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19962        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19963      fi'
19964    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19965      dlpath=$dir/\$dldll~
19966       $RM \$dlpath'
19967    shlibpath_overrides_runpath=yes
19968
19969    case $host_os in
19970    cygwin*)
19971      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19972      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19973
19974      ;;
19975    mingw* | cegcc*)
19976      # MinGW DLLs use traditional 'lib' prefix
19977      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19978      ;;
19979    pw32*)
19980      # pw32 DLLs use 'pw' prefix rather than 'lib'
19981      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19982      ;;
19983    esac
19984    dynamic_linker='Win32 ld.exe'
19985    ;;
19986
19987  *,cl*)
19988    # Native MSVC
19989    libname_spec='$name'
19990    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19991    library_names_spec='${libname}.dll.lib'
19992
19993    case $build_os in
19994    mingw*)
19995      sys_lib_search_path_spec=
19996      lt_save_ifs=$IFS
19997      IFS=';'
19998      for lt_path in $LIB
19999      do
20000        IFS=$lt_save_ifs
20001        # Let DOS variable expansion print the short 8.3 style file name.
20002        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20003        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20004      done
20005      IFS=$lt_save_ifs
20006      # Convert to MSYS style.
20007      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20008      ;;
20009    cygwin*)
20010      # Convert to unix form, then to dos form, then back to unix form
20011      # but this time dos style (no spaces!) so that the unix form looks
20012      # like /cygdrive/c/PROGRA~1:/cygdr...
20013      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20014      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20015      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20016      ;;
20017    *)
20018      sys_lib_search_path_spec="$LIB"
20019      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20020        # It is most probably a Windows format PATH.
20021        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022      else
20023        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20024      fi
20025      # FIXME: find the short name or the path components, as spaces are
20026      # common. (e.g. "Program Files" -> "PROGRA~1")
20027      ;;
20028    esac
20029
20030    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20031    postinstall_cmds='base_file=`basename \${file}`~
20032      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20033      dldir=$destdir/`dirname \$dlpath`~
20034      test -d \$dldir || mkdir -p \$dldir~
20035      $install_prog $dir/$dlname \$dldir/$dlname'
20036    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20037      dlpath=$dir/\$dldll~
20038       $RM \$dlpath'
20039    shlibpath_overrides_runpath=yes
20040    dynamic_linker='Win32 link.exe'
20041    ;;
20042
20043  *)
20044    # Assume MSVC wrapper
20045    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20046    dynamic_linker='Win32 ld.exe'
20047    ;;
20048  esac
20049  # FIXME: first we should search . and the directory the executable is in
20050  shlibpath_var=PATH
20051  ;;
20052
20053darwin* | rhapsody*)
20054  dynamic_linker="$host_os dyld"
20055  version_type=darwin
20056  need_lib_prefix=no
20057  need_version=no
20058  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20059  soname_spec='${libname}${release}${major}$shared_ext'
20060  shlibpath_overrides_runpath=yes
20061  shlibpath_var=DYLD_LIBRARY_PATH
20062  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20063
20064  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20065  ;;
20066
20067dgux*)
20068  version_type=linux # correct to gnu/linux during the next big refactor
20069  need_lib_prefix=no
20070  need_version=no
20071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20072  soname_spec='${libname}${release}${shared_ext}$major'
20073  shlibpath_var=LD_LIBRARY_PATH
20074  ;;
20075
20076freebsd* | dragonfly*)
20077  # DragonFly does not have aout.  When/if they implement a new
20078  # versioning mechanism, adjust this.
20079  if test -x /usr/bin/objformat; then
20080    objformat=`/usr/bin/objformat`
20081  else
20082    case $host_os in
20083    freebsd[23].*) objformat=aout ;;
20084    *) objformat=elf ;;
20085    esac
20086  fi
20087  version_type=freebsd-$objformat
20088  case $version_type in
20089    freebsd-elf*)
20090      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20091      need_version=no
20092      need_lib_prefix=no
20093      ;;
20094    freebsd-*)
20095      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20096      need_version=yes
20097      ;;
20098  esac
20099  shlibpath_var=LD_LIBRARY_PATH
20100  case $host_os in
20101  freebsd2.*)
20102    shlibpath_overrides_runpath=yes
20103    ;;
20104  freebsd3.[01]* | freebsdelf3.[01]*)
20105    shlibpath_overrides_runpath=yes
20106    hardcode_into_libs=yes
20107    ;;
20108  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20109  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20110    shlibpath_overrides_runpath=no
20111    hardcode_into_libs=yes
20112    ;;
20113  *) # from 4.6 on, and DragonFly
20114    shlibpath_overrides_runpath=yes
20115    hardcode_into_libs=yes
20116    ;;
20117  esac
20118  ;;
20119
20120gnu*)
20121  version_type=linux # correct to gnu/linux during the next big refactor
20122  need_lib_prefix=no
20123  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
20127  shlibpath_overrides_runpath=no
20128  hardcode_into_libs=yes
20129  ;;
20130
20131haiku*)
20132  version_type=linux # correct to gnu/linux during the next big refactor
20133  need_lib_prefix=no
20134  need_version=no
20135  dynamic_linker="$host_os runtime_loader"
20136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20137  soname_spec='${libname}${release}${shared_ext}$major'
20138  shlibpath_var=LIBRARY_PATH
20139  shlibpath_overrides_runpath=yes
20140  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20141  hardcode_into_libs=yes
20142  ;;
20143
20144hpux9* | hpux10* | hpux11*)
20145  # Give a soname corresponding to the major version so that dld.sl refuses to
20146  # link against other versions.
20147  version_type=sunos
20148  need_lib_prefix=no
20149  need_version=no
20150  case $host_cpu in
20151  ia64*)
20152    shrext_cmds='.so'
20153    hardcode_into_libs=yes
20154    dynamic_linker="$host_os dld.so"
20155    shlibpath_var=LD_LIBRARY_PATH
20156    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158    soname_spec='${libname}${release}${shared_ext}$major'
20159    if test "X$HPUX_IA64_MODE" = X32; then
20160      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20161    else
20162      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20163    fi
20164    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20165    ;;
20166  hppa*64*)
20167    shrext_cmds='.sl'
20168    hardcode_into_libs=yes
20169    dynamic_linker="$host_os dld.sl"
20170    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20171    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20172    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20173    soname_spec='${libname}${release}${shared_ext}$major'
20174    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20175    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20176    ;;
20177  *)
20178    shrext_cmds='.sl'
20179    dynamic_linker="$host_os dld.sl"
20180    shlibpath_var=SHLIB_PATH
20181    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20182    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20183    soname_spec='${libname}${release}${shared_ext}$major'
20184    ;;
20185  esac
20186  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20187  postinstall_cmds='chmod 555 $lib'
20188  # or fails outright, so override atomically:
20189  install_override_mode=555
20190  ;;
20191
20192interix[3-9]*)
20193  version_type=linux # correct to gnu/linux during the next big refactor
20194  need_lib_prefix=no
20195  need_version=no
20196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20197  soname_spec='${libname}${release}${shared_ext}$major'
20198  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20199  shlibpath_var=LD_LIBRARY_PATH
20200  shlibpath_overrides_runpath=no
20201  hardcode_into_libs=yes
20202  ;;
20203
20204irix5* | irix6* | nonstopux*)
20205  case $host_os in
20206    nonstopux*) version_type=nonstopux ;;
20207    *)
20208	if test "$lt_cv_prog_gnu_ld" = yes; then
20209		version_type=linux # correct to gnu/linux during the next big refactor
20210	else
20211		version_type=irix
20212	fi ;;
20213  esac
20214  need_lib_prefix=no
20215  need_version=no
20216  soname_spec='${libname}${release}${shared_ext}$major'
20217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20218  case $host_os in
20219  irix5* | nonstopux*)
20220    libsuff= shlibsuff=
20221    ;;
20222  *)
20223    case $LD in # libtool.m4 will add one of these switches to LD
20224    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20225      libsuff= shlibsuff= libmagic=32-bit;;
20226    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20227      libsuff=32 shlibsuff=N32 libmagic=N32;;
20228    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20229      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20230    *) libsuff= shlibsuff= libmagic=never-match;;
20231    esac
20232    ;;
20233  esac
20234  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20235  shlibpath_overrides_runpath=no
20236  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20237  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20238  hardcode_into_libs=yes
20239  ;;
20240
20241# No shared lib support for Linux oldld, aout, or coff.
20242linux*oldld* | linux*aout* | linux*coff*)
20243  dynamic_linker=no
20244  ;;
20245
20246# This must be glibc/ELF.
20247linux* | k*bsd*-gnu | kopensolaris*-gnu)
20248  version_type=linux # correct to gnu/linux during the next big refactor
20249  need_lib_prefix=no
20250  need_version=no
20251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252  soname_spec='${libname}${release}${shared_ext}$major'
20253  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20254  shlibpath_var=LD_LIBRARY_PATH
20255  shlibpath_overrides_runpath=no
20256
20257  # Some binutils ld are patched to set DT_RUNPATH
20258  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20259  $as_echo_n "(cached) " >&6
20260else
20261  lt_cv_shlibpath_overrides_runpath=no
20262    save_LDFLAGS=$LDFLAGS
20263    save_libdir=$libdir
20264    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20265	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20266    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267/* end confdefs.h.  */
20268
20269int
20270main ()
20271{
20272
20273  ;
20274  return 0;
20275}
20276_ACEOF
20277if ac_fn_cxx_try_link "$LINENO"; then :
20278  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20279  lt_cv_shlibpath_overrides_runpath=yes
20280fi
20281fi
20282rm -f core conftest.err conftest.$ac_objext \
20283    conftest$ac_exeext conftest.$ac_ext
20284    LDFLAGS=$save_LDFLAGS
20285    libdir=$save_libdir
20286
20287fi
20288
20289  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20290
20291  # This implies no fast_install, which is unacceptable.
20292  # Some rework will be needed to allow for fast_install
20293  # before this can be enabled.
20294  hardcode_into_libs=yes
20295
20296  # Add ABI-specific directories to the system library path.
20297  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20298
20299  # Append ld.so.conf contents to the search path
20300  if test -f /etc/ld.so.conf; then
20301    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' ' '`
20302    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20303
20304  fi
20305
20306  # We used to test for /lib/ld.so.1 and disable shared libraries on
20307  # powerpc, because MkLinux only supported shared libraries with the
20308  # GNU dynamic linker.  Since this was broken with cross compilers,
20309  # most powerpc-linux boxes support dynamic linking these days and
20310  # people can always --disable-shared, the test was removed, and we
20311  # assume the GNU/Linux dynamic linker is in use.
20312  dynamic_linker='GNU/Linux ld.so'
20313  ;;
20314
20315netbsd*)
20316  version_type=sunos
20317  need_lib_prefix=no
20318  need_version=no
20319  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20320    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20321    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20322    dynamic_linker='NetBSD (a.out) ld.so'
20323  else
20324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20325    soname_spec='${libname}${release}${shared_ext}$major'
20326    dynamic_linker='NetBSD ld.elf_so'
20327  fi
20328  shlibpath_var=LD_LIBRARY_PATH
20329  shlibpath_overrides_runpath=yes
20330  hardcode_into_libs=yes
20331  ;;
20332
20333newsos6)
20334  version_type=linux # correct to gnu/linux during the next big refactor
20335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336  shlibpath_var=LD_LIBRARY_PATH
20337  shlibpath_overrides_runpath=yes
20338  ;;
20339
20340*nto* | *qnx*)
20341  version_type=qnx
20342  need_lib_prefix=no
20343  need_version=no
20344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345  soname_spec='${libname}${release}${shared_ext}$major'
20346  shlibpath_var=LD_LIBRARY_PATH
20347  shlibpath_overrides_runpath=no
20348  hardcode_into_libs=yes
20349  dynamic_linker='ldqnx.so'
20350  ;;
20351
20352openbsd*)
20353  version_type=sunos
20354  sys_lib_dlsearch_path_spec="/usr/lib"
20355  need_lib_prefix=no
20356  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20357  case $host_os in
20358    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
20359    *)				need_version=no  ;;
20360  esac
20361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20362  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20363  shlibpath_var=LD_LIBRARY_PATH
20364  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20365    case $host_os in
20366      openbsd2.[89] | openbsd2.[89].*)
20367	shlibpath_overrides_runpath=no
20368	;;
20369      *)
20370	shlibpath_overrides_runpath=yes
20371	;;
20372      esac
20373  else
20374    shlibpath_overrides_runpath=yes
20375  fi
20376  ;;
20377
20378os2*)
20379  libname_spec='$name'
20380  shrext_cmds=".dll"
20381  need_lib_prefix=no
20382  library_names_spec='$libname${shared_ext} $libname.a'
20383  dynamic_linker='OS/2 ld.exe'
20384  shlibpath_var=LIBPATH
20385  ;;
20386
20387osf3* | osf4* | osf5*)
20388  version_type=osf
20389  need_lib_prefix=no
20390  need_version=no
20391  soname_spec='${libname}${release}${shared_ext}$major'
20392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393  shlibpath_var=LD_LIBRARY_PATH
20394  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20395  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20396  ;;
20397
20398rdos*)
20399  dynamic_linker=no
20400  ;;
20401
20402solaris*)
20403  version_type=linux # correct to gnu/linux during the next big refactor
20404  need_lib_prefix=no
20405  need_version=no
20406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407  soname_spec='${libname}${release}${shared_ext}$major'
20408  shlibpath_var=LD_LIBRARY_PATH
20409  shlibpath_overrides_runpath=yes
20410  hardcode_into_libs=yes
20411  # ldd complains unless libraries are executable
20412  postinstall_cmds='chmod +x $lib'
20413  ;;
20414
20415sunos4*)
20416  version_type=sunos
20417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20418  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20419  shlibpath_var=LD_LIBRARY_PATH
20420  shlibpath_overrides_runpath=yes
20421  if test "$with_gnu_ld" = yes; then
20422    need_lib_prefix=no
20423  fi
20424  need_version=yes
20425  ;;
20426
20427sysv4 | sysv4.3*)
20428  version_type=linux # correct to gnu/linux during the next big refactor
20429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430  soname_spec='${libname}${release}${shared_ext}$major'
20431  shlibpath_var=LD_LIBRARY_PATH
20432  case $host_vendor in
20433    sni)
20434      shlibpath_overrides_runpath=no
20435      need_lib_prefix=no
20436      runpath_var=LD_RUN_PATH
20437      ;;
20438    siemens)
20439      need_lib_prefix=no
20440      ;;
20441    motorola)
20442      need_lib_prefix=no
20443      need_version=no
20444      shlibpath_overrides_runpath=no
20445      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20446      ;;
20447  esac
20448  ;;
20449
20450sysv4*MP*)
20451  if test -d /usr/nec ;then
20452    version_type=linux # correct to gnu/linux during the next big refactor
20453    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20454    soname_spec='$libname${shared_ext}.$major'
20455    shlibpath_var=LD_LIBRARY_PATH
20456  fi
20457  ;;
20458
20459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20460  version_type=freebsd-elf
20461  need_lib_prefix=no
20462  need_version=no
20463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20464  soname_spec='${libname}${release}${shared_ext}$major'
20465  shlibpath_var=LD_LIBRARY_PATH
20466  shlibpath_overrides_runpath=yes
20467  hardcode_into_libs=yes
20468  if test "$with_gnu_ld" = yes; then
20469    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20470  else
20471    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20472    case $host_os in
20473      sco3.2v5*)
20474        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20475	;;
20476    esac
20477  fi
20478  sys_lib_dlsearch_path_spec='/usr/lib'
20479  ;;
20480
20481tpf*)
20482  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20483  version_type=linux # correct to gnu/linux during the next big refactor
20484  need_lib_prefix=no
20485  need_version=no
20486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487  shlibpath_var=LD_LIBRARY_PATH
20488  shlibpath_overrides_runpath=no
20489  hardcode_into_libs=yes
20490  ;;
20491
20492uts4*)
20493  version_type=linux # correct to gnu/linux during the next big refactor
20494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495  soname_spec='${libname}${release}${shared_ext}$major'
20496  shlibpath_var=LD_LIBRARY_PATH
20497  ;;
20498
20499*)
20500  dynamic_linker=no
20501  ;;
20502esac
20503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20504$as_echo "$dynamic_linker" >&6; }
20505test "$dynamic_linker" = no && can_build_shared=no
20506
20507variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20508if test "$GCC" = yes; then
20509  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20510fi
20511
20512if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20513  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20514fi
20515if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20516  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20517fi
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20557$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20558hardcode_action_CXX=
20559if test -n "$hardcode_libdir_flag_spec_CXX" ||
20560   test -n "$runpath_var_CXX" ||
20561   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20562
20563  # We can hardcode non-existent directories.
20564  if test "$hardcode_direct_CXX" != no &&
20565     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20566     # have to relink, otherwise we might link with an installed library
20567     # when we should be linking with a yet-to-be-installed one
20568     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20569     test "$hardcode_minus_L_CXX" != no; then
20570    # Linking always hardcodes the temporary library directory.
20571    hardcode_action_CXX=relink
20572  else
20573    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20574    hardcode_action_CXX=immediate
20575  fi
20576else
20577  # We cannot hardcode anything, or else we can only hardcode existing
20578  # directories.
20579  hardcode_action_CXX=unsupported
20580fi
20581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20582$as_echo "$hardcode_action_CXX" >&6; }
20583
20584if test "$hardcode_action_CXX" = relink ||
20585   test "$inherit_rpath_CXX" = yes; then
20586  # Fast installation is not supported
20587  enable_fast_install=no
20588elif test "$shlibpath_overrides_runpath" = yes ||
20589     test "$enable_shared" = no; then
20590  # Fast installation is not necessary
20591  enable_fast_install=needless
20592fi
20593
20594
20595
20596
20597
20598
20599
20600  fi # test -n "$compiler"
20601
20602  CC=$lt_save_CC
20603  CFLAGS=$lt_save_CFLAGS
20604  LDCXX=$LD
20605  LD=$lt_save_LD
20606  GCC=$lt_save_GCC
20607  with_gnu_ld=$lt_save_with_gnu_ld
20608  lt_cv_path_LDCXX=$lt_cv_path_LD
20609  lt_cv_path_LD=$lt_save_path_LD
20610  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20611  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20612fi # test "$_lt_caught_CXX_error" != yes
20613
20614ac_ext=c
20615ac_cpp='$CPP $CPPFLAGS'
20616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634        ac_config_commands="$ac_config_commands libtool"
20635
20636
20637
20638
20639# Only expand once:
20640
20641
20642
20643
20644
20645# Configure libltdl
20646
20647
20648
20649
20650
20651
20652
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20654$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
20655if ${libltdl_cv_shlibext+:} false; then :
20656  $as_echo_n "(cached) " >&6
20657else
20658
20659module=yes
20660eval libltdl_cv_shlibext=$shrext_cmds
20661module=no
20662eval libltdl_cv_shrext=$shrext_cmds
20663
20664fi
20665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20666$as_echo "$libltdl_cv_shlibext" >&6; }
20667if test -n "$libltdl_cv_shlibext"; then
20668
20669cat >>confdefs.h <<_ACEOF
20670#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20671_ACEOF
20672
20673fi
20674if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20675
20676cat >>confdefs.h <<_ACEOF
20677#define LT_SHARED_EXT "$libltdl_cv_shrext"
20678_ACEOF
20679
20680fi
20681
20682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20683$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
20684if ${lt_cv_module_path_var+:} false; then :
20685  $as_echo_n "(cached) " >&6
20686else
20687  lt_cv_module_path_var="$shlibpath_var"
20688fi
20689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20690$as_echo "$lt_cv_module_path_var" >&6; }
20691if test -n "$lt_cv_module_path_var"; then
20692
20693cat >>confdefs.h <<_ACEOF
20694#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20695_ACEOF
20696
20697fi
20698
20699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20700$as_echo_n "checking for the default library search path... " >&6; }
20701if ${lt_cv_sys_dlsearch_path+:} false; then :
20702  $as_echo_n "(cached) " >&6
20703else
20704  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20705fi
20706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20707$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20708if test -n "$lt_cv_sys_dlsearch_path"; then
20709  sys_dlsearch_path=
20710  for dir in $lt_cv_sys_dlsearch_path; do
20711    if test -z "$sys_dlsearch_path"; then
20712      sys_dlsearch_path="$dir"
20713    else
20714      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20715    fi
20716  done
20717
20718cat >>confdefs.h <<_ACEOF
20719#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20720_ACEOF
20721
20722fi
20723
20724
20725LT_DLLOADERS=
20726
20727
20728ac_ext=c
20729ac_cpp='$CPP $CPPFLAGS'
20730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732ac_compiler_gnu=$ac_cv_c_compiler_gnu
20733
20734
20735LIBADD_DLOPEN=
20736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20737$as_echo_n "checking for library containing dlopen... " >&6; }
20738if ${ac_cv_search_dlopen+:} false; then :
20739  $as_echo_n "(cached) " >&6
20740else
20741  ac_func_search_save_LIBS=$LIBS
20742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743/* end confdefs.h.  */
20744
20745/* Override any GCC internal prototype to avoid an error.
20746   Use char because int might match the return type of a GCC
20747   builtin and then its argument prototype would still apply.  */
20748#ifdef __cplusplus
20749extern "C"
20750#endif
20751char dlopen ();
20752int
20753main ()
20754{
20755return dlopen ();
20756  ;
20757  return 0;
20758}
20759_ACEOF
20760for ac_lib in '' dl; do
20761  if test -z "$ac_lib"; then
20762    ac_res="none required"
20763  else
20764    ac_res=-l$ac_lib
20765    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20766  fi
20767  if ac_fn_c_try_link "$LINENO"; then :
20768  ac_cv_search_dlopen=$ac_res
20769fi
20770rm -f core conftest.err conftest.$ac_objext \
20771    conftest$ac_exeext
20772  if ${ac_cv_search_dlopen+:} false; then :
20773  break
20774fi
20775done
20776if ${ac_cv_search_dlopen+:} false; then :
20777
20778else
20779  ac_cv_search_dlopen=no
20780fi
20781rm conftest.$ac_ext
20782LIBS=$ac_func_search_save_LIBS
20783fi
20784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20785$as_echo "$ac_cv_search_dlopen" >&6; }
20786ac_res=$ac_cv_search_dlopen
20787if test "$ac_res" != no; then :
20788  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20789
20790$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20791
20792	if test "$ac_cv_search_dlopen" != "none required" ; then
20793	  LIBADD_DLOPEN="-ldl"
20794	fi
20795	libltdl_cv_lib_dl_dlopen="yes"
20796	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20797else
20798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799/* end confdefs.h.  */
20800#if HAVE_DLFCN_H
20801#  include <dlfcn.h>
20802#endif
20803
20804int
20805main ()
20806{
20807dlopen(0, 0);
20808  ;
20809  return 0;
20810}
20811_ACEOF
20812if ac_fn_c_try_link "$LINENO"; then :
20813
20814$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20815
20816	    libltdl_cv_func_dlopen="yes"
20817	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20818else
20819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20820$as_echo_n "checking for dlopen in -lsvld... " >&6; }
20821if ${ac_cv_lib_svld_dlopen+:} false; then :
20822  $as_echo_n "(cached) " >&6
20823else
20824  ac_check_lib_save_LIBS=$LIBS
20825LIBS="-lsvld  $LIBS"
20826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827/* end confdefs.h.  */
20828
20829/* Override any GCC internal prototype to avoid an error.
20830   Use char because int might match the return type of a GCC
20831   builtin and then its argument prototype would still apply.  */
20832#ifdef __cplusplus
20833extern "C"
20834#endif
20835char dlopen ();
20836int
20837main ()
20838{
20839return dlopen ();
20840  ;
20841  return 0;
20842}
20843_ACEOF
20844if ac_fn_c_try_link "$LINENO"; then :
20845  ac_cv_lib_svld_dlopen=yes
20846else
20847  ac_cv_lib_svld_dlopen=no
20848fi
20849rm -f core conftest.err conftest.$ac_objext \
20850    conftest$ac_exeext conftest.$ac_ext
20851LIBS=$ac_check_lib_save_LIBS
20852fi
20853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20854$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20855if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20856
20857$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20858
20859	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20860		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20861fi
20862
20863fi
20864rm -f core conftest.err conftest.$ac_objext \
20865    conftest$ac_exeext conftest.$ac_ext
20866fi
20867
20868if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20869then
20870  lt_save_LIBS="$LIBS"
20871  LIBS="$LIBS $LIBADD_DLOPEN"
20872  for ac_func in dlerror
20873do :
20874  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20875if test "x$ac_cv_func_dlerror" = xyes; then :
20876  cat >>confdefs.h <<_ACEOF
20877#define HAVE_DLERROR 1
20878_ACEOF
20879
20880fi
20881done
20882
20883  LIBS="$lt_save_LIBS"
20884fi
20885
20886
20887LIBADD_SHL_LOAD=
20888ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20889if test "x$ac_cv_func_shl_load" = xyes; then :
20890
20891$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20892
20893	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20894else
20895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20896$as_echo_n "checking for shl_load in -ldld... " >&6; }
20897if ${ac_cv_lib_dld_shl_load+:} false; then :
20898  $as_echo_n "(cached) " >&6
20899else
20900  ac_check_lib_save_LIBS=$LIBS
20901LIBS="-ldld  $LIBS"
20902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903/* end confdefs.h.  */
20904
20905/* Override any GCC internal prototype to avoid an error.
20906   Use char because int might match the return type of a GCC
20907   builtin and then its argument prototype would still apply.  */
20908#ifdef __cplusplus
20909extern "C"
20910#endif
20911char shl_load ();
20912int
20913main ()
20914{
20915return shl_load ();
20916  ;
20917  return 0;
20918}
20919_ACEOF
20920if ac_fn_c_try_link "$LINENO"; then :
20921  ac_cv_lib_dld_shl_load=yes
20922else
20923  ac_cv_lib_dld_shl_load=no
20924fi
20925rm -f core conftest.err conftest.$ac_objext \
20926    conftest$ac_exeext conftest.$ac_ext
20927LIBS=$ac_check_lib_save_LIBS
20928fi
20929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20930$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20931if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20932
20933$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20934
20935	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20936	    LIBADD_SHL_LOAD="-ldld"
20937fi
20938
20939fi
20940
20941
20942
20943case $host_os in
20944darwin[1567].*)
20945# We only want this for pre-Mac OS X 10.4.
20946  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20947if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20948
20949$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20950
20951	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20952fi
20953
20954  ;;
20955beos*)
20956  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20957  ;;
20958cygwin* | mingw* | os2* | pw32*)
20959  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20960"
20961if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20962  ac_have_decl=1
20963else
20964  ac_have_decl=0
20965fi
20966
20967cat >>confdefs.h <<_ACEOF
20968#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20969_ACEOF
20970
20971  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20972  ;;
20973esac
20974
20975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20976$as_echo_n "checking for dld_link in -ldld... " >&6; }
20977if ${ac_cv_lib_dld_dld_link+:} false; then :
20978  $as_echo_n "(cached) " >&6
20979else
20980  ac_check_lib_save_LIBS=$LIBS
20981LIBS="-ldld  $LIBS"
20982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983/* end confdefs.h.  */
20984
20985/* Override any GCC internal prototype to avoid an error.
20986   Use char because int might match the return type of a GCC
20987   builtin and then its argument prototype would still apply.  */
20988#ifdef __cplusplus
20989extern "C"
20990#endif
20991char dld_link ();
20992int
20993main ()
20994{
20995return dld_link ();
20996  ;
20997  return 0;
20998}
20999_ACEOF
21000if ac_fn_c_try_link "$LINENO"; then :
21001  ac_cv_lib_dld_dld_link=yes
21002else
21003  ac_cv_lib_dld_dld_link=no
21004fi
21005rm -f core conftest.err conftest.$ac_objext \
21006    conftest$ac_exeext conftest.$ac_ext
21007LIBS=$ac_check_lib_save_LIBS
21008fi
21009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21010$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21011if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21012
21013$as_echo "#define HAVE_DLD 1" >>confdefs.h
21014
21015		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
21016fi
21017
21018
21019
21020
21021LT_DLPREOPEN=
21022if test -n "$LT_DLLOADERS"
21023then
21024  for lt_loader in $LT_DLLOADERS; do
21025    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
21026  done
21027
21028$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
21029
21030fi
21031
21032
21033LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21034
21035
21036ac_ext=c
21037ac_cpp='$CPP $CPPFLAGS'
21038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21040ac_compiler_gnu=$ac_cv_c_compiler_gnu
21041
21042
21043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21044$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
21045if ${lt_cv_sys_symbol_underscore+:} false; then :
21046  $as_echo_n "(cached) " >&6
21047else
21048  lt_cv_sys_symbol_underscore=no
21049  cat > conftest.$ac_ext <<_LT_EOF
21050void nm_test_func(){}
21051int main(){nm_test_func;return 0;}
21052_LT_EOF
21053  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21054  (eval $ac_compile) 2>&5
21055  ac_status=$?
21056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21057  test $ac_status = 0; }; then
21058    # Now try to grab the symbols.
21059    ac_nlist=conftest.nm
21060    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21061  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21062  ac_status=$?
21063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21064  test $ac_status = 0; } && test -s "$ac_nlist"; then
21065      # See whether the symbols have a leading underscore.
21066      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21067        lt_cv_sys_symbol_underscore=yes
21068      else
21069        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21070	  :
21071        else
21072	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21073        fi
21074      fi
21075    else
21076      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21077    fi
21078  else
21079    echo "configure: failed program was:" >&5
21080    cat conftest.c >&5
21081  fi
21082  rm -rf conftest*
21083
21084fi
21085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21086$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21087  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21088
21089
21090if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21091  if test x"$libltdl_cv_func_dlopen" = xyes ||
21092     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21094$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
21095if ${libltdl_cv_need_uscore+:} false; then :
21096  $as_echo_n "(cached) " >&6
21097else
21098  libltdl_cv_need_uscore=unknown
21099          save_LIBS="$LIBS"
21100          LIBS="$LIBS $LIBADD_DLOPEN"
21101	  if test "$cross_compiling" = yes; then :
21102  libltdl_cv_need_uscore=cross
21103else
21104  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21105  lt_status=$lt_dlunknown
21106  cat > conftest.$ac_ext <<_LT_EOF
21107#line $LINENO "configure"
21108#include "confdefs.h"
21109
21110#if HAVE_DLFCN_H
21111#include <dlfcn.h>
21112#endif
21113
21114#include <stdio.h>
21115
21116#ifdef RTLD_GLOBAL
21117#  define LT_DLGLOBAL		RTLD_GLOBAL
21118#else
21119#  ifdef DL_GLOBAL
21120#    define LT_DLGLOBAL		DL_GLOBAL
21121#  else
21122#    define LT_DLGLOBAL		0
21123#  endif
21124#endif
21125
21126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21127   find out it does not work in some platform. */
21128#ifndef LT_DLLAZY_OR_NOW
21129#  ifdef RTLD_LAZY
21130#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21131#  else
21132#    ifdef DL_LAZY
21133#      define LT_DLLAZY_OR_NOW		DL_LAZY
21134#    else
21135#      ifdef RTLD_NOW
21136#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21137#      else
21138#        ifdef DL_NOW
21139#          define LT_DLLAZY_OR_NOW	DL_NOW
21140#        else
21141#          define LT_DLLAZY_OR_NOW	0
21142#        endif
21143#      endif
21144#    endif
21145#  endif
21146#endif
21147
21148/* When -fvisbility=hidden is used, assume the code has been annotated
21149   correspondingly for the symbols needed.  */
21150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21151int fnord () __attribute__((visibility("default")));
21152#endif
21153
21154int fnord () { return 42; }
21155int main ()
21156{
21157  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21158  int status = $lt_dlunknown;
21159
21160  if (self)
21161    {
21162      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21163      else
21164        {
21165	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21166          else puts (dlerror ());
21167	}
21168      /* dlclose (self); */
21169    }
21170  else
21171    puts (dlerror ());
21172
21173  return status;
21174}
21175_LT_EOF
21176  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21177  (eval $ac_link) 2>&5
21178  ac_status=$?
21179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21181    (./conftest; exit; ) >&5 2>/dev/null
21182    lt_status=$?
21183    case x$lt_status in
21184      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21185      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21186      x$lt_dlunknown|x*)  ;;
21187    esac
21188  else :
21189    # compilation failed
21190
21191  fi
21192fi
21193rm -fr conftest*
21194
21195	  LIBS="$save_LIBS"
21196
21197fi
21198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21199$as_echo "$libltdl_cv_need_uscore" >&6; }
21200  fi
21201fi
21202
21203if test x"$libltdl_cv_need_uscore" = xyes; then
21204
21205$as_echo "#define NEED_USCORE 1" >>confdefs.h
21206
21207fi
21208
21209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21210$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
21211if ${lt_cv_sys_dlopen_deplibs+:} false; then :
21212  $as_echo_n "(cached) " >&6
21213else
21214  # PORTME does your system automatically load deplibs for dlopen?
21215  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21216  # For now, we just catch OSes we know something about -- in the
21217  # future, we'll try test this programmatically.
21218  lt_cv_sys_dlopen_deplibs=unknown
21219  case $host_os in
21220  aix3*|aix4.1.*|aix4.2.*)
21221    # Unknown whether this is true for these versions of AIX, but
21222    # we want this `case' here to explicitly catch those versions.
21223    lt_cv_sys_dlopen_deplibs=unknown
21224    ;;
21225  aix[4-9]*)
21226    lt_cv_sys_dlopen_deplibs=yes
21227    ;;
21228  amigaos*)
21229    case $host_cpu in
21230    powerpc)
21231      lt_cv_sys_dlopen_deplibs=no
21232      ;;
21233    esac
21234    ;;
21235  darwin*)
21236    # Assuming the user has installed a libdl from somewhere, this is true
21237    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21238    lt_cv_sys_dlopen_deplibs=yes
21239    ;;
21240  freebsd* | dragonfly*)
21241    lt_cv_sys_dlopen_deplibs=yes
21242    ;;
21243  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
21244    # GNU and its variants, using gnu ld.so (Glibc)
21245    lt_cv_sys_dlopen_deplibs=yes
21246    ;;
21247  hpux10*|hpux11*)
21248    lt_cv_sys_dlopen_deplibs=yes
21249    ;;
21250  interix*)
21251    lt_cv_sys_dlopen_deplibs=yes
21252    ;;
21253  irix[12345]*|irix6.[01]*)
21254    # Catch all versions of IRIX before 6.2, and indicate that we don't
21255    # know how it worked for any of those versions.
21256    lt_cv_sys_dlopen_deplibs=unknown
21257    ;;
21258  irix*)
21259    # The case above catches anything before 6.2, and it's known that
21260    # at 6.2 and later dlopen does load deplibs.
21261    lt_cv_sys_dlopen_deplibs=yes
21262    ;;
21263  netbsd*)
21264    lt_cv_sys_dlopen_deplibs=yes
21265    ;;
21266  openbsd*)
21267    lt_cv_sys_dlopen_deplibs=yes
21268    ;;
21269  osf[1234]*)
21270    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21271    # it did *not* use an RPATH in a shared library to find objects the
21272    # library depends on, so we explicitly say `no'.
21273    lt_cv_sys_dlopen_deplibs=no
21274    ;;
21275  osf5.0|osf5.0a|osf5.1)
21276    # dlopen *does* load deplibs and with the right loader patch applied
21277    # it even uses RPATH in a shared library to search for shared objects
21278    # that the library depends on, but there's no easy way to know if that
21279    # patch is installed.  Since this is the case, all we can really
21280    # say is unknown -- it depends on the patch being installed.  If
21281    # it is, this changes to `yes'.  Without it, it would be `no'.
21282    lt_cv_sys_dlopen_deplibs=unknown
21283    ;;
21284  osf*)
21285    # the two cases above should catch all versions of osf <= 5.1.  Read
21286    # the comments above for what we know about them.
21287    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21288    # is used to find them so we can finally say `yes'.
21289    lt_cv_sys_dlopen_deplibs=yes
21290    ;;
21291  qnx*)
21292    lt_cv_sys_dlopen_deplibs=yes
21293    ;;
21294  solaris*)
21295    lt_cv_sys_dlopen_deplibs=yes
21296    ;;
21297  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21298    libltdl_cv_sys_dlopen_deplibs=yes
21299    ;;
21300  esac
21301
21302fi
21303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21304$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21305if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21306
21307$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21308
21309fi
21310
21311:
21312
21313for ac_header in argz.h
21314do :
21315  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21316"
21317if test "x$ac_cv_header_argz_h" = xyes; then :
21318  cat >>confdefs.h <<_ACEOF
21319#define HAVE_ARGZ_H 1
21320_ACEOF
21321
21322fi
21323
21324done
21325
21326
21327ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21328#  include <argz.h>
21329#endif
21330"
21331if test "x$ac_cv_type_error_t" = xyes; then :
21332
21333cat >>confdefs.h <<_ACEOF
21334#define HAVE_ERROR_T 1
21335_ACEOF
21336
21337
21338else
21339
21340$as_echo "#define error_t int" >>confdefs.h
21341
21342
21343$as_echo "#define __error_t_defined 1" >>confdefs.h
21344
21345fi
21346
21347
21348ARGZ_H=
21349for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21350	argz_next argz_stringify
21351do :
21352  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21353ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21354if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21355  cat >>confdefs.h <<_ACEOF
21356#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21357_ACEOF
21358
21359else
21360  ARGZ_H=argz.h;
21361
21362  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21363
21364fi
21365done
21366
21367
21368if test -z "$ARGZ_H"; then :
21369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21370$as_echo_n "checking if argz actually works... " >&6; }
21371if ${lt_cv_sys_argz_works+:} false; then :
21372  $as_echo_n "(cached) " >&6
21373else
21374  case $host_os in #(
21375	 *cygwin*)
21376	   lt_cv_sys_argz_works=no
21377	   if test "$cross_compiling" != no; then
21378	     lt_cv_sys_argz_works="guessing no"
21379	   else
21380	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21381	     save_IFS=$IFS
21382	     IFS=-.
21383	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21384	     IFS=$save_IFS
21385	     lt_os_major=${2-0}
21386	     lt_os_minor=${3-0}
21387	     lt_os_micro=${4-0}
21388	     if test "$lt_os_major" -gt 1 \
21389		|| { test "$lt_os_major" -eq 1 \
21390		  && { test "$lt_os_minor" -gt 5 \
21391		    || { test "$lt_os_minor" -eq 5 \
21392		      && test "$lt_os_micro" -gt 24; }; }; }; then
21393	       lt_cv_sys_argz_works=yes
21394	     fi
21395	   fi
21396	   ;; #(
21397	 *) lt_cv_sys_argz_works=yes ;;
21398	 esac
21399fi
21400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21401$as_echo "$lt_cv_sys_argz_works" >&6; }
21402     if test "$lt_cv_sys_argz_works" = yes; then :
21403
21404$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21405
21406else
21407  ARGZ_H=argz.h
21408
21409
21410  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21411
21412fi
21413fi
21414
21415
21416
21417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21418$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
21419if ${libltdl_cv_preloaded_symbols+:} false; then :
21420  $as_echo_n "(cached) " >&6
21421else
21422  if test -n "$lt_cv_sys_global_symbol_pipe"; then
21423    libltdl_cv_preloaded_symbols=yes
21424  else
21425    libltdl_cv_preloaded_symbols=no
21426  fi
21427
21428fi
21429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21430$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21431if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21432
21433$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21434
21435fi
21436
21437# Set options
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449# Check whether --with-included_ltdl was given.
21450if test "${with_included_ltdl+set}" = set; then :
21451  withval=$with_included_ltdl;
21452fi
21453
21454
21455if test "x$with_included_ltdl" != xyes; then
21456  # We are not being forced to use the included libltdl sources, so
21457  # decide whether there is a useful installed version we can use.
21458  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21459
21460"
21461if test "x$ac_cv_header_ltdl_h" = xyes; then :
21462  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21463	    #include <ltdl.h>
21464"
21465if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
21466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21467$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
21468if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
21469  $as_echo_n "(cached) " >&6
21470else
21471  ac_check_lib_save_LIBS=$LIBS
21472LIBS="-lltdl  $LIBS"
21473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474/* end confdefs.h.  */
21475
21476/* Override any GCC internal prototype to avoid an error.
21477   Use char because int might match the return type of a GCC
21478   builtin and then its argument prototype would still apply.  */
21479#ifdef __cplusplus
21480extern "C"
21481#endif
21482char lt_dladvise_preload ();
21483int
21484main ()
21485{
21486return lt_dladvise_preload ();
21487  ;
21488  return 0;
21489}
21490_ACEOF
21491if ac_fn_c_try_link "$LINENO"; then :
21492  ac_cv_lib_ltdl_lt_dladvise_preload=yes
21493else
21494  ac_cv_lib_ltdl_lt_dladvise_preload=no
21495fi
21496rm -f core conftest.err conftest.$ac_objext \
21497    conftest$ac_exeext conftest.$ac_ext
21498LIBS=$ac_check_lib_save_LIBS
21499fi
21500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21501$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21502if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
21503  with_included_ltdl=no
21504else
21505  with_included_ltdl=yes
21506fi
21507
21508else
21509  with_included_ltdl=yes
21510fi
21511
21512else
21513  with_included_ltdl=yes
21514fi
21515
21516
21517fi
21518
21519
21520
21521
21522# Check whether --with-ltdl_include was given.
21523if test "${with_ltdl_include+set}" = set; then :
21524  withval=$with_ltdl_include;
21525fi
21526
21527
21528if test -n "$with_ltdl_include"; then
21529  if test -f "$with_ltdl_include/ltdl.h"; then :
21530  else
21531    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
21532  fi
21533else
21534  with_ltdl_include=no
21535fi
21536
21537
21538# Check whether --with-ltdl_lib was given.
21539if test "${with_ltdl_lib+set}" = set; then :
21540  withval=$with_ltdl_lib;
21541fi
21542
21543
21544if test -n "$with_ltdl_lib"; then
21545  if test -f "$with_ltdl_lib/libltdl.la"; then :
21546  else
21547    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
21548  fi
21549else
21550  with_ltdl_lib=no
21551fi
21552
21553case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21554  ,yes,no,no,)
21555	case $enable_ltdl_convenience in
21556  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
21557  "") enable_ltdl_convenience=yes
21558      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21559esac
21560LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21561LTDLDEPS=$LIBLTDL
21562LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21563
21564
21565
21566
21567
21568# For backwards non-gettext consistent compatibility...
21569INCLTDL="$LTDLINCL"
21570
21571
21572	;;
21573  ,no,no,no,)
21574	# If the included ltdl is not to be used, then use the
21575	# preinstalled libltdl we found.
21576
21577$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21578
21579	LIBLTDL=-lltdl
21580	LTDLDEPS=
21581	LTDLINCL=
21582	;;
21583  ,no*,no,*)
21584	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
21585	;;
21586  *)	with_included_ltdl=no
21587	LIBLTDL="-L$with_ltdl_lib -lltdl"
21588	LTDLDEPS=
21589	LTDLINCL="-I$with_ltdl_include"
21590	;;
21591esac
21592INCLTDL="$LTDLINCL"
21593
21594# Report our decision...
21595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21596$as_echo_n "checking where to find libltdl headers... " >&6; }
21597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21598$as_echo "$LTDLINCL" >&6; }
21599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21600$as_echo_n "checking where to find libltdl library... " >&6; }
21601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21602$as_echo "$LIBLTDL" >&6; }
21603
21604
21605
21606# Check whether --enable-ltdl-install was given.
21607if test "${enable_ltdl_install+set}" = set; then :
21608  enableval=$enable_ltdl_install;
21609fi
21610
21611
21612case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21613  *yes*) ;;
21614  *) enable_ltdl_convenience=yes ;;
21615esac
21616
21617 if test x"${enable_ltdl_install-no}" != xno; then
21618  INSTALL_LTDL_TRUE=
21619  INSTALL_LTDL_FALSE='#'
21620else
21621  INSTALL_LTDL_TRUE='#'
21622  INSTALL_LTDL_FALSE=
21623fi
21624
21625  if test x"${enable_ltdl_convenience-no}" != xno; then
21626  CONVENIENCE_LTDL_TRUE=
21627  CONVENIENCE_LTDL_FALSE='#'
21628else
21629  CONVENIENCE_LTDL_TRUE='#'
21630  CONVENIENCE_LTDL_FALSE=
21631fi
21632
21633
21634
21635
21636
21637
21638# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21639# the user used.  This is so that ltdl.h can pick up the parent projects
21640# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21641# definitions required by ltdl.c.
21642# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21643
21644
21645
21646for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21647do :
21648  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21649ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21650"
21651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21652  cat >>confdefs.h <<_ACEOF
21653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21654_ACEOF
21655
21656fi
21657
21658done
21659
21660
21661for ac_func in closedir opendir readdir
21662do :
21663  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21664ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21665if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21666  cat >>confdefs.h <<_ACEOF
21667#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21668_ACEOF
21669
21670else
21671
21672
21673  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21674
21675fi
21676done
21677
21678for ac_func in strlcat strlcpy
21679do :
21680  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21681ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21682if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21683  cat >>confdefs.h <<_ACEOF
21684#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21685_ACEOF
21686
21687else
21688
21689
21690  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21691
21692fi
21693done
21694
21695
21696
21697cat >>confdefs.h <<_ACEOF
21698#define LT_LIBEXT "$libext"
21699_ACEOF
21700
21701
21702name=
21703eval "lt_libprefix=\"$libname_spec\""
21704
21705cat >>confdefs.h <<_ACEOF
21706#define LT_LIBPREFIX "$lt_libprefix"
21707_ACEOF
21708
21709
21710name=ltdl
21711eval "LTDLOPEN=\"$libname_spec\""
21712
21713
21714
21715
21716
21717
21718
21719
21720# Only expand once:
21721
21722
21723
21724# Check to see if building shared libraries
21725libtool_build_shared_libs='no'
21726if test "$enable_shared" = 'yes'; then
21727    libtool_build_shared_libs='yes'
21728fi
21729
21730# Check to see if building static libraries
21731libtool_build_static_libs='no'
21732if test "$enable_static" = 'yes'; then
21733    libtool_build_static_libs='yes'
21734fi
21735
21736 if test "${libtool_build_shared_libs}" = 'yes'; then
21737  WITH_SHARED_LIBS_TRUE=
21738  WITH_SHARED_LIBS_FALSE='#'
21739else
21740  WITH_SHARED_LIBS_TRUE='#'
21741  WITH_SHARED_LIBS_FALSE=
21742fi
21743
21744#
21745# Enable support for building loadable modules
21746#
21747
21748# Check whether --with-modules was given.
21749if test "${with_modules+set}" = set; then :
21750  withval=$with_modules; with_modules=$withval
21751else
21752  with_modules='no'
21753fi
21754
21755
21756# Only allow building loadable modules if we are building shared libraries
21757if test "$with_modules" != 'no' ; then
21758    if test "$libtool_build_shared_libs" = 'no'; then
21759        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21760$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21761        with_modules='no'
21762    fi
21763fi
21764if test "$with_modules" != 'no'; then
21765
21766$as_echo "#define BUILD_MODULES 1" >>confdefs.h
21767
21768fi
21769 if test "$with_modules" != 'no'; then
21770  WITH_MODULES_TRUE=
21771  WITH_MODULES_FALSE='#'
21772else
21773  WITH_MODULES_TRUE='#'
21774  WITH_MODULES_FALSE=
21775fi
21776
21777
21778# Enable building/use of libltdl if we are building shared libraries regardless
21779# of whether modules are built or not.
21780with_ltdl='no'
21781if test "$libtool_build_shared_libs" != 'no'; then
21782    with_ltdl='yes'
21783fi
21784
21785 if test "$with_ltdl" != 'no'; then
21786  WITH_LTDL_TRUE=
21787  WITH_LTDL_FALSE='#'
21788else
21789  WITH_LTDL_TRUE='#'
21790  WITH_LTDL_FALSE=
21791fi
21792
21793if test "$with_ltdl" != 'no'; then
21794
21795$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
21796
21797
21798    # Set DLLDFLAGS
21799    if test X"$enable_shared" = Xyes; then
21800        DLLDFLAGS=-export-dynamic
21801
21802    fi
21803fi
21804
21805# Enable build using delegate libraries built in subdirectories rather than installed
21806# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
21807# Check whether --enable-delegate-build was given.
21808if test "${enable_delegate_build+set}" = set; then :
21809  enableval=$enable_delegate_build; enable_delegate_build=$enableval
21810else
21811  enable_delegate_build='no'
21812fi
21813
21814
21815# Check whether --enable-deprecated was given.
21816if test "${enable_deprecated+set}" = set; then :
21817  enableval=$enable_deprecated; enable_deprecated=$enableval
21818else
21819  enable_deprecated='no'
21820fi
21821
21822
21823if test "$enable_deprecated" = 'yes'; then
21824
21825$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21826
21827else
21828  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21829fi
21830
21831# Build a version of ImageMagick which operates uninstalled.
21832# Used to build distributions located via MAGICK_HOME / executable path
21833# Check whether --enable-installed was given.
21834if test "${enable_installed+set}" = set; then :
21835  enableval=$enable_installed; enable_installed=$enableval
21836else
21837  enable_installed='yes'
21838fi
21839
21840
21841if test "$enable_installed" = 'yes'; then
21842
21843$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21844
21845else
21846    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21847fi
21848
21849# Permit enciphering and deciphering image pixels.
21850# Check whether --enable-cipher was given.
21851if test "${enable_cipher+set}" = set; then :
21852  enableval=$enable_cipher; enable_cipher=$enableval
21853else
21854  enable_cipher='yes'
21855fi
21856
21857
21858if test "$enable_cipher" = 'yes'; then
21859
21860$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21861
21862fi
21863
21864# Build a zero-configuration version of ImageMagick.
21865# Check whether --enable-zero-configuration was given.
21866if test "${enable_zero_configuration+set}" = set; then :
21867  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21868else
21869  enable_zero_configuration='no'
21870fi
21871
21872
21873if test "$enable_zero_configuration" = 'yes'; then
21874
21875$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21876
21877    MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21878fi
21879
21880# Build a high dynamic range version of ImageMagick.
21881# Check whether --enable-hdri was given.
21882if test "${enable_hdri+set}" = set; then :
21883  enableval=$enable_hdri; enable_hdri=$enableval
21884else
21885  enable_hdri='yes'
21886fi
21887
21888
21889MAGICK_HDRI=""
21890if test "$enable_hdri" = 'yes'; then
21891    MAGICK_HDRI="HDRI"
21892
21893$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21894
21895    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21896fi
21897
21898# Build a version of ImageMagick with assert statements.
21899# Check whether --enable-assert was given.
21900if test "${enable_assert+set}" = set; then :
21901  enableval=$enable_assert; enable_assert=$enableval
21902else
21903  enable_assert='yes'
21904fi
21905
21906
21907if test "$enable_assert" = 'no'; then
21908
21909$as_echo "#define NDEBUG 1" >>confdefs.h
21910
21911fi
21912
21913# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21914
21915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21916$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21917    # Check whether --enable-maintainer-mode was given.
21918if test "${enable_maintainer_mode+set}" = set; then :
21919  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21920else
21921  USE_MAINTAINER_MODE=no
21922fi
21923
21924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21925$as_echo "$USE_MAINTAINER_MODE" >&6; }
21926   if test $USE_MAINTAINER_MODE = yes; then
21927  MAINTAINER_MODE_TRUE=
21928  MAINTAINER_MODE_FALSE='#'
21929else
21930  MAINTAINER_MODE_TRUE='#'
21931  MAINTAINER_MODE_FALSE=
21932fi
21933
21934  MAINT=$MAINTAINER_MODE_TRUE
21935
21936
21937
21938# Enable ccmalloc memory debugging support
21939# Check whether --enable-ccmalloc was given.
21940if test "${enable_ccmalloc+set}" = set; then :
21941  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21942else
21943  enable_ccmalloc='no'
21944fi
21945
21946
21947# Enable Electric Fence memory debugging support
21948# Check whether --enable-efence was given.
21949if test "${enable_efence+set}" = set; then :
21950  enableval=$enable_efence; enable_efence=$enableval
21951else
21952  enable_efence='no'
21953fi
21954
21955
21956# Enable prof-based profiling support
21957# Check whether --enable-prof was given.
21958if test "${enable_prof+set}" = set; then :
21959  enableval=$enable_prof; enable_prof=$enableval
21960else
21961  enable_prof='no'
21962fi
21963
21964
21965# Enable gprof-based profiling support
21966# Check whether --enable-gprof was given.
21967if test "${enable_gprof+set}" = set; then :
21968  enableval=$enable_gprof; enable_gprof=$enableval
21969else
21970  enable_gprof='no'
21971fi
21972
21973
21974# Enable gcov-based profiling support
21975# Check whether --enable-gcov was given.
21976if test "${enable_gcov+set}" = set; then :
21977  enableval=$enable_gcov; enable_gcov=$enableval
21978else
21979  enable_gcov='no'
21980fi
21981
21982
21983enable_profiling='no'
21984if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21985    enable_profiling='yes'
21986    if test "$libtool_build_shared_libs" = 'yes'; then
21987        echo "Warning: Can not profile code using shared libraries"
21988    fi
21989fi
21990
21991# Magick API method prefix
21992
21993# Check whether --with-method-prefix was given.
21994if test "${with_method_prefix+set}" = set; then :
21995  withval=$with_method_prefix; with_method_prefix=$withval
21996else
21997  with_method_prefix='no'
21998fi
21999
22000
22001if test "$with_method_prefix" != 'no'; then
22002
22003cat >>confdefs.h <<_ACEOF
22004#define NAMESPACE_PREFIX $with_method_prefix
22005_ACEOF
22006
22007    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
22008fi
22009
22010# Enable legacy support (default no)
22011# Check whether --enable-legacy-support was given.
22012if test "${enable_legacy_support+set}" = set; then :
22013  enableval=$enable_legacy_support; with_legacy_support=$enableval
22014else
22015  with_legacy_support='no'
22016fi
22017
22018 if test "$with_legacy_support" != 'no'; then
22019  LEGACY_SUPPORT_TRUE=
22020  LEGACY_SUPPORT_FALSE='#'
22021else
22022  LEGACY_SUPPORT_TRUE='#'
22023  LEGACY_SUPPORT_FALSE=
22024fi
22025
22026
22027# Number of bits in a Quantum
22028
22029# Check whether --with-quantum-depth was given.
22030if test "${with_quantum_depth+set}" = set; then :
22031  withval=$with_quantum_depth; with_quantum_depth=$withval
22032else
22033  with_quantum_depth=16
22034fi
22035
22036
22037if test "$with_quantum_depth" != '8'; then
22038    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22039fi
22040
22041case "${with_quantum_depth}" in
22042    8 ) ;;
22043    16 ) ;;
22044    32 ) ;;
22045    64 ) ;;
22046    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
22047esac
22048QUANTUM_DEPTH="$with_quantum_depth"
22049
22050cat >>confdefs.h <<_ACEOF
22051#define QUANTUM_DEPTH $QUANTUM_DEPTH
22052_ACEOF
22053
22054
22055# Set pixel cache threshold
22056
22057# Check whether --with-cache was given.
22058if test "${with_cache+set}" = set; then :
22059  withval=$with_cache; with_cache=$withval
22060else
22061  with_cache=''
22062fi
22063
22064
22065if test "$with_cache" != ''; then
22066
22067cat >>confdefs.h <<_ACEOF
22068#define PixelCacheThreshold $with_cache
22069_ACEOF
22070
22071    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22072fi
22073
22074# Disable/Enable support for full delegate paths
22075
22076# Check whether --with-frozenpaths was given.
22077if test "${with_frozenpaths+set}" = set; then :
22078  withval=$with_frozenpaths; with_frozenpaths=$withval
22079else
22080  with_frozenpaths='no'
22081fi
22082
22083
22084# Enable build/install of Magick++
22085
22086# Check whether --with-magick-plus-plus was given.
22087if test "${with_magick_plus_plus+set}" = set; then :
22088  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22089else
22090  with_magick_plus_plus='yes'
22091fi
22092
22093
22094# Encode the this name into the shared library.
22095
22096# Check whether --with-package-release-name was given.
22097if test "${with_package_release_name+set}" = set; then :
22098  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22099fi
22100
22101
22102
22103# Disable build/install of PerlMagick.
22104
22105# Check whether --with-perl was given.
22106if test "${with_perl+set}" = set; then :
22107  withval=$with_perl; with_perl=$withval
22108else
22109  with_perl='no'
22110fi
22111
22112
22113# Options to pass when configuring PerlMagick
22114
22115# Check whether --with-perl-options was given.
22116if test "${with_perl_options+set}" = set; then :
22117  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
22118fi
22119
22120
22121
22122# Enable umem, object-caching memory allocation library.
22123
22124# Check whether --with-umem was given.
22125if test "${with_umem+set}" = set; then :
22126  withval=$with_umem; with_umem=$withval
22127else
22128  with_umem='no'
22129fi
22130
22131if test "$with_umem" != 'yes' ; then
22132    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22133fi
22134
22135#
22136# Specify path to shared libstdc++ if not in normal location
22137#
22138
22139# Check whether --with-libstdc was given.
22140if test "${with_libstdc+set}" = set; then :
22141  withval=$with_libstdc; with_libstdc=$withval
22142else
22143  with_libstdc=''
22144fi
22145
22146
22147if test "$with_libstdc" != ''; then
22148    if test -d "$with_libstdc"; then
22149        LIBSTDCLDFLAGS="-L$with_libstdc"
22150    fi
22151fi
22152
22153
22154# Does gcc required -traditional?
22155if test $ac_cv_c_compiler_gnu = yes; then
22156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
22157$as_echo_n "checking whether $CC needs -traditional... " >&6; }
22158if ${ac_cv_prog_gcc_traditional+:} false; then :
22159  $as_echo_n "(cached) " >&6
22160else
22161    ac_pattern="Autoconf.*'x'"
22162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163/* end confdefs.h.  */
22164#include <sgtty.h>
22165Autoconf TIOCGETP
22166_ACEOF
22167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22168  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
22169  ac_cv_prog_gcc_traditional=yes
22170else
22171  ac_cv_prog_gcc_traditional=no
22172fi
22173rm -f conftest*
22174
22175
22176  if test $ac_cv_prog_gcc_traditional = no; then
22177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178/* end confdefs.h.  */
22179#include <termio.h>
22180Autoconf TCGETA
22181_ACEOF
22182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22183  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
22184  ac_cv_prog_gcc_traditional=yes
22185fi
22186rm -f conftest*
22187
22188  fi
22189fi
22190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
22191$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22192  if test $ac_cv_prog_gcc_traditional = yes; then
22193    CC="$CC -traditional"
22194  fi
22195fi
22196
22197
22198########
22199#
22200# Set defines required to build DLLs and modules using MinGW
22201#
22202########
22203# These options are set for multi-thread DLL module build
22204#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
22205#  module:              _DLL
22206#  executable/Magick++: _DLL _MAGICKMOD_
22207MODULE_EXTRA_CPPFLAGS=''
22208LIBRARY_EXTRA_CPPFLAGS=''
22209if test "${native_win32_build}" = 'yes'; then
22210    if test "${libtool_build_shared_libs}" = 'yes'; then
22211        CPPFLAGS="$CPPFLAGS -D_DLL"
22212        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22213        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22214        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22215        if test "$with_modules" = 'yes'; then
22216            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22217        else
22218            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22219        fi
22220    else
22221        CPPFLAGS="$CPPFLAGS -D_LIB"
22222        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22223        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22224    fi
22225    if test "$with_threads" = 'yes'; then
22226         CPPFLAGS="$CPPFLAGS -D_MT"
22227         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22228         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22229    fi
22230fi
22231
22232
22233
22234# Check standard headers
22235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22236$as_echo_n "checking for ANSI C header files... " >&6; }
22237if ${ac_cv_header_stdc+:} false; then :
22238  $as_echo_n "(cached) " >&6
22239else
22240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241/* end confdefs.h.  */
22242#include <stdlib.h>
22243#include <stdarg.h>
22244#include <string.h>
22245#include <float.h>
22246
22247int
22248main ()
22249{
22250
22251  ;
22252  return 0;
22253}
22254_ACEOF
22255if ac_fn_c_try_compile "$LINENO"; then :
22256  ac_cv_header_stdc=yes
22257else
22258  ac_cv_header_stdc=no
22259fi
22260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261
22262if test $ac_cv_header_stdc = yes; then
22263  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265/* end confdefs.h.  */
22266#include <string.h>
22267
22268_ACEOF
22269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22270  $EGREP "memchr" >/dev/null 2>&1; then :
22271
22272else
22273  ac_cv_header_stdc=no
22274fi
22275rm -f conftest*
22276
22277fi
22278
22279if test $ac_cv_header_stdc = yes; then
22280  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22282/* end confdefs.h.  */
22283#include <stdlib.h>
22284
22285_ACEOF
22286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22287  $EGREP "free" >/dev/null 2>&1; then :
22288
22289else
22290  ac_cv_header_stdc=no
22291fi
22292rm -f conftest*
22293
22294fi
22295
22296if test $ac_cv_header_stdc = yes; then
22297  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22298  if test "$cross_compiling" = yes; then :
22299  :
22300else
22301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302/* end confdefs.h.  */
22303#include <ctype.h>
22304#include <stdlib.h>
22305#if ((' ' & 0x0FF) == 0x020)
22306# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22307# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22308#else
22309# define ISLOWER(c) \
22310		   (('a' <= (c) && (c) <= 'i') \
22311		     || ('j' <= (c) && (c) <= 'r') \
22312		     || ('s' <= (c) && (c) <= 'z'))
22313# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22314#endif
22315
22316#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22317int
22318main ()
22319{
22320  int i;
22321  for (i = 0; i < 256; i++)
22322    if (XOR (islower (i), ISLOWER (i))
22323	|| toupper (i) != TOUPPER (i))
22324      return 2;
22325  return 0;
22326}
22327_ACEOF
22328if ac_fn_c_try_run "$LINENO"; then :
22329
22330else
22331  ac_cv_header_stdc=no
22332fi
22333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22334  conftest.$ac_objext conftest.beam conftest.$ac_ext
22335fi
22336
22337fi
22338fi
22339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22340$as_echo "$ac_cv_header_stdc" >&6; }
22341if test $ac_cv_header_stdc = yes; then
22342
22343$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22344
22345fi
22346
22347if ! test x"$ac_cv_header_stdc" = x"yes"; then
22348    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
22349    header files.  Compilation cannot proceed.  Please install the ANSI C
22350    headers and rerun this script." >&5
22351$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22352    header files.  Compilation cannot proceed.  Please install the ANSI C
22353    headers and rerun this script." >&2;};
22354fi
22355
22356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22357$as_echo_n "checking whether to enable assertions... " >&6; }
22358  # Check whether --enable-assert was given.
22359if test "${enable_assert+set}" = set; then :
22360  enableval=$enable_assert; ac_enable_assert=$enableval
22361     if       test "x$enableval" = xno; then :
22362
22363$as_echo "#define NDEBUG 1" >>confdefs.h
22364
22365elif test "x$enableval" != xyes; then :
22366  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22367$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22368	ac_enable_assert=yes
22369fi
22370else
22371  ac_enable_assert=yes
22372fi
22373
22374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22375$as_echo "$ac_enable_assert" >&6; }
22376
22377ac_header_dirent=no
22378for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22379  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22381$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22382if eval \${$as_ac_Header+:} false; then :
22383  $as_echo_n "(cached) " >&6
22384else
22385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386/* end confdefs.h.  */
22387#include <sys/types.h>
22388#include <$ac_hdr>
22389
22390int
22391main ()
22392{
22393if ((DIR *) 0)
22394return 0;
22395  ;
22396  return 0;
22397}
22398_ACEOF
22399if ac_fn_c_try_compile "$LINENO"; then :
22400  eval "$as_ac_Header=yes"
22401else
22402  eval "$as_ac_Header=no"
22403fi
22404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405fi
22406eval ac_res=\$$as_ac_Header
22407	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22408$as_echo "$ac_res" >&6; }
22409if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22410  cat >>confdefs.h <<_ACEOF
22411#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22412_ACEOF
22413
22414ac_header_dirent=$ac_hdr; break
22415fi
22416
22417done
22418# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22419if test $ac_header_dirent = dirent.h; then
22420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22421$as_echo_n "checking for library containing opendir... " >&6; }
22422if ${ac_cv_search_opendir+:} false; then :
22423  $as_echo_n "(cached) " >&6
22424else
22425  ac_func_search_save_LIBS=$LIBS
22426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22427/* end confdefs.h.  */
22428
22429/* Override any GCC internal prototype to avoid an error.
22430   Use char because int might match the return type of a GCC
22431   builtin and then its argument prototype would still apply.  */
22432#ifdef __cplusplus
22433extern "C"
22434#endif
22435char opendir ();
22436int
22437main ()
22438{
22439return opendir ();
22440  ;
22441  return 0;
22442}
22443_ACEOF
22444for ac_lib in '' dir; do
22445  if test -z "$ac_lib"; then
22446    ac_res="none required"
22447  else
22448    ac_res=-l$ac_lib
22449    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22450  fi
22451  if ac_fn_c_try_link "$LINENO"; then :
22452  ac_cv_search_opendir=$ac_res
22453fi
22454rm -f core conftest.err conftest.$ac_objext \
22455    conftest$ac_exeext
22456  if ${ac_cv_search_opendir+:} false; then :
22457  break
22458fi
22459done
22460if ${ac_cv_search_opendir+:} false; then :
22461
22462else
22463  ac_cv_search_opendir=no
22464fi
22465rm conftest.$ac_ext
22466LIBS=$ac_func_search_save_LIBS
22467fi
22468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22469$as_echo "$ac_cv_search_opendir" >&6; }
22470ac_res=$ac_cv_search_opendir
22471if test "$ac_res" != no; then :
22472  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22473
22474fi
22475
22476else
22477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22478$as_echo_n "checking for library containing opendir... " >&6; }
22479if ${ac_cv_search_opendir+:} false; then :
22480  $as_echo_n "(cached) " >&6
22481else
22482  ac_func_search_save_LIBS=$LIBS
22483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484/* end confdefs.h.  */
22485
22486/* Override any GCC internal prototype to avoid an error.
22487   Use char because int might match the return type of a GCC
22488   builtin and then its argument prototype would still apply.  */
22489#ifdef __cplusplus
22490extern "C"
22491#endif
22492char opendir ();
22493int
22494main ()
22495{
22496return opendir ();
22497  ;
22498  return 0;
22499}
22500_ACEOF
22501for ac_lib in '' x; do
22502  if test -z "$ac_lib"; then
22503    ac_res="none required"
22504  else
22505    ac_res=-l$ac_lib
22506    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22507  fi
22508  if ac_fn_c_try_link "$LINENO"; then :
22509  ac_cv_search_opendir=$ac_res
22510fi
22511rm -f core conftest.err conftest.$ac_objext \
22512    conftest$ac_exeext
22513  if ${ac_cv_search_opendir+:} false; then :
22514  break
22515fi
22516done
22517if ${ac_cv_search_opendir+:} false; then :
22518
22519else
22520  ac_cv_search_opendir=no
22521fi
22522rm conftest.$ac_ext
22523LIBS=$ac_func_search_save_LIBS
22524fi
22525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22526$as_echo "$ac_cv_search_opendir" >&6; }
22527ac_res=$ac_cv_search_opendir
22528if test "$ac_res" != no; then :
22529  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22530
22531fi
22532
22533fi
22534
22535
22536# Check additional headers
22537for 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
22538do :
22539  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22540ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22542  cat >>confdefs.h <<_ACEOF
22543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22544_ACEOF
22545
22546fi
22547
22548done
22549
22550
22551########
22552#
22553# Checks for typedefs, structures, and compiler characteristics.
22554#
22555########
22556
22557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22558$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22559if ${ac_cv_header_stdbool_h+:} false; then :
22560  $as_echo_n "(cached) " >&6
22561else
22562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563/* end confdefs.h.  */
22564
22565             #include <stdbool.h>
22566             #ifndef bool
22567              "error: bool is not defined"
22568             #endif
22569             #ifndef false
22570              "error: false is not defined"
22571             #endif
22572             #if false
22573              "error: false is not 0"
22574             #endif
22575             #ifndef true
22576              "error: true is not defined"
22577             #endif
22578             #if true != 1
22579              "error: true is not 1"
22580             #endif
22581             #ifndef __bool_true_false_are_defined
22582              "error: __bool_true_false_are_defined is not defined"
22583             #endif
22584
22585             struct s { _Bool s: 1; _Bool t; } s;
22586
22587             char a[true == 1 ? 1 : -1];
22588             char b[false == 0 ? 1 : -1];
22589             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22590             char d[(bool) 0.5 == true ? 1 : -1];
22591             /* See body of main program for 'e'.  */
22592             char f[(_Bool) 0.0 == false ? 1 : -1];
22593             char g[true];
22594             char h[sizeof (_Bool)];
22595             char i[sizeof s.t];
22596             enum { j = false, k = true, l = false * true, m = true * 256 };
22597             /* The following fails for
22598                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22599             _Bool n[m];
22600             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22601             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22602             /* Catch a bug in an HP-UX C compiler.  See
22603                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22604                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22605              */
22606             _Bool q = true;
22607             _Bool *pq = &q;
22608
22609int
22610main ()
22611{
22612
22613             bool e = &s;
22614             *pq |= q;
22615             *pq |= ! q;
22616             /* Refer to every declared value, to avoid compiler optimizations.  */
22617             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22618                     + !m + !n + !o + !p + !q + !pq);
22619
22620  ;
22621  return 0;
22622}
22623_ACEOF
22624if ac_fn_c_try_compile "$LINENO"; then :
22625  ac_cv_header_stdbool_h=yes
22626else
22627  ac_cv_header_stdbool_h=no
22628fi
22629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630fi
22631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22632$as_echo "$ac_cv_header_stdbool_h" >&6; }
22633   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22634if test "x$ac_cv_type__Bool" = xyes; then :
22635
22636cat >>confdefs.h <<_ACEOF
22637#define HAVE__BOOL 1
22638_ACEOF
22639
22640
22641fi
22642
22643
22644if test $ac_cv_header_stdbool_h = yes; then
22645
22646$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
22647
22648fi
22649
22650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22651$as_echo_n "checking for working volatile... " >&6; }
22652if ${ac_cv_c_volatile+:} false; then :
22653  $as_echo_n "(cached) " >&6
22654else
22655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656/* end confdefs.h.  */
22657
22658int
22659main ()
22660{
22661
22662volatile int x;
22663int * volatile y = (int *) 0;
22664return !x && !y;
22665  ;
22666  return 0;
22667}
22668_ACEOF
22669if ac_fn_c_try_compile "$LINENO"; then :
22670  ac_cv_c_volatile=yes
22671else
22672  ac_cv_c_volatile=no
22673fi
22674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675fi
22676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22677$as_echo "$ac_cv_c_volatile" >&6; }
22678if test $ac_cv_c_volatile = no; then
22679
22680$as_echo "#define volatile /**/" >>confdefs.h
22681
22682fi
22683
22684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
22685$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22686if ${ac_cv_c_stringize+:} false; then :
22687  $as_echo_n "(cached) " >&6
22688else
22689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22690/* end confdefs.h.  */
22691#define x(y) #y
22692
22693char *s = x(teststring);
22694_ACEOF
22695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22696  $EGREP "#teststring" >/dev/null 2>&1; then :
22697  ac_cv_c_stringize=no
22698else
22699  ac_cv_c_stringize=yes
22700fi
22701rm -f conftest*
22702
22703fi
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22705$as_echo "$ac_cv_c_stringize" >&6; }
22706if test $ac_cv_c_stringize = yes; then
22707
22708$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22709
22710fi
22711
22712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22713$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22714if ${ac_cv_header_stat_broken+:} 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/stat.h>
22721
22722#if defined S_ISBLK && defined S_IFDIR
22723extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22724#endif
22725
22726#if defined S_ISBLK && defined S_IFCHR
22727extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22728#endif
22729
22730#if defined S_ISLNK && defined S_IFREG
22731extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22732#endif
22733
22734#if defined S_ISSOCK && defined S_IFREG
22735extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22736#endif
22737
22738_ACEOF
22739if ac_fn_c_try_compile "$LINENO"; then :
22740  ac_cv_header_stat_broken=no
22741else
22742  ac_cv_header_stat_broken=yes
22743fi
22744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22745fi
22746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22747$as_echo "$ac_cv_header_stat_broken" >&6; }
22748if test $ac_cv_header_stat_broken = yes; then
22749
22750$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22751
22752fi
22753
22754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22755$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22756if ${ac_cv_header_time+:} false; then :
22757  $as_echo_n "(cached) " >&6
22758else
22759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22760/* end confdefs.h.  */
22761#include <sys/types.h>
22762#include <sys/time.h>
22763#include <time.h>
22764
22765int
22766main ()
22767{
22768if ((struct tm *) 0)
22769return 0;
22770  ;
22771  return 0;
22772}
22773_ACEOF
22774if ac_fn_c_try_compile "$LINENO"; then :
22775  ac_cv_header_time=yes
22776else
22777  ac_cv_header_time=no
22778fi
22779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780fi
22781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22782$as_echo "$ac_cv_header_time" >&6; }
22783if test $ac_cv_header_time = yes; then
22784
22785$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22786
22787fi
22788
22789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22790$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22791if ${ac_cv_struct_tm+:} false; then :
22792  $as_echo_n "(cached) " >&6
22793else
22794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22795/* end confdefs.h.  */
22796#include <sys/types.h>
22797#include <time.h>
22798
22799int
22800main ()
22801{
22802struct tm tm;
22803				     int *p = &tm.tm_sec;
22804				     return !p;
22805  ;
22806  return 0;
22807}
22808_ACEOF
22809if ac_fn_c_try_compile "$LINENO"; then :
22810  ac_cv_struct_tm=time.h
22811else
22812  ac_cv_struct_tm=sys/time.h
22813fi
22814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815fi
22816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22817$as_echo "$ac_cv_struct_tm" >&6; }
22818if test $ac_cv_struct_tm = sys/time.h; then
22819
22820$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22821
22822fi
22823
22824ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22825#include <$ac_cv_struct_tm>
22826
22827"
22828if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22829
22830cat >>confdefs.h <<_ACEOF
22831#define HAVE_STRUCT_TM_TM_ZONE 1
22832_ACEOF
22833
22834
22835fi
22836
22837if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22838
22839$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22840
22841else
22842  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22843"
22844if test "x$ac_cv_have_decl_tzname" = xyes; then :
22845  ac_have_decl=1
22846else
22847  ac_have_decl=0
22848fi
22849
22850cat >>confdefs.h <<_ACEOF
22851#define HAVE_DECL_TZNAME $ac_have_decl
22852_ACEOF
22853
22854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22855$as_echo_n "checking for tzname... " >&6; }
22856if ${ac_cv_var_tzname+:} false; then :
22857  $as_echo_n "(cached) " >&6
22858else
22859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h.  */
22861#include <time.h>
22862#if !HAVE_DECL_TZNAME
22863extern char *tzname[];
22864#endif
22865
22866int
22867main ()
22868{
22869return tzname[0][0];
22870  ;
22871  return 0;
22872}
22873_ACEOF
22874if ac_fn_c_try_link "$LINENO"; then :
22875  ac_cv_var_tzname=yes
22876else
22877  ac_cv_var_tzname=no
22878fi
22879rm -f core conftest.err conftest.$ac_objext \
22880    conftest$ac_exeext conftest.$ac_ext
22881fi
22882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22883$as_echo "$ac_cv_var_tzname" >&6; }
22884  if test $ac_cv_var_tzname = yes; then
22885
22886$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22887
22888  fi
22889fi
22890
22891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22892$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22893if ${ac_cv_sys_interpreter+:} false; then :
22894  $as_echo_n "(cached) " >&6
22895else
22896  echo '#! /bin/cat
22897exit 69
22898' >conftest
22899chmod u+x conftest
22900(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22901if test $? -ne 69; then
22902   ac_cv_sys_interpreter=yes
22903else
22904   ac_cv_sys_interpreter=no
22905fi
22906rm -f conftest
22907fi
22908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22909$as_echo "$ac_cv_sys_interpreter" >&6; }
22910interpval=$ac_cv_sys_interpreter
22911
22912
22913# If the C compiler supports the keyword inline, do nothing. Otherwise
22914# define inline to __inline__ or __inline if it accepts one of those,
22915# otherwise define inline to be empty.
22916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22917$as_echo_n "checking for inline... " >&6; }
22918if ${ac_cv_c_inline+:} false; then :
22919  $as_echo_n "(cached) " >&6
22920else
22921  ac_cv_c_inline=no
22922for ac_kw in inline __inline__ __inline; do
22923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h.  */
22925#ifndef __cplusplus
22926typedef int foo_t;
22927static $ac_kw foo_t static_foo () {return 0; }
22928$ac_kw foo_t foo () {return 0; }
22929#endif
22930
22931_ACEOF
22932if ac_fn_c_try_compile "$LINENO"; then :
22933  ac_cv_c_inline=$ac_kw
22934fi
22935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936  test "$ac_cv_c_inline" != no && break
22937done
22938
22939fi
22940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22941$as_echo "$ac_cv_c_inline" >&6; }
22942
22943case $ac_cv_c_inline in
22944  inline | yes) ;;
22945  *)
22946    case $ac_cv_c_inline in
22947      no) ac_val=;;
22948      *) ac_val=$ac_cv_c_inline;;
22949    esac
22950    cat >>confdefs.h <<_ACEOF
22951#ifndef __cplusplus
22952#define inline $ac_val
22953#endif
22954_ACEOF
22955    ;;
22956esac
22957
22958
22959# If the C compiler supports the keyword restrict, do nothing. Otherwise
22960# define restrict to __restrict__ or __restrict if it accepts one of those,
22961# otherwise define restrict to be empty.
22962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22963$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22964if ${ac_cv_c_restrict+:} false; then :
22965  $as_echo_n "(cached) " >&6
22966else
22967  ac_cv_c_restrict=no
22968   # The order here caters to the fact that C++ does not require restrict.
22969   for ac_kw in __restrict __restrict__ _Restrict restrict; do
22970     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22971/* end confdefs.h.  */
22972typedef int * int_ptr;
22973	int foo (int_ptr $ac_kw ip) {
22974	return ip[0];
22975       }
22976int
22977main ()
22978{
22979int s[1];
22980	int * $ac_kw t = s;
22981	t[0] = 0;
22982	return foo(t)
22983  ;
22984  return 0;
22985}
22986_ACEOF
22987if ac_fn_c_try_compile "$LINENO"; then :
22988  ac_cv_c_restrict=$ac_kw
22989fi
22990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991     test "$ac_cv_c_restrict" != no && break
22992   done
22993
22994fi
22995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22996$as_echo "$ac_cv_c_restrict" >&6; }
22997
22998 case $ac_cv_c_restrict in
22999   restrict) ;;
23000   no) $as_echo "#define restrict /**/" >>confdefs.h
23001 ;;
23002   *)  cat >>confdefs.h <<_ACEOF
23003#define restrict $ac_cv_c_restrict
23004_ACEOF
23005 ;;
23006 esac
23007
23008
23009# If words are stored with the most significant byte first (like
23010# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23012$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23013if ${ac_cv_c_bigendian+:} false; then :
23014  $as_echo_n "(cached) " >&6
23015else
23016  ac_cv_c_bigendian=unknown
23017    # See if we're dealing with a universal compiler.
23018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019/* end confdefs.h.  */
23020#ifndef __APPLE_CC__
23021	       not a universal capable compiler
23022	     #endif
23023	     typedef int dummy;
23024
23025_ACEOF
23026if ac_fn_c_try_compile "$LINENO"; then :
23027
23028	# Check for potential -arch flags.  It is not universal unless
23029	# there are at least two -arch flags with different values.
23030	ac_arch=
23031	ac_prev=
23032	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23033	 if test -n "$ac_prev"; then
23034	   case $ac_word in
23035	     i?86 | x86_64 | ppc | ppc64)
23036	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23037		 ac_arch=$ac_word
23038	       else
23039		 ac_cv_c_bigendian=universal
23040		 break
23041	       fi
23042	       ;;
23043	   esac
23044	   ac_prev=
23045	 elif test "x$ac_word" = "x-arch"; then
23046	   ac_prev=arch
23047	 fi
23048       done
23049fi
23050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051    if test $ac_cv_c_bigendian = unknown; then
23052      # See if sys/param.h defines the BYTE_ORDER macro.
23053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054/* end confdefs.h.  */
23055#include <sys/types.h>
23056	     #include <sys/param.h>
23057
23058int
23059main ()
23060{
23061#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23062		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23063		     && LITTLE_ENDIAN)
23064	      bogus endian macros
23065	     #endif
23066
23067  ;
23068  return 0;
23069}
23070_ACEOF
23071if ac_fn_c_try_compile "$LINENO"; then :
23072  # It does; now see whether it defined to BIG_ENDIAN or not.
23073	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074/* end confdefs.h.  */
23075#include <sys/types.h>
23076		#include <sys/param.h>
23077
23078int
23079main ()
23080{
23081#if BYTE_ORDER != BIG_ENDIAN
23082		 not big endian
23083		#endif
23084
23085  ;
23086  return 0;
23087}
23088_ACEOF
23089if ac_fn_c_try_compile "$LINENO"; then :
23090  ac_cv_c_bigendian=yes
23091else
23092  ac_cv_c_bigendian=no
23093fi
23094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095fi
23096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097    fi
23098    if test $ac_cv_c_bigendian = unknown; then
23099      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23100      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23101/* end confdefs.h.  */
23102#include <limits.h>
23103
23104int
23105main ()
23106{
23107#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23108	      bogus endian macros
23109	     #endif
23110
23111  ;
23112  return 0;
23113}
23114_ACEOF
23115if ac_fn_c_try_compile "$LINENO"; then :
23116  # It does; now see whether it defined to _BIG_ENDIAN or not.
23117	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118/* end confdefs.h.  */
23119#include <limits.h>
23120
23121int
23122main ()
23123{
23124#ifndef _BIG_ENDIAN
23125		 not big endian
23126		#endif
23127
23128  ;
23129  return 0;
23130}
23131_ACEOF
23132if ac_fn_c_try_compile "$LINENO"; then :
23133  ac_cv_c_bigendian=yes
23134else
23135  ac_cv_c_bigendian=no
23136fi
23137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138fi
23139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23140    fi
23141    if test $ac_cv_c_bigendian = unknown; then
23142      # Compile a test program.
23143      if test "$cross_compiling" = yes; then :
23144  # Try to guess by grepping values from an object file.
23145	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146/* end confdefs.h.  */
23147short int ascii_mm[] =
23148		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23149		short int ascii_ii[] =
23150		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23151		int use_ascii (int i) {
23152		  return ascii_mm[i] + ascii_ii[i];
23153		}
23154		short int ebcdic_ii[] =
23155		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23156		short int ebcdic_mm[] =
23157		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23158		int use_ebcdic (int i) {
23159		  return ebcdic_mm[i] + ebcdic_ii[i];
23160		}
23161		extern int foo;
23162
23163int
23164main ()
23165{
23166return use_ascii (foo) == use_ebcdic (foo);
23167  ;
23168  return 0;
23169}
23170_ACEOF
23171if ac_fn_c_try_compile "$LINENO"; then :
23172  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23173	      ac_cv_c_bigendian=yes
23174	    fi
23175	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23176	      if test "$ac_cv_c_bigendian" = unknown; then
23177		ac_cv_c_bigendian=no
23178	      else
23179		# finding both strings is unlikely to happen, but who knows?
23180		ac_cv_c_bigendian=unknown
23181	      fi
23182	    fi
23183fi
23184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185else
23186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23187/* end confdefs.h.  */
23188$ac_includes_default
23189int
23190main ()
23191{
23192
23193	     /* Are we little or big endian?  From Harbison&Steele.  */
23194	     union
23195	     {
23196	       long int l;
23197	       char c[sizeof (long int)];
23198	     } u;
23199	     u.l = 1;
23200	     return u.c[sizeof (long int) - 1] == 1;
23201
23202  ;
23203  return 0;
23204}
23205_ACEOF
23206if ac_fn_c_try_run "$LINENO"; then :
23207  ac_cv_c_bigendian=no
23208else
23209  ac_cv_c_bigendian=yes
23210fi
23211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23212  conftest.$ac_objext conftest.beam conftest.$ac_ext
23213fi
23214
23215    fi
23216fi
23217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23218$as_echo "$ac_cv_c_bigendian" >&6; }
23219 case $ac_cv_c_bigendian in #(
23220   yes)
23221     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23222;; #(
23223   no)
23224      ;; #(
23225   universal)
23226
23227$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23228
23229     ;; #(
23230   *)
23231     as_fn_error $? "unknown endianness
23232 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23233 esac
23234
23235
23236# Define to a suitable type, if standard headers do not define it.
23237ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23238case $ac_cv_c_int8_t in #(
23239  no|yes) ;; #(
23240  *)
23241
23242cat >>confdefs.h <<_ACEOF
23243#define int8_t $ac_cv_c_int8_t
23244_ACEOF
23245;;
23246esac
23247
23248ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23249case $ac_cv_c_int16_t in #(
23250  no|yes) ;; #(
23251  *)
23252
23253cat >>confdefs.h <<_ACEOF
23254#define int16_t $ac_cv_c_int16_t
23255_ACEOF
23256;;
23257esac
23258
23259ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23260case $ac_cv_c_int32_t in #(
23261  no|yes) ;; #(
23262  *)
23263
23264cat >>confdefs.h <<_ACEOF
23265#define int32_t $ac_cv_c_int32_t
23266_ACEOF
23267;;
23268esac
23269
23270ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23271case $ac_cv_c_int64_t in #(
23272  no|yes) ;; #(
23273  *)
23274
23275cat >>confdefs.h <<_ACEOF
23276#define int64_t $ac_cv_c_int64_t
23277_ACEOF
23278;;
23279esac
23280
23281
23282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23283$as_echo_n "checking for long long int... " >&6; }
23284if ${ac_cv_type_long_long_int+:} false; then :
23285  $as_echo_n "(cached) " >&6
23286else
23287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288/* end confdefs.h.  */
23289
23290  /* For now, do not test the preprocessor; as of 2007 there are too many
23291         implementations with broken preprocessors.  Perhaps this can
23292         be revisited in 2012.  In the meantime, code should not expect
23293         #if to work with literals wider than 32 bits.  */
23294      /* Test literals.  */
23295      long long int ll = 9223372036854775807ll;
23296      long long int nll = -9223372036854775807LL;
23297      unsigned long long int ull = 18446744073709551615ULL;
23298      /* Test constant expressions.   */
23299      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23300                     ? 1 : -1)];
23301      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23302                     ? 1 : -1)];
23303      int i = 63;
23304int
23305main ()
23306{
23307/* Test availability of runtime routines for shift and division.  */
23308      long long int llmax = 9223372036854775807ll;
23309      unsigned long long int ullmax = 18446744073709551615ull;
23310      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23311              | (llmax / ll) | (llmax % ll)
23312              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23313              | (ullmax / ull) | (ullmax % ull));
23314  ;
23315  return 0;
23316}
23317
23318_ACEOF
23319if ac_fn_c_try_link "$LINENO"; then :
23320                          if test "$cross_compiling" = yes; then :
23321  ac_cv_type_long_long_int=yes
23322else
23323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324/* end confdefs.h.  */
23325#include <limits.h>
23326               #ifndef LLONG_MAX
23327               # define HALF \
23328                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23329               # define LLONG_MAX (HALF - 1 + HALF)
23330               #endif
23331int
23332main ()
23333{
23334long long int n = 1;
23335               int i;
23336               for (i = 0; ; i++)
23337                 {
23338                   long long int m = n << i;
23339                   if (m >> i != n)
23340                     return 1;
23341                   if (LLONG_MAX / 2 < m)
23342                     break;
23343                 }
23344               return 0;
23345  ;
23346  return 0;
23347}
23348_ACEOF
23349if ac_fn_c_try_run "$LINENO"; then :
23350  ac_cv_type_long_long_int=yes
23351else
23352  ac_cv_type_long_long_int=no
23353fi
23354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23355  conftest.$ac_objext conftest.beam conftest.$ac_ext
23356fi
23357
23358else
23359  ac_cv_type_long_long_int=no
23360fi
23361rm -f core conftest.err conftest.$ac_objext \
23362    conftest$ac_exeext conftest.$ac_ext
23363fi
23364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23365$as_echo "$ac_cv_type_long_long_int" >&6; }
23366  if test $ac_cv_type_long_long_int = yes; then
23367
23368$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23369
23370  fi
23371
23372
23373
23374  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23375if test "x$ac_cv_type_intmax_t" = xyes; then :
23376
23377$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23378
23379else
23380  test $ac_cv_type_long_long_int = yes \
23381       && ac_type='long long int' \
23382       || ac_type='long int'
23383
23384cat >>confdefs.h <<_ACEOF
23385#define intmax_t $ac_type
23386_ACEOF
23387
23388fi
23389
23390
23391
23392  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23393if test "x$ac_cv_type_intptr_t" = xyes; then :
23394
23395$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
23396
23397else
23398  for ac_type in 'int' 'long int' 'long long int'; do
23399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23400/* end confdefs.h.  */
23401$ac_includes_default
23402int
23403main ()
23404{
23405static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23406test_array [0] = 0;
23407return test_array [0];
23408
23409  ;
23410  return 0;
23411}
23412_ACEOF
23413if ac_fn_c_try_compile "$LINENO"; then :
23414
23415cat >>confdefs.h <<_ACEOF
23416#define intptr_t $ac_type
23417_ACEOF
23418
23419	  ac_type=
23420fi
23421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23422       test -z "$ac_type" && break
23423     done
23424fi
23425
23426
23427
23428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23429$as_echo_n "checking for long double... " >&6; }
23430if ${ac_cv_type_long_double+:} false; then :
23431  $as_echo_n "(cached) " >&6
23432else
23433  if test "$GCC" = yes; then
23434       ac_cv_type_long_double=yes
23435     else
23436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437/* end confdefs.h.  */
23438/* The Stardent Vistra knows sizeof (long double), but does
23439		 not support it.  */
23440	      long double foo = 0.0L;
23441int
23442main ()
23443{
23444static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23445	      sizeof (double) <= sizeof (long double))];
23446test_array [0] = 0;
23447return test_array [0];
23448
23449  ;
23450  return 0;
23451}
23452_ACEOF
23453if ac_fn_c_try_compile "$LINENO"; then :
23454  ac_cv_type_long_double=yes
23455else
23456  ac_cv_type_long_double=no
23457fi
23458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459     fi
23460fi
23461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23462$as_echo "$ac_cv_type_long_double" >&6; }
23463  if test $ac_cv_type_long_double = yes; then
23464
23465$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23466
23467  fi
23468
23469
23470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
23471$as_echo_n "checking for long double with more range or precision than double... " >&6; }
23472if ${ac_cv_type_long_double_wider+:} false; then :
23473  $as_echo_n "(cached) " >&6
23474else
23475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476/* end confdefs.h.  */
23477#include <float.h>
23478	    long double const a[] =
23479	      {
23480		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23481		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23482	      };
23483	    long double
23484	    f (long double x)
23485	    {
23486	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23487			+ (x ? f (x) : 'c'));
23488	    }
23489
23490int
23491main ()
23492{
23493static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23494		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
23495		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
23496		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23497	    && (int) LDBL_EPSILON == 0
23498	  )];
23499test_array [0] = 0;
23500return test_array [0];
23501
23502  ;
23503  return 0;
23504}
23505_ACEOF
23506if ac_fn_c_try_compile "$LINENO"; then :
23507  ac_cv_type_long_double_wider=yes
23508else
23509  ac_cv_type_long_double_wider=no
23510fi
23511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512fi
23513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
23514$as_echo "$ac_cv_type_long_double_wider" >&6; }
23515  if test $ac_cv_type_long_double_wider = yes; then
23516
23517$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
23518
23519  fi
23520
23521
23522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23523$as_echo_n "checking for long long int... " >&6; }
23524if ${ac_cv_type_long_long_int+:} false; then :
23525  $as_echo_n "(cached) " >&6
23526else
23527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528/* end confdefs.h.  */
23529
23530  /* For now, do not test the preprocessor; as of 2007 there are too many
23531         implementations with broken preprocessors.  Perhaps this can
23532         be revisited in 2012.  In the meantime, code should not expect
23533         #if to work with literals wider than 32 bits.  */
23534      /* Test literals.  */
23535      long long int ll = 9223372036854775807ll;
23536      long long int nll = -9223372036854775807LL;
23537      unsigned long long int ull = 18446744073709551615ULL;
23538      /* Test constant expressions.   */
23539      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23540                     ? 1 : -1)];
23541      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23542                     ? 1 : -1)];
23543      int i = 63;
23544int
23545main ()
23546{
23547/* Test availability of runtime routines for shift and division.  */
23548      long long int llmax = 9223372036854775807ll;
23549      unsigned long long int ullmax = 18446744073709551615ull;
23550      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23551              | (llmax / ll) | (llmax % ll)
23552              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23553              | (ullmax / ull) | (ullmax % ull));
23554  ;
23555  return 0;
23556}
23557
23558_ACEOF
23559if ac_fn_c_try_link "$LINENO"; then :
23560                          if test "$cross_compiling" = yes; then :
23561  ac_cv_type_long_long_int=yes
23562else
23563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564/* end confdefs.h.  */
23565#include <limits.h>
23566               #ifndef LLONG_MAX
23567               # define HALF \
23568                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23569               # define LLONG_MAX (HALF - 1 + HALF)
23570               #endif
23571int
23572main ()
23573{
23574long long int n = 1;
23575               int i;
23576               for (i = 0; ; i++)
23577                 {
23578                   long long int m = n << i;
23579                   if (m >> i != n)
23580                     return 1;
23581                   if (LLONG_MAX / 2 < m)
23582                     break;
23583                 }
23584               return 0;
23585  ;
23586  return 0;
23587}
23588_ACEOF
23589if ac_fn_c_try_run "$LINENO"; then :
23590  ac_cv_type_long_long_int=yes
23591else
23592  ac_cv_type_long_long_int=no
23593fi
23594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23595  conftest.$ac_objext conftest.beam conftest.$ac_ext
23596fi
23597
23598else
23599  ac_cv_type_long_long_int=no
23600fi
23601rm -f core conftest.err conftest.$ac_objext \
23602    conftest$ac_exeext conftest.$ac_ext
23603fi
23604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23605$as_echo "$ac_cv_type_long_long_int" >&6; }
23606  if test $ac_cv_type_long_long_int = yes; then
23607
23608$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23609
23610  fi
23611
23612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23613$as_echo_n "checking for mbstate_t... " >&6; }
23614if ${ac_cv_type_mbstate_t+:} false; then :
23615  $as_echo_n "(cached) " >&6
23616else
23617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618/* end confdefs.h.  */
23619$ac_includes_default
23620#	    include <wchar.h>
23621int
23622main ()
23623{
23624mbstate_t x; return sizeof x;
23625  ;
23626  return 0;
23627}
23628_ACEOF
23629if ac_fn_c_try_compile "$LINENO"; then :
23630  ac_cv_type_mbstate_t=yes
23631else
23632  ac_cv_type_mbstate_t=no
23633fi
23634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23635fi
23636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23637$as_echo "$ac_cv_type_mbstate_t" >&6; }
23638   if test $ac_cv_type_mbstate_t = yes; then
23639
23640$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23641
23642   else
23643
23644$as_echo "#define mbstate_t int" >>confdefs.h
23645
23646   fi
23647ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23648if test "x$ac_cv_type_mode_t" = xyes; then :
23649
23650else
23651
23652cat >>confdefs.h <<_ACEOF
23653#define mode_t int
23654_ACEOF
23655
23656fi
23657
23658ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23659if test "x$ac_cv_type_off_t" = xyes; then :
23660
23661else
23662
23663cat >>confdefs.h <<_ACEOF
23664#define off_t long int
23665_ACEOF
23666
23667fi
23668
23669ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23670if test "x$ac_cv_type_pid_t" = xyes; then :
23671
23672else
23673
23674cat >>confdefs.h <<_ACEOF
23675#define pid_t int
23676_ACEOF
23677
23678fi
23679
23680ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23681if test "x$ac_cv_type_size_t" = xyes; then :
23682
23683else
23684
23685cat >>confdefs.h <<_ACEOF
23686#define size_t unsigned int
23687_ACEOF
23688
23689fi
23690
23691ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23692if test "x$ac_cv_type_ssize_t" = xyes; then :
23693
23694else
23695
23696cat >>confdefs.h <<_ACEOF
23697#define ssize_t int
23698_ACEOF
23699
23700fi
23701
23702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23703$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23704if ${ac_cv_type_uid_t+:} false; then :
23705  $as_echo_n "(cached) " >&6
23706else
23707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23708/* end confdefs.h.  */
23709#include <sys/types.h>
23710
23711_ACEOF
23712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23713  $EGREP "uid_t" >/dev/null 2>&1; then :
23714  ac_cv_type_uid_t=yes
23715else
23716  ac_cv_type_uid_t=no
23717fi
23718rm -f conftest*
23719
23720fi
23721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23722$as_echo "$ac_cv_type_uid_t" >&6; }
23723if test $ac_cv_type_uid_t = no; then
23724
23725$as_echo "#define uid_t int" >>confdefs.h
23726
23727
23728$as_echo "#define gid_t int" >>confdefs.h
23729
23730fi
23731
23732ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23733case $ac_cv_c_uint8_t in #(
23734  no|yes) ;; #(
23735  *)
23736
23737$as_echo "#define _UINT8_T 1" >>confdefs.h
23738
23739
23740cat >>confdefs.h <<_ACEOF
23741#define uint8_t $ac_cv_c_uint8_t
23742_ACEOF
23743;;
23744  esac
23745
23746ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23747case $ac_cv_c_uint16_t in #(
23748  no|yes) ;; #(
23749  *)
23750
23751
23752cat >>confdefs.h <<_ACEOF
23753#define uint16_t $ac_cv_c_uint16_t
23754_ACEOF
23755;;
23756  esac
23757
23758ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23759case $ac_cv_c_uint32_t in #(
23760  no|yes) ;; #(
23761  *)
23762
23763$as_echo "#define _UINT32_T 1" >>confdefs.h
23764
23765
23766cat >>confdefs.h <<_ACEOF
23767#define uint32_t $ac_cv_c_uint32_t
23768_ACEOF
23769;;
23770  esac
23771
23772ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23773case $ac_cv_c_uint64_t in #(
23774  no|yes) ;; #(
23775  *)
23776
23777$as_echo "#define _UINT64_T 1" >>confdefs.h
23778
23779
23780cat >>confdefs.h <<_ACEOF
23781#define uint64_t $ac_cv_c_uint64_t
23782_ACEOF
23783;;
23784  esac
23785
23786
23787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23788$as_echo_n "checking for unsigned long long int... " >&6; }
23789if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23790  $as_echo_n "(cached) " >&6
23791else
23792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23793/* end confdefs.h.  */
23794
23795  /* For now, do not test the preprocessor; as of 2007 there are too many
23796         implementations with broken preprocessors.  Perhaps this can
23797         be revisited in 2012.  In the meantime, code should not expect
23798         #if to work with literals wider than 32 bits.  */
23799      /* Test literals.  */
23800      long long int ll = 9223372036854775807ll;
23801      long long int nll = -9223372036854775807LL;
23802      unsigned long long int ull = 18446744073709551615ULL;
23803      /* Test constant expressions.   */
23804      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23805                     ? 1 : -1)];
23806      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23807                     ? 1 : -1)];
23808      int i = 63;
23809int
23810main ()
23811{
23812/* Test availability of runtime routines for shift and division.  */
23813      long long int llmax = 9223372036854775807ll;
23814      unsigned long long int ullmax = 18446744073709551615ull;
23815      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23816              | (llmax / ll) | (llmax % ll)
23817              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23818              | (ullmax / ull) | (ullmax % ull));
23819  ;
23820  return 0;
23821}
23822
23823_ACEOF
23824if ac_fn_c_try_link "$LINENO"; then :
23825  ac_cv_type_unsigned_long_long_int=yes
23826else
23827  ac_cv_type_unsigned_long_long_int=no
23828fi
23829rm -f core conftest.err conftest.$ac_objext \
23830    conftest$ac_exeext conftest.$ac_ext
23831fi
23832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23833$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23834  if test $ac_cv_type_unsigned_long_long_int = yes; then
23835
23836$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23837
23838  fi
23839
23840
23841
23842  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23843if test "x$ac_cv_type_uintmax_t" = xyes; then :
23844
23845$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23846
23847else
23848  test $ac_cv_type_unsigned_long_long_int = yes \
23849       && ac_type='unsigned long long int' \
23850       || ac_type='unsigned long int'
23851
23852cat >>confdefs.h <<_ACEOF
23853#define uintmax_t $ac_type
23854_ACEOF
23855
23856fi
23857
23858
23859
23860  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23861if test "x$ac_cv_type_uintptr_t" = xyes; then :
23862
23863$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23864
23865else
23866  for ac_type in 'unsigned int' 'unsigned long int' \
23867	'unsigned long long int'; do
23868       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23869/* end confdefs.h.  */
23870$ac_includes_default
23871int
23872main ()
23873{
23874static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23875test_array [0] = 0;
23876return test_array [0];
23877
23878  ;
23879  return 0;
23880}
23881_ACEOF
23882if ac_fn_c_try_compile "$LINENO"; then :
23883
23884cat >>confdefs.h <<_ACEOF
23885#define uintptr_t $ac_type
23886_ACEOF
23887
23888	  ac_type=
23889fi
23890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891       test -z "$ac_type" && break
23892     done
23893fi
23894
23895
23896
23897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23898$as_echo_n "checking for unsigned long long int... " >&6; }
23899if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23900  $as_echo_n "(cached) " >&6
23901else
23902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23903/* end confdefs.h.  */
23904
23905  /* For now, do not test the preprocessor; as of 2007 there are too many
23906         implementations with broken preprocessors.  Perhaps this can
23907         be revisited in 2012.  In the meantime, code should not expect
23908         #if to work with literals wider than 32 bits.  */
23909      /* Test literals.  */
23910      long long int ll = 9223372036854775807ll;
23911      long long int nll = -9223372036854775807LL;
23912      unsigned long long int ull = 18446744073709551615ULL;
23913      /* Test constant expressions.   */
23914      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23915                     ? 1 : -1)];
23916      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23917                     ? 1 : -1)];
23918      int i = 63;
23919int
23920main ()
23921{
23922/* Test availability of runtime routines for shift and division.  */
23923      long long int llmax = 9223372036854775807ll;
23924      unsigned long long int ullmax = 18446744073709551615ull;
23925      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23926              | (llmax / ll) | (llmax % ll)
23927              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23928              | (ullmax / ull) | (ullmax % ull));
23929  ;
23930  return 0;
23931}
23932
23933_ACEOF
23934if ac_fn_c_try_link "$LINENO"; then :
23935  ac_cv_type_unsigned_long_long_int=yes
23936else
23937  ac_cv_type_unsigned_long_long_int=no
23938fi
23939rm -f core conftest.err conftest.$ac_objext \
23940    conftest$ac_exeext conftest.$ac_ext
23941fi
23942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23943$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23944  if test $ac_cv_type_unsigned_long_long_int = yes; then
23945
23946$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23947
23948  fi
23949
23950
23951# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23952# C compiler predefines it.
23953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23954$as_echo_n "checking whether char is unsigned... " >&6; }
23955if ${ac_cv_c_char_unsigned+:} false; then :
23956  $as_echo_n "(cached) " >&6
23957else
23958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959/* end confdefs.h.  */
23960$ac_includes_default
23961int
23962main ()
23963{
23964static int test_array [1 - 2 * !(((char) -1) < 0)];
23965test_array [0] = 0;
23966return test_array [0];
23967
23968  ;
23969  return 0;
23970}
23971_ACEOF
23972if ac_fn_c_try_compile "$LINENO"; then :
23973  ac_cv_c_char_unsigned=no
23974else
23975  ac_cv_c_char_unsigned=yes
23976fi
23977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23978fi
23979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23980$as_echo "$ac_cv_c_char_unsigned" >&6; }
23981if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23982  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23983
23984fi
23985
23986
23987# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23988# The cast to long int works around a bug in the HP C Compiler
23989# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23990# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23991# This bug is HP SR number 8606223364.
23992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23993$as_echo_n "checking size of signed short... " >&6; }
23994if ${ac_cv_sizeof_signed_short+:} false; then :
23995  $as_echo_n "(cached) " >&6
23996else
23997  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23998
23999else
24000  if test "$ac_cv_type_signed_short" = yes; then
24001     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24003as_fn_error 77 "cannot compute sizeof (signed short)
24004See \`config.log' for more details" "$LINENO" 5; }
24005   else
24006     ac_cv_sizeof_signed_short=0
24007   fi
24008fi
24009
24010fi
24011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
24012$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24013
24014
24015
24016cat >>confdefs.h <<_ACEOF
24017#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24018_ACEOF
24019
24020
24021
24022# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24023# The cast to long int works around a bug in the HP C Compiler
24024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24026# This bug is HP SR number 8606223364.
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
24028$as_echo_n "checking size of unsigned short... " >&6; }
24029if ${ac_cv_sizeof_unsigned_short+:} false; then :
24030  $as_echo_n "(cached) " >&6
24031else
24032  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
24033
24034else
24035  if test "$ac_cv_type_unsigned_short" = yes; then
24036     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24038as_fn_error 77 "cannot compute sizeof (unsigned short)
24039See \`config.log' for more details" "$LINENO" 5; }
24040   else
24041     ac_cv_sizeof_unsigned_short=0
24042   fi
24043fi
24044
24045fi
24046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
24047$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24048
24049
24050
24051cat >>confdefs.h <<_ACEOF
24052#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24053_ACEOF
24054
24055
24056
24057# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24058# The cast to long int works around a bug in the HP C Compiler
24059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24061# This bug is HP SR number 8606223364.
24062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
24063$as_echo_n "checking size of signed int... " >&6; }
24064if ${ac_cv_sizeof_signed_int+:} false; then :
24065  $as_echo_n "(cached) " >&6
24066else
24067  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
24068
24069else
24070  if test "$ac_cv_type_signed_int" = yes; then
24071     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24073as_fn_error 77 "cannot compute sizeof (signed int)
24074See \`config.log' for more details" "$LINENO" 5; }
24075   else
24076     ac_cv_sizeof_signed_int=0
24077   fi
24078fi
24079
24080fi
24081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
24082$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24083
24084
24085
24086cat >>confdefs.h <<_ACEOF
24087#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24088_ACEOF
24089
24090
24091
24092# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24093# The cast to long int works around a bug in the HP C Compiler
24094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24096# This bug is HP SR number 8606223364.
24097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24098$as_echo_n "checking size of unsigned int... " >&6; }
24099if ${ac_cv_sizeof_unsigned_int+:} false; then :
24100  $as_echo_n "(cached) " >&6
24101else
24102  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
24103
24104else
24105  if test "$ac_cv_type_unsigned_int" = yes; then
24106     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24108as_fn_error 77 "cannot compute sizeof (unsigned int)
24109See \`config.log' for more details" "$LINENO" 5; }
24110   else
24111     ac_cv_sizeof_unsigned_int=0
24112   fi
24113fi
24114
24115fi
24116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24117$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24118
24119
24120
24121cat >>confdefs.h <<_ACEOF
24122#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24123_ACEOF
24124
24125
24126
24127# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24128# The cast to long int works around a bug in the HP C Compiler
24129# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24130# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24131# This bug is HP SR number 8606223364.
24132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
24133$as_echo_n "checking size of signed long... " >&6; }
24134if ${ac_cv_sizeof_signed_long+:} false; then :
24135  $as_echo_n "(cached) " >&6
24136else
24137  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
24138
24139else
24140  if test "$ac_cv_type_signed_long" = yes; then
24141     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24143as_fn_error 77 "cannot compute sizeof (signed long)
24144See \`config.log' for more details" "$LINENO" 5; }
24145   else
24146     ac_cv_sizeof_signed_long=0
24147   fi
24148fi
24149
24150fi
24151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
24152$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24153
24154
24155
24156cat >>confdefs.h <<_ACEOF
24157#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24158_ACEOF
24159
24160
24161
24162# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24163# The cast to long int works around a bug in the HP C Compiler
24164# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24165# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24166# This bug is HP SR number 8606223364.
24167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
24168$as_echo_n "checking size of unsigned long... " >&6; }
24169if ${ac_cv_sizeof_unsigned_long+:} false; then :
24170  $as_echo_n "(cached) " >&6
24171else
24172  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
24173
24174else
24175  if test "$ac_cv_type_unsigned_long" = yes; then
24176     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24178as_fn_error 77 "cannot compute sizeof (unsigned long)
24179See \`config.log' for more details" "$LINENO" 5; }
24180   else
24181     ac_cv_sizeof_unsigned_long=0
24182   fi
24183fi
24184
24185fi
24186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
24187$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24188
24189
24190
24191cat >>confdefs.h <<_ACEOF
24192#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24193_ACEOF
24194
24195
24196
24197# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
24198# 'signed long long' is not supported then the value defined is zero.
24199# The cast to long int works around a bug in the HP C Compiler
24200# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24201# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24202# This bug is HP SR number 8606223364.
24203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
24204$as_echo_n "checking size of signed long long... " >&6; }
24205if ${ac_cv_sizeof_signed_long_long+:} false; then :
24206  $as_echo_n "(cached) " >&6
24207else
24208  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
24209
24210else
24211  if test "$ac_cv_type_signed_long_long" = yes; then
24212     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24214as_fn_error 77 "cannot compute sizeof (signed long long)
24215See \`config.log' for more details" "$LINENO" 5; }
24216   else
24217     ac_cv_sizeof_signed_long_long=0
24218   fi
24219fi
24220
24221fi
24222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
24223$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24224
24225
24226
24227cat >>confdefs.h <<_ACEOF
24228#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24229_ACEOF
24230
24231
24232
24233# Obtain size of a 'unsigned long long' and define as
24234# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
24235# supported then the value defined is zero.
24236# The cast to long int works around a bug in the HP C Compiler
24237# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24238# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24239# This bug is HP SR number 8606223364.
24240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
24241$as_echo_n "checking size of unsigned long long... " >&6; }
24242if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
24243  $as_echo_n "(cached) " >&6
24244else
24245  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
24246
24247else
24248  if test "$ac_cv_type_unsigned_long_long" = yes; then
24249     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24251as_fn_error 77 "cannot compute sizeof (unsigned long long)
24252See \`config.log' for more details" "$LINENO" 5; }
24253   else
24254     ac_cv_sizeof_unsigned_long_long=0
24255   fi
24256fi
24257
24258fi
24259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
24260$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24261
24262
24263
24264cat >>confdefs.h <<_ACEOF
24265#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24266_ACEOF
24267
24268
24269
24270# Obtain size of off_t and define as SIZEOF_OFF_T
24271# The cast to long int works around a bug in the HP C Compiler
24272# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24273# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24274# This bug is HP SR number 8606223364.
24275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24276$as_echo_n "checking size of off_t... " >&6; }
24277if ${ac_cv_sizeof_off_t+:} false; then :
24278  $as_echo_n "(cached) " >&6
24279else
24280  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
24281
24282else
24283  if test "$ac_cv_type_off_t" = yes; then
24284     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24286as_fn_error 77 "cannot compute sizeof (off_t)
24287See \`config.log' for more details" "$LINENO" 5; }
24288   else
24289     ac_cv_sizeof_off_t=0
24290   fi
24291fi
24292
24293fi
24294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24295$as_echo "$ac_cv_sizeof_off_t" >&6; }
24296
24297
24298
24299cat >>confdefs.h <<_ACEOF
24300#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24301_ACEOF
24302
24303
24304
24305# Obtain size of size_t and define as SIZEOF_SIZE_T
24306# The cast to long int works around a bug in the HP C Compiler
24307# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24308# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24309# This bug is HP SR number 8606223364.
24310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24311$as_echo_n "checking size of size_t... " >&6; }
24312if ${ac_cv_sizeof_size_t+:} false; then :
24313  $as_echo_n "(cached) " >&6
24314else
24315  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
24316
24317else
24318  if test "$ac_cv_type_size_t" = yes; then
24319     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24321as_fn_error 77 "cannot compute sizeof (size_t)
24322See \`config.log' for more details" "$LINENO" 5; }
24323   else
24324     ac_cv_sizeof_size_t=0
24325   fi
24326fi
24327
24328fi
24329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24330$as_echo "$ac_cv_sizeof_size_t" >&6; }
24331
24332
24333
24334cat >>confdefs.h <<_ACEOF
24335#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24336_ACEOF
24337
24338
24339
24340# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24341# The cast to long int works around a bug in the HP C Compiler
24342# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24343# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24344# This bug is HP SR number 8606223364.
24345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24346$as_echo_n "checking size of ssize_t... " >&6; }
24347if ${ac_cv_sizeof_ssize_t+:} false; then :
24348  $as_echo_n "(cached) " >&6
24349else
24350  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
24351
24352else
24353  if test "$ac_cv_type_ssize_t" = yes; then
24354     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24356as_fn_error 77 "cannot compute sizeof (ssize_t)
24357See \`config.log' for more details" "$LINENO" 5; }
24358   else
24359     ac_cv_sizeof_ssize_t=0
24360   fi
24361fi
24362
24363fi
24364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24365$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24366
24367
24368
24369cat >>confdefs.h <<_ACEOF
24370#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24371_ACEOF
24372
24373
24374
24375# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24376# The cast to long int works around a bug in the HP C Compiler
24377# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24378# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24379# This bug is HP SR number 8606223364.
24380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
24381$as_echo_n "checking size of unsigned int*... " >&6; }
24382if ${ac_cv_sizeof_unsigned_intp+:} false; then :
24383  $as_echo_n "(cached) " >&6
24384else
24385  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
24386
24387else
24388  if test "$ac_cv_type_unsigned_intp" = yes; then
24389     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24391as_fn_error 77 "cannot compute sizeof (unsigned int*)
24392See \`config.log' for more details" "$LINENO" 5; }
24393   else
24394     ac_cv_sizeof_unsigned_intp=0
24395   fi
24396fi
24397
24398fi
24399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
24400$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24401
24402
24403
24404cat >>confdefs.h <<_ACEOF
24405#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24406_ACEOF
24407
24408
24409
24410#
24411# Compute sized types for current CPU and compiler options.
24412#
24413
24414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
24415$as_echo_n "checking for signed 8-bit type... " >&6; }
24416INT8_T='signed char'
24417{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24418$as_echo "$as_me: $INT8_T" >&6;}
24419
24420
24421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
24422$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24423UINT8_T='unsigned char'
24424{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24425$as_echo "$as_me: $UINT8_T" >&6;}
24426
24427
24428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
24429$as_echo_n "checking for signed 16-bit type... " >&6; }
24430INT16_T='signed short'
24431{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24432$as_echo "$as_me: $INT16_T" >&6;}
24433
24434
24435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
24436$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24437UINT16_T='unsigned short'
24438{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24439$as_echo "$as_me: $UINT16_T" >&6;}
24440
24441
24442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
24443$as_echo_n "checking for signed 32-bit type... " >&6; }
24444INT32_T='none'
24445INT32_F='none'
24446if test $ac_cv_sizeof_signed_int -eq 4; then
24447  INT32_T='signed int'
24448  INT32_F='""'
24449elif test $ac_cv_sizeof_signed_long -eq 4; then
24450  INT32_T='signed long'
24451  INT32_F='"l"'
24452fi
24453{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24454$as_echo "$as_me: $INT32_T" >&6;}
24455
24456
24457
24458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
24459$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24460UINT32_T='none'
24461UINT32_F='none'
24462if test $ac_cv_sizeof_unsigned_int -eq 4; then
24463  UINT32_T='unsigned int'
24464  UINT32_F='""'
24465elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24466  UINT32_T='unsigned long'
24467  UINT32_F='"l"'
24468fi
24469{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24470$as_echo "$as_me: $UINT32_T" >&6;}
24471
24472
24473
24474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
24475$as_echo_n "checking for signed 64-bit type... " >&6; }
24476INT64_T='none'
24477INT64_F='none'
24478if test $ac_cv_sizeof_signed_long -eq 8; then
24479  INT64_T='signed long'
24480  INT64_F='"l"'
24481elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24482  INT64_T='signed long long'
24483  INT64_F='"ll"'
24484fi
24485case "${host_os}" in
24486  mingw* )
24487    INT64_F='"I64"'
24488    ;;
24489esac
24490{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24491$as_echo "$as_me: $INT64_T" >&6;}
24492
24493
24494
24495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
24496$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24497UINT64_T='none'
24498UINT64_F='none'
24499if test $ac_cv_sizeof_unsigned_long -eq 8; then
24500  UINT64_T='unsigned long'
24501  UINT64_F='"l"'
24502elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24503  UINT64_T='unsigned long long'
24504  UINT64_F='"ll"'
24505fi
24506case "${host_os}" in
24507  mingw* )
24508    UINT64_F='"I64"'
24509    ;;
24510esac
24511{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24512$as_echo "$as_me: $UINT64_T" >&6;}
24513
24514
24515
24516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
24517$as_echo_n "checking for unsigned maximum type... " >&6; }
24518UINTMAX_T='none'
24519UINTMAX_F='none'
24520if test "$UINT64_T" != 'none'; then
24521  UINTMAX_T=$UINT64_T
24522  UINTMAX_F=$UINT64_F
24523elif test "$UINT32_T" != 'none'; then
24524  UINTMAX_T=$UINT32_T
24525  UINTMAX_F=$UINT32_F
24526fi
24527{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24528$as_echo "$as_me: $UINTMAX_T" >&6;}
24529
24530
24531
24532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
24533$as_echo_n "checking for pointer difference type... " >&6; }
24534UINTPTR_T='none'
24535UINTPTR_F='none'
24536if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24537  UINTPTR_T='unsigned long'
24538  UINTPTR_F='"l"'
24539elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24540  UINTPTR_T='unsigned long long'
24541  UINTPTR_F='"ll"'
24542fi
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24544$as_echo "$as_me: $UINTPTR_T" >&6;}
24545
24546
24547
24548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
24549$as_echo_n "checking whether our compiler supports __func__... " >&6; }
24550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551/* end confdefs.h.  */
24552
24553int
24554main ()
24555{
24556{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24557  ;
24558  return 0;
24559}
24560_ACEOF
24561if ac_fn_c_try_compile "$LINENO"; then :
24562  { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24563$as_echo "$as_me: yes" >&6;}
24564else
24565  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24566$as_echo "$as_me: no" >&6;}
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
24568$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570/* end confdefs.h.  */
24571
24572int
24573main ()
24574{
24575{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24576  ;
24577  return 0;
24578}
24579_ACEOF
24580if ac_fn_c_try_compile "$LINENO"; then :
24581  { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24582$as_echo "$as_me: yes" >&6;}
24583
24584$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
24585
24586else
24587  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24588$as_echo "$as_me: no" >&6;}
24589
24590$as_echo "#define __func__ __FILE__" >>confdefs.h
24591
24592fi
24593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594fi
24595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596
24597########
24598#
24599# Check for functions
24600#
24601########
24602for ac_header in stdlib.h unistd.h
24603do :
24604  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24605ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24607  cat >>confdefs.h <<_ACEOF
24608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24609_ACEOF
24610
24611fi
24612
24613done
24614
24615for ac_func in getpagesize
24616do :
24617  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24618if test "x$ac_cv_func_getpagesize" = xyes; then :
24619  cat >>confdefs.h <<_ACEOF
24620#define HAVE_GETPAGESIZE 1
24621_ACEOF
24622
24623fi
24624done
24625
24626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24627$as_echo_n "checking for working mmap file i/o... " >&6; }
24628if ${magick_cv_func_mmap_fileio+:} false; then :
24629  $as_echo_n "(cached) " >&6
24630else
24631  if test "$cross_compiling" = yes; then :
24632  magick_cv_func_mmap_fileio=no
24633else
24634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24635/* end confdefs.h.  */
24636$ac_includes_default
24637/* malloc might have been renamed as rpl_malloc. */
24638#undef malloc
24639
24640/*
24641   This test is derived from GNU Autoconf's similar macro.
24642   The purpose of this test is to verify that files may be memory
24643   mapped, and that memory mapping and file I/O are coherent.
24644
24645   The test creates a test file, memory maps the file, updates
24646   the file using the memory map, and then reads the file using
24647   file I/O to verify that the file contains the updates.
24648*/
24649
24650#include <fcntl.h>
24651#include <sys/mman.h>
24652
24653#if !STDC_HEADERS && !HAVE_STDLIB_H
24654char *malloc ();
24655#endif
24656
24657/* This mess was copied from the GNU getpagesize.h.  */
24658#if !HAVE_GETPAGESIZE
24659/* Assume that all systems that can run configure have sys/param.h.  */
24660# if !HAVE_SYS_PARAM_H
24661#  define HAVE_SYS_PARAM_H 1
24662# endif
24663
24664# ifdef _SC_PAGESIZE
24665#  define getpagesize() sysconf(_SC_PAGESIZE)
24666# else /* no _SC_PAGESIZE */
24667#  if HAVE_SYS_PARAM_H
24668#   include <sys/param.h>
24669#   ifdef EXEC_PAGESIZE
24670#    define getpagesize() EXEC_PAGESIZE
24671#   else /* no EXEC_PAGESIZE */
24672#    ifdef NBPG
24673#     define getpagesize() NBPG * CLSIZE
24674#     ifndef CLSIZE
24675#      define CLSIZE 1
24676#     endif /* no CLSIZE */
24677#    else /* no NBPG */
24678#     ifdef NBPC
24679#      define getpagesize() NBPC
24680#     else /* no NBPC */
24681#      ifdef PAGESIZE
24682#       define getpagesize() PAGESIZE
24683#      endif /* PAGESIZE */
24684#     endif /* no NBPC */
24685#    endif /* no NBPG */
24686#   endif /* no EXEC_PAGESIZE */
24687#  else /* no HAVE_SYS_PARAM_H */
24688#   define getpagesize() 8192	/* punt totally */
24689#  endif /* no HAVE_SYS_PARAM_H */
24690# endif /* no _SC_PAGESIZE */
24691
24692#endif /* no HAVE_GETPAGESIZE */
24693
24694int
24695main ()
24696{
24697  char *data, *data2, *data3;
24698  int i, pagesize;
24699  int fd;
24700
24701  pagesize = getpagesize ();
24702
24703  /* First, make a file with some known garbage in it. */
24704  data = (char *) malloc (pagesize);
24705  if (!data)
24706    exit (1);
24707  for (i = 0; i < pagesize; ++i)
24708    *(data + i) = rand ();
24709  umask (0);
24710  fd = creat ("conftest.mmap", 0600);
24711  if (fd < 0)
24712    exit (1);
24713  if (write (fd, data, pagesize) != pagesize)
24714    exit (1);
24715  close (fd);
24716
24717  /* Mmap the file as read/write/shared and verify that we see the
24718  same garbage. */
24719  fd = open ("conftest.mmap", O_RDWR);
24720  if (fd < 0)
24721    exit (1);
24722  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24723  if (data2 == 0)
24724    exit (1);
24725  for (i = 0; i < pagesize; ++i)
24726    if (*(data + i) != *(data2 + i))
24727      exit (1);
24728
24729  /* Finally, make sure that changes to the mapped area
24730     percolate back to the file as seen by read().  */
24731  for (i = 0; i < pagesize; ++i)
24732    *(data2 + i) = *(data2 + i) + 1;
24733  data3 = (char *) malloc (pagesize);
24734  if (!data3)
24735    exit (1);
24736  if (read (fd, data3, pagesize) != pagesize)
24737    exit (1);
24738  for (i = 0; i < pagesize; ++i)
24739    if (*(data2 + i) != *(data3 + i))
24740      exit (1);
24741  close (fd);
24742  exit (0);
24743}
24744_ACEOF
24745if ac_fn_c_try_run "$LINENO"; then :
24746  magick_cv_func_mmap_fileio=yes
24747else
24748  magick_cv_func_mmap_fileio=no
24749fi
24750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24751  conftest.$ac_objext conftest.beam conftest.$ac_ext
24752fi
24753
24754fi
24755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24756$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24757if test $magick_cv_func_mmap_fileio = yes; then
24758
24759$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24760
24761fi
24762rm -f conftest.mmap
24763
24764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24765$as_echo_n "checking whether closedir returns void... " >&6; }
24766if ${ac_cv_func_closedir_void+:} false; then :
24767  $as_echo_n "(cached) " >&6
24768else
24769  if test "$cross_compiling" = yes; then :
24770  ac_cv_func_closedir_void=yes
24771else
24772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24773/* end confdefs.h.  */
24774$ac_includes_default
24775#include <$ac_header_dirent>
24776#ifndef __cplusplus
24777int closedir ();
24778#endif
24779
24780int
24781main ()
24782{
24783return closedir (opendir (".")) != 0;
24784  ;
24785  return 0;
24786}
24787_ACEOF
24788if ac_fn_c_try_run "$LINENO"; then :
24789  ac_cv_func_closedir_void=no
24790else
24791  ac_cv_func_closedir_void=yes
24792fi
24793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24794  conftest.$ac_objext conftest.beam conftest.$ac_ext
24795fi
24796
24797fi
24798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24799$as_echo "$ac_cv_func_closedir_void" >&6; }
24800if test $ac_cv_func_closedir_void = yes; then
24801
24802$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24803
24804fi
24805
24806
24807
24808
24809  for ac_header in $ac_header_list
24810do :
24811  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24812ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24813"
24814if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24815  cat >>confdefs.h <<_ACEOF
24816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24817_ACEOF
24818
24819fi
24820
24821done
24822
24823
24824
24825
24826
24827
24828
24829
24830for ac_func in getpagesize
24831do :
24832  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24833if test "x$ac_cv_func_getpagesize" = xyes; then :
24834  cat >>confdefs.h <<_ACEOF
24835#define HAVE_GETPAGESIZE 1
24836_ACEOF
24837
24838fi
24839done
24840
24841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24842$as_echo_n "checking for working mmap... " >&6; }
24843if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24844  $as_echo_n "(cached) " >&6
24845else
24846  if test "$cross_compiling" = yes; then :
24847  ac_cv_func_mmap_fixed_mapped=no
24848else
24849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24850/* end confdefs.h.  */
24851$ac_includes_default
24852/* malloc might have been renamed as rpl_malloc. */
24853#undef malloc
24854
24855/* Thanks to Mike Haertel and Jim Avera for this test.
24856   Here is a matrix of mmap possibilities:
24857	mmap private not fixed
24858	mmap private fixed at somewhere currently unmapped
24859	mmap private fixed at somewhere already mapped
24860	mmap shared not fixed
24861	mmap shared fixed at somewhere currently unmapped
24862	mmap shared fixed at somewhere already mapped
24863   For private mappings, we should verify that changes cannot be read()
24864   back from the file, nor mmap's back from the file at a different
24865   address.  (There have been systems where private was not correctly
24866   implemented like the infamous i386 svr4.0, and systems where the
24867   VM page cache was not coherent with the file system buffer cache
24868   like early versions of FreeBSD and possibly contemporary NetBSD.)
24869   For shared mappings, we should conversely verify that changes get
24870   propagated back to all the places they're supposed to be.
24871
24872   Grep wants private fixed already mapped.
24873   The main things grep needs to know about mmap are:
24874   * does it exist and is it safe to write into the mmap'd area
24875   * how to use it (BSD variants)  */
24876
24877#include <fcntl.h>
24878#include <sys/mman.h>
24879
24880#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24881char *malloc ();
24882#endif
24883
24884/* This mess was copied from the GNU getpagesize.h.  */
24885#ifndef HAVE_GETPAGESIZE
24886# ifdef _SC_PAGESIZE
24887#  define getpagesize() sysconf(_SC_PAGESIZE)
24888# else /* no _SC_PAGESIZE */
24889#  ifdef HAVE_SYS_PARAM_H
24890#   include <sys/param.h>
24891#   ifdef EXEC_PAGESIZE
24892#    define getpagesize() EXEC_PAGESIZE
24893#   else /* no EXEC_PAGESIZE */
24894#    ifdef NBPG
24895#     define getpagesize() NBPG * CLSIZE
24896#     ifndef CLSIZE
24897#      define CLSIZE 1
24898#     endif /* no CLSIZE */
24899#    else /* no NBPG */
24900#     ifdef NBPC
24901#      define getpagesize() NBPC
24902#     else /* no NBPC */
24903#      ifdef PAGESIZE
24904#       define getpagesize() PAGESIZE
24905#      endif /* PAGESIZE */
24906#     endif /* no NBPC */
24907#    endif /* no NBPG */
24908#   endif /* no EXEC_PAGESIZE */
24909#  else /* no HAVE_SYS_PARAM_H */
24910#   define getpagesize() 8192	/* punt totally */
24911#  endif /* no HAVE_SYS_PARAM_H */
24912# endif /* no _SC_PAGESIZE */
24913
24914#endif /* no HAVE_GETPAGESIZE */
24915
24916int
24917main ()
24918{
24919  char *data, *data2, *data3;
24920  const char *cdata2;
24921  int i, pagesize;
24922  int fd, fd2;
24923
24924  pagesize = getpagesize ();
24925
24926  /* First, make a file with some known garbage in it. */
24927  data = (char *) malloc (pagesize);
24928  if (!data)
24929    return 1;
24930  for (i = 0; i < pagesize; ++i)
24931    *(data + i) = rand ();
24932  umask (0);
24933  fd = creat ("conftest.mmap", 0600);
24934  if (fd < 0)
24935    return 2;
24936  if (write (fd, data, pagesize) != pagesize)
24937    return 3;
24938  close (fd);
24939
24940  /* Next, check that the tail of a page is zero-filled.  File must have
24941     non-zero length, otherwise we risk SIGBUS for entire page.  */
24942  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24943  if (fd2 < 0)
24944    return 4;
24945  cdata2 = "";
24946  if (write (fd2, cdata2, 1) != 1)
24947    return 5;
24948  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24949  if (data2 == MAP_FAILED)
24950    return 6;
24951  for (i = 0; i < pagesize; ++i)
24952    if (*(data2 + i))
24953      return 7;
24954  close (fd2);
24955  if (munmap (data2, pagesize))
24956    return 8;
24957
24958  /* Next, try to mmap the file at a fixed address which already has
24959     something else allocated at it.  If we can, also make sure that
24960     we see the same garbage.  */
24961  fd = open ("conftest.mmap", O_RDWR);
24962  if (fd < 0)
24963    return 9;
24964  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24965		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24966    return 10;
24967  for (i = 0; i < pagesize; ++i)
24968    if (*(data + i) != *(data2 + i))
24969      return 11;
24970
24971  /* Finally, make sure that changes to the mapped area do not
24972     percolate back to the file as seen by read().  (This is a bug on
24973     some variants of i386 svr4.0.)  */
24974  for (i = 0; i < pagesize; ++i)
24975    *(data2 + i) = *(data2 + i) + 1;
24976  data3 = (char *) malloc (pagesize);
24977  if (!data3)
24978    return 12;
24979  if (read (fd, data3, pagesize) != pagesize)
24980    return 13;
24981  for (i = 0; i < pagesize; ++i)
24982    if (*(data + i) != *(data3 + i))
24983      return 14;
24984  close (fd);
24985  return 0;
24986}
24987_ACEOF
24988if ac_fn_c_try_run "$LINENO"; then :
24989  ac_cv_func_mmap_fixed_mapped=yes
24990else
24991  ac_cv_func_mmap_fixed_mapped=no
24992fi
24993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24994  conftest.$ac_objext conftest.beam conftest.$ac_ext
24995fi
24996
24997fi
24998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24999$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25000if test $ac_cv_func_mmap_fixed_mapped = yes; then
25001
25002$as_echo "#define HAVE_MMAP 1" >>confdefs.h
25003
25004fi
25005rm -f conftest.mmap conftest.txt
25006
25007for ac_header in vfork.h
25008do :
25009  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25010if test "x$ac_cv_header_vfork_h" = xyes; then :
25011  cat >>confdefs.h <<_ACEOF
25012#define HAVE_VFORK_H 1
25013_ACEOF
25014
25015fi
25016
25017done
25018
25019for ac_func in fork vfork
25020do :
25021  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25022ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25023if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25024  cat >>confdefs.h <<_ACEOF
25025#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25026_ACEOF
25027
25028fi
25029done
25030
25031if test "x$ac_cv_func_fork" = xyes; then
25032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25033$as_echo_n "checking for working fork... " >&6; }
25034if ${ac_cv_func_fork_works+:} false; then :
25035  $as_echo_n "(cached) " >&6
25036else
25037  if test "$cross_compiling" = yes; then :
25038  ac_cv_func_fork_works=cross
25039else
25040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25041/* end confdefs.h.  */
25042$ac_includes_default
25043int
25044main ()
25045{
25046
25047	  /* By Ruediger Kuhlmann. */
25048	  return fork () < 0;
25049
25050  ;
25051  return 0;
25052}
25053_ACEOF
25054if ac_fn_c_try_run "$LINENO"; then :
25055  ac_cv_func_fork_works=yes
25056else
25057  ac_cv_func_fork_works=no
25058fi
25059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25060  conftest.$ac_objext conftest.beam conftest.$ac_ext
25061fi
25062
25063fi
25064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25065$as_echo "$ac_cv_func_fork_works" >&6; }
25066
25067else
25068  ac_cv_func_fork_works=$ac_cv_func_fork
25069fi
25070if test "x$ac_cv_func_fork_works" = xcross; then
25071  case $host in
25072    *-*-amigaos* | *-*-msdosdjgpp*)
25073      # Override, as these systems have only a dummy fork() stub
25074      ac_cv_func_fork_works=no
25075      ;;
25076    *)
25077      ac_cv_func_fork_works=yes
25078      ;;
25079  esac
25080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25081$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25082fi
25083ac_cv_func_vfork_works=$ac_cv_func_vfork
25084if test "x$ac_cv_func_vfork" = xyes; then
25085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25086$as_echo_n "checking for working vfork... " >&6; }
25087if ${ac_cv_func_vfork_works+:} false; then :
25088  $as_echo_n "(cached) " >&6
25089else
25090  if test "$cross_compiling" = yes; then :
25091  ac_cv_func_vfork_works=cross
25092else
25093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25094/* end confdefs.h.  */
25095/* Thanks to Paul Eggert for this test.  */
25096$ac_includes_default
25097#include <sys/wait.h>
25098#ifdef HAVE_VFORK_H
25099# include <vfork.h>
25100#endif
25101/* On some sparc systems, changes by the child to local and incoming
25102   argument registers are propagated back to the parent.  The compiler
25103   is told about this with #include <vfork.h>, but some compilers
25104   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25105   static variable whose address is put into a register that is
25106   clobbered by the vfork.  */
25107static void
25108#ifdef __cplusplus
25109sparc_address_test (int arg)
25110# else
25111sparc_address_test (arg) int arg;
25112#endif
25113{
25114  static pid_t child;
25115  if (!child) {
25116    child = vfork ();
25117    if (child < 0) {
25118      perror ("vfork");
25119      _exit(2);
25120    }
25121    if (!child) {
25122      arg = getpid();
25123      write(-1, "", 0);
25124      _exit (arg);
25125    }
25126  }
25127}
25128
25129int
25130main ()
25131{
25132  pid_t parent = getpid ();
25133  pid_t child;
25134
25135  sparc_address_test (0);
25136
25137  child = vfork ();
25138
25139  if (child == 0) {
25140    /* Here is another test for sparc vfork register problems.  This
25141       test uses lots of local variables, at least as many local
25142       variables as main has allocated so far including compiler
25143       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25144       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25145       reuse the register of parent for one of the local variables,
25146       since it will think that parent can't possibly be used any more
25147       in this routine.  Assigning to the local variable will thus
25148       munge parent in the parent process.  */
25149    pid_t
25150      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25151      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25152    /* Convince the compiler that p..p7 are live; otherwise, it might
25153       use the same hardware register for all 8 local variables.  */
25154    if (p != p1 || p != p2 || p != p3 || p != p4
25155	|| p != p5 || p != p6 || p != p7)
25156      _exit(1);
25157
25158    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25159       from child file descriptors.  If the child closes a descriptor
25160       before it execs or exits, this munges the parent's descriptor
25161       as well.  Test for this by closing stdout in the child.  */
25162    _exit(close(fileno(stdout)) != 0);
25163  } else {
25164    int status;
25165    struct stat st;
25166
25167    while (wait(&status) != child)
25168      ;
25169    return (
25170	 /* Was there some problem with vforking?  */
25171	 child < 0
25172
25173	 /* Did the child fail?  (This shouldn't happen.)  */
25174	 || status
25175
25176	 /* Did the vfork/compiler bug occur?  */
25177	 || parent != getpid()
25178
25179	 /* Did the file descriptor bug occur?  */
25180	 || fstat(fileno(stdout), &st) != 0
25181	 );
25182  }
25183}
25184_ACEOF
25185if ac_fn_c_try_run "$LINENO"; then :
25186  ac_cv_func_vfork_works=yes
25187else
25188  ac_cv_func_vfork_works=no
25189fi
25190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25191  conftest.$ac_objext conftest.beam conftest.$ac_ext
25192fi
25193
25194fi
25195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25196$as_echo "$ac_cv_func_vfork_works" >&6; }
25197
25198fi;
25199if test "x$ac_cv_func_fork_works" = xcross; then
25200  ac_cv_func_vfork_works=$ac_cv_func_vfork
25201  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25202$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25203fi
25204
25205if test "x$ac_cv_func_vfork_works" = xyes; then
25206
25207$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25208
25209else
25210
25211$as_echo "#define vfork fork" >>confdefs.h
25212
25213fi
25214if test "x$ac_cv_func_fork_works" = xyes; then
25215
25216$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25217
25218fi
25219
25220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
25221$as_echo_n "checking for working memcmp... " >&6; }
25222if ${ac_cv_func_memcmp_working+:} false; then :
25223  $as_echo_n "(cached) " >&6
25224else
25225  if test "$cross_compiling" = yes; then :
25226  ac_cv_func_memcmp_working=no
25227else
25228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229/* end confdefs.h.  */
25230$ac_includes_default
25231int
25232main ()
25233{
25234
25235  /* Some versions of memcmp are not 8-bit clean.  */
25236  char c0 = '\100', c1 = '\200', c2 = '\201';
25237  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25238    return 1;
25239
25240  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25241     or more and with at least one buffer not starting on a 4-byte boundary.
25242     William Lewis provided this test program.   */
25243  {
25244    char foo[21];
25245    char bar[21];
25246    int i;
25247    for (i = 0; i < 4; i++)
25248      {
25249	char *a = foo + i;
25250	char *b = bar + i;
25251	strcpy (a, "--------01111111");
25252	strcpy (b, "--------10000000");
25253	if (memcmp (a, b, 16) >= 0)
25254	  return 1;
25255      }
25256    return 0;
25257  }
25258
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263if ac_fn_c_try_run "$LINENO"; then :
25264  ac_cv_func_memcmp_working=yes
25265else
25266  ac_cv_func_memcmp_working=no
25267fi
25268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25269  conftest.$ac_objext conftest.beam conftest.$ac_ext
25270fi
25271
25272fi
25273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
25274$as_echo "$ac_cv_func_memcmp_working" >&6; }
25275test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25276  *" memcmp.$ac_objext "* ) ;;
25277  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25278 ;;
25279esac
25280
25281
25282for ac_header in sys/select.h sys/socket.h
25283do :
25284  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25285ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25287  cat >>confdefs.h <<_ACEOF
25288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25289_ACEOF
25290
25291fi
25292
25293done
25294
25295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
25296$as_echo_n "checking types of arguments for select... " >&6; }
25297if ${ac_cv_func_select_args+:} false; then :
25298  $as_echo_n "(cached) " >&6
25299else
25300  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25301 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25302  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25304/* end confdefs.h.  */
25305$ac_includes_default
25306#ifdef HAVE_SYS_SELECT_H
25307# include <sys/select.h>
25308#endif
25309#ifdef HAVE_SYS_SOCKET_H
25310# include <sys/socket.h>
25311#endif
25312
25313int
25314main ()
25315{
25316extern int select ($ac_arg1,
25317					    $ac_arg234, $ac_arg234, $ac_arg234,
25318					    $ac_arg5);
25319  ;
25320  return 0;
25321}
25322_ACEOF
25323if ac_fn_c_try_compile "$LINENO"; then :
25324  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25325fi
25326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327  done
25328 done
25329done
25330# Provide a safe default value.
25331: "${ac_cv_func_select_args=int,int *,struct timeval *}"
25332
25333fi
25334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
25335$as_echo "$ac_cv_func_select_args" >&6; }
25336ac_save_IFS=$IFS; IFS=','
25337set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25338IFS=$ac_save_IFS
25339shift
25340
25341cat >>confdefs.h <<_ACEOF
25342#define SELECT_TYPE_ARG1 $1
25343_ACEOF
25344
25345
25346cat >>confdefs.h <<_ACEOF
25347#define SELECT_TYPE_ARG234 ($2)
25348_ACEOF
25349
25350
25351cat >>confdefs.h <<_ACEOF
25352#define SELECT_TYPE_ARG5 ($3)
25353_ACEOF
25354
25355rm -f conftest*
25356
25357if ${ac_cv_func_setvbuf_reversed+:} false; then :
25358  $as_echo_n "(cached) " >&6
25359else
25360  ac_cv_func_setvbuf_reversed=no
25361fi
25362
25363
25364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25365$as_echo_n "checking return type of signal handlers... " >&6; }
25366if ${ac_cv_type_signal+:} false; then :
25367  $as_echo_n "(cached) " >&6
25368else
25369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370/* end confdefs.h.  */
25371#include <sys/types.h>
25372#include <signal.h>
25373
25374int
25375main ()
25376{
25377return *(signal (0, 0)) (0) == 1;
25378  ;
25379  return 0;
25380}
25381_ACEOF
25382if ac_fn_c_try_compile "$LINENO"; then :
25383  ac_cv_type_signal=int
25384else
25385  ac_cv_type_signal=void
25386fi
25387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388fi
25389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25390$as_echo "$ac_cv_type_signal" >&6; }
25391
25392cat >>confdefs.h <<_ACEOF
25393#define RETSIGTYPE $ac_cv_type_signal
25394_ACEOF
25395
25396
25397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
25398$as_echo_n "checking for working strtod... " >&6; }
25399if ${ac_cv_func_strtod+:} false; then :
25400  $as_echo_n "(cached) " >&6
25401else
25402  if test "$cross_compiling" = yes; then :
25403  ac_cv_func_strtod=no
25404else
25405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406/* end confdefs.h.  */
25407
25408$ac_includes_default
25409#ifndef strtod
25410double strtod ();
25411#endif
25412int
25413main()
25414{
25415  {
25416    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
25417    char *string = " +69";
25418    char *term;
25419    double value;
25420    value = strtod (string, &term);
25421    if (value != 69 || term != (string + 4))
25422      return 1;
25423  }
25424
25425  {
25426    /* Under Solaris 2.4, strtod returns the wrong value for the
25427       terminating character under some conditions.  */
25428    char *string = "NaN";
25429    char *term;
25430    strtod (string, &term);
25431    if (term != string && *(term - 1) == 0)
25432      return 1;
25433  }
25434  return 0;
25435}
25436
25437_ACEOF
25438if ac_fn_c_try_run "$LINENO"; then :
25439  ac_cv_func_strtod=yes
25440else
25441  ac_cv_func_strtod=no
25442fi
25443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25444  conftest.$ac_objext conftest.beam conftest.$ac_ext
25445fi
25446
25447fi
25448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
25449$as_echo "$ac_cv_func_strtod" >&6; }
25450if test $ac_cv_func_strtod = no; then
25451  case " $LIBOBJS " in
25452  *" strtod.$ac_objext "* ) ;;
25453  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25454 ;;
25455esac
25456
25457ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
25458if test "x$ac_cv_func_pow" = xyes; then :
25459
25460fi
25461
25462if test $ac_cv_func_pow = no; then
25463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
25464$as_echo_n "checking for pow in -lm... " >&6; }
25465if ${ac_cv_lib_m_pow+:} false; then :
25466  $as_echo_n "(cached) " >&6
25467else
25468  ac_check_lib_save_LIBS=$LIBS
25469LIBS="-lm  $LIBS"
25470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471/* end confdefs.h.  */
25472
25473/* Override any GCC internal prototype to avoid an error.
25474   Use char because int might match the return type of a GCC
25475   builtin and then its argument prototype would still apply.  */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479char pow ();
25480int
25481main ()
25482{
25483return pow ();
25484  ;
25485  return 0;
25486}
25487_ACEOF
25488if ac_fn_c_try_link "$LINENO"; then :
25489  ac_cv_lib_m_pow=yes
25490else
25491  ac_cv_lib_m_pow=no
25492fi
25493rm -f core conftest.err conftest.$ac_objext \
25494    conftest$ac_exeext conftest.$ac_ext
25495LIBS=$ac_check_lib_save_LIBS
25496fi
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
25498$as_echo "$ac_cv_lib_m_pow" >&6; }
25499if test "x$ac_cv_lib_m_pow" = xyes; then :
25500  POW_LIB=-lm
25501else
25502  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
25503$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25504fi
25505
25506fi
25507
25508fi
25509
25510ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25511if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25512  ac_have_decl=1
25513else
25514  ac_have_decl=0
25515fi
25516
25517cat >>confdefs.h <<_ACEOF
25518#define HAVE_DECL_STRERROR_R $ac_have_decl
25519_ACEOF
25520
25521for ac_func in strerror_r
25522do :
25523  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25524if test "x$ac_cv_func_strerror_r" = xyes; then :
25525  cat >>confdefs.h <<_ACEOF
25526#define HAVE_STRERROR_R 1
25527_ACEOF
25528
25529fi
25530done
25531
25532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25533$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25534if ${ac_cv_func_strerror_r_char_p+:} false; then :
25535  $as_echo_n "(cached) " >&6
25536else
25537
25538    ac_cv_func_strerror_r_char_p=no
25539    if test $ac_cv_have_decl_strerror_r = yes; then
25540      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541/* end confdefs.h.  */
25542$ac_includes_default
25543int
25544main ()
25545{
25546
25547	  char buf[100];
25548	  char x = *strerror_r (0, buf, sizeof buf);
25549	  char *p = strerror_r (0, buf, sizeof buf);
25550	  return !p || x;
25551
25552  ;
25553  return 0;
25554}
25555_ACEOF
25556if ac_fn_c_try_compile "$LINENO"; then :
25557  ac_cv_func_strerror_r_char_p=yes
25558fi
25559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25560    else
25561      # strerror_r is not declared.  Choose between
25562      # systems that have relatively inaccessible declarations for the
25563      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25564      # former has a strerror_r that returns char*, while the latter
25565      # has a strerror_r that returns `int'.
25566      # This test should segfault on the DEC system.
25567      if test "$cross_compiling" = yes; then :
25568  :
25569else
25570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25571/* end confdefs.h.  */
25572$ac_includes_default
25573	extern char *strerror_r ();
25574int
25575main ()
25576{
25577char buf[100];
25578	  char x = *strerror_r (0, buf, sizeof buf);
25579	  return ! isalpha (x);
25580  ;
25581  return 0;
25582}
25583_ACEOF
25584if ac_fn_c_try_run "$LINENO"; then :
25585  ac_cv_func_strerror_r_char_p=yes
25586fi
25587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25588  conftest.$ac_objext conftest.beam conftest.$ac_ext
25589fi
25590
25591    fi
25592
25593fi
25594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25595$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25596if test $ac_cv_func_strerror_r_char_p = yes; then
25597
25598$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25599
25600fi
25601
25602for ac_func in vprintf
25603do :
25604  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25605if test "x$ac_cv_func_vprintf" = xyes; then :
25606  cat >>confdefs.h <<_ACEOF
25607#define HAVE_VPRINTF 1
25608_ACEOF
25609
25610ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25611if test "x$ac_cv_func__doprnt" = xyes; then :
25612
25613$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25614
25615fi
25616
25617fi
25618done
25619
25620
25621
25622#
25623# Find math library
25624#
25625MATH_LIBS=''
25626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25627$as_echo_n "checking for sqrt in -lm... " >&6; }
25628if ${ac_cv_lib_m_sqrt+:} false; then :
25629  $as_echo_n "(cached) " >&6
25630else
25631  ac_check_lib_save_LIBS=$LIBS
25632LIBS="-lm  $LIBS"
25633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25634/* end confdefs.h.  */
25635
25636/* Override any GCC internal prototype to avoid an error.
25637   Use char because int might match the return type of a GCC
25638   builtin and then its argument prototype would still apply.  */
25639#ifdef __cplusplus
25640extern "C"
25641#endif
25642char sqrt ();
25643int
25644main ()
25645{
25646return sqrt ();
25647  ;
25648  return 0;
25649}
25650_ACEOF
25651if ac_fn_c_try_link "$LINENO"; then :
25652  ac_cv_lib_m_sqrt=yes
25653else
25654  ac_cv_lib_m_sqrt=no
25655fi
25656rm -f core conftest.err conftest.$ac_objext \
25657    conftest$ac_exeext conftest.$ac_ext
25658LIBS=$ac_check_lib_save_LIBS
25659fi
25660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25661$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25662if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25663  MATH_LIBS="-lm"
25664fi
25665
25666LIBS="$MATH_LIBS $LIBS"
25667
25668
25669for 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
25670do :
25671  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25672ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25673if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25674  cat >>confdefs.h <<_ACEOF
25675#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25676_ACEOF
25677
25678fi
25679done
25680
25681
25682#
25683# Check for clock_gettime().
25684#
25685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25686$as_echo_n "checking for library containing clock_gettime... " >&6; }
25687if ${ac_cv_search_clock_gettime+:} false; then :
25688  $as_echo_n "(cached) " >&6
25689else
25690  ac_func_search_save_LIBS=$LIBS
25691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25692/* end confdefs.h.  */
25693
25694/* Override any GCC internal prototype to avoid an error.
25695   Use char because int might match the return type of a GCC
25696   builtin and then its argument prototype would still apply.  */
25697#ifdef __cplusplus
25698extern "C"
25699#endif
25700char clock_gettime ();
25701int
25702main ()
25703{
25704return clock_gettime ();
25705  ;
25706  return 0;
25707}
25708_ACEOF
25709for ac_lib in '' rt; do
25710  if test -z "$ac_lib"; then
25711    ac_res="none required"
25712  else
25713    ac_res=-l$ac_lib
25714    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25715  fi
25716  if ac_fn_c_try_link "$LINENO"; then :
25717  ac_cv_search_clock_gettime=$ac_res
25718fi
25719rm -f core conftest.err conftest.$ac_objext \
25720    conftest$ac_exeext
25721  if ${ac_cv_search_clock_gettime+:} false; then :
25722  break
25723fi
25724done
25725if ${ac_cv_search_clock_gettime+:} false; then :
25726
25727else
25728  ac_cv_search_clock_gettime=no
25729fi
25730rm conftest.$ac_ext
25731LIBS=$ac_func_search_save_LIBS
25732fi
25733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25734$as_echo "$ac_cv_search_clock_gettime" >&6; }
25735ac_res=$ac_cv_search_clock_gettime
25736if test "$ac_res" != no; then :
25737  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25738
25739
25740$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25741
25742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25743$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745/* end confdefs.h.  */
25746
25747    #include <time.h>
25748int
25749main ()
25750{
25751clockid_t clockType = CLOCK_REALTIME;
25752  ;
25753  return 0;
25754}
25755_ACEOF
25756if ac_fn_c_try_compile "$LINENO"; then :
25757
25758        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25759$as_echo "$as_me: yes" >&6;}
25760
25761$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25762
25763
25764else
25765  { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25766$as_echo "$as_me: no" >&6;}
25767
25768fi
25769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25770
25771else
25772
25773    for ac_func in gettimeofday ftime
25774do :
25775  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25777if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25778  cat >>confdefs.h <<_ACEOF
25779#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25780_ACEOF
25781 break
25782fi
25783done
25784
25785
25786
25787fi
25788
25789
25790########
25791#
25792# Check for function prototypes
25793#
25794########
25795
25796ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25797#include <unistd.h>
25798"
25799if test "x$ac_cv_have_decl_pread" = xyes; then :
25800  ac_have_decl=1
25801else
25802  ac_have_decl=0
25803fi
25804
25805cat >>confdefs.h <<_ACEOF
25806#define HAVE_DECL_PREAD $ac_have_decl
25807_ACEOF
25808ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25809#include <unistd.h>
25810"
25811if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25812  ac_have_decl=1
25813else
25814  ac_have_decl=0
25815fi
25816
25817cat >>confdefs.h <<_ACEOF
25818#define HAVE_DECL_PWRITE $ac_have_decl
25819_ACEOF
25820
25821
25822ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25823#include <strings.h>
25824"
25825if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25826  ac_have_decl=1
25827else
25828  ac_have_decl=0
25829fi
25830
25831cat >>confdefs.h <<_ACEOF
25832#define HAVE_DECL_STRLCPY $ac_have_decl
25833_ACEOF
25834
25835
25836ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25837#include <stdio.h>
25838#include <stdarg.h>
25839"
25840if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25841  ac_have_decl=1
25842else
25843  ac_have_decl=0
25844fi
25845
25846cat >>confdefs.h <<_ACEOF
25847#define HAVE_DECL_VSNPRINTF $ac_have_decl
25848_ACEOF
25849
25850
25851########
25852#
25853# C++ Support Tests (For Magick++)
25854#
25855########
25856have_magick_plus_plus='no'
25857if test "$with_magick_plus_plus" = 'yes'; then
25858    OLIBS="$LIBS"
25859    LIBS=''
25860    ac_ext=cpp
25861ac_cpp='$CXXCPP $CPPFLAGS'
25862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25865
25866
25867    # Full set of headers used...
25868    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25869    # functional iomanip iosfwd iostream iterator list string strstream utility
25870    ac_ext=cpp
25871ac_cpp='$CXXCPP $CPPFLAGS'
25872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25875
25876    ac_ext=cpp
25877ac_cpp='$CXXCPP $CPPFLAGS'
25878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25881if test -z "$CXX"; then
25882  if test -n "$CCC"; then
25883    CXX=$CCC
25884  else
25885    if test -n "$ac_tool_prefix"; then
25886  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25887  do
25888    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25891$as_echo_n "checking for $ac_word... " >&6; }
25892if ${ac_cv_prog_CXX+:} false; then :
25893  $as_echo_n "(cached) " >&6
25894else
25895  if test -n "$CXX"; then
25896  ac_cv_prog_CXX="$CXX" # Let the user override the test.
25897else
25898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25899for as_dir in $PATH
25900do
25901  IFS=$as_save_IFS
25902  test -z "$as_dir" && as_dir=.
25903    for ac_exec_ext in '' $ac_executable_extensions; do
25904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25905    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25907    break 2
25908  fi
25909done
25910  done
25911IFS=$as_save_IFS
25912
25913fi
25914fi
25915CXX=$ac_cv_prog_CXX
25916if test -n "$CXX"; then
25917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25918$as_echo "$CXX" >&6; }
25919else
25920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921$as_echo "no" >&6; }
25922fi
25923
25924
25925    test -n "$CXX" && break
25926  done
25927fi
25928if test -z "$CXX"; then
25929  ac_ct_CXX=$CXX
25930  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25931do
25932  # Extract the first word of "$ac_prog", so it can be a program name with args.
25933set dummy $ac_prog; ac_word=$2
25934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25935$as_echo_n "checking for $ac_word... " >&6; }
25936if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25937  $as_echo_n "(cached) " >&6
25938else
25939  if test -n "$ac_ct_CXX"; then
25940  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25941else
25942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25943for as_dir in $PATH
25944do
25945  IFS=$as_save_IFS
25946  test -z "$as_dir" && as_dir=.
25947    for ac_exec_ext in '' $ac_executable_extensions; do
25948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25949    ac_cv_prog_ac_ct_CXX="$ac_prog"
25950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25951    break 2
25952  fi
25953done
25954  done
25955IFS=$as_save_IFS
25956
25957fi
25958fi
25959ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25960if test -n "$ac_ct_CXX"; then
25961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25962$as_echo "$ac_ct_CXX" >&6; }
25963else
25964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965$as_echo "no" >&6; }
25966fi
25967
25968
25969  test -n "$ac_ct_CXX" && break
25970done
25971
25972  if test "x$ac_ct_CXX" = x; then
25973    CXX="g++"
25974  else
25975    case $cross_compiling:$ac_tool_warned in
25976yes:)
25977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25979ac_tool_warned=yes ;;
25980esac
25981    CXX=$ac_ct_CXX
25982  fi
25983fi
25984
25985  fi
25986fi
25987# Provide some information about the compiler.
25988$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25989set X $ac_compile
25990ac_compiler=$2
25991for ac_option in --version -v -V -qversion; do
25992  { { ac_try="$ac_compiler $ac_option >&5"
25993case "(($ac_try" in
25994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995  *) ac_try_echo=$ac_try;;
25996esac
25997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25998$as_echo "$ac_try_echo"; } >&5
25999  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26000  ac_status=$?
26001  if test -s conftest.err; then
26002    sed '10a\
26003... rest of stderr output deleted ...
26004         10q' conftest.err >conftest.er1
26005    cat conftest.er1 >&5
26006  fi
26007  rm -f conftest.er1 conftest.err
26008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009  test $ac_status = 0; }
26010done
26011
26012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
26013$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
26014if ${ac_cv_cxx_compiler_gnu+:} false; then :
26015  $as_echo_n "(cached) " >&6
26016else
26017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26018/* end confdefs.h.  */
26019
26020int
26021main ()
26022{
26023#ifndef __GNUC__
26024       choke me
26025#endif
26026
26027  ;
26028  return 0;
26029}
26030_ACEOF
26031if ac_fn_cxx_try_compile "$LINENO"; then :
26032  ac_compiler_gnu=yes
26033else
26034  ac_compiler_gnu=no
26035fi
26036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26038
26039fi
26040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
26041$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26042if test $ac_compiler_gnu = yes; then
26043  GXX=yes
26044else
26045  GXX=
26046fi
26047ac_test_CXXFLAGS=${CXXFLAGS+set}
26048ac_save_CXXFLAGS=$CXXFLAGS
26049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
26050$as_echo_n "checking whether $CXX accepts -g... " >&6; }
26051if ${ac_cv_prog_cxx_g+:} false; then :
26052  $as_echo_n "(cached) " >&6
26053else
26054  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26055   ac_cxx_werror_flag=yes
26056   ac_cv_prog_cxx_g=no
26057   CXXFLAGS="-g"
26058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26059/* end confdefs.h.  */
26060
26061int
26062main ()
26063{
26064
26065  ;
26066  return 0;
26067}
26068_ACEOF
26069if ac_fn_cxx_try_compile "$LINENO"; then :
26070  ac_cv_prog_cxx_g=yes
26071else
26072  CXXFLAGS=""
26073      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26074/* end confdefs.h.  */
26075
26076int
26077main ()
26078{
26079
26080  ;
26081  return 0;
26082}
26083_ACEOF
26084if ac_fn_cxx_try_compile "$LINENO"; then :
26085
26086else
26087  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26088	 CXXFLAGS="-g"
26089	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090/* end confdefs.h.  */
26091
26092int
26093main ()
26094{
26095
26096  ;
26097  return 0;
26098}
26099_ACEOF
26100if ac_fn_cxx_try_compile "$LINENO"; then :
26101  ac_cv_prog_cxx_g=yes
26102fi
26103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104fi
26105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26106fi
26107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26108   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26109fi
26110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
26111$as_echo "$ac_cv_prog_cxx_g" >&6; }
26112if test "$ac_test_CXXFLAGS" = set; then
26113  CXXFLAGS=$ac_save_CXXFLAGS
26114elif test $ac_cv_prog_cxx_g = yes; then
26115  if test "$GXX" = yes; then
26116    CXXFLAGS="-g -O2"
26117  else
26118    CXXFLAGS="-g"
26119  fi
26120else
26121  if test "$GXX" = yes; then
26122    CXXFLAGS="-O2"
26123  else
26124    CXXFLAGS=
26125  fi
26126fi
26127ac_ext=cpp
26128ac_cpp='$CXXCPP $CPPFLAGS'
26129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26132
26133depcc="$CXX"  am_compiler_list=
26134
26135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26136$as_echo_n "checking dependency style of $depcc... " >&6; }
26137if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26138  $as_echo_n "(cached) " >&6
26139else
26140  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26141  # We make a subdir and do the tests there.  Otherwise we can end up
26142  # making bogus files that we don't know about and never remove.  For
26143  # instance it was reported that on HP-UX the gcc test will end up
26144  # making a dummy file named 'D' -- because '-MD' means "put the output
26145  # in D".
26146  rm -rf conftest.dir
26147  mkdir conftest.dir
26148  # Copy depcomp to subdir because otherwise we won't find it if we're
26149  # using a relative directory.
26150  cp "$am_depcomp" conftest.dir
26151  cd conftest.dir
26152  # We will build objects and dependencies in a subdirectory because
26153  # it helps to detect inapplicable dependency modes.  For instance
26154  # both Tru64's cc and ICC support -MD to output dependencies as a
26155  # side effect of compilation, but ICC will put the dependencies in
26156  # the current directory while Tru64 will put them in the object
26157  # directory.
26158  mkdir sub
26159
26160  am_cv_CXX_dependencies_compiler_type=none
26161  if test "$am_compiler_list" = ""; then
26162     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26163  fi
26164  am__universal=false
26165  case " $depcc " in #(
26166     *\ -arch\ *\ -arch\ *) am__universal=true ;;
26167     esac
26168
26169  for depmode in $am_compiler_list; do
26170    # Setup a source with many dependencies, because some compilers
26171    # like to wrap large dependency lists on column 80 (with \), and
26172    # we should not choose a depcomp mode which is confused by this.
26173    #
26174    # We need to recreate these files for each test, as the compiler may
26175    # overwrite some of them when testing with obscure command lines.
26176    # This happens at least with the AIX C compiler.
26177    : > sub/conftest.c
26178    for i in 1 2 3 4 5 6; do
26179      echo '#include "conftst'$i'.h"' >> sub/conftest.c
26180      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26181      # Solaris 10 /bin/sh.
26182      echo '/* dummy */' > sub/conftst$i.h
26183    done
26184    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26185
26186    # We check with '-c' and '-o' for the sake of the "dashmstdout"
26187    # mode.  It turns out that the SunPro C++ compiler does not properly
26188    # handle '-M -o', and we need to detect this.  Also, some Intel
26189    # versions had trouble with output in subdirs.
26190    am__obj=sub/conftest.${OBJEXT-o}
26191    am__minus_obj="-o $am__obj"
26192    case $depmode in
26193    gcc)
26194      # This depmode causes a compiler race in universal mode.
26195      test "$am__universal" = false || continue
26196      ;;
26197    nosideeffect)
26198      # After this tag, mechanisms are not by side-effect, so they'll
26199      # only be used when explicitly requested.
26200      if test "x$enable_dependency_tracking" = xyes; then
26201	continue
26202      else
26203	break
26204      fi
26205      ;;
26206    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26207      # This compiler won't grok '-c -o', but also, the minuso test has
26208      # not run yet.  These depmodes are late enough in the game, and
26209      # so weak that their functioning should not be impacted.
26210      am__obj=conftest.${OBJEXT-o}
26211      am__minus_obj=
26212      ;;
26213    none) break ;;
26214    esac
26215    if depmode=$depmode \
26216       source=sub/conftest.c object=$am__obj \
26217       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26218       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26219         >/dev/null 2>conftest.err &&
26220       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26221       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26222       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26223       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26224      # icc doesn't choke on unknown options, it will just issue warnings
26225      # or remarks (even with -Werror).  So we grep stderr for any message
26226      # that says an option was ignored or not supported.
26227      # When given -MP, icc 7.0 and 7.1 complain thusly:
26228      #   icc: Command line warning: ignoring option '-M'; no argument required
26229      # The diagnosis changed in icc 8.0:
26230      #   icc: Command line remark: option '-MP' not supported
26231      if (grep 'ignoring option' conftest.err ||
26232          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26233        am_cv_CXX_dependencies_compiler_type=$depmode
26234        break
26235      fi
26236    fi
26237  done
26238
26239  cd ..
26240  rm -rf conftest.dir
26241else
26242  am_cv_CXX_dependencies_compiler_type=none
26243fi
26244
26245fi
26246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26247$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26248CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26249
26250 if
26251  test "x$enable_dependency_tracking" != xno \
26252  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26253  am__fastdepCXX_TRUE=
26254  am__fastdepCXX_FALSE='#'
26255else
26256  am__fastdepCXX_TRUE='#'
26257  am__fastdepCXX_FALSE=
26258fi
26259
26260
26261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26262$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
26263if ${ax_cv_cxx_bool+:} false; then :
26264  $as_echo_n "(cached) " >&6
26265else
26266
26267 ac_ext=cpp
26268ac_cpp='$CXXCPP $CPPFLAGS'
26269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26272
26273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26274/* end confdefs.h.  */
26275
26276int f(int  x){return 1;}
26277int f(char x){return 1;}
26278int f(bool x){return 1;}
26279
26280int
26281main ()
26282{
26283bool b = true; return f(b);
26284  ;
26285  return 0;
26286}
26287_ACEOF
26288if ac_fn_cxx_try_compile "$LINENO"; then :
26289  ax_cv_cxx_bool=yes
26290else
26291  ax_cv_cxx_bool=no
26292fi
26293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 ac_ext=cpp
26295ac_cpp='$CXXCPP $CPPFLAGS'
26296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26299
26300
26301fi
26302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26303$as_echo "$ax_cv_cxx_bool" >&6; }
26304if test "$ax_cv_cxx_bool" = yes; then
26305
26306$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26307
26308fi
26309
26310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26311$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
26312if ${ax_cv_cxx_namespaces+:} false; then :
26313  $as_echo_n "(cached) " >&6
26314else
26315
26316 ac_ext=cpp
26317ac_cpp='$CXXCPP $CPPFLAGS'
26318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26321
26322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26323/* end confdefs.h.  */
26324namespace Outer { namespace Inner { int i = 0; }}
26325int
26326main ()
26327{
26328using namespace Outer::Inner; return i;
26329  ;
26330  return 0;
26331}
26332_ACEOF
26333if ac_fn_cxx_try_compile "$LINENO"; then :
26334  ax_cv_cxx_namespaces=yes
26335else
26336  ax_cv_cxx_namespaces=no
26337fi
26338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26339 ac_ext=cpp
26340ac_cpp='$CXXCPP $CPPFLAGS'
26341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26344
26345
26346fi
26347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26348$as_echo "$ax_cv_cxx_namespaces" >&6; }
26349if test "$ax_cv_cxx_namespaces" = yes; then
26350
26351$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26352
26353fi
26354
26355
26356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26357$as_echo_n "checking if g++ supports namespace std... " >&6; }
26358if ${ax_cv_cxx_have_std_namespace+:} false; then :
26359  $as_echo_n "(cached) " >&6
26360else
26361
26362  ac_ext=cpp
26363ac_cpp='$CXXCPP $CPPFLAGS'
26364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26367
26368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369/* end confdefs.h.  */
26370#include <iostream>
26371                  std::istream& is = std::cin;
26372int
26373main ()
26374{
26375
26376  ;
26377  return 0;
26378}
26379_ACEOF
26380if ac_fn_cxx_try_compile "$LINENO"; then :
26381  ax_cv_cxx_have_std_namespace=yes
26382else
26383  ax_cv_cxx_have_std_namespace=no
26384fi
26385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26386  ac_ext=cpp
26387ac_cpp='$CXXCPP $CPPFLAGS'
26388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26391
26392
26393fi
26394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26395$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26396  if test "$ax_cv_cxx_have_std_namespace" = yes; then
26397
26398$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26399
26400  fi
26401
26402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26403$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
26404if ${ac_cv_cxx_have_std_libs+:} false; then :
26405  $as_echo_n "(cached) " >&6
26406else
26407
26408
26409 ac_ext=cpp
26410ac_cpp='$CXXCPP $CPPFLAGS'
26411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26414
26415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26416/* end confdefs.h.  */
26417#include <iostream>
26418#include <map>
26419#include <iomanip>
26420#include <cmath>
26421#ifdef HAVE_NAMESPACES
26422using namespace std;
26423#endif
26424int
26425main ()
26426{
26427return 0;
26428  ;
26429  return 0;
26430}
26431_ACEOF
26432if ac_fn_cxx_try_compile "$LINENO"; then :
26433  ac_cv_cxx_have_std_libs=yes
26434else
26435  ac_cv_cxx_have_std_libs=no
26436fi
26437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26438 ac_ext=cpp
26439ac_cpp='$CXXCPP $CPPFLAGS'
26440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26443
26444
26445fi
26446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26447$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26448if test "$ac_cv_cxx_have_std_libs" = yes; then
26449
26450$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26451
26452fi
26453
26454
26455  OPENMP_CXXFLAGS=
26456  # Check whether --enable-openmp was given.
26457if test "${enable_openmp+set}" = set; then :
26458  enableval=$enable_openmp;
26459fi
26460
26461  if test "$enable_openmp" != no; then
26462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26463$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26464if ${ac_cv_prog_cxx_openmp+:} false; then :
26465  $as_echo_n "(cached) " >&6
26466else
26467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468/* end confdefs.h.  */
26469
26470#ifndef _OPENMP
26471 choke me
26472#endif
26473#include <omp.h>
26474int main () { return omp_get_num_threads (); }
26475
26476_ACEOF
26477if ac_fn_cxx_try_link "$LINENO"; then :
26478  ac_cv_prog_cxx_openmp='none needed'
26479else
26480  ac_cv_prog_cxx_openmp='unsupported'
26481	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26482                           -Popenmp --openmp; do
26483	    ac_save_CXXFLAGS=$CXXFLAGS
26484	    CXXFLAGS="$CXXFLAGS $ac_option"
26485	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486/* end confdefs.h.  */
26487
26488#ifndef _OPENMP
26489 choke me
26490#endif
26491#include <omp.h>
26492int main () { return omp_get_num_threads (); }
26493
26494_ACEOF
26495if ac_fn_cxx_try_link "$LINENO"; then :
26496  ac_cv_prog_cxx_openmp=$ac_option
26497fi
26498rm -f core conftest.err conftest.$ac_objext \
26499    conftest$ac_exeext conftest.$ac_ext
26500	    CXXFLAGS=$ac_save_CXXFLAGS
26501	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26502	      break
26503	    fi
26504	  done
26505fi
26506rm -f core conftest.err conftest.$ac_objext \
26507    conftest$ac_exeext conftest.$ac_ext
26508fi
26509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26510$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26511    case $ac_cv_prog_cxx_openmp in #(
26512      "none needed" | unsupported)
26513	;; #(
26514      *)
26515	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26516    esac
26517  fi
26518
26519
26520    ac_ext=c
26521ac_cpp='$CPP $CPPFLAGS'
26522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524ac_compiler_gnu=$ac_cv_c_compiler_gnu
26525
26526
26527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26528$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26529    if \
26530        test $ax_cv_cxx_bool = 'yes' && \
26531        test $ax_cv_cxx_namespaces = 'yes' && \
26532        test $ac_cv_cxx_have_std_libs = 'yes' && \
26533        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26534        have_magick_plus_plus='yes'
26535    else
26536        have_magick_plus_plus='no (failed tests)'
26537    fi
26538    { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26539$as_echo "$as_me: $have_magick_plus_plus" >&6;}
26540    LIBS="$OLIBS"
26541fi
26542 if test "$have_magick_plus_plus" = 'yes'; then
26543  WITH_MAGICK_PLUS_PLUS_TRUE=
26544  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26545else
26546  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26547  WITH_MAGICK_PLUS_PLUS_FALSE=
26548fi
26549
26550
26551# Only check for delegate libraries in subdirectories if requested.
26552if test "$enable_delegate_build" != 'no'; then
26553    # Check for delegate sub-directories and add -I & -L options as required.
26554    # This presumes that delegates are installed as detailed in the ImageMagick
26555    # README. If delegates are installed in a standard location where the
26556    # compiler will automatically find them then these options should not be
26557    # required.
26558
26559    #
26560    # Most delegates have includes in the same directory as the library, but not all...
26561    #
26562    # Includes
26563    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
26564        if test -d "$builddir/$dir"; then
26565            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26566        else
26567            if test -d "$srcdirfull/$dir"; then
26568                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26569            fi
26570        fi
26571    done
26572
26573    # Libraries
26574    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
26575    if test -d "$builddir/$dir/.libs"; then
26576        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26577    else
26578        if test -d "$srcdirfull/$dir/.libs"; then
26579            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26580        fi
26581    fi
26582    if test -d "$builddir/$dir"; then
26583        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26584    else
26585        if test -d "$srcdirfull/$dir"; then
26586            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26587        fi
26588    fi
26589  done
26590fi
26591
26592# Assume that delegate headers reside under same directory as ImageMagick
26593# installation prefix.
26594MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26595
26596#
26597# Find the X11 RGB database
26598#
26599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26600$as_echo_n "checking for X11 configure files... " >&6; }
26601if ${im_cv_x_configure+:} false; then :
26602  $as_echo_n "(cached) " >&6
26603else
26604  # Look for the header file in a standard set of common directories.
26605# Check X11 before X11Rn because it is often a symlink to the current release.
26606    for ac_dir in          \
26607    /lib/usr/lib/X11       \
26608    /usr/X11/lib           \
26609    /usr/X11R4/lib         \
26610    /usr/X11R5/lib         \
26611    /usr/X11R6/lib         \
26612    /usr/X11R7/lib         \
26613    /usr/X386/lib          \
26614    /usr/XFree86/lib/X11   \
26615    /usr/athena/lib        \
26616    /usr/lib               \
26617    /usr/lib/X11           \
26618    /usr/lib/X11R4         \
26619    /usr/lib/X11R5         \
26620    /usr/lib/X11R6         \
26621    /usr/lib/X11R7         \
26622    /usr/local/X11/lib     \
26623    /usr/local/X11R4/lib   \
26624    /usr/local/X11R5/lib   \
26625    /usr/local/X11R6/lib   \
26626    /usr/local/lib         \
26627    /usr/local/lib/X11     \
26628    /usr/local/lib/X11R4   \
26629    /usr/local/lib/X11R5   \
26630    /usr/local/lib/X11R6   \
26631    /usr/local/lib/X11R7   \
26632    /usr/local/x11r5/lib   \
26633    /usr/lpp/Xamples/lib   \
26634    /usr/openwin/lib       \
26635    /usr/openwin/share/lib \
26636    /usr/unsupported/lib   \
26637    /usr/x386/lib          \
26638    ; do
26639    if test -f "$ac_dir/X11/rgb.txt"; then
26640      im_cv_x_configure="$ac_dir/X11/"
26641      break
26642    elif test -f "$ac_dir/rgb.txt"; then
26643      im_cv_x_configure="$ac_dir/"
26644      break
26645    fi
26646
26647  done
26648fi
26649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
26650$as_echo "$im_cv_x_configure" >&6; }
26651X11_CONFIGURE_PATH="$im_cv_x_configure"
26652case "${build_os}" in
26653  mingw* )
26654    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26655  ;;
26656esac
26657
26658cat >>confdefs.h <<_ACEOF
26659#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26660_ACEOF
26661
26662
26663#
26664# Find OpenMP library
26665#
26666GOMP_LIBS=''
26667if test "$enable_openmp" != 'no'; then
26668  if test "${GCC}" = "yes"; then
26669    # Open64 (passes for GCC but uses different OpenMP implementation)
26670    if test "x$GOMP_LIBS" = x ; then
26671      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26672        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26673$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26674if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26675  $as_echo_n "(cached) " >&6
26676else
26677  ac_check_lib_save_LIBS=$LIBS
26678LIBS="-lopenmp  $LIBS"
26679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680/* end confdefs.h.  */
26681
26682/* Override any GCC internal prototype to avoid an error.
26683   Use char because int might match the return type of a GCC
26684   builtin and then its argument prototype would still apply.  */
26685#ifdef __cplusplus
26686extern "C"
26687#endif
26688char omp_get_num_procs ();
26689int
26690main ()
26691{
26692return omp_get_num_procs ();
26693  ;
26694  return 0;
26695}
26696_ACEOF
26697if ac_fn_c_try_link "$LINENO"; then :
26698  ac_cv_lib_openmp_omp_get_num_procs=yes
26699else
26700  ac_cv_lib_openmp_omp_get_num_procs=no
26701fi
26702rm -f core conftest.err conftest.$ac_objext \
26703    conftest$ac_exeext conftest.$ac_ext
26704LIBS=$ac_check_lib_save_LIBS
26705fi
26706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26707$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26708if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26709  GOMP_LIBS="-lopenmp"
26710fi
26711
26712      fi
26713    fi
26714    # GCC
26715    if test "x$GOMP_LIBS" = x ; then
26716      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
26717$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
26718if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
26719  $as_echo_n "(cached) " >&6
26720else
26721  ac_check_lib_save_LIBS=$LIBS
26722LIBS="-lgomp  $LIBS"
26723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26724/* end confdefs.h.  */
26725
26726/* Override any GCC internal prototype to avoid an error.
26727   Use char because int might match the return type of a GCC
26728   builtin and then its argument prototype would still apply.  */
26729#ifdef __cplusplus
26730extern "C"
26731#endif
26732char GOMP_parallel_start ();
26733int
26734main ()
26735{
26736return GOMP_parallel_start ();
26737  ;
26738  return 0;
26739}
26740_ACEOF
26741if ac_fn_c_try_link "$LINENO"; then :
26742  ac_cv_lib_gomp_GOMP_parallel_start=yes
26743else
26744  ac_cv_lib_gomp_GOMP_parallel_start=no
26745fi
26746rm -f core conftest.err conftest.$ac_objext \
26747    conftest$ac_exeext conftest.$ac_ext
26748LIBS=$ac_check_lib_save_LIBS
26749fi
26750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
26751$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
26752if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26753  GOMP_LIBS="-lgomp"
26754fi
26755
26756    fi
26757  else
26758    # Sun CC
26759    if test "x$GOMP_LIBS" = x ; then
26760      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26761$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26762if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26763  $as_echo_n "(cached) " >&6
26764else
26765  ac_check_lib_save_LIBS=$LIBS
26766LIBS="-lmtsk  $LIBS"
26767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768/* end confdefs.h.  */
26769
26770/* Override any GCC internal prototype to avoid an error.
26771   Use char because int might match the return type of a GCC
26772   builtin and then its argument prototype would still apply.  */
26773#ifdef __cplusplus
26774extern "C"
26775#endif
26776char sunw_mp_register_warn ();
26777int
26778main ()
26779{
26780return sunw_mp_register_warn ();
26781  ;
26782  return 0;
26783}
26784_ACEOF
26785if ac_fn_c_try_link "$LINENO"; then :
26786  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26787else
26788  ac_cv_lib_mtsk_sunw_mp_register_warn=no
26789fi
26790rm -f core conftest.err conftest.$ac_objext \
26791    conftest$ac_exeext conftest.$ac_ext
26792LIBS=$ac_check_lib_save_LIBS
26793fi
26794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26795$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26796if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26797  GOMP_LIBS="-lmtsk"
26798fi
26799
26800    fi
26801    # AIX xlc
26802    if test "x$GOMP_LIBS" = x ; then
26803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26804$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26805if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26806  $as_echo_n "(cached) " >&6
26807else
26808  ac_check_lib_save_LIBS=$LIBS
26809LIBS="-lxlsmp  $LIBS"
26810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26811/* end confdefs.h.  */
26812
26813/* Override any GCC internal prototype to avoid an error.
26814   Use char because int might match the return type of a GCC
26815   builtin and then its argument prototype would still apply.  */
26816#ifdef __cplusplus
26817extern "C"
26818#endif
26819char _xlsmpFlush ();
26820int
26821main ()
26822{
26823return _xlsmpFlush ();
26824  ;
26825  return 0;
26826}
26827_ACEOF
26828if ac_fn_c_try_link "$LINENO"; then :
26829  ac_cv_lib_xlsmp__xlsmpFlush=yes
26830else
26831  ac_cv_lib_xlsmp__xlsmpFlush=no
26832fi
26833rm -f core conftest.err conftest.$ac_objext \
26834    conftest$ac_exeext conftest.$ac_ext
26835LIBS=$ac_check_lib_save_LIBS
26836fi
26837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26838$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26839if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26840  GOMP_LIBS="-lxlsmp"
26841fi
26842
26843    fi
26844    # SGI IRIX 6.5 MIPSpro C/C++
26845    if test "x$GOMP_LIBS" = x ; then
26846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26847$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26848if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26849  $as_echo_n "(cached) " >&6
26850else
26851  ac_check_lib_save_LIBS=$LIBS
26852LIBS="-lmp  $LIBS"
26853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26854/* end confdefs.h.  */
26855
26856/* Override any GCC internal prototype to avoid an error.
26857   Use char because int might match the return type of a GCC
26858   builtin and then its argument prototype would still apply.  */
26859#ifdef __cplusplus
26860extern "C"
26861#endif
26862char mp_destroy ();
26863int
26864main ()
26865{
26866return mp_destroy ();
26867  ;
26868  return 0;
26869}
26870_ACEOF
26871if ac_fn_c_try_link "$LINENO"; then :
26872  ac_cv_lib_mp_mp_destroy=yes
26873else
26874  ac_cv_lib_mp_mp_destroy=no
26875fi
26876rm -f core conftest.err conftest.$ac_objext \
26877    conftest$ac_exeext conftest.$ac_ext
26878LIBS=$ac_check_lib_save_LIBS
26879fi
26880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26881$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26882if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26883  GOMP_LIBS="-lmp"
26884fi
26885
26886    fi
26887  fi
26888  LIBS="$GOMP_LIBS $LIBS"
26889fi
26890
26891
26892#
26893# Find Posix threads library
26894#
26895THREAD_LIBS=''
26896if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26897
26898    if test "x$PTHREAD_LIBS" = "x"; then
26899    case "${host_cpu}-${host_os}" in
26900      *-freebsd*)
26901
26902
26903
26904ac_ext=c
26905ac_cpp='$CPP $CPPFLAGS'
26906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26908ac_compiler_gnu=$ac_cv_c_compiler_gnu
26909
26910magick_pthread_lib_ok=no
26911
26912LIB=-lc_r
26913save_LIBS="$LIBS"
26914LIBS="$LIBS $LIB"
26915
26916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26917$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26919/* end confdefs.h.  */
26920#include <pthread.h>
26921int
26922main ()
26923{
26924  pthread_t th;
26925  pthread_join(th, 0);
26926  pthread_attr_init(0);
26927  pthread_cleanup_push(0, 0);
26928  pthread_create(0,0,0,0);
26929  pthread_cleanup_pop(0);
26930  ;
26931  return 0;
26932}
26933_ACEOF
26934if ac_fn_c_try_link "$LINENO"; then :
26935  magick_pthread_lib_ok=yes
26936fi
26937rm -f core conftest.err conftest.$ac_objext \
26938    conftest$ac_exeext conftest.$ac_ext
26939
26940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26941$as_echo "${magick_pthread_lib_ok}" >&6; }
26942if test "$magick_pthread_lib_ok" = yes
26943then
26944  PTHREAD_LIBS=-lc_r
26945  :
26946else
26947
26948  :
26949fi
26950
26951LIBS="$save_LIBS"
26952
26953ac_ext=c
26954ac_cpp='$CPP $CPPFLAGS'
26955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26957ac_compiler_gnu=$ac_cv_c_compiler_gnu
26958
26959 ;;
26960    esac
26961    fi
26962
26963    for lib in pthread pthreads; do
26964        if test "x$PTHREAD_LIBS" = "x"; then
26965
26966
26967
26968ac_ext=c
26969ac_cpp='$CPP $CPPFLAGS'
26970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26972ac_compiler_gnu=$ac_cv_c_compiler_gnu
26973
26974magick_pthread_lib_ok=no
26975
26976LIB=-l$lib
26977save_LIBS="$LIBS"
26978LIBS="$LIBS $LIB"
26979
26980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26981$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983/* end confdefs.h.  */
26984#include <pthread.h>
26985int
26986main ()
26987{
26988  pthread_t th;
26989  pthread_join(th, 0);
26990  pthread_attr_init(0);
26991  pthread_cleanup_push(0, 0);
26992  pthread_create(0,0,0,0);
26993  pthread_cleanup_pop(0);
26994  ;
26995  return 0;
26996}
26997_ACEOF
26998if ac_fn_c_try_link "$LINENO"; then :
26999  magick_pthread_lib_ok=yes
27000fi
27001rm -f core conftest.err conftest.$ac_objext \
27002    conftest$ac_exeext conftest.$ac_ext
27003
27004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
27005$as_echo "${magick_pthread_lib_ok}" >&6; }
27006if test "$magick_pthread_lib_ok" = yes
27007then
27008  PTHREAD_LIBS=-l$lib
27009  :
27010else
27011
27012  :
27013fi
27014
27015LIBS="$save_LIBS"
27016
27017ac_ext=c
27018ac_cpp='$CPP $CPPFLAGS'
27019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27021ac_compiler_gnu=$ac_cv_c_compiler_gnu
27022
27023
27024        fi
27025    done
27026
27027    THREAD_LIBS="$PTHREAD_LIBS"
27028    LIBS="$LIBS $THREAD_LIBS"
27029fi
27030
27031
27032#
27033# Check for umem.
27034#
27035have_umem='no'
27036UMEM_LIBS=''
27037if test "$with_umem" != 'no'; then
27038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
27039$as_echo_n "checking for UMEM support ... " >&6; }
27040  { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27041$as_echo "$as_me: " >&6;}
27042  failed=0
27043  passed=0
27044  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
27045if test "x$ac_cv_header_umem_h" = xyes; then :
27046  passed=`expr $passed + 1`
27047else
27048  failed=`expr $failed + 1`
27049fi
27050
27051
27052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
27053$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
27054if ${ac_cv_lib_umem_umem_alloc+:} 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_alloc ();
27069int
27070main ()
27071{
27072return umem_alloc ();
27073  ;
27074  return 0;
27075}
27076_ACEOF
27077if ac_fn_c_try_link "$LINENO"; then :
27078  ac_cv_lib_umem_umem_alloc=yes
27079else
27080  ac_cv_lib_umem_umem_alloc=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_alloc" >&5
27087$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
27088if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
27089  passed=`expr $passed + 1`
27090else
27091  failed=`expr $failed + 1`
27092fi
27093
27094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
27095$as_echo_n "checking for umem_free in -lumem... " >&6; }
27096if ${ac_cv_lib_umem_umem_free+:} false; then :
27097  $as_echo_n "(cached) " >&6
27098else
27099  ac_check_lib_save_LIBS=$LIBS
27100LIBS="-lumem  $LIBS"
27101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27102/* end confdefs.h.  */
27103
27104/* Override any GCC internal prototype to avoid an error.
27105   Use char because int might match the return type of a GCC
27106   builtin and then its argument prototype would still apply.  */
27107#ifdef __cplusplus
27108extern "C"
27109#endif
27110char umem_free ();
27111int
27112main ()
27113{
27114return umem_free ();
27115  ;
27116  return 0;
27117}
27118_ACEOF
27119if ac_fn_c_try_link "$LINENO"; then :
27120  ac_cv_lib_umem_umem_free=yes
27121else
27122  ac_cv_lib_umem_umem_free=no
27123fi
27124rm -f core conftest.err conftest.$ac_objext \
27125    conftest$ac_exeext conftest.$ac_ext
27126LIBS=$ac_check_lib_save_LIBS
27127fi
27128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
27129$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
27130if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
27131  passed=`expr $passed + 1`
27132else
27133  failed=`expr $failed + 1`
27134fi
27135
27136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
27137$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27138  if test $passed -gt 0; then
27139    if test $failed -gt 0; then
27140      { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27141$as_echo "$as_me: no -- some components failed test" >&6;}
27142      have_umem='no (failed tests)'
27143    else
27144      UMEM_LIBS='-lumem'
27145      LIBS="$UMEM_LIBS $LIBS"
27146
27147$as_echo "#define HasUMEM 1" >>confdefs.h
27148
27149      { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27150$as_echo "$as_me: yes" >&6;}
27151      have_umem='yes'
27152    fi
27153  else
27154    { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27155$as_echo "$as_me: no" >&6;}
27156  fi
27157fi
27158 if test "$have_umem" = 'yes'; then
27159  HasUMEM_TRUE=
27160  HasUMEM_FALSE='#'
27161else
27162  HasUMEM_TRUE='#'
27163  HasUMEM_FALSE=
27164fi
27165
27166
27167
27168#
27169# Add support for ccmalloc memory debugging library if requested
27170#
27171have_ccmalloc='no'
27172CCMALLOC_LIBS=''
27173if test "$enable_ccmalloc" = 'yes'; then
27174    # Extract the first word of "ccmalloc", so it can be a program name with args.
27175set dummy ccmalloc; ac_word=$2
27176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27177$as_echo_n "checking for $ac_word... " >&6; }
27178if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
27179  $as_echo_n "(cached) " >&6
27180else
27181  case $CCMALLOCDelegate in
27182  [\\/]* | ?:[\\/]*)
27183  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27184  ;;
27185  *)
27186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27187for as_dir in $PATH
27188do
27189  IFS=$as_save_IFS
27190  test -z "$as_dir" && as_dir=.
27191    for ac_exec_ext in '' $ac_executable_extensions; do
27192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27193    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
27194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27195    break 2
27196  fi
27197done
27198  done
27199IFS=$as_save_IFS
27200
27201  ;;
27202esac
27203fi
27204CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27205if test -n "$CCMALLOCDelegate"; then
27206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
27207$as_echo "$CCMALLOCDelegate" >&6; }
27208else
27209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27210$as_echo "no" >&6; }
27211fi
27212
27213
27214    if test -n "$CCMALLOCDelegate"; then
27215        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27216        OLIBS="$LIBS"
27217        # Assume that gcc is used with ccmalloc.
27218        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
27219       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
27220$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
27221if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
27222  $as_echo_n "(cached) " >&6
27223else
27224  ac_check_lib_save_LIBS=$LIBS
27225LIBS="-lccmalloc -ldl $LIBS"
27226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27227/* end confdefs.h.  */
27228
27229/* Override any GCC internal prototype to avoid an error.
27230   Use char because int might match the return type of a GCC
27231   builtin and then its argument prototype would still apply.  */
27232#ifdef __cplusplus
27233extern "C"
27234#endif
27235char ccmalloc_malloc ();
27236int
27237main ()
27238{
27239return ccmalloc_malloc ();
27240  ;
27241  return 0;
27242}
27243_ACEOF
27244if ac_fn_c_try_link "$LINENO"; then :
27245  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27246else
27247  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
27248fi
27249rm -f core conftest.err conftest.$ac_objext \
27250    conftest$ac_exeext conftest.$ac_ext
27251LIBS=$ac_check_lib_save_LIBS
27252fi
27253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
27254$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
27255if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
27256  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27257fi
27258
27259        if test -n "$CCMALLOC_LIBS"; then
27260            LIBS="$OLIBS"
27261            LIBS="$LIBS $CCMALLOC_LIBS"
27262            have_ccmalloc='yes'
27263        else
27264            LIBS="$OLIBS"
27265        fi
27266    fi
27267fi
27268
27269#
27270# Add support for efence memory debugging library if requested
27271#
27272if test "$enable_efence" = 'yes'; then
27273    EFENCE_LIBS='-lefence'
27274    LIBS="$EFENCE_LIBS $LIBS"
27275fi
27276
27277
27278#
27279# Check for BZLIB
27280#
27281
27282
27283# Check whether --with-bzlib was given.
27284if test "${with_bzlib+set}" = set; then :
27285  withval=$with_bzlib; with_bzlib=$withval
27286else
27287  with_bzlib='yes'
27288fi
27289
27290
27291if test "$with_bzlib" != 'yes'; then
27292    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27293fi
27294
27295have_bzlib='no'
27296if test "$with_bzlib" != 'no'; then
27297    BZLIB_LIBS=''
27298    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27299$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
27301$as_echo_n "checking for BZLIB... " >&6; }
27302    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27303$as_echo "$as_me: " >&6;}
27304    failed=0
27305    passed=0
27306    found_libbz=0
27307    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
27308if test "x$ac_cv_header_bzlib_h" = xyes; then :
27309  passed=`expr $passed + 1`
27310else
27311  failed=`expr $failed + 1`
27312fi
27313
27314
27315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
27316$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
27317if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
27318  $as_echo_n "(cached) " >&6
27319else
27320  ac_check_lib_save_LIBS=$LIBS
27321LIBS="-lbz2  $LIBS"
27322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27323/* end confdefs.h.  */
27324
27325/* Override any GCC internal prototype to avoid an error.
27326   Use char because int might match the return type of a GCC
27327   builtin and then its argument prototype would still apply.  */
27328#ifdef __cplusplus
27329extern "C"
27330#endif
27331char BZ2_bzDecompress ();
27332int
27333main ()
27334{
27335return BZ2_bzDecompress ();
27336  ;
27337  return 0;
27338}
27339_ACEOF
27340if ac_fn_c_try_link "$LINENO"; then :
27341  ac_cv_lib_bz2_BZ2_bzDecompress=yes
27342else
27343  ac_cv_lib_bz2_BZ2_bzDecompress=no
27344fi
27345rm -f core conftest.err conftest.$ac_objext \
27346    conftest$ac_exeext conftest.$ac_ext
27347LIBS=$ac_check_lib_save_LIBS
27348fi
27349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
27350$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
27351if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
27352  found_libbz=`expr $found_libbz + 1`
27353fi
27354
27355    if test "$native_win32_build" = 'yes'; then
27356      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
27357$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
27358if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
27359  $as_echo_n "(cached) " >&6
27360else
27361  ac_check_lib_save_LIBS=$LIBS
27362LIBS="-lbz2  $LIBS"
27363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364/* end confdefs.h.  */
27365
27366/* Override any GCC internal prototype to avoid an error.
27367   Use char because int might match the return type of a GCC
27368   builtin and then its argument prototype would still apply.  */
27369#ifdef __cplusplus
27370extern "C"
27371#endif
27372char _imp__BZ2_decompress ();
27373int
27374main ()
27375{
27376return _imp__BZ2_decompress ();
27377  ;
27378  return 0;
27379}
27380_ACEOF
27381if ac_fn_c_try_link "$LINENO"; then :
27382  ac_cv_lib_bz2__imp__BZ2_decompress=yes
27383else
27384  ac_cv_lib_bz2__imp__BZ2_decompress=no
27385fi
27386rm -f core conftest.err conftest.$ac_objext \
27387    conftest$ac_exeext conftest.$ac_ext
27388LIBS=$ac_check_lib_save_LIBS
27389fi
27390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
27391$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
27392if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
27393  found_libbz=`expr $found_libbz + 1`
27394fi
27395
27396    fi
27397    if test $found_libbz -gt 0; then
27398      passed=`expr $passed + 1`
27399    else
27400      failed=`expr $failed + 1`
27401    fi
27402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
27403$as_echo_n "checking if BZLIB package is complete... " >&6; }
27404    if test $passed -gt 0; then
27405      if test $failed -gt 0; then
27406        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27407$as_echo "$as_me: no -- some components failed test" >&6;}
27408        have_bzlib='no (failed tests)'
27409      else
27410        BZLIB_LIBS='-lbz2'
27411        LIBS="$BZLIB_LIBS $LIBS"
27412
27413$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
27414
27415        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27416$as_echo "$as_me: yes" >&6;}
27417        have_bzlib='yes'
27418      fi
27419    else
27420      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27421$as_echo "$as_me: no" >&6;}
27422    fi
27423fi
27424 if test "$have_bzlib" = 'yes'; then
27425  BZLIB_DELEGATE_TRUE=
27426  BZLIB_DELEGATE_FALSE='#'
27427else
27428  BZLIB_DELEGATE_TRUE='#'
27429  BZLIB_DELEGATE_FALSE=
27430fi
27431
27432
27433
27434#
27435# Find the X11 include and library directories.
27436#
27437IPC_LIBS=''
27438X11_LIBS=''
27439XEXT_LIBS=''
27440XT_LIBS=''
27441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
27442$as_echo_n "checking for X... " >&6; }
27443
27444
27445# Check whether --with-x was given.
27446if test "${with_x+set}" = set; then :
27447  withval=$with_x;
27448fi
27449
27450# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27451if test "x$with_x" = xno; then
27452  # The user explicitly disabled X.
27453  have_x=disabled
27454else
27455  case $x_includes,$x_libraries in #(
27456    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
27457    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
27458  $as_echo_n "(cached) " >&6
27459else
27460  # One or both of the vars are not set, and there is no cached value.
27461ac_x_includes=no ac_x_libraries=no
27462rm -f -r conftest.dir
27463if mkdir conftest.dir; then
27464  cd conftest.dir
27465  cat >Imakefile <<'_ACEOF'
27466incroot:
27467	@echo incroot='${INCROOT}'
27468usrlibdir:
27469	@echo usrlibdir='${USRLIBDIR}'
27470libdir:
27471	@echo libdir='${LIBDIR}'
27472_ACEOF
27473  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27474    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27475    for ac_var in incroot usrlibdir libdir; do
27476      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27477    done
27478    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27479    for ac_extension in a so sl dylib la dll; do
27480      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27481	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27482	ac_im_usrlibdir=$ac_im_libdir; break
27483      fi
27484    done
27485    # Screen out bogus values from the imake configuration.  They are
27486    # bogus both because they are the default anyway, and because
27487    # using them would break gcc on systems where it needs fixed includes.
27488    case $ac_im_incroot in
27489	/usr/include) ac_x_includes= ;;
27490	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27491    esac
27492    case $ac_im_usrlibdir in
27493	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
27494	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27495    esac
27496  fi
27497  cd ..
27498  rm -f -r conftest.dir
27499fi
27500
27501# Standard set of common directories for X headers.
27502# Check X11 before X11Rn because it is often a symlink to the current release.
27503ac_x_header_dirs='
27504/usr/X11/include
27505/usr/X11R7/include
27506/usr/X11R6/include
27507/usr/X11R5/include
27508/usr/X11R4/include
27509
27510/usr/include/X11
27511/usr/include/X11R7
27512/usr/include/X11R6
27513/usr/include/X11R5
27514/usr/include/X11R4
27515
27516/usr/local/X11/include
27517/usr/local/X11R7/include
27518/usr/local/X11R6/include
27519/usr/local/X11R5/include
27520/usr/local/X11R4/include
27521
27522/usr/local/include/X11
27523/usr/local/include/X11R7
27524/usr/local/include/X11R6
27525/usr/local/include/X11R5
27526/usr/local/include/X11R4
27527
27528/usr/X386/include
27529/usr/x386/include
27530/usr/XFree86/include/X11
27531
27532/usr/include
27533/usr/local/include
27534/usr/unsupported/include
27535/usr/athena/include
27536/usr/local/x11r5/include
27537/usr/lpp/Xamples/include
27538
27539/usr/openwin/include
27540/usr/openwin/share/include'
27541
27542if test "$ac_x_includes" = no; then
27543  # Guess where to find include files, by looking for Xlib.h.
27544  # First, try using that file with no special directory specified.
27545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27546/* end confdefs.h.  */
27547#include <X11/Xlib.h>
27548_ACEOF
27549if ac_fn_c_try_cpp "$LINENO"; then :
27550  # We can compile using X headers with no special include directory.
27551ac_x_includes=
27552else
27553  for ac_dir in $ac_x_header_dirs; do
27554  if test -r "$ac_dir/X11/Xlib.h"; then
27555    ac_x_includes=$ac_dir
27556    break
27557  fi
27558done
27559fi
27560rm -f conftest.err conftest.i conftest.$ac_ext
27561fi # $ac_x_includes = no
27562
27563if test "$ac_x_libraries" = no; then
27564  # Check for the libraries.
27565  # See if we find them without any special options.
27566  # Don't add to $LIBS permanently.
27567  ac_save_LIBS=$LIBS
27568  LIBS="-lX11 $LIBS"
27569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27570/* end confdefs.h.  */
27571#include <X11/Xlib.h>
27572int
27573main ()
27574{
27575XrmInitialize ()
27576  ;
27577  return 0;
27578}
27579_ACEOF
27580if ac_fn_c_try_link "$LINENO"; then :
27581  LIBS=$ac_save_LIBS
27582# We can link X programs with no special library path.
27583ac_x_libraries=
27584else
27585  LIBS=$ac_save_LIBS
27586for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27587do
27588  # Don't even attempt the hair of trying to link an X program!
27589  for ac_extension in a so sl dylib la dll; do
27590    if test -r "$ac_dir/libX11.$ac_extension"; then
27591      ac_x_libraries=$ac_dir
27592      break 2
27593    fi
27594  done
27595done
27596fi
27597rm -f core conftest.err conftest.$ac_objext \
27598    conftest$ac_exeext conftest.$ac_ext
27599fi # $ac_x_libraries = no
27600
27601case $ac_x_includes,$ac_x_libraries in #(
27602  no,* | *,no | *\'*)
27603    # Didn't find X, or a directory has "'" in its name.
27604    ac_cv_have_x="have_x=no";; #(
27605  *)
27606    # Record where we found X for the cache.
27607    ac_cv_have_x="have_x=yes\
27608	ac_x_includes='$ac_x_includes'\
27609	ac_x_libraries='$ac_x_libraries'"
27610esac
27611fi
27612;; #(
27613    *) have_x=yes;;
27614  esac
27615  eval "$ac_cv_have_x"
27616fi # $with_x != no
27617
27618if test "$have_x" != yes; then
27619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
27620$as_echo "$have_x" >&6; }
27621  no_x=yes
27622else
27623  # If each of the values was on the command line, it overrides each guess.
27624  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27625  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27626  # Update the cache value to reflect the command line values.
27627  ac_cv_have_x="have_x=yes\
27628	ac_x_includes='$x_includes'\
27629	ac_x_libraries='$x_libraries'"
27630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
27631$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27632fi
27633
27634if test "$no_x" = yes; then
27635  # Not all programs may use this symbol, but it does not hurt to define it.
27636
27637$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
27638
27639  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27640else
27641  if test -n "$x_includes"; then
27642    X_CFLAGS="$X_CFLAGS -I$x_includes"
27643  fi
27644
27645  # It would also be nice to do this for all -L options, not just this one.
27646  if test -n "$x_libraries"; then
27647    X_LIBS="$X_LIBS -L$x_libraries"
27648    # For Solaris; some versions of Sun CC require a space after -R and
27649    # others require no space.  Words are not sufficient . . . .
27650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
27651$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27652    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27653    ac_xsave_c_werror_flag=$ac_c_werror_flag
27654    ac_c_werror_flag=yes
27655    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27656/* end confdefs.h.  */
27657
27658int
27659main ()
27660{
27661
27662  ;
27663  return 0;
27664}
27665_ACEOF
27666if ac_fn_c_try_link "$LINENO"; then :
27667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27668$as_echo "no" >&6; }
27669       X_LIBS="$X_LIBS -R$x_libraries"
27670else
27671  LIBS="$ac_xsave_LIBS -R $x_libraries"
27672       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27673/* end confdefs.h.  */
27674
27675int
27676main ()
27677{
27678
27679  ;
27680  return 0;
27681}
27682_ACEOF
27683if ac_fn_c_try_link "$LINENO"; then :
27684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27685$as_echo "yes" >&6; }
27686	  X_LIBS="$X_LIBS -R $x_libraries"
27687else
27688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
27689$as_echo "neither works" >&6; }
27690fi
27691rm -f core conftest.err conftest.$ac_objext \
27692    conftest$ac_exeext conftest.$ac_ext
27693fi
27694rm -f core conftest.err conftest.$ac_objext \
27695    conftest$ac_exeext conftest.$ac_ext
27696    ac_c_werror_flag=$ac_xsave_c_werror_flag
27697    LIBS=$ac_xsave_LIBS
27698  fi
27699
27700  # Check for system-dependent libraries X programs must link with.
27701  # Do this before checking for the system-independent R6 libraries
27702  # (-lICE), since we may need -lsocket or whatever for X linking.
27703
27704  if test "$ISC" = yes; then
27705    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27706  else
27707    # Martyn Johnson says this is needed for Ultrix, if the X
27708    # libraries were built with DECnet support.  And Karl Berry says
27709    # the Alpha needs dnet_stub (dnet does not exist).
27710    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27712/* end confdefs.h.  */
27713
27714/* Override any GCC internal prototype to avoid an error.
27715   Use char because int might match the return type of a GCC
27716   builtin and then its argument prototype would still apply.  */
27717#ifdef __cplusplus
27718extern "C"
27719#endif
27720char XOpenDisplay ();
27721int
27722main ()
27723{
27724return XOpenDisplay ();
27725  ;
27726  return 0;
27727}
27728_ACEOF
27729if ac_fn_c_try_link "$LINENO"; then :
27730
27731else
27732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
27733$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
27734if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
27735  $as_echo_n "(cached) " >&6
27736else
27737  ac_check_lib_save_LIBS=$LIBS
27738LIBS="-ldnet  $LIBS"
27739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27740/* end confdefs.h.  */
27741
27742/* Override any GCC internal prototype to avoid an error.
27743   Use char because int might match the return type of a GCC
27744   builtin and then its argument prototype would still apply.  */
27745#ifdef __cplusplus
27746extern "C"
27747#endif
27748char dnet_ntoa ();
27749int
27750main ()
27751{
27752return dnet_ntoa ();
27753  ;
27754  return 0;
27755}
27756_ACEOF
27757if ac_fn_c_try_link "$LINENO"; then :
27758  ac_cv_lib_dnet_dnet_ntoa=yes
27759else
27760  ac_cv_lib_dnet_dnet_ntoa=no
27761fi
27762rm -f core conftest.err conftest.$ac_objext \
27763    conftest$ac_exeext conftest.$ac_ext
27764LIBS=$ac_check_lib_save_LIBS
27765fi
27766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27767$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27768if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27769  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27770fi
27771
27772    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27773      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27774$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27775if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27776  $as_echo_n "(cached) " >&6
27777else
27778  ac_check_lib_save_LIBS=$LIBS
27779LIBS="-ldnet_stub  $LIBS"
27780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781/* end confdefs.h.  */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784   Use char because int might match the return type of a GCC
27785   builtin and then its argument prototype would still apply.  */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char dnet_ntoa ();
27790int
27791main ()
27792{
27793return dnet_ntoa ();
27794  ;
27795  return 0;
27796}
27797_ACEOF
27798if ac_fn_c_try_link "$LINENO"; then :
27799  ac_cv_lib_dnet_stub_dnet_ntoa=yes
27800else
27801  ac_cv_lib_dnet_stub_dnet_ntoa=no
27802fi
27803rm -f core conftest.err conftest.$ac_objext \
27804    conftest$ac_exeext conftest.$ac_ext
27805LIBS=$ac_check_lib_save_LIBS
27806fi
27807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27808$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27809if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27810  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27811fi
27812
27813    fi
27814fi
27815rm -f core conftest.err conftest.$ac_objext \
27816    conftest$ac_exeext conftest.$ac_ext
27817    LIBS="$ac_xsave_LIBS"
27818
27819    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27820    # to get the SysV transport functions.
27821    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27822    # needs -lnsl.
27823    # The nsl library prevents programs from opening the X display
27824    # on Irix 5.2, according to T.E. Dickey.
27825    # The functions gethostbyname, getservbyname, and inet_addr are
27826    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27827    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27828if test "x$ac_cv_func_gethostbyname" = xyes; then :
27829
27830fi
27831
27832    if test $ac_cv_func_gethostbyname = no; then
27833      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27834$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27835if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27836  $as_echo_n "(cached) " >&6
27837else
27838  ac_check_lib_save_LIBS=$LIBS
27839LIBS="-lnsl  $LIBS"
27840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27841/* end confdefs.h.  */
27842
27843/* Override any GCC internal prototype to avoid an error.
27844   Use char because int might match the return type of a GCC
27845   builtin and then its argument prototype would still apply.  */
27846#ifdef __cplusplus
27847extern "C"
27848#endif
27849char gethostbyname ();
27850int
27851main ()
27852{
27853return gethostbyname ();
27854  ;
27855  return 0;
27856}
27857_ACEOF
27858if ac_fn_c_try_link "$LINENO"; then :
27859  ac_cv_lib_nsl_gethostbyname=yes
27860else
27861  ac_cv_lib_nsl_gethostbyname=no
27862fi
27863rm -f core conftest.err conftest.$ac_objext \
27864    conftest$ac_exeext conftest.$ac_ext
27865LIBS=$ac_check_lib_save_LIBS
27866fi
27867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27868$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27869if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27870  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27871fi
27872
27873      if test $ac_cv_lib_nsl_gethostbyname = no; then
27874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27875$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27876if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27877  $as_echo_n "(cached) " >&6
27878else
27879  ac_check_lib_save_LIBS=$LIBS
27880LIBS="-lbsd  $LIBS"
27881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27882/* end confdefs.h.  */
27883
27884/* Override any GCC internal prototype to avoid an error.
27885   Use char because int might match the return type of a GCC
27886   builtin and then its argument prototype would still apply.  */
27887#ifdef __cplusplus
27888extern "C"
27889#endif
27890char gethostbyname ();
27891int
27892main ()
27893{
27894return gethostbyname ();
27895  ;
27896  return 0;
27897}
27898_ACEOF
27899if ac_fn_c_try_link "$LINENO"; then :
27900  ac_cv_lib_bsd_gethostbyname=yes
27901else
27902  ac_cv_lib_bsd_gethostbyname=no
27903fi
27904rm -f core conftest.err conftest.$ac_objext \
27905    conftest$ac_exeext conftest.$ac_ext
27906LIBS=$ac_check_lib_save_LIBS
27907fi
27908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27909$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27910if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27911  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27912fi
27913
27914      fi
27915    fi
27916
27917    # lieder@skyler.mavd.honeywell.com says without -lsocket,
27918    # socket/setsockopt and other routines are undefined under SCO ODT
27919    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27920    # on later versions), says Simon Leinen: it contains gethostby*
27921    # variants that don't use the name server (or something).  -lsocket
27922    # must be given before -lnsl if both are needed.  We assume that
27923    # if connect needs -lnsl, so does gethostbyname.
27924    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27925if test "x$ac_cv_func_connect" = xyes; then :
27926
27927fi
27928
27929    if test $ac_cv_func_connect = no; then
27930      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27931$as_echo_n "checking for connect in -lsocket... " >&6; }
27932if ${ac_cv_lib_socket_connect+:} false; then :
27933  $as_echo_n "(cached) " >&6
27934else
27935  ac_check_lib_save_LIBS=$LIBS
27936LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27938/* end confdefs.h.  */
27939
27940/* Override any GCC internal prototype to avoid an error.
27941   Use char because int might match the return type of a GCC
27942   builtin and then its argument prototype would still apply.  */
27943#ifdef __cplusplus
27944extern "C"
27945#endif
27946char connect ();
27947int
27948main ()
27949{
27950return connect ();
27951  ;
27952  return 0;
27953}
27954_ACEOF
27955if ac_fn_c_try_link "$LINENO"; then :
27956  ac_cv_lib_socket_connect=yes
27957else
27958  ac_cv_lib_socket_connect=no
27959fi
27960rm -f core conftest.err conftest.$ac_objext \
27961    conftest$ac_exeext conftest.$ac_ext
27962LIBS=$ac_check_lib_save_LIBS
27963fi
27964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27965$as_echo "$ac_cv_lib_socket_connect" >&6; }
27966if test "x$ac_cv_lib_socket_connect" = xyes; then :
27967  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27968fi
27969
27970    fi
27971
27972    # Guillermo Gomez says -lposix is necessary on A/UX.
27973    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27974if test "x$ac_cv_func_remove" = xyes; then :
27975
27976fi
27977
27978    if test $ac_cv_func_remove = no; then
27979      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27980$as_echo_n "checking for remove in -lposix... " >&6; }
27981if ${ac_cv_lib_posix_remove+:} false; then :
27982  $as_echo_n "(cached) " >&6
27983else
27984  ac_check_lib_save_LIBS=$LIBS
27985LIBS="-lposix  $LIBS"
27986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27987/* end confdefs.h.  */
27988
27989/* Override any GCC internal prototype to avoid an error.
27990   Use char because int might match the return type of a GCC
27991   builtin and then its argument prototype would still apply.  */
27992#ifdef __cplusplus
27993extern "C"
27994#endif
27995char remove ();
27996int
27997main ()
27998{
27999return remove ();
28000  ;
28001  return 0;
28002}
28003_ACEOF
28004if ac_fn_c_try_link "$LINENO"; then :
28005  ac_cv_lib_posix_remove=yes
28006else
28007  ac_cv_lib_posix_remove=no
28008fi
28009rm -f core conftest.err conftest.$ac_objext \
28010    conftest$ac_exeext conftest.$ac_ext
28011LIBS=$ac_check_lib_save_LIBS
28012fi
28013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
28014$as_echo "$ac_cv_lib_posix_remove" >&6; }
28015if test "x$ac_cv_lib_posix_remove" = xyes; then :
28016  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28017fi
28018
28019    fi
28020
28021    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28022    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
28023if test "x$ac_cv_func_shmat" = xyes; then :
28024
28025fi
28026
28027    if test $ac_cv_func_shmat = no; then
28028      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
28029$as_echo_n "checking for shmat in -lipc... " >&6; }
28030if ${ac_cv_lib_ipc_shmat+:} false; then :
28031  $as_echo_n "(cached) " >&6
28032else
28033  ac_check_lib_save_LIBS=$LIBS
28034LIBS="-lipc  $LIBS"
28035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28036/* end confdefs.h.  */
28037
28038/* Override any GCC internal prototype to avoid an error.
28039   Use char because int might match the return type of a GCC
28040   builtin and then its argument prototype would still apply.  */
28041#ifdef __cplusplus
28042extern "C"
28043#endif
28044char shmat ();
28045int
28046main ()
28047{
28048return shmat ();
28049  ;
28050  return 0;
28051}
28052_ACEOF
28053if ac_fn_c_try_link "$LINENO"; then :
28054  ac_cv_lib_ipc_shmat=yes
28055else
28056  ac_cv_lib_ipc_shmat=no
28057fi
28058rm -f core conftest.err conftest.$ac_objext \
28059    conftest$ac_exeext conftest.$ac_ext
28060LIBS=$ac_check_lib_save_LIBS
28061fi
28062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
28063$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
28064if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
28065  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28066fi
28067
28068    fi
28069  fi
28070
28071  # Check for libraries that X11R6 Xt/Xaw programs need.
28072  ac_save_LDFLAGS=$LDFLAGS
28073  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28074  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28075  # check for ICE first), but we must link in the order -lSM -lICE or
28076  # we get undefined symbols.  So assume we have SM if we have ICE.
28077  # These have to be linked with before -lX11, unlike the other
28078  # libraries we check for below, so use a different variable.
28079  # John Interrante, Karl Berry
28080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
28081$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
28082if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
28083  $as_echo_n "(cached) " >&6
28084else
28085  ac_check_lib_save_LIBS=$LIBS
28086LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28088/* end confdefs.h.  */
28089
28090/* Override any GCC internal prototype to avoid an error.
28091   Use char because int might match the return type of a GCC
28092   builtin and then its argument prototype would still apply.  */
28093#ifdef __cplusplus
28094extern "C"
28095#endif
28096char IceConnectionNumber ();
28097int
28098main ()
28099{
28100return IceConnectionNumber ();
28101  ;
28102  return 0;
28103}
28104_ACEOF
28105if ac_fn_c_try_link "$LINENO"; then :
28106  ac_cv_lib_ICE_IceConnectionNumber=yes
28107else
28108  ac_cv_lib_ICE_IceConnectionNumber=no
28109fi
28110rm -f core conftest.err conftest.$ac_objext \
28111    conftest$ac_exeext conftest.$ac_ext
28112LIBS=$ac_check_lib_save_LIBS
28113fi
28114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28115$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28116if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
28117  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28118fi
28119
28120  LDFLAGS=$ac_save_LDFLAGS
28121
28122fi
28123
28124if test "$no_x" != 'yes'; then
28125    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28126$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
28128$as_echo_n "checking for X11... " >&6; }
28129    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28130$as_echo "$as_me: " >&6;}
28131    LDFLAGS="$LDFLAGS $X_LIBS"
28132    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28133    LIBS="$X11_LIBS $LIBS"
28134    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28135
28136
28137$as_echo "#define X11_DELEGATE 1" >>confdefs.h
28138
28139    #
28140    # Check for X11 shared memory extension
28141    #
28142    # shmctl is required to support the shared memory extension
28143    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
28144if test "x$ac_cv_func_shmctl" = xyes; then :
28145  have_shmctl='yes'
28146fi
28147
28148    if test "$have_shmctl" != 'yes'; then
28149        PERSIST_LIBS=$LIBS
28150        LIBS="$LIBS -lcygipc"
28151        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28152/* end confdefs.h.  */
28153
28154/* Override any GCC internal prototype to avoid an error.
28155   Use char because int might match the return type of a GCC
28156   builtin and then its argument prototype would still apply.  */
28157#ifdef __cplusplus
28158extern "C"
28159#endif
28160char shmctl ();
28161int
28162main ()
28163{
28164return shmctl ();
28165  ;
28166  return 0;
28167}
28168_ACEOF
28169if ac_fn_c_try_link "$LINENO"; then :
28170  have_shmctl='yes'; IPC_LIBS='-lcygipc'
28171fi
28172rm -f core conftest.err conftest.$ac_objext \
28173    conftest$ac_exeext conftest.$ac_ext
28174        LIBS=$PERSIST_LIBS
28175    fi
28176
28177    if test "$have_shmctl" = 'yes'; then
28178        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
28179$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
28180if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
28181  $as_echo_n "(cached) " >&6
28182else
28183  ac_check_lib_save_LIBS=$LIBS
28184LIBS="-lXext  $LIBS"
28185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28186/* end confdefs.h.  */
28187
28188/* Override any GCC internal prototype to avoid an error.
28189   Use char because int might match the return type of a GCC
28190   builtin and then its argument prototype would still apply.  */
28191#ifdef __cplusplus
28192extern "C"
28193#endif
28194char XShmAttach ();
28195int
28196main ()
28197{
28198return XShmAttach ();
28199  ;
28200  return 0;
28201}
28202_ACEOF
28203if ac_fn_c_try_link "$LINENO"; then :
28204  ac_cv_lib_Xext_XShmAttach=yes
28205else
28206  ac_cv_lib_Xext_XShmAttach=no
28207fi
28208rm -f core conftest.err conftest.$ac_objext \
28209    conftest$ac_exeext conftest.$ac_ext
28210LIBS=$ac_check_lib_save_LIBS
28211fi
28212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
28213$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
28214if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
28215  XEXT_LIBS='-lXext' ;
28216$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
28217
28218fi
28219
28220    fi
28221
28222    #
28223    # Check for X11 shape extension
28224    #
28225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
28226$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
28227if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
28228  $as_echo_n "(cached) " >&6
28229else
28230  ac_check_lib_save_LIBS=$LIBS
28231LIBS="-lXext  $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 XShapeCombineMask ();
28242int
28243main ()
28244{
28245return XShapeCombineMask ();
28246  ;
28247  return 0;
28248}
28249_ACEOF
28250if ac_fn_c_try_link "$LINENO"; then :
28251  ac_cv_lib_Xext_XShapeCombineMask=yes
28252else
28253  ac_cv_lib_Xext_XShapeCombineMask=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_Xext_XShapeCombineMask" >&5
28260$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
28261if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
28262  XEXT_LIBS='-lXext' ;
28263$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
28264
28265fi
28266
28267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
28268$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
28269if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
28270  $as_echo_n "(cached) " >&6
28271else
28272  ac_check_lib_save_LIBS=$LIBS
28273LIBS="-lXt  $LIBS"
28274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28275/* end confdefs.h.  */
28276
28277/* Override any GCC internal prototype to avoid an error.
28278   Use char because int might match the return type of a GCC
28279   builtin and then its argument prototype would still apply.  */
28280#ifdef __cplusplus
28281extern "C"
28282#endif
28283char XtSetEventDispatcher ();
28284int
28285main ()
28286{
28287return XtSetEventDispatcher ();
28288  ;
28289  return 0;
28290}
28291_ACEOF
28292if ac_fn_c_try_link "$LINENO"; then :
28293  ac_cv_lib_Xt_XtSetEventDispatcher=yes
28294else
28295  ac_cv_lib_Xt_XtSetEventDispatcher=no
28296fi
28297rm -f core conftest.err conftest.$ac_objext \
28298    conftest$ac_exeext conftest.$ac_ext
28299LIBS=$ac_check_lib_save_LIBS
28300fi
28301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
28302$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
28303if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
28304  XT_LIBS='-lXt'
28305fi
28306
28307    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28308fi
28309if test "$no_x" != 'yes'; then
28310  have_x='yes'
28311else
28312  have_x='no'
28313fi
28314 if test "$have_x" = 'yes'; then
28315  X11_DELEGATE_TRUE=
28316  X11_DELEGATE_FALSE='#'
28317else
28318  X11_DELEGATE_TRUE='#'
28319  X11_DELEGATE_FALSE=
28320fi
28321
28322
28323
28324
28325
28326#
28327# Check for ZLIB
28328#
28329
28330# Check whether --with-zlib was given.
28331if test "${with_zlib+set}" = set; then :
28332  withval=$with_zlib; with_zlib=$withval
28333else
28334  with_zlib='yes'
28335fi
28336
28337
28338if test "$with_zlib" != 'yes'; then
28339    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28340fi
28341
28342have_zlib='no'
28343ZLIB_LIBS=''
28344if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
28345    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28346$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
28348$as_echo_n "checking for ZLIB... " >&6; }
28349    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28350$as_echo "$as_me: " >&6;}
28351    ZLIB_LIBS=''
28352    failed=0
28353    passed=0
28354    ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
28355if test "x$ac_cv_header_zconf_h" = xyes; then :
28356  passed=`expr $passed + 1`
28357else
28358  failed=`expr $failed + 1`
28359fi
28360
28361
28362    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28363if test "x$ac_cv_header_zlib_h" = xyes; then :
28364  passed=`expr $passed + 1`
28365else
28366  failed=`expr $failed + 1`
28367fi
28368
28369
28370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
28371$as_echo_n "checking for compress in -lz... " >&6; }
28372if ${ac_cv_lib_z_compress+:} 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 compress ();
28387int
28388main ()
28389{
28390return compress ();
28391  ;
28392  return 0;
28393}
28394_ACEOF
28395if ac_fn_c_try_link "$LINENO"; then :
28396  ac_cv_lib_z_compress=yes
28397else
28398  ac_cv_lib_z_compress=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_compress" >&5
28405$as_echo "$ac_cv_lib_z_compress" >&6; }
28406if test "x$ac_cv_lib_z_compress" = 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 uncompress in -lz" >&5
28413$as_echo_n "checking for uncompress in -lz... " >&6; }
28414if ${ac_cv_lib_z_uncompress+:} 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 uncompress ();
28429int
28430main ()
28431{
28432return uncompress ();
28433  ;
28434  return 0;
28435}
28436_ACEOF
28437if ac_fn_c_try_link "$LINENO"; then :
28438  ac_cv_lib_z_uncompress=yes
28439else
28440  ac_cv_lib_z_uncompress=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_uncompress" >&5
28447$as_echo "$ac_cv_lib_z_uncompress" >&6; }
28448if test "x$ac_cv_lib_z_uncompress" = 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 deflate in -lz" >&5
28455$as_echo_n "checking for deflate in -lz... " >&6; }
28456if ${ac_cv_lib_z_deflate+:} 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 deflate ();
28471int
28472main ()
28473{
28474return deflate ();
28475  ;
28476  return 0;
28477}
28478_ACEOF
28479if ac_fn_c_try_link "$LINENO"; then :
28480  ac_cv_lib_z_deflate=yes
28481else
28482  ac_cv_lib_z_deflate=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_deflate" >&5
28489$as_echo "$ac_cv_lib_z_deflate" >&6; }
28490if test "x$ac_cv_lib_z_deflate" = 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 inflate in -lz" >&5
28497$as_echo_n "checking for inflate in -lz... " >&6; }
28498if ${ac_cv_lib_z_inflate+:} 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 inflate ();
28513int
28514main ()
28515{
28516return inflate ();
28517  ;
28518  return 0;
28519}
28520_ACEOF
28521if ac_fn_c_try_link "$LINENO"; then :
28522  ac_cv_lib_z_inflate=yes
28523else
28524  ac_cv_lib_z_inflate=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_inflate" >&5
28531$as_echo "$ac_cv_lib_z_inflate" >&6; }
28532if test "x$ac_cv_lib_z_inflate" = 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 gzseek in -lz" >&5
28539$as_echo_n "checking for gzseek in -lz... " >&6; }
28540if ${ac_cv_lib_z_gzseek+:} 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 gzseek ();
28555int
28556main ()
28557{
28558return gzseek ();
28559  ;
28560  return 0;
28561}
28562_ACEOF
28563if ac_fn_c_try_link "$LINENO"; then :
28564  ac_cv_lib_z_gzseek=yes
28565else
28566  ac_cv_lib_z_gzseek=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_gzseek" >&5
28573$as_echo "$ac_cv_lib_z_gzseek" >&6; }
28574if test "x$ac_cv_lib_z_gzseek" = xyes; then :
28575  passed=`expr $passed + 1`
28576else
28577  failed=`expr $failed + 1`
28578fi
28579
28580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
28581$as_echo_n "checking for gztell in -lz... " >&6; }
28582if ${ac_cv_lib_z_gztell+:} false; then :
28583  $as_echo_n "(cached) " >&6
28584else
28585  ac_check_lib_save_LIBS=$LIBS
28586LIBS="-lz  $LIBS"
28587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28588/* end confdefs.h.  */
28589
28590/* Override any GCC internal prototype to avoid an error.
28591   Use char because int might match the return type of a GCC
28592   builtin and then its argument prototype would still apply.  */
28593#ifdef __cplusplus
28594extern "C"
28595#endif
28596char gztell ();
28597int
28598main ()
28599{
28600return gztell ();
28601  ;
28602  return 0;
28603}
28604_ACEOF
28605if ac_fn_c_try_link "$LINENO"; then :
28606  ac_cv_lib_z_gztell=yes
28607else
28608  ac_cv_lib_z_gztell=no
28609fi
28610rm -f core conftest.err conftest.$ac_objext \
28611    conftest$ac_exeext conftest.$ac_ext
28612LIBS=$ac_check_lib_save_LIBS
28613fi
28614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
28615$as_echo "$ac_cv_lib_z_gztell" >&6; }
28616if test "x$ac_cv_lib_z_gztell" = xyes; then :
28617  passed=`expr $passed + 1`
28618else
28619  failed=`expr $failed + 1`
28620fi
28621
28622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
28623$as_echo_n "checking if ZLIB package is complete... " >&6; }
28624    if test $passed -gt 0; then
28625        if test $failed -gt 0; then
28626            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28627$as_echo "$as_me: no -- some components failed test" >&6;}
28628            have_zlib='no (failed tests)'
28629        else
28630            ZLIB_LIBS='-lz'
28631            LIBS="$ZLIB_LIBS $LIBS"
28632
28633$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28634
28635            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28636$as_echo "$as_me: yes" >&6;}
28637            have_zlib='yes'
28638        fi
28639    else
28640        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28641$as_echo "$as_me: no" >&6;}
28642    fi
28643fi
28644 if test "$have_zlib" = 'yes'; then
28645  ZLIB_DELEGATE_TRUE=
28646  ZLIB_DELEGATE_FALSE='#'
28647else
28648  ZLIB_DELEGATE_TRUE='#'
28649  ZLIB_DELEGATE_FALSE=
28650fi
28651
28652
28653
28654#
28655# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28656#
28657LIB_DL=''
28658if test "$enable_profiling" = 'yes'; then
28659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
28660$as_echo_n "checking for dlopen in -ldl... " >&6; }
28661if ${ac_cv_lib_dl_dlopen+:} false; then :
28662  $as_echo_n "(cached) " >&6
28663else
28664  ac_check_lib_save_LIBS=$LIBS
28665LIBS="-ldl  $LIBS"
28666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28667/* end confdefs.h.  */
28668
28669/* Override any GCC internal prototype to avoid an error.
28670   Use char because int might match the return type of a GCC
28671   builtin and then its argument prototype would still apply.  */
28672#ifdef __cplusplus
28673extern "C"
28674#endif
28675char dlopen ();
28676int
28677main ()
28678{
28679return dlopen ();
28680  ;
28681  return 0;
28682}
28683_ACEOF
28684if ac_fn_c_try_link "$LINENO"; then :
28685  ac_cv_lib_dl_dlopen=yes
28686else
28687  ac_cv_lib_dl_dlopen=no
28688fi
28689rm -f core conftest.err conftest.$ac_objext \
28690    conftest$ac_exeext conftest.$ac_ext
28691LIBS=$ac_check_lib_save_LIBS
28692fi
28693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
28694$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28695if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
28696  LIB_DL='-ldl'
28697fi
28698
28699    LIBS="$LIB_DL $LIBS"
28700fi
28701
28702
28703
28704#
28705# Check for Autotrace delegate library.
28706#
28707
28708# Check whether --with-autotrace was given.
28709if test "${with_autotrace+set}" = set; then :
28710  withval=$with_autotrace; with_autotrace=$withval
28711else
28712  with_autotrace='no'
28713fi
28714
28715
28716if test "$with_autotrace" != 'yes'; then
28717    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28718fi
28719
28720have_autotrace='no'
28721AUTOTRACE_CFLAGS=""
28722AUTOTRACE_LIBS=""
28723AUTOTRACE_PKG=""
28724if test "x$with_autotrace" = "xyes"; then
28725    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28726$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28727
28728pkg_failed=no
28729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28730$as_echo_n "checking for AUTOTRACE... " >&6; }
28731
28732if test -n "$AUTOTRACE_CFLAGS"; then
28733    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28734 elif test -n "$PKG_CONFIG"; then
28735    if test -n "$PKG_CONFIG" && \
28736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28737  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28738  ac_status=$?
28739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28740  test $ac_status = 0; }; then
28741  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28742else
28743  pkg_failed=yes
28744fi
28745 else
28746    pkg_failed=untried
28747fi
28748if test -n "$AUTOTRACE_LIBS"; then
28749    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28750 elif test -n "$PKG_CONFIG"; then
28751    if test -n "$PKG_CONFIG" && \
28752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28753  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28754  ac_status=$?
28755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28756  test $ac_status = 0; }; then
28757  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28758else
28759  pkg_failed=yes
28760fi
28761 else
28762    pkg_failed=untried
28763fi
28764
28765
28766
28767if test $pkg_failed = yes; then
28768
28769if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28770        _pkg_short_errors_supported=yes
28771else
28772        _pkg_short_errors_supported=no
28773fi
28774        if test $_pkg_short_errors_supported = yes; then
28775	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28776        else
28777	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28778        fi
28779	# Put the nasty error message in config.log where it belongs
28780	echo "$AUTOTRACE_PKG_ERRORS" >&5
28781
28782	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28783$as_echo "no" >&6; }
28784                have_autotrace=no
28785elif test $pkg_failed = untried; then
28786	have_autotrace=no
28787else
28788	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28789	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28790        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28791$as_echo "yes" >&6; }
28792	have_autotrace=yes
28793fi
28794    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28795$as_echo "$as_me: " >&6;}
28796fi
28797
28798if test "$have_autotrace" = 'yes'; then
28799    failed=0
28800
28801$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28802
28803    if test "$with_modules" = 'no'; then
28804    CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28805    fi
28806fi
28807
28808 if test "$have_autotrace" = 'yes'; then
28809  AUTOTRACE_DELEGATE_TRUE=
28810  AUTOTRACE_DELEGATE_FALSE='#'
28811else
28812  AUTOTRACE_DELEGATE_TRUE='#'
28813  AUTOTRACE_DELEGATE_FALSE=
28814fi
28815
28816
28817
28818
28819
28820#
28821# Check for Display Postscript delegate library.
28822#
28823
28824# Check whether --with-dps was given.
28825if test "${with_dps+set}" = set; then :
28826  withval=$with_dps; with_dps=$withval
28827else
28828  with_dps='yes'
28829fi
28830
28831
28832if test "$with_dps" != 'yes'; then
28833    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28834fi
28835
28836have_dps='no'
28837DPS_LIBS=''
28838if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28839    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28840$as_echo "$as_me: -------------------------------------------------------------" >&6;}
28841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28842$as_echo_n "checking for DPS... " >&6; }
28843    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28844$as_echo "$as_me: " >&6;}
28845    failed=0
28846    passed=0
28847    PERSIST_CPPFLAGS="$CPPFLAGS"
28848    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28849    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28850if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28851  passed=`expr $passed + 1`
28852else
28853  failed=`expr $failed + 1`
28854fi
28855
28856
28857    # DPS issues:
28858    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28859    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28860    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28861    # ImageMagick itself doesn't use -lXt.
28862    have_libdps='no'
28863    LIBDPS_XT=''
28864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28865$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28866if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28867  $as_echo_n "(cached) " >&6
28868else
28869  ac_check_lib_save_LIBS=$LIBS
28870LIBS="-ldps  $LIBS"
28871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28872/* end confdefs.h.  */
28873
28874/* Override any GCC internal prototype to avoid an error.
28875   Use char because int might match the return type of a GCC
28876   builtin and then its argument prototype would still apply.  */
28877#ifdef __cplusplus
28878extern "C"
28879#endif
28880char DPSInitialize ();
28881int
28882main ()
28883{
28884return DPSInitialize ();
28885  ;
28886  return 0;
28887}
28888_ACEOF
28889if ac_fn_c_try_link "$LINENO"; then :
28890  ac_cv_lib_dps_DPSInitialize=yes
28891else
28892  ac_cv_lib_dps_DPSInitialize=no
28893fi
28894rm -f core conftest.err conftest.$ac_objext \
28895    conftest$ac_exeext conftest.$ac_ext
28896LIBS=$ac_check_lib_save_LIBS
28897fi
28898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28899$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28900if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28901  have_libdps='yes'
28902else
28903  have_libdps='no'
28904fi
28905
28906    if test "$have_libdps" != 'yes'; then
28907        # Unset cache variable so we can try again.
28908        unset ac_cv_lib_dps_DPSInitialize
28909        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28910$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28911if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28912  $as_echo_n "(cached) " >&6
28913else
28914  ac_check_lib_save_LIBS=$LIBS
28915LIBS="-ldps -lXt $LIBS"
28916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917/* end confdefs.h.  */
28918
28919/* Override any GCC internal prototype to avoid an error.
28920   Use char because int might match the return type of a GCC
28921   builtin and then its argument prototype would still apply.  */
28922#ifdef __cplusplus
28923extern "C"
28924#endif
28925char DPSInitialize ();
28926int
28927main ()
28928{
28929return DPSInitialize ();
28930  ;
28931  return 0;
28932}
28933_ACEOF
28934if ac_fn_c_try_link "$LINENO"; then :
28935  ac_cv_lib_dps_DPSInitialize=yes
28936else
28937  ac_cv_lib_dps_DPSInitialize=no
28938fi
28939rm -f core conftest.err conftest.$ac_objext \
28940    conftest$ac_exeext conftest.$ac_ext
28941LIBS=$ac_check_lib_save_LIBS
28942fi
28943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28944$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28945if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28946  have_libdps='yes'
28947else
28948  have_libdps='no'
28949fi
28950
28951        if test "$have_libdps" = 'yes'; then
28952            LIBDPS_XT='-lXt'
28953        fi
28954    fi
28955    if test "$have_libdps" = 'yes'; then
28956        passed=`expr $passed + 1`
28957    else
28958        failed=`expr $failed + 1`
28959    fi
28960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28961$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28962if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28963  $as_echo_n "(cached) " >&6
28964else
28965  ac_check_lib_save_LIBS=$LIBS
28966LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28968/* end confdefs.h.  */
28969
28970/* Override any GCC internal prototype to avoid an error.
28971   Use char because int might match the return type of a GCC
28972   builtin and then its argument prototype would still apply.  */
28973#ifdef __cplusplus
28974extern "C"
28975#endif
28976char XDPSPixelsPerPoint ();
28977int
28978main ()
28979{
28980return XDPSPixelsPerPoint ();
28981  ;
28982  return 0;
28983}
28984_ACEOF
28985if ac_fn_c_try_link "$LINENO"; then :
28986  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28987else
28988  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28989fi
28990rm -f core conftest.err conftest.$ac_objext \
28991    conftest$ac_exeext conftest.$ac_ext
28992LIBS=$ac_check_lib_save_LIBS
28993fi
28994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28995$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28996if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28997  passed=`expr $passed + 1`
28998else
28999  failed=`expr $failed + 1`
29000fi
29001
29002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
29003$as_echo_n "checking if DPS package is complete... " >&6; }
29004    if test $passed -gt 0; then
29005        if test $failed -gt 0; then
29006            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29007$as_echo "$as_me: no -- some components failed test" >&6;}
29008            have_dps='no (failed tests)'
29009            CPPFLAGS="$PERSIST_CPPFLAGS"
29010        else
29011            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29012            LIBS="$DPS_LIBS $LIBS"
29013
29014$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
29015
29016            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29017$as_echo "$as_me: yes" >&6;}
29018            have_dps='yes'
29019        fi
29020    else
29021        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29022$as_echo "$as_me: no" >&6;}
29023        CPPFLAGS=$PERSIST_CPPFLAGS
29024    fi
29025fi
29026 if test "$have_dps" = 'yes'; then
29027  DPS_DELEGATE_TRUE=
29028  DPS_DELEGATE_FALSE='#'
29029else
29030  DPS_DELEGATE_TRUE='#'
29031  DPS_DELEGATE_FALSE=
29032fi
29033
29034
29035
29036
29037#
29038# Check for DJVU delegate library.
29039#
29040
29041# Check whether --with-djvu was given.
29042if test "${with_djvu+set}" = set; then :
29043  withval=$with_djvu; with_djvu=$withval
29044else
29045  with_djvu='yes'
29046fi
29047
29048
29049if test "$with_djvu" != 'yes'; then
29050    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29051fi
29052
29053have_djvu='no'
29054DJVU_LIBS=''
29055if test "$with_djvu" != 'no'; then
29056    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29057$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29059$as_echo_n "checking for DJVU... " >&6; }
29060    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29061$as_echo "$as_me: " >&6;}
29062    failed=0
29063    passed=0
29064    ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29065if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29066  passed=`expr $passed + 1`
29067else
29068  failed=`expr $failed + 1`
29069fi
29070
29071
29072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29073$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29074if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29075  $as_echo_n "(cached) " >&6
29076else
29077  ac_check_lib_save_LIBS=$LIBS
29078LIBS="-ldjvulibre  $LIBS"
29079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29080/* end confdefs.h.  */
29081
29082/* Override any GCC internal prototype to avoid an error.
29083   Use char because int might match the return type of a GCC
29084   builtin and then its argument prototype would still apply.  */
29085#ifdef __cplusplus
29086extern "C"
29087#endif
29088char ddjvu_context_create ();
29089int
29090main ()
29091{
29092return ddjvu_context_create ();
29093  ;
29094  return 0;
29095}
29096_ACEOF
29097if ac_fn_c_try_link "$LINENO"; then :
29098  ac_cv_lib_djvulibre_ddjvu_context_create=yes
29099else
29100  ac_cv_lib_djvulibre_ddjvu_context_create=no
29101fi
29102rm -f core conftest.err conftest.$ac_objext \
29103    conftest$ac_exeext conftest.$ac_ext
29104LIBS=$ac_check_lib_save_LIBS
29105fi
29106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29107$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29108if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29109  passed=`expr $passed + 1`
29110else
29111  failed=`expr $failed + 1`
29112fi
29113
29114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29115$as_echo_n "checking if DJVU package is complete... " >&6; }
29116    if test $passed -gt 0; then
29117        if test $failed -gt 0; then
29118            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29119$as_echo "$as_me: no -- some components failed test" >&6;}
29120            have_djvu='no (failed tests)'
29121        else
29122            DJVU_LIBS='-ldjvulibre'
29123            LIBS="$DJVU_LIBS $LIBS"
29124
29125$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29126
29127            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29128$as_echo "$as_me: yes" >&6;}
29129            have_djvu='yes'
29130        fi
29131    else
29132        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29133$as_echo "$as_me: no" >&6;}
29134    fi
29135fi
29136 if test "$have_djvu" = 'yes'; then
29137  DJVU_DELEGATE_TRUE=
29138  DJVU_DELEGATE_FALSE='#'
29139else
29140  DJVU_DELEGATE_TRUE='#'
29141  DJVU_DELEGATE_FALSE=
29142fi
29143
29144
29145
29146
29147#
29148# Set DejaVu font directory.
29149#
29150
29151# Check whether --with-dejavu-font-dir was given.
29152if test "${with_dejavu_font_dir+set}" = set; then :
29153  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29154else
29155  with_dejavu_font_dir='default'
29156fi
29157
29158
29159if test "$with_dejavu_font_dir" != 'default'; then
29160    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29161fi
29162
29163
29164#
29165# Check for FFTW delegate library.
29166#
29167
29168# Check whether --with-fftw was given.
29169if test "${with_fftw+set}" = set; then :
29170  withval=$with_fftw; with_fftw=$withval
29171else
29172  with_fftw='yes'
29173fi
29174
29175
29176if test "$with_fftw" != 'yes'; then
29177    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29178fi
29179
29180have_fftw='no'
29181FFTW_LIBS=''
29182if test "$with_fftw" != 'no'; then
29183    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29184$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29186$as_echo_n "checking for FFTW... " >&6; }
29187    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29188$as_echo "$as_me: " >&6;}
29189    failed=0
29190    passed=0
29191    ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29192if test "x$ac_cv_header_fftw3_h" = xyes; then :
29193  passed=`expr $passed + 1`
29194else
29195  failed=`expr $failed + 1`
29196fi
29197
29198
29199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29200$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29201if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29202  $as_echo_n "(cached) " >&6
29203else
29204  ac_check_lib_save_LIBS=$LIBS
29205LIBS="-lfftw3  $LIBS"
29206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29207/* end confdefs.h.  */
29208
29209/* Override any GCC internal prototype to avoid an error.
29210   Use char because int might match the return type of a GCC
29211   builtin and then its argument prototype would still apply.  */
29212#ifdef __cplusplus
29213extern "C"
29214#endif
29215char fftw_execute ();
29216int
29217main ()
29218{
29219return fftw_execute ();
29220  ;
29221  return 0;
29222}
29223_ACEOF
29224if ac_fn_c_try_link "$LINENO"; then :
29225  ac_cv_lib_fftw3_fftw_execute=yes
29226else
29227  ac_cv_lib_fftw3_fftw_execute=no
29228fi
29229rm -f core conftest.err conftest.$ac_objext \
29230    conftest$ac_exeext conftest.$ac_ext
29231LIBS=$ac_check_lib_save_LIBS
29232fi
29233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29234$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29235if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29236  passed=`expr $passed + 1`
29237else
29238  failed=`expr $failed + 1`
29239fi
29240
29241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29242$as_echo_n "checking if FFTW package is complete... " >&6; }
29243    if test $passed -gt 0; then
29244        if test $failed -gt 0; then
29245            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29246$as_echo "$as_me: no -- some components failed test" >&6;}
29247            have_fftw='no (failed tests)'
29248        else
29249            FFTW_LIBS='-lfftw3'
29250            LIBS="$FFTW_LIBS $LIBS"
29251
29252$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
29253
29254            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29255$as_echo "$as_me: yes" >&6;}
29256            have_fftw='yes'
29257        fi
29258    else
29259        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29260$as_echo "$as_me: no" >&6;}
29261    fi
29262fi
29263 if test "$have_fftw" = 'yes'; then
29264  FFTW_DELEGATE_TRUE=
29265  FFTW_DELEGATE_FALSE='#'
29266else
29267  FFTW_DELEGATE_TRUE='#'
29268  FFTW_DELEGATE_FALSE=
29269fi
29270
29271
29272
29273
29274#
29275# Check for FlashPIX delegate library.
29276#
29277
29278# Check whether --with-fpx was given.
29279if test "${with_fpx+set}" = set; then :
29280  withval=$with_fpx; with_fpx=$withval
29281else
29282  with_fpx='yes'
29283fi
29284
29285
29286if test "$with_fpx" != 'yes'; then
29287    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29288fi
29289
29290have_fpx='no'
29291FPX_LIBS=''
29292if test "$with_fpx" != 'no'; then
29293    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29294$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
29296$as_echo_n "checking for FlashPIX... " >&6; }
29297    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29298$as_echo "$as_me: " >&6;}
29299    failed=0
29300    passed=0
29301    ac_ext=cpp
29302ac_cpp='$CXXCPP $CPPFLAGS'
29303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29306
29307
29308ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
29309if test "x$ac_cv_header_fpxlib_h" = xyes; then :
29310  passed=`expr $passed + 1`
29311else
29312  failed=`expr $failed + 1`
29313fi
29314
29315
29316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
29317$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
29318if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
29319  $as_echo_n "(cached) " >&6
29320else
29321  ac_check_lib_save_LIBS=$LIBS
29322LIBS="-lfpx  $LIBS"
29323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29324/* end confdefs.h.  */
29325
29326/* Override any GCC internal prototype to avoid an error.
29327   Use char because int might match the return type of a GCC
29328   builtin and then its argument prototype would still apply.  */
29329#ifdef __cplusplus
29330extern "C"
29331#endif
29332char FPX_OpenImageByFilename ();
29333int
29334main ()
29335{
29336return FPX_OpenImageByFilename ();
29337  ;
29338  return 0;
29339}
29340_ACEOF
29341if ac_fn_cxx_try_link "$LINENO"; then :
29342  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29343else
29344  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
29345fi
29346rm -f core conftest.err conftest.$ac_objext \
29347    conftest$ac_exeext conftest.$ac_ext
29348LIBS=$ac_check_lib_save_LIBS
29349fi
29350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
29351$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
29352if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
29353  passed=`expr $passed + 1`
29354else
29355  failed=`expr $failed + 1`
29356fi
29357
29358    ac_ext=c
29359ac_cpp='$CPP $CPPFLAGS'
29360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29362ac_compiler_gnu=$ac_cv_c_compiler_gnu
29363
29364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
29365$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29366    if test $passed -gt 0; then
29367        if test $failed -gt 0; then
29368            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29369$as_echo "$as_me: no -- some components failed test" >&6;}
29370            have_fpx='no (failed tests)'
29371        else
29372            FPX_LIBS='-lfpx'
29373
29374$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
29375
29376            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29377$as_echo "$as_me: yes" >&6;}
29378            have_fpx='yes'
29379            PERLMAINCC="$CXX"
29380        fi
29381    else
29382        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29383$as_echo "$as_me: no" >&6;}
29384    fi
29385fi
29386 if test "$have_fpx" = 'yes'; then
29387  FPX_DELEGATE_TRUE=
29388  FPX_DELEGATE_FALSE='#'
29389else
29390  FPX_DELEGATE_TRUE='#'
29391  FPX_DELEGATE_FALSE=
29392fi
29393
29394
29395
29396
29397#
29398# Check for fontconfig delegate library.
29399#
29400
29401# Check whether --with-fontconfig was given.
29402if test "${with_fontconfig+set}" = set; then :
29403  withval=$with_fontconfig; with_fontconfig=$withval
29404else
29405  with_fontconfig='yes'
29406fi
29407
29408
29409if test "$with_fontconfig" != 'yes'; then
29410    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29411fi
29412
29413have_fontconfig='no'
29414FONTCONFIG_CFLAGS=""
29415FONTCONFIG_LIBS=""
29416FONTCONFIG_PKG=""
29417if test "x$with_fontconfig" = "xyes"; then
29418    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29419$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29420
29421pkg_failed=no
29422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29423$as_echo_n "checking for FONTCONFIG... " >&6; }
29424
29425if test -n "$FONTCONFIG_CFLAGS"; then
29426    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29427 elif test -n "$PKG_CONFIG"; then
29428    if test -n "$PKG_CONFIG" && \
29429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29430  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29431  ac_status=$?
29432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29433  test $ac_status = 0; }; then
29434  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29435else
29436  pkg_failed=yes
29437fi
29438 else
29439    pkg_failed=untried
29440fi
29441if test -n "$FONTCONFIG_LIBS"; then
29442    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29443 elif test -n "$PKG_CONFIG"; then
29444    if test -n "$PKG_CONFIG" && \
29445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29446  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29447  ac_status=$?
29448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29449  test $ac_status = 0; }; then
29450  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29451else
29452  pkg_failed=yes
29453fi
29454 else
29455    pkg_failed=untried
29456fi
29457
29458
29459
29460if test $pkg_failed = yes; then
29461
29462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29463        _pkg_short_errors_supported=yes
29464else
29465        _pkg_short_errors_supported=no
29466fi
29467        if test $_pkg_short_errors_supported = yes; then
29468	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29469        else
29470	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29471        fi
29472	# Put the nasty error message in config.log where it belongs
29473	echo "$FONTCONFIG_PKG_ERRORS" >&5
29474
29475	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29476$as_echo "no" >&6; }
29477                have_fontconfig=no
29478elif test $pkg_failed = untried; then
29479	have_fontconfig=no
29480else
29481	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29482	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29484$as_echo "yes" >&6; }
29485	have_fontconfig=yes
29486fi
29487    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29488$as_echo "$as_me: " >&6;}
29489fi
29490
29491if test "$have_fontconfig" = 'yes'; then
29492
29493$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
29494
29495  if test "$with_modules" = 'no'; then
29496    CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
29497  fi
29498fi
29499
29500 if test "$have_fontconfig" = 'yes'; then
29501  FONTCONFIG_DELEGATE_TRUE=
29502  FONTCONFIG_DELEGATE_FALSE='#'
29503else
29504  FONTCONFIG_DELEGATE_TRUE='#'
29505  FONTCONFIG_DELEGATE_FALSE=
29506fi
29507
29508
29509
29510
29511
29512#
29513# Check for freetype delegate library.
29514#
29515
29516# Check whether --with-freetype was given.
29517if test "${with_freetype+set}" = set; then :
29518  withval=$with_freetype; with_freetype=$withval
29519else
29520  with_freetype='yes'
29521fi
29522
29523
29524
29525if test "$with_freetype" != 'yes'; then
29526    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29527fi
29528
29529have_freetype='no'
29530FREETYPE_LIBS=''
29531if test "$with_freetype" != 'no'; then
29532    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29533$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29535$as_echo_n "checking for FreeType 2.0 ... " >&6; }
29536    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29537$as_echo "$as_me: " >&6;}
29538    failed=0
29539    passed=0
29540    PERSIST_LDFLAGS="$LDFLAGS"
29541    PERSIST_CPPFLAGS="$CPPFLAGS"
29542    freetype_config=''
29543    # Allow the user to specify the location of freetype.
29544    if test "$with_freetype" != 'yes'; then
29545      if test -x "${with_freetype}/bin/freetype-config"; then
29546        freetype_config="${with_freetype}/bin/freetype-config"
29547      elif test -x "${with_freetype}"; then
29548        freetype_config=${with_freetype}
29549      fi
29550    fi
29551    if test -z "$freetype_config"; then
29552      # Extract the first word of "freetype-config", so it can be a program name with args.
29553set dummy freetype-config; ac_word=$2
29554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29555$as_echo_n "checking for $ac_word... " >&6; }
29556if ${ac_cv_path_freetype_config+:} false; then :
29557  $as_echo_n "(cached) " >&6
29558else
29559  case $freetype_config in
29560  [\\/]* | ?:[\\/]*)
29561  ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29562  ;;
29563  *)
29564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29565for as_dir in $PATH
29566do
29567  IFS=$as_save_IFS
29568  test -z "$as_dir" && as_dir=.
29569    for ac_exec_ext in '' $ac_executable_extensions; do
29570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29571    ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
29572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29573    break 2
29574  fi
29575done
29576  done
29577IFS=$as_save_IFS
29578
29579  ;;
29580esac
29581fi
29582freetype_config=$ac_cv_path_freetype_config
29583if test -n "$freetype_config"; then
29584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29585$as_echo "$freetype_config" >&6; }
29586else
29587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29588$as_echo "no" >&6; }
29589fi
29590
29591    fi
29592    if test -n "$freetype_config"; then
29593      freetype_prefix=`${freetype_config} --prefix`
29594      freetype_exec_prefix=`${freetype_config} --exec-prefix`
29595      LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29596      CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
29597    fi
29598
29599    if test "$FREETYPE_LIBS" = ''; then
29600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
29601$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29602if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29603  $as_echo_n "(cached) " >&6
29604else
29605  ac_check_lib_save_LIBS=$LIBS
29606LIBS="-lfreetype  $LIBS"
29607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29608/* end confdefs.h.  */
29609
29610/* Override any GCC internal prototype to avoid an error.
29611   Use char because int might match the return type of a GCC
29612   builtin and then its argument prototype would still apply.  */
29613#ifdef __cplusplus
29614extern "C"
29615#endif
29616char FT_Init_FreeType ();
29617int
29618main ()
29619{
29620return FT_Init_FreeType ();
29621  ;
29622  return 0;
29623}
29624_ACEOF
29625if ac_fn_c_try_link "$LINENO"; then :
29626  ac_cv_lib_freetype_FT_Init_FreeType=yes
29627else
29628  ac_cv_lib_freetype_FT_Init_FreeType=no
29629fi
29630rm -f core conftest.err conftest.$ac_objext \
29631    conftest$ac_exeext conftest.$ac_ext
29632LIBS=$ac_check_lib_save_LIBS
29633fi
29634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29635$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29636if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29637  FREETYPE_LIBS='-lfreetype'
29638fi
29639
29640      if test "$FREETYPE_LIBS" != ''; then
29641        passed=`expr $passed + 1`
29642      else
29643        failed=`expr $failed + 1`
29644        LDFLAGS="$PERSIST_LDFLAGS"
29645      fi
29646    fi
29647
29648    ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29649if test "x$ac_cv_header_ft2build_h" = xyes; then :
29650  FT2BUILD_H='#include <ft2build.h>'
29651else
29652  ft2build=''
29653fi
29654
29655
29656    ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29657"
29658if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29659  have_freetype_h='yes'
29660else
29661  have_freetype_h='no'
29662fi
29663
29664
29665    if test "$have_freetype_h" = 'yes'; then
29666      passed=`expr $passed + 1`
29667    else
29668      failed=`expr $failed + 1`
29669      CPPFLAGS="$PERSIST_CPPFLAGS"
29670    fi
29671
29672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29673$as_echo_n "checking if FreeType package is complete... " >&6; }
29674    if test $passed -gt 0; then
29675      if test $failed -gt 0; then
29676        FREETYPE_LIBS=''
29677        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29678$as_echo "$as_me: no -- some components failed test" >&6;}
29679        have_freetype='no (failed tests)'
29680      else
29681        LIBS="$FREETYPE_LIBS $LIBS"
29682
29683$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
29684
29685        if test "$ac_cv_header_ft2build_h" = 'yes'; then
29686
29687$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29688
29689        fi
29690        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29691$as_echo "$as_me: yes" >&6;}
29692        have_freetype='yes'
29693      fi
29694    else
29695      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29696$as_echo "$as_me: no" >&6;}
29697    fi
29698fi
29699 if test "$have_freetype" = 'yes'; then
29700  FREETYPE_DELEGATE_TRUE=
29701  FREETYPE_DELEGATE_FALSE='#'
29702else
29703  FREETYPE_DELEGATE_TRUE='#'
29704  FREETYPE_DELEGATE_FALSE=
29705fi
29706
29707
29708
29709
29710#
29711# Check for Ghostscript library or framework.
29712#
29713# Test for iapi.h & test for gsapi_new_instance in -lgs
29714# or -framework Ghostscript
29715
29716
29717# Check whether --with-gslib was given.
29718if test "${with_gslib+set}" = set; then :
29719  withval=$with_gslib; with_gslib=$withval
29720else
29721  with_gslib='no'
29722fi
29723
29724
29725gslib_framework='no'
29726if test "$with_gslib" != 'yes'; then
29727    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29728fi
29729
29730have_gslib='no'
29731GS_LIBS=''
29732if test "$with_gslib" != 'no'; then
29733    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29734$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
29736$as_echo_n "checking for Ghostscript... " >&6; }
29737    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29738$as_echo "$as_me: " >&6;}
29739    framework=0
29740    failed=0
29741    passed=0
29742    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
29743if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
29744  passed=`expr $passed + 1`
29745else
29746  failed=`expr $failed + 1`
29747fi
29748
29749
29750    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
29751if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
29752  passed=`expr $passed + 1`
29753else
29754  failed=`expr $failed + 1`
29755fi
29756
29757
29758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29759$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
29760if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
29761  $as_echo_n "(cached) " >&6
29762else
29763  ac_check_framework_save_LIBS=$LIBS
29764LIBS="-framework Ghostscript  $LIBS"
29765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29766/* end confdefs.h.  */
29767
29768/* Override any GCC internal prototype to avoid an error.
29769   Use char because int might match the return type of a GCC
29770   builtin and then its argument prototype would still apply.  */
29771#ifdef __cplusplus
29772extern "C"
29773#endif
29774char gsapi_new_instance ();
29775int
29776main ()
29777{
29778return gsapi_new_instance ();
29779  ;
29780  return 0;
29781}
29782_ACEOF
29783if ac_fn_c_try_link "$LINENO"; then :
29784  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29785else
29786  ac_cv_framework_Ghostscript_gsapi_new_instance=no
29787fi
29788rm -f core conftest.err conftest.$ac_objext \
29789    conftest$ac_exeext conftest.$ac_ext
29790LIBS=$ac_check_framework_save_LIBS
29791fi
29792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29793$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29794if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29795  framework=`expr $framework + 1`
29796else
29797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29798$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29799if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29800  $as_echo_n "(cached) " >&6
29801else
29802  ac_check_lib_save_LIBS=$LIBS
29803LIBS="-lgs  $LIBS"
29804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29805/* end confdefs.h.  */
29806
29807/* Override any GCC internal prototype to avoid an error.
29808   Use char because int might match the return type of a GCC
29809   builtin and then its argument prototype would still apply.  */
29810#ifdef __cplusplus
29811extern "C"
29812#endif
29813char gsapi_new_instance ();
29814int
29815main ()
29816{
29817return gsapi_new_instance ();
29818  ;
29819  return 0;
29820}
29821_ACEOF
29822if ac_fn_c_try_link "$LINENO"; then :
29823  ac_cv_lib_gs_gsapi_new_instance=yes
29824else
29825  ac_cv_lib_gs_gsapi_new_instance=no
29826fi
29827rm -f core conftest.err conftest.$ac_objext \
29828    conftest$ac_exeext conftest.$ac_ext
29829LIBS=$ac_check_lib_save_LIBS
29830fi
29831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29832$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29833if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29834  passed=`expr $passed + 1`
29835else
29836  failed=`expr $failed + 1`
29837fi
29838
29839fi
29840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29841$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29842    if test $passed -gt 0; then
29843        if test $failed -gt 0; then
29844            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29845$as_echo "$as_me: no -- some components failed test" >&6;}
29846            have_gslib='no (failed tests)'
29847        else
29848            if test $framework -gt 0; then
29849                GS_LIBS='-framework Ghostscript'
29850                gslib_framework='yes'
29851                { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29852$as_echo "$as_me: yes, using framework." >&6;}
29853            else
29854                { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29855$as_echo "$as_me: yes, using library." >&6;}
29856                GS_LIBS='-lgs'
29857            fi
29858            LIBS="$GS_LIBS $LIBS"
29859
29860$as_echo "#define GS_DELEGATE 1" >>confdefs.h
29861
29862            have_gslib='yes'
29863        fi
29864    else
29865        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29866$as_echo "$as_me: no" >&6;}
29867    fi
29868fi
29869 if test "$have_gslib" = 'yes'; then
29870  GS_DELEGATE_TRUE=
29871  GS_DELEGATE_FALSE='#'
29872else
29873  GS_DELEGATE_TRUE='#'
29874  GS_DELEGATE_FALSE=
29875fi
29876
29877
29878
29879# Set default font search path
29880
29881# Check whether --with-fontpath was given.
29882if test "${with_fontpath+set}" = set; then :
29883  withval=$with_fontpath; with_fontpath=$withval
29884else
29885  with_fontpath=''
29886fi
29887
29888
29889if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29890    with_fontpath=''
29891else
29892
29893cat >>confdefs.h <<_ACEOF
29894#define MAGICK_FONT_PATH "$with_fontpath"
29895_ACEOF
29896
29897fi
29898if test "$with_fontpath=" != ''; then
29899    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29900fi
29901
29902# Set Ghostscript font directory
29903
29904# Check whether --with-gs-font-dir was given.
29905if test "${with_gs_font_dir+set}" = set; then :
29906  withval=$with_gs_font_dir; with_gs_font_dir=$withval
29907else
29908  with_gs_font_dir='default'
29909fi
29910
29911
29912if test "$with_gs_font_dir" != 'default'; then
29913    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29914fi
29915
29916
29917#
29918# Check for GVC delegate library.
29919#
29920
29921# Check whether --with-gvc was given.
29922if test "${with_gvc+set}" = set; then :
29923  withval=$with_gvc; with_gvc=$withval
29924else
29925  with_gvc='no'
29926fi
29927
29928
29929if test "$with_gvc" != 'yes'; then
29930    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29931fi
29932
29933GVC_PKG=""
29934if test "x$with_gvc" = "xyes"; then
29935    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29936$as_echo "$as_me: -------------------------------------------------------------" >&6;}
29937
29938pkg_failed=no
29939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29940$as_echo_n "checking for GVC... " >&6; }
29941
29942if test -n "$GVC_CFLAGS"; then
29943    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29944 elif test -n "$PKG_CONFIG"; then
29945    if test -n "$PKG_CONFIG" && \
29946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29947  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29948  ac_status=$?
29949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29950  test $ac_status = 0; }; then
29951  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29952else
29953  pkg_failed=yes
29954fi
29955 else
29956    pkg_failed=untried
29957fi
29958if test -n "$GVC_LIBS"; then
29959    pkg_cv_GVC_LIBS="$GVC_LIBS"
29960 elif test -n "$PKG_CONFIG"; then
29961    if test -n "$PKG_CONFIG" && \
29962    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29963  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29964  ac_status=$?
29965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29966  test $ac_status = 0; }; then
29967  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29968else
29969  pkg_failed=yes
29970fi
29971 else
29972    pkg_failed=untried
29973fi
29974
29975
29976
29977if test $pkg_failed = yes; then
29978
29979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29980        _pkg_short_errors_supported=yes
29981else
29982        _pkg_short_errors_supported=no
29983fi
29984        if test $_pkg_short_errors_supported = yes; then
29985	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29986        else
29987	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29988        fi
29989	# Put the nasty error message in config.log where it belongs
29990	echo "$GVC_PKG_ERRORS" >&5
29991
29992	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29993$as_echo "no" >&6; }
29994                have_gvc=no
29995elif test $pkg_failed = untried; then
29996	have_gvc=no
29997else
29998	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29999	GVC_LIBS=$pkg_cv_GVC_LIBS
30000        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30001$as_echo "yes" >&6; }
30002	have_gvc=yes
30003fi
30004    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30005$as_echo "$as_me: " >&6;}
30006fi
30007
30008if test "$have_gvc" = 'yes'; then
30009
30010$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
30011
30012    if test "$with_modules" = 'no'; then
30013        CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30014    fi
30015fi
30016
30017 if test "$have_gvc" = 'yes'; then
30018  GVC_DELEGATE_TRUE=
30019  GVC_DELEGATE_FALSE='#'
30020else
30021  GVC_DELEGATE_TRUE='#'
30022  GVC_DELEGATE_FALSE=
30023fi
30024
30025
30026
30027
30028
30029#
30030# Check for JBIG delegate library.
30031#
30032
30033
30034# Check whether --with-jbig was given.
30035if test "${with_jbig+set}" = set; then :
30036  withval=$with_jbig; with_jbig=$withval
30037else
30038  with_jbig='yes'
30039fi
30040
30041
30042have_jbig='no'
30043JBIG_LIBS=''
30044if test "$with_jbig" != 'no'; then
30045    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30046$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
30048$as_echo_n "checking for JBIG... " >&6; }
30049    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30050$as_echo "$as_me: " >&6;}
30051    failed=0
30052    passed=0
30053    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
30054if test "x$ac_cv_header_jbig_h" = xyes; then :
30055  passed=`expr $passed + 1`
30056else
30057  failed=`expr $failed + 1`
30058fi
30059
30060
30061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
30062$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
30063if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
30064  $as_echo_n "(cached) " >&6
30065else
30066  ac_check_lib_save_LIBS=$LIBS
30067LIBS="-ljbig  $LIBS"
30068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30069/* end confdefs.h.  */
30070
30071/* Override any GCC internal prototype to avoid an error.
30072   Use char because int might match the return type of a GCC
30073   builtin and then its argument prototype would still apply.  */
30074#ifdef __cplusplus
30075extern "C"
30076#endif
30077char jbg_dec_init ();
30078int
30079main ()
30080{
30081return jbg_dec_init ();
30082  ;
30083  return 0;
30084}
30085_ACEOF
30086if ac_fn_c_try_link "$LINENO"; then :
30087  ac_cv_lib_jbig_jbg_dec_init=yes
30088else
30089  ac_cv_lib_jbig_jbg_dec_init=no
30090fi
30091rm -f core conftest.err conftest.$ac_objext \
30092    conftest$ac_exeext conftest.$ac_ext
30093LIBS=$ac_check_lib_save_LIBS
30094fi
30095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
30096$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
30097if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
30098  passed=`expr $passed + 1`
30099else
30100  failed=`expr $failed + 1`
30101fi
30102
30103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
30104$as_echo_n "checking if JBIG package is complete... " >&6; }
30105    if test $passed -gt 0; then
30106        if test $failed -gt 0; then
30107            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30108$as_echo "$as_me: no -- some components failed test" >&6;}
30109            have_jbig='no (failed tests)'
30110        else
30111            JBIG_LIBS='-ljbig'
30112            LIBS="$JBIG_LIBS $LIBS"
30113
30114$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
30115
30116            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30117$as_echo "$as_me: yes" >&6;}
30118            have_jbig='yes'
30119        fi
30120    else
30121        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30122$as_echo "$as_me: no" >&6;}
30123    fi
30124fi
30125 if test "$have_jbig" = 'yes'; then
30126  JBIG_DELEGATE_TRUE=
30127  JBIG_DELEGATE_FALSE='#'
30128else
30129  JBIG_DELEGATE_TRUE='#'
30130  JBIG_DELEGATE_FALSE=
30131fi
30132
30133
30134
30135
30136#
30137# Check for JPEG delegate library.
30138#
30139
30140# Check whether --with-jpeg was given.
30141if test "${with_jpeg+set}" = set; then :
30142  withval=$with_jpeg; with_jpeg=$withval
30143else
30144  with_jpeg='yes'
30145fi
30146
30147
30148if test "$with_jpeg" != 'yes'; then
30149    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30150fi
30151
30152have_jpeg='no'
30153JPEG_LIBS=''
30154if test "$with_jpeg" != 'no'; then
30155    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30156$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
30158$as_echo_n "checking for JPEG... " >&6; }
30159    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30160$as_echo "$as_me: " >&6;}
30161    failed=0
30162    passed=0
30163    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
30164if test "x$ac_cv_header_jconfig_h" = xyes; then :
30165  passed=`expr $passed + 1`
30166else
30167  failed=`expr $failed + 1`
30168fi
30169
30170
30171    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
30172if test "x$ac_cv_header_jerror_h" = xyes; then :
30173  passed=`expr $passed + 1`
30174else
30175  failed=`expr $failed + 1`
30176fi
30177
30178
30179    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
30180if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
30181  passed=`expr $passed + 1`
30182else
30183  failed=`expr $failed + 1`
30184fi
30185
30186
30187    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
30188if test "x$ac_cv_header_jpeglib_h" = xyes; then :
30189  passed=`expr $passed + 1`
30190else
30191  failed=`expr $failed + 1`
30192fi
30193
30194
30195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
30196$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
30197if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
30198  $as_echo_n "(cached) " >&6
30199else
30200  ac_check_lib_save_LIBS=$LIBS
30201LIBS="-ljpeg  $LIBS"
30202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30203/* end confdefs.h.  */
30204
30205/* Override any GCC internal prototype to avoid an error.
30206   Use char because int might match the return type of a GCC
30207   builtin and then its argument prototype would still apply.  */
30208#ifdef __cplusplus
30209extern "C"
30210#endif
30211char jpeg_read_header ();
30212int
30213main ()
30214{
30215return jpeg_read_header ();
30216  ;
30217  return 0;
30218}
30219_ACEOF
30220if ac_fn_c_try_link "$LINENO"; then :
30221  ac_cv_lib_jpeg_jpeg_read_header=yes
30222else
30223  ac_cv_lib_jpeg_jpeg_read_header=no
30224fi
30225rm -f core conftest.err conftest.$ac_objext \
30226    conftest$ac_exeext conftest.$ac_ext
30227LIBS=$ac_check_lib_save_LIBS
30228fi
30229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
30230$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
30231if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
30232  passed=`expr $passed + 1`
30233else
30234  failed=`expr $failed + 1`
30235fi
30236
30237
30238# Test for compatible JPEG library
30239if test "$ac_cv_jpeg_version_ok" != 'yes'; then
30240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
30241$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
30242if ${ac_cv_jpeg_version_ok+:} false; then :
30243  $as_echo_n "(cached) " >&6
30244else
30245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30246/* end confdefs.h.  */
30247#include <stdio.h>
30248#include <stdlib.h>
30249#include <jpeglib.h>
30250
30251int
30252main ()
30253{
30254
30255#if JPEG_LIB_VERSION < 62
30256#error IJG JPEG library must be version 6b or newer!
30257#endif
30258return 0;
30259
30260  ;
30261  return 0;
30262}
30263_ACEOF
30264if ac_fn_c_try_compile "$LINENO"; then :
30265  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30266else
30267  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
30268fi
30269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30270fi
30271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
30272$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30273fi
30274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
30275$as_echo_n "checking if JPEG package is complete... " >&6; }
30276    if test $passed -gt 0; then
30277        if test $failed -gt 0; then
30278            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30279$as_echo "$as_me: no -- some components failed test" >&6;}
30280            have_jpeg='no (failed tests)'
30281        else
30282            JPEG_LIBS='-ljpeg'
30283            LIBS="$JPEG_LIBS $LIBS"
30284
30285$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
30286
30287            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30288$as_echo "$as_me: yes" >&6;}
30289            have_jpeg='yes'
30290        fi
30291    else
30292        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30293$as_echo "$as_me: no" >&6;}
30294    fi
30295fi
30296 if test "$have_jpeg" = 'yes'; then
30297  JPEG_DELEGATE_TRUE=
30298  JPEG_DELEGATE_FALSE='#'
30299else
30300  JPEG_DELEGATE_TRUE='#'
30301  JPEG_DELEGATE_FALSE=
30302fi
30303
30304
30305
30306
30307#
30308# Check for JPEG Version 2 delegate library.
30309#
30310
30311# Check whether --with-jp2 was given.
30312if test "${with_jp2+set}" = set; then :
30313  withval=$with_jp2; with_jp2=$withval
30314else
30315  with_jp2='yes'
30316fi
30317
30318
30319if test "$with_jp2" != 'yes'; then
30320    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30321fi
30322
30323have_jp2='no'
30324JP2_LIBS=''
30325if test "$with_jp2" != 'no'; then
30326    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30327$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
30329$as_echo_n "checking for JPEG Version 2... " >&6; }
30330    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30331$as_echo "$as_me: " >&6;}
30332    failed=0
30333    passed=0
30334    ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
30335if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
30336  passed=`expr $passed + 1`
30337else
30338  failed=`expr $failed + 1`
30339fi
30340
30341
30342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
30343$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
30344if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
30345  $as_echo_n "(cached) " >&6
30346else
30347  ac_check_lib_save_LIBS=$LIBS
30348LIBS="-ljasper  $LIBS"
30349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30350/* end confdefs.h.  */
30351
30352/* Override any GCC internal prototype to avoid an error.
30353   Use char because int might match the return type of a GCC
30354   builtin and then its argument prototype would still apply.  */
30355#ifdef __cplusplus
30356extern "C"
30357#endif
30358char jas_stream_fopen ();
30359int
30360main ()
30361{
30362return jas_stream_fopen ();
30363  ;
30364  return 0;
30365}
30366_ACEOF
30367if ac_fn_c_try_link "$LINENO"; then :
30368  ac_cv_lib_jasper_jas_stream_fopen=yes
30369else
30370  ac_cv_lib_jasper_jas_stream_fopen=no
30371fi
30372rm -f core conftest.err conftest.$ac_objext \
30373    conftest$ac_exeext conftest.$ac_ext
30374LIBS=$ac_check_lib_save_LIBS
30375fi
30376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
30377$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
30378if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
30379  passed=`expr $passed + 1`
30380else
30381  failed=`expr $failed + 1`
30382fi
30383
30384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
30385$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30386    if test $passed -gt 0; then
30387        if test $failed -gt 0; then
30388            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30389$as_echo "$as_me: no -- some components failed test" >&6;}
30390            have_jp2='no (failed tests)'
30391        else
30392            JP2_LIBS='-ljasper'
30393            LIBS="$JP2_LIBS $LIBS"
30394
30395$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
30396
30397            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30398$as_echo "$as_me: yes" >&6;}
30399            have_jp2='yes'
30400        fi
30401    else
30402        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30403$as_echo "$as_me: no" >&6;}
30404    fi
30405fi
30406 if test "$have_jp2" = 'yes'; then
30407  JP2_DELEGATE_TRUE=
30408  JP2_DELEGATE_FALSE='#'
30409else
30410  JP2_DELEGATE_TRUE='#'
30411  JP2_DELEGATE_FALSE=
30412fi
30413
30414
30415
30416
30417#
30418# Check for LCMS delegate library.
30419#
30420# Disable LCMS.
30421
30422# Check whether --with-lcms was given.
30423if test "${with_lcms+set}" = set; then :
30424  withval=$with_lcms; with_lcms=$withval
30425else
30426  with_lcms='yes'
30427fi
30428
30429if test "$with_lcms" != 'yes' ; then
30430    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30431fi
30432
30433# Disable LCMS2.
30434
30435# Check whether --with-lcms2 was given.
30436if test "${with_lcms2+set}" = set; then :
30437  withval=$with_lcms2; with_lcms2=$withval
30438else
30439  with_lcms2='yes'
30440fi
30441
30442if test "$with_lcms2" != 'yes' ; then
30443    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30444fi
30445
30446have_lcms2='no'
30447LCMS_LIBS=''
30448if test "$with_lcms2" != 'no'; then
30449    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30450$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30452$as_echo_n "checking for LCMS v2... " >&6; }
30453    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30454$as_echo "$as_me: " >&6;}
30455    failed=0
30456    passed=0
30457    have_lcms_header='no'
30458
30459    # Check for <lcms2.h>
30460    ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
30461if test "x$ac_cv_header_lcms2_h" = xyes; then :
30462  have_lcms_header='yes'
30463fi
30464
30465
30466    if test "$have_lcms_header" = 'yes'; then
30467
30468$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30469
30470       passed=`expr $passed + 1`
30471    fi
30472
30473    # Check for <lcms2/lcms2.h)
30474    if test "$have_lcms_header" != 'yes'; then
30475      ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30476if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30477  have_lcms_header='yes'
30478fi
30479
30480
30481      if test "$have_lcms_header" = 'yes'; then
30482        passed=`expr $passed + 1`
30483
30484$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30485
30486      fi
30487    fi
30488
30489    # Failed to find lcms header?
30490    if test "$have_lcms_header" != 'yes'; then
30491      failed=`expr $failed + 1`
30492    fi
30493
30494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30495$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
30496if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
30497  $as_echo_n "(cached) " >&6
30498else
30499  ac_check_lib_save_LIBS=$LIBS
30500LIBS="-llcms2  $LIBS"
30501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30502/* end confdefs.h.  */
30503
30504/* Override any GCC internal prototype to avoid an error.
30505   Use char because int might match the return type of a GCC
30506   builtin and then its argument prototype would still apply.  */
30507#ifdef __cplusplus
30508extern "C"
30509#endif
30510char cmsSetLogErrorHandler ();
30511int
30512main ()
30513{
30514return cmsSetLogErrorHandler ();
30515  ;
30516  return 0;
30517}
30518_ACEOF
30519if ac_fn_c_try_link "$LINENO"; then :
30520  ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
30521else
30522  ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
30523fi
30524rm -f core conftest.err conftest.$ac_objext \
30525    conftest$ac_exeext conftest.$ac_ext
30526LIBS=$ac_check_lib_save_LIBS
30527fi
30528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30529$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
30530if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
30531  passed=`expr $passed + 1`
30532else
30533  failed=`expr $failed + 1`
30534fi
30535
30536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30537$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
30538    if test $passed -gt 0; then
30539      if test $failed -gt 0; then
30540        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30541$as_echo "$as_me: no -- some components failed test" >&6;}
30542        have_lcms2='no (failed tests)'
30543      else
30544        LCMS_LIBS='-llcms2'
30545        LIBS="$LCMS_LIBS $LIBS"
30546        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30547$as_echo "$as_me: yes" >&6;}
30548        have_lcms2='yes'
30549      fi
30550    else
30551      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30552$as_echo "$as_me: no" >&6;}
30553    fi
30554fi
30555
30556#
30557# Check for LCMS v1 (1.11 or later)
30558#
30559if test $have_lcms2 = 'yes'; then
30560  with_lcms='no'
30561fi
30562
30563have_lcms='no'
30564if test "$with_lcms" != 'no'; then
30565    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30566$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30568$as_echo_n "checking for LCMS v1.1X... " >&6; }
30569    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30570$as_echo "$as_me: " >&6;}
30571    failed=0
30572    passed=0
30573    have_lcms_header='no'
30574
30575    # Check for <lcms.h>
30576    if test "$have_lcms_header" != 'yes'; then
30577      ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
30578if test "x$ac_cv_header_lcms_h" = xyes; then :
30579  have_lcms_header='yes'
30580fi
30581
30582
30583      if test "$have_lcms_header" = 'yes'; then
30584        passed=`expr $passed + 1`
30585
30586$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
30587
30588      fi
30589    fi
30590
30591    # Check for <lcms/lcms.h>
30592    if test "$have_lcms_header" != 'yes'; then
30593      ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30594if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30595  have_lcms_header='yes'
30596fi
30597
30598
30599      if test "$have_lcms_header" = 'yes'; then
30600        passed=`expr $passed + 1`
30601
30602$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30603
30604      fi
30605    fi
30606
30607    # Failed to find lcms header?
30608    if test "$have_lcms_header" != 'yes'; then
30609      failed=`expr $failed + 1`
30610    fi
30611
30612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30613$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
30614if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
30615  $as_echo_n "(cached) " >&6
30616else
30617  ac_check_lib_save_LIBS=$LIBS
30618LIBS="-llcms  $LIBS"
30619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620/* end confdefs.h.  */
30621
30622/* Override any GCC internal prototype to avoid an error.
30623   Use char because int might match the return type of a GCC
30624   builtin and then its argument prototype would still apply.  */
30625#ifdef __cplusplus
30626extern "C"
30627#endif
30628char cmsSetErrorHandler ();
30629int
30630main ()
30631{
30632return cmsSetErrorHandler ();
30633  ;
30634  return 0;
30635}
30636_ACEOF
30637if ac_fn_c_try_link "$LINENO"; then :
30638  ac_cv_lib_lcms_cmsSetErrorHandler=yes
30639else
30640  ac_cv_lib_lcms_cmsSetErrorHandler=no
30641fi
30642rm -f core conftest.err conftest.$ac_objext \
30643    conftest$ac_exeext conftest.$ac_ext
30644LIBS=$ac_check_lib_save_LIBS
30645fi
30646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30647$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
30648if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
30649  passed=`expr $passed + 1`
30650else
30651  failed=`expr $failed + 1`
30652fi
30653
30654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
30655$as_echo_n "checking if LCMS package is complete... " >&6; }
30656    if test $passed -gt 0; then
30657      if test $failed -gt 0; then
30658        { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30659$as_echo "$as_me: no -- some components failed test" >&6;}
30660        have_lcms='no (failed tests)'
30661      else
30662        LCMS_LIBS='-llcms'
30663        LIBS="$LCMS_LIBS $LIBS"
30664        { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30665$as_echo "$as_me: yes" >&6;}
30666        have_lcms='yes'
30667      fi
30668    else
30669      { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30670$as_echo "$as_me: no" >&6;}
30671    fi
30672fi
30673
30674 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30675  LCMS_DELEGATE_TRUE=
30676  LCMS_DELEGATE_FALSE='#'
30677else
30678  LCMS_DELEGATE_TRUE='#'
30679  LCMS_DELEGATE_FALSE=
30680fi
30681
30682if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30683
30684$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30685
30686fi
30687
30688
30689
30690
30691#
30692# Check for the LQR (Liquid Rescale) delegate library.
30693#
30694
30695# Check whether --with-lqr was given.
30696if test "${with_lqr+set}" = set; then :
30697  withval=$with_lqr; with_lqr=$withval
30698else
30699  with_lqr='yes'
30700fi
30701
30702
30703if test "$with_lqr" != 'yes'; then
30704    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30705fi
30706
30707have_lqr='no'
30708LQR_CFLAGS=""
30709LQR_LIBS=""
30710LQR_PKG=""
30711if test "x$with_lqr" = "xyes"; then
30712    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30713$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30714
30715pkg_failed=no
30716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30717$as_echo_n "checking for LQR... " >&6; }
30718
30719if test -n "$LQR_CFLAGS"; then
30720    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30721 elif test -n "$PKG_CONFIG"; then
30722    if test -n "$PKG_CONFIG" && \
30723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30724  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30725  ac_status=$?
30726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30727  test $ac_status = 0; }; then
30728  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30729else
30730  pkg_failed=yes
30731fi
30732 else
30733    pkg_failed=untried
30734fi
30735if test -n "$LQR_LIBS"; then
30736    pkg_cv_LQR_LIBS="$LQR_LIBS"
30737 elif test -n "$PKG_CONFIG"; then
30738    if test -n "$PKG_CONFIG" && \
30739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30740  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30741  ac_status=$?
30742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30743  test $ac_status = 0; }; then
30744  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30745else
30746  pkg_failed=yes
30747fi
30748 else
30749    pkg_failed=untried
30750fi
30751
30752
30753
30754if test $pkg_failed = yes; then
30755
30756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30757        _pkg_short_errors_supported=yes
30758else
30759        _pkg_short_errors_supported=no
30760fi
30761        if test $_pkg_short_errors_supported = yes; then
30762	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30763        else
30764	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30765        fi
30766	# Put the nasty error message in config.log where it belongs
30767	echo "$LQR_PKG_ERRORS" >&5
30768
30769	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30770$as_echo "no" >&6; }
30771                have_lqr=no
30772elif test $pkg_failed = untried; then
30773	have_lqr=no
30774else
30775	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30776	LQR_LIBS=$pkg_cv_LQR_LIBS
30777        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30778$as_echo "yes" >&6; }
30779	have_lqr=yes
30780fi
30781    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30782$as_echo "$as_me: " >&6;}
30783fi
30784
30785if test "$have_lqr" = 'yes'; then
30786
30787$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30788
30789    CFLAGS="$LQR_CFLAGS $CFLAGS"
30790fi
30791
30792 if test "$have_lqr" = 'yes'; then
30793  LQR_DELEGATE_TRUE=
30794  LQR_DELEGATE_FALSE='#'
30795else
30796  LQR_DELEGATE_TRUE='#'
30797  LQR_DELEGATE_FALSE=
30798fi
30799
30800
30801
30802
30803
30804# Disable LZMA (lzma library)
30805
30806# Check whether --with-lzma was given.
30807if test "${with_lzma+set}" = set; then :
30808  withval=$with_lzma; with_lzma=$withval
30809else
30810  with_lzma='yes'
30811fi
30812
30813if test "$with_lzma" != 'yes' ; then
30814    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30815fi
30816
30817LZMA_PKG=""
30818if test "x$with_lzma" = "xyes"; then
30819    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30820$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30821
30822pkg_failed=no
30823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30824$as_echo_n "checking for LZMA... " >&6; }
30825
30826if test -n "$LZMA_CFLAGS"; then
30827    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30828 elif test -n "$PKG_CONFIG"; then
30829    if test -n "$PKG_CONFIG" && \
30830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30831  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30832  ac_status=$?
30833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30834  test $ac_status = 0; }; then
30835  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30836else
30837  pkg_failed=yes
30838fi
30839 else
30840    pkg_failed=untried
30841fi
30842if test -n "$LZMA_LIBS"; then
30843    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30844 elif test -n "$PKG_CONFIG"; then
30845    if test -n "$PKG_CONFIG" && \
30846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30847  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30848  ac_status=$?
30849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30850  test $ac_status = 0; }; then
30851  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30852else
30853  pkg_failed=yes
30854fi
30855 else
30856    pkg_failed=untried
30857fi
30858
30859
30860
30861if test $pkg_failed = yes; then
30862
30863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30864        _pkg_short_errors_supported=yes
30865else
30866        _pkg_short_errors_supported=no
30867fi
30868        if test $_pkg_short_errors_supported = yes; then
30869	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30870        else
30871	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30872        fi
30873	# Put the nasty error message in config.log where it belongs
30874	echo "$LZMA_PKG_ERRORS" >&5
30875
30876	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30877$as_echo "no" >&6; }
30878                have_lzma=no
30879elif test $pkg_failed = untried; then
30880	have_lzma=no
30881else
30882	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30883	LZMA_LIBS=$pkg_cv_LZMA_LIBS
30884        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30885$as_echo "yes" >&6; }
30886	have_lzma=yes
30887fi
30888    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30889$as_echo "$as_me: " >&6;}
30890fi
30891
30892if test "$have_lzma" = 'yes'; then
30893
30894$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30895
30896    if test "$with_modules" = 'no'; then
30897        CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
30898    fi
30899fi
30900
30901 if test "$have_lzma" = 'yes'; then
30902  LZMA_DELEGATE_TRUE=
30903  LZMA_DELEGATE_FALSE='#'
30904else
30905  LZMA_DELEGATE_TRUE='#'
30906  LZMA_DELEGATE_FALSE=
30907fi
30908
30909
30910
30911
30912
30913#
30914# Check for the OpenEXR delegate library.
30915#
30916
30917# Check whether --with-openexr was given.
30918if test "${with_openexr+set}" = set; then :
30919  withval=$with_openexr; with_openexr=$withval
30920else
30921  with_openexr='yes'
30922fi
30923
30924
30925if test "$with_openexr" != 'yes'; then
30926    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30927fi
30928
30929have_openexr='no'
30930OPENEXR_CFLAGS=""
30931OPENEXR_LIBS=""
30932OPENEXR_PKG=""
30933if test "x$with_openexr" = "xyes"; then
30934    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30935$as_echo "$as_me: -------------------------------------------------------------" >&6;}
30936
30937pkg_failed=no
30938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30939$as_echo_n "checking for OPENEXR... " >&6; }
30940
30941if test -n "$OPENEXR_CFLAGS"; then
30942    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30943 elif test -n "$PKG_CONFIG"; then
30944    if test -n "$PKG_CONFIG" && \
30945    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30946  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30947  ac_status=$?
30948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30949  test $ac_status = 0; }; then
30950  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30951else
30952  pkg_failed=yes
30953fi
30954 else
30955    pkg_failed=untried
30956fi
30957if test -n "$OPENEXR_LIBS"; then
30958    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30959 elif test -n "$PKG_CONFIG"; then
30960    if test -n "$PKG_CONFIG" && \
30961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30962  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30963  ac_status=$?
30964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30965  test $ac_status = 0; }; then
30966  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30967else
30968  pkg_failed=yes
30969fi
30970 else
30971    pkg_failed=untried
30972fi
30973
30974
30975
30976if test $pkg_failed = yes; then
30977
30978if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30979        _pkg_short_errors_supported=yes
30980else
30981        _pkg_short_errors_supported=no
30982fi
30983        if test $_pkg_short_errors_supported = yes; then
30984	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30985        else
30986	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30987        fi
30988	# Put the nasty error message in config.log where it belongs
30989	echo "$OPENEXR_PKG_ERRORS" >&5
30990
30991	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30992$as_echo "no" >&6; }
30993                have_openexr=no
30994elif test $pkg_failed = untried; then
30995	have_openexr=no
30996else
30997	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30998	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30999        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31000$as_echo "yes" >&6; }
31001	have_openexr=yes
31002fi
31003    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31004$as_echo "$as_me: " >&6;}
31005fi
31006
31007if test "$have_openexr" = 'yes'; then
31008
31009$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
31010
31011    if test "$with_modules" = 'no'; then
31012        CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31013    fi
31014fi
31015
31016 if test "$have_openexr" = 'yes'; then
31017  OPENEXR_DELEGATE_TRUE=
31018  OPENEXR_DELEGATE_FALSE='#'
31019else
31020  OPENEXR_DELEGATE_TRUE='#'
31021  OPENEXR_DELEGATE_FALSE=
31022fi
31023
31024
31025
31026
31027
31028#
31029# Check for PANGO delegate library.
31030#
31031
31032# Check whether --with-pango was given.
31033if test "${with_pango+set}" = set; then :
31034  withval=$with_pango; with_pango=$withval
31035else
31036  with_pango='yes'
31037fi
31038
31039
31040if test "$with_pango" != 'yes'; then
31041    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31042fi
31043
31044have_pango='no'
31045have_pangocairo='no'
31046PANGO_CFLAGS=""
31047PANGO_LIBS=""
31048PANGO_PKG=""
31049if test "x$with_pango" = "xyes"; then
31050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31051$as_echo "-------------------------------------------------------------" >&6; }
31052
31053pkg_failed=no
31054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31055$as_echo_n "checking for PANGO... " >&6; }
31056
31057if test -n "$PANGO_CFLAGS"; then
31058    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31059 elif test -n "$PKG_CONFIG"; then
31060    if test -n "$PKG_CONFIG" && \
31061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31062  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31063  ac_status=$?
31064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31065  test $ac_status = 0; }; then
31066  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
31067else
31068  pkg_failed=yes
31069fi
31070 else
31071    pkg_failed=untried
31072fi
31073if test -n "$PANGO_LIBS"; then
31074    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31075 elif test -n "$PKG_CONFIG"; then
31076    if test -n "$PKG_CONFIG" && \
31077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31078  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31079  ac_status=$?
31080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31081  test $ac_status = 0; }; then
31082  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
31083else
31084  pkg_failed=yes
31085fi
31086 else
31087    pkg_failed=untried
31088fi
31089
31090
31091
31092if test $pkg_failed = yes; then
31093
31094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31095        _pkg_short_errors_supported=yes
31096else
31097        _pkg_short_errors_supported=no
31098fi
31099        if test $_pkg_short_errors_supported = yes; then
31100	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
31101        else
31102	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
31103        fi
31104	# Put the nasty error message in config.log where it belongs
31105	echo "$PANGO_PKG_ERRORS" >&5
31106
31107	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31108$as_echo "no" >&6; }
31109                have_pangocairo=no
31110elif test $pkg_failed = untried; then
31111	have_pangocairo=no
31112else
31113	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31114	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31115        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31116$as_echo "yes" >&6; }
31117	have_pangocairo=yes
31118fi
31119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31120$as_echo "" >&6; }
31121
31122pkg_failed=no
31123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31124$as_echo_n "checking for PANGO... " >&6; }
31125
31126if test -n "$PANGO_CFLAGS"; then
31127    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31128 elif test -n "$PKG_CONFIG"; then
31129    if test -n "$PKG_CONFIG" && \
31130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31131  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31132  ac_status=$?
31133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31134  test $ac_status = 0; }; then
31135  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
31136else
31137  pkg_failed=yes
31138fi
31139 else
31140    pkg_failed=untried
31141fi
31142if test -n "$PANGO_LIBS"; then
31143    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31144 elif test -n "$PKG_CONFIG"; then
31145    if test -n "$PKG_CONFIG" && \
31146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31147  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31148  ac_status=$?
31149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31150  test $ac_status = 0; }; then
31151  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
31152else
31153  pkg_failed=yes
31154fi
31155 else
31156    pkg_failed=untried
31157fi
31158
31159
31160
31161if test $pkg_failed = yes; then
31162
31163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31164        _pkg_short_errors_supported=yes
31165else
31166        _pkg_short_errors_supported=no
31167fi
31168        if test $_pkg_short_errors_supported = yes; then
31169	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
31170        else
31171	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
31172        fi
31173	# Put the nasty error message in config.log where it belongs
31174	echo "$PANGO_PKG_ERRORS" >&5
31175
31176	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31177$as_echo "no" >&6; }
31178                have_pango=no
31179elif test $pkg_failed = untried; then
31180	have_pango=no
31181else
31182	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31183	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31185$as_echo "yes" >&6; }
31186	have_pango=yes
31187fi
31188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31189$as_echo "" >&6; }
31190fi
31191
31192if test "$have_pango" = 'yes'; then
31193
31194$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31195
31196    if test "$with_modules" = 'no'; then
31197        CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31198    fi
31199fi
31200
31201if test "$have_pangocairo" = 'yes'; then
31202
31203$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
31204
31205    if test "$with_modules" = 'no'; then
31206        CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
31207    fi
31208fi
31209
31210 if test "$have_pango" = 'yes'; then
31211  PANGO_DELEGATE_TRUE=
31212  PANGO_DELEGATE_FALSE='#'
31213else
31214  PANGO_DELEGATE_TRUE='#'
31215  PANGO_DELEGATE_FALSE=
31216fi
31217
31218 if test "$have_pangocairo" = 'yes'; then
31219  PANGOCAIRO_DELEGATE_TRUE=
31220  PANGOCAIRO_DELEGATE_FALSE='#'
31221else
31222  PANGOCAIRO_DELEGATE_TRUE='#'
31223  PANGOCAIRO_DELEGATE_FALSE=
31224fi
31225
31226
31227
31228
31229
31230#
31231# Check for PNG delegate library.
31232#
31233
31234# Check whether --with-png was given.
31235if test "${with_png+set}" = set; then :
31236  withval=$with_png; with_png=$withval
31237else
31238  with_png='yes'
31239fi
31240
31241
31242if test "$with_png" != 'yes'; then
31243    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31244fi
31245
31246have_png='no'
31247PNG_LIBS=''
31248
31249if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then
31250  { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31251$as_echo "$as_me: -------------------------------------------------------------" >&6;}
31252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31253$as_echo_n "checking for PNG support ... " >&6; }
31254  { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31255$as_echo "$as_me: " >&6;}
31256  failed=0
31257  passed=0
31258  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31259if test "x$ac_cv_header_png_h" = xyes; then :
31260  passed=`expr $passed + 1`
31261else
31262  failed=`expr $failed + 1`
31263fi
31264
31265
31266
31267  if test $passed -gt 0; then
31268    for var in 5 4 2 '' ; do
31269      if test "$have_png" = 'no' ; then
31270        if test "x${var}" = 'x' ; then
31271          pnglib='png'
31272        else
31273          pnglib="png1${var}"
31274        fi
31275
31276#       Test for compatible LIBPNG library
31277        failed=0
31278        passed=0
31279        if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
31280          if test "${pnglib}" != 'png' ; then
31281            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31282$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31283            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31284/* end confdefs.h.  */
31285#include <stdio.h>
31286#include <stdlib.h>
31287#include <png.h>
31288
31289int
31290main ()
31291{
31292
31293#if PNG_LIBPNG_VER_MINOR != ${var}
31294#error LIBPNG library must be version 1${var}!
31295Kaboom, Kaboom
31296#endif
31297return 0;
31298
31299  ;
31300  return 0;
31301}
31302_ACEOF
31303if ac_fn_c_try_compile "$LINENO"; then :
31304              ac_cv_libpng_ok='yes'
31305else
31306  ac_cv_libpng_ok='no'
31307fi
31308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31309            if test "$ac_cv_libpng_ok" = 'yes' ; then
31310              passed=`expr $passed + 1`
31311              { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31312$as_echo "$as_me: yes" >&6;}
31313            else
31314              failed=`expr $failed + 1`
31315              { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31316$as_echo "$as_me: no" >&6;}
31317            fi
31318          else
31319            passed=`expr $passed + 1`
31320            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31321$as_echo "$as_me: yes" >&6;}
31322          fi
31323        fi
31324
31325        if test $passed -gt 0 -a $failed -le 0; then
31326          if test "1${var}" = '15' ; then
31327            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31328$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31329if ${ac_cv_lib_png15_png_get_io_ptr+:} 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_get_io_ptr ();
31344int
31345main ()
31346{
31347return png_get_io_ptr ();
31348  ;
31349  return 0;
31350}
31351_ACEOF
31352if ac_fn_c_try_link "$LINENO"; then :
31353  ac_cv_lib_png15_png_get_io_ptr=yes
31354else
31355  ac_cv_lib_png15_png_get_io_ptr=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_get_io_ptr" >&5
31362$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31363if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31364  passed=`expr $passed + 1`
31365else
31366  failed=`expr $failed + 1`
31367fi
31368
31369            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31370$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31371if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31372  $as_echo_n "(cached) " >&6
31373else
31374  ac_check_lib_save_LIBS=$LIBS
31375LIBS="-lpng15  $LIBS"
31376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31377/* end confdefs.h.  */
31378
31379/* Override any GCC internal prototype to avoid an error.
31380   Use char because int might match the return type of a GCC
31381   builtin and then its argument prototype would still apply.  */
31382#ifdef __cplusplus
31383extern "C"
31384#endif
31385char png_longjmp ();
31386int
31387main ()
31388{
31389return png_longjmp ();
31390  ;
31391  return 0;
31392}
31393_ACEOF
31394if ac_fn_c_try_link "$LINENO"; then :
31395  ac_cv_lib_png15_png_longjmp=yes
31396else
31397  ac_cv_lib_png15_png_longjmp=no
31398fi
31399rm -f core conftest.err conftest.$ac_objext \
31400    conftest$ac_exeext conftest.$ac_ext
31401LIBS=$ac_check_lib_save_LIBS
31402fi
31403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31404$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31405if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31406  passed=`expr $passed + 1`
31407else
31408  failed=`expr $failed + 1`
31409fi
31410
31411          fi
31412          if test "1${var}" = '14' ; then
31413            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31414$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31415if ${ac_cv_lib_png14_png_get_io_ptr+:} 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_ptr ();
31430int
31431main ()
31432{
31433return png_get_io_ptr ();
31434  ;
31435  return 0;
31436}
31437_ACEOF
31438if ac_fn_c_try_link "$LINENO"; then :
31439  ac_cv_lib_png14_png_get_io_ptr=yes
31440else
31441  ac_cv_lib_png14_png_get_io_ptr=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_ptr" >&5
31448$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31449if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31450  passed=`expr $passed + 1`
31451else
31452  failed=`expr $failed + 1`
31453fi
31454
31455            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31456$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31457if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31458  $as_echo_n "(cached) " >&6
31459else
31460  ac_check_lib_save_LIBS=$LIBS
31461LIBS="-lpng14  $LIBS"
31462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31463/* end confdefs.h.  */
31464
31465/* Override any GCC internal prototype to avoid an error.
31466   Use char because int might match the return type of a GCC
31467   builtin and then its argument prototype would still apply.  */
31468#ifdef __cplusplus
31469extern "C"
31470#endif
31471char png_get_io_state ();
31472int
31473main ()
31474{
31475return png_get_io_state ();
31476  ;
31477  return 0;
31478}
31479_ACEOF
31480if ac_fn_c_try_link "$LINENO"; then :
31481  ac_cv_lib_png14_png_get_io_state=yes
31482else
31483  ac_cv_lib_png14_png_get_io_state=no
31484fi
31485rm -f core conftest.err conftest.$ac_objext \
31486    conftest$ac_exeext conftest.$ac_ext
31487LIBS=$ac_check_lib_save_LIBS
31488fi
31489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31490$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31491if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31492  passed=`expr $passed + 1`
31493else
31494  failed=`expr $failed + 1`
31495fi
31496
31497          fi
31498          if test "1${var}" = '12' ; then
31499            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31500$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31501if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31502  $as_echo_n "(cached) " >&6
31503else
31504  ac_check_lib_save_LIBS=$LIBS
31505LIBS="-lpng12  $LIBS"
31506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31507/* end confdefs.h.  */
31508
31509/* Override any GCC internal prototype to avoid an error.
31510   Use char because int might match the return type of a GCC
31511   builtin and then its argument prototype would still apply.  */
31512#ifdef __cplusplus
31513extern "C"
31514#endif
31515char png_get_io_ptr ();
31516int
31517main ()
31518{
31519return png_get_io_ptr ();
31520  ;
31521  return 0;
31522}
31523_ACEOF
31524if ac_fn_c_try_link "$LINENO"; then :
31525  ac_cv_lib_png12_png_get_io_ptr=yes
31526else
31527  ac_cv_lib_png12_png_get_io_ptr=no
31528fi
31529rm -f core conftest.err conftest.$ac_objext \
31530    conftest$ac_exeext conftest.$ac_ext
31531LIBS=$ac_check_lib_save_LIBS
31532fi
31533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31534$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31535if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31536  passed=`expr $passed + 1`
31537else
31538  failed=`expr $failed + 1`
31539fi
31540
31541          fi
31542          if test "1${var}" = '1' ; then
31543              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31544$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31545if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31546  $as_echo_n "(cached) " >&6
31547else
31548  ac_check_lib_save_LIBS=$LIBS
31549LIBS="-lpng  $LIBS"
31550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31551/* end confdefs.h.  */
31552
31553/* Override any GCC internal prototype to avoid an error.
31554   Use char because int might match the return type of a GCC
31555   builtin and then its argument prototype would still apply.  */
31556#ifdef __cplusplus
31557extern "C"
31558#endif
31559char png_get_io_ptr ();
31560int
31561main ()
31562{
31563return png_get_io_ptr ();
31564  ;
31565  return 0;
31566}
31567_ACEOF
31568if ac_fn_c_try_link "$LINENO"; then :
31569  ac_cv_lib_png_png_get_io_ptr=yes
31570else
31571  ac_cv_lib_png_png_get_io_ptr=no
31572fi
31573rm -f core conftest.err conftest.$ac_objext \
31574    conftest$ac_exeext conftest.$ac_ext
31575LIBS=$ac_check_lib_save_LIBS
31576fi
31577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31578$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31579if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31580  passed=`expr $passed + 1`
31581else
31582  failed=`expr $failed + 1`
31583fi
31584
31585          fi
31586          if test $passed -gt 0 -a $failed -le 0 ; then
31587            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31588$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31589            if test $passed -gt 0 ; then
31590              if test $failed -gt 0 ; then
31591                  { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31592$as_echo "$as_me: no -- some components failed test" >&6;}
31593                  have_png='no (failed tests)'
31594              else
31595                  PNG_LIBS="-l${pnglib}"
31596                  LIBS="$PNG_LIBS $LIBS"
31597
31598$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
31599
31600                  { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31601$as_echo "$as_me: yes" >&6;}
31602                  have_png='yes'
31603              fi
31604            fi
31605          fi
31606        fi
31607      fi
31608    done
31609  fi
31610fi
31611
31612 if test "$have_png" = 'yes'; then
31613  PNG_DELEGATE_TRUE=
31614  PNG_DELEGATE_FALSE='#'
31615else
31616  PNG_DELEGATE_TRUE='#'
31617  PNG_DELEGATE_FALSE=
31618fi
31619
31620
31621
31622
31623
31624#
31625# Check for RSVG delegate library.
31626#
31627
31628# Check whether --with-rsvg was given.
31629if test "${with_rsvg+set}" = set; then :
31630  withval=$with_rsvg; with_rsvg=$withval
31631else
31632  with_rsvg='no'
31633fi
31634
31635
31636if test "$with_rsvg" != 'yes'; then
31637    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31638fi
31639
31640have_rsvg='no'
31641have_cairo='no'
31642RSVG_CFLAGS=""
31643RSVG_LIBS=""
31644RSVG_PKG=""
31645if test "x$with_rsvg" = "xyes"; then
31646    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31647$as_echo "$as_me: -------------------------------------------------------------" >&6;}
31648
31649pkg_failed=no
31650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31651$as_echo_n "checking for RSVG... " >&6; }
31652
31653if test -n "$RSVG_CFLAGS"; then
31654    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31655 elif test -n "$PKG_CONFIG"; then
31656    if test -n "$PKG_CONFIG" && \
31657    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31658  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31659  ac_status=$?
31660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31661  test $ac_status = 0; }; then
31662  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31663else
31664  pkg_failed=yes
31665fi
31666 else
31667    pkg_failed=untried
31668fi
31669if test -n "$RSVG_LIBS"; then
31670    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31671 elif test -n "$PKG_CONFIG"; then
31672    if test -n "$PKG_CONFIG" && \
31673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31674  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31675  ac_status=$?
31676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31677  test $ac_status = 0; }; then
31678  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31679else
31680  pkg_failed=yes
31681fi
31682 else
31683    pkg_failed=untried
31684fi
31685
31686
31687
31688if test $pkg_failed = yes; then
31689
31690if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31691        _pkg_short_errors_supported=yes
31692else
31693        _pkg_short_errors_supported=no
31694fi
31695        if test $_pkg_short_errors_supported = yes; then
31696	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31697        else
31698	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31699        fi
31700	# Put the nasty error message in config.log where it belongs
31701	echo "$RSVG_PKG_ERRORS" >&5
31702
31703	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31704$as_echo "no" >&6; }
31705                have_rsvg=no
31706elif test $pkg_failed = untried; then
31707	have_rsvg=no
31708else
31709	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31710	RSVG_LIBS=$pkg_cv_RSVG_LIBS
31711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31712$as_echo "yes" >&6; }
31713	have_rsvg=yes
31714fi
31715    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31716$as_echo "$as_me: " >&6;}
31717
31718pkg_failed=no
31719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31720$as_echo_n "checking for CAIRO_SVG... " >&6; }
31721
31722if test -n "$CAIRO_SVG_CFLAGS"; then
31723    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31724 elif test -n "$PKG_CONFIG"; then
31725    if test -n "$PKG_CONFIG" && \
31726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31727  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31728  ac_status=$?
31729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31730  test $ac_status = 0; }; then
31731  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31732else
31733  pkg_failed=yes
31734fi
31735 else
31736    pkg_failed=untried
31737fi
31738if test -n "$CAIRO_SVG_LIBS"; then
31739    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31740 elif test -n "$PKG_CONFIG"; then
31741    if test -n "$PKG_CONFIG" && \
31742    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31743  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31744  ac_status=$?
31745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31746  test $ac_status = 0; }; then
31747  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31748else
31749  pkg_failed=yes
31750fi
31751 else
31752    pkg_failed=untried
31753fi
31754
31755
31756
31757if test $pkg_failed = yes; then
31758
31759if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31760        _pkg_short_errors_supported=yes
31761else
31762        _pkg_short_errors_supported=no
31763fi
31764        if test $_pkg_short_errors_supported = yes; then
31765	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31766        else
31767	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31768        fi
31769	# Put the nasty error message in config.log where it belongs
31770	echo "$CAIRO_SVG_PKG_ERRORS" >&5
31771
31772	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31773$as_echo "no" >&6; }
31774                have_cairo=no
31775elif test $pkg_failed = untried; then
31776	have_cairo=no
31777else
31778	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31779	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31780        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31781$as_echo "yes" >&6; }
31782	have_cairo=yes
31783fi
31784    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31785$as_echo "$as_me: " >&6;}
31786fi
31787
31788if test "$have_rsvg" = 'yes'; then
31789
31790$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31791
31792    if test "$with_modules" = 'no'; then
31793        CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31794    fi
31795fi
31796
31797if test "$have_cairo" = 'yes'; then
31798
31799$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31800
31801    if test "$with_modules" = 'no'; then
31802        CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31803    fi
31804fi
31805
31806 if test "$have_rsvg" = 'yes'; then
31807  RSVG_DELEGATE_TRUE=
31808  RSVG_DELEGATE_FALSE='#'
31809else
31810  RSVG_DELEGATE_TRUE='#'
31811  RSVG_DELEGATE_FALSE=
31812fi
31813
31814 if test "$have_cairo" = 'yes'; then
31815  CAIRO_DELEGATE_TRUE=
31816  CAIRO_DELEGATE_FALSE='#'
31817else
31818  CAIRO_DELEGATE_TRUE='#'
31819  CAIRO_DELEGATE_FALSE=
31820fi
31821
31822
31823
31824
31825
31826#
31827# Check for TIFF delegate library.
31828#
31829
31830# Check whether --with-tiff was given.
31831if test "${with_tiff+set}" = set; then :
31832  withval=$with_tiff; with_tiff=$withval
31833else
31834  with_tiff='yes'
31835fi
31836
31837
31838if test "$with_tiff" != 'yes'; then
31839    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31840fi
31841
31842have_tiff='no'
31843TIFF_LIBS=''
31844if test "$with_tiff" != 'no'; then
31845    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31846$as_echo "$as_me: -------------------------------------------------------------" >&6;}
31847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31848$as_echo_n "checking for TIFF... " >&6; }
31849    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31850$as_echo "$as_me: " >&6;}
31851    failed=0
31852    passed=0
31853    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31854if test "x$ac_cv_header_tiff_h" = xyes; then :
31855  passed=`expr $passed + 1`
31856else
31857  failed=`expr $failed + 1`
31858fi
31859
31860
31861    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31862if test "x$ac_cv_header_tiffio_h" = xyes; then :
31863  passed=`expr $passed + 1`
31864else
31865  failed=`expr $failed + 1`
31866fi
31867
31868
31869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31870$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31871if ${ac_cv_lib_tiff_TIFFOpen+:} 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 TIFFOpen ();
31886int
31887main ()
31888{
31889return TIFFOpen ();
31890  ;
31891  return 0;
31892}
31893_ACEOF
31894if ac_fn_c_try_link "$LINENO"; then :
31895  ac_cv_lib_tiff_TIFFOpen=yes
31896else
31897  ac_cv_lib_tiff_TIFFOpen=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_TIFFOpen" >&5
31904$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31905if test "x$ac_cv_lib_tiff_TIFFOpen" = 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 TIFFClientOpen in -ltiff" >&5
31912$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31913if ${ac_cv_lib_tiff_TIFFClientOpen+:} 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 TIFFClientOpen ();
31928int
31929main ()
31930{
31931return TIFFClientOpen ();
31932  ;
31933  return 0;
31934}
31935_ACEOF
31936if ac_fn_c_try_link "$LINENO"; then :
31937  ac_cv_lib_tiff_TIFFClientOpen=yes
31938else
31939  ac_cv_lib_tiff_TIFFClientOpen=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_TIFFClientOpen" >&5
31946$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31947if test "x$ac_cv_lib_tiff_TIFFClientOpen" = 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 TIFFIsByteSwapped in -ltiff" >&5
31954$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31955if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} 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 TIFFIsByteSwapped ();
31970int
31971main ()
31972{
31973return TIFFIsByteSwapped ();
31974  ;
31975  return 0;
31976}
31977_ACEOF
31978if ac_fn_c_try_link "$LINENO"; then :
31979  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31980else
31981  ac_cv_lib_tiff_TIFFIsByteSwapped=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_TIFFIsByteSwapped" >&5
31988$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31989if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = 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 TIFFReadRGBATile in -ltiff" >&5
31996$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31997if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} 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 TIFFReadRGBATile ();
32012int
32013main ()
32014{
32015return TIFFReadRGBATile ();
32016  ;
32017  return 0;
32018}
32019_ACEOF
32020if ac_fn_c_try_link "$LINENO"; then :
32021  ac_cv_lib_tiff_TIFFReadRGBATile=yes
32022else
32023  ac_cv_lib_tiff_TIFFReadRGBATile=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_TIFFReadRGBATile" >&5
32030$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
32031if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
32032  passed=`expr $passed + 1`
32033else
32034  failed=`expr $failed + 1`
32035fi
32036
32037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
32038$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
32039if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
32040  $as_echo_n "(cached) " >&6
32041else
32042  ac_check_lib_save_LIBS=$LIBS
32043LIBS="-ltiff  $LIBS"
32044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32045/* end confdefs.h.  */
32046
32047/* Override any GCC internal prototype to avoid an error.
32048   Use char because int might match the return type of a GCC
32049   builtin and then its argument prototype would still apply.  */
32050#ifdef __cplusplus
32051extern "C"
32052#endif
32053char TIFFReadRGBAStrip ();
32054int
32055main ()
32056{
32057return TIFFReadRGBAStrip ();
32058  ;
32059  return 0;
32060}
32061_ACEOF
32062if ac_fn_c_try_link "$LINENO"; then :
32063  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32064else
32065  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
32066fi
32067rm -f core conftest.err conftest.$ac_objext \
32068    conftest$ac_exeext conftest.$ac_ext
32069LIBS=$ac_check_lib_save_LIBS
32070fi
32071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
32072$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
32073if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
32074  passed=`expr $passed + 1`
32075else
32076  failed=`expr $failed + 1`
32077fi
32078
32079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
32080$as_echo_n "checking if TIFF package is complete... " >&6; }
32081    if test $passed -gt 0; then
32082        if test $failed -gt 0; then
32083            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32084$as_echo "$as_me: no -- some components failed test" >&6;}
32085            have_tiff='no (failed tests)'
32086        else
32087            TIFF_LIBS='-ltiff'
32088            LIBS="$TIFF_LIBS $LIBS"
32089
32090$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
32091
32092            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32093$as_echo "$as_me: yes" >&6;}
32094            have_tiff='yes'
32095            for ac_header in tiffconf.h
32096do :
32097  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
32098if test "x$ac_cv_header_tiffconf_h" = xyes; then :
32099  cat >>confdefs.h <<_ACEOF
32100#define HAVE_TIFFCONF_H 1
32101_ACEOF
32102
32103fi
32104
32105done
32106
32107            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
32108              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32109              TIFFSetTagExtender TIFFSetWarningHandlerExt \
32110              TIFFSwabArrayOfTriples
32111do :
32112  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32113ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32114if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32115  cat >>confdefs.h <<_ACEOF
32116#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32117_ACEOF
32118
32119fi
32120done
32121
32122        fi
32123    else
32124        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32125$as_echo "$as_me: no" >&6;}
32126    fi
32127fi
32128 if test "$have_tiff" = 'yes'; then
32129  TIFF_DELEGATE_TRUE=
32130  TIFF_DELEGATE_FALSE='#'
32131else
32132  TIFF_DELEGATE_TRUE='#'
32133  TIFF_DELEGATE_FALSE=
32134fi
32135
32136
32137
32138
32139#
32140# Check for WEBP delegate library.
32141#
32142
32143# Check whether --with-webp was given.
32144if test "${with_webp+set}" = set; then :
32145  withval=$with_webp; with_webp=$withval
32146else
32147  with_webp='yes'
32148fi
32149
32150
32151if test "$with_webp" != 'yes'; then
32152    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32153fi
32154
32155have_webp='no'
32156WEBP_LIBS=''
32157if test "$with_webp" != 'no'; then
32158    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32159$as_echo "$as_me: -------------------------------------------------------------" >&6;}
32160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32161$as_echo_n "checking for WEBP... " >&6; }
32162    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32163$as_echo "$as_me: " >&6;}
32164    failed=0
32165    passed=0
32166    ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32167if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32168  passed=`expr $passed + 1`
32169else
32170  failed=`expr $failed + 1`
32171fi
32172
32173
32174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32175$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32176if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32177  $as_echo_n "(cached) " >&6
32178else
32179  ac_check_lib_save_LIBS=$LIBS
32180LIBS="-lwebp  $LIBS"
32181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32182/* end confdefs.h.  */
32183
32184/* Override any GCC internal prototype to avoid an error.
32185   Use char because int might match the return type of a GCC
32186   builtin and then its argument prototype would still apply.  */
32187#ifdef __cplusplus
32188extern "C"
32189#endif
32190char WebPDecodeRGB ();
32191int
32192main ()
32193{
32194return WebPDecodeRGB ();
32195  ;
32196  return 0;
32197}
32198_ACEOF
32199if ac_fn_c_try_link "$LINENO"; then :
32200  ac_cv_lib_webp_WebPDecodeRGB=yes
32201else
32202  ac_cv_lib_webp_WebPDecodeRGB=no
32203fi
32204rm -f core conftest.err conftest.$ac_objext \
32205    conftest$ac_exeext conftest.$ac_ext
32206LIBS=$ac_check_lib_save_LIBS
32207fi
32208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32209$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32210if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32211  passed=`expr $passed + 1`
32212else
32213  failed=`expr $failed + 1`
32214fi
32215
32216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32217$as_echo_n "checking if WEBP package is complete... " >&6; }
32218    if test $passed -gt 0; then
32219        if test $failed -gt 0; then
32220            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32221$as_echo "$as_me: no -- some components failed test" >&6;}
32222            have_webp='no (failed tests)'
32223        else
32224            WEBP_LIBS='-lwebp'
32225            LIBS="$WEBP_LIBS $LIBS"
32226
32227$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32228
32229            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32230$as_echo "$as_me: yes" >&6;}
32231            have_webp='yes'
32232        fi
32233    else
32234        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32235$as_echo "$as_me: no" >&6;}
32236    fi
32237fi
32238 if test "$have_webp" = 'yes'; then
32239  WEBP_DELEGATE_TRUE=
32240  WEBP_DELEGATE_FALSE='#'
32241else
32242  WEBP_DELEGATE_TRUE='#'
32243  WEBP_DELEGATE_FALSE=
32244fi
32245
32246
32247
32248
32249#
32250# Set Windows font directory.
32251#
32252
32253# Check whether --with-windows-font-dir was given.
32254if test "${with_windows_font_dir+set}" = set; then :
32255  withval=$with_windows_font_dir; with_windows_font_dir=$withval
32256else
32257  with_windows_font_dir=''
32258fi
32259
32260if test "$with_windows_font_dir" != '' ; then
32261    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32262fi
32263
32264
32265#
32266# Check for WMF delegate library.
32267#
32268
32269# Check whether --with-wmf was given.
32270if test "${with_wmf+set}" = set; then :
32271  withval=$with_wmf; with_wmf=$withval
32272else
32273  with_wmf='no'
32274fi
32275
32276
32277if test "$with_wmf" != 'yes'; then
32278    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32279fi
32280
32281have_wmf='no'
32282WMF_LIBS=''
32283WMF_LIBS_DEPS=''
32284OLIBS="$LIBS"
32285if test "$with_wmf" != 'no'; then
32286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32287$as_echo "-------------------------------------------------------------" >&6; }
32288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
32289$as_echo_n "checking for WMF... " >&6; }
32290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32291$as_echo "" >&6; }
32292    have_libwmf='no'
32293    have_libwmflite='no'
32294    have_libwmf_ipa_h='no'
32295
32296    ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32297"
32298if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32299  have_libwmf_ipa_h='yes'
32300fi
32301
32302
32303    if test "$have_libwmf_ipa_h" = 'yes'; then
32304        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32305$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32306if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32307  $as_echo_n "(cached) " >&6
32308else
32309  ac_check_lib_save_LIBS=$LIBS
32310LIBS="-lwmflite  $LIBS"
32311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32312/* end confdefs.h.  */
32313
32314/* Override any GCC internal prototype to avoid an error.
32315   Use char because int might match the return type of a GCC
32316   builtin and then its argument prototype would still apply.  */
32317#ifdef __cplusplus
32318extern "C"
32319#endif
32320char wmf_lite_create ();
32321int
32322main ()
32323{
32324return wmf_lite_create ();
32325  ;
32326  return 0;
32327}
32328_ACEOF
32329if ac_fn_c_try_link "$LINENO"; then :
32330  ac_cv_lib_wmflite_wmf_lite_create=yes
32331else
32332  ac_cv_lib_wmflite_wmf_lite_create=no
32333fi
32334rm -f core conftest.err conftest.$ac_objext \
32335    conftest$ac_exeext conftest.$ac_ext
32336LIBS=$ac_check_lib_save_LIBS
32337fi
32338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32339$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32340if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32341  have_libwmflite='yes'
32342fi
32343
32344        if test "$have_libwmflite" = 'yes'; then
32345
32346$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32347
32348            WMF_LIBS='-lwmflite'
32349            LIBS="$WMF_LIBS $LIBS"
32350            have_wmf='yes'
32351        else
32352            WMF_LIBS_DEPS=''
32353            WMF_CONFIG_LIBS=`libwmf-config --libs`
32354            for lib in xml2 expat freetype jpeg png z; do
32355                testlib="-l${lib}"
32356                echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32357            done
32358            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32359$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32360if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32361  $as_echo_n "(cached) " >&6
32362else
32363  ac_check_lib_save_LIBS=$LIBS
32364LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32366/* end confdefs.h.  */
32367
32368/* Override any GCC internal prototype to avoid an error.
32369   Use char because int might match the return type of a GCC
32370   builtin and then its argument prototype would still apply.  */
32371#ifdef __cplusplus
32372extern "C"
32373#endif
32374char wmf_api_create ();
32375int
32376main ()
32377{
32378return wmf_api_create ();
32379  ;
32380  return 0;
32381}
32382_ACEOF
32383if ac_fn_c_try_link "$LINENO"; then :
32384  ac_cv_lib_wmf_wmf_api_create=yes
32385else
32386  ac_cv_lib_wmf_wmf_api_create=no
32387fi
32388rm -f core conftest.err conftest.$ac_objext \
32389    conftest$ac_exeext conftest.$ac_ext
32390LIBS=$ac_check_lib_save_LIBS
32391fi
32392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32393$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32394if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32395  have_libwmf='yes'
32396fi
32397
32398            if test "$have_libwmf" = 'yes'; then
32399
32400$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
32401
32402                WMF_LIBS='-lwmf'
32403                LIBS="$WMF_LIBS $LIBS"
32404                have_wmf='yes'
32405            else
32406                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32407$as_echo "no -- some components failed test" >&6; }
32408                have_wmf='no (failed tests)'
32409                have_wmflite='no (failed tests)'
32410                LIBS="$OLIBS"
32411                WMF_LIBS=''
32412            fi
32413        fi
32414    fi
32415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32416$as_echo_n "checking if WMF package is complete... " >&6; }
32417    if test "$have_wmf" = 'yes'; then
32418        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32419$as_echo "yes" >&6; }
32420    else
32421        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32422$as_echo "no" >&6; }
32423    fi
32424fi
32425 if test "$have_wmf" = 'yes'; then
32426  WMF_DELEGATE_TRUE=
32427  WMF_DELEGATE_FALSE='#'
32428else
32429  WMF_DELEGATE_TRUE='#'
32430  WMF_DELEGATE_FALSE=
32431fi
32432
32433
32434
32435
32436
32437
32438#
32439# Check for XML delegate library.
32440#
32441
32442# Check whether --with-xml was given.
32443if test "${with_xml+set}" = set; then :
32444  withval=$with_xml; with_xml=$withval
32445else
32446  with_xml='yes'
32447fi
32448
32449
32450if test "$with_xml" != 'yes' ; then
32451    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32452fi
32453
32454have_xml='no'
32455XML_LIBS=''
32456if test "$with_xml" != 'no'; then
32457    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32458$as_echo "$as_me: -------------------------------------------------------------" >&6;}
32459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32460$as_echo_n "checking for XML... " >&6; }
32461    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32462$as_echo "$as_me: " >&6;}
32463    PERSIST_LDFLAGS=$LDFLAGS
32464    PERSIST_CPPFLAGS=$CPPFLAGS
32465    xml2_config=''
32466    # Extract the first word of "xml2-config", so it can be a program name with args.
32467set dummy xml2-config; ac_word=$2
32468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32469$as_echo_n "checking for $ac_word... " >&6; }
32470if ${ac_cv_path_xml2_config+:} false; then :
32471  $as_echo_n "(cached) " >&6
32472else
32473  case $xml2_config in
32474  [\\/]* | ?:[\\/]*)
32475  ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32476  ;;
32477  *)
32478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32479for as_dir in $PATH
32480do
32481  IFS=$as_save_IFS
32482  test -z "$as_dir" && as_dir=.
32483    for ac_exec_ext in '' $ac_executable_extensions; do
32484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32485    ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32487    break 2
32488  fi
32489done
32490  done
32491IFS=$as_save_IFS
32492
32493  ;;
32494esac
32495fi
32496xml2_config=$ac_cv_path_xml2_config
32497if test -n "$xml2_config"; then
32498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32499$as_echo "$xml2_config" >&6; }
32500else
32501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32502$as_echo "no" >&6; }
32503fi
32504
32505    if test -n "$xml2_config"; then
32506        # Debian installs libxml headers under /usr/include/libxml2/libxml with
32507        # the shared library installed under /usr/lib, whereas the package
32508        # installs itself under $prefix/libxml and $prefix/lib.
32509        xml2_prefix=`xml2-config --prefix`
32510        if test -d "${xml2_prefix}/include/libxml2"; then
32511            CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32512        fi
32513        if test "${xml2_prefix}" != '/usr'; then
32514            LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32515        fi
32516    fi
32517    failed=0
32518    passed=0
32519    ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32520if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32521  passed=`expr $passed + 1`
32522else
32523  failed=`expr $failed + 1`
32524fi
32525
32526
32527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32528$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32529if ${ac_cv_lib_xml2_xmlSAXVersion+:} 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 xmlSAXVersion ();
32544int
32545main ()
32546{
32547return xmlSAXVersion ();
32548  ;
32549  return 0;
32550}
32551_ACEOF
32552if ac_fn_c_try_link "$LINENO"; then :
32553  ac_cv_lib_xml2_xmlSAXVersion=yes
32554else
32555  ac_cv_lib_xml2_xmlSAXVersion=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_xmlSAXVersion" >&5
32562$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32563if test "x$ac_cv_lib_xml2_xmlSAXVersion" = 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 xmlParseChunk in -lxml2" >&5
32570$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32571if ${ac_cv_lib_xml2_xmlParseChunk+:} 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 xmlParseChunk ();
32586int
32587main ()
32588{
32589return xmlParseChunk ();
32590  ;
32591  return 0;
32592}
32593_ACEOF
32594if ac_fn_c_try_link "$LINENO"; then :
32595  ac_cv_lib_xml2_xmlParseChunk=yes
32596else
32597  ac_cv_lib_xml2_xmlParseChunk=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_xmlParseChunk" >&5
32604$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32605if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32606  passed=`expr $passed + 1`
32607else
32608  failed=`expr $failed + 1`
32609fi
32610
32611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32612$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32613if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32614  $as_echo_n "(cached) " >&6
32615else
32616  ac_check_lib_save_LIBS=$LIBS
32617LIBS="-lxml2  $LIBS"
32618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32619/* end confdefs.h.  */
32620
32621/* Override any GCC internal prototype to avoid an error.
32622   Use char because int might match the return type of a GCC
32623   builtin and then its argument prototype would still apply.  */
32624#ifdef __cplusplus
32625extern "C"
32626#endif
32627char xmlCreatePushParserCtxt ();
32628int
32629main ()
32630{
32631return xmlCreatePushParserCtxt ();
32632  ;
32633  return 0;
32634}
32635_ACEOF
32636if ac_fn_c_try_link "$LINENO"; then :
32637  ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32638else
32639  ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32640fi
32641rm -f core conftest.err conftest.$ac_objext \
32642    conftest$ac_exeext conftest.$ac_ext
32643LIBS=$ac_check_lib_save_LIBS
32644fi
32645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32646$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32647if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32648  passed=`expr $passed + 1`
32649else
32650  failed=`expr $failed + 1`
32651fi
32652
32653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32654$as_echo_n "checking if XML package is complete... " >&6; }
32655    if test $passed -gt 0; then
32656        if test $failed -gt 0; then
32657            { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32658$as_echo "$as_me: no -- some components failed test" >&6;}
32659            have_xml='no (failed tests)'
32660            LDFLAGS="$PERSIST_LDFLAGS"
32661            CPPFLAGS="$PERSIST_CPPFLAGS"
32662        else
32663            XML_LIBS='-lxml2'
32664            LIBS="$XML_LIBS $LIBS"
32665
32666$as_echo "#define XML_DELEGATE 1" >>confdefs.h
32667
32668            { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32669$as_echo "$as_me: yes" >&6;}
32670            have_xml='yes'
32671        fi
32672    else
32673        { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32674$as_echo "$as_me: no" >&6;}
32675    fi
32676fi
32677 if test "$have_xml" = 'yes'; then
32678  XML_DELEGATE_TRUE=
32679  XML_DELEGATE_FALSE='#'
32680else
32681  XML_DELEGATE_TRUE='#'
32682  XML_DELEGATE_FALSE=
32683fi
32684
32685
32686
32687
32688# Substitute compiler name to build/link PerlMagick
32689#
32690
32691
32692#
32693# Configure install Paths
32694#
32695
32696# Path to ImageMagick header files
32697INCLUDE_RELATIVE_PATH="ImageMagick"
32698INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32699DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32700case "${build_os}" in
32701  mingw* )
32702    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32703    ;;
32704esac
32705
32706cat >>confdefs.h <<_ACEOF
32707#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32708_ACEOF
32709
32710
32711
32712# Subdirectory under lib to place ImageMagick lib files
32713LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32714
32715cat >>confdefs.h <<_ACEOF
32716#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32717_ACEOF
32718
32719
32720# Path to ImageMagick bin directory
32721EXECUTABLE_PATH="${BIN_DIR}"
32722DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32723case "${build_os}" in
32724  mingw* )
32725    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32726    ;;
32727esac
32728
32729cat >>confdefs.h <<_ACEOF
32730#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32731_ACEOF
32732
32733
32734
32735# Path to ImageMagick lib
32736LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32737DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32738case "${build_os}" in
32739  mingw* )
32740    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32741    ;;
32742esac
32743
32744cat >>confdefs.h <<_ACEOF
32745#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32746_ACEOF
32747
32748
32749
32750#
32751# Subdirectory under lib to place ImageMagick coder module files
32752CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32753
32754cat >>confdefs.h <<_ACEOF
32755#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32756_ACEOF
32757
32758CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32759DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32760case "${build_os}" in
32761  mingw* )
32762    DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32763    ;;
32764esac
32765
32766cat >>confdefs.h <<_ACEOF
32767#define CODER_PATH "$DEFINE_CODER_PATH"
32768_ACEOF
32769
32770
32771
32772#
32773# Subdirectory under lib to place ImageMagick filter module files
32774FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32775
32776cat >>confdefs.h <<_ACEOF
32777#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32778_ACEOF
32779
32780FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32781DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32782case "${build_os}" in
32783  mingw* )
32784    DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32785    ;;
32786esac
32787
32788cat >>confdefs.h <<_ACEOF
32789#define FILTER_PATH "$DEFINE_FILTER_PATH"
32790_ACEOF
32791
32792
32793
32794#
32795# Path to ImageMagick documentation files
32796DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32797DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32798DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
32799case "${build_os}" in
32800  mingw* )
32801    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32802    ;;
32803esac
32804
32805cat >>confdefs.h <<_ACEOF
32806#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32807_ACEOF
32808
32809
32810
32811# Subdirectory to place architecture-dependent configuration files
32812CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
32813
32814cat >>confdefs.h <<_ACEOF
32815#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32816_ACEOF
32817
32818CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32819DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32820case "${build_os}" in
32821  mingw* )
32822    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32823    ;;
32824esac
32825
32826cat >>confdefs.h <<_ACEOF
32827#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32828_ACEOF
32829
32830
32831
32832# Subdirectory to place architecture-independent configuration files
32833SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
32834
32835cat >>confdefs.h <<_ACEOF
32836#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32837_ACEOF
32838
32839SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32840DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32841case "${build_os}" in
32842  mingw* )
32843    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32844    ;;
32845esac
32846
32847cat >>confdefs.h <<_ACEOF
32848#define SHARE_PATH "$DEFINE_SHARE_PATH"
32849_ACEOF
32850
32851
32852
32853# Subdirectory to place architecture-dependent configuration files
32854SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
32855
32856cat >>confdefs.h <<_ACEOF
32857#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32858_ACEOF
32859
32860SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32861DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
32862case "${build_os}" in
32863  mingw* )
32864    DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32865    ;;
32866esac
32867
32868cat >>confdefs.h <<_ACEOF
32869#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32870_ACEOF
32871
32872
32873
32874#
32875# program_transform_name is formed for use in a Makefile, so create a
32876# modified version for use in a shell script.
32877configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32878
32879# Default delegate definitions
32880{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32881$as_echo "$as_me: -------------------------------------------------------------" >&6;}
32882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32883$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32884{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32885$as_echo "$as_me: " >&6;}
32886AutotraceDecodeDelegateDefault='autotrace'
32887BlenderDecodeDelegateDefault='blender'
32888BZIPDelegateDefault='bzip2'
32889BrowseDelegateDefault='xdg-open'
32890CGMDecodeDelegateDefault='ralcgm'
32891CatDelegateDefault='cat'
32892DNGDecodeDelegateDefault='ufraw-batch'
32893GVCDecodeDelegateDefault='dot'
32894DVIDecodeDelegateDefault='dvips'
32895EchoDelegateDefault='echo'
32896EditorDelegateDefault='xterm'
32897FIGDecodeDelegateDefault='fig2dev'
32898ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32899DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32900MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32901GnuplotDecodeDelegateDefault='gnuplot'
32902HPGLDecodeDelegateDefault='hp2xx'
32903HTMLDecodeDelegateDefault='html2ps'
32904ILBMDecodeDelegateDefault='ilbmtoppm'
32905ILBMEncodeDelegateDefault='ppmtoilbm'
32906LPDelegateDefault='lp'
32907LPRDelegateDefault='lpr'
32908LaunchDelegateDefault='gimp'
32909MANDelegateDefault='groff'
32910MPEGDecodeDelegateDefault='ffmpeg'
32911MPEGEncodeDelegateDefault='ffmpeg'
32912MrSIDDecodeDelegateDefault='mrsidgeodecode'
32913MVDelegateDefault='mv'
32914PCLDelegateDefault='pcl6'
32915PGPDecodeDelegateDefault='pgpv'
32916POVDelegateDefault='povray'
32917if test "$native_win32_build" = 'yes'; then
32918    PSDelegateDefault='gswin32c'
32919elif test "$gslib_framework" = 'yes'; then
32920    PSDelegateDefault='gsc'
32921else
32922    PSDelegateDefault='gs'
32923fi
32924RLEEncodeDelegateDefault='rawtorle'
32925RMDelegateDefault='rm'
32926RSVGDecodeDelegateDefault='rsvg-convert'
32927SCANDecodeDelegateDefault='scanimage'
32928SVGDecodeDelegateDefault='inkscape'
32929TXTDelegateDefault='enscript'
32930UniconvertorDelegateDefault='uniconvertor'
32931WMFDecodeDelegateDefault='wmf2eps'
32932WWWDecodeDelegateDefault='curl'
32933XPSDelegateDefault='gxps'
32934ZipDelegateDefault='gzip'
32935
32936# Search for delegates
32937# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32938set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32940$as_echo_n "checking for $ac_word... " >&6; }
32941if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32942  $as_echo_n "(cached) " >&6
32943else
32944  case $AutotraceDecodeDelegate in
32945  [\\/]* | ?:[\\/]*)
32946  ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32947  ;;
32948  *)
32949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32950for as_dir in $PATH
32951do
32952  IFS=$as_save_IFS
32953  test -z "$as_dir" && as_dir=.
32954    for ac_exec_ext in '' $ac_executable_extensions; do
32955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32956    ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32958    break 2
32959  fi
32960done
32961  done
32962IFS=$as_save_IFS
32963
32964  test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32965  ;;
32966esac
32967fi
32968AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32969if test -n "$AutotraceDecodeDelegate"; then
32970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32971$as_echo "$AutotraceDecodeDelegate" >&6; }
32972else
32973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974$as_echo "no" >&6; }
32975fi
32976
32977
32978# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32979set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32981$as_echo_n "checking for $ac_word... " >&6; }
32982if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32983  $as_echo_n "(cached) " >&6
32984else
32985  case $BlenderDecodeDelegate in
32986  [\\/]* | ?:[\\/]*)
32987  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32988  ;;
32989  *)
32990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32991for as_dir in $PATH
32992do
32993  IFS=$as_save_IFS
32994  test -z "$as_dir" && as_dir=.
32995    for ac_exec_ext in '' $ac_executable_extensions; do
32996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32997    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32999    break 2
33000  fi
33001done
33002  done
33003IFS=$as_save_IFS
33004
33005  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33006  ;;
33007esac
33008fi
33009BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33010if test -n "$BlenderDecodeDelegate"; then
33011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
33012$as_echo "$BlenderDecodeDelegate" >&6; }
33013else
33014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33015$as_echo "no" >&6; }
33016fi
33017
33018
33019# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33020set dummy "$BZIPDelegateDefault"; ac_word=$2
33021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33022$as_echo_n "checking for $ac_word... " >&6; }
33023if ${ac_cv_path_BZIPDelegate+:} false; then :
33024  $as_echo_n "(cached) " >&6
33025else
33026  case $BZIPDelegate in
33027  [\\/]* | ?:[\\/]*)
33028  ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33029  ;;
33030  *)
33031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032for as_dir in $PATH
33033do
33034  IFS=$as_save_IFS
33035  test -z "$as_dir" && as_dir=.
33036    for ac_exec_ext in '' $ac_executable_extensions; do
33037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33038    ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
33039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33040    break 2
33041  fi
33042done
33043  done
33044IFS=$as_save_IFS
33045
33046  test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33047  ;;
33048esac
33049fi
33050BZIPDelegate=$ac_cv_path_BZIPDelegate
33051if test -n "$BZIPDelegate"; then
33052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
33053$as_echo "$BZIPDelegate" >&6; }
33054else
33055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33056$as_echo "no" >&6; }
33057fi
33058
33059
33060for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33061do
33062  # Extract the first word of "$ac_prog", so it can be a program name with args.
33063set dummy $ac_prog; ac_word=$2
33064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33065$as_echo_n "checking for $ac_word... " >&6; }
33066if ${ac_cv_path_BrowseDelegate+:} false; then :
33067  $as_echo_n "(cached) " >&6
33068else
33069  case $BrowseDelegate in
33070  [\\/]* | ?:[\\/]*)
33071  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33072  ;;
33073  *)
33074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33075for as_dir in $PATH
33076do
33077  IFS=$as_save_IFS
33078  test -z "$as_dir" && as_dir=.
33079    for ac_exec_ext in '' $ac_executable_extensions; do
33080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33081    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
33082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33083    break 2
33084  fi
33085done
33086  done
33087IFS=$as_save_IFS
33088
33089  ;;
33090esac
33091fi
33092BrowseDelegate=$ac_cv_path_BrowseDelegate
33093if test -n "$BrowseDelegate"; then
33094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
33095$as_echo "$BrowseDelegate" >&6; }
33096else
33097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33098$as_echo "no" >&6; }
33099fi
33100
33101
33102  test -n "$BrowseDelegate" && break
33103done
33104test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33105
33106# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33107set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
33108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33109$as_echo_n "checking for $ac_word... " >&6; }
33110if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
33111  $as_echo_n "(cached) " >&6
33112else
33113  case $CGMDecodeDelegate in
33114  [\\/]* | ?:[\\/]*)
33115  ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33116  ;;
33117  *)
33118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33119for as_dir in $PATH
33120do
33121  IFS=$as_save_IFS
33122  test -z "$as_dir" && as_dir=.
33123    for ac_exec_ext in '' $ac_executable_extensions; do
33124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33125    ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33127    break 2
33128  fi
33129done
33130  done
33131IFS=$as_save_IFS
33132
33133  test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33134  ;;
33135esac
33136fi
33137CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33138if test -n "$CGMDecodeDelegate"; then
33139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
33140$as_echo "$CGMDecodeDelegate" >&6; }
33141else
33142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33143$as_echo "no" >&6; }
33144fi
33145
33146
33147# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33148set dummy "$CatDelegateDefault"; ac_word=$2
33149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33150$as_echo_n "checking for $ac_word... " >&6; }
33151if ${ac_cv_path_CatDelegate+:} false; then :
33152  $as_echo_n "(cached) " >&6
33153else
33154  case $CatDelegate in
33155  [\\/]* | ?:[\\/]*)
33156  ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33157  ;;
33158  *)
33159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33160for as_dir in $PATH
33161do
33162  IFS=$as_save_IFS
33163  test -z "$as_dir" && as_dir=.
33164    for ac_exec_ext in '' $ac_executable_extensions; do
33165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33166    ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
33167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33168    break 2
33169  fi
33170done
33171  done
33172IFS=$as_save_IFS
33173
33174  test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33175  ;;
33176esac
33177fi
33178CatDelegate=$ac_cv_path_CatDelegate
33179if test -n "$CatDelegate"; then
33180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
33181$as_echo "$CatDelegate" >&6; }
33182else
33183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184$as_echo "no" >&6; }
33185fi
33186
33187
33188# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33189set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
33190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33191$as_echo_n "checking for $ac_word... " >&6; }
33192if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
33193  $as_echo_n "(cached) " >&6
33194else
33195  case $DNGDecodeDelegate in
33196  [\\/]* | ?:[\\/]*)
33197  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33198  ;;
33199  *)
33200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33201for as_dir in $PATH
33202do
33203  IFS=$as_save_IFS
33204  test -z "$as_dir" && as_dir=.
33205    for ac_exec_ext in '' $ac_executable_extensions; do
33206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33207    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33209    break 2
33210  fi
33211done
33212  done
33213IFS=$as_save_IFS
33214
33215  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33216  ;;
33217esac
33218fi
33219DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33220if test -n "$DNGDecodeDelegate"; then
33221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
33222$as_echo "$DNGDecodeDelegate" >&6; }
33223else
33224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33225$as_echo "no" >&6; }
33226fi
33227
33228
33229# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33230set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33232$as_echo_n "checking for $ac_word... " >&6; }
33233if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33234  $as_echo_n "(cached) " >&6
33235else
33236  case $GVCDecodeDelegate in
33237  [\\/]* | ?:[\\/]*)
33238  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33239  ;;
33240  *)
33241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33242for as_dir in $PATH
33243do
33244  IFS=$as_save_IFS
33245  test -z "$as_dir" && as_dir=.
33246    for ac_exec_ext in '' $ac_executable_extensions; do
33247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33248    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33250    break 2
33251  fi
33252done
33253  done
33254IFS=$as_save_IFS
33255
33256  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33257  ;;
33258esac
33259fi
33260GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33261if test -n "$GVCDecodeDelegate"; then
33262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33263$as_echo "$GVCDecodeDelegate" >&6; }
33264else
33265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33266$as_echo "no" >&6; }
33267fi
33268
33269
33270# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33271set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33273$as_echo_n "checking for $ac_word... " >&6; }
33274if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33275  $as_echo_n "(cached) " >&6
33276else
33277  case $DVIDecodeDelegate in
33278  [\\/]* | ?:[\\/]*)
33279  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33280  ;;
33281  *)
33282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33283for as_dir in $PATH
33284do
33285  IFS=$as_save_IFS
33286  test -z "$as_dir" && as_dir=.
33287    for ac_exec_ext in '' $ac_executable_extensions; do
33288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33289    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33291    break 2
33292  fi
33293done
33294  done
33295IFS=$as_save_IFS
33296
33297  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33298  ;;
33299esac
33300fi
33301DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33302if test -n "$DVIDecodeDelegate"; then
33303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33304$as_echo "$DVIDecodeDelegate" >&6; }
33305else
33306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33307$as_echo "no" >&6; }
33308fi
33309
33310
33311# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33312set dummy "$EchoDelegateDefault"; ac_word=$2
33313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33314$as_echo_n "checking for $ac_word... " >&6; }
33315if ${ac_cv_path_EchoDelegate+:} false; then :
33316  $as_echo_n "(cached) " >&6
33317else
33318  case $EchoDelegate in
33319  [\\/]* | ?:[\\/]*)
33320  ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33321  ;;
33322  *)
33323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33324for as_dir in $PATH
33325do
33326  IFS=$as_save_IFS
33327  test -z "$as_dir" && as_dir=.
33328    for ac_exec_ext in '' $ac_executable_extensions; do
33329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33330    ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
33331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33332    break 2
33333  fi
33334done
33335  done
33336IFS=$as_save_IFS
33337
33338  test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33339  ;;
33340esac
33341fi
33342EchoDelegate=$ac_cv_path_EchoDelegate
33343if test -n "$EchoDelegate"; then
33344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33345$as_echo "$EchoDelegate" >&6; }
33346else
33347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33348$as_echo "no" >&6; }
33349fi
33350
33351
33352# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33353set dummy "$EditorDelegateDefault"; ac_word=$2
33354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33355$as_echo_n "checking for $ac_word... " >&6; }
33356if ${ac_cv_path_EditorDelegate+:} false; then :
33357  $as_echo_n "(cached) " >&6
33358else
33359  case $EditorDelegate in
33360  [\\/]* | ?:[\\/]*)
33361  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33362  ;;
33363  *)
33364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33365for as_dir in $PATH
33366do
33367  IFS=$as_save_IFS
33368  test -z "$as_dir" && as_dir=.
33369    for ac_exec_ext in '' $ac_executable_extensions; do
33370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33371    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33373    break 2
33374  fi
33375done
33376  done
33377IFS=$as_save_IFS
33378
33379  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33380  ;;
33381esac
33382fi
33383EditorDelegate=$ac_cv_path_EditorDelegate
33384if test -n "$EditorDelegate"; then
33385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33386$as_echo "$EditorDelegate" >&6; }
33387else
33388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33389$as_echo "no" >&6; }
33390fi
33391
33392
33393# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33394set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
33395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33396$as_echo_n "checking for $ac_word... " >&6; }
33397if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
33398  $as_echo_n "(cached) " >&6
33399else
33400  case $FIGDecodeDelegate in
33401  [\\/]* | ?:[\\/]*)
33402  ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33403  ;;
33404  *)
33405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33406for as_dir in $PATH
33407do
33408  IFS=$as_save_IFS
33409  test -z "$as_dir" && as_dir=.
33410    for ac_exec_ext in '' $ac_executable_extensions; do
33411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33412    ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33414    break 2
33415  fi
33416done
33417  done
33418IFS=$as_save_IFS
33419
33420  test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33421  ;;
33422esac
33423fi
33424FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33425if test -n "$FIGDecodeDelegate"; then
33426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
33427$as_echo "$FIGDecodeDelegate" >&6; }
33428else
33429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33430$as_echo "no" >&6; }
33431fi
33432
33433
33434# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33435set dummy "$ConvertDelegateDefault"; ac_word=$2
33436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33437$as_echo_n "checking for $ac_word... " >&6; }
33438if ${ac_cv_path_ConvertDelegate+:} false; then :
33439  $as_echo_n "(cached) " >&6
33440else
33441  case $ConvertDelegate in
33442  [\\/]* | ?:[\\/]*)
33443  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33444  ;;
33445  *)
33446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33447for as_dir in $PATH
33448do
33449  IFS=$as_save_IFS
33450  test -z "$as_dir" && as_dir=.
33451    for ac_exec_ext in '' $ac_executable_extensions; do
33452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33453    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33455    break 2
33456  fi
33457done
33458  done
33459IFS=$as_save_IFS
33460
33461  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33462  ;;
33463esac
33464fi
33465ConvertDelegate=$ac_cv_path_ConvertDelegate
33466if test -n "$ConvertDelegate"; then
33467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33468$as_echo "$ConvertDelegate" >&6; }
33469else
33470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33471$as_echo "no" >&6; }
33472fi
33473
33474
33475# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33476set dummy "$DisplayDelegateDefault"; ac_word=$2
33477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33478$as_echo_n "checking for $ac_word... " >&6; }
33479if ${ac_cv_path_DisplayDelegate+:} false; then :
33480  $as_echo_n "(cached) " >&6
33481else
33482  case $DisplayDelegate in
33483  [\\/]* | ?:[\\/]*)
33484  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33485  ;;
33486  *)
33487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33488for as_dir in $PATH
33489do
33490  IFS=$as_save_IFS
33491  test -z "$as_dir" && as_dir=.
33492    for ac_exec_ext in '' $ac_executable_extensions; do
33493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33494    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33496    break 2
33497  fi
33498done
33499  done
33500IFS=$as_save_IFS
33501
33502  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33503  ;;
33504esac
33505fi
33506DisplayDelegate=$ac_cv_path_DisplayDelegate
33507if test -n "$DisplayDelegate"; then
33508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33509$as_echo "$DisplayDelegate" >&6; }
33510else
33511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33512$as_echo "no" >&6; }
33513fi
33514
33515
33516# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33517set dummy "$MogrifyDelegateDefault"; ac_word=$2
33518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33519$as_echo_n "checking for $ac_word... " >&6; }
33520if ${ac_cv_path_MogrifyDelegate+:} false; then :
33521  $as_echo_n "(cached) " >&6
33522else
33523  case $MogrifyDelegate in
33524  [\\/]* | ?:[\\/]*)
33525  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33526  ;;
33527  *)
33528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33529for as_dir in $PATH
33530do
33531  IFS=$as_save_IFS
33532  test -z "$as_dir" && as_dir=.
33533    for ac_exec_ext in '' $ac_executable_extensions; do
33534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33535    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33537    break 2
33538  fi
33539done
33540  done
33541IFS=$as_save_IFS
33542
33543  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33544  ;;
33545esac
33546fi
33547MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33548if test -n "$MogrifyDelegate"; then
33549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33550$as_echo "$MogrifyDelegate" >&6; }
33551else
33552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33553$as_echo "no" >&6; }
33554fi
33555
33556
33557# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33558set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
33559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33560$as_echo_n "checking for $ac_word... " >&6; }
33561if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
33562  $as_echo_n "(cached) " >&6
33563else
33564  case $GnuplotDecodeDelegate in
33565  [\\/]* | ?:[\\/]*)
33566  ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33567  ;;
33568  *)
33569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33570for as_dir in $PATH
33571do
33572  IFS=$as_save_IFS
33573  test -z "$as_dir" && as_dir=.
33574    for ac_exec_ext in '' $ac_executable_extensions; do
33575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33576    ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33578    break 2
33579  fi
33580done
33581  done
33582IFS=$as_save_IFS
33583
33584  test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33585  ;;
33586esac
33587fi
33588GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33589if test -n "$GnuplotDecodeDelegate"; then
33590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
33591$as_echo "$GnuplotDecodeDelegate" >&6; }
33592else
33593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33594$as_echo "no" >&6; }
33595fi
33596
33597
33598# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33599set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
33600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33601$as_echo_n "checking for $ac_word... " >&6; }
33602if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
33603  $as_echo_n "(cached) " >&6
33604else
33605  case $HPGLDecodeDelegate in
33606  [\\/]* | ?:[\\/]*)
33607  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33608  ;;
33609  *)
33610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33611for as_dir in $PATH
33612do
33613  IFS=$as_save_IFS
33614  test -z "$as_dir" && as_dir=.
33615    for ac_exec_ext in '' $ac_executable_extensions; do
33616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33617    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33619    break 2
33620  fi
33621done
33622  done
33623IFS=$as_save_IFS
33624
33625  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33626  ;;
33627esac
33628fi
33629HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33630if test -n "$HPGLDecodeDelegate"; then
33631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
33632$as_echo "$HPGLDecodeDelegate" >&6; }
33633else
33634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33635$as_echo "no" >&6; }
33636fi
33637
33638
33639# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33640set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
33641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33642$as_echo_n "checking for $ac_word... " >&6; }
33643if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
33644  $as_echo_n "(cached) " >&6
33645else
33646  case $HTMLDecodeDelegate in
33647  [\\/]* | ?:[\\/]*)
33648  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33649  ;;
33650  *)
33651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33652for as_dir in $PATH
33653do
33654  IFS=$as_save_IFS
33655  test -z "$as_dir" && as_dir=.
33656    for ac_exec_ext in '' $ac_executable_extensions; do
33657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33658    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33660    break 2
33661  fi
33662done
33663  done
33664IFS=$as_save_IFS
33665
33666  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33667  ;;
33668esac
33669fi
33670HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33671if test -n "$HTMLDecodeDelegate"; then
33672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
33673$as_echo "$HTMLDecodeDelegate" >&6; }
33674else
33675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33676$as_echo "no" >&6; }
33677fi
33678
33679
33680# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33681set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
33682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33683$as_echo_n "checking for $ac_word... " >&6; }
33684if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
33685  $as_echo_n "(cached) " >&6
33686else
33687  case $ILBMDecodeDelegate in
33688  [\\/]* | ?:[\\/]*)
33689  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33690  ;;
33691  *)
33692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33693for as_dir in $PATH
33694do
33695  IFS=$as_save_IFS
33696  test -z "$as_dir" && as_dir=.
33697    for ac_exec_ext in '' $ac_executable_extensions; do
33698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33699    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33701    break 2
33702  fi
33703done
33704  done
33705IFS=$as_save_IFS
33706
33707  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33708  ;;
33709esac
33710fi
33711ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33712if test -n "$ILBMDecodeDelegate"; then
33713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
33714$as_echo "$ILBMDecodeDelegate" >&6; }
33715else
33716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33717$as_echo "no" >&6; }
33718fi
33719
33720
33721# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33722set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
33723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33724$as_echo_n "checking for $ac_word... " >&6; }
33725if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
33726  $as_echo_n "(cached) " >&6
33727else
33728  case $ILBMEncodeDelegate in
33729  [\\/]* | ?:[\\/]*)
33730  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33731  ;;
33732  *)
33733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33734for as_dir in $PATH
33735do
33736  IFS=$as_save_IFS
33737  test -z "$as_dir" && as_dir=.
33738    for ac_exec_ext in '' $ac_executable_extensions; do
33739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33740    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33742    break 2
33743  fi
33744done
33745  done
33746IFS=$as_save_IFS
33747
33748  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33749  ;;
33750esac
33751fi
33752ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33753if test -n "$ILBMEncodeDelegate"; then
33754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
33755$as_echo "$ILBMEncodeDelegate" >&6; }
33756else
33757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33758$as_echo "no" >&6; }
33759fi
33760
33761
33762# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33763set dummy "$LPDelegateDefault"; ac_word=$2
33764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33765$as_echo_n "checking for $ac_word... " >&6; }
33766if ${ac_cv_path_LPDelegate+:} false; then :
33767  $as_echo_n "(cached) " >&6
33768else
33769  case $LPDelegate in
33770  [\\/]* | ?:[\\/]*)
33771  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33772  ;;
33773  *)
33774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33775for as_dir in $PATH
33776do
33777  IFS=$as_save_IFS
33778  test -z "$as_dir" && as_dir=.
33779    for ac_exec_ext in '' $ac_executable_extensions; do
33780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33781    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
33782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33783    break 2
33784  fi
33785done
33786  done
33787IFS=$as_save_IFS
33788
33789  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33790  ;;
33791esac
33792fi
33793LPDelegate=$ac_cv_path_LPDelegate
33794if test -n "$LPDelegate"; then
33795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
33796$as_echo "$LPDelegate" >&6; }
33797else
33798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33799$as_echo "no" >&6; }
33800fi
33801
33802
33803# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33804set dummy "$LPRDelegateDefault"; ac_word=$2
33805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33806$as_echo_n "checking for $ac_word... " >&6; }
33807if ${ac_cv_path_LPRDelegate+:} false; then :
33808  $as_echo_n "(cached) " >&6
33809else
33810  case $LPRDelegate in
33811  [\\/]* | ?:[\\/]*)
33812  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33813  ;;
33814  *)
33815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33816for as_dir in $PATH
33817do
33818  IFS=$as_save_IFS
33819  test -z "$as_dir" && as_dir=.
33820    for ac_exec_ext in '' $ac_executable_extensions; do
33821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33822    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
33823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33824    break 2
33825  fi
33826done
33827  done
33828IFS=$as_save_IFS
33829
33830  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33831  ;;
33832esac
33833fi
33834LPRDelegate=$ac_cv_path_LPRDelegate
33835if test -n "$LPRDelegate"; then
33836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33837$as_echo "$LPRDelegate" >&6; }
33838else
33839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840$as_echo "no" >&6; }
33841fi
33842
33843
33844# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33845set dummy "$LaunchDelegateDefault"; ac_word=$2
33846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33847$as_echo_n "checking for $ac_word... " >&6; }
33848if ${ac_cv_path_LaunchDelegate+:} false; then :
33849  $as_echo_n "(cached) " >&6
33850else
33851  case $LaunchDelegate in
33852  [\\/]* | ?:[\\/]*)
33853  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33854  ;;
33855  *)
33856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33857for as_dir in $PATH
33858do
33859  IFS=$as_save_IFS
33860  test -z "$as_dir" && as_dir=.
33861    for ac_exec_ext in '' $ac_executable_extensions; do
33862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33863    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33865    break 2
33866  fi
33867done
33868  done
33869IFS=$as_save_IFS
33870
33871  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33872  ;;
33873esac
33874fi
33875LaunchDelegate=$ac_cv_path_LaunchDelegate
33876if test -n "$LaunchDelegate"; then
33877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33878$as_echo "$LaunchDelegate" >&6; }
33879else
33880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33881$as_echo "no" >&6; }
33882fi
33883
33884
33885# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33886set dummy "$MANDelegateDefault"; ac_word=$2
33887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33888$as_echo_n "checking for $ac_word... " >&6; }
33889if ${ac_cv_path_MANDelegate+:} false; then :
33890  $as_echo_n "(cached) " >&6
33891else
33892  case $MANDelegate in
33893  [\\/]* | ?:[\\/]*)
33894  ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33895  ;;
33896  *)
33897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33898for as_dir in $PATH
33899do
33900  IFS=$as_save_IFS
33901  test -z "$as_dir" && as_dir=.
33902    for ac_exec_ext in '' $ac_executable_extensions; do
33903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33904    ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33906    break 2
33907  fi
33908done
33909  done
33910IFS=$as_save_IFS
33911
33912  test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33913  ;;
33914esac
33915fi
33916MANDelegate=$ac_cv_path_MANDelegate
33917if test -n "$MANDelegate"; then
33918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33919$as_echo "$MANDelegate" >&6; }
33920else
33921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33922$as_echo "no" >&6; }
33923fi
33924
33925
33926# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33927set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33929$as_echo_n "checking for $ac_word... " >&6; }
33930if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33931  $as_echo_n "(cached) " >&6
33932else
33933  case $MPEGDecodeDelegate in
33934  [\\/]* | ?:[\\/]*)
33935  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33936  ;;
33937  *)
33938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33939for as_dir in $PATH
33940do
33941  IFS=$as_save_IFS
33942  test -z "$as_dir" && as_dir=.
33943    for ac_exec_ext in '' $ac_executable_extensions; do
33944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33945    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33947    break 2
33948  fi
33949done
33950  done
33951IFS=$as_save_IFS
33952
33953  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33954  ;;
33955esac
33956fi
33957MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33958if test -n "$MPEGDecodeDelegate"; then
33959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33960$as_echo "$MPEGDecodeDelegate" >&6; }
33961else
33962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33963$as_echo "no" >&6; }
33964fi
33965
33966
33967# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33968set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33970$as_echo_n "checking for $ac_word... " >&6; }
33971if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33972  $as_echo_n "(cached) " >&6
33973else
33974  case $MPEGEncodeDelegate in
33975  [\\/]* | ?:[\\/]*)
33976  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33977  ;;
33978  *)
33979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33980for as_dir in $PATH
33981do
33982  IFS=$as_save_IFS
33983  test -z "$as_dir" && as_dir=.
33984    for ac_exec_ext in '' $ac_executable_extensions; do
33985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33986    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33988    break 2
33989  fi
33990done
33991  done
33992IFS=$as_save_IFS
33993
33994  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33995  ;;
33996esac
33997fi
33998MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33999if test -n "$MPEGEncodeDelegate"; then
34000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34001$as_echo "$MPEGEncodeDelegate" >&6; }
34002else
34003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34004$as_echo "no" >&6; }
34005fi
34006
34007
34008# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34009set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34011$as_echo_n "checking for $ac_word... " >&6; }
34012if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
34013  $as_echo_n "(cached) " >&6
34014else
34015  case $MrSIDDecodeDelegate in
34016  [\\/]* | ?:[\\/]*)
34017  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34018  ;;
34019  *)
34020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34021for as_dir in $PATH
34022do
34023  IFS=$as_save_IFS
34024  test -z "$as_dir" && as_dir=.
34025    for ac_exec_ext in '' $ac_executable_extensions; do
34026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34027    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34029    break 2
34030  fi
34031done
34032  done
34033IFS=$as_save_IFS
34034
34035  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34036  ;;
34037esac
34038fi
34039MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34040if test -n "$MrSIDDecodeDelegate"; then
34041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34042$as_echo "$MrSIDDecodeDelegate" >&6; }
34043else
34044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34045$as_echo "no" >&6; }
34046fi
34047
34048
34049# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34050set dummy "$MVDelegateDefault"; ac_word=$2
34051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34052$as_echo_n "checking for $ac_word... " >&6; }
34053if ${ac_cv_path_MVDelegate+:} false; then :
34054  $as_echo_n "(cached) " >&6
34055else
34056  case $MVDelegate in
34057  [\\/]* | ?:[\\/]*)
34058  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34059  ;;
34060  *)
34061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34062for as_dir in $PATH
34063do
34064  IFS=$as_save_IFS
34065  test -z "$as_dir" && as_dir=.
34066    for ac_exec_ext in '' $ac_executable_extensions; do
34067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34068    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
34069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34070    break 2
34071  fi
34072done
34073  done
34074IFS=$as_save_IFS
34075
34076  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34077  ;;
34078esac
34079fi
34080MVDelegate=$ac_cv_path_MVDelegate
34081if test -n "$MVDelegate"; then
34082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
34083$as_echo "$MVDelegate" >&6; }
34084else
34085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34086$as_echo "no" >&6; }
34087fi
34088
34089
34090# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34091set dummy "$PCLDelegateDefault"; ac_word=$2
34092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34093$as_echo_n "checking for $ac_word... " >&6; }
34094if ${ac_cv_path_PCLDelegate+:} false; then :
34095  $as_echo_n "(cached) " >&6
34096else
34097  case $PCLDelegate in
34098  [\\/]* | ?:[\\/]*)
34099  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34100  ;;
34101  *)
34102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34103for as_dir in $PATH
34104do
34105  IFS=$as_save_IFS
34106  test -z "$as_dir" && as_dir=.
34107    for ac_exec_ext in '' $ac_executable_extensions; do
34108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34109    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
34110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34111    break 2
34112  fi
34113done
34114  done
34115IFS=$as_save_IFS
34116
34117  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34118  ;;
34119esac
34120fi
34121PCLDelegate=$ac_cv_path_PCLDelegate
34122if test -n "$PCLDelegate"; then
34123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34124$as_echo "$PCLDelegate" >&6; }
34125else
34126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34127$as_echo "no" >&6; }
34128fi
34129
34130
34131# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34132set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
34133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34134$as_echo_n "checking for $ac_word... " >&6; }
34135if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
34136  $as_echo_n "(cached) " >&6
34137else
34138  case $PGPDecodeDelegate in
34139  [\\/]* | ?:[\\/]*)
34140  ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34141  ;;
34142  *)
34143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34144for as_dir in $PATH
34145do
34146  IFS=$as_save_IFS
34147  test -z "$as_dir" && as_dir=.
34148    for ac_exec_ext in '' $ac_executable_extensions; do
34149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34150    ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34152    break 2
34153  fi
34154done
34155  done
34156IFS=$as_save_IFS
34157
34158  test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34159  ;;
34160esac
34161fi
34162PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34163if test -n "$PGPDecodeDelegate"; then
34164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
34165$as_echo "$PGPDecodeDelegate" >&6; }
34166else
34167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34168$as_echo "no" >&6; }
34169fi
34170
34171
34172# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34173set dummy "$POVDelegateDefault"; ac_word=$2
34174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34175$as_echo_n "checking for $ac_word... " >&6; }
34176if ${ac_cv_path_POVDelegate+:} false; then :
34177  $as_echo_n "(cached) " >&6
34178else
34179  case $POVDelegate in
34180  [\\/]* | ?:[\\/]*)
34181  ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34182  ;;
34183  *)
34184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34185for as_dir in $PATH
34186do
34187  IFS=$as_save_IFS
34188  test -z "$as_dir" && as_dir=.
34189    for ac_exec_ext in '' $ac_executable_extensions; do
34190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34191    ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
34192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34193    break 2
34194  fi
34195done
34196  done
34197IFS=$as_save_IFS
34198
34199  test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34200  ;;
34201esac
34202fi
34203POVDelegate=$ac_cv_path_POVDelegate
34204if test -n "$POVDelegate"; then
34205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
34206$as_echo "$POVDelegate" >&6; }
34207else
34208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34209$as_echo "no" >&6; }
34210fi
34211
34212
34213for ac_prog in gsx gsc "$PSDelegateDefault"
34214do
34215  # Extract the first word of "$ac_prog", so it can be a program name with args.
34216set dummy $ac_prog; ac_word=$2
34217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34218$as_echo_n "checking for $ac_word... " >&6; }
34219if ${ac_cv_path_PSDelegate+:} false; then :
34220  $as_echo_n "(cached) " >&6
34221else
34222  case $PSDelegate in
34223  [\\/]* | ?:[\\/]*)
34224  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34225  ;;
34226  *)
34227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34228for as_dir in $PATH
34229do
34230  IFS=$as_save_IFS
34231  test -z "$as_dir" && as_dir=.
34232    for ac_exec_ext in '' $ac_executable_extensions; do
34233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34234    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
34235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34236    break 2
34237  fi
34238done
34239  done
34240IFS=$as_save_IFS
34241
34242  ;;
34243esac
34244fi
34245PSDelegate=$ac_cv_path_PSDelegate
34246if test -n "$PSDelegate"; then
34247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34248$as_echo "$PSDelegate" >&6; }
34249else
34250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34251$as_echo "no" >&6; }
34252fi
34253
34254
34255  test -n "$PSDelegate" && break
34256done
34257test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34258
34259# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34260set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
34261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34262$as_echo_n "checking for $ac_word... " >&6; }
34263if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
34264  $as_echo_n "(cached) " >&6
34265else
34266  case $RLEEncodeDelegate in
34267  [\\/]* | ?:[\\/]*)
34268  ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34269  ;;
34270  *)
34271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34272for as_dir in $PATH
34273do
34274  IFS=$as_save_IFS
34275  test -z "$as_dir" && as_dir=.
34276    for ac_exec_ext in '' $ac_executable_extensions; do
34277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34278    ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34280    break 2
34281  fi
34282done
34283  done
34284IFS=$as_save_IFS
34285
34286  test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34287  ;;
34288esac
34289fi
34290RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34291if test -n "$RLEEncodeDelegate"; then
34292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
34293$as_echo "$RLEEncodeDelegate" >&6; }
34294else
34295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34296$as_echo "no" >&6; }
34297fi
34298
34299
34300# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34301set dummy "$RMDelegateDefault"; ac_word=$2
34302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34303$as_echo_n "checking for $ac_word... " >&6; }
34304if ${ac_cv_path_RMDelegate+:} false; then :
34305  $as_echo_n "(cached) " >&6
34306else
34307  case $RMDelegate in
34308  [\\/]* | ?:[\\/]*)
34309  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34310  ;;
34311  *)
34312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34313for as_dir in $PATH
34314do
34315  IFS=$as_save_IFS
34316  test -z "$as_dir" && as_dir=.
34317    for ac_exec_ext in '' $ac_executable_extensions; do
34318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34319    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34321    break 2
34322  fi
34323done
34324  done
34325IFS=$as_save_IFS
34326
34327  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34328  ;;
34329esac
34330fi
34331RMDelegate=$ac_cv_path_RMDelegate
34332if test -n "$RMDelegate"; then
34333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34334$as_echo "$RMDelegate" >&6; }
34335else
34336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34337$as_echo "no" >&6; }
34338fi
34339
34340
34341# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34342set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34344$as_echo_n "checking for $ac_word... " >&6; }
34345if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34346  $as_echo_n "(cached) " >&6
34347else
34348  case $RSVGDecodeDelegate in
34349  [\\/]* | ?:[\\/]*)
34350  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34351  ;;
34352  *)
34353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34354for as_dir in $PATH
34355do
34356  IFS=$as_save_IFS
34357  test -z "$as_dir" && as_dir=.
34358    for ac_exec_ext in '' $ac_executable_extensions; do
34359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34360    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34362    break 2
34363  fi
34364done
34365  done
34366IFS=$as_save_IFS
34367
34368  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34369  ;;
34370esac
34371fi
34372RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34373if test -n "$RSVGDecodeDelegate"; then
34374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34375$as_echo "$RSVGDecodeDelegate" >&6; }
34376else
34377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34378$as_echo "no" >&6; }
34379fi
34380
34381
34382# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34383set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
34384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34385$as_echo_n "checking for $ac_word... " >&6; }
34386if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
34387  $as_echo_n "(cached) " >&6
34388else
34389  case $SCANDecodeDelegate in
34390  [\\/]* | ?:[\\/]*)
34391  ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34392  ;;
34393  *)
34394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34395for as_dir in $PATH
34396do
34397  IFS=$as_save_IFS
34398  test -z "$as_dir" && as_dir=.
34399    for ac_exec_ext in '' $ac_executable_extensions; do
34400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34401    ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34403    break 2
34404  fi
34405done
34406  done
34407IFS=$as_save_IFS
34408
34409  test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34410  ;;
34411esac
34412fi
34413SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34414if test -n "$SCANDecodeDelegate"; then
34415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
34416$as_echo "$SCANDecodeDelegate" >&6; }
34417else
34418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34419$as_echo "no" >&6; }
34420fi
34421
34422
34423# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34424set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34426$as_echo_n "checking for $ac_word... " >&6; }
34427if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34428  $as_echo_n "(cached) " >&6
34429else
34430  case $SVGDecodeDelegate in
34431  [\\/]* | ?:[\\/]*)
34432  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34433  ;;
34434  *)
34435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34436for as_dir in $PATH
34437do
34438  IFS=$as_save_IFS
34439  test -z "$as_dir" && as_dir=.
34440    for ac_exec_ext in '' $ac_executable_extensions; do
34441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34442    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34444    break 2
34445  fi
34446done
34447  done
34448IFS=$as_save_IFS
34449
34450  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34451  ;;
34452esac
34453fi
34454SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34455if test -n "$SVGDecodeDelegate"; then
34456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34457$as_echo "$SVGDecodeDelegate" >&6; }
34458else
34459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34460$as_echo "no" >&6; }
34461fi
34462
34463
34464# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34465set dummy "$TXTDelegateDefault"; ac_word=$2
34466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34467$as_echo_n "checking for $ac_word... " >&6; }
34468if ${ac_cv_path_TXTDelegate+:} false; then :
34469  $as_echo_n "(cached) " >&6
34470else
34471  case $TXTDelegate in
34472  [\\/]* | ?:[\\/]*)
34473  ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34474  ;;
34475  *)
34476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34477for as_dir in $PATH
34478do
34479  IFS=$as_save_IFS
34480  test -z "$as_dir" && as_dir=.
34481    for ac_exec_ext in '' $ac_executable_extensions; do
34482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34483    ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
34484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34485    break 2
34486  fi
34487done
34488  done
34489IFS=$as_save_IFS
34490
34491  test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34492  ;;
34493esac
34494fi
34495TXTDelegate=$ac_cv_path_TXTDelegate
34496if test -n "$TXTDelegate"; then
34497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
34498$as_echo "$TXTDelegate" >&6; }
34499else
34500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34501$as_echo "no" >&6; }
34502fi
34503
34504
34505# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34506set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34508$as_echo_n "checking for $ac_word... " >&6; }
34509if ${ac_cv_path_UniconvertorDelegate+:} false; then :
34510  $as_echo_n "(cached) " >&6
34511else
34512  case $UniconvertorDelegate in
34513  [\\/]* | ?:[\\/]*)
34514  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34515  ;;
34516  *)
34517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34518for as_dir in $PATH
34519do
34520  IFS=$as_save_IFS
34521  test -z "$as_dir" && as_dir=.
34522    for ac_exec_ext in '' $ac_executable_extensions; do
34523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34524    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34526    break 2
34527  fi
34528done
34529  done
34530IFS=$as_save_IFS
34531
34532  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34533  ;;
34534esac
34535fi
34536UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34537if test -n "$UniconvertorDelegate"; then
34538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34539$as_echo "$UniconvertorDelegate" >&6; }
34540else
34541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34542$as_echo "no" >&6; }
34543fi
34544
34545
34546# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34547set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
34548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34549$as_echo_n "checking for $ac_word... " >&6; }
34550if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
34551  $as_echo_n "(cached) " >&6
34552else
34553  case $WMFDecodeDelegate in
34554  [\\/]* | ?:[\\/]*)
34555  ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34556  ;;
34557  *)
34558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34559for as_dir in $PATH
34560do
34561  IFS=$as_save_IFS
34562  test -z "$as_dir" && as_dir=.
34563    for ac_exec_ext in '' $ac_executable_extensions; do
34564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34565    ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34567    break 2
34568  fi
34569done
34570  done
34571IFS=$as_save_IFS
34572
34573  test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34574  ;;
34575esac
34576fi
34577WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34578if test -n "$WMFDecodeDelegate"; then
34579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
34580$as_echo "$WMFDecodeDelegate" >&6; }
34581else
34582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34583$as_echo "no" >&6; }
34584fi
34585
34586
34587# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34588set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
34589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34590$as_echo_n "checking for $ac_word... " >&6; }
34591if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
34592  $as_echo_n "(cached) " >&6
34593else
34594  case $WWWDecodeDelegate in
34595  [\\/]* | ?:[\\/]*)
34596  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34597  ;;
34598  *)
34599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34600for as_dir in $PATH
34601do
34602  IFS=$as_save_IFS
34603  test -z "$as_dir" && as_dir=.
34604    for ac_exec_ext in '' $ac_executable_extensions; do
34605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34606    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34608    break 2
34609  fi
34610done
34611  done
34612IFS=$as_save_IFS
34613
34614  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34615  ;;
34616esac
34617fi
34618WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34619if test -n "$WWWDecodeDelegate"; then
34620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
34621$as_echo "$WWWDecodeDelegate" >&6; }
34622else
34623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34624$as_echo "no" >&6; }
34625fi
34626
34627
34628# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34629set dummy "$XPSDelegateDefault"; ac_word=$2
34630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34631$as_echo_n "checking for $ac_word... " >&6; }
34632if ${ac_cv_path_XPSDelegate+:} false; then :
34633  $as_echo_n "(cached) " >&6
34634else
34635  case $XPSDelegate in
34636  [\\/]* | ?:[\\/]*)
34637  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34638  ;;
34639  *)
34640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34641for as_dir in $PATH
34642do
34643  IFS=$as_save_IFS
34644  test -z "$as_dir" && as_dir=.
34645    for ac_exec_ext in '' $ac_executable_extensions; do
34646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34647    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
34648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34649    break 2
34650  fi
34651done
34652  done
34653IFS=$as_save_IFS
34654
34655  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34656  ;;
34657esac
34658fi
34659XPSDelegate=$ac_cv_path_XPSDelegate
34660if test -n "$XPSDelegate"; then
34661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
34662$as_echo "$XPSDelegate" >&6; }
34663else
34664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34665$as_echo "no" >&6; }
34666fi
34667
34668
34669# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34670set dummy "$ZipDelegateDefault"; ac_word=$2
34671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34672$as_echo_n "checking for $ac_word... " >&6; }
34673if ${ac_cv_path_ZipDelegate+:} false; then :
34674  $as_echo_n "(cached) " >&6
34675else
34676  case $ZipDelegate in
34677  [\\/]* | ?:[\\/]*)
34678  ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34679  ;;
34680  *)
34681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34682for as_dir in $PATH
34683do
34684  IFS=$as_save_IFS
34685  test -z "$as_dir" && as_dir=.
34686    for ac_exec_ext in '' $ac_executable_extensions; do
34687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34688    ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
34689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34690    break 2
34691  fi
34692done
34693  done
34694IFS=$as_save_IFS
34695
34696  test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34697  ;;
34698esac
34699fi
34700ZipDelegate=$ac_cv_path_ZipDelegate
34701if test -n "$ZipDelegate"; then
34702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
34703$as_echo "$ZipDelegate" >&6; }
34704else
34705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34706$as_echo "no" >&6; }
34707fi
34708
34709
34710
34711# Prefer lpr to lp; lp needs options tacked on.
34712if test "$LPRDelegate" != no; then
34713    PrintDelegate="$LPRDelegate"
34714else
34715    PrintDelegate="$LPDelegate -c -s"
34716fi
34717
34718
34719# Installed ImageMagick utiltity paths
34720ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34721DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34722MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34723
34724# Set delegate booleans
34725have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34726have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34727have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34728have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34729have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
34730have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
34731have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34732have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
34733have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34734have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34735
34736#
34737# Test for font directories
34738#
34739type_include_files=''
34740
34741# Dejavu fonts.
34742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34743$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34744dejavu_font_dir=''
34745if test "${with_dejavu_font_dir}" != 'default'; then
34746  dejavu_font_dir="${with_dejavu_font_dir}/"
34747else
34748  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34749    if test -f "${font_dir}DejaVuSerif.ttf"; then
34750      dejavu_font_dir="${font_dir}"
34751      break 1
34752    fi
34753  done
34754fi
34755if test "${dejavu_font_dir}x" != 'x'; then
34756  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
34757  { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34758$as_echo "$as_me: $dejavu_font_dir" >&6;}
34759else
34760  { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34761$as_echo "$as_me: not found!" >&6;};
34762fi
34763
34764
34765# Windows
34766windows_font_dir=''
34767if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34768   windows_font_dir="${with_windows_font_dir}/"
34769fi
34770if test "${windows_font_dir}x" != 'x'; then
34771    if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34772      windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34773    fi
34774    if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34775      windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34776    fi
34777    if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34778      windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34779    fi
34780fi
34781if test "${windows_font_dir}x" != 'x'; then
34782  type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34783fi
34784
34785
34786# Ghostscript
34787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34788$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34789ghostscript_font_dir=''
34790if test "${with_gs_font_dir}" != 'default'; then
34791  ghostscript_font_dir="${with_gs_font_dir}/"
34792else
34793  if test "${native_win32_build}" = 'yes'; then
34794    # Native Windows Build
34795    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34796      if test -f "${font_dir}a010013l.pfb"; then
34797        ghostscript_font_dir="$font_dir"
34798        break 1
34799      fi
34800    done
34801    if test "${PSDelegate}" != 'gswin32c'; then
34802      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34803    fi
34804  else
34805    # Linux / Mac OS X / Unix Build
34806    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
34807      if test -f "${font_dir}a010013l.pfb"; then
34808        ghostscript_font_dir="${font_dir}"
34809        break 1
34810      fi
34811    done
34812    if test "${ghostscript_font_dir}x" = 'x'; then
34813      if test "$PSDelegate" != 'gs'; then
34814        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34815      fi
34816    fi
34817  fi
34818fi
34819if test "${ghostscript_font_dir}x" != 'x'; then
34820  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34821  { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34822$as_echo "$as_me: $ghostscript_font_dir" >&6;}
34823else
34824  { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34825$as_echo "$as_me: not found!" >&6;};
34826fi
34827
34828case "${build_os}" in
34829  mingw* )
34830    PSDelegate=`$WinPathScript "$PSDelegate" 1`
34831    ;;
34832esac
34833
34834
34835
34836#
34837# Handle case where user doesn't want frozen paths
34838#
34839if test "$with_frozenpaths" != 'yes'; then
34840  # Re-set delegate definitions to default (no paths)
34841  AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34842  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34843  BZIPDelegate="$BZIPDelegateDefault"
34844  BrowseDelegate="$BrowseDelegateDefault"
34845  CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34846  CatDelegate="$CatDelegateDefault"
34847  ConvertDelegate="$ConvertDelegateDefault"
34848  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34849  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34850  EchoDelegate="$EchoDelegateDefault"
34851  EditorDelegate="$EditorDelegateDefault"
34852  FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34853  GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34854  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34855  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34856  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34857  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34858  LPDelegate="$LPDelegateDefault"
34859  LaunchDelegate="$LaunchDelegateDefault"
34860  MANDelegate="$MANDelegateDefault"
34861  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34862  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34863  MogrifyDelegate="$MogrifyDelegateDefault"
34864  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34865  MVDelegate="$MVDelegateDefault"
34866  PCLDelegate="$PCLDelegateDefault"
34867  PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34868  POVDelegate="$POVDelegateDefault"
34869  PSDelegate="$PSDelegateDefault"
34870  RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34871  RMDelegate="$RMDelegateDefault"
34872  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34873  SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34874  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
34875  ShowImageDelegate="$ShowImageDelegateDefault"
34876  TXTDelegate="$TXTDelegateDefault"
34877  UniconvertorDelegate="$UniconvertorDelegateDefault"
34878  WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34879  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34880  XPSDelegate="$XPSDelegateDefault"
34881  ZipDelegate="$ZipDelegateDefault"
34882fi
34883
34884# Delegate substitutions
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925#
34926# RPM support.
34927#
34928RPM=''
34929for ac_prog in gnutar gtar tar
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_TAR+:} false; then :
34936  $as_echo_n "(cached) " >&6
34937else
34938  if test -n "$TAR"; then
34939  ac_cv_prog_TAR="$TAR" # 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_TAR="$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
34958TAR=$ac_cv_prog_TAR
34959if test -n "$TAR"; then
34960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
34961$as_echo "$TAR" >&6; }
34962else
34963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34964$as_echo "no" >&6; }
34965fi
34966
34967
34968  test -n "$TAR" && break
34969done
34970
34971for ac_prog in perl
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_PERL+:} false; then :
34978  $as_echo_n "(cached) " >&6
34979else
34980  if test -n "$PERL"; then
34981  ac_cv_prog_PERL="$PERL" # 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_PERL="$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
35000PERL=$ac_cv_prog_PERL
35001if test -n "$PERL"; then
35002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35003$as_echo "$PERL" >&6; }
35004else
35005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35006$as_echo "no" >&6; }
35007fi
35008
35009
35010  test -n "$PERL" && break
35011done
35012
35013for ac_prog in rpmbuild rpm
35014do
35015  # Extract the first word of "$ac_prog", so it can be a program name with args.
35016set dummy $ac_prog; ac_word=$2
35017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35018$as_echo_n "checking for $ac_word... " >&6; }
35019if ${ac_cv_prog_RPM+:} false; then :
35020  $as_echo_n "(cached) " >&6
35021else
35022  if test -n "$RPM"; then
35023  ac_cv_prog_RPM="$RPM" # Let the user override the test.
35024else
35025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35026for as_dir in $PATH
35027do
35028  IFS=$as_save_IFS
35029  test -z "$as_dir" && as_dir=.
35030    for ac_exec_ext in '' $ac_executable_extensions; do
35031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35032    ac_cv_prog_RPM="$ac_prog"
35033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35034    break 2
35035  fi
35036done
35037  done
35038IFS=$as_save_IFS
35039
35040fi
35041fi
35042RPM=$ac_cv_prog_RPM
35043if test -n "$RPM"; then
35044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
35045$as_echo "$RPM" >&6; }
35046else
35047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35048$as_echo "no" >&6; }
35049fi
35050
35051
35052  test -n "$RPM" && break
35053done
35054
35055
35056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35057
35058
35059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35060
35061
35062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35063
35064
35065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35066
35067
35068 if test "x$RPM" != "x" ; then
35069  RPM_DELEGATE_TRUE=
35070  RPM_DELEGATE_FALSE='#'
35071else
35072  RPM_DELEGATE_TRUE='#'
35073  RPM_DELEGATE_FALSE=
35074fi
35075
35076
35077#
35078# 7ZIP support (http://p7zip.sourceforge.net/)
35079#
35080P7ZIP=''
35081for ac_prog in 7za
35082do
35083  # Extract the first word of "$ac_prog", so it can be a program name with args.
35084set dummy $ac_prog; ac_word=$2
35085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35086$as_echo_n "checking for $ac_word... " >&6; }
35087if ${ac_cv_prog_P7ZIP+:} false; then :
35088  $as_echo_n "(cached) " >&6
35089else
35090  if test -n "$P7ZIP"; then
35091  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35092else
35093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35094for as_dir in $PATH
35095do
35096  IFS=$as_save_IFS
35097  test -z "$as_dir" && as_dir=.
35098    for ac_exec_ext in '' $ac_executable_extensions; do
35099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35100    ac_cv_prog_P7ZIP="$ac_prog"
35101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35102    break 2
35103  fi
35104done
35105  done
35106IFS=$as_save_IFS
35107
35108fi
35109fi
35110P7ZIP=$ac_cv_prog_P7ZIP
35111if test -n "$P7ZIP"; then
35112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35113$as_echo "$P7ZIP" >&6; }
35114else
35115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35116$as_echo "no" >&6; }
35117fi
35118
35119
35120  test -n "$P7ZIP" && break
35121done
35122
35123
35124 if test "x$P7ZIP" != "x" ; then
35125  P7ZIP_DELEGATE_TRUE=
35126  P7ZIP_DELEGATE_FALSE='#'
35127else
35128  P7ZIP_DELEGATE_TRUE='#'
35129  P7ZIP_DELEGATE_FALSE=
35130fi
35131
35132
35133#
35134# ZIP support (http://www.info-zip.org/Zip.html)
35135#
35136ZIP=''
35137for ac_prog in zip
35138do
35139  # Extract the first word of "$ac_prog", so it can be a program name with args.
35140set dummy $ac_prog; ac_word=$2
35141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35142$as_echo_n "checking for $ac_word... " >&6; }
35143if ${ac_cv_prog_ZIP+:} false; then :
35144  $as_echo_n "(cached) " >&6
35145else
35146  if test -n "$ZIP"; then
35147  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35148else
35149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35150for as_dir in $PATH
35151do
35152  IFS=$as_save_IFS
35153  test -z "$as_dir" && as_dir=.
35154    for ac_exec_ext in '' $ac_executable_extensions; do
35155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35156    ac_cv_prog_ZIP="$ac_prog"
35157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35158    break 2
35159  fi
35160done
35161  done
35162IFS=$as_save_IFS
35163
35164fi
35165fi
35166ZIP=$ac_cv_prog_ZIP
35167if test -n "$ZIP"; then
35168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35169$as_echo "$ZIP" >&6; }
35170else
35171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35172$as_echo "no" >&6; }
35173fi
35174
35175
35176  test -n "$ZIP" && break
35177done
35178
35179
35180 if test "x$ZIP" != "x" ; then
35181  ZIP_DELEGATE_TRUE=
35182  ZIP_DELEGATE_FALSE='#'
35183else
35184  ZIP_DELEGATE_TRUE='#'
35185  ZIP_DELEGATE_FALSE=
35186fi
35187
35188
35189#
35190# GhostPCL related configuration.
35191#
35192PCLColorDevice=ppmraw
35193PCLCMYKDevice=pamcmyk32
35194PCLMonoDevice=pbmraw
35195if test -z "$PCLVersion"; then
35196    PCLVersion='unknown'
35197fi
35198if test $have_pcl = 'yes'; then
35199    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35200$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35202$as_echo_n "checking for PCL... " >&6; }
35203    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35204$as_echo "$as_me: " >&6;}
35205    # PCLColorDevice
35206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35207$as_echo_n "checking for pcl color device... " >&6; }
35208    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35209        :
35210    else
35211        PCLColorDevice=ppmraw
35212    fi
35213    { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35214$as_echo "$as_me: $PCLColorDevice" >&6;}
35215
35216    # PCLCMYKDevice
35217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35218$as_echo_n "checking for pcl CMYK device... " >&6; }
35219    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35220        :
35221    else
35222        PCLCMYKDevice=$PCLColorDevice
35223    fi
35224    { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35225$as_echo "$as_me: $PCLCMYKDevice" >&6;}
35226
35227    # PCLMonoDevice
35228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35229$as_echo_n "checking for pcl mono device... " >&6; }
35230    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35231        :
35232    else
35233        PCLMonoDevice=$PCLColorDevice
35234    fi
35235    { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35236$as_echo "$as_me: $PCLMonoDevice" >&6;}
35237fi
35238
35239
35240
35241
35242
35243
35244#
35245# GhostXPS related configuration.
35246#
35247XPSColorDevice=ppmraw
35248XPSCMYKDevice=bmpsep8
35249XPSMonoDevice=pbmraw
35250if test -z "$XPSVersion"; then
35251    XPSVersion='unknown'
35252fi
35253if test $have_xps = 'yes'; then
35254    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35255$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35257$as_echo_n "checking for XPS... " >&6; }
35258    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35259$as_echo "$as_me: " >&6;}
35260    # XPSColorDevice
35261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35262$as_echo_n "checking for xps color device... " >&6; }
35263    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35264        :
35265    else
35266        XPSColorDevice=ppmraw
35267    fi
35268    { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35269$as_echo "$as_me: $XPSColorDevice" >&6;}
35270
35271    # XPSCMYKDevice
35272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35273$as_echo_n "checking for xps CMYK device... " >&6; }
35274    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35275        :
35276    else
35277        XPSCMYKDevice=$XPSColorDevice
35278    fi
35279    { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35280$as_echo "$as_me: $XPSCMYKDevice" >&6;}
35281
35282    # XPSMonoDevice
35283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35284$as_echo_n "checking for xps mono device... " >&6; }
35285    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35286        :
35287    else
35288        XPSMonoDevice=$XPSColorDevice
35289    fi
35290    { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35291$as_echo "$as_me: $XPSMonoDevice" >&6;}
35292fi
35293
35294
35295
35296
35297
35298
35299#
35300# Ghostscript related configuration.
35301#
35302GSAlphaDevice=pngalpha
35303GSColorDevice=pnmraw
35304GSCMYKDevice=pam
35305GSMonoDevice=pbmraw
35306GSPDFDevice=pdfwrite
35307GSPSDevice=pswrite
35308GSEPSDevice=epswrite
35309GSVersion='unknown'
35310if test $have_gs = 'yes'; then
35311    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35312$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35314$as_echo_n "checking for Ghostscript... " >&6; }
35315    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35316$as_echo "$as_me: " >&6;}
35317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35318$as_echo_n "checking for Ghostscript version... " >&6; }
35319    if GSVersion=`$PSDelegate --version`; then
35320        :
35321    else
35322        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35323    fi
35324    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35325$as_echo "$as_me: $GSVersion" >&6;}
35326
35327    # GSAlphaDevice
35328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35329$as_echo_n "checking for gs alpha device... " >&6; }
35330    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35331        :
35332    else
35333        GSAlphaDevice=pnmraw
35334    fi
35335    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35336$as_echo "$as_me: $GSAlphaDevice" >&6;}
35337
35338    # GSColorDevice
35339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35340$as_echo_n "checking for gs color device... " >&6; }
35341    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35342        :
35343    else
35344        GSColorDevice=pnmraw
35345    fi
35346    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35347$as_echo "$as_me: $GSColorDevice" >&6;}
35348
35349    # GSCMYKDevice
35350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35351$as_echo_n "checking for gs CMYK device... " >&6; }
35352    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35353        :
35354    else
35355        GSCMYKDevice=bmpsep8
35356    fi
35357    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35358$as_echo "$as_me: $GSCMYKDevice" >&6;}
35359
35360    # GSMonoDevice
35361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35362$as_echo_n "checking for gs mono device... " >&6; }
35363    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35364        :
35365    else
35366        GSMonoDevice=$GSColorDevice
35367    fi
35368    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35369$as_echo "$as_me: $GSMonoDevice" >&6;}
35370
35371    # GSPDFDevice
35372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35373$as_echo_n "checking for gs PDF writing device... " >&6; }
35374    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35375        :
35376    else
35377        GSPDFDevice=nodevice
35378    fi
35379        { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35380$as_echo "$as_me: $GSPDFDevice" >&6;}
35381
35382    # GSPSDevice
35383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35384$as_echo_n "checking for gs PS writing device... " >&6; }
35385    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35386        :
35387    else
35388        GSPSDevice=nodevice
35389    fi
35390    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35391$as_echo "$as_me: $GSPSDevice" >&6;}
35392
35393    # GSEPSDevice
35394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35395$as_echo_n "checking for gs EPS writing device... " >&6; }
35396    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35397        :
35398    else
35399        GSEPSDevice=nodevice
35400    fi
35401    { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35402$as_echo "$as_me: $GSEPSDevice" >&6;}
35403fi
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414#
35415# PerlMagick-related configuration
35416#
35417
35418# Look for PERL if PerlMagick requested
35419# If name/path of desired PERL interpreter is specified, look for that one first
35420have_perl='no'
35421if test "$with_perl" != 'no'; then
35422    { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35423$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35425$as_echo_n "checking for Perl... " >&6; }
35426    { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35427$as_echo "$as_me: " >&6;}
35428    if test "$with_perl" != 'yes'; then
35429        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35430$as_echo_n "checking for perl... " >&6; }
35431if ${ac_cv_path_PERL+:} false; then :
35432  $as_echo_n "(cached) " >&6
35433else
35434  ac_cv_path_PERL="$with_perl"
35435fi
35436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
35437$as_echo "$ac_cv_path_PERL" >&6; };
35438        PERL=$ac_cv_path_PERL
35439                have_perl="$ac_cv_path_PERL"
35440    else
35441        for ac_prog in perl perl5
35442do
35443  # Extract the first word of "$ac_prog", so it can be a program name with args.
35444set dummy $ac_prog; ac_word=$2
35445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35446$as_echo_n "checking for $ac_word... " >&6; }
35447if ${ac_cv_path_PERL+:} false; then :
35448  $as_echo_n "(cached) " >&6
35449else
35450  case $PERL in
35451  [\\/]* | ?:[\\/]*)
35452  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35453  ;;
35454  *)
35455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35456for as_dir in $PATH
35457do
35458  IFS=$as_save_IFS
35459  test -z "$as_dir" && as_dir=.
35460    for ac_exec_ext in '' $ac_executable_extensions; do
35461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35462    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
35463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35464    break 2
35465  fi
35466done
35467  done
35468IFS=$as_save_IFS
35469
35470  ;;
35471esac
35472fi
35473PERL=$ac_cv_path_PERL
35474if test -n "$PERL"; then
35475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35476$as_echo "$PERL" >&6; }
35477else
35478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35479$as_echo "no" >&6; }
35480fi
35481
35482
35483  test -n "$PERL" && break
35484done
35485        if test "$ac_cv_path_PERL"; then
35486            have_perl="$ac_cv_path_PERL"
35487        fi
35488    fi
35489fi
35490
35491if test "$with_perl" != 'yes' ; then
35492    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35493fi
35494
35495PERL_SUPPORTS_DESTDIR='no'
35496
35497with_perl_static='no'
35498with_perl_dynamic='no'
35499if test "$have_perl" != 'no'; then
35500    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35501        with_perl_static='yes'
35502    fi
35503    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35504        with_perl_dynamic='yes'
35505    fi
35506    # Is PERL's MakeMaker new enough to support DESTDIR?
35507
35508
35509
35510
35511    if test -n "$PERL"; then :
35512
35513        ax_perl_version="5.8.1"
35514
35515        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35516$as_echo_n "checking for perl version... " >&6; }
35517
35518        perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35519
35520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35521$as_echo "$perl_version" >&6; }
35522
35523	PERL_VERSION=$perl_version
35524
35525
35526
35527
35528
35529  # Used to indicate true or false condition
35530  ax_compare_version=false
35531
35532  # Convert the two version strings to be compared into a format that
35533  # allows a simple string comparison.  The end result is that a version
35534  # string of the form 1.12.5-r617 will be converted to the form
35535  # 0001001200050617.  In other words, each number is zero padded to four
35536  # digits, and non digits are removed.
35537
35538  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35539                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35540                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35541                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35542                     -e 's/[^0-9]//g'`
35543
35544
35545  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35546                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35547                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35548                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35549                     -e 's/[^0-9]//g'`
35550
35551
35552    ax_compare_version=`echo "x$ax_compare_version_A
35553x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35554
35555
35556
35557    if test "$ax_compare_version" = "true" ; then
35558
35559	    :
35560            PERL_SUPPORTS_DESTDIR='yes'
35561
35562    else
35563	    :
35564            PERL_SUPPORTS_DESTDIR='no'
35565
35566  fi
35567
35568
35569else
35570
35571        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35572$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35573        PERL_SUPPORTS_DESTDIR='no'
35574
35575fi
35576
35577fi
35578 if test "$have_perl" != 'no'; then
35579  WITH_PERL_TRUE=
35580  WITH_PERL_FALSE='#'
35581else
35582  WITH_PERL_TRUE='#'
35583  WITH_PERL_FALSE=
35584fi
35585
35586 if test $with_perl_static = 'yes'; then
35587  WITH_PERL_STATIC_TRUE=
35588  WITH_PERL_STATIC_FALSE='#'
35589else
35590  WITH_PERL_STATIC_TRUE='#'
35591  WITH_PERL_STATIC_FALSE=
35592fi
35593
35594 if test $with_perl_dynamic = 'yes'; then
35595  WITH_PERL_DYNAMIC_TRUE=
35596  WITH_PERL_DYNAMIC_FALSE='#'
35597else
35598  WITH_PERL_DYNAMIC_TRUE='#'
35599  WITH_PERL_DYNAMIC_FALSE=
35600fi
35601
35602
35603
35604# Determine path to pick up MagickCore library from for use with building PerlMagick
35605MAGICKCORE_PATH="${LIB_DIR}"
35606if test $with_perl_static = 'yes'; then
35607    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35608    libtool_objdir=$objdir
35609
35610    # Linker search path to library, followed by -lMagickCore
35611    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
35612fi
35613
35614
35615# Create a simple string containing format names for all delegate libraries
35616DELEGATES=''
35617if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35618if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35619if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35620if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35621if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35622if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35623if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35624if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35625if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35626if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35627if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35628if test "$have_jpeg"       = 'yes'; then
35629  DELEGATES="$DELEGATES jpeg";
35630  if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35631fi
35632if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
35633if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
35634if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35635if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
35636if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
35637if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35638if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35639if test "$have_pango"      = 'yes'; then DELEGATES="$DELEGATES pango"; fi
35640if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
35641if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35642if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35643if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35644if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35645if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35646if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35647
35648
35649
35650#
35651# Handle special compiler flags
35652#
35653
35654# Add '-p' if prof source profiling support enabled
35655if test "$enable_prof" = 'yes'; then
35656    CFLAGS="-p $CFLAGS"
35657    CXXFLAGS="-p $CXXFLAGS"
35658    LDFLAGS="-p $LDFLAGS"
35659fi
35660
35661# Add '-pg' if gprof source profiling support enabled
35662if test "$enable_gprof" = 'yes'; then
35663    CFLAGS="-pg $CFLAGS"
35664    CXXFLAGS="-pg $CXXFLAGS"
35665    LDFLAGS="-pg $LDFLAGS"
35666fi
35667
35668# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35669# This is a gcc-specific feature
35670if test "$enable_gcov" = 'yes'; then
35671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
35672$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
35673if ${ac_cv_lib_gcov__gcov_init+:} false; then :
35674  $as_echo_n "(cached) " >&6
35675else
35676  ac_check_lib_save_LIBS=$LIBS
35677LIBS="-lgcov  $LIBS"
35678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35679/* end confdefs.h.  */
35680
35681/* Override any GCC internal prototype to avoid an error.
35682   Use char because int might match the return type of a GCC
35683   builtin and then its argument prototype would still apply.  */
35684#ifdef __cplusplus
35685extern "C"
35686#endif
35687char _gcov_init ();
35688int
35689main ()
35690{
35691return _gcov_init ();
35692  ;
35693  return 0;
35694}
35695_ACEOF
35696if ac_fn_c_try_link "$LINENO"; then :
35697  ac_cv_lib_gcov__gcov_init=yes
35698else
35699  ac_cv_lib_gcov__gcov_init=no
35700fi
35701rm -f core conftest.err conftest.$ac_objext \
35702    conftest$ac_exeext conftest.$ac_ext
35703LIBS=$ac_check_lib_save_LIBS
35704fi
35705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
35706$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
35707if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
35708  cat >>confdefs.h <<_ACEOF
35709#define HAVE_LIBGCOV 1
35710_ACEOF
35711
35712  LIBS="-lgcov $LIBS"
35713
35714fi
35715
35716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
35717$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
35718if ${ac_cv_lib_gcov___gcov_init+:} false; then :
35719  $as_echo_n "(cached) " >&6
35720else
35721  ac_check_lib_save_LIBS=$LIBS
35722LIBS="-lgcov  $LIBS"
35723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35724/* end confdefs.h.  */
35725
35726/* Override any GCC internal prototype to avoid an error.
35727   Use char because int might match the return type of a GCC
35728   builtin and then its argument prototype would still apply.  */
35729#ifdef __cplusplus
35730extern "C"
35731#endif
35732char __gcov_init ();
35733int
35734main ()
35735{
35736return __gcov_init ();
35737  ;
35738  return 0;
35739}
35740_ACEOF
35741if ac_fn_c_try_link "$LINENO"; then :
35742  ac_cv_lib_gcov___gcov_init=yes
35743else
35744  ac_cv_lib_gcov___gcov_init=no
35745fi
35746rm -f core conftest.err conftest.$ac_objext \
35747    conftest$ac_exeext conftest.$ac_ext
35748LIBS=$ac_check_lib_save_LIBS
35749fi
35750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
35751$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
35752if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
35753  cat >>confdefs.h <<_ACEOF
35754#define HAVE_LIBGCOV 1
35755_ACEOF
35756
35757  LIBS="-lgcov $LIBS"
35758
35759fi
35760
35761    case "$target_os" in
35762        darwin*)
35763            OSX_GCOV_LDFLAG="-Wl,-single_module"
35764        ;;
35765        *)
35766            OSX_GCOV_LDFLAG=""
35767        ;;
35768    esac
35769
35770    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
35771    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
35772    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35773fi
35774
35775#
35776# Build library dependency list for libMagickCore
35777#
35778
35779MAGICK_LIBLTDL='' # Libltdl for build
35780MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
35781MAGICK_LTDLDEPS=''      # extra libltdl dependencies
35782if test "$with_ltdl" != 'no'
35783then
35784  if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35785    MAGICK_API_LIBLTDL='-lltdl'
35786  fi
35787  MAGICK_LIBLTDL=${LIBLTDL}
35788  MAGICK_LTDLDEPS=${LTDLDEPS}
35789fi
35790
35791
35792
35793if test "$with_modules" != 'no'; then
35794    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 $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
35795else
35796    MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
35797fi
35798
35799
35800#
35801# Remove extraneous spaces from output variables (asthetic)
35802#
35803X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
35804X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
35805X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
35806X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
35807
35808CC=`echo $CC | sed -e 's/  */ /g'`
35809CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
35810CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
35811CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
35812DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35813DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
35814LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
35815TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35816MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
35817#LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35818
35819# Pass only user-provided LIBS as "global" libraries
35820LIBS=$USER_LIBS
35821
35822#AC_SUBST(CPPFLAGS)
35823
35824#AC_SUBST(LDFLAGS)
35825#AC_SUBST(X_PRE_LIBS)
35826#AC_SUBST(X_LIBS)
35827#AC_SUBST(X_EXTRA_LIBS)
35828
35829MAGICK_CFLAGS=$CFLAGS
35830MAGICK_CXXFLAGS="$CXXFLAGS"
35831MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
35832MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
35833MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35834MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844# Set configured scripts to executable.
35845ac_config_commands="$ac_config_commands default"
35846
35847ac_config_commands="$ac_config_commands magick.sh.in"
35848
35849ac_config_commands="$ac_config_commands MagickCore-config.in"
35850
35851ac_config_commands="$ac_config_commands MagickWand-config.in"
35852
35853ac_config_commands="$ac_config_commands Magick++-config.in"
35854
35855ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35856
35857
35858{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35859$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35860{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35861$as_echo "$as_me: Update ImageMagick configuration" >&6;}
35862cat >confcache <<\_ACEOF
35863# This file is a shell script that caches the results of configure
35864# tests run on this system so they can be shared between configure
35865# scripts and configure runs, see configure's option --config-cache.
35866# It is not useful on other systems.  If it contains results you don't
35867# want to keep, you may remove or edit it.
35868#
35869# config.status only pays attention to the cache file if you give it
35870# the --recheck option to rerun configure.
35871#
35872# `ac_cv_env_foo' variables (set or unset) will be overridden when
35873# loading this file, other *unset* `ac_cv_foo' will be assigned the
35874# following values.
35875
35876_ACEOF
35877
35878# The following way of writing the cache mishandles newlines in values,
35879# but we know of no workaround that is simple, portable, and efficient.
35880# So, we kill variables containing newlines.
35881# Ultrix sh set writes to stderr and can't be redirected directly,
35882# and sets the high bit in the cache file unless we assign to the vars.
35883(
35884  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35885    eval ac_val=\$$ac_var
35886    case $ac_val in #(
35887    *${as_nl}*)
35888      case $ac_var in #(
35889      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35891      esac
35892      case $ac_var in #(
35893      _ | IFS | as_nl) ;; #(
35894      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35895      *) { eval $ac_var=; unset $ac_var;} ;;
35896      esac ;;
35897    esac
35898  done
35899
35900  (set) 2>&1 |
35901    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35902    *${as_nl}ac_space=\ *)
35903      # `set' does not quote correctly, so add quotes: double-quote
35904      # substitution turns \\\\ into \\, and sed turns \\ into \.
35905      sed -n \
35906	"s/'/'\\\\''/g;
35907	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35908      ;; #(
35909    *)
35910      # `set' quotes correctly as required by POSIX, so do not add quotes.
35911      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35912      ;;
35913    esac |
35914    sort
35915) |
35916  sed '
35917     /^ac_cv_env_/b end
35918     t clear
35919     :clear
35920     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35921     t end
35922     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35923     :end' >>confcache
35924if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35925  if test -w "$cache_file"; then
35926    if test "x$cache_file" != "x/dev/null"; then
35927      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35928$as_echo "$as_me: updating cache $cache_file" >&6;}
35929      if test ! -f "$cache_file" || test -h "$cache_file"; then
35930	cat confcache >"$cache_file"
35931      else
35932        case $cache_file in #(
35933        */* | ?:*)
35934	  mv -f confcache "$cache_file"$$ &&
35935	  mv -f "$cache_file"$$ "$cache_file" ;; #(
35936        *)
35937	  mv -f confcache "$cache_file" ;;
35938	esac
35939      fi
35940    fi
35941  else
35942    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35943$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35944  fi
35945fi
35946rm -f confcache
35947
35948test "x$prefix" = xNONE && prefix=$ac_default_prefix
35949# Let make expand exec_prefix.
35950test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35951
35952DEFS=-DHAVE_CONFIG_H
35953
35954ac_libobjs=
35955ac_ltlibobjs=
35956U=
35957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35958  # 1. Remove the extension, and $U if already installed.
35959  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35960  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35961  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35962  #    will be set to the directory where LIBOBJS objects are built.
35963  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35964  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35965done
35966LIBOBJS=$ac_libobjs
35967
35968LTLIBOBJS=$ac_ltlibobjs
35969
35970
35971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35972$as_echo_n "checking that generated files are newer than configure... " >&6; }
35973   if test -n "$am_sleep_pid"; then
35974     # Hide warnings about reused PIDs.
35975     wait $am_sleep_pid 2>/dev/null
35976   fi
35977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35978$as_echo "done" >&6; }
35979 if test -n "$EXEEXT"; then
35980  am__EXEEXT_TRUE=
35981  am__EXEEXT_FALSE='#'
35982else
35983  am__EXEEXT_TRUE='#'
35984  am__EXEEXT_FALSE=
35985fi
35986
35987if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35988  as_fn_error $? "conditional \"AMDEP\" was never defined.
35989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35992  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35996  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36000  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
36004  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
36005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
36007if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
36008  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
36009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
36011if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
36012  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
36013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
36016  as_fn_error $? "conditional \"USING_CL\" was never defined.
36017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
36020  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
36021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
36024  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
36025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027LT_CONFIG_H=config/config.h
36028
36029    _ltdl_libobjs=
36030    _ltdl_ltlibobjs=
36031    if test -n "$_LT_LIBOBJS"; then
36032      # Remove the extension.
36033      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36034      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36035        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36036        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36037      done
36038    fi
36039    ltdl_LIBOBJS=$_ltdl_libobjs
36040
36041    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36042
36043
36044if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36045  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36049  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36053  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36057  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
36060if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36061  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064
36065if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36066  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
36069if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36070  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
36073if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
36074  as_fn_error $? "conditional \"HasUMEM\" was never defined.
36075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
36077if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36078  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36079Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080fi
36081if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36082  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36083Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084fi
36085if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36086  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36087Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088fi
36089if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36090  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36091Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092fi
36093if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36094  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36095Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096fi
36097if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36098  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
36101if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36102  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
36105if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36106  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
36109if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36110  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
36113if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
36114  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
36115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36118  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36122  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36126  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
36129if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36130  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
36133if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
36134  as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
36135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
36137if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36138  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
36141if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36142  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36146  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
36149if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36150  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
36153if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36154  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
36157if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36158  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36162  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
36165if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36166  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
36169if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36170  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
36173if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36174  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
36177if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36178  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
36181if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36182  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36186  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36190  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
36193if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36194  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
36197if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36198  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36202  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
36205if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36206  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36207Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208fi
36209if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36210  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36211Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212fi
36213
36214: "${CONFIG_STATUS=./config.status}"
36215ac_write_fail=0
36216ac_clean_files_save=$ac_clean_files
36217ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36218{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36219$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36220as_write_fail=0
36221cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36222#! $SHELL
36223# Generated by $as_me.
36224# Run this file to recreate the current configuration.
36225# Compiler output produced by configure, useful for debugging
36226# configure, is in config.log if it exists.
36227
36228debug=false
36229ac_cs_recheck=false
36230ac_cs_silent=false
36231
36232SHELL=\${CONFIG_SHELL-$SHELL}
36233export SHELL
36234_ASEOF
36235cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36236## -------------------- ##
36237## M4sh Initialization. ##
36238## -------------------- ##
36239
36240# Be more Bourne compatible
36241DUALCASE=1; export DUALCASE # for MKS sh
36242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36243  emulate sh
36244  NULLCMD=:
36245  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36246  # is contrary to our usage.  Disable this feature.
36247  alias -g '${1+"$@"}'='"$@"'
36248  setopt NO_GLOB_SUBST
36249else
36250  case `(set -o) 2>/dev/null` in #(
36251  *posix*) :
36252    set -o posix ;; #(
36253  *) :
36254     ;;
36255esac
36256fi
36257
36258
36259as_nl='
36260'
36261export as_nl
36262# Printing a long string crashes Solaris 7 /usr/bin/printf.
36263as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36265as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36266# Prefer a ksh shell builtin over an external printf program on Solaris,
36267# but without wasting forks for bash or zsh.
36268if test -z "$BASH_VERSION$ZSH_VERSION" \
36269    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36270  as_echo='print -r --'
36271  as_echo_n='print -rn --'
36272elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36273  as_echo='printf %s\n'
36274  as_echo_n='printf %s'
36275else
36276  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36277    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36278    as_echo_n='/usr/ucb/echo -n'
36279  else
36280    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36281    as_echo_n_body='eval
36282      arg=$1;
36283      case $arg in #(
36284      *"$as_nl"*)
36285	expr "X$arg" : "X\\(.*\\)$as_nl";
36286	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36287      esac;
36288      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36289    '
36290    export as_echo_n_body
36291    as_echo_n='sh -c $as_echo_n_body as_echo'
36292  fi
36293  export as_echo_body
36294  as_echo='sh -c $as_echo_body as_echo'
36295fi
36296
36297# The user is always right.
36298if test "${PATH_SEPARATOR+set}" != set; then
36299  PATH_SEPARATOR=:
36300  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36301    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36302      PATH_SEPARATOR=';'
36303  }
36304fi
36305
36306
36307# IFS
36308# We need space, tab and new line, in precisely that order.  Quoting is
36309# there to prevent editors from complaining about space-tab.
36310# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36311# splitting by setting IFS to empty value.)
36312IFS=" ""	$as_nl"
36313
36314# Find who we are.  Look in the path if we contain no directory separator.
36315as_myself=
36316case $0 in #((
36317  *[\\/]* ) as_myself=$0 ;;
36318  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36319for as_dir in $PATH
36320do
36321  IFS=$as_save_IFS
36322  test -z "$as_dir" && as_dir=.
36323    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36324  done
36325IFS=$as_save_IFS
36326
36327     ;;
36328esac
36329# We did not find ourselves, most probably we were run as `sh COMMAND'
36330# in which case we are not to be found in the path.
36331if test "x$as_myself" = x; then
36332  as_myself=$0
36333fi
36334if test ! -f "$as_myself"; then
36335  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36336  exit 1
36337fi
36338
36339# Unset variables that we do not need and which cause bugs (e.g. in
36340# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36341# suppresses any "Segmentation fault" message there.  '((' could
36342# trigger a bug in pdksh 5.2.14.
36343for as_var in BASH_ENV ENV MAIL MAILPATH
36344do eval test x\${$as_var+set} = xset \
36345  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36346done
36347PS1='$ '
36348PS2='> '
36349PS4='+ '
36350
36351# NLS nuisances.
36352LC_ALL=C
36353export LC_ALL
36354LANGUAGE=C
36355export LANGUAGE
36356
36357# CDPATH.
36358(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36359
36360
36361# as_fn_error STATUS ERROR [LINENO LOG_FD]
36362# ----------------------------------------
36363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36365# script with STATUS, using 1 if that was 0.
36366as_fn_error ()
36367{
36368  as_status=$1; test $as_status -eq 0 && as_status=1
36369  if test "$4"; then
36370    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36371    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36372  fi
36373  $as_echo "$as_me: error: $2" >&2
36374  as_fn_exit $as_status
36375} # as_fn_error
36376
36377
36378# as_fn_set_status STATUS
36379# -----------------------
36380# Set $? to STATUS, without forking.
36381as_fn_set_status ()
36382{
36383  return $1
36384} # as_fn_set_status
36385
36386# as_fn_exit STATUS
36387# -----------------
36388# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36389as_fn_exit ()
36390{
36391  set +e
36392  as_fn_set_status $1
36393  exit $1
36394} # as_fn_exit
36395
36396# as_fn_unset VAR
36397# ---------------
36398# Portably unset VAR.
36399as_fn_unset ()
36400{
36401  { eval $1=; unset $1;}
36402}
36403as_unset=as_fn_unset
36404# as_fn_append VAR VALUE
36405# ----------------------
36406# Append the text in VALUE to the end of the definition contained in VAR. Take
36407# advantage of any shell optimizations that allow amortized linear growth over
36408# repeated appends, instead of the typical quadratic growth present in naive
36409# implementations.
36410if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36411  eval 'as_fn_append ()
36412  {
36413    eval $1+=\$2
36414  }'
36415else
36416  as_fn_append ()
36417  {
36418    eval $1=\$$1\$2
36419  }
36420fi # as_fn_append
36421
36422# as_fn_arith ARG...
36423# ------------------
36424# Perform arithmetic evaluation on the ARGs, and store the result in the
36425# global $as_val. Take advantage of shells that can avoid forks. The arguments
36426# must be portable across $(()) and expr.
36427if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36428  eval 'as_fn_arith ()
36429  {
36430    as_val=$(( $* ))
36431  }'
36432else
36433  as_fn_arith ()
36434  {
36435    as_val=`expr "$@" || test $? -eq 1`
36436  }
36437fi # as_fn_arith
36438
36439
36440if expr a : '\(a\)' >/dev/null 2>&1 &&
36441   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36442  as_expr=expr
36443else
36444  as_expr=false
36445fi
36446
36447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36448  as_basename=basename
36449else
36450  as_basename=false
36451fi
36452
36453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36454  as_dirname=dirname
36455else
36456  as_dirname=false
36457fi
36458
36459as_me=`$as_basename -- "$0" ||
36460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36461	 X"$0" : 'X\(//\)$' \| \
36462	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36463$as_echo X/"$0" |
36464    sed '/^.*\/\([^/][^/]*\)\/*$/{
36465	    s//\1/
36466	    q
36467	  }
36468	  /^X\/\(\/\/\)$/{
36469	    s//\1/
36470	    q
36471	  }
36472	  /^X\/\(\/\).*/{
36473	    s//\1/
36474	    q
36475	  }
36476	  s/.*/./; q'`
36477
36478# Avoid depending upon Character Ranges.
36479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36482as_cr_digits='0123456789'
36483as_cr_alnum=$as_cr_Letters$as_cr_digits
36484
36485ECHO_C= ECHO_N= ECHO_T=
36486case `echo -n x` in #(((((
36487-n*)
36488  case `echo 'xy\c'` in
36489  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36490  xy)  ECHO_C='\c';;
36491  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36492       ECHO_T='	';;
36493  esac;;
36494*)
36495  ECHO_N='-n';;
36496esac
36497
36498rm -f conf$$ conf$$.exe conf$$.file
36499if test -d conf$$.dir; then
36500  rm -f conf$$.dir/conf$$.file
36501else
36502  rm -f conf$$.dir
36503  mkdir conf$$.dir 2>/dev/null
36504fi
36505if (echo >conf$$.file) 2>/dev/null; then
36506  if ln -s conf$$.file conf$$ 2>/dev/null; then
36507    as_ln_s='ln -s'
36508    # ... but there are two gotchas:
36509    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36510    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36511    # In both cases, we have to default to `cp -pR'.
36512    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36513      as_ln_s='cp -pR'
36514  elif ln conf$$.file conf$$ 2>/dev/null; then
36515    as_ln_s=ln
36516  else
36517    as_ln_s='cp -pR'
36518  fi
36519else
36520  as_ln_s='cp -pR'
36521fi
36522rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36523rmdir conf$$.dir 2>/dev/null
36524
36525
36526# as_fn_mkdir_p
36527# -------------
36528# Create "$as_dir" as a directory, including parents if necessary.
36529as_fn_mkdir_p ()
36530{
36531
36532  case $as_dir in #(
36533  -*) as_dir=./$as_dir;;
36534  esac
36535  test -d "$as_dir" || eval $as_mkdir_p || {
36536    as_dirs=
36537    while :; do
36538      case $as_dir in #(
36539      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36540      *) as_qdir=$as_dir;;
36541      esac
36542      as_dirs="'$as_qdir' $as_dirs"
36543      as_dir=`$as_dirname -- "$as_dir" ||
36544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36545	 X"$as_dir" : 'X\(//\)[^/]' \| \
36546	 X"$as_dir" : 'X\(//\)$' \| \
36547	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36548$as_echo X"$as_dir" |
36549    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36550	    s//\1/
36551	    q
36552	  }
36553	  /^X\(\/\/\)[^/].*/{
36554	    s//\1/
36555	    q
36556	  }
36557	  /^X\(\/\/\)$/{
36558	    s//\1/
36559	    q
36560	  }
36561	  /^X\(\/\).*/{
36562	    s//\1/
36563	    q
36564	  }
36565	  s/.*/./; q'`
36566      test -d "$as_dir" && break
36567    done
36568    test -z "$as_dirs" || eval "mkdir $as_dirs"
36569  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36570
36571
36572} # as_fn_mkdir_p
36573if mkdir -p . 2>/dev/null; then
36574  as_mkdir_p='mkdir -p "$as_dir"'
36575else
36576  test -d ./-p && rmdir ./-p
36577  as_mkdir_p=false
36578fi
36579
36580
36581# as_fn_executable_p FILE
36582# -----------------------
36583# Test if FILE is an executable regular file.
36584as_fn_executable_p ()
36585{
36586  test -f "$1" && test -x "$1"
36587} # as_fn_executable_p
36588as_test_x='test -x'
36589as_executable_p=as_fn_executable_p
36590
36591# Sed expression to map a string onto a valid CPP name.
36592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36593
36594# Sed expression to map a string onto a valid variable name.
36595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36596
36597
36598exec 6>&1
36599## ----------------------------------- ##
36600## Main body of $CONFIG_STATUS script. ##
36601## ----------------------------------- ##
36602_ASEOF
36603test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36604
36605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36606# Save the log message, to keep $0 and so on meaningful, and to
36607# report actual input values of CONFIG_FILES etc. instead of their
36608# values after options handling.
36609ac_log="
36610This file was extended by ImageMagick $as_me 7.0.0-0, which was
36611generated by GNU Autoconf 2.69.  Invocation command line was
36612
36613  CONFIG_FILES    = $CONFIG_FILES
36614  CONFIG_HEADERS  = $CONFIG_HEADERS
36615  CONFIG_LINKS    = $CONFIG_LINKS
36616  CONFIG_COMMANDS = $CONFIG_COMMANDS
36617  $ $0 $@
36618
36619on `(hostname || uname -n) 2>/dev/null | sed 1q`
36620"
36621
36622_ACEOF
36623
36624case $ac_config_files in *"
36625"*) set x $ac_config_files; shift; ac_config_files=$*;;
36626esac
36627
36628case $ac_config_headers in *"
36629"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36630esac
36631
36632
36633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36634# Files that config.status was made for.
36635config_files="$ac_config_files"
36636config_headers="$ac_config_headers"
36637config_commands="$ac_config_commands"
36638
36639_ACEOF
36640
36641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36642ac_cs_usage="\
36643\`$as_me' instantiates files and other configuration actions
36644from templates according to the current configuration.  Unless the files
36645and actions are specified as TAGs, all are instantiated by default.
36646
36647Usage: $0 [OPTION]... [TAG]...
36648
36649  -h, --help       print this help, then exit
36650  -V, --version    print version number and configuration settings, then exit
36651      --config     print configuration, then exit
36652  -q, --quiet, --silent
36653                   do not print progress messages
36654  -d, --debug      don't remove temporary files
36655      --recheck    update $as_me by reconfiguring in the same conditions
36656      --file=FILE[:TEMPLATE]
36657                   instantiate the configuration file FILE
36658      --header=FILE[:TEMPLATE]
36659                   instantiate the configuration header FILE
36660
36661Configuration files:
36662$config_files
36663
36664Configuration headers:
36665$config_headers
36666
36667Configuration commands:
36668$config_commands
36669
36670Report bugs to <http://www.imagemagick.org>."
36671
36672_ACEOF
36673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36674ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36675ac_cs_version="\\
36676ImageMagick config.status 7.0.0-0
36677configured by $0, generated by GNU Autoconf 2.69,
36678  with options \\"\$ac_cs_config\\"
36679
36680Copyright (C) 2012 Free Software Foundation, Inc.
36681This config.status script is free software; the Free Software Foundation
36682gives unlimited permission to copy, distribute and modify it."
36683
36684ac_pwd='$ac_pwd'
36685srcdir='$srcdir'
36686INSTALL='$INSTALL'
36687MKDIR_P='$MKDIR_P'
36688AWK='$AWK'
36689test -n "\$AWK" || AWK=awk
36690_ACEOF
36691
36692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36693# The default lists apply if the user does not specify any file.
36694ac_need_defaults=:
36695while test $# != 0
36696do
36697  case $1 in
36698  --*=?*)
36699    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36700    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36701    ac_shift=:
36702    ;;
36703  --*=)
36704    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36705    ac_optarg=
36706    ac_shift=:
36707    ;;
36708  *)
36709    ac_option=$1
36710    ac_optarg=$2
36711    ac_shift=shift
36712    ;;
36713  esac
36714
36715  case $ac_option in
36716  # Handling of the options.
36717  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36718    ac_cs_recheck=: ;;
36719  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36720    $as_echo "$ac_cs_version"; exit ;;
36721  --config | --confi | --conf | --con | --co | --c )
36722    $as_echo "$ac_cs_config"; exit ;;
36723  --debug | --debu | --deb | --de | --d | -d )
36724    debug=: ;;
36725  --file | --fil | --fi | --f )
36726    $ac_shift
36727    case $ac_optarg in
36728    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36729    '') as_fn_error $? "missing file argument" ;;
36730    esac
36731    as_fn_append CONFIG_FILES " '$ac_optarg'"
36732    ac_need_defaults=false;;
36733  --header | --heade | --head | --hea )
36734    $ac_shift
36735    case $ac_optarg in
36736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36737    esac
36738    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36739    ac_need_defaults=false;;
36740  --he | --h)
36741    # Conflict between --help and --header
36742    as_fn_error $? "ambiguous option: \`$1'
36743Try \`$0 --help' for more information.";;
36744  --help | --hel | -h )
36745    $as_echo "$ac_cs_usage"; exit ;;
36746  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36747  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36748    ac_cs_silent=: ;;
36749
36750  # This is an error.
36751  -*) as_fn_error $? "unrecognized option: \`$1'
36752Try \`$0 --help' for more information." ;;
36753
36754  *) as_fn_append ac_config_targets " $1"
36755     ac_need_defaults=false ;;
36756
36757  esac
36758  shift
36759done
36760
36761ac_configure_extra_args=
36762
36763if $ac_cs_silent; then
36764  exec 6>/dev/null
36765  ac_configure_extra_args="$ac_configure_extra_args --silent"
36766fi
36767
36768_ACEOF
36769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36770if \$ac_cs_recheck; then
36771  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36772  shift
36773  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36774  CONFIG_SHELL='$SHELL'
36775  export CONFIG_SHELL
36776  exec "\$@"
36777fi
36778
36779_ACEOF
36780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36781exec 5>>config.log
36782{
36783  echo
36784  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36785## Running $as_me. ##
36786_ASBOX
36787  $as_echo "$ac_log"
36788} >&5
36789
36790_ACEOF
36791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36792#
36793# INIT-COMMANDS
36794#
36795PACKAGE="$PACKAGE"
36796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36797
36798
36799# The HP-UX ksh and POSIX shell print the target directory to stdout
36800# if CDPATH is set.
36801(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36802
36803sed_quote_subst='$sed_quote_subst'
36804double_quote_subst='$double_quote_subst'
36805delay_variable_subst='$delay_variable_subst'
36806SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36807Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36808GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36809EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36810FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36811SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36812ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36814macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36815macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36816AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36817DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36818OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36819enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36820enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36821pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36822enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36823PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36824host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36825host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36826host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36827build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36828build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36829build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36830NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36831LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36832max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36833ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36834exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36835lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36836lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36837lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36838lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36839lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36840reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36841reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36842deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36843file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36844file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36845want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36846sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36847AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36848AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36849archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36850STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36851RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36852old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36853old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36854old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36855lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36856CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36857CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36858compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36859GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36860lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36861lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36862lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36863lt_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"`'
36864nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36865lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36866objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36867MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36868lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36869lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36870lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36871lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36872lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36873need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36874MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36875DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36876NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36877LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36878OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36879OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36880libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36881shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36882extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36883archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36884enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36885export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36886whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36887compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36888old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36889old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36890archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36891archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36892module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36893module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36894with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36895allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36896no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36897hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36898hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36899hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36900hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36901hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36902hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36903hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36904inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36905link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36906always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36907export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36908exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36909include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36910prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36911postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36912file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36913variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36914need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36915need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36916version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36917runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36918shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36919shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36920libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36921library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36922soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36923install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36924postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36925postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36926finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36927finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36928hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36929sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36930sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36931hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36932enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36933enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36934enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36935old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36936striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36937compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36938predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36939postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36940predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36941postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36942compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36943LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36944reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36945reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36946old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36947compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36948GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36949lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36950lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36951lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36952lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36953lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36954archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36955enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36956export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36957whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36958compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36959old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36960old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36961archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36962archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36963module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36964module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36965with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36966allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36967no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36968hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36969hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36970hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36971hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36972hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36973hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36974hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36975inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36976link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36977always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36978export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36979exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36980include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36981prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36982postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36983file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36984hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36985compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36986predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36987postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36988predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36989postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36990compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36991
36992LTCC='$LTCC'
36993LTCFLAGS='$LTCFLAGS'
36994compiler='$compiler_DEFAULT'
36995
36996# A function that is used when there is no print builtin or printf.
36997func_fallback_echo ()
36998{
36999  eval 'cat <<_LTECHO_EOF
37000\$1
37001_LTECHO_EOF'
37002}
37003
37004# Quote evaled strings.
37005for var in SED \
37006GREP \
37007EGREP \
37008FGREP \
37009SHELL \
37010ECHO \
37011LD \
37012AS \
37013DLLTOOL \
37014OBJDUMP \
37015PATH_SEPARATOR \
37016NM \
37017LN_S \
37018lt_SP2NL \
37019lt_NL2SP \
37020reload_flag \
37021deplibs_check_method \
37022file_magic_cmd \
37023file_magic_glob \
37024want_nocaseglob \
37025sharedlib_from_linklib_cmd \
37026AR \
37027AR_FLAGS \
37028archiver_list_spec \
37029STRIP \
37030RANLIB \
37031CC \
37032CFLAGS \
37033compiler \
37034lt_cv_sys_global_symbol_pipe \
37035lt_cv_sys_global_symbol_to_cdecl \
37036lt_cv_sys_global_symbol_to_c_name_address \
37037lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37038nm_file_list_spec \
37039lt_prog_compiler_no_builtin_flag \
37040lt_prog_compiler_pic \
37041lt_prog_compiler_wl \
37042lt_prog_compiler_static \
37043lt_cv_prog_compiler_c_o \
37044need_locks \
37045MANIFEST_TOOL \
37046DSYMUTIL \
37047NMEDIT \
37048LIPO \
37049OTOOL \
37050OTOOL64 \
37051shrext_cmds \
37052export_dynamic_flag_spec \
37053whole_archive_flag_spec \
37054compiler_needs_object \
37055with_gnu_ld \
37056allow_undefined_flag \
37057no_undefined_flag \
37058hardcode_libdir_flag_spec \
37059hardcode_libdir_separator \
37060exclude_expsyms \
37061include_expsyms \
37062file_list_spec \
37063variables_saved_for_relink \
37064libname_spec \
37065library_names_spec \
37066soname_spec \
37067install_override_mode \
37068finish_eval \
37069old_striplib \
37070striplib \
37071compiler_lib_search_dirs \
37072predep_objects \
37073postdep_objects \
37074predeps \
37075postdeps \
37076compiler_lib_search_path \
37077LD_CXX \
37078reload_flag_CXX \
37079compiler_CXX \
37080lt_prog_compiler_no_builtin_flag_CXX \
37081lt_prog_compiler_pic_CXX \
37082lt_prog_compiler_wl_CXX \
37083lt_prog_compiler_static_CXX \
37084lt_cv_prog_compiler_c_o_CXX \
37085export_dynamic_flag_spec_CXX \
37086whole_archive_flag_spec_CXX \
37087compiler_needs_object_CXX \
37088with_gnu_ld_CXX \
37089allow_undefined_flag_CXX \
37090no_undefined_flag_CXX \
37091hardcode_libdir_flag_spec_CXX \
37092hardcode_libdir_separator_CXX \
37093exclude_expsyms_CXX \
37094include_expsyms_CXX \
37095file_list_spec_CXX \
37096compiler_lib_search_dirs_CXX \
37097predep_objects_CXX \
37098postdep_objects_CXX \
37099predeps_CXX \
37100postdeps_CXX \
37101compiler_lib_search_path_CXX; do
37102    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37103    *[\\\\\\\`\\"\\\$]*)
37104      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37105      ;;
37106    *)
37107      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37108      ;;
37109    esac
37110done
37111
37112# Double-quote double-evaled strings.
37113for var in reload_cmds \
37114old_postinstall_cmds \
37115old_postuninstall_cmds \
37116old_archive_cmds \
37117extract_expsyms_cmds \
37118old_archive_from_new_cmds \
37119old_archive_from_expsyms_cmds \
37120archive_cmds \
37121archive_expsym_cmds \
37122module_cmds \
37123module_expsym_cmds \
37124export_symbols_cmds \
37125prelink_cmds \
37126postlink_cmds \
37127postinstall_cmds \
37128postuninstall_cmds \
37129finish_cmds \
37130sys_lib_search_path_spec \
37131sys_lib_dlsearch_path_spec \
37132reload_cmds_CXX \
37133old_archive_cmds_CXX \
37134old_archive_from_new_cmds_CXX \
37135old_archive_from_expsyms_cmds_CXX \
37136archive_cmds_CXX \
37137archive_expsym_cmds_CXX \
37138module_cmds_CXX \
37139module_expsym_cmds_CXX \
37140export_symbols_cmds_CXX \
37141prelink_cmds_CXX \
37142postlink_cmds_CXX; do
37143    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37144    *[\\\\\\\`\\"\\\$]*)
37145      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37146      ;;
37147    *)
37148      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37149      ;;
37150    esac
37151done
37152
37153ac_aux_dir='$ac_aux_dir'
37154xsi_shell='$xsi_shell'
37155lt_shell_append='$lt_shell_append'
37156
37157# See if we are running on zsh, and set the options which allow our
37158# commands through without removal of \ escapes INIT.
37159if test -n "\${ZSH_VERSION+set}" ; then
37160   setopt NO_GLOB_SUBST
37161fi
37162
37163
37164    PACKAGE='$PACKAGE'
37165    VERSION='$VERSION'
37166    TIMESTAMP='$TIMESTAMP'
37167    RM='$RM'
37168    ofile='$ofile'
37169
37170
37171
37172
37173
37174
37175_ACEOF
37176
37177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37178
37179# Handling of arguments.
37180for ac_config_target in $ac_config_targets
37181do
37182  case $ac_config_target in
37183    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37184    "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
37185    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
37186    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37187    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37188    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37189    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37190    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37191    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
37192    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37193    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37194    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37195    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37196    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37197    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37198    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37199    "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37200    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37201    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37202    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37203    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37204    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37205    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37206    "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37207    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37208    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37209    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37210    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37211    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37212    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37213    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37214    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37215    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37216    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37217    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37218    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37219    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37220    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37221    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37222    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37223    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37224    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37225    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37226    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37227    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37228    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37229    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37230    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37231
37232  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37233  esac
37234done
37235
37236
37237# If the user did not use the arguments to specify the items to instantiate,
37238# then the envvar interface is used.  Set only those that are not.
37239# We use the long form for the default assignment because of an extremely
37240# bizarre bug on SunOS 4.1.3.
37241if $ac_need_defaults; then
37242  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37243  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37244  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37245fi
37246
37247# Have a temporary directory for convenience.  Make it in the build tree
37248# simply because there is no reason against having it here, and in addition,
37249# creating and moving files from /tmp can sometimes cause problems.
37250# Hook for its removal unless debugging.
37251# Note that there is a small window in which the directory will not be cleaned:
37252# after its creation but before its name has been assigned to `$tmp'.
37253$debug ||
37254{
37255  tmp= ac_tmp=
37256  trap 'exit_status=$?
37257  : "${ac_tmp:=$tmp}"
37258  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37259' 0
37260  trap 'as_fn_exit 1' 1 2 13 15
37261}
37262# Create a (secure) tmp directory for tmp files.
37263
37264{
37265  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37266  test -d "$tmp"
37267}  ||
37268{
37269  tmp=./conf$$-$RANDOM
37270  (umask 077 && mkdir "$tmp")
37271} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37272ac_tmp=$tmp
37273
37274# Set up the scripts for CONFIG_FILES section.
37275# No need to generate them if there are no CONFIG_FILES.
37276# This happens for instance with `./config.status config.h'.
37277if test -n "$CONFIG_FILES"; then
37278
37279
37280ac_cr=`echo X | tr X '\015'`
37281# On cygwin, bash can eat \r inside `` if the user requested igncr.
37282# But we know of no other shell where ac_cr would be empty at this
37283# point, so we can use a bashism as a fallback.
37284if test "x$ac_cr" = x; then
37285  eval ac_cr=\$\'\\r\'
37286fi
37287ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37288if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37289  ac_cs_awk_cr='\\r'
37290else
37291  ac_cs_awk_cr=$ac_cr
37292fi
37293
37294echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37295_ACEOF
37296
37297
37298{
37299  echo "cat >conf$$subs.awk <<_ACEOF" &&
37300  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37301  echo "_ACEOF"
37302} >conf$$subs.sh ||
37303  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37304ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37305ac_delim='%!_!# '
37306for ac_last_try in false false false false false :; do
37307  . ./conf$$subs.sh ||
37308    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37309
37310  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37311  if test $ac_delim_n = $ac_delim_num; then
37312    break
37313  elif $ac_last_try; then
37314    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37315  else
37316    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37317  fi
37318done
37319rm -f conf$$subs.sh
37320
37321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37322cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37323_ACEOF
37324sed -n '
37325h
37326s/^/S["/; s/!.*/"]=/
37327p
37328g
37329s/^[^!]*!//
37330:repl
37331t repl
37332s/'"$ac_delim"'$//
37333t delim
37334:nl
37335h
37336s/\(.\{148\}\)..*/\1/
37337t more1
37338s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37339p
37340n
37341b repl
37342:more1
37343s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37344p
37345g
37346s/.\{148\}//
37347t nl
37348:delim
37349h
37350s/\(.\{148\}\)..*/\1/
37351t more2
37352s/["\\]/\\&/g; s/^/"/; s/$/"/
37353p
37354b
37355:more2
37356s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37357p
37358g
37359s/.\{148\}//
37360t delim
37361' <conf$$subs.awk | sed '
37362/^[^""]/{
37363  N
37364  s/\n//
37365}
37366' >>$CONFIG_STATUS || ac_write_fail=1
37367rm -f conf$$subs.awk
37368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37369_ACAWK
37370cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37371  for (key in S) S_is_set[key] = 1
37372  FS = ""
37373
37374}
37375{
37376  line = $ 0
37377  nfields = split(line, field, "@")
37378  substed = 0
37379  len = length(field[1])
37380  for (i = 2; i < nfields; i++) {
37381    key = field[i]
37382    keylen = length(key)
37383    if (S_is_set[key]) {
37384      value = S[key]
37385      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37386      len += length(value) + length(field[++i])
37387      substed = 1
37388    } else
37389      len += 1 + keylen
37390  }
37391
37392  print line
37393}
37394
37395_ACAWK
37396_ACEOF
37397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37398if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37399  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37400else
37401  cat
37402fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37403  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37404_ACEOF
37405
37406# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37407# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37408# trailing colons and then remove the whole line if VPATH becomes empty
37409# (actually we leave an empty line to preserve line numbers).
37410if test "x$srcdir" = x.; then
37411  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37412h
37413s///
37414s/^/:/
37415s/[	 ]*$/:/
37416s/:\$(srcdir):/:/g
37417s/:\${srcdir}:/:/g
37418s/:@srcdir@:/:/g
37419s/^:*//
37420s/:*$//
37421x
37422s/\(=[	 ]*\).*/\1/
37423G
37424s/\n//
37425s/^[^=]*=[	 ]*$//
37426}'
37427fi
37428
37429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37430fi # test -n "$CONFIG_FILES"
37431
37432# Set up the scripts for CONFIG_HEADERS section.
37433# No need to generate them if there are no CONFIG_HEADERS.
37434# This happens for instance with `./config.status Makefile'.
37435if test -n "$CONFIG_HEADERS"; then
37436cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37437BEGIN {
37438_ACEOF
37439
37440# Transform confdefs.h into an awk script `defines.awk', embedded as
37441# here-document in config.status, that substitutes the proper values into
37442# config.h.in to produce config.h.
37443
37444# Create a delimiter string that does not exist in confdefs.h, to ease
37445# handling of long lines.
37446ac_delim='%!_!# '
37447for ac_last_try in false false :; do
37448  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37449  if test -z "$ac_tt"; then
37450    break
37451  elif $ac_last_try; then
37452    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37453  else
37454    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37455  fi
37456done
37457
37458# For the awk script, D is an array of macro values keyed by name,
37459# likewise P contains macro parameters if any.  Preserve backslash
37460# newline sequences.
37461
37462ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37463sed -n '
37464s/.\{148\}/&'"$ac_delim"'/g
37465t rset
37466:rset
37467s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37468t def
37469d
37470:def
37471s/\\$//
37472t bsnl
37473s/["\\]/\\&/g
37474s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37475D["\1"]=" \3"/p
37476s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37477d
37478:bsnl
37479s/["\\]/\\&/g
37480s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37481D["\1"]=" \3\\\\\\n"\\/p
37482t cont
37483s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37484t cont
37485d
37486:cont
37487n
37488s/.\{148\}/&'"$ac_delim"'/g
37489t clear
37490:clear
37491s/\\$//
37492t bsnlc
37493s/["\\]/\\&/g; s/^/"/; s/$/"/p
37494d
37495:bsnlc
37496s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37497b cont
37498' <confdefs.h | sed '
37499s/'"$ac_delim"'/"\\\
37500"/g' >>$CONFIG_STATUS || ac_write_fail=1
37501
37502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37503  for (key in D) D_is_set[key] = 1
37504  FS = ""
37505}
37506/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37507  line = \$ 0
37508  split(line, arg, " ")
37509  if (arg[1] == "#") {
37510    defundef = arg[2]
37511    mac1 = arg[3]
37512  } else {
37513    defundef = substr(arg[1], 2)
37514    mac1 = arg[2]
37515  }
37516  split(mac1, mac2, "(") #)
37517  macro = mac2[1]
37518  prefix = substr(line, 1, index(line, defundef) - 1)
37519  if (D_is_set[macro]) {
37520    # Preserve the white space surrounding the "#".
37521    print prefix "define", macro P[macro] D[macro]
37522    next
37523  } else {
37524    # Replace #undef with comments.  This is necessary, for example,
37525    # in the case of _POSIX_SOURCE, which is predefined and required
37526    # on some systems where configure will not decide to define it.
37527    if (defundef == "undef") {
37528      print "/*", prefix defundef, macro, "*/"
37529      next
37530    }
37531  }
37532}
37533{ print }
37534_ACAWK
37535_ACEOF
37536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37537  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37538fi # test -n "$CONFIG_HEADERS"
37539
37540
37541eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37542shift
37543for ac_tag
37544do
37545  case $ac_tag in
37546  :[FHLC]) ac_mode=$ac_tag; continue;;
37547  esac
37548  case $ac_mode$ac_tag in
37549  :[FHL]*:*);;
37550  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37551  :[FH]-) ac_tag=-:-;;
37552  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37553  esac
37554  ac_save_IFS=$IFS
37555  IFS=:
37556  set x $ac_tag
37557  IFS=$ac_save_IFS
37558  shift
37559  ac_file=$1
37560  shift
37561
37562  case $ac_mode in
37563  :L) ac_source=$1;;
37564  :[FH])
37565    ac_file_inputs=
37566    for ac_f
37567    do
37568      case $ac_f in
37569      -) ac_f="$ac_tmp/stdin";;
37570      *) # Look for the file first in the build tree, then in the source tree
37571	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37572	 # because $ac_f cannot contain `:'.
37573	 test -f "$ac_f" ||
37574	   case $ac_f in
37575	   [\\/$]*) false;;
37576	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37577	   esac ||
37578	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37579      esac
37580      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37581      as_fn_append ac_file_inputs " '$ac_f'"
37582    done
37583
37584    # Let's still pretend it is `configure' which instantiates (i.e., don't
37585    # use $as_me), people would be surprised to read:
37586    #    /* config.h.  Generated by config.status.  */
37587    configure_input='Generated from '`
37588	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37589	`' by configure.'
37590    if test x"$ac_file" != x-; then
37591      configure_input="$ac_file.  $configure_input"
37592      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37593$as_echo "$as_me: creating $ac_file" >&6;}
37594    fi
37595    # Neutralize special characters interpreted by sed in replacement strings.
37596    case $configure_input in #(
37597    *\&* | *\|* | *\\* )
37598       ac_sed_conf_input=`$as_echo "$configure_input" |
37599       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37600    *) ac_sed_conf_input=$configure_input;;
37601    esac
37602
37603    case $ac_tag in
37604    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37605      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37606    esac
37607    ;;
37608  esac
37609
37610  ac_dir=`$as_dirname -- "$ac_file" ||
37611$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37612	 X"$ac_file" : 'X\(//\)[^/]' \| \
37613	 X"$ac_file" : 'X\(//\)$' \| \
37614	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37615$as_echo X"$ac_file" |
37616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37617	    s//\1/
37618	    q
37619	  }
37620	  /^X\(\/\/\)[^/].*/{
37621	    s//\1/
37622	    q
37623	  }
37624	  /^X\(\/\/\)$/{
37625	    s//\1/
37626	    q
37627	  }
37628	  /^X\(\/\).*/{
37629	    s//\1/
37630	    q
37631	  }
37632	  s/.*/./; q'`
37633  as_dir="$ac_dir"; as_fn_mkdir_p
37634  ac_builddir=.
37635
37636case "$ac_dir" in
37637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37638*)
37639  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37640  # A ".." for each directory in $ac_dir_suffix.
37641  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37642  case $ac_top_builddir_sub in
37643  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37644  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37645  esac ;;
37646esac
37647ac_abs_top_builddir=$ac_pwd
37648ac_abs_builddir=$ac_pwd$ac_dir_suffix
37649# for backward compatibility:
37650ac_top_builddir=$ac_top_build_prefix
37651
37652case $srcdir in
37653  .)  # We are building in place.
37654    ac_srcdir=.
37655    ac_top_srcdir=$ac_top_builddir_sub
37656    ac_abs_top_srcdir=$ac_pwd ;;
37657  [\\/]* | ?:[\\/]* )  # Absolute name.
37658    ac_srcdir=$srcdir$ac_dir_suffix;
37659    ac_top_srcdir=$srcdir
37660    ac_abs_top_srcdir=$srcdir ;;
37661  *) # Relative name.
37662    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37663    ac_top_srcdir=$ac_top_build_prefix$srcdir
37664    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37665esac
37666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37667
37668
37669  case $ac_mode in
37670  :F)
37671  #
37672  # CONFIG_FILE
37673  #
37674
37675  case $INSTALL in
37676  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37677  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37678  esac
37679  ac_MKDIR_P=$MKDIR_P
37680  case $MKDIR_P in
37681  [\\/$]* | ?:[\\/]* ) ;;
37682  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37683  esac
37684_ACEOF
37685
37686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37687# If the template does not know about datarootdir, expand it.
37688# FIXME: This hack should be removed a few years after 2.60.
37689ac_datarootdir_hack=; ac_datarootdir_seen=
37690ac_sed_dataroot='
37691/datarootdir/ {
37692  p
37693  q
37694}
37695/@datadir@/p
37696/@docdir@/p
37697/@infodir@/p
37698/@localedir@/p
37699/@mandir@/p'
37700case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37701*datarootdir*) ac_datarootdir_seen=yes;;
37702*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37703  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37704$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37705_ACEOF
37706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37707  ac_datarootdir_hack='
37708  s&@datadir@&$datadir&g
37709  s&@docdir@&$docdir&g
37710  s&@infodir@&$infodir&g
37711  s&@localedir@&$localedir&g
37712  s&@mandir@&$mandir&g
37713  s&\\\${datarootdir}&$datarootdir&g' ;;
37714esac
37715_ACEOF
37716
37717# Neutralize VPATH when `$srcdir' = `.'.
37718# Shell code in configure.ac might set extrasub.
37719# FIXME: do we really want to maintain this feature?
37720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37721ac_sed_extra="$ac_vpsub
37722$extrasub
37723_ACEOF
37724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37725:t
37726/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37727s|@configure_input@|$ac_sed_conf_input|;t t
37728s&@top_builddir@&$ac_top_builddir_sub&;t t
37729s&@top_build_prefix@&$ac_top_build_prefix&;t t
37730s&@srcdir@&$ac_srcdir&;t t
37731s&@abs_srcdir@&$ac_abs_srcdir&;t t
37732s&@top_srcdir@&$ac_top_srcdir&;t t
37733s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37734s&@builddir@&$ac_builddir&;t t
37735s&@abs_builddir@&$ac_abs_builddir&;t t
37736s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37737s&@INSTALL@&$ac_INSTALL&;t t
37738s&@MKDIR_P@&$ac_MKDIR_P&;t t
37739$ac_datarootdir_hack
37740"
37741eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37742  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37743
37744test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37745  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37746  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
37747      "$ac_tmp/out"`; test -z "$ac_out"; } &&
37748  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37749which seems to be undefined.  Please make sure it is defined" >&5
37750$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37751which seems to be undefined.  Please make sure it is defined" >&2;}
37752
37753  rm -f "$ac_tmp/stdin"
37754  case $ac_file in
37755  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37756  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37757  esac \
37758  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37759 ;;
37760  :H)
37761  #
37762  # CONFIG_HEADER
37763  #
37764  if test x"$ac_file" != x-; then
37765    {
37766      $as_echo "/* $configure_input  */" \
37767      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37768    } >"$ac_tmp/config.h" \
37769      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37770    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37771      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37772$as_echo "$as_me: $ac_file is unchanged" >&6;}
37773    else
37774      rm -f "$ac_file"
37775      mv "$ac_tmp/config.h" "$ac_file" \
37776	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
37777    fi
37778  else
37779    $as_echo "/* $configure_input  */" \
37780      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37781      || as_fn_error $? "could not create -" "$LINENO" 5
37782  fi
37783# Compute "$ac_file"'s index in $config_headers.
37784_am_arg="$ac_file"
37785_am_stamp_count=1
37786for _am_header in $config_headers :; do
37787  case $_am_header in
37788    $_am_arg | $_am_arg:* )
37789      break ;;
37790    * )
37791      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37792  esac
37793done
37794echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37795$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37796	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37797	 X"$_am_arg" : 'X\(//\)$' \| \
37798	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37799$as_echo X"$_am_arg" |
37800    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37801	    s//\1/
37802	    q
37803	  }
37804	  /^X\(\/\/\)[^/].*/{
37805	    s//\1/
37806	    q
37807	  }
37808	  /^X\(\/\/\)$/{
37809	    s//\1/
37810	    q
37811	  }
37812	  /^X\(\/\).*/{
37813	    s//\1/
37814	    q
37815	  }
37816	  s/.*/./; q'`/stamp-h$_am_stamp_count
37817 ;;
37818
37819  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37820$as_echo "$as_me: executing $ac_file commands" >&6;}
37821 ;;
37822  esac
37823
37824
37825  case $ac_file$ac_mode in
37826    "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
37827ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37828ac_prefix_conf_PKG=`echo MagickCore`
37829ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37830ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
37831ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37832if test ".$ac_prefix_conf_INP" = "."; then
37833   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37834     case "$ac_file" in
37835        *.h) ac_prefix_conf_INP=$ac_file ;;
37836        *)
37837     esac
37838     test ".$ac_prefix_conf_INP" != "." && break
37839   done
37840fi
37841if test ".$ac_prefix_conf_INP" = "."; then
37842   case "$ac_prefix_conf_OUT" in
37843      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37844      ;;
37845      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37846      ;;
37847      *) ac_prefix_conf_INP=config.h
37848      ;;
37849   esac
37850fi
37851if test -z "$ac_prefix_conf_PKG" ; then
37852   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37853else
37854  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37855     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37856  fi fi
37857  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37858$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37859  if test -f $ac_prefix_conf_INP ; then
37860    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37861    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37862    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37863    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37864    $as_echo "#endif/" >> conftest.prefix
37865    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37866    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37867    $as_echo "#endif/" >> conftest.prefix
37868    # now executing _script on _DEF input to create _OUT output file
37869    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
37870    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37871    echo ' ' >>$tmp/pconfig.h
37872    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37873
37874    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37875    echo ' ' >>$tmp/pconfig.h
37876    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37877    echo "#endif" >>$tmp/pconfig.h
37878    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37879      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37880$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37881    else
37882      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37883$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37884	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37885	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37886	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37887$as_echo X"$ac_prefix_conf_OUT" |
37888    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37889	    s//\1/
37890	    q
37891	  }
37892	  /^X\(\/\/\)[^/].*/{
37893	    s//\1/
37894	    q
37895	  }
37896	  /^X\(\/\/\)$/{
37897	    s//\1/
37898	    q
37899	  }
37900	  /^X\(\/\).*/{
37901	    s//\1/
37902	    q
37903	  }
37904	  s/.*/./; q'`
37905      as_dir="$ac_dir"; as_fn_mkdir_p
37906      rm -f "$ac_prefix_conf_OUT"
37907      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37908    fi
37909    cp conftest.prefix _configs.sed
37910  else
37911    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
37912  fi
37913  rm -f conftest.*
37914fi
37915 ;;
37916    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37917  # Autoconf 2.62 quotes --file arguments for eval, but not when files
37918  # are listed without --file.  Let's play safe and only enable the eval
37919  # if we detect the quoting.
37920  case $CONFIG_FILES in
37921  *\'*) eval set x "$CONFIG_FILES" ;;
37922  *)   set x $CONFIG_FILES ;;
37923  esac
37924  shift
37925  for mf
37926  do
37927    # Strip MF so we end up with the name of the file.
37928    mf=`echo "$mf" | sed -e 's/:.*$//'`
37929    # Check whether this is an Automake generated Makefile or not.
37930    # We used to match only the files named 'Makefile.in', but
37931    # some people rename them; so instead we look at the file content.
37932    # Grep'ing the first line is not enough: some people post-process
37933    # each Makefile.in and add a new line on top of each file to say so.
37934    # Grep'ing the whole file is not good either: AIX grep has a line
37935    # limit of 2048, but all sed's we know have understand at least 4000.
37936    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37937      dirpart=`$as_dirname -- "$mf" ||
37938$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37939	 X"$mf" : 'X\(//\)[^/]' \| \
37940	 X"$mf" : 'X\(//\)$' \| \
37941	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37942$as_echo X"$mf" |
37943    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37944	    s//\1/
37945	    q
37946	  }
37947	  /^X\(\/\/\)[^/].*/{
37948	    s//\1/
37949	    q
37950	  }
37951	  /^X\(\/\/\)$/{
37952	    s//\1/
37953	    q
37954	  }
37955	  /^X\(\/\).*/{
37956	    s//\1/
37957	    q
37958	  }
37959	  s/.*/./; q'`
37960    else
37961      continue
37962    fi
37963    # Extract the definition of DEPDIR, am__include, and am__quote
37964    # from the Makefile without running 'make'.
37965    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37966    test -z "$DEPDIR" && continue
37967    am__include=`sed -n 's/^am__include = //p' < "$mf"`
37968    test -z "am__include" && continue
37969    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37970    # Find all dependency output files, they are included files with
37971    # $(DEPDIR) in their names.  We invoke sed twice because it is the
37972    # simplest approach to changing $(DEPDIR) to its actual value in the
37973    # expansion.
37974    for file in `sed -n "
37975      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37976	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
37977      # Make sure the directory exists.
37978      test -f "$dirpart/$file" && continue
37979      fdir=`$as_dirname -- "$file" ||
37980$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37981	 X"$file" : 'X\(//\)[^/]' \| \
37982	 X"$file" : 'X\(//\)$' \| \
37983	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37984$as_echo X"$file" |
37985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37986	    s//\1/
37987	    q
37988	  }
37989	  /^X\(\/\/\)[^/].*/{
37990	    s//\1/
37991	    q
37992	  }
37993	  /^X\(\/\/\)$/{
37994	    s//\1/
37995	    q
37996	  }
37997	  /^X\(\/\).*/{
37998	    s//\1/
37999	    q
38000	  }
38001	  s/.*/./; q'`
38002      as_dir=$dirpart/$fdir; as_fn_mkdir_p
38003      # echo "creating $dirpart/$file"
38004      echo '# dummy' > "$dirpart/$file"
38005    done
38006  done
38007}
38008 ;;
38009    "libtool":C)
38010
38011    # See if we are running on zsh, and set the options which allow our
38012    # commands through without removal of \ escapes.
38013    if test -n "${ZSH_VERSION+set}" ; then
38014      setopt NO_GLOB_SUBST
38015    fi
38016
38017    cfgfile="${ofile}T"
38018    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38019    $RM "$cfgfile"
38020
38021    cat <<_LT_EOF >> "$cfgfile"
38022#! $SHELL
38023
38024# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38025# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38026# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38027# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38028#
38029#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38030#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38031#                 Foundation, Inc.
38032#   Written by Gordon Matzigkeit, 1996
38033#
38034#   This file is part of GNU Libtool.
38035#
38036# GNU Libtool is free software; you can redistribute it and/or
38037# modify it under the terms of the GNU General Public License as
38038# published by the Free Software Foundation; either version 2 of
38039# the License, or (at your option) any later version.
38040#
38041# As a special exception to the GNU General Public License,
38042# if you distribute this file as part of a program or library that
38043# is built using GNU Libtool, you may include this file under the
38044# same distribution terms that you use for the rest of that program.
38045#
38046# GNU Libtool is distributed in the hope that it will be useful,
38047# but WITHOUT ANY WARRANTY; without even the implied warranty of
38048# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38049# GNU General Public License for more details.
38050#
38051# You should have received a copy of the GNU General Public License
38052# along with GNU Libtool; see the file COPYING.  If not, a copy
38053# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38054# obtained by writing to the Free Software Foundation, Inc.,
38055# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38056
38057
38058# The names of the tagged configurations supported by this script.
38059available_tags="CXX "
38060
38061# ### BEGIN LIBTOOL CONFIG
38062
38063# A sed program that does not truncate output.
38064SED=$lt_SED
38065
38066# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38067Xsed="\$SED -e 1s/^X//"
38068
38069# A grep program that handles long lines.
38070GREP=$lt_GREP
38071
38072# An ERE matcher.
38073EGREP=$lt_EGREP
38074
38075# A literal string matcher.
38076FGREP=$lt_FGREP
38077
38078# Shell to use when invoking shell scripts.
38079SHELL=$lt_SHELL
38080
38081# An echo program that protects backslashes.
38082ECHO=$lt_ECHO
38083
38084# Which release of libtool.m4 was used?
38085macro_version=$macro_version
38086macro_revision=$macro_revision
38087
38088# Assembler program.
38089AS=$lt_AS
38090
38091# DLL creation program.
38092DLLTOOL=$lt_DLLTOOL
38093
38094# Object dumper program.
38095OBJDUMP=$lt_OBJDUMP
38096
38097# Whether or not to build shared libraries.
38098build_libtool_libs=$enable_shared
38099
38100# Whether or not to build static libraries.
38101build_old_libs=$enable_static
38102
38103# What type of objects to build.
38104pic_mode=$pic_mode
38105
38106# Whether or not to optimize for fast installation.
38107fast_install=$enable_fast_install
38108
38109# The PATH separator for the build system.
38110PATH_SEPARATOR=$lt_PATH_SEPARATOR
38111
38112# The host system.
38113host_alias=$host_alias
38114host=$host
38115host_os=$host_os
38116
38117# The build system.
38118build_alias=$build_alias
38119build=$build
38120build_os=$build_os
38121
38122# A BSD- or MS-compatible name lister.
38123NM=$lt_NM
38124
38125# Whether we need soft or hard links.
38126LN_S=$lt_LN_S
38127
38128# What is the maximum length of a command?
38129max_cmd_len=$max_cmd_len
38130
38131# Object file suffix (normally "o").
38132objext=$ac_objext
38133
38134# Executable file suffix (normally "").
38135exeext=$exeext
38136
38137# whether the shell understands "unset".
38138lt_unset=$lt_unset
38139
38140# turn spaces into newlines.
38141SP2NL=$lt_lt_SP2NL
38142
38143# turn newlines into spaces.
38144NL2SP=$lt_lt_NL2SP
38145
38146# convert \$build file names to \$host format.
38147to_host_file_cmd=$lt_cv_to_host_file_cmd
38148
38149# convert \$build files to toolchain format.
38150to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38151
38152# Method to check whether dependent libraries are shared objects.
38153deplibs_check_method=$lt_deplibs_check_method
38154
38155# Command to use when deplibs_check_method = "file_magic".
38156file_magic_cmd=$lt_file_magic_cmd
38157
38158# How to find potential files when deplibs_check_method = "file_magic".
38159file_magic_glob=$lt_file_magic_glob
38160
38161# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38162want_nocaseglob=$lt_want_nocaseglob
38163
38164# Command to associate shared and link libraries.
38165sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38166
38167# The archiver.
38168AR=$lt_AR
38169
38170# Flags to create an archive.
38171AR_FLAGS=$lt_AR_FLAGS
38172
38173# How to feed a file listing to the archiver.
38174archiver_list_spec=$lt_archiver_list_spec
38175
38176# A symbol stripping program.
38177STRIP=$lt_STRIP
38178
38179# Commands used to install an old-style archive.
38180RANLIB=$lt_RANLIB
38181old_postinstall_cmds=$lt_old_postinstall_cmds
38182old_postuninstall_cmds=$lt_old_postuninstall_cmds
38183
38184# Whether to use a lock for old archive extraction.
38185lock_old_archive_extraction=$lock_old_archive_extraction
38186
38187# A C compiler.
38188LTCC=$lt_CC
38189
38190# LTCC compiler flags.
38191LTCFLAGS=$lt_CFLAGS
38192
38193# Take the output of nm and produce a listing of raw symbols and C names.
38194global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38195
38196# Transform the output of nm in a proper C declaration.
38197global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38198
38199# Transform the output of nm in a C name address pair.
38200global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38201
38202# Transform the output of nm in a C name address pair when lib prefix is needed.
38203global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38204
38205# Specify filename containing input files for \$NM.
38206nm_file_list_spec=$lt_nm_file_list_spec
38207
38208# The root where to search for dependent libraries,and in which our libraries should be installed.
38209lt_sysroot=$lt_sysroot
38210
38211# The name of the directory that contains temporary libtool files.
38212objdir=$objdir
38213
38214# Used to examine libraries when file_magic_cmd begins with "file".
38215MAGIC_CMD=$MAGIC_CMD
38216
38217# Must we lock files when doing compilation?
38218need_locks=$lt_need_locks
38219
38220# Manifest tool.
38221MANIFEST_TOOL=$lt_MANIFEST_TOOL
38222
38223# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38224DSYMUTIL=$lt_DSYMUTIL
38225
38226# Tool to change global to local symbols on Mac OS X.
38227NMEDIT=$lt_NMEDIT
38228
38229# Tool to manipulate fat objects and archives on Mac OS X.
38230LIPO=$lt_LIPO
38231
38232# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38233OTOOL=$lt_OTOOL
38234
38235# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38236OTOOL64=$lt_OTOOL64
38237
38238# Old archive suffix (normally "a").
38239libext=$libext
38240
38241# Shared library suffix (normally ".so").
38242shrext_cmds=$lt_shrext_cmds
38243
38244# The commands to extract the exported symbol list from a shared archive.
38245extract_expsyms_cmds=$lt_extract_expsyms_cmds
38246
38247# Variables whose values should be saved in libtool wrapper scripts and
38248# restored at link time.
38249variables_saved_for_relink=$lt_variables_saved_for_relink
38250
38251# Do we need the "lib" prefix for modules?
38252need_lib_prefix=$need_lib_prefix
38253
38254# Do we need a version for libraries?
38255need_version=$need_version
38256
38257# Library versioning type.
38258version_type=$version_type
38259
38260# Shared library runtime path variable.
38261runpath_var=$runpath_var
38262
38263# Shared library path variable.
38264shlibpath_var=$shlibpath_var
38265
38266# Is shlibpath searched before the hard-coded library search path?
38267shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38268
38269# Format of library name prefix.
38270libname_spec=$lt_libname_spec
38271
38272# List of archive names.  First name is the real one, the rest are links.
38273# The last name is the one that the linker finds with -lNAME
38274library_names_spec=$lt_library_names_spec
38275
38276# The coded name of the library, if different from the real name.
38277soname_spec=$lt_soname_spec
38278
38279# Permission mode override for installation of shared libraries.
38280install_override_mode=$lt_install_override_mode
38281
38282# Command to use after installation of a shared archive.
38283postinstall_cmds=$lt_postinstall_cmds
38284
38285# Command to use after uninstallation of a shared archive.
38286postuninstall_cmds=$lt_postuninstall_cmds
38287
38288# Commands used to finish a libtool library installation in a directory.
38289finish_cmds=$lt_finish_cmds
38290
38291# As "finish_cmds", except a single script fragment to be evaled but
38292# not shown.
38293finish_eval=$lt_finish_eval
38294
38295# Whether we should hardcode library paths into libraries.
38296hardcode_into_libs=$hardcode_into_libs
38297
38298# Compile-time system search path for libraries.
38299sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38300
38301# Run-time system search path for libraries.
38302sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38303
38304# Whether dlopen is supported.
38305dlopen_support=$enable_dlopen
38306
38307# Whether dlopen of programs is supported.
38308dlopen_self=$enable_dlopen_self
38309
38310# Whether dlopen of statically linked programs is supported.
38311dlopen_self_static=$enable_dlopen_self_static
38312
38313# Commands to strip libraries.
38314old_striplib=$lt_old_striplib
38315striplib=$lt_striplib
38316
38317
38318# The linker used to build libraries.
38319LD=$lt_LD
38320
38321# How to create reloadable object files.
38322reload_flag=$lt_reload_flag
38323reload_cmds=$lt_reload_cmds
38324
38325# Commands used to build an old-style archive.
38326old_archive_cmds=$lt_old_archive_cmds
38327
38328# A language specific compiler.
38329CC=$lt_compiler
38330
38331# Is the compiler the GNU compiler?
38332with_gcc=$GCC
38333
38334# Compiler flag to turn off builtin functions.
38335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38336
38337# Additional compiler flags for building library objects.
38338pic_flag=$lt_lt_prog_compiler_pic
38339
38340# How to pass a linker flag through the compiler.
38341wl=$lt_lt_prog_compiler_wl
38342
38343# Compiler flag to prevent dynamic linking.
38344link_static_flag=$lt_lt_prog_compiler_static
38345
38346# Does compiler simultaneously support -c and -o options?
38347compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38348
38349# Whether or not to add -lc for building shared libraries.
38350build_libtool_need_lc=$archive_cmds_need_lc
38351
38352# Whether or not to disallow shared libs when runtime libs are static.
38353allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38354
38355# Compiler flag to allow reflexive dlopens.
38356export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38357
38358# Compiler flag to generate shared objects directly from archives.
38359whole_archive_flag_spec=$lt_whole_archive_flag_spec
38360
38361# Whether the compiler copes with passing no objects directly.
38362compiler_needs_object=$lt_compiler_needs_object
38363
38364# Create an old-style archive from a shared archive.
38365old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38366
38367# Create a temporary old-style archive to link instead of a shared archive.
38368old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38369
38370# Commands used to build a shared archive.
38371archive_cmds=$lt_archive_cmds
38372archive_expsym_cmds=$lt_archive_expsym_cmds
38373
38374# Commands used to build a loadable module if different from building
38375# a shared archive.
38376module_cmds=$lt_module_cmds
38377module_expsym_cmds=$lt_module_expsym_cmds
38378
38379# Whether we are building with GNU ld or not.
38380with_gnu_ld=$lt_with_gnu_ld
38381
38382# Flag that allows shared libraries with undefined symbols to be built.
38383allow_undefined_flag=$lt_allow_undefined_flag
38384
38385# Flag that enforces no undefined symbols.
38386no_undefined_flag=$lt_no_undefined_flag
38387
38388# Flag to hardcode \$libdir into a binary during linking.
38389# This must work even if \$libdir does not exist
38390hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38391
38392# Whether we need a single "-rpath" flag with a separated argument.
38393hardcode_libdir_separator=$lt_hardcode_libdir_separator
38394
38395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38396# DIR into the resulting binary.
38397hardcode_direct=$hardcode_direct
38398
38399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38400# DIR into the resulting binary and the resulting library dependency is
38401# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38402# library is relocated.
38403hardcode_direct_absolute=$hardcode_direct_absolute
38404
38405# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38406# into the resulting binary.
38407hardcode_minus_L=$hardcode_minus_L
38408
38409# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38410# into the resulting binary.
38411hardcode_shlibpath_var=$hardcode_shlibpath_var
38412
38413# Set to "yes" if building a shared library automatically hardcodes DIR
38414# into the library and all subsequent libraries and executables linked
38415# against it.
38416hardcode_automatic=$hardcode_automatic
38417
38418# Set to yes if linker adds runtime paths of dependent libraries
38419# to runtime path list.
38420inherit_rpath=$inherit_rpath
38421
38422# Whether libtool must link a program against all its dependency libraries.
38423link_all_deplibs=$link_all_deplibs
38424
38425# Set to "yes" if exported symbols are required.
38426always_export_symbols=$always_export_symbols
38427
38428# The commands to list exported symbols.
38429export_symbols_cmds=$lt_export_symbols_cmds
38430
38431# Symbols that should not be listed in the preloaded symbols.
38432exclude_expsyms=$lt_exclude_expsyms
38433
38434# Symbols that must always be exported.
38435include_expsyms=$lt_include_expsyms
38436
38437# Commands necessary for linking programs (against libraries) with templates.
38438prelink_cmds=$lt_prelink_cmds
38439
38440# Commands necessary for finishing linking programs.
38441postlink_cmds=$lt_postlink_cmds
38442
38443# Specify filename containing input files.
38444file_list_spec=$lt_file_list_spec
38445
38446# How to hardcode a shared library path into an executable.
38447hardcode_action=$hardcode_action
38448
38449# The directories searched by this compiler when creating a shared library.
38450compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38451
38452# Dependencies to place before and after the objects being linked to
38453# create a shared library.
38454predep_objects=$lt_predep_objects
38455postdep_objects=$lt_postdep_objects
38456predeps=$lt_predeps
38457postdeps=$lt_postdeps
38458
38459# The library search path used internally by the compiler when linking
38460# a shared library.
38461compiler_lib_search_path=$lt_compiler_lib_search_path
38462
38463# ### END LIBTOOL CONFIG
38464
38465_LT_EOF
38466
38467  case $host_os in
38468  aix3*)
38469    cat <<\_LT_EOF >> "$cfgfile"
38470# AIX sometimes has problems with the GCC collect2 program.  For some
38471# reason, if we set the COLLECT_NAMES environment variable, the problems
38472# vanish in a puff of smoke.
38473if test "X${COLLECT_NAMES+set}" != Xset; then
38474  COLLECT_NAMES=
38475  export COLLECT_NAMES
38476fi
38477_LT_EOF
38478    ;;
38479  esac
38480
38481
38482ltmain="$ac_aux_dir/ltmain.sh"
38483
38484
38485  # We use sed instead of cat because bash on DJGPP gets confused if
38486  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38487  # text mode, it properly converts lines to CR/LF.  This bash problem
38488  # is reportedly fixed, but why not run on old versions too?
38489  sed '$q' "$ltmain" >> "$cfgfile" \
38490     || (rm -f "$cfgfile"; exit 1)
38491
38492  if test x"$xsi_shell" = xyes; then
38493  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38494func_dirname ()\
38495{\
38496\    case ${1} in\
38497\      */*) func_dirname_result="${1%/*}${2}" ;;\
38498\      *  ) func_dirname_result="${3}" ;;\
38499\    esac\
38500} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38501  && mv -f "$cfgfile.tmp" "$cfgfile" \
38502    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38503test 0 -eq $? || _lt_function_replace_fail=:
38504
38505
38506  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38507func_basename ()\
38508{\
38509\    func_basename_result="${1##*/}"\
38510} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38511  && mv -f "$cfgfile.tmp" "$cfgfile" \
38512    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38513test 0 -eq $? || _lt_function_replace_fail=:
38514
38515
38516  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38517func_dirname_and_basename ()\
38518{\
38519\    case ${1} in\
38520\      */*) func_dirname_result="${1%/*}${2}" ;;\
38521\      *  ) func_dirname_result="${3}" ;;\
38522\    esac\
38523\    func_basename_result="${1##*/}"\
38524} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38525  && mv -f "$cfgfile.tmp" "$cfgfile" \
38526    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38527test 0 -eq $? || _lt_function_replace_fail=:
38528
38529
38530  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38531func_stripname ()\
38532{\
38533\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38534\    # positional parameters, so assign one to ordinary parameter first.\
38535\    func_stripname_result=${3}\
38536\    func_stripname_result=${func_stripname_result#"${1}"}\
38537\    func_stripname_result=${func_stripname_result%"${2}"}\
38538} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38539  && mv -f "$cfgfile.tmp" "$cfgfile" \
38540    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38541test 0 -eq $? || _lt_function_replace_fail=:
38542
38543
38544  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38545func_split_long_opt ()\
38546{\
38547\    func_split_long_opt_name=${1%%=*}\
38548\    func_split_long_opt_arg=${1#*=}\
38549} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38550  && mv -f "$cfgfile.tmp" "$cfgfile" \
38551    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38552test 0 -eq $? || _lt_function_replace_fail=:
38553
38554
38555  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38556func_split_short_opt ()\
38557{\
38558\    func_split_short_opt_arg=${1#??}\
38559\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38560} # Extended-shell func_split_short_opt 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
38565
38566  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38567func_lo2o ()\
38568{\
38569\    case ${1} in\
38570\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38571\      *)    func_lo2o_result=${1} ;;\
38572\    esac\
38573} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38574  && mv -f "$cfgfile.tmp" "$cfgfile" \
38575    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38576test 0 -eq $? || _lt_function_replace_fail=:
38577
38578
38579  sed -e '/^func_xform ()$/,/^} # func_xform /c\
38580func_xform ()\
38581{\
38582    func_xform_result=${1%.*}.lo\
38583} # Extended-shell func_xform 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  sed -e '/^func_arith ()$/,/^} # func_arith /c\
38590func_arith ()\
38591{\
38592    func_arith_result=$(( $* ))\
38593} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38594  && mv -f "$cfgfile.tmp" "$cfgfile" \
38595    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38596test 0 -eq $? || _lt_function_replace_fail=:
38597
38598
38599  sed -e '/^func_len ()$/,/^} # func_len /c\
38600func_len ()\
38601{\
38602    func_len_result=${#1}\
38603} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38604  && mv -f "$cfgfile.tmp" "$cfgfile" \
38605    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38606test 0 -eq $? || _lt_function_replace_fail=:
38607
38608fi
38609
38610if test x"$lt_shell_append" = xyes; then
38611  sed -e '/^func_append ()$/,/^} # func_append /c\
38612func_append ()\
38613{\
38614    eval "${1}+=\\${2}"\
38615} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38616  && mv -f "$cfgfile.tmp" "$cfgfile" \
38617    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38618test 0 -eq $? || _lt_function_replace_fail=:
38619
38620
38621  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38622func_append_quoted ()\
38623{\
38624\    func_quote_for_eval "${2}"\
38625\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38626} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38627  && mv -f "$cfgfile.tmp" "$cfgfile" \
38628    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38629test 0 -eq $? || _lt_function_replace_fail=:
38630
38631
38632  # Save a `func_append' function call where possible by direct use of '+='
38633  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38634    && mv -f "$cfgfile.tmp" "$cfgfile" \
38635      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38636  test 0 -eq $? || _lt_function_replace_fail=:
38637else
38638  # Save a `func_append' function call even when '+=' is not available
38639  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38640    && mv -f "$cfgfile.tmp" "$cfgfile" \
38641      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38642  test 0 -eq $? || _lt_function_replace_fail=:
38643fi
38644
38645if test x"$_lt_function_replace_fail" = x":"; then
38646  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38647$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38648fi
38649
38650
38651   mv -f "$cfgfile" "$ofile" ||
38652    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38653  chmod +x "$ofile"
38654
38655
38656    cat <<_LT_EOF >> "$ofile"
38657
38658# ### BEGIN LIBTOOL TAG CONFIG: CXX
38659
38660# The linker used to build libraries.
38661LD=$lt_LD_CXX
38662
38663# How to create reloadable object files.
38664reload_flag=$lt_reload_flag_CXX
38665reload_cmds=$lt_reload_cmds_CXX
38666
38667# Commands used to build an old-style archive.
38668old_archive_cmds=$lt_old_archive_cmds_CXX
38669
38670# A language specific compiler.
38671CC=$lt_compiler_CXX
38672
38673# Is the compiler the GNU compiler?
38674with_gcc=$GCC_CXX
38675
38676# Compiler flag to turn off builtin functions.
38677no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38678
38679# Additional compiler flags for building library objects.
38680pic_flag=$lt_lt_prog_compiler_pic_CXX
38681
38682# How to pass a linker flag through the compiler.
38683wl=$lt_lt_prog_compiler_wl_CXX
38684
38685# Compiler flag to prevent dynamic linking.
38686link_static_flag=$lt_lt_prog_compiler_static_CXX
38687
38688# Does compiler simultaneously support -c and -o options?
38689compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38690
38691# Whether or not to add -lc for building shared libraries.
38692build_libtool_need_lc=$archive_cmds_need_lc_CXX
38693
38694# Whether or not to disallow shared libs when runtime libs are static.
38695allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38696
38697# Compiler flag to allow reflexive dlopens.
38698export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38699
38700# Compiler flag to generate shared objects directly from archives.
38701whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38702
38703# Whether the compiler copes with passing no objects directly.
38704compiler_needs_object=$lt_compiler_needs_object_CXX
38705
38706# Create an old-style archive from a shared archive.
38707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38708
38709# Create a temporary old-style archive to link instead of a shared archive.
38710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38711
38712# Commands used to build a shared archive.
38713archive_cmds=$lt_archive_cmds_CXX
38714archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38715
38716# Commands used to build a loadable module if different from building
38717# a shared archive.
38718module_cmds=$lt_module_cmds_CXX
38719module_expsym_cmds=$lt_module_expsym_cmds_CXX
38720
38721# Whether we are building with GNU ld or not.
38722with_gnu_ld=$lt_with_gnu_ld_CXX
38723
38724# Flag that allows shared libraries with undefined symbols to be built.
38725allow_undefined_flag=$lt_allow_undefined_flag_CXX
38726
38727# Flag that enforces no undefined symbols.
38728no_undefined_flag=$lt_no_undefined_flag_CXX
38729
38730# Flag to hardcode \$libdir into a binary during linking.
38731# This must work even if \$libdir does not exist
38732hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38733
38734# Whether we need a single "-rpath" flag with a separated argument.
38735hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38736
38737# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38738# DIR into the resulting binary.
38739hardcode_direct=$hardcode_direct_CXX
38740
38741# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38742# DIR into the resulting binary and the resulting library dependency is
38743# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38744# library is relocated.
38745hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38746
38747# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38748# into the resulting binary.
38749hardcode_minus_L=$hardcode_minus_L_CXX
38750
38751# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38752# into the resulting binary.
38753hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38754
38755# Set to "yes" if building a shared library automatically hardcodes DIR
38756# into the library and all subsequent libraries and executables linked
38757# against it.
38758hardcode_automatic=$hardcode_automatic_CXX
38759
38760# Set to yes if linker adds runtime paths of dependent libraries
38761# to runtime path list.
38762inherit_rpath=$inherit_rpath_CXX
38763
38764# Whether libtool must link a program against all its dependency libraries.
38765link_all_deplibs=$link_all_deplibs_CXX
38766
38767# Set to "yes" if exported symbols are required.
38768always_export_symbols=$always_export_symbols_CXX
38769
38770# The commands to list exported symbols.
38771export_symbols_cmds=$lt_export_symbols_cmds_CXX
38772
38773# Symbols that should not be listed in the preloaded symbols.
38774exclude_expsyms=$lt_exclude_expsyms_CXX
38775
38776# Symbols that must always be exported.
38777include_expsyms=$lt_include_expsyms_CXX
38778
38779# Commands necessary for linking programs (against libraries) with templates.
38780prelink_cmds=$lt_prelink_cmds_CXX
38781
38782# Commands necessary for finishing linking programs.
38783postlink_cmds=$lt_postlink_cmds_CXX
38784
38785# Specify filename containing input files.
38786file_list_spec=$lt_file_list_spec_CXX
38787
38788# How to hardcode a shared library path into an executable.
38789hardcode_action=$hardcode_action_CXX
38790
38791# The directories searched by this compiler when creating a shared library.
38792compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38793
38794# Dependencies to place before and after the objects being linked to
38795# create a shared library.
38796predep_objects=$lt_predep_objects_CXX
38797postdep_objects=$lt_postdep_objects_CXX
38798predeps=$lt_predeps_CXX
38799postdeps=$lt_postdeps_CXX
38800
38801# The library search path used internally by the compiler when linking
38802# a shared library.
38803compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38804
38805# ### END LIBTOOL TAG CONFIG: CXX
38806_LT_EOF
38807
38808 ;;
38809    "magick.sh.in":C) chmod +x magick.sh ;;
38810    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38811    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38812    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38813    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38814
38815  esac
38816done # for ac_tag
38817
38818
38819as_fn_exit 0
38820_ACEOF
38821ac_clean_files=$ac_clean_files_save
38822
38823test $ac_write_fail = 0 ||
38824  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38825
38826
38827# configure is writing to config.log, and then calls config.status.
38828# config.status does its own redirection, appending to config.log.
38829# Unfortunately, on DOS this fails, as config.log is still kept open
38830# by configure, so config.status won't be able to write to it; its
38831# output is simply discarded.  So we exec the FD to /dev/null,
38832# effectively closing config.log, so it can be properly (re)opened and
38833# appended to by config.status.  When coming back to configure, we
38834# need to make the FD available again.
38835if test "$no_create" != yes; then
38836  ac_cs_success=:
38837  ac_config_status_args=
38838  test "$silent" = yes &&
38839    ac_config_status_args="$ac_config_status_args --quiet"
38840  exec 5>/dev/null
38841  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38842  exec 5>>config.log
38843  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38844  # would make configure fail if this is the last instruction.
38845  $ac_cs_success || as_fn_exit 1
38846fi
38847if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38849$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38850fi
38851
38852
38853rm -f magick-version
38854
38855result_dejavu_font_dir='none'
38856if test "${dejavu_font_dir}x" != 'x'; then
38857    result_dejavu_font_dir=$dejavu_font_dir
38858fi
38859
38860result_ghostscript_font_dir='none'
38861if test "${ghostscript_font_dir}x" != 'x'; then
38862    result_ghostscript_font_dir=$ghostscript_font_dir
38863fi
38864
38865result_windows_font_dir='none'
38866if test "${windows_font_dir}x" != 'x'; then
38867    result_windows_font_dir=${windows_font_dir}
38868fi
38869
38870{ $as_echo "$as_me:${as_lineno-$LINENO}:
38871ImageMagick is configured as follows. Please verify that this configuration
38872matches your expectations.
38873
38874Host system type: $host
38875Build system type: $build
38876
38877                  Option                        Value
38878-------------------------------------------------------------------------------
38879Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38880Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38881Module support    --with-modules=$with_modules		$with_modules
38882GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38883Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38884High Dynamic Range Imagery
38885                  --enable-hdri=$enable_hdri		$enable_hdri
38886
38887Delegate Configuration:
38888BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38889Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38890Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38891DJVU              --with-djvu=$with_djvu		$have_djvu
38892DPS               --with-dps=$with_dps		$have_dps
38893FFTW              --with-fftw=$with_fftw		$have_fftw
38894FlashPIX          --with-fpx=$with_fpx		$have_fpx
38895FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38896FreeType          --with-freetype=$with_freetype		$have_freetype
38897GhostPCL          None				$PCLDelegate ($PCLVersion)
38898GhostXPS          None				$XPSDelegate ($XPSVersion)
38899Ghostscript       None				$PSDelegate ($GSVersion)
38900Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38901Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38902Graphviz          --with-gvc=$with_gvc		$have_gvc
38903JBIG              --with-jbig=$with_jbig		$have_jbig
38904JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38905JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38906LCMS v1           --with-lcms=$with_lcms		$have_lcms
38907LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38908LQR               --with-lqr=$with_lqr		$have_lqr
38909LZMA              --with-lzma=$with_lzma		$have_lzma
38910Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38911OpenEXR           --with-openexr=$with_openexr		$have_openexr
38912PANGO             --with-pango=$with_pango		$have_pango
38913PERL              --with-perl=$with_perl		$have_perl
38914PNG               --with-png=$with_png		$have_png
38915RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38916TIFF              --with-tiff=$with_tiff		$have_tiff
38917WEBP              --with-webp=$with_webp		$have_webp
38918Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38919WMF               --with-wmf=$with_wmf		$have_wmf
38920X11               --with-x=$with_x			$have_x
38921XML               --with-xml=$with_xml		$have_xml
38922ZLIB              --with-zlib=$with_zlib		$have_zlib
38923
38924X11 Configuration:
38925      X_CFLAGS        = $X_CFLAGS
38926      X_PRE_LIBS      = $X_PRE_LIBS
38927      X_LIBS          = $X_LIBS
38928      X_EXTRA_LIBS    = $X_EXTRA_LIBS
38929
38930Options used to compile and link:
38931  PREFIX          = $PREFIX_DIR
38932  EXEC-PREFIX     = $EXEC_PREFIX_DIR
38933  VERSION         = $PACKAGE_VERSION
38934  CC              = $CC
38935  CFLAGS          = $CFLAGS
38936  CPPFLAGS        = $MAGICK_CPPFLAGS
38937  PCFLAGS         = $MAGICK_PCFLAGS
38938  DEFS            = $DEFS
38939  LDFLAGS         = $LDFLAGS
38940  MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38941  LIBS            = $MAGICK_LIBS
38942  CXX             = $CXX
38943  CXXFLAGS        = $CXXFLAGS
38944  FEATURES        = $MAGICK_FEATURES
38945" >&5
38946$as_echo "$as_me:
38947ImageMagick is configured as follows. Please verify that this configuration
38948matches your expectations.
38949
38950Host system type: $host
38951Build system type: $build
38952
38953                  Option                        Value
38954-------------------------------------------------------------------------------
38955Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38956Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38957Module support    --with-modules=$with_modules		$with_modules
38958GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38959Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38960High Dynamic Range Imagery
38961                  --enable-hdri=$enable_hdri		$enable_hdri
38962
38963Delegate Configuration:
38964BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38965Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38966Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38967DJVU              --with-djvu=$with_djvu		$have_djvu
38968DPS               --with-dps=$with_dps		$have_dps
38969FFTW              --with-fftw=$with_fftw		$have_fftw
38970FlashPIX          --with-fpx=$with_fpx		$have_fpx
38971FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38972FreeType          --with-freetype=$with_freetype		$have_freetype
38973GhostPCL          None				$PCLDelegate ($PCLVersion)
38974GhostXPS          None				$XPSDelegate ($XPSVersion)
38975Ghostscript       None				$PSDelegate ($GSVersion)
38976Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38977Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38978Graphviz          --with-gvc=$with_gvc		$have_gvc
38979JBIG              --with-jbig=$with_jbig		$have_jbig
38980JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38981JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38982LCMS v1           --with-lcms=$with_lcms		$have_lcms
38983LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38984LQR               --with-lqr=$with_lqr		$have_lqr
38985LZMA              --with-lzma=$with_lzma		$have_lzma
38986Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38987OpenEXR           --with-openexr=$with_openexr		$have_openexr
38988PANGO             --with-pango=$with_pango		$have_pango
38989PERL              --with-perl=$with_perl		$have_perl
38990PNG               --with-png=$with_png		$have_png
38991RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38992TIFF              --with-tiff=$with_tiff		$have_tiff
38993WEBP              --with-webp=$with_webp		$have_webp
38994Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38995WMF               --with-wmf=$with_wmf		$have_wmf
38996X11               --with-x=$with_x			$have_x
38997XML               --with-xml=$with_xml		$have_xml
38998ZLIB              --with-zlib=$with_zlib		$have_zlib
38999
39000X11 Configuration:
39001      X_CFLAGS        = $X_CFLAGS
39002      X_PRE_LIBS      = $X_PRE_LIBS
39003      X_LIBS          = $X_LIBS
39004      X_EXTRA_LIBS    = $X_EXTRA_LIBS
39005
39006Options used to compile and link:
39007  PREFIX          = $PREFIX_DIR
39008  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39009  VERSION         = $PACKAGE_VERSION
39010  CC              = $CC
39011  CFLAGS          = $CFLAGS
39012  CPPFLAGS        = $MAGICK_CPPFLAGS
39013  PCFLAGS         = $MAGICK_PCFLAGS
39014  DEFS            = $DEFS
39015  LDFLAGS         = $LDFLAGS
39016  MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
39017  LIBS            = $MAGICK_LIBS
39018  CXX             = $CXX
39019  CXXFLAGS        = $CXXFLAGS
39020  FEATURES        = $MAGICK_FEATURES
39021" >&6;}
39022