1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cups-filters 1.28.10.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='cups-filters'
589PACKAGE_TARNAME='cups-filters'
590PACKAGE_VERSION='1.28.10'
591PACKAGE_STRING='cups-filters 1.28.10'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_default_prefix=/
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632gt_needs=
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637TABLESDIR
638ENABLE_BRAILLE_FALSE
639ENABLE_BRAILLE_TRUE
640PHPDIR
641PHPCONFIG
642WITH_PHP_FALSE
643WITH_PHP_TRUE
644ENABLE_FOOMATIC_FALSE
645ENABLE_FOOMATIC_TRUE
646CUPS_PDFTOPS
647ENABLE_MUTOOL_FALSE
648ENABLE_MUTOOL_TRUE
649CUPS_MUTOOL
650ENABLE_GHOSTSCRIPT_FALSE
651ENABLE_GHOSTSCRIPT_TRUE
652CUPS_GHOSTSCRIPT
653LARGEFILE
654DBUS_LIBS
655DBUS_CFLAGS
656BUILD_DBUS_FALSE
657BUILD_DBUS_TRUE
658POPPLER_LIBS
659POPPLER_CFLAGS
660ENABLE_POPPLER_FALSE
661ENABLE_POPPLER_TRUE
662QPDF_NO_PCLM
663LIBQPDF_LIBS
664LIBQPDF_CFLAGS
665ZLIB_LIBS
666ZLIB_CFLAGS
667FONTCONFIG_LIBS
668FONTCONFIG_CFLAGS
669FREETYPE_LIBS
670FREETYPE_CFLAGS
671LCMS_LIBS
672LCMS_CFLAGS
673RCSTOP
674RCSTART
675RCLEVELS
676INITDDIR
677INITDIR
678RCLINKS_FALSE
679RCLINKS_TRUE
680BROWSEREMOTEPROTOCOLS
681GIO_UNIX_LIBS
682GIO_UNIX_CFLAGS
683GIO_LIBS
684GIO_CFLAGS
685AVAHI_GLIB_LIBS
686AVAHI_GLIB_CFLAGS
687GLIB_LIBS
688GLIB_CFLAGS
689AVAHI_LIBS
690AVAHI_CFLAGS
691ENABLE_AVAHI_FALSE
692ENABLE_AVAHI_TRUE
693LIBTIFF_LIBS
694LIBPNG_LIBS
695LIBPNG_CFLAGS
696LIBJPEG_LIBS
697ENABLE_IMAGEFILTERS_FALSE
698ENABLE_IMAGEFILTERS_TRUE
699STRCASESTR
700GETLINE
701CUPS_DEFAULT_DOMAINSOCKET
702CUPS_STATEDIR
703DLOPEN_LIBS
704BANNERTOPDF_DATADIR
705APPLE_RASTER_FILTER
706ENABLE_URFTOPDF_FALSE
707ENABLE_URFTOPDF_TRUE
708ENABLE_DRIVERLESS_FALSE
709ENABLE_DRIVERLESS_TRUE
710CUPS_SERVERBIN
711CUPS_FONTPATH
712CUPS_SERVERROOT
713CUPS_DATADIR
714CUPS_LIBS
715CUPS_CFLAGS
716CUPSCONFIG
717FONTDIR
718POSUB
719LTLIBINTL
720LIBINTL
721INTLLIBS
722INTL_MACOSX_LIBS
723XGETTEXT_EXTRA_OPTIONS
724MSGMERGE
725XGETTEXT_015
726XGETTEXT
727GMSGFMT_015
728MSGFMT_015
729GMSGFMT
730MSGFMT
731GETTEXT_MACRO_VERSION
732USE_NLS
733PKG_CONFIG_LIBDIR
734PKG_CONFIG_PATH
735PKG_CONFIG
736LT_SYS_LIBRARY_PATH
737OTOOL64
738OTOOL
739LIPO
740NMEDIT
741DSYMUTIL
742MANIFEST_TOOL
743RANLIB
744ac_ct_AR
745AR
746DLLTOOL
747OBJDUMP
748NM
749ac_ct_DUMPBIN
750DUMPBIN
751LD
752FGREP
753SED
754LIBTOOL
755LN_SRF
756LN_S
757CPP
758LTLIBICONV
759LIBICONV
760EGREP
761GREP
762CXXCPP
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
771HAVE_CXX11
772am__fastdepCXX_FALSE
773am__fastdepCXX_TRUE
774CXXDEPMODE
775ac_ct_CXX
776CXXFLAGS
777CXX
778am__fastdepCC_FALSE
779am__fastdepCC_TRUE
780CCDEPMODE
781am__nodep
782AMDEPBACKSLASH
783AMDEP_FALSE
784AMDEP_TRUE
785am__include
786DEPDIR
787OBJEXT
788EXEEXT
789ac_ct_CC
790CPPFLAGS
791LDFLAGS
792CFLAGS
793CC
794AM_BACKSLASH
795AM_DEFAULT_VERBOSITY
796AM_DEFAULT_V
797AM_V
798am__untar
799am__tar
800AMTAR
801am__leading_dot
802SET_MAKE
803AWK
804mkdir_p
805MKDIR_P
806INSTALL_STRIP_PROGRAM
807STRIP
808install_sh
809MAKEINFO
810AUTOHEADER
811AUTOMAKE
812AUTOCONF
813ACLOCAL
814VERSION
815PACKAGE
816CYGPATH_W
817am__isrc
818INSTALL_DATA
819INSTALL_SCRIPT
820INSTALL_PROGRAM
821target_alias
822host_alias
823build_alias
824LIBS
825ECHO_T
826ECHO_N
827ECHO_C
828DEFS
829mandir
830localedir
831libdir
832psdir
833pdfdir
834dvidir
835htmldir
836infodir
837docdir
838oldincludedir
839includedir
840runstatedir
841localstatedir
842sharedstatedir
843sysconfdir
844datadir
845datarootdir
846libexecdir
847sbindir
848bindir
849program_transform_name
850prefix
851exec_prefix
852PACKAGE_URL
853PACKAGE_BUGREPORT
854PACKAGE_STRING
855PACKAGE_VERSION
856PACKAGE_TARNAME
857PACKAGE_NAME
858PATH_SEPARATOR
859SHELL
860am__quote'
861ac_subst_files=''
862ac_user_opts='
863enable_option_checking
864enable_silent_rules
865enable_dependency_tracking
866with_gnu_ld
867enable_rpath
868with_libiconv_prefix
869enable_shared
870enable_static
871with_pic
872enable_fast_install
873with_aix_soname
874with_sysroot
875enable_libtool_lock
876enable_nls
877with_libintl_prefix
878with_fontdir
879with_cups_config
880enable_driverless
881with_apple_raster_filter
882enable_auto_setup_local_only
883enable_auto_setup_driverless_only
884with_cups_rundir
885with_cups_domainsocket
886enable_imagefilters
887with_jpeg
888with_png
889with_tiff
890enable_avahi
891with_avahi_libs
892with_avahi_includes
893enable_ldap
894with_ldap_libs
895with_ldap_includes
896with_browseremoteprotocols
897with_rcdir
898with_rclevels
899with_rcstart
900with_rcstop
901enable_pclm
902enable_poppler
903enable_dbus
904enable_largefile
905enable_mutool
906with_mutool_path
907enable_ghostscript
908with_pdftops
909with_gs_path
910with_pdftops_path
911with_pdftocairo_path
912with_acroread_path
913with_ippfind_path
914with_pdftops_maxres
915enable_gs_ps2write
916enable_foomatic
917with_php
918with_php_config
919with_test_font_path
920enable_werror
921enable_braille
922enable_saving_created_queues
923with_remote_cups_local_queue_naming
924with_shell
925'
926      ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CXX
935CXXFLAGS
936CCC
937CXXCPP
938CPP
939LT_SYS_LIBRARY_PATH
940PKG_CONFIG
941PKG_CONFIG_PATH
942PKG_CONFIG_LIBDIR
943LIBPNG_CFLAGS
944LIBPNG_LIBS
945AVAHI_CFLAGS
946AVAHI_LIBS
947GLIB_CFLAGS
948GLIB_LIBS
949AVAHI_GLIB_CFLAGS
950AVAHI_GLIB_LIBS
951GIO_CFLAGS
952GIO_LIBS
953GIO_UNIX_CFLAGS
954GIO_UNIX_LIBS
955LCMS_CFLAGS
956LCMS_LIBS
957FREETYPE_CFLAGS
958FREETYPE_LIBS
959FONTCONFIG_CFLAGS
960FONTCONFIG_LIBS
961ZLIB_CFLAGS
962ZLIB_LIBS
963LIBQPDF_CFLAGS
964LIBQPDF_LIBS
965POPPLER_CFLAGS
966POPPLER_LIBS
967DBUS_CFLAGS
968DBUS_LIBS'
969
970
971# Initialize some variables set by options.
972ac_init_help=
973ac_init_version=false
974ac_unrecognized_opts=
975ac_unrecognized_sep=
976# The variables have the same names as the options, with
977# dashes changed to underlines.
978cache_file=/dev/null
979exec_prefix=NONE
980no_create=
981no_recursion=
982prefix=NONE
983program_prefix=NONE
984program_suffix=NONE
985program_transform_name=s,x,x,
986silent=
987site=
988srcdir=
989verbose=
990x_includes=NONE
991x_libraries=NONE
992
993# Installation directory options.
994# These are left unexpanded so users can "make install exec_prefix=/foo"
995# and all the variables that are supposed to be based on exec_prefix
996# by default will actually change.
997# Use braces instead of parens because sh, perl, etc. also accept them.
998# (The list follows the same order as the GNU Coding Standards.)
999bindir='${exec_prefix}/bin'
1000sbindir='${exec_prefix}/sbin'
1001libexecdir='${exec_prefix}/libexec'
1002datarootdir='${prefix}/share'
1003datadir='${datarootdir}'
1004sysconfdir='${prefix}/etc'
1005sharedstatedir='${prefix}/com'
1006localstatedir='${prefix}/var'
1007runstatedir='${localstatedir}/run'
1008includedir='${prefix}/include'
1009oldincludedir='/usr/include'
1010docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011infodir='${datarootdir}/info'
1012htmldir='${docdir}'
1013dvidir='${docdir}'
1014pdfdir='${docdir}'
1015psdir='${docdir}'
1016libdir='${exec_prefix}/lib'
1017localedir='${datarootdir}/locale'
1018mandir='${datarootdir}/man'
1019
1020ac_prev=
1021ac_dashdash=
1022for ac_option
1023do
1024  # If the previous option needs an argument, assign it.
1025  if test -n "$ac_prev"; then
1026    eval $ac_prev=\$ac_option
1027    ac_prev=
1028    continue
1029  fi
1030
1031  case $ac_option in
1032  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033  *=)   ac_optarg= ;;
1034  *)    ac_optarg=yes ;;
1035  esac
1036
1037  # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039  case $ac_dashdash$ac_option in
1040  --)
1041    ac_dashdash=yes ;;
1042
1043  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044    ac_prev=bindir ;;
1045  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046    bindir=$ac_optarg ;;
1047
1048  -build | --build | --buil | --bui | --bu)
1049    ac_prev=build_alias ;;
1050  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051    build_alias=$ac_optarg ;;
1052
1053  -cache-file | --cache-file | --cache-fil | --cache-fi \
1054  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055    ac_prev=cache_file ;;
1056  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058    cache_file=$ac_optarg ;;
1059
1060  --config-cache | -C)
1061    cache_file=config.cache ;;
1062
1063  -datadir | --datadir | --datadi | --datad)
1064    ac_prev=datadir ;;
1065  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066    datadir=$ac_optarg ;;
1067
1068  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069  | --dataroo | --dataro | --datar)
1070    ac_prev=datarootdir ;;
1071  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073    datarootdir=$ac_optarg ;;
1074
1075  -disable-* | --disable-*)
1076    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079      as_fn_error $? "invalid feature name: $ac_useropt"
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"enable_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087	 ac_unrecognized_sep=', ';;
1088    esac
1089    eval enable_$ac_useropt=no ;;
1090
1091  -docdir | --docdir | --docdi | --doc | --do)
1092    ac_prev=docdir ;;
1093  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094    docdir=$ac_optarg ;;
1095
1096  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097    ac_prev=dvidir ;;
1098  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099    dvidir=$ac_optarg ;;
1100
1101  -enable-* | --enable-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error $? "invalid feature name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"enable_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval enable_$ac_useropt=\$ac_optarg ;;
1116
1117  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119  | --exec | --exe | --ex)
1120    ac_prev=exec_prefix ;;
1121  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123  | --exec=* | --exe=* | --ex=*)
1124    exec_prefix=$ac_optarg ;;
1125
1126  -gas | --gas | --ga | --g)
1127    # Obsolete; use --with-gas.
1128    with_gas=yes ;;
1129
1130  -help | --help | --hel | --he | -h)
1131    ac_init_help=long ;;
1132  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133    ac_init_help=recursive ;;
1134  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135    ac_init_help=short ;;
1136
1137  -host | --host | --hos | --ho)
1138    ac_prev=host_alias ;;
1139  -host=* | --host=* | --hos=* | --ho=*)
1140    host_alias=$ac_optarg ;;
1141
1142  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143    ac_prev=htmldir ;;
1144  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145  | --ht=*)
1146    htmldir=$ac_optarg ;;
1147
1148  -includedir | --includedir | --includedi | --included | --include \
1149  | --includ | --inclu | --incl | --inc)
1150    ac_prev=includedir ;;
1151  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152  | --includ=* | --inclu=* | --incl=* | --inc=*)
1153    includedir=$ac_optarg ;;
1154
1155  -infodir | --infodir | --infodi | --infod | --info | --inf)
1156    ac_prev=infodir ;;
1157  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158    infodir=$ac_optarg ;;
1159
1160  -libdir | --libdir | --libdi | --libd)
1161    ac_prev=libdir ;;
1162  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163    libdir=$ac_optarg ;;
1164
1165  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166  | --libexe | --libex | --libe)
1167    ac_prev=libexecdir ;;
1168  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169  | --libexe=* | --libex=* | --libe=*)
1170    libexecdir=$ac_optarg ;;
1171
1172  -localedir | --localedir | --localedi | --localed | --locale)
1173    ac_prev=localedir ;;
1174  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175    localedir=$ac_optarg ;;
1176
1177  -localstatedir | --localstatedir | --localstatedi | --localstated \
1178  | --localstate | --localstat | --localsta | --localst | --locals)
1179    ac_prev=localstatedir ;;
1180  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182    localstatedir=$ac_optarg ;;
1183
1184  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185    ac_prev=mandir ;;
1186  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187    mandir=$ac_optarg ;;
1188
1189  -nfp | --nfp | --nf)
1190    # Obsolete; use --without-fp.
1191    with_fp=no ;;
1192
1193  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194  | --no-cr | --no-c | -n)
1195    no_create=yes ;;
1196
1197  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199    no_recursion=yes ;;
1200
1201  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203  | --oldin | --oldi | --old | --ol | --o)
1204    ac_prev=oldincludedir ;;
1205  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208    oldincludedir=$ac_optarg ;;
1209
1210  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211    ac_prev=prefix ;;
1212  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213    prefix=$ac_optarg ;;
1214
1215  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216  | --program-pre | --program-pr | --program-p)
1217    ac_prev=program_prefix ;;
1218  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220    program_prefix=$ac_optarg ;;
1221
1222  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223  | --program-suf | --program-su | --program-s)
1224    ac_prev=program_suffix ;;
1225  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227    program_suffix=$ac_optarg ;;
1228
1229  -program-transform-name | --program-transform-name \
1230  | --program-transform-nam | --program-transform-na \
1231  | --program-transform-n | --program-transform- \
1232  | --program-transform | --program-transfor \
1233  | --program-transfo | --program-transf \
1234  | --program-trans | --program-tran \
1235  | --progr-tra | --program-tr | --program-t)
1236    ac_prev=program_transform_name ;;
1237  -program-transform-name=* | --program-transform-name=* \
1238  | --program-transform-nam=* | --program-transform-na=* \
1239  | --program-transform-n=* | --program-transform-=* \
1240  | --program-transform=* | --program-transfor=* \
1241  | --program-transfo=* | --program-transf=* \
1242  | --program-trans=* | --program-tran=* \
1243  | --progr-tra=* | --program-tr=* | --program-t=*)
1244    program_transform_name=$ac_optarg ;;
1245
1246  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247    ac_prev=pdfdir ;;
1248  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249    pdfdir=$ac_optarg ;;
1250
1251  -psdir | --psdir | --psdi | --psd | --ps)
1252    ac_prev=psdir ;;
1253  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254    psdir=$ac_optarg ;;
1255
1256  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257  | -silent | --silent | --silen | --sile | --sil)
1258    silent=yes ;;
1259
1260  -runstatedir | --runstatedir | --runstatedi | --runstated \
1261  | --runstate | --runstat | --runsta | --runst | --runs \
1262  | --run | --ru | --r)
1263    ac_prev=runstatedir ;;
1264  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1265  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1266  | --run=* | --ru=* | --r=*)
1267    runstatedir=$ac_optarg ;;
1268
1269  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270    ac_prev=sbindir ;;
1271  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272  | --sbi=* | --sb=*)
1273    sbindir=$ac_optarg ;;
1274
1275  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277  | --sharedst | --shareds | --shared | --share | --shar \
1278  | --sha | --sh)
1279    ac_prev=sharedstatedir ;;
1280  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283  | --sha=* | --sh=*)
1284    sharedstatedir=$ac_optarg ;;
1285
1286  -site | --site | --sit)
1287    ac_prev=site ;;
1288  -site=* | --site=* | --sit=*)
1289    site=$ac_optarg ;;
1290
1291  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292    ac_prev=srcdir ;;
1293  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294    srcdir=$ac_optarg ;;
1295
1296  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297  | --syscon | --sysco | --sysc | --sys | --sy)
1298    ac_prev=sysconfdir ;;
1299  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301    sysconfdir=$ac_optarg ;;
1302
1303  -target | --target | --targe | --targ | --tar | --ta | --t)
1304    ac_prev=target_alias ;;
1305  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306    target_alias=$ac_optarg ;;
1307
1308  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309    verbose=yes ;;
1310
1311  -version | --version | --versio | --versi | --vers | -V)
1312    ac_init_version=: ;;
1313
1314  -with-* | --with-*)
1315    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316    # Reject names that are not valid shell variable names.
1317    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318      as_fn_error $? "invalid package name: $ac_useropt"
1319    ac_useropt_orig=$ac_useropt
1320    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321    case $ac_user_opts in
1322      *"
1323"with_$ac_useropt"
1324"*) ;;
1325      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326	 ac_unrecognized_sep=', ';;
1327    esac
1328    eval with_$ac_useropt=\$ac_optarg ;;
1329
1330  -without-* | --without-*)
1331    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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 package 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"with_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval with_$ac_useropt=no ;;
1345
1346  --x)
1347    # Obsolete; use --with-x.
1348    with_x=yes ;;
1349
1350  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351  | --x-incl | --x-inc | --x-in | --x-i)
1352    ac_prev=x_includes ;;
1353  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355    x_includes=$ac_optarg ;;
1356
1357  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359    ac_prev=x_libraries ;;
1360  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362    x_libraries=$ac_optarg ;;
1363
1364  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1365Try \`$0 --help' for more information"
1366    ;;
1367
1368  *=*)
1369    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370    # Reject names that are not valid shell variable names.
1371    case $ac_envvar in #(
1372      '' | [0-9]* | *[!_$as_cr_alnum]* )
1373      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1374    esac
1375    eval $ac_envvar=\$ac_optarg
1376    export $ac_envvar ;;
1377
1378  *)
1379    # FIXME: should be removed in autoconf 3.0.
1380    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1384    ;;
1385
1386  esac
1387done
1388
1389if test -n "$ac_prev"; then
1390  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391  as_fn_error $? "missing argument to $ac_option"
1392fi
1393
1394if test -n "$ac_unrecognized_opts"; then
1395  case $enable_option_checking in
1396    no) ;;
1397    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1398    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399  esac
1400fi
1401
1402# Check all directory arguments for consistency.
1403for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404		datadir sysconfdir sharedstatedir localstatedir includedir \
1405		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406		libdir localedir mandir runstatedir
1407do
1408  eval ac_val=\$$ac_var
1409  # Remove trailing slashes.
1410  case $ac_val in
1411    */ )
1412      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413      eval $ac_var=\$ac_val;;
1414  esac
1415  # Be sure to have absolute directory names.
1416  case $ac_val in
1417    [\\/$]* | ?:[\\/]* )  continue;;
1418    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419  esac
1420  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1421done
1422
1423# There might be people who depend on the old broken behavior: `$host'
1424# used to hold the argument of --host etc.
1425# FIXME: To remove some day.
1426build=$build_alias
1427host=$host_alias
1428target=$target_alias
1429
1430# FIXME: To remove some day.
1431if test "x$host_alias" != x; then
1432  if test "x$build_alias" = x; then
1433    cross_compiling=maybe
1434  elif test "x$build_alias" != "x$host_alias"; then
1435    cross_compiling=yes
1436  fi
1437fi
1438
1439ac_tool_prefix=
1440test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442test "$silent" = yes && exec 6>/dev/null
1443
1444
1445ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446ac_ls_di=`ls -di .` &&
1447ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448  as_fn_error $? "working directory cannot be determined"
1449test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450  as_fn_error $? "pwd does not report name of working directory"
1451
1452
1453# Find the source files, if location was not specified.
1454if test -z "$srcdir"; then
1455  ac_srcdir_defaulted=yes
1456  # Try the directory containing this script, then the parent directory.
1457  ac_confdir=`$as_dirname -- "$as_myself" ||
1458$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459	 X"$as_myself" : 'X\(//\)[^/]' \| \
1460	 X"$as_myself" : 'X\(//\)$' \| \
1461	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462$as_echo X"$as_myself" |
1463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464	    s//\1/
1465	    q
1466	  }
1467	  /^X\(\/\/\)[^/].*/{
1468	    s//\1/
1469	    q
1470	  }
1471	  /^X\(\/\/\)$/{
1472	    s//\1/
1473	    q
1474	  }
1475	  /^X\(\/\).*/{
1476	    s//\1/
1477	    q
1478	  }
1479	  s/.*/./; q'`
1480  srcdir=$ac_confdir
1481  if test ! -r "$srcdir/$ac_unique_file"; then
1482    srcdir=..
1483  fi
1484else
1485  ac_srcdir_defaulted=no
1486fi
1487if test ! -r "$srcdir/$ac_unique_file"; then
1488  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1490fi
1491ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492ac_abs_confdir=`(
1493	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1494	pwd)`
1495# When building in place, set srcdir=.
1496if test "$ac_abs_confdir" = "$ac_pwd"; then
1497  srcdir=.
1498fi
1499# Remove unnecessary trailing slashes from srcdir.
1500# Double slashes in file names in object file debugging info
1501# mess up M-x gdb in Emacs.
1502case $srcdir in
1503*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504esac
1505for ac_var in $ac_precious_vars; do
1506  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507  eval ac_env_${ac_var}_value=\$${ac_var}
1508  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510done
1511
1512#
1513# Report the --help message.
1514#
1515if test "$ac_init_help" = "long"; then
1516  # Omit some internal or obsolete options to make the list less imposing.
1517  # This message is too long to be a string in the A/UX 3.1 sh.
1518  cat <<_ACEOF
1519\`configure' configures cups-filters 1.28.10 to adapt to many kinds of systems.
1520
1521Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526Defaults for the options are specified in brackets.
1527
1528Configuration:
1529  -h, --help              display this help and exit
1530      --help=short        display options specific to this package
1531      --help=recursive    display the short help of all the included packages
1532  -V, --version           display version information and exit
1533  -q, --quiet, --silent   do not print \`checking ...' messages
1534      --cache-file=FILE   cache test results in FILE [disabled]
1535  -C, --config-cache      alias for \`--cache-file=config.cache'
1536  -n, --no-create         do not create output files
1537      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539Installation directories:
1540  --prefix=PREFIX         install architecture-independent files in PREFIX
1541                          [$ac_default_prefix]
1542  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                          [PREFIX]
1544
1545By default, \`make install' will install all the files in
1546\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548for instance \`--prefix=\$HOME'.
1549
1550For better control, use the options below.
1551
1552Fine tuning of the installation directories:
1553  --bindir=DIR            user executables [EPREFIX/bin]
1554  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555  --libexecdir=DIR        program executables [EPREFIX/libexec]
1556  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1560  --libdir=DIR            object code libraries [EPREFIX/lib]
1561  --includedir=DIR        C header files [PREFIX/include]
1562  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1563  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1564  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1565  --infodir=DIR           info documentation [DATAROOTDIR/info]
1566  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1567  --mandir=DIR            man documentation [DATAROOTDIR/man]
1568  --docdir=DIR            documentation root [DATAROOTDIR/doc/cups-filters]
1569  --htmldir=DIR           html documentation [DOCDIR]
1570  --dvidir=DIR            dvi documentation [DOCDIR]
1571  --pdfdir=DIR            pdf documentation [DOCDIR]
1572  --psdir=DIR             ps documentation [DOCDIR]
1573_ACEOF
1574
1575  cat <<\_ACEOF
1576
1577Program names:
1578  --program-prefix=PREFIX            prepend PREFIX to installed program names
1579  --program-suffix=SUFFIX            append SUFFIX to installed program names
1580  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1581
1582System types:
1583  --build=BUILD     configure for building on BUILD [guessed]
1584  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1585_ACEOF
1586fi
1587
1588if test -n "$ac_init_help"; then
1589  case $ac_init_help in
1590     short | recursive ) echo "Configuration of cups-filters 1.28.10:";;
1591   esac
1592  cat <<\_ACEOF
1593
1594Optional Features:
1595  --disable-option-checking  ignore unrecognized --enable/--with options
1596  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1597  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1598  --enable-silent-rules   less verbose build output (undo: "make V=1")
1599  --disable-silent-rules  verbose build output (undo: "make V=0")
1600  --enable-dependency-tracking
1601                          do not reject slow dependency extractors
1602  --disable-dependency-tracking
1603                          speeds up one-time build
1604  --disable-rpath         do not hardcode runtime library paths
1605  --enable-shared[=PKGS]  build shared libraries [default=yes]
1606  --enable-static[=PKGS]  build static libraries [default=yes]
1607  --enable-fast-install[=PKGS]
1608                          optimize for fast installation [default=yes]
1609  --disable-libtool-lock  avoid locking (might break parallel builds)
1610  --disable-nls           do not use Native Language Support
1611  --enable-driverless     enable PPD generator for driverless printing in
1612                          /usr/lib/cups/driver/, for manual setup of
1613                          driverless printers with printer setup tool.
1614  --enable-auto-setup-local-only
1615                          enable automatic setup of only local IPP printers.
1616  --enable-auto-setup-driverless-only
1617                          enable automatic setup of only IPP network printers
1618                          with driverless printing support.
1619  --disable-imagefilters  Build the image filters.
1620  --disable-avahi         Disable DNS Service Discovery support using Avahi.
1621  --disable-ldap          disable LDAP support.
1622  --enable-pclm           enable PCLm printing.
1623  --enable-poppler        enable Poppler-based filters
1624  --enable-dbus           enable DBus CMS code
1625  --disable-largefile     omit support for large files
1626  --disable-mutool        Disable filters using mutool.
1627  --disable-ghostscript   Disable filters using Ghostscript.
1628  --disable-gs-ps2write   Ghostscript doesn't support ps2write device.
1629  --disable-foomatic      Disable Foomatic-based filters.
1630  --enable-werror         Treat all warnings as errors, useful for
1631                          development.
1632  --enable-braille        enable Braille embosing filters, requires liblouis
1633  --enable-saving-created-queues
1634                          enable saving created queues during shutdown
1635
1636Optional Packages:
1637  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1638  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1639  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1640  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1641  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1642  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1643                          both]
1644  --with-aix-soname=aix|svr4|both
1645                          shared library versioning (aka "SONAME") variant to
1646                          provide on AIX, [default=aix].
1647  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1648  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1649                          compiler's sysroot if not specified).
1650  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1651  --without-libintl-prefix     don't search for libintl in includedir and libdir
1652  --with-fontdir=path     Specify path to font config directory (default:
1653                          fonts/conf.d/).
1654  --with-cups-config=path Specify path to cups-config executable.
1655  --with-apple-raster-filter=rastertopdf|urftopdf
1656                          Select filter for Apple Raster input. Default:
1657                          rastertopdf for CUPS 2.2.2+, urftopdf for older CUPS
1658  --with-cups-rundir           set transient run-time state directory of CUPS
1659  --with-cups-domainsocket     set unix domain socket name used by CUPS
1660
1661  --without-jpeg          Disable jpeg support.
1662  --without-png           Disable png support.
1663  --without-tiff          Disable tiff support.
1664  --with-avahi-libs       Set directory for Avahi library.
1665  --with-avahi-includes   Set directory for Avahi includes
1666  --with-ldap-libs        set directory for LDAP library.
1667  --with-ldap-includes    set directory for LDAP includes.
1668  --with-browseremoteprotocols=value
1669                          Set which protocols to listen for in cups-browsed
1670                          (default: dnssd cups)
1671  --with-rcdir            Set path for rc scripts
1672  --with-rclevels         Set run levels for rc scripts
1673  --with-rcstart          Set start number for rc scripts
1674  --with-rcstop           Set stop number for rc scripts
1675  --with-mutool-path=value
1676                          Set path to mutool binary (default: system).
1677  --with-pdftops=value    Set which pdftops to use
1678                          (gs,pdftops,pdftocairo,acroread,mupdf,hybrid).
1679  --with-gs-path=value    Set path to ghostcript binary (default: system).
1680  --with-pdftops-path=value
1681                          Set path to pdftops/ghostscript binary (default:
1682                          system).
1683  --with-pdftocairo-path=value
1684                          Set path to pdftocairo binary (default: system).
1685  --with-acroread-path=value
1686                          Set path to acroread binary (default: system).
1687  --with-ippfind-path=value
1688                          Set path to ippfind binary (default: system).
1689  --with-pdftops-maxres=value
1690                          Set maximum image rendering resolution for pdftops
1691                          filter (0, 75, 150, 300, 600, 1200, 2400, 4800, 90,
1692                          180, 360, 720, 1440, 2880, 5760, unlimited).
1693                          Default: 1440
1694  --with-php              Determine whether to build php cups extension.
1695  --with-php-config=path  Specify path to php-config executable.
1696  --with-test-font-path=value
1697                          Set path to font used for tests (default:
1698                          /usr/share/fonts/dejavu/DejaVuSans.ttf).
1699  --with-remote-cups-local-queue-naming=DNS-SD|MakeModel|RemoteName
1700                          Choose the origin of local queue naming for remote
1701                          CUPS queues, default based on DNS-SD ID
1702  --with-shell=path       Specify path for a modern shell.
1703
1704Some influential environment variables:
1705  CC          C compiler command
1706  CFLAGS      C compiler flags
1707  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1708              nonstandard directory <lib dir>
1709  LIBS        libraries to pass to the linker, e.g. -l<library>
1710  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1711              you have headers in a nonstandard directory <include dir>
1712  CXX         C++ compiler command
1713  CXXFLAGS    C++ compiler flags
1714  CXXCPP      C++ preprocessor
1715  CPP         C preprocessor
1716  LT_SYS_LIBRARY_PATH
1717              User-defined run-time library search path.
1718  PKG_CONFIG  path to pkg-config utility
1719  PKG_CONFIG_PATH
1720              directories to add to pkg-config's search path
1721  PKG_CONFIG_LIBDIR
1722              path overriding pkg-config's built-in search path
1723  LIBPNG_CFLAGS
1724              C compiler flags for LIBPNG, overriding pkg-config
1725  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1726  AVAHI_CFLAGS
1727              C compiler flags for AVAHI, overriding pkg-config
1728  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
1729  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1730  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1731  AVAHI_GLIB_CFLAGS
1732              C compiler flags for AVAHI_GLIB, overriding pkg-config
1733  AVAHI_GLIB_LIBS
1734              linker flags for AVAHI_GLIB, overriding pkg-config
1735  GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1736  GIO_LIBS    linker flags for GIO, overriding pkg-config
1737  GIO_UNIX_CFLAGS
1738              C compiler flags for GIO_UNIX, overriding pkg-config
1739  GIO_UNIX_LIBS
1740              linker flags for GIO_UNIX, overriding pkg-config
1741  LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
1742  LCMS_LIBS   linker flags for LCMS, overriding pkg-config
1743  FREETYPE_CFLAGS
1744              C compiler flags for FREETYPE, overriding pkg-config
1745  FREETYPE_LIBS
1746              linker flags for FREETYPE, overriding pkg-config
1747  FONTCONFIG_CFLAGS
1748              C compiler flags for FONTCONFIG, overriding pkg-config
1749  FONTCONFIG_LIBS
1750              linker flags for FONTCONFIG, overriding pkg-config
1751  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1752  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1753  LIBQPDF_CFLAGS
1754              C compiler flags for LIBQPDF, overriding pkg-config
1755  LIBQPDF_LIBS
1756              linker flags for LIBQPDF, overriding pkg-config
1757  POPPLER_CFLAGS
1758              C compiler flags for POPPLER, overriding pkg-config
1759  POPPLER_LIBS
1760              linker flags for POPPLER, overriding pkg-config
1761  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1762  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1763
1764Use these variables to override the choices made by `configure' or to help
1765it to find libraries and programs with nonstandard names/locations.
1766
1767Report bugs to the package provider.
1768_ACEOF
1769ac_status=$?
1770fi
1771
1772if test "$ac_init_help" = "recursive"; then
1773  # If there are subdirs, report their specific --help.
1774  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1775    test -d "$ac_dir" ||
1776      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1777      continue
1778    ac_builddir=.
1779
1780case "$ac_dir" in
1781.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782*)
1783  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1784  # A ".." for each directory in $ac_dir_suffix.
1785  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1786  case $ac_top_builddir_sub in
1787  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1789  esac ;;
1790esac
1791ac_abs_top_builddir=$ac_pwd
1792ac_abs_builddir=$ac_pwd$ac_dir_suffix
1793# for backward compatibility:
1794ac_top_builddir=$ac_top_build_prefix
1795
1796case $srcdir in
1797  .)  # We are building in place.
1798    ac_srcdir=.
1799    ac_top_srcdir=$ac_top_builddir_sub
1800    ac_abs_top_srcdir=$ac_pwd ;;
1801  [\\/]* | ?:[\\/]* )  # Absolute name.
1802    ac_srcdir=$srcdir$ac_dir_suffix;
1803    ac_top_srcdir=$srcdir
1804    ac_abs_top_srcdir=$srcdir ;;
1805  *) # Relative name.
1806    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1807    ac_top_srcdir=$ac_top_build_prefix$srcdir
1808    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809esac
1810ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811
1812    cd "$ac_dir" || { ac_status=$?; continue; }
1813    # Check for guested configure.
1814    if test -f "$ac_srcdir/configure.gnu"; then
1815      echo &&
1816      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817    elif test -f "$ac_srcdir/configure"; then
1818      echo &&
1819      $SHELL "$ac_srcdir/configure" --help=recursive
1820    else
1821      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822    fi || ac_status=$?
1823    cd "$ac_pwd" || { ac_status=$?; break; }
1824  done
1825fi
1826
1827test -n "$ac_init_help" && exit $ac_status
1828if $ac_init_version; then
1829  cat <<\_ACEOF
1830cups-filters configure 1.28.10
1831generated by GNU Autoconf 2.69
1832
1833Copyright (C) 2012 Free Software Foundation, Inc.
1834This configure script is free software; the Free Software Foundation
1835gives unlimited permission to copy, distribute and modify it.
1836_ACEOF
1837  exit
1838fi
1839
1840## ------------------------ ##
1841## Autoconf initialization. ##
1842## ------------------------ ##
1843
1844# ac_fn_c_try_compile LINENO
1845# --------------------------
1846# Try to compile conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext
1851  if { { ac_try="$ac_compile"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_compile") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_c_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest.$ac_objext; then :
1870  ac_retval=0
1871else
1872  $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875	ac_retval=1
1876fi
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878  as_fn_set_status $ac_retval
1879
1880} # ac_fn_c_try_compile
1881
1882# ac_fn_cxx_try_compile LINENO
1883# ----------------------------
1884# Try to compile conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_cxx_try_compile ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  rm -f conftest.$ac_objext
1889  if { { ac_try="$ac_compile"
1890case "(($ac_try" in
1891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892  *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896  (eval "$ac_compile") 2>conftest.err
1897  ac_status=$?
1898  if test -s conftest.err; then
1899    grep -v '^ *+' conftest.err >conftest.er1
1900    cat conftest.er1 >&5
1901    mv -f conftest.er1 conftest.err
1902  fi
1903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904  test $ac_status = 0; } && {
1905	 test -z "$ac_cxx_werror_flag" ||
1906	 test ! -s conftest.err
1907       } && test -s conftest.$ac_objext; then :
1908  ac_retval=0
1909else
1910  $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913	ac_retval=1
1914fi
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916  as_fn_set_status $ac_retval
1917
1918} # ac_fn_cxx_try_compile
1919
1920# ac_fn_cxx_try_cpp LINENO
1921# ------------------------
1922# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1923ac_fn_cxx_try_cpp ()
1924{
1925  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926  if { { ac_try="$ac_cpp conftest.$ac_ext"
1927case "(($ac_try" in
1928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929  *) ac_try_echo=$ac_try;;
1930esac
1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932$as_echo "$ac_try_echo"; } >&5
1933  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1934  ac_status=$?
1935  if test -s conftest.err; then
1936    grep -v '^ *+' conftest.err >conftest.er1
1937    cat conftest.er1 >&5
1938    mv -f conftest.er1 conftest.err
1939  fi
1940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941  test $ac_status = 0; } > conftest.i && {
1942	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1943	 test ! -s conftest.err
1944       }; then :
1945  ac_retval=0
1946else
1947  $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950    ac_retval=1
1951fi
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953  as_fn_set_status $ac_retval
1954
1955} # ac_fn_cxx_try_cpp
1956
1957# ac_fn_cxx_try_link LINENO
1958# -------------------------
1959# Try to link conftest.$ac_ext, and return whether this succeeded.
1960ac_fn_cxx_try_link ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  rm -f conftest.$ac_objext conftest$ac_exeext
1964  if { { ac_try="$ac_link"
1965case "(($ac_try" in
1966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967  *) ac_try_echo=$ac_try;;
1968esac
1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970$as_echo "$ac_try_echo"; } >&5
1971  (eval "$ac_link") 2>conftest.err
1972  ac_status=$?
1973  if test -s conftest.err; then
1974    grep -v '^ *+' conftest.err >conftest.er1
1975    cat conftest.er1 >&5
1976    mv -f conftest.er1 conftest.err
1977  fi
1978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979  test $ac_status = 0; } && {
1980	 test -z "$ac_cxx_werror_flag" ||
1981	 test ! -s conftest.err
1982       } && test -s conftest$ac_exeext && {
1983	 test "$cross_compiling" = yes ||
1984	 test -x conftest$ac_exeext
1985       }; then :
1986  ac_retval=0
1987else
1988  $as_echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991	ac_retval=1
1992fi
1993  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1994  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1995  # interfere with the next link command; also delete a directory that is
1996  # left behind by Apple's compiler.  We do this before executing the actions.
1997  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999  as_fn_set_status $ac_retval
2000
2001} # ac_fn_cxx_try_link
2002
2003# ac_fn_cxx_try_run LINENO
2004# ------------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2006# that executables *can* be run.
2007ac_fn_cxx_try_run ()
2008{
2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010  if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013  *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017  (eval "$ac_link") 2>&5
2018  ac_status=$?
2019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2021  { { case "(($ac_try" in
2022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023  *) ac_try_echo=$ac_try;;
2024esac
2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026$as_echo "$ac_try_echo"; } >&5
2027  (eval "$ac_try") 2>&5
2028  ac_status=$?
2029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030  test $ac_status = 0; }; }; then :
2031  ac_retval=0
2032else
2033  $as_echo "$as_me: program exited with status $ac_status" >&5
2034       $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037       ac_retval=$ac_status
2038fi
2039  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041  as_fn_set_status $ac_retval
2042
2043} # ac_fn_cxx_try_run
2044
2045# ac_fn_c_try_cpp LINENO
2046# ----------------------
2047# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_c_try_cpp ()
2049{
2050  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051  if { { ac_try="$ac_cpp conftest.$ac_ext"
2052case "(($ac_try" in
2053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054  *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059  ac_status=$?
2060  if test -s conftest.err; then
2061    grep -v '^ *+' conftest.err >conftest.er1
2062    cat conftest.er1 >&5
2063    mv -f conftest.er1 conftest.err
2064  fi
2065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } > conftest.i && {
2067	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2068	 test ! -s conftest.err
2069       }; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075    ac_retval=1
2076fi
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078  as_fn_set_status $ac_retval
2079
2080} # ac_fn_c_try_cpp
2081
2082# ac_fn_c_try_link LINENO
2083# -----------------------
2084# Try to link conftest.$ac_ext, and return whether this succeeded.
2085ac_fn_c_try_link ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  rm -f conftest.$ac_objext conftest$ac_exeext
2089  if { { ac_try="$ac_link"
2090case "(($ac_try" in
2091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092  *) ac_try_echo=$ac_try;;
2093esac
2094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095$as_echo "$ac_try_echo"; } >&5
2096  (eval "$ac_link") 2>conftest.err
2097  ac_status=$?
2098  if test -s conftest.err; then
2099    grep -v '^ *+' conftest.err >conftest.er1
2100    cat conftest.er1 >&5
2101    mv -f conftest.er1 conftest.err
2102  fi
2103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104  test $ac_status = 0; } && {
2105	 test -z "$ac_c_werror_flag" ||
2106	 test ! -s conftest.err
2107       } && test -s conftest$ac_exeext && {
2108	 test "$cross_compiling" = yes ||
2109	 test -x conftest$ac_exeext
2110       }; then :
2111  ac_retval=0
2112else
2113  $as_echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
2115
2116	ac_retval=1
2117fi
2118  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2119  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2120  # interfere with the next link command; also delete a directory that is
2121  # left behind by Apple's compiler.  We do this before executing the actions.
2122  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124  as_fn_set_status $ac_retval
2125
2126} # ac_fn_c_try_link
2127
2128# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2129# -------------------------------------------------------
2130# Tests whether HEADER exists and can be compiled using the include files in
2131# INCLUDES, setting the cache variable VAR accordingly.
2132ac_fn_c_check_header_compile ()
2133{
2134  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136$as_echo_n "checking for $2... " >&6; }
2137if eval \${$3+:} false; then :
2138  $as_echo_n "(cached) " >&6
2139else
2140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h.  */
2142$4
2143#include <$2>
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  eval "$3=yes"
2147else
2148  eval "$3=no"
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152eval ac_res=\$$3
2153	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154$as_echo "$ac_res" >&6; }
2155  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156
2157} # ac_fn_c_check_header_compile
2158
2159# ac_fn_c_try_run LINENO
2160# ----------------------
2161# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2162# that executables *can* be run.
2163ac_fn_c_try_run ()
2164{
2165  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166  if { { ac_try="$ac_link"
2167case "(($ac_try" in
2168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169  *) ac_try_echo=$ac_try;;
2170esac
2171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172$as_echo "$ac_try_echo"; } >&5
2173  (eval "$ac_link") 2>&5
2174  ac_status=$?
2175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2176  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2177  { { case "(($ac_try" in
2178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179  *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183  (eval "$ac_try") 2>&5
2184  ac_status=$?
2185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186  test $ac_status = 0; }; }; then :
2187  ac_retval=0
2188else
2189  $as_echo "$as_me: program exited with status $ac_status" >&5
2190       $as_echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193       ac_retval=$ac_status
2194fi
2195  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2196  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197  as_fn_set_status $ac_retval
2198
2199} # ac_fn_c_try_run
2200
2201# ac_fn_c_check_func LINENO FUNC VAR
2202# ----------------------------------
2203# Tests whether FUNC exists, setting the cache variable VAR accordingly
2204ac_fn_c_check_func ()
2205{
2206  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208$as_echo_n "checking for $2... " >&6; }
2209if eval \${$3+:} false; then :
2210  $as_echo_n "(cached) " >&6
2211else
2212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h.  */
2214/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2215   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2216#define $2 innocuous_$2
2217
2218/* System header to define __stub macros and hopefully few prototypes,
2219    which can conflict with char $2 (); below.
2220    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2221    <limits.h> exists even on freestanding compilers.  */
2222
2223#ifdef __STDC__
2224# include <limits.h>
2225#else
2226# include <assert.h>
2227#endif
2228
2229#undef $2
2230
2231/* Override any GCC internal prototype to avoid an error.
2232   Use char because int might match the return type of a GCC
2233   builtin and then its argument prototype would still apply.  */
2234#ifdef __cplusplus
2235extern "C"
2236#endif
2237char $2 ();
2238/* The GNU C library defines this for functions which it implements
2239    to always fail with ENOSYS.  Some functions are actually named
2240    something starting with __ and the normal name is an alias.  */
2241#if defined __stub_$2 || defined __stub___$2
2242choke me
2243#endif
2244
2245int
2246main ()
2247{
2248return $2 ();
2249  ;
2250  return 0;
2251}
2252_ACEOF
2253if ac_fn_c_try_link "$LINENO"; then :
2254  eval "$3=yes"
2255else
2256  eval "$3=no"
2257fi
2258rm -f core conftest.err conftest.$ac_objext \
2259    conftest$ac_exeext conftest.$ac_ext
2260fi
2261eval ac_res=\$$3
2262	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263$as_echo "$ac_res" >&6; }
2264  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266} # ac_fn_c_check_func
2267
2268# ac_fn_cxx_check_func LINENO FUNC VAR
2269# ------------------------------------
2270# Tests whether FUNC exists, setting the cache variable VAR accordingly
2271ac_fn_cxx_check_func ()
2272{
2273  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275$as_echo_n "checking for $2... " >&6; }
2276if eval \${$3+:} false; then :
2277  $as_echo_n "(cached) " >&6
2278else
2279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h.  */
2281/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2282   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2283#define $2 innocuous_$2
2284
2285/* System header to define __stub macros and hopefully few prototypes,
2286    which can conflict with char $2 (); below.
2287    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2288    <limits.h> exists even on freestanding compilers.  */
2289
2290#ifdef __STDC__
2291# include <limits.h>
2292#else
2293# include <assert.h>
2294#endif
2295
2296#undef $2
2297
2298/* Override any GCC internal prototype to avoid an error.
2299   Use char because int might match the return type of a GCC
2300   builtin and then its argument prototype would still apply.  */
2301#ifdef __cplusplus
2302extern "C"
2303#endif
2304char $2 ();
2305/* The GNU C library defines this for functions which it implements
2306    to always fail with ENOSYS.  Some functions are actually named
2307    something starting with __ and the normal name is an alias.  */
2308#if defined __stub_$2 || defined __stub___$2
2309choke me
2310#endif
2311
2312int
2313main ()
2314{
2315return $2 ();
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320if ac_fn_cxx_try_link "$LINENO"; then :
2321  eval "$3=yes"
2322else
2323  eval "$3=no"
2324fi
2325rm -f core conftest.err conftest.$ac_objext \
2326    conftest$ac_exeext conftest.$ac_ext
2327fi
2328eval ac_res=\$$3
2329	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332
2333} # ac_fn_cxx_check_func
2334
2335# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2336# ---------------------------------------------------------
2337# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2338# the include files in INCLUDES and setting the cache variable VAR
2339# accordingly.
2340ac_fn_cxx_check_header_mongrel ()
2341{
2342  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343  if eval \${$3+:} false; then :
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345$as_echo_n "checking for $2... " >&6; }
2346if eval \${$3+:} false; then :
2347  $as_echo_n "(cached) " >&6
2348fi
2349eval ac_res=\$$3
2350	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351$as_echo "$ac_res" >&6; }
2352else
2353  # Is the header compilable?
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2355$as_echo_n "checking $2 usability... " >&6; }
2356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357/* end confdefs.h.  */
2358$4
2359#include <$2>
2360_ACEOF
2361if ac_fn_cxx_try_compile "$LINENO"; then :
2362  ac_header_compiler=yes
2363else
2364  ac_header_compiler=no
2365fi
2366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2368$as_echo "$ac_header_compiler" >&6; }
2369
2370# Is the header present?
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2372$as_echo_n "checking $2 presence... " >&6; }
2373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h.  */
2375#include <$2>
2376_ACEOF
2377if ac_fn_cxx_try_cpp "$LINENO"; then :
2378  ac_header_preproc=yes
2379else
2380  ac_header_preproc=no
2381fi
2382rm -f conftest.err conftest.i conftest.$ac_ext
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2384$as_echo "$ac_header_preproc" >&6; }
2385
2386# So?  What about this header?
2387case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2388  yes:no: )
2389    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2390$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2391    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2392$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2393    ;;
2394  no:yes:* )
2395    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2396$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2397    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2398$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2399    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2400$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2401    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2402$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2403    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2404$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2405    ;;
2406esac
2407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408$as_echo_n "checking for $2... " >&6; }
2409if eval \${$3+:} false; then :
2410  $as_echo_n "(cached) " >&6
2411else
2412  eval "$3=\$ac_header_compiler"
2413fi
2414eval ac_res=\$$3
2415	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416$as_echo "$ac_res" >&6; }
2417fi
2418  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419
2420} # ac_fn_cxx_check_header_mongrel
2421
2422# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2423# ---------------------------------------------------------
2424# Tests whether HEADER exists and can be compiled using the include files in
2425# INCLUDES, setting the cache variable VAR accordingly.
2426ac_fn_cxx_check_header_compile ()
2427{
2428  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2430$as_echo_n "checking for $2... " >&6; }
2431if eval \${$3+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435/* end confdefs.h.  */
2436$4
2437#include <$2>
2438_ACEOF
2439if ac_fn_cxx_try_compile "$LINENO"; then :
2440  eval "$3=yes"
2441else
2442  eval "$3=no"
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445fi
2446eval ac_res=\$$3
2447	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448$as_echo "$ac_res" >&6; }
2449  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450
2451} # ac_fn_cxx_check_header_compile
2452
2453# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2454# ---------------------------------------------
2455# Tests whether TYPE exists after having included INCLUDES, setting cache
2456# variable VAR accordingly.
2457ac_fn_cxx_check_type ()
2458{
2459  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461$as_echo_n "checking for $2... " >&6; }
2462if eval \${$3+:} false; then :
2463  $as_echo_n "(cached) " >&6
2464else
2465  eval "$3=no"
2466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467/* end confdefs.h.  */
2468$4
2469int
2470main ()
2471{
2472if (sizeof ($2))
2473	 return 0;
2474  ;
2475  return 0;
2476}
2477_ACEOF
2478if ac_fn_cxx_try_compile "$LINENO"; then :
2479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480/* end confdefs.h.  */
2481$4
2482int
2483main ()
2484{
2485if (sizeof (($2)))
2486	    return 0;
2487  ;
2488  return 0;
2489}
2490_ACEOF
2491if ac_fn_cxx_try_compile "$LINENO"; then :
2492
2493else
2494  eval "$3=yes"
2495fi
2496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497fi
2498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499fi
2500eval ac_res=\$$3
2501	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502$as_echo "$ac_res" >&6; }
2503  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504
2505} # ac_fn_cxx_check_type
2506cat >config.log <<_ACEOF
2507This file contains any messages produced by compilers while
2508running configure, to aid debugging if configure makes a mistake.
2509
2510It was created by cups-filters $as_me 1.28.10, which was
2511generated by GNU Autoconf 2.69.  Invocation command line was
2512
2513  $ $0 $@
2514
2515_ACEOF
2516exec 5>>config.log
2517{
2518cat <<_ASUNAME
2519## --------- ##
2520## Platform. ##
2521## --------- ##
2522
2523hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2524uname -m = `(uname -m) 2>/dev/null || echo unknown`
2525uname -r = `(uname -r) 2>/dev/null || echo unknown`
2526uname -s = `(uname -s) 2>/dev/null || echo unknown`
2527uname -v = `(uname -v) 2>/dev/null || echo unknown`
2528
2529/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2530/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2531
2532/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2533/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2534/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2535/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2536/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2537/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2538/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2539
2540_ASUNAME
2541
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    $as_echo "PATH: $as_dir"
2548  done
2549IFS=$as_save_IFS
2550
2551} >&5
2552
2553cat >&5 <<_ACEOF
2554
2555
2556## ----------- ##
2557## Core tests. ##
2558## ----------- ##
2559
2560_ACEOF
2561
2562
2563# Keep a trace of the command line.
2564# Strip out --no-create and --no-recursion so they do not pile up.
2565# Strip out --silent because we don't want to record it for future runs.
2566# Also quote any args containing shell meta-characters.
2567# Make two passes to allow for proper duplicate-argument suppression.
2568ac_configure_args=
2569ac_configure_args0=
2570ac_configure_args1=
2571ac_must_keep_next=false
2572for ac_pass in 1 2
2573do
2574  for ac_arg
2575  do
2576    case $ac_arg in
2577    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2578    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2579    | -silent | --silent | --silen | --sile | --sil)
2580      continue ;;
2581    *\'*)
2582      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2583    esac
2584    case $ac_pass in
2585    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2586    2)
2587      as_fn_append ac_configure_args1 " '$ac_arg'"
2588      if test $ac_must_keep_next = true; then
2589	ac_must_keep_next=false # Got value, back to normal.
2590      else
2591	case $ac_arg in
2592	  *=* | --config-cache | -C | -disable-* | --disable-* \
2593	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2594	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2595	  | -with-* | --with-* | -without-* | --without-* | --x)
2596	    case "$ac_configure_args0 " in
2597	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2598	    esac
2599	    ;;
2600	  -* ) ac_must_keep_next=true ;;
2601	esac
2602      fi
2603      as_fn_append ac_configure_args " '$ac_arg'"
2604      ;;
2605    esac
2606  done
2607done
2608{ ac_configure_args0=; unset ac_configure_args0;}
2609{ ac_configure_args1=; unset ac_configure_args1;}
2610
2611# When interrupted or exit'd, cleanup temporary files, and complete
2612# config.log.  We remove comments because anyway the quotes in there
2613# would cause problems or look ugly.
2614# WARNING: Use '\'' to represent an apostrophe within the trap.
2615# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2616trap 'exit_status=$?
2617  # Save into config.log some information that might help in debugging.
2618  {
2619    echo
2620
2621    $as_echo "## ---------------- ##
2622## Cache variables. ##
2623## ---------------- ##"
2624    echo
2625    # The following way of writing the cache mishandles newlines in values,
2626(
2627  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2628    eval ac_val=\$$ac_var
2629    case $ac_val in #(
2630    *${as_nl}*)
2631      case $ac_var in #(
2632      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2633$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2634      esac
2635      case $ac_var in #(
2636      _ | IFS | as_nl) ;; #(
2637      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2638      *) { eval $ac_var=; unset $ac_var;} ;;
2639      esac ;;
2640    esac
2641  done
2642  (set) 2>&1 |
2643    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2644    *${as_nl}ac_space=\ *)
2645      sed -n \
2646	"s/'\''/'\''\\\\'\'''\''/g;
2647	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2648      ;; #(
2649    *)
2650      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2651      ;;
2652    esac |
2653    sort
2654)
2655    echo
2656
2657    $as_echo "## ----------------- ##
2658## Output variables. ##
2659## ----------------- ##"
2660    echo
2661    for ac_var in $ac_subst_vars
2662    do
2663      eval ac_val=\$$ac_var
2664      case $ac_val in
2665      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2666      esac
2667      $as_echo "$ac_var='\''$ac_val'\''"
2668    done | sort
2669    echo
2670
2671    if test -n "$ac_subst_files"; then
2672      $as_echo "## ------------------- ##
2673## File substitutions. ##
2674## ------------------- ##"
2675      echo
2676      for ac_var in $ac_subst_files
2677      do
2678	eval ac_val=\$$ac_var
2679	case $ac_val in
2680	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2681	esac
2682	$as_echo "$ac_var='\''$ac_val'\''"
2683      done | sort
2684      echo
2685    fi
2686
2687    if test -s confdefs.h; then
2688      $as_echo "## ----------- ##
2689## confdefs.h. ##
2690## ----------- ##"
2691      echo
2692      cat confdefs.h
2693      echo
2694    fi
2695    test "$ac_signal" != 0 &&
2696      $as_echo "$as_me: caught signal $ac_signal"
2697    $as_echo "$as_me: exit $exit_status"
2698  } >&5
2699  rm -f core *.core core.conftest.* &&
2700    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2701    exit $exit_status
2702' 0
2703for ac_signal in 1 2 13 15; do
2704  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2705done
2706ac_signal=0
2707
2708# confdefs.h avoids OS command line length limits that DEFS can exceed.
2709rm -f -r conftest* confdefs.h
2710
2711$as_echo "/* confdefs.h */" > confdefs.h
2712
2713# Predefined preprocessor variables.
2714
2715cat >>confdefs.h <<_ACEOF
2716#define PACKAGE_NAME "$PACKAGE_NAME"
2717_ACEOF
2718
2719cat >>confdefs.h <<_ACEOF
2720#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2721_ACEOF
2722
2723cat >>confdefs.h <<_ACEOF
2724#define PACKAGE_VERSION "$PACKAGE_VERSION"
2725_ACEOF
2726
2727cat >>confdefs.h <<_ACEOF
2728#define PACKAGE_STRING "$PACKAGE_STRING"
2729_ACEOF
2730
2731cat >>confdefs.h <<_ACEOF
2732#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2733_ACEOF
2734
2735cat >>confdefs.h <<_ACEOF
2736#define PACKAGE_URL "$PACKAGE_URL"
2737_ACEOF
2738
2739
2740# Let the site file select an alternate cache file if it wants to.
2741# Prefer an explicitly selected file to automatically selected ones.
2742ac_site_file1=NONE
2743ac_site_file2=NONE
2744if test -n "$CONFIG_SITE"; then
2745  # We do not want a PATH search for config.site.
2746  case $CONFIG_SITE in #((
2747    -*)  ac_site_file1=./$CONFIG_SITE;;
2748    */*) ac_site_file1=$CONFIG_SITE;;
2749    *)   ac_site_file1=./$CONFIG_SITE;;
2750  esac
2751elif test "x$prefix" != xNONE; then
2752  ac_site_file1=$prefix/share/config.site
2753  ac_site_file2=$prefix/etc/config.site
2754else
2755  ac_site_file1=$ac_default_prefix/share/config.site
2756  ac_site_file2=$ac_default_prefix/etc/config.site
2757fi
2758for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2759do
2760  test "x$ac_site_file" = xNONE && continue
2761  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2762    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2763$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2764    sed 's/^/| /' "$ac_site_file" >&5
2765    . "$ac_site_file" \
2766      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768as_fn_error $? "failed to load site script $ac_site_file
2769See \`config.log' for more details" "$LINENO" 5; }
2770  fi
2771done
2772
2773if test -r "$cache_file"; then
2774  # Some versions of bash will fail to source /dev/null (special files
2775  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2776  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2777    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2778$as_echo "$as_me: loading cache $cache_file" >&6;}
2779    case $cache_file in
2780      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2781      *)                      . "./$cache_file";;
2782    esac
2783  fi
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2786$as_echo "$as_me: creating cache $cache_file" >&6;}
2787  >$cache_file
2788fi
2789
2790gt_needs="$gt_needs "
2791# Check that the precious variables saved in the cache have kept the same
2792# value.
2793ac_cache_corrupted=false
2794for ac_var in $ac_precious_vars; do
2795  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2796  eval ac_new_set=\$ac_env_${ac_var}_set
2797  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2798  eval ac_new_val=\$ac_env_${ac_var}_value
2799  case $ac_old_set,$ac_new_set in
2800    set,)
2801      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2802$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2803      ac_cache_corrupted=: ;;
2804    ,set)
2805      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2806$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2807      ac_cache_corrupted=: ;;
2808    ,);;
2809    *)
2810      if test "x$ac_old_val" != "x$ac_new_val"; then
2811	# differences in whitespace do not lead to failure.
2812	ac_old_val_w=`echo x $ac_old_val`
2813	ac_new_val_w=`echo x $ac_new_val`
2814	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2815	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2816$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2817	  ac_cache_corrupted=:
2818	else
2819	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2820$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2821	  eval $ac_var=\$ac_old_val
2822	fi
2823	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2824$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2825	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2826$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2827      fi;;
2828  esac
2829  # Pass precious variables to config.status.
2830  if test "$ac_new_set" = set; then
2831    case $ac_new_val in
2832    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2833    *) ac_arg=$ac_var=$ac_new_val ;;
2834    esac
2835    case " $ac_configure_args " in
2836      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2837      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2838    esac
2839  fi
2840done
2841if $ac_cache_corrupted; then
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2845$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2846  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2847fi
2848## -------------------- ##
2849## Main body of script. ##
2850## -------------------- ##
2851
2852ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857
2858
2859
2860
2861
2862
2863# ===========================================================================
2864#    http://www.gnu.org/software/autoconf-archive/ax_compare_version.html
2865# ===========================================================================
2866#
2867# SYNOPSIS
2868#
2869#   AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2870#
2871# DESCRIPTION
2872#
2873#   This macro compares two version strings. Due to the various number of
2874#   minor-version numbers that can exist, and the fact that string
2875#   comparisons are not compatible with numeric comparisons, this is not
2876#   necessarily trivial to do in a autoconf script. This macro makes doing
2877#   these comparisons easy.
2878#
2879#   The six basic comparisons are available, as well as checking equality
2880#   limited to a certain number of minor-version levels.
2881#
2882#   The operator OP determines what type of comparison to do, and can be one
2883#   of:
2884#
2885#    eq  - equal (test A == B)
2886#    ne  - not equal (test A != B)
2887#    le  - less than or equal (test A <= B)
2888#    ge  - greater than or equal (test A >= B)
2889#    lt  - less than (test A < B)
2890#    gt  - greater than (test A > B)
2891#
2892#   Additionally, the eq and ne operator can have a number after it to limit
2893#   the test to that number of minor versions.
2894#
2895#    eq0 - equal up to the length of the shorter version
2896#    ne0 - not equal up to the length of the shorter version
2897#    eqN - equal up to N sub-version levels
2898#    neN - not equal up to N sub-version levels
2899#
2900#   When the condition is true, shell commands ACTION-IF-TRUE are run,
2901#   otherwise shell commands ACTION-IF-FALSE are run. The environment
2902#   variable 'ax_compare_version' is always set to either 'true' or 'false'
2903#   as well.
2904#
2905#   Examples:
2906#
2907#     AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
2908#     AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
2909#
2910#   would both be true.
2911#
2912#     AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
2913#     AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
2914#
2915#   would both be false.
2916#
2917#     AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
2918#
2919#   would be true because it is only comparing two minor versions.
2920#
2921#     AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
2922#
2923#   would be true because it is only comparing the lesser number of minor
2924#   versions of the two values.
2925#
2926#   Note: The characters that separate the version numbers do not matter. An
2927#   empty string is the same as version 0. OP is evaluated by autoconf, not
2928#   configure, so must be a string, not a variable.
2929#
2930#   The author would like to acknowledge Guido Draheim whose advice about
2931#   the m4_case and m4_ifvaln functions make this macro only include the
2932#   portions necessary to perform the specific comparison specified by the
2933#   OP argument in the final configure script.
2934#
2935# LICENSE
2936#
2937#   Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
2938#
2939#   Copying and distribution of this file, with or without modification, are
2940#   permitted in any medium without royalty provided the copyright notice
2941#   and this notice are preserved. This file is offered as-is, without any
2942#   warranty.
2943
2944#serial 11
2945
2946
2947
2948
2949
2950if test "$prefix" = "NONE"; then
2951	prefix="/"
2952fi
2953
2954if test "$exec_prefix" = "NONE"; then
2955	if test "$prefix" = "/"; then
2956		exec_prefix="/usr"
2957	else
2958		exec_prefix="$prefix"
2959	fi
2960fi
2961
2962if test "$bindir" = "\${exec_prefix}/bin"; then
2963	bindir="$exec_prefix/bin"
2964fi
2965
2966if test "$sbindir" = "\${exec_prefix}/sbin"; then
2967	sbindir="$exec_prefix/sbin"
2968fi
2969
2970if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
2971	sharedstatedir="/usr/com"
2972fi
2973
2974if test "$datarootdir" = "\${prefix}/share"; then
2975	if test "$prefix" = "/"; then
2976		datarootdir="/usr/share"
2977	else
2978		datarootdir="$prefix/share"
2979	fi
2980fi
2981
2982if test "$datadir" = "\${prefix}/share"; then
2983	if test "$prefix" = "/"; then
2984		datadir="/usr/share"
2985	else
2986		datadir="$prefix/share"
2987	fi
2988elif test "$datadir" = "\${datarootdir}"; then
2989	datadir="$datarootdir"
2990fi
2991
2992if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
2993	includedir="/usr/include"
2994fi
2995
2996if test "$localstatedir" = "\${prefix}/var"; then
2997	if test "$prefix" = "/"; then
2998		if test "$uname" = Darwin; then
2999			localstatedir="/private/var"
3000		else
3001			localstatedir="/var"
3002		fi
3003	else
3004		localstatedir="$prefix/var"
3005	fi
3006fi
3007
3008if test "$sysconfdir" = "\${prefix}/etc"; then
3009	if test "$prefix" = "/"; then
3010		if test "$uname" = Darwin; then
3011			sysconfdir="/private/etc"
3012		else
3013			sysconfdir="/etc"
3014		fi
3015	else
3016		sysconfdir="$prefix/etc"
3017	fi
3018fi
3019
3020if test "$libdir" = "\${exec_prefix}/lib"; then
3021	case "$uname" in
3022		Linux*)
3023			if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
3024				libdir="$exec_prefix/lib64"
3025			fi
3026			;;
3027	esac
3028fi
3029
3030
3031am__api_version='1.16'
3032
3033ac_aux_dir=
3034for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3035  if test -f "$ac_dir/install-sh"; then
3036    ac_aux_dir=$ac_dir
3037    ac_install_sh="$ac_aux_dir/install-sh -c"
3038    break
3039  elif test -f "$ac_dir/install.sh"; then
3040    ac_aux_dir=$ac_dir
3041    ac_install_sh="$ac_aux_dir/install.sh -c"
3042    break
3043  elif test -f "$ac_dir/shtool"; then
3044    ac_aux_dir=$ac_dir
3045    ac_install_sh="$ac_aux_dir/shtool install -c"
3046    break
3047  fi
3048done
3049if test -z "$ac_aux_dir"; then
3050  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3051fi
3052
3053# These three variables are undocumented and unsupported,
3054# and are intended to be withdrawn in a future Autoconf release.
3055# They can cause serious problems if a builder's source tree is in a directory
3056# whose full name contains unusual characters.
3057ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3058ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3059ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3060
3061
3062# Find a good install program.  We prefer a C program (faster),
3063# so one script is as good as another.  But avoid the broken or
3064# incompatible versions:
3065# SysV /etc/install, /usr/sbin/install
3066# SunOS /usr/etc/install
3067# IRIX /sbin/install
3068# AIX /bin/install
3069# AmigaOS /C/install, which installs bootblocks on floppy discs
3070# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3071# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3072# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3073# OS/2's system install, which has a completely different semantic
3074# ./install, which can be erroneously created by make from ./install.sh.
3075# Reject install programs that cannot install multiple files.
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3077$as_echo_n "checking for a BSD-compatible install... " >&6; }
3078if test -z "$INSTALL"; then
3079if ${ac_cv_path_install+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085  IFS=$as_save_IFS
3086  test -z "$as_dir" && as_dir=.
3087    # Account for people who put trailing slashes in PATH elements.
3088case $as_dir/ in #((
3089  ./ | .// | /[cC]/* | \
3090  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3091  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3092  /usr/ucb/* ) ;;
3093  *)
3094    # OSF1 and SCO ODT 3.0 have their own names for install.
3095    # Don't use installbsd from OSF since it installs stuff as root
3096    # by default.
3097    for ac_prog in ginstall scoinst install; do
3098      for ac_exec_ext in '' $ac_executable_extensions; do
3099	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3100	  if test $ac_prog = install &&
3101	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102	    # AIX install.  It has an incompatible calling convention.
3103	    :
3104	  elif test $ac_prog = install &&
3105	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3106	    # program-specific install script used by HP pwplus--don't use.
3107	    :
3108	  else
3109	    rm -rf conftest.one conftest.two conftest.dir
3110	    echo one > conftest.one
3111	    echo two > conftest.two
3112	    mkdir conftest.dir
3113	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3114	      test -s conftest.one && test -s conftest.two &&
3115	      test -s conftest.dir/conftest.one &&
3116	      test -s conftest.dir/conftest.two
3117	    then
3118	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3119	      break 3
3120	    fi
3121	  fi
3122	fi
3123      done
3124    done
3125    ;;
3126esac
3127
3128  done
3129IFS=$as_save_IFS
3130
3131rm -rf conftest.one conftest.two conftest.dir
3132
3133fi
3134  if test "${ac_cv_path_install+set}" = set; then
3135    INSTALL=$ac_cv_path_install
3136  else
3137    # As a last resort, use the slow shell script.  Don't cache a
3138    # value for INSTALL within a source directory, because that will
3139    # break other packages using the cache if that directory is
3140    # removed, or if the value is a relative name.
3141    INSTALL=$ac_install_sh
3142  fi
3143fi
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3145$as_echo "$INSTALL" >&6; }
3146
3147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3148# It thinks the first close brace ends the variable substitution.
3149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3150
3151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3152
3153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3154
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3156$as_echo_n "checking whether build environment is sane... " >&6; }
3157# Reject unsafe characters in $srcdir or the absolute working directory
3158# name.  Accept space and tab only in the latter.
3159am_lf='
3160'
3161case `pwd` in
3162  *[\\\"\#\$\&\'\`$am_lf]*)
3163    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3164esac
3165case $srcdir in
3166  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3167    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3168esac
3169
3170# Do 'set' in a subshell so we don't clobber the current shell's
3171# arguments.  Must try -L first in case configure is actually a
3172# symlink; some systems play weird games with the mod time of symlinks
3173# (eg FreeBSD returns the mod time of the symlink's containing
3174# directory).
3175if (
3176   am_has_slept=no
3177   for am_try in 1 2; do
3178     echo "timestamp, slept: $am_has_slept" > conftest.file
3179     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3180     if test "$*" = "X"; then
3181	# -L didn't work.
3182	set X `ls -t "$srcdir/configure" conftest.file`
3183     fi
3184     if test "$*" != "X $srcdir/configure conftest.file" \
3185	&& test "$*" != "X conftest.file $srcdir/configure"; then
3186
3187	# If neither matched, then we have a broken ls.  This can happen
3188	# if, for instance, CONFIG_SHELL is bash and it inherits a
3189	# broken ls alias from the environment.  This has actually
3190	# happened.  Such a system could not be considered "sane".
3191	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3192  alias in your environment" "$LINENO" 5
3193     fi
3194     if test "$2" = conftest.file || test $am_try -eq 2; then
3195       break
3196     fi
3197     # Just in case.
3198     sleep 1
3199     am_has_slept=yes
3200   done
3201   test "$2" = conftest.file
3202   )
3203then
3204   # Ok.
3205   :
3206else
3207   as_fn_error $? "newly created file is older than distributed files!
3208Check your system clock" "$LINENO" 5
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211$as_echo "yes" >&6; }
3212# If we didn't sleep, we still need to ensure time stamps of config.status and
3213# generated files are strictly newer.
3214am_sleep_pid=
3215if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3216  ( sleep 1 ) &
3217  am_sleep_pid=$!
3218fi
3219
3220rm -f conftest.file
3221
3222test "$program_prefix" != NONE &&
3223  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3224# Use a double $ so make ignores it.
3225test "$program_suffix" != NONE &&
3226  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3227# Double any \ or $.
3228# By default was `s,x,x', remove it if useless.
3229ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3230program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3231
3232# Expand $ac_aux_dir to an absolute path.
3233am_aux_dir=`cd "$ac_aux_dir" && pwd`
3234
3235if test x"${MISSING+set}" != xset; then
3236  MISSING="\${SHELL} '$am_aux_dir/missing'"
3237fi
3238# Use eval to expand $SHELL
3239if eval "$MISSING --is-lightweight"; then
3240  am_missing_run="$MISSING "
3241else
3242  am_missing_run=
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3244$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3245fi
3246
3247if test x"${install_sh+set}" != xset; then
3248  case $am_aux_dir in
3249  *\ * | *\	*)
3250    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3251  *)
3252    install_sh="\${SHELL} $am_aux_dir/install-sh"
3253  esac
3254fi
3255
3256# Installed binaries are usually stripped using 'strip' when the user
3257# run "make install-strip".  However 'strip' might not be the right
3258# tool to use in cross-compilation environments, therefore Automake
3259# will honor the 'STRIP' environment variable to overrule this program.
3260if test "$cross_compiling" != no; then
3261  if test -n "$ac_tool_prefix"; then
3262  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}strip; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if ${ac_cv_prog_STRIP+:} false; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  if test -n "$STRIP"; then
3270  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    for ac_exec_ext in '' $ac_executable_extensions; do
3278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281    break 2
3282  fi
3283done
3284  done
3285IFS=$as_save_IFS
3286
3287fi
3288fi
3289STRIP=$ac_cv_prog_STRIP
3290if test -n "$STRIP"; then
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3292$as_echo "$STRIP" >&6; }
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299fi
3300if test -z "$ac_cv_prog_STRIP"; then
3301  ac_ct_STRIP=$STRIP
3302  # Extract the first word of "strip", so it can be a program name with args.
3303set dummy strip; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
3306if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  if test -n "$ac_ct_STRIP"; then
3310  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3311else
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
3314do
3315  IFS=$as_save_IFS
3316  test -z "$as_dir" && as_dir=.
3317    for ac_exec_ext in '' $ac_executable_extensions; do
3318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319    ac_cv_prog_ac_ct_STRIP="strip"
3320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321    break 2
3322  fi
3323done
3324  done
3325IFS=$as_save_IFS
3326
3327fi
3328fi
3329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3330if test -n "$ac_ct_STRIP"; then
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3332$as_echo "$ac_ct_STRIP" >&6; }
3333else
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338  if test "x$ac_ct_STRIP" = x; then
3339    STRIP=":"
3340  else
3341    case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347    STRIP=$ac_ct_STRIP
3348  fi
3349else
3350  STRIP="$ac_cv_prog_STRIP"
3351fi
3352
3353fi
3354INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3355
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3357$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3358if test -z "$MKDIR_P"; then
3359  if ${ac_cv_path_mkdir+:} false; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_prog in mkdir gmkdir; do
3368	 for ac_exec_ext in '' $ac_executable_extensions; do
3369	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3370	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3371	     'mkdir (GNU coreutils) '* | \
3372	     'mkdir (coreutils) '* | \
3373	     'mkdir (fileutils) '4.1*)
3374	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3375	       break 3;;
3376	   esac
3377	 done
3378       done
3379  done
3380IFS=$as_save_IFS
3381
3382fi
3383
3384  test -d ./--version && rmdir ./--version
3385  if test "${ac_cv_path_mkdir+set}" = set; then
3386    MKDIR_P="$ac_cv_path_mkdir -p"
3387  else
3388    # As a last resort, use the slow shell script.  Don't cache a
3389    # value for MKDIR_P within a source directory, because that will
3390    # break other packages using the cache if that directory is
3391    # removed, or if the value is a relative name.
3392    MKDIR_P="$ac_install_sh -d"
3393  fi
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3396$as_echo "$MKDIR_P" >&6; }
3397
3398for ac_prog in gawk mawk nawk awk
3399do
3400  # Extract the first word of "$ac_prog", so it can be a program name with args.
3401set dummy $ac_prog; ac_word=$2
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403$as_echo_n "checking for $ac_word... " >&6; }
3404if ${ac_cv_prog_AWK+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  if test -n "$AWK"; then
3408  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415    for ac_exec_ext in '' $ac_executable_extensions; do
3416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417    ac_cv_prog_AWK="$ac_prog"
3418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422  done
3423IFS=$as_save_IFS
3424
3425fi
3426fi
3427AWK=$ac_cv_prog_AWK
3428if test -n "$AWK"; then
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3430$as_echo "$AWK" >&6; }
3431else
3432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433$as_echo "no" >&6; }
3434fi
3435
3436
3437  test -n "$AWK" && break
3438done
3439
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3441$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3442set x ${MAKE-make}
3443ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3444if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3445  $as_echo_n "(cached) " >&6
3446else
3447  cat >conftest.make <<\_ACEOF
3448SHELL = /bin/sh
3449all:
3450	@echo '@@@%%%=$(MAKE)=@@@%%%'
3451_ACEOF
3452# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3453case `${MAKE-make} -f conftest.make 2>/dev/null` in
3454  *@@@%%%=?*=@@@%%%*)
3455    eval ac_cv_prog_make_${ac_make}_set=yes;;
3456  *)
3457    eval ac_cv_prog_make_${ac_make}_set=no;;
3458esac
3459rm -f conftest.make
3460fi
3461if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463$as_echo "yes" >&6; }
3464  SET_MAKE=
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468  SET_MAKE="MAKE=${MAKE-make}"
3469fi
3470
3471rm -rf .tst 2>/dev/null
3472mkdir .tst 2>/dev/null
3473if test -d .tst; then
3474  am__leading_dot=.
3475else
3476  am__leading_dot=_
3477fi
3478rmdir .tst 2>/dev/null
3479
3480# Check whether --enable-silent-rules was given.
3481if test "${enable_silent_rules+set}" = set; then :
3482  enableval=$enable_silent_rules;
3483fi
3484
3485case $enable_silent_rules in # (((
3486  yes) AM_DEFAULT_VERBOSITY=0;;
3487   no) AM_DEFAULT_VERBOSITY=1;;
3488    *) AM_DEFAULT_VERBOSITY=1;;
3489esac
3490am_make=${MAKE-make}
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3492$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3493if ${am_cv_make_support_nested_variables+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  if $as_echo 'TRUE=$(BAR$(V))
3497BAR0=false
3498BAR1=true
3499V=1
3500am__doit:
3501	@$(TRUE)
3502.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3503  am_cv_make_support_nested_variables=yes
3504else
3505  am_cv_make_support_nested_variables=no
3506fi
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3509$as_echo "$am_cv_make_support_nested_variables" >&6; }
3510if test $am_cv_make_support_nested_variables = yes; then
3511    AM_V='$(V)'
3512  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3513else
3514  AM_V=$AM_DEFAULT_VERBOSITY
3515  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3516fi
3517AM_BACKSLASH='\'
3518
3519if test "`cd $srcdir && pwd`" != "`pwd`"; then
3520  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3521  # is not polluted with repeated "-I."
3522  am__isrc=' -I$(srcdir)'
3523  # test to see if srcdir already configured
3524  if test -f $srcdir/config.status; then
3525    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3526  fi
3527fi
3528
3529# test whether we have cygpath
3530if test -z "$CYGPATH_W"; then
3531  if (cygpath --version) >/dev/null 2>/dev/null; then
3532    CYGPATH_W='cygpath -w'
3533  else
3534    CYGPATH_W=echo
3535  fi
3536fi
3537
3538
3539# Define the identity of the package.
3540 PACKAGE='cups-filters'
3541 VERSION='1.28.10'
3542
3543
3544cat >>confdefs.h <<_ACEOF
3545#define PACKAGE "$PACKAGE"
3546_ACEOF
3547
3548
3549cat >>confdefs.h <<_ACEOF
3550#define VERSION "$VERSION"
3551_ACEOF
3552
3553# Some tools Automake needs.
3554
3555ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3556
3557
3558AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3559
3560
3561AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3562
3563
3564AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3565
3566
3567MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3568
3569# For better backward compatibility.  To be removed once Automake 1.9.x
3570# dies out for good.  For more background, see:
3571# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3572# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3573mkdir_p='$(MKDIR_P)'
3574
3575# We need awk for the "check" target (and possibly the TAP driver).  The
3576# system "awk" is bad on some platforms.
3577# Always define AMTAR for backward compatibility.  Yes, it's still used
3578# in the wild :-(  We should find a proper way to deprecate it ...
3579AMTAR='$${TAR-tar}'
3580
3581
3582# We'll loop over all known methods to create a tar archive until one works.
3583_am_tools='gnutar  pax cpio none'
3584
3585am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3586
3587
3588
3589
3590
3591
3592# POSIX will say in a future version that running "rm -f" with no argument
3593# is OK; and we want to be able to make that assumption in our Makefile
3594# recipes.  So use an aggressive probe to check that the usage we want is
3595# actually supported "in the wild" to an acceptable degree.
3596# See automake bug#10828.
3597# To make any issue more visible, cause the running configure to be aborted
3598# by default if the 'rm' program in use doesn't match our expectations; the
3599# user can still override this though.
3600if rm -f && rm -fr && rm -rf; then : OK; else
3601  cat >&2 <<'END'
3602Oops!
3603
3604Your 'rm' program seems unable to run without file operands specified
3605on the command line, even when the '-f' option is present.  This is contrary
3606to the behaviour of most rm programs out there, and not conforming with
3607the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3608
3609Please tell bug-automake@gnu.org about your system, including the value
3610of your $PATH and any error possibly output before this message.  This
3611can help us improve future automake versions.
3612
3613END
3614  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3615    echo 'Configuration will proceed anyway, since you have set the' >&2
3616    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3617    echo >&2
3618  else
3619    cat >&2 <<'END'
3620Aborting the configuration process, to ensure you take notice of the issue.
3621
3622You can download and install GNU coreutils to get an 'rm' implementation
3623that behaves properly: <https://www.gnu.org/software/coreutils/>.
3624
3625If you want to complete the configuration process using your problematic
3626'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3627to "yes", and re-run configure.
3628
3629END
3630    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3631  fi
3632fi
3633
3634# Check whether --enable-silent-rules was given.
3635if test "${enable_silent_rules+set}" = set; then :
3636  enableval=$enable_silent_rules;
3637fi
3638
3639case $enable_silent_rules in # (((
3640  yes) AM_DEFAULT_VERBOSITY=0;;
3641   no) AM_DEFAULT_VERBOSITY=1;;
3642    *) AM_DEFAULT_VERBOSITY=0;;
3643esac
3644am_make=${MAKE-make}
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3646$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3647if ${am_cv_make_support_nested_variables+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  if $as_echo 'TRUE=$(BAR$(V))
3651BAR0=false
3652BAR1=true
3653V=1
3654am__doit:
3655	@$(TRUE)
3656.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3657  am_cv_make_support_nested_variables=yes
3658else
3659  am_cv_make_support_nested_variables=no
3660fi
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3663$as_echo "$am_cv_make_support_nested_variables" >&6; }
3664if test $am_cv_make_support_nested_variables = yes; then
3665    AM_V='$(V)'
3666  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3667else
3668  AM_V=$AM_DEFAULT_VERBOSITY
3669  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3670fi
3671AM_BACKSLASH='\'
3672
3673ac_ext=cpp
3674ac_cpp='$CXXCPP $CPPFLAGS'
3675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3678
3679ac_config_headers="$ac_config_headers config.h"
3680
3681# Extra defines for the config.h
3682
3683
3684# ===========================
3685# Find required base packages
3686# ===========================
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692if test -n "$ac_tool_prefix"; then
3693  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3694set dummy ${ac_tool_prefix}gcc; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
3697if ${ac_cv_prog_CC+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  if test -n "$CC"; then
3701  ac_cv_prog_CC="$CC" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706  IFS=$as_save_IFS
3707  test -z "$as_dir" && as_dir=.
3708    for ac_exec_ext in '' $ac_executable_extensions; do
3709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712    break 2
3713  fi
3714done
3715  done
3716IFS=$as_save_IFS
3717
3718fi
3719fi
3720CC=$ac_cv_prog_CC
3721if test -n "$CC"; then
3722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723$as_echo "$CC" >&6; }
3724else
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727fi
3728
3729
3730fi
3731if test -z "$ac_cv_prog_CC"; then
3732  ac_ct_CC=$CC
3733  # Extract the first word of "gcc", so it can be a program name with args.
3734set dummy gcc; ac_word=$2
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736$as_echo_n "checking for $ac_word... " >&6; }
3737if ${ac_cv_prog_ac_ct_CC+:} false; then :
3738  $as_echo_n "(cached) " >&6
3739else
3740  if test -n "$ac_ct_CC"; then
3741  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746  IFS=$as_save_IFS
3747  test -z "$as_dir" && as_dir=.
3748    for ac_exec_ext in '' $ac_executable_extensions; do
3749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750    ac_cv_prog_ac_ct_CC="gcc"
3751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752    break 2
3753  fi
3754done
3755  done
3756IFS=$as_save_IFS
3757
3758fi
3759fi
3760ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761if test -n "$ac_ct_CC"; then
3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763$as_echo "$ac_ct_CC" >&6; }
3764else
3765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766$as_echo "no" >&6; }
3767fi
3768
3769  if test "x$ac_ct_CC" = x; then
3770    CC=""
3771  else
3772    case $cross_compiling:$ac_tool_warned in
3773yes:)
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776ac_tool_warned=yes ;;
3777esac
3778    CC=$ac_ct_CC
3779  fi
3780else
3781  CC="$ac_cv_prog_CC"
3782fi
3783
3784if test -z "$CC"; then
3785          if test -n "$ac_tool_prefix"; then
3786    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3787set dummy ${ac_tool_prefix}cc; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
3790if ${ac_cv_prog_CC+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  if test -n "$CC"; then
3794  ac_cv_prog_CC="$CC" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799  IFS=$as_save_IFS
3800  test -z "$as_dir" && as_dir=.
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803    ac_cv_prog_CC="${ac_tool_prefix}cc"
3804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805    break 2
3806  fi
3807done
3808  done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813CC=$ac_cv_prog_CC
3814if test -n "$CC"; then
3815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816$as_echo "$CC" >&6; }
3817else
3818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
3821
3822
3823  fi
3824fi
3825if test -z "$CC"; then
3826  # Extract the first word of "cc", so it can be a program name with args.
3827set dummy cc; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
3830if ${ac_cv_prog_CC+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  if test -n "$CC"; then
3834  ac_cv_prog_CC="$CC" # Let the user override the test.
3835else
3836  ac_prog_rejected=no
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  test -z "$as_dir" && as_dir=.
3842    for ac_exec_ext in '' $ac_executable_extensions; do
3843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3845       ac_prog_rejected=yes
3846       continue
3847     fi
3848    ac_cv_prog_CC="cc"
3849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853  done
3854IFS=$as_save_IFS
3855
3856if test $ac_prog_rejected = yes; then
3857  # We found a bogon in the path, so make sure we never use it.
3858  set dummy $ac_cv_prog_CC
3859  shift
3860  if test $# != 0; then
3861    # We chose a different compiler from the bogus one.
3862    # However, it has the same basename, so the bogon will be chosen
3863    # first if we set CC to just the basename; use the full file name.
3864    shift
3865    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3866  fi
3867fi
3868fi
3869fi
3870CC=$ac_cv_prog_CC
3871if test -n "$CC"; then
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873$as_echo "$CC" >&6; }
3874else
3875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876$as_echo "no" >&6; }
3877fi
3878
3879
3880fi
3881if test -z "$CC"; then
3882  if test -n "$ac_tool_prefix"; then
3883  for ac_prog in cl.exe
3884  do
3885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
3889if ${ac_cv_prog_CC+:} false; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  if test -n "$CC"; then
3893  ac_cv_prog_CC="$CC" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898  IFS=$as_save_IFS
3899  test -z "$as_dir" && as_dir=.
3900    for ac_exec_ext in '' $ac_executable_extensions; do
3901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907  done
3908IFS=$as_save_IFS
3909
3910fi
3911fi
3912CC=$ac_cv_prog_CC
3913if test -n "$CC"; then
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915$as_echo "$CC" >&6; }
3916else
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
3919fi
3920
3921
3922    test -n "$CC" && break
3923  done
3924fi
3925if test -z "$CC"; then
3926  ac_ct_CC=$CC
3927  for ac_prog in cl.exe
3928do
3929  # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if ${ac_cv_prog_ac_ct_CC+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -n "$ac_ct_CC"; then
3937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946    ac_cv_prog_ac_ct_CC="$ac_prog"
3947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956ac_ct_CC=$ac_cv_prog_ac_ct_CC
3957if test -n "$ac_ct_CC"; then
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3959$as_echo "$ac_ct_CC" >&6; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966  test -n "$ac_ct_CC" && break
3967done
3968
3969  if test "x$ac_ct_CC" = x; then
3970    CC=""
3971  else
3972    case $cross_compiling:$ac_tool_warned in
3973yes:)
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3976ac_tool_warned=yes ;;
3977esac
3978    CC=$ac_ct_CC
3979  fi
3980fi
3981
3982fi
3983
3984
3985test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error $? "no acceptable C compiler found in \$PATH
3988See \`config.log' for more details" "$LINENO" 5; }
3989
3990# Provide some information about the compiler.
3991$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3992set X $ac_compile
3993ac_compiler=$2
3994for ac_option in --version -v -V -qversion; do
3995  { { ac_try="$ac_compiler $ac_option >&5"
3996case "(($ac_try" in
3997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998  *) ac_try_echo=$ac_try;;
3999esac
4000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001$as_echo "$ac_try_echo"; } >&5
4002  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4003  ac_status=$?
4004  if test -s conftest.err; then
4005    sed '10a\
4006... rest of stderr output deleted ...
4007         10q' conftest.err >conftest.er1
4008    cat conftest.er1 >&5
4009  fi
4010  rm -f conftest.er1 conftest.err
4011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012  test $ac_status = 0; }
4013done
4014
4015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h.  */
4017
4018int
4019main ()
4020{
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026ac_clean_files_save=$ac_clean_files
4027ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4028# Try to create an executable without -o first, disregard a.out.
4029# It will help us diagnose broken compilers, and finding out an intuition
4030# of exeext.
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4032$as_echo_n "checking whether the C compiler works... " >&6; }
4033ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4034
4035# The possible output files:
4036ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4037
4038ac_rmfiles=
4039for ac_file in $ac_files
4040do
4041  case $ac_file in
4042    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4043    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4044  esac
4045done
4046rm -f $ac_rmfiles
4047
4048if { { ac_try="$ac_link_default"
4049case "(($ac_try" in
4050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051  *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054$as_echo "$ac_try_echo"; } >&5
4055  (eval "$ac_link_default") 2>&5
4056  ac_status=$?
4057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058  test $ac_status = 0; }; then :
4059  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4060# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4061# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4062# so that the user can short-circuit this test for compilers unknown to
4063# Autoconf.
4064for ac_file in $ac_files ''
4065do
4066  test -f "$ac_file" || continue
4067  case $ac_file in
4068    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4069	;;
4070    [ab].out )
4071	# We found the default executable, but exeext='' is most
4072	# certainly right.
4073	break;;
4074    *.* )
4075	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4076	then :; else
4077	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4078	fi
4079	# We set ac_cv_exeext here because the later test for it is not
4080	# safe: cross compilers may not add the suffix if given an `-o'
4081	# argument, so we may need to know it at that point already.
4082	# Even if this section looks crufty: it has the advantage of
4083	# actually working.
4084	break;;
4085    * )
4086	break;;
4087  esac
4088done
4089test "$ac_cv_exeext" = no && ac_cv_exeext=
4090
4091else
4092  ac_file=''
4093fi
4094if test -z "$ac_file"; then :
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097$as_echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102as_fn_error 77 "C compiler cannot create executables
4103See \`config.log' for more details" "$LINENO" 5; }
4104else
4105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106$as_echo "yes" >&6; }
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4109$as_echo_n "checking for C compiler default output file name... " >&6; }
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4111$as_echo "$ac_file" >&6; }
4112ac_exeext=$ac_cv_exeext
4113
4114rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4115ac_clean_files=$ac_clean_files_save
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4117$as_echo_n "checking for suffix of executables... " >&6; }
4118if { { ac_try="$ac_link"
4119case "(($ac_try" in
4120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121  *) ac_try_echo=$ac_try;;
4122esac
4123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124$as_echo "$ac_try_echo"; } >&5
4125  (eval "$ac_link") 2>&5
4126  ac_status=$?
4127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128  test $ac_status = 0; }; then :
4129  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4130# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4131# work properly (i.e., refer to `conftest.exe'), while it won't with
4132# `rm'.
4133for ac_file in conftest.exe conftest conftest.*; do
4134  test -f "$ac_file" || continue
4135  case $ac_file in
4136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4137    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4138	  break;;
4139    * ) break;;
4140  esac
4141done
4142else
4143  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4146See \`config.log' for more details" "$LINENO" 5; }
4147fi
4148rm -f conftest conftest$ac_cv_exeext
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4150$as_echo "$ac_cv_exeext" >&6; }
4151
4152rm -f conftest.$ac_ext
4153EXEEXT=$ac_cv_exeext
4154ac_exeext=$EXEEXT
4155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157#include <stdio.h>
4158int
4159main ()
4160{
4161FILE *f = fopen ("conftest.out", "w");
4162 return ferror (f) || fclose (f) != 0;
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168ac_clean_files="$ac_clean_files conftest.out"
4169# Check that the compiler produces executables we can run.  If not, either
4170# the compiler is broken, or we cross compile.
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4172$as_echo_n "checking whether we are cross compiling... " >&6; }
4173if test "$cross_compiling" != yes; then
4174  { { ac_try="$ac_link"
4175case "(($ac_try" in
4176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177  *) ac_try_echo=$ac_try;;
4178esac
4179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180$as_echo "$ac_try_echo"; } >&5
4181  (eval "$ac_link") 2>&5
4182  ac_status=$?
4183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184  test $ac_status = 0; }
4185  if { ac_try='./conftest$ac_cv_exeext'
4186  { { case "(($ac_try" in
4187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188  *) ac_try_echo=$ac_try;;
4189esac
4190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191$as_echo "$ac_try_echo"; } >&5
4192  (eval "$ac_try") 2>&5
4193  ac_status=$?
4194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195  test $ac_status = 0; }; }; then
4196    cross_compiling=no
4197  else
4198    if test "$cross_compiling" = maybe; then
4199	cross_compiling=yes
4200    else
4201	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203as_fn_error $? "cannot run C compiled programs.
4204If you meant to cross compile, use \`--host'.
4205See \`config.log' for more details" "$LINENO" 5; }
4206    fi
4207  fi
4208fi
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210$as_echo "$cross_compiling" >&6; }
4211
4212rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4213ac_clean_files=$ac_clean_files_save
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4215$as_echo_n "checking for suffix of object files... " >&6; }
4216if ${ac_cv_objext+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h.  */
4221
4222int
4223main ()
4224{
4225
4226  ;
4227  return 0;
4228}
4229_ACEOF
4230rm -f conftest.o conftest.obj
4231if { { ac_try="$ac_compile"
4232case "(($ac_try" in
4233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234  *) ac_try_echo=$ac_try;;
4235esac
4236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237$as_echo "$ac_try_echo"; } >&5
4238  (eval "$ac_compile") 2>&5
4239  ac_status=$?
4240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241  test $ac_status = 0; }; then :
4242  for ac_file in conftest.o conftest.obj conftest.*; do
4243  test -f "$ac_file" || continue;
4244  case $ac_file in
4245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4246    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4247       break;;
4248  esac
4249done
4250else
4251  $as_echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256as_fn_error $? "cannot compute suffix of object files: cannot compile
4257See \`config.log' for more details" "$LINENO" 5; }
4258fi
4259rm -f conftest.$ac_cv_objext conftest.$ac_ext
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4262$as_echo "$ac_cv_objext" >&6; }
4263OBJEXT=$ac_cv_objext
4264ac_objext=$OBJEXT
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4266$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4267if ${ac_cv_c_compiler_gnu+:} false; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272
4273int
4274main ()
4275{
4276#ifndef __GNUC__
4277       choke me
4278#endif
4279
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284if ac_fn_c_try_compile "$LINENO"; then :
4285  ac_compiler_gnu=yes
4286else
4287  ac_compiler_gnu=no
4288fi
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290ac_cv_c_compiler_gnu=$ac_compiler_gnu
4291
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4294$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4295if test $ac_compiler_gnu = yes; then
4296  GCC=yes
4297else
4298  GCC=
4299fi
4300ac_test_CFLAGS=${CFLAGS+set}
4301ac_save_CFLAGS=$CFLAGS
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4303$as_echo_n "checking whether $CC accepts -g... " >&6; }
4304if ${ac_cv_prog_cc_g+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  ac_save_c_werror_flag=$ac_c_werror_flag
4308   ac_c_werror_flag=yes
4309   ac_cv_prog_cc_g=no
4310   CFLAGS="-g"
4311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313
4314int
4315main ()
4316{
4317
4318  ;
4319  return 0;
4320}
4321_ACEOF
4322if ac_fn_c_try_compile "$LINENO"; then :
4323  ac_cv_prog_cc_g=yes
4324else
4325  CFLAGS=""
4326      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h.  */
4328
4329int
4330main ()
4331{
4332
4333  ;
4334  return 0;
4335}
4336_ACEOF
4337if ac_fn_c_try_compile "$LINENO"; then :
4338
4339else
4340  ac_c_werror_flag=$ac_save_c_werror_flag
4341	 CFLAGS="-g"
4342	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344
4345int
4346main ()
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353if ac_fn_c_try_compile "$LINENO"; then :
4354  ac_cv_prog_cc_g=yes
4355fi
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359fi
4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361   ac_c_werror_flag=$ac_save_c_werror_flag
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4364$as_echo "$ac_cv_prog_cc_g" >&6; }
4365if test "$ac_test_CFLAGS" = set; then
4366  CFLAGS=$ac_save_CFLAGS
4367elif test $ac_cv_prog_cc_g = yes; then
4368  if test "$GCC" = yes; then
4369    CFLAGS="-g -O2"
4370  else
4371    CFLAGS="-g"
4372  fi
4373else
4374  if test "$GCC" = yes; then
4375    CFLAGS="-O2"
4376  else
4377    CFLAGS=
4378  fi
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4381$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4382if ${ac_cv_prog_cc_c89+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  ac_cv_prog_cc_c89=no
4386ac_save_CC=$CC
4387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h.  */
4389#include <stdarg.h>
4390#include <stdio.h>
4391struct stat;
4392/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4393struct buf { int x; };
4394FILE * (*rcsopen) (struct buf *, struct stat *, int);
4395static char *e (p, i)
4396     char **p;
4397     int i;
4398{
4399  return p[i];
4400}
4401static char *f (char * (*g) (char **, int), char **p, ...)
4402{
4403  char *s;
4404  va_list v;
4405  va_start (v,p);
4406  s = g (p, va_arg (v,int));
4407  va_end (v);
4408  return s;
4409}
4410
4411/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4412   function prototypes and stuff, but not '\xHH' hex character constants.
4413   These don't provoke an error unfortunately, instead are silently treated
4414   as 'x'.  The following induces an error, until -std is added to get
4415   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4416   array size at least.  It's necessary to write '\x00'==0 to get something
4417   that's true only with -std.  */
4418int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4419
4420/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4421   inside strings and character constants.  */
4422#define FOO(x) 'x'
4423int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4424
4425int test (int i, double x);
4426struct s1 {int (*f) (int a);};
4427struct s2 {int (*f) (double a);};
4428int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4429int argc;
4430char **argv;
4431int
4432main ()
4433{
4434return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4435  ;
4436  return 0;
4437}
4438_ACEOF
4439for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4440	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4441do
4442  CC="$ac_save_CC $ac_arg"
4443  if ac_fn_c_try_compile "$LINENO"; then :
4444  ac_cv_prog_cc_c89=$ac_arg
4445fi
4446rm -f core conftest.err conftest.$ac_objext
4447  test "x$ac_cv_prog_cc_c89" != "xno" && break
4448done
4449rm -f conftest.$ac_ext
4450CC=$ac_save_CC
4451
4452fi
4453# AC_CACHE_VAL
4454case "x$ac_cv_prog_cc_c89" in
4455  x)
4456    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4457$as_echo "none needed" >&6; } ;;
4458  xno)
4459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4460$as_echo "unsupported" >&6; } ;;
4461  *)
4462    CC="$CC $ac_cv_prog_cc_c89"
4463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4464$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4465esac
4466if test "x$ac_cv_prog_cc_c89" != xno; then :
4467
4468fi
4469
4470ac_ext=cpp
4471ac_cpp='$CXXCPP $CPPFLAGS'
4472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4475
4476ac_ext=c
4477ac_cpp='$CPP $CPPFLAGS'
4478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4482$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4483if ${am_cv_prog_cc_c_o+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488
4489int
4490main ()
4491{
4492
4493  ;
4494  return 0;
4495}
4496_ACEOF
4497  # Make sure it works both with $CC and with simple cc.
4498  # Following AC_PROG_CC_C_O, we do the test twice because some
4499  # compilers refuse to overwrite an existing .o file with -o,
4500  # though they will create one.
4501  am_cv_prog_cc_c_o=yes
4502  for am_i in 1 2; do
4503    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4504   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } \
4508         && test -f conftest2.$ac_objext; then
4509      : OK
4510    else
4511      am_cv_prog_cc_c_o=no
4512      break
4513    fi
4514  done
4515  rm -f core conftest*
4516  unset am_i
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4519$as_echo "$am_cv_prog_cc_c_o" >&6; }
4520if test "$am_cv_prog_cc_c_o" != yes; then
4521   # Losing compiler, so override with the script.
4522   # FIXME: It is wrong to rewrite CC.
4523   # But if we don't then we get into trouble of one sort or another.
4524   # A longer-term fix would be to have automake use am__CC in this case,
4525   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4526   CC="$am_aux_dir/compile $CC"
4527fi
4528ac_ext=cpp
4529ac_cpp='$CXXCPP $CPPFLAGS'
4530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4533
4534DEPDIR="${am__leading_dot}deps"
4535
4536ac_config_commands="$ac_config_commands depfiles"
4537
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4539$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4540cat > confinc.mk << 'END'
4541am__doit:
4542	@echo this is the am__doit target >confinc.out
4543.PHONY: am__doit
4544END
4545am__include="#"
4546am__quote=
4547# BSD make does it like this.
4548echo '.include "confinc.mk" # ignored' > confmf.BSD
4549# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4550echo 'include confinc.mk # ignored' > confmf.GNU
4551_am_result=no
4552for s in GNU BSD; do
4553  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4554   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }
4558  case $?:`cat confinc.out 2>/dev/null` in #(
4559  '0:this is the am__doit target') :
4560    case $s in #(
4561  BSD) :
4562    am__include='.include' am__quote='"' ;; #(
4563  *) :
4564    am__include='include' am__quote='' ;;
4565esac ;; #(
4566  *) :
4567     ;;
4568esac
4569  if test "$am__include" != "#"; then
4570    _am_result="yes ($s style)"
4571    break
4572  fi
4573done
4574rm -f confinc.* confmf.*
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4576$as_echo "${_am_result}" >&6; }
4577
4578# Check whether --enable-dependency-tracking was given.
4579if test "${enable_dependency_tracking+set}" = set; then :
4580  enableval=$enable_dependency_tracking;
4581fi
4582
4583if test "x$enable_dependency_tracking" != xno; then
4584  am_depcomp="$ac_aux_dir/depcomp"
4585  AMDEPBACKSLASH='\'
4586  am__nodep='_no'
4587fi
4588 if test "x$enable_dependency_tracking" != xno; then
4589  AMDEP_TRUE=
4590  AMDEP_FALSE='#'
4591else
4592  AMDEP_TRUE='#'
4593  AMDEP_FALSE=
4594fi
4595
4596
4597
4598depcc="$CC"   am_compiler_list=
4599
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4601$as_echo_n "checking dependency style of $depcc... " >&6; }
4602if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4606  # We make a subdir and do the tests there.  Otherwise we can end up
4607  # making bogus files that we don't know about and never remove.  For
4608  # instance it was reported that on HP-UX the gcc test will end up
4609  # making a dummy file named 'D' -- because '-MD' means "put the output
4610  # in D".
4611  rm -rf conftest.dir
4612  mkdir conftest.dir
4613  # Copy depcomp to subdir because otherwise we won't find it if we're
4614  # using a relative directory.
4615  cp "$am_depcomp" conftest.dir
4616  cd conftest.dir
4617  # We will build objects and dependencies in a subdirectory because
4618  # it helps to detect inapplicable dependency modes.  For instance
4619  # both Tru64's cc and ICC support -MD to output dependencies as a
4620  # side effect of compilation, but ICC will put the dependencies in
4621  # the current directory while Tru64 will put them in the object
4622  # directory.
4623  mkdir sub
4624
4625  am_cv_CC_dependencies_compiler_type=none
4626  if test "$am_compiler_list" = ""; then
4627     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4628  fi
4629  am__universal=false
4630  case " $depcc " in #(
4631     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4632     esac
4633
4634  for depmode in $am_compiler_list; do
4635    # Setup a source with many dependencies, because some compilers
4636    # like to wrap large dependency lists on column 80 (with \), and
4637    # we should not choose a depcomp mode which is confused by this.
4638    #
4639    # We need to recreate these files for each test, as the compiler may
4640    # overwrite some of them when testing with obscure command lines.
4641    # This happens at least with the AIX C compiler.
4642    : > sub/conftest.c
4643    for i in 1 2 3 4 5 6; do
4644      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4645      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4646      # Solaris 10 /bin/sh.
4647      echo '/* dummy */' > sub/conftst$i.h
4648    done
4649    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4650
4651    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4652    # mode.  It turns out that the SunPro C++ compiler does not properly
4653    # handle '-M -o', and we need to detect this.  Also, some Intel
4654    # versions had trouble with output in subdirs.
4655    am__obj=sub/conftest.${OBJEXT-o}
4656    am__minus_obj="-o $am__obj"
4657    case $depmode in
4658    gcc)
4659      # This depmode causes a compiler race in universal mode.
4660      test "$am__universal" = false || continue
4661      ;;
4662    nosideeffect)
4663      # After this tag, mechanisms are not by side-effect, so they'll
4664      # only be used when explicitly requested.
4665      if test "x$enable_dependency_tracking" = xyes; then
4666	continue
4667      else
4668	break
4669      fi
4670      ;;
4671    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4672      # This compiler won't grok '-c -o', but also, the minuso test has
4673      # not run yet.  These depmodes are late enough in the game, and
4674      # so weak that their functioning should not be impacted.
4675      am__obj=conftest.${OBJEXT-o}
4676      am__minus_obj=
4677      ;;
4678    none) break ;;
4679    esac
4680    if depmode=$depmode \
4681       source=sub/conftest.c object=$am__obj \
4682       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4683       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4684         >/dev/null 2>conftest.err &&
4685       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4686       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4688       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689      # icc doesn't choke on unknown options, it will just issue warnings
4690      # or remarks (even with -Werror).  So we grep stderr for any message
4691      # that says an option was ignored or not supported.
4692      # When given -MP, icc 7.0 and 7.1 complain thusly:
4693      #   icc: Command line warning: ignoring option '-M'; no argument required
4694      # The diagnosis changed in icc 8.0:
4695      #   icc: Command line remark: option '-MP' not supported
4696      if (grep 'ignoring option' conftest.err ||
4697          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698        am_cv_CC_dependencies_compiler_type=$depmode
4699        break
4700      fi
4701    fi
4702  done
4703
4704  cd ..
4705  rm -rf conftest.dir
4706else
4707  am_cv_CC_dependencies_compiler_type=none
4708fi
4709
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4712$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4713CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4714
4715 if
4716  test "x$enable_dependency_tracking" != xno \
4717  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4718  am__fastdepCC_TRUE=
4719  am__fastdepCC_FALSE='#'
4720else
4721  am__fastdepCC_TRUE='#'
4722  am__fastdepCC_FALSE=
4723fi
4724
4725
4726ac_ext=cpp
4727ac_cpp='$CXXCPP $CPPFLAGS'
4728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4731if test -z "$CXX"; then
4732  if test -n "$CCC"; then
4733    CXX=$CCC
4734  else
4735    if test -n "$ac_tool_prefix"; then
4736  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4737  do
4738    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741$as_echo_n "checking for $ac_word... " >&6; }
4742if ${ac_cv_prog_CXX+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  if test -n "$CXX"; then
4746  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751  IFS=$as_save_IFS
4752  test -z "$as_dir" && as_dir=.
4753    for ac_exec_ext in '' $ac_executable_extensions; do
4754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757    break 2
4758  fi
4759done
4760  done
4761IFS=$as_save_IFS
4762
4763fi
4764fi
4765CXX=$ac_cv_prog_CXX
4766if test -n "$CXX"; then
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4768$as_echo "$CXX" >&6; }
4769else
4770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772fi
4773
4774
4775    test -n "$CXX" && break
4776  done
4777fi
4778if test -z "$CXX"; then
4779  ac_ct_CXX=$CXX
4780  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4781do
4782  # Extract the first word of "$ac_prog", so it can be a program name with args.
4783set dummy $ac_prog; ac_word=$2
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785$as_echo_n "checking for $ac_word... " >&6; }
4786if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  if test -n "$ac_ct_CXX"; then
4790  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_ac_ct_CXX="$ac_prog"
4800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4810if test -n "$ac_ct_CXX"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4812$as_echo "$ac_ct_CXX" >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819  test -n "$ac_ct_CXX" && break
4820done
4821
4822  if test "x$ac_ct_CXX" = x; then
4823    CXX="g++"
4824  else
4825    case $cross_compiling:$ac_tool_warned in
4826yes:)
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829ac_tool_warned=yes ;;
4830esac
4831    CXX=$ac_ct_CXX
4832  fi
4833fi
4834
4835  fi
4836fi
4837# Provide some information about the compiler.
4838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4839set X $ac_compile
4840ac_compiler=$2
4841for ac_option in --version -v -V -qversion; do
4842  { { ac_try="$ac_compiler $ac_option >&5"
4843case "(($ac_try" in
4844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845  *) ac_try_echo=$ac_try;;
4846esac
4847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848$as_echo "$ac_try_echo"; } >&5
4849  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4850  ac_status=$?
4851  if test -s conftest.err; then
4852    sed '10a\
4853... rest of stderr output deleted ...
4854         10q' conftest.err >conftest.er1
4855    cat conftest.er1 >&5
4856  fi
4857  rm -f conftest.er1 conftest.err
4858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4859  test $ac_status = 0; }
4860done
4861
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4863$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4864if ${ac_cv_cxx_compiler_gnu+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h.  */
4869
4870int
4871main ()
4872{
4873#ifndef __GNUC__
4874       choke me
4875#endif
4876
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881if ac_fn_cxx_try_compile "$LINENO"; then :
4882  ac_compiler_gnu=yes
4883else
4884  ac_compiler_gnu=no
4885fi
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4888
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4891$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4892if test $ac_compiler_gnu = yes; then
4893  GXX=yes
4894else
4895  GXX=
4896fi
4897ac_test_CXXFLAGS=${CXXFLAGS+set}
4898ac_save_CXXFLAGS=$CXXFLAGS
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4900$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4901if ${ac_cv_prog_cxx_g+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4905   ac_cxx_werror_flag=yes
4906   ac_cv_prog_cxx_g=no
4907   CXXFLAGS="-g"
4908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h.  */
4910
4911int
4912main ()
4913{
4914
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919if ac_fn_cxx_try_compile "$LINENO"; then :
4920  ac_cv_prog_cxx_g=yes
4921else
4922  CXXFLAGS=""
4923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925
4926int
4927main ()
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934if ac_fn_cxx_try_compile "$LINENO"; then :
4935
4936else
4937  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4938	 CXXFLAGS="-g"
4939	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h.  */
4941
4942int
4943main ()
4944{
4945
4946  ;
4947  return 0;
4948}
4949_ACEOF
4950if ac_fn_cxx_try_compile "$LINENO"; then :
4951  ac_cv_prog_cxx_g=yes
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4961$as_echo "$ac_cv_prog_cxx_g" >&6; }
4962if test "$ac_test_CXXFLAGS" = set; then
4963  CXXFLAGS=$ac_save_CXXFLAGS
4964elif test $ac_cv_prog_cxx_g = yes; then
4965  if test "$GXX" = yes; then
4966    CXXFLAGS="-g -O2"
4967  else
4968    CXXFLAGS="-g"
4969  fi
4970else
4971  if test "$GXX" = yes; then
4972    CXXFLAGS="-O2"
4973  else
4974    CXXFLAGS=
4975  fi
4976fi
4977ac_ext=cpp
4978ac_cpp='$CXXCPP $CPPFLAGS'
4979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4982
4983depcc="$CXX"  am_compiler_list=
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4986$as_echo_n "checking dependency style of $depcc... " >&6; }
4987if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4991  # We make a subdir and do the tests there.  Otherwise we can end up
4992  # making bogus files that we don't know about and never remove.  For
4993  # instance it was reported that on HP-UX the gcc test will end up
4994  # making a dummy file named 'D' -- because '-MD' means "put the output
4995  # in D".
4996  rm -rf conftest.dir
4997  mkdir conftest.dir
4998  # Copy depcomp to subdir because otherwise we won't find it if we're
4999  # using a relative directory.
5000  cp "$am_depcomp" conftest.dir
5001  cd conftest.dir
5002  # We will build objects and dependencies in a subdirectory because
5003  # it helps to detect inapplicable dependency modes.  For instance
5004  # both Tru64's cc and ICC support -MD to output dependencies as a
5005  # side effect of compilation, but ICC will put the dependencies in
5006  # the current directory while Tru64 will put them in the object
5007  # directory.
5008  mkdir sub
5009
5010  am_cv_CXX_dependencies_compiler_type=none
5011  if test "$am_compiler_list" = ""; then
5012     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5013  fi
5014  am__universal=false
5015  case " $depcc " in #(
5016     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5017     esac
5018
5019  for depmode in $am_compiler_list; do
5020    # Setup a source with many dependencies, because some compilers
5021    # like to wrap large dependency lists on column 80 (with \), and
5022    # we should not choose a depcomp mode which is confused by this.
5023    #
5024    # We need to recreate these files for each test, as the compiler may
5025    # overwrite some of them when testing with obscure command lines.
5026    # This happens at least with the AIX C compiler.
5027    : > sub/conftest.c
5028    for i in 1 2 3 4 5 6; do
5029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5030      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5031      # Solaris 10 /bin/sh.
5032      echo '/* dummy */' > sub/conftst$i.h
5033    done
5034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5035
5036    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5037    # mode.  It turns out that the SunPro C++ compiler does not properly
5038    # handle '-M -o', and we need to detect this.  Also, some Intel
5039    # versions had trouble with output in subdirs.
5040    am__obj=sub/conftest.${OBJEXT-o}
5041    am__minus_obj="-o $am__obj"
5042    case $depmode in
5043    gcc)
5044      # This depmode causes a compiler race in universal mode.
5045      test "$am__universal" = false || continue
5046      ;;
5047    nosideeffect)
5048      # After this tag, mechanisms are not by side-effect, so they'll
5049      # only be used when explicitly requested.
5050      if test "x$enable_dependency_tracking" = xyes; then
5051	continue
5052      else
5053	break
5054      fi
5055      ;;
5056    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5057      # This compiler won't grok '-c -o', but also, the minuso test has
5058      # not run yet.  These depmodes are late enough in the game, and
5059      # so weak that their functioning should not be impacted.
5060      am__obj=conftest.${OBJEXT-o}
5061      am__minus_obj=
5062      ;;
5063    none) break ;;
5064    esac
5065    if depmode=$depmode \
5066       source=sub/conftest.c object=$am__obj \
5067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5068       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5069         >/dev/null 2>conftest.err &&
5070       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5071       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5072       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5073       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5074      # icc doesn't choke on unknown options, it will just issue warnings
5075      # or remarks (even with -Werror).  So we grep stderr for any message
5076      # that says an option was ignored or not supported.
5077      # When given -MP, icc 7.0 and 7.1 complain thusly:
5078      #   icc: Command line warning: ignoring option '-M'; no argument required
5079      # The diagnosis changed in icc 8.0:
5080      #   icc: Command line remark: option '-MP' not supported
5081      if (grep 'ignoring option' conftest.err ||
5082          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5083        am_cv_CXX_dependencies_compiler_type=$depmode
5084        break
5085      fi
5086    fi
5087  done
5088
5089  cd ..
5090  rm -rf conftest.dir
5091else
5092  am_cv_CXX_dependencies_compiler_type=none
5093fi
5094
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5097$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5098CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5099
5100 if
5101  test "x$enable_dependency_tracking" != xno \
5102  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5103  am__fastdepCXX_TRUE=
5104  am__fastdepCXX_FALSE='#'
5105else
5106  am__fastdepCXX_TRUE='#'
5107  am__fastdepCXX_FALSE=
5108fi
5109
5110
5111
5112  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5113  ac_ext=cpp
5114ac_cpp='$CXXCPP $CPPFLAGS'
5115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118  ac_success=no
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5120$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5121if ${ax_cv_cxx_compile_cxx11+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126
5127
5128// If the compiler admits that it is not ready for C++11, why torture it?
5129// Hopefully, this will speed up the test.
5130
5131#ifndef __cplusplus
5132
5133#error "This is not a C++ compiler"
5134
5135#elif __cplusplus < 201103L
5136
5137#error "This is not a C++11 compiler"
5138
5139#else
5140
5141namespace cxx11
5142{
5143
5144  namespace test_static_assert
5145  {
5146
5147    template <typename T>
5148    struct check
5149    {
5150      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5151    };
5152
5153  }
5154
5155  namespace test_final_override
5156  {
5157
5158    struct Base
5159    {
5160      virtual void f() {}
5161    };
5162
5163    struct Derived : public Base
5164    {
5165      virtual void f() override {}
5166    };
5167
5168  }
5169
5170  namespace test_double_right_angle_brackets
5171  {
5172
5173    template < typename T >
5174    struct check {};
5175
5176    typedef check<void> single_type;
5177    typedef check<check<void>> double_type;
5178    typedef check<check<check<void>>> triple_type;
5179    typedef check<check<check<check<void>>>> quadruple_type;
5180
5181  }
5182
5183  namespace test_decltype
5184  {
5185
5186    int
5187    f()
5188    {
5189      int a = 1;
5190      decltype(a) b = 2;
5191      return a + b;
5192    }
5193
5194  }
5195
5196  namespace test_type_deduction
5197  {
5198
5199    template < typename T1, typename T2 >
5200    struct is_same
5201    {
5202      static const bool value = false;
5203    };
5204
5205    template < typename T >
5206    struct is_same<T, T>
5207    {
5208      static const bool value = true;
5209    };
5210
5211    template < typename T1, typename T2 >
5212    auto
5213    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5214    {
5215      return a1 + a2;
5216    }
5217
5218    int
5219    test(const int c, volatile int v)
5220    {
5221      static_assert(is_same<int, decltype(0)>::value == true, "");
5222      static_assert(is_same<int, decltype(c)>::value == false, "");
5223      static_assert(is_same<int, decltype(v)>::value == false, "");
5224      auto ac = c;
5225      auto av = v;
5226      auto sumi = ac + av + 'x';
5227      auto sumf = ac + av + 1.0;
5228      static_assert(is_same<int, decltype(ac)>::value == true, "");
5229      static_assert(is_same<int, decltype(av)>::value == true, "");
5230      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5231      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5232      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5233      return (sumf > 0.0) ? sumi : add(c, v);
5234    }
5235
5236  }
5237
5238  namespace test_noexcept
5239  {
5240
5241    int f() { return 0; }
5242    int g() noexcept { return 0; }
5243
5244    static_assert(noexcept(f()) == false, "");
5245    static_assert(noexcept(g()) == true, "");
5246
5247  }
5248
5249  namespace test_constexpr
5250  {
5251
5252    template < typename CharT >
5253    unsigned long constexpr
5254    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5255    {
5256      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5257    }
5258
5259    template < typename CharT >
5260    unsigned long constexpr
5261    strlen_c(const CharT *const s) noexcept
5262    {
5263      return strlen_c_r(s, 0UL);
5264    }
5265
5266    static_assert(strlen_c("") == 0UL, "");
5267    static_assert(strlen_c("1") == 1UL, "");
5268    static_assert(strlen_c("example") == 7UL, "");
5269    static_assert(strlen_c("another\0example") == 7UL, "");
5270
5271  }
5272
5273  namespace test_rvalue_references
5274  {
5275
5276    template < int N >
5277    struct answer
5278    {
5279      static constexpr int value = N;
5280    };
5281
5282    answer<1> f(int&)       { return answer<1>(); }
5283    answer<2> f(const int&) { return answer<2>(); }
5284    answer<3> f(int&&)      { return answer<3>(); }
5285
5286    void
5287    test()
5288    {
5289      int i = 0;
5290      const int c = 0;
5291      static_assert(decltype(f(i))::value == 1, "");
5292      static_assert(decltype(f(c))::value == 2, "");
5293      static_assert(decltype(f(0))::value == 3, "");
5294    }
5295
5296  }
5297
5298  namespace test_uniform_initialization
5299  {
5300
5301    struct test
5302    {
5303      static const int zero {};
5304      static const int one {1};
5305    };
5306
5307    static_assert(test::zero == 0, "");
5308    static_assert(test::one == 1, "");
5309
5310  }
5311
5312  namespace test_lambdas
5313  {
5314
5315    void
5316    test1()
5317    {
5318      auto lambda1 = [](){};
5319      auto lambda2 = lambda1;
5320      lambda1();
5321      lambda2();
5322    }
5323
5324    int
5325    test2()
5326    {
5327      auto a = [](int i, int j){ return i + j; }(1, 2);
5328      auto b = []() -> int { return '0'; }();
5329      auto c = [=](){ return a + b; }();
5330      auto d = [&](){ return c; }();
5331      auto e = [a, &b](int x) mutable {
5332        const auto identity = [](int y){ return y; };
5333        for (auto i = 0; i < a; ++i)
5334          a += b--;
5335        return x + identity(a + b);
5336      }(0);
5337      return a + b + c + d + e;
5338    }
5339
5340    int
5341    test3()
5342    {
5343      const auto nullary = [](){ return 0; };
5344      const auto unary = [](int x){ return x; };
5345      using nullary_t = decltype(nullary);
5346      using unary_t = decltype(unary);
5347      const auto higher1st = [](nullary_t f){ return f(); };
5348      const auto higher2nd = [unary](nullary_t f1){
5349        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5350      };
5351      return higher1st(nullary) + higher2nd(nullary)(unary);
5352    }
5353
5354  }
5355
5356  namespace test_variadic_templates
5357  {
5358
5359    template <int...>
5360    struct sum;
5361
5362    template <int N0, int... N1toN>
5363    struct sum<N0, N1toN...>
5364    {
5365      static constexpr auto value = N0 + sum<N1toN...>::value;
5366    };
5367
5368    template <>
5369    struct sum<>
5370    {
5371      static constexpr auto value = 0;
5372    };
5373
5374    static_assert(sum<>::value == 0, "");
5375    static_assert(sum<1>::value == 1, "");
5376    static_assert(sum<23>::value == 23, "");
5377    static_assert(sum<1, 2>::value == 3, "");
5378    static_assert(sum<5, 5, 11>::value == 21, "");
5379    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5380
5381  }
5382
5383  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5384  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5385  // because of this.
5386  namespace test_template_alias_sfinae
5387  {
5388
5389    struct foo {};
5390
5391    template<typename T>
5392    using member = typename T::member_type;
5393
5394    template<typename T>
5395    void func(...) {}
5396
5397    template<typename T>
5398    void func(member<T>*) {}
5399
5400    void test();
5401
5402    void test() { func<foo>(0); }
5403
5404  }
5405
5406}  // namespace cxx11
5407
5408#endif  // __cplusplus >= 201103L
5409
5410
5411
5412_ACEOF
5413if ac_fn_cxx_try_compile "$LINENO"; then :
5414  ax_cv_cxx_compile_cxx11=yes
5415else
5416  ax_cv_cxx_compile_cxx11=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5421$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5422  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5423    ac_success=yes
5424  fi
5425
5426
5427
5428    if test x$ac_success = xno; then
5429                for alternative in ${ax_cxx_compile_alternatives}; do
5430      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5431        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5433$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5434if eval \${$cachevar+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  ac_save_CXX="$CXX"
5438           CXX="$CXX $switch"
5439           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441
5442
5443// If the compiler admits that it is not ready for C++11, why torture it?
5444// Hopefully, this will speed up the test.
5445
5446#ifndef __cplusplus
5447
5448#error "This is not a C++ compiler"
5449
5450#elif __cplusplus < 201103L
5451
5452#error "This is not a C++11 compiler"
5453
5454#else
5455
5456namespace cxx11
5457{
5458
5459  namespace test_static_assert
5460  {
5461
5462    template <typename T>
5463    struct check
5464    {
5465      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5466    };
5467
5468  }
5469
5470  namespace test_final_override
5471  {
5472
5473    struct Base
5474    {
5475      virtual void f() {}
5476    };
5477
5478    struct Derived : public Base
5479    {
5480      virtual void f() override {}
5481    };
5482
5483  }
5484
5485  namespace test_double_right_angle_brackets
5486  {
5487
5488    template < typename T >
5489    struct check {};
5490
5491    typedef check<void> single_type;
5492    typedef check<check<void>> double_type;
5493    typedef check<check<check<void>>> triple_type;
5494    typedef check<check<check<check<void>>>> quadruple_type;
5495
5496  }
5497
5498  namespace test_decltype
5499  {
5500
5501    int
5502    f()
5503    {
5504      int a = 1;
5505      decltype(a) b = 2;
5506      return a + b;
5507    }
5508
5509  }
5510
5511  namespace test_type_deduction
5512  {
5513
5514    template < typename T1, typename T2 >
5515    struct is_same
5516    {
5517      static const bool value = false;
5518    };
5519
5520    template < typename T >
5521    struct is_same<T, T>
5522    {
5523      static const bool value = true;
5524    };
5525
5526    template < typename T1, typename T2 >
5527    auto
5528    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5529    {
5530      return a1 + a2;
5531    }
5532
5533    int
5534    test(const int c, volatile int v)
5535    {
5536      static_assert(is_same<int, decltype(0)>::value == true, "");
5537      static_assert(is_same<int, decltype(c)>::value == false, "");
5538      static_assert(is_same<int, decltype(v)>::value == false, "");
5539      auto ac = c;
5540      auto av = v;
5541      auto sumi = ac + av + 'x';
5542      auto sumf = ac + av + 1.0;
5543      static_assert(is_same<int, decltype(ac)>::value == true, "");
5544      static_assert(is_same<int, decltype(av)>::value == true, "");
5545      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5546      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5547      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5548      return (sumf > 0.0) ? sumi : add(c, v);
5549    }
5550
5551  }
5552
5553  namespace test_noexcept
5554  {
5555
5556    int f() { return 0; }
5557    int g() noexcept { return 0; }
5558
5559    static_assert(noexcept(f()) == false, "");
5560    static_assert(noexcept(g()) == true, "");
5561
5562  }
5563
5564  namespace test_constexpr
5565  {
5566
5567    template < typename CharT >
5568    unsigned long constexpr
5569    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5570    {
5571      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5572    }
5573
5574    template < typename CharT >
5575    unsigned long constexpr
5576    strlen_c(const CharT *const s) noexcept
5577    {
5578      return strlen_c_r(s, 0UL);
5579    }
5580
5581    static_assert(strlen_c("") == 0UL, "");
5582    static_assert(strlen_c("1") == 1UL, "");
5583    static_assert(strlen_c("example") == 7UL, "");
5584    static_assert(strlen_c("another\0example") == 7UL, "");
5585
5586  }
5587
5588  namespace test_rvalue_references
5589  {
5590
5591    template < int N >
5592    struct answer
5593    {
5594      static constexpr int value = N;
5595    };
5596
5597    answer<1> f(int&)       { return answer<1>(); }
5598    answer<2> f(const int&) { return answer<2>(); }
5599    answer<3> f(int&&)      { return answer<3>(); }
5600
5601    void
5602    test()
5603    {
5604      int i = 0;
5605      const int c = 0;
5606      static_assert(decltype(f(i))::value == 1, "");
5607      static_assert(decltype(f(c))::value == 2, "");
5608      static_assert(decltype(f(0))::value == 3, "");
5609    }
5610
5611  }
5612
5613  namespace test_uniform_initialization
5614  {
5615
5616    struct test
5617    {
5618      static const int zero {};
5619      static const int one {1};
5620    };
5621
5622    static_assert(test::zero == 0, "");
5623    static_assert(test::one == 1, "");
5624
5625  }
5626
5627  namespace test_lambdas
5628  {
5629
5630    void
5631    test1()
5632    {
5633      auto lambda1 = [](){};
5634      auto lambda2 = lambda1;
5635      lambda1();
5636      lambda2();
5637    }
5638
5639    int
5640    test2()
5641    {
5642      auto a = [](int i, int j){ return i + j; }(1, 2);
5643      auto b = []() -> int { return '0'; }();
5644      auto c = [=](){ return a + b; }();
5645      auto d = [&](){ return c; }();
5646      auto e = [a, &b](int x) mutable {
5647        const auto identity = [](int y){ return y; };
5648        for (auto i = 0; i < a; ++i)
5649          a += b--;
5650        return x + identity(a + b);
5651      }(0);
5652      return a + b + c + d + e;
5653    }
5654
5655    int
5656    test3()
5657    {
5658      const auto nullary = [](){ return 0; };
5659      const auto unary = [](int x){ return x; };
5660      using nullary_t = decltype(nullary);
5661      using unary_t = decltype(unary);
5662      const auto higher1st = [](nullary_t f){ return f(); };
5663      const auto higher2nd = [unary](nullary_t f1){
5664        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5665      };
5666      return higher1st(nullary) + higher2nd(nullary)(unary);
5667    }
5668
5669  }
5670
5671  namespace test_variadic_templates
5672  {
5673
5674    template <int...>
5675    struct sum;
5676
5677    template <int N0, int... N1toN>
5678    struct sum<N0, N1toN...>
5679    {
5680      static constexpr auto value = N0 + sum<N1toN...>::value;
5681    };
5682
5683    template <>
5684    struct sum<>
5685    {
5686      static constexpr auto value = 0;
5687    };
5688
5689    static_assert(sum<>::value == 0, "");
5690    static_assert(sum<1>::value == 1, "");
5691    static_assert(sum<23>::value == 23, "");
5692    static_assert(sum<1, 2>::value == 3, "");
5693    static_assert(sum<5, 5, 11>::value == 21, "");
5694    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5695
5696  }
5697
5698  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5699  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5700  // because of this.
5701  namespace test_template_alias_sfinae
5702  {
5703
5704    struct foo {};
5705
5706    template<typename T>
5707    using member = typename T::member_type;
5708
5709    template<typename T>
5710    void func(...) {}
5711
5712    template<typename T>
5713    void func(member<T>*) {}
5714
5715    void test();
5716
5717    void test() { func<foo>(0); }
5718
5719  }
5720
5721}  // namespace cxx11
5722
5723#endif  // __cplusplus >= 201103L
5724
5725
5726
5727_ACEOF
5728if ac_fn_cxx_try_compile "$LINENO"; then :
5729  eval $cachevar=yes
5730else
5731  eval $cachevar=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734           CXX="$ac_save_CXX"
5735fi
5736eval ac_res=\$$cachevar
5737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5738$as_echo "$ac_res" >&6; }
5739        if eval test x\$$cachevar = xyes; then
5740          CXX="$CXX $switch"
5741          if test -n "$CXXCPP" ; then
5742            CXXCPP="$CXXCPP $switch"
5743          fi
5744          ac_success=yes
5745          break
5746        fi
5747      done
5748      if test x$ac_success = xyes; then
5749        break
5750      fi
5751    done
5752  fi
5753  ac_ext=cpp
5754ac_cpp='$CXXCPP $CPPFLAGS'
5755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5758
5759  if test x$ax_cxx_compile_cxx11_required = xtrue; then
5760    if test x$ac_success = xno; then
5761      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5762    fi
5763  fi
5764  if test x$ac_success = xno; then
5765    HAVE_CXX11=0
5766    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5767$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5768  else
5769    HAVE_CXX11=1
5770
5771$as_echo "#define HAVE_CXX11 1" >>confdefs.h
5772
5773  fi
5774
5775
5776
5777
5778# Make sure we can run config.sub.
5779$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5780  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5783$as_echo_n "checking build system type... " >&6; }
5784if ${ac_cv_build+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  ac_build_alias=$build_alias
5788test "x$ac_build_alias" = x &&
5789  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5790test "x$ac_build_alias" = x &&
5791  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5792ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5793  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5794
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5797$as_echo "$ac_cv_build" >&6; }
5798case $ac_cv_build in
5799*-*-*) ;;
5800*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5801esac
5802build=$ac_cv_build
5803ac_save_IFS=$IFS; IFS='-'
5804set x $ac_cv_build
5805shift
5806build_cpu=$1
5807build_vendor=$2
5808shift; shift
5809# Remember, the first character of IFS is used to create $*,
5810# except with old shells:
5811build_os=$*
5812IFS=$ac_save_IFS
5813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5817$as_echo_n "checking host system type... " >&6; }
5818if ${ac_cv_host+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test "x$host_alias" = x; then
5822  ac_cv_host=$ac_cv_build
5823else
5824  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5825    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5826fi
5827
5828fi
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5830$as_echo "$ac_cv_host" >&6; }
5831case $ac_cv_host in
5832*-*-*) ;;
5833*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5834esac
5835host=$ac_cv_host
5836ac_save_IFS=$IFS; IFS='-'
5837set x $ac_cv_host
5838shift
5839host_cpu=$1
5840host_vendor=$2
5841shift; shift
5842# Remember, the first character of IFS is used to create $*,
5843# except with old shells:
5844host_os=$*
5845IFS=$ac_save_IFS
5846case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5847
5848
5849
5850      if test "X$prefix" = "XNONE"; then
5851    acl_final_prefix="$ac_default_prefix"
5852  else
5853    acl_final_prefix="$prefix"
5854  fi
5855  if test "X$exec_prefix" = "XNONE"; then
5856    acl_final_exec_prefix='${prefix}'
5857  else
5858    acl_final_exec_prefix="$exec_prefix"
5859  fi
5860  acl_save_prefix="$prefix"
5861  prefix="$acl_final_prefix"
5862  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5863  prefix="$acl_save_prefix"
5864
5865
5866
5867# Check whether --with-gnu-ld was given.
5868if test "${with_gnu_ld+set}" = set; then :
5869  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5870else
5871  with_gnu_ld=no
5872fi
5873
5874# Prepare PATH_SEPARATOR.
5875# The user is always right.
5876if test "${PATH_SEPARATOR+set}" != set; then
5877  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5878  # contains only /bin. Note that ksh looks also at the FPATH variable,
5879  # so we have to set that as well for the test.
5880  PATH_SEPARATOR=:
5881  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5882    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5883           || PATH_SEPARATOR=';'
5884       }
5885fi
5886
5887ac_prog=ld
5888if test "$GCC" = yes; then
5889  # Check if gcc -print-prog-name=ld gives a path.
5890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5891$as_echo_n "checking for ld used by $CC... " >&6; }
5892  case $host in
5893  *-*-mingw*)
5894    # gcc leaves a trailing carriage return which upsets mingw
5895    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5896  *)
5897    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5898  esac
5899  case $ac_prog in
5900    # Accept absolute paths.
5901    [\\/]* | ?:[\\/]*)
5902      re_direlt='/[^/][^/]*/\.\./'
5903      # Canonicalize the pathname of ld
5904      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5905      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5906        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5907      done
5908      test -z "$LD" && LD="$ac_prog"
5909      ;;
5910  "")
5911    # If it fails, then pretend we aren't using GCC.
5912    ac_prog=ld
5913    ;;
5914  *)
5915    # If it is relative, then search for the first ld in PATH.
5916    with_gnu_ld=unknown
5917    ;;
5918  esac
5919elif test "$with_gnu_ld" = yes; then
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5921$as_echo_n "checking for GNU ld... " >&6; }
5922else
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5924$as_echo_n "checking for non-GNU ld... " >&6; }
5925fi
5926if ${acl_cv_path_LD+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  if test -z "$LD"; then
5930  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931  for ac_dir in $PATH; do
5932    IFS="$acl_save_ifs"
5933    test -z "$ac_dir" && ac_dir=.
5934    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5935      acl_cv_path_LD="$ac_dir/$ac_prog"
5936      # Check to see if the program is GNU ld.  I'd rather use --version,
5937      # but apparently some variants of GNU ld only accept -v.
5938      # Break only if it was the GNU/non-GNU ld that we prefer.
5939      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5940      *GNU* | *'with BFD'*)
5941        test "$with_gnu_ld" != no && break
5942        ;;
5943      *)
5944        test "$with_gnu_ld" != yes && break
5945        ;;
5946      esac
5947    fi
5948  done
5949  IFS="$acl_save_ifs"
5950else
5951  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5952fi
5953fi
5954
5955LD="$acl_cv_path_LD"
5956if test -n "$LD"; then
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5958$as_echo "$LD" >&6; }
5959else
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5965$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5966if ${acl_cv_prog_gnu_ld+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5970case `$LD -v 2>&1 </dev/null` in
5971*GNU* | *'with BFD'*)
5972  acl_cv_prog_gnu_ld=yes
5973  ;;
5974*)
5975  acl_cv_prog_gnu_ld=no
5976  ;;
5977esac
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5980$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5981with_gnu_ld=$acl_cv_prog_gnu_ld
5982
5983
5984
5985
5986                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5987$as_echo_n "checking for shared library run path origin... " >&6; }
5988if ${acl_cv_rpath+:} false; then :
5989  $as_echo_n "(cached) " >&6
5990else
5991
5992    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5993    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5994    . ./conftest.sh
5995    rm -f ./conftest.sh
5996    acl_cv_rpath=done
5997
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6000$as_echo "$acl_cv_rpath" >&6; }
6001  wl="$acl_cv_wl"
6002  acl_libext="$acl_cv_libext"
6003  acl_shlibext="$acl_cv_shlibext"
6004  acl_libname_spec="$acl_cv_libname_spec"
6005  acl_library_names_spec="$acl_cv_library_names_spec"
6006  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6007  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6008  acl_hardcode_direct="$acl_cv_hardcode_direct"
6009  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6010    # Check whether --enable-rpath was given.
6011if test "${enable_rpath+set}" = set; then :
6012  enableval=$enable_rpath; :
6013else
6014  enable_rpath=yes
6015fi
6016
6017
6018ac_ext=cpp
6019ac_cpp='$CXXCPP $CPPFLAGS'
6020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6024$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6025if test -z "$CXXCPP"; then
6026  if ${ac_cv_prog_CXXCPP+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029      # Double quotes because CXXCPP needs to be expanded
6030    for CXXCPP in "$CXX -E" "/lib/cpp"
6031    do
6032      ac_preproc_ok=false
6033for ac_cxx_preproc_warn_flag in '' yes
6034do
6035  # Use a header file that comes with gcc, so configuring glibc
6036  # with a fresh cross-compiler works.
6037  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6038  # <limits.h> exists even on freestanding compilers.
6039  # On the NeXT, cc -E runs the code through the compiler's parser,
6040  # not just through cpp. "Syntax error" is here to catch this case.
6041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043#ifdef __STDC__
6044# include <limits.h>
6045#else
6046# include <assert.h>
6047#endif
6048		     Syntax error
6049_ACEOF
6050if ac_fn_cxx_try_cpp "$LINENO"; then :
6051
6052else
6053  # Broken: fails on valid input.
6054continue
6055fi
6056rm -f conftest.err conftest.i conftest.$ac_ext
6057
6058  # OK, works on sane cases.  Now check whether nonexistent headers
6059  # can be detected and how.
6060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062#include <ac_nonexistent.h>
6063_ACEOF
6064if ac_fn_cxx_try_cpp "$LINENO"; then :
6065  # Broken: success on invalid input.
6066continue
6067else
6068  # Passes both tests.
6069ac_preproc_ok=:
6070break
6071fi
6072rm -f conftest.err conftest.i conftest.$ac_ext
6073
6074done
6075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076rm -f conftest.i conftest.err conftest.$ac_ext
6077if $ac_preproc_ok; then :
6078  break
6079fi
6080
6081    done
6082    ac_cv_prog_CXXCPP=$CXXCPP
6083
6084fi
6085  CXXCPP=$ac_cv_prog_CXXCPP
6086else
6087  ac_cv_prog_CXXCPP=$CXXCPP
6088fi
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6090$as_echo "$CXXCPP" >&6; }
6091ac_preproc_ok=false
6092for ac_cxx_preproc_warn_flag in '' yes
6093do
6094  # Use a header file that comes with gcc, so configuring glibc
6095  # with a fresh cross-compiler works.
6096  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6097  # <limits.h> exists even on freestanding compilers.
6098  # On the NeXT, cc -E runs the code through the compiler's parser,
6099  # not just through cpp. "Syntax error" is here to catch this case.
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102#ifdef __STDC__
6103# include <limits.h>
6104#else
6105# include <assert.h>
6106#endif
6107		     Syntax error
6108_ACEOF
6109if ac_fn_cxx_try_cpp "$LINENO"; then :
6110
6111else
6112  # Broken: fails on valid input.
6113continue
6114fi
6115rm -f conftest.err conftest.i conftest.$ac_ext
6116
6117  # OK, works on sane cases.  Now check whether nonexistent headers
6118  # can be detected and how.
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121#include <ac_nonexistent.h>
6122_ACEOF
6123if ac_fn_cxx_try_cpp "$LINENO"; then :
6124  # Broken: success on invalid input.
6125continue
6126else
6127  # Passes both tests.
6128ac_preproc_ok=:
6129break
6130fi
6131rm -f conftest.err conftest.i conftest.$ac_ext
6132
6133done
6134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6135rm -f conftest.i conftest.err conftest.$ac_ext
6136if $ac_preproc_ok; then :
6137
6138else
6139  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6141as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6142See \`config.log' for more details" "$LINENO" 5; }
6143fi
6144
6145ac_ext=cpp
6146ac_cpp='$CXXCPP $CPPFLAGS'
6147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150
6151
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6153$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6154if ${ac_cv_path_GREP+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  if test -z "$GREP"; then
6158  ac_path_GREP_found=false
6159  # Loop through the user's path and test for each of PROGNAME-LIST
6160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165    for ac_prog in grep ggrep; do
6166    for ac_exec_ext in '' $ac_executable_extensions; do
6167      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6168      as_fn_executable_p "$ac_path_GREP" || continue
6169# Check for GNU ac_path_GREP and select it if it is found.
6170  # Check for GNU $ac_path_GREP
6171case `"$ac_path_GREP" --version 2>&1` in
6172*GNU*)
6173  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6174*)
6175  ac_count=0
6176  $as_echo_n 0123456789 >"conftest.in"
6177  while :
6178  do
6179    cat "conftest.in" "conftest.in" >"conftest.tmp"
6180    mv "conftest.tmp" "conftest.in"
6181    cp "conftest.in" "conftest.nl"
6182    $as_echo 'GREP' >> "conftest.nl"
6183    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6185    as_fn_arith $ac_count + 1 && ac_count=$as_val
6186    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6187      # Best one so far, save it but keep looking for a better one
6188      ac_cv_path_GREP="$ac_path_GREP"
6189      ac_path_GREP_max=$ac_count
6190    fi
6191    # 10*(2^10) chars as input seems more than enough
6192    test $ac_count -gt 10 && break
6193  done
6194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6195esac
6196
6197      $ac_path_GREP_found && break 3
6198    done
6199  done
6200  done
6201IFS=$as_save_IFS
6202  if test -z "$ac_cv_path_GREP"; then
6203    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6204  fi
6205else
6206  ac_cv_path_GREP=$GREP
6207fi
6208
6209fi
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6211$as_echo "$ac_cv_path_GREP" >&6; }
6212 GREP="$ac_cv_path_GREP"
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6216$as_echo_n "checking for egrep... " >&6; }
6217if ${ac_cv_path_EGREP+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6221   then ac_cv_path_EGREP="$GREP -E"
6222   else
6223     if test -z "$EGREP"; then
6224  ac_path_EGREP_found=false
6225  # Loop through the user's path and test for each of PROGNAME-LIST
6226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231    for ac_prog in egrep; do
6232    for ac_exec_ext in '' $ac_executable_extensions; do
6233      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6234      as_fn_executable_p "$ac_path_EGREP" || continue
6235# Check for GNU ac_path_EGREP and select it if it is found.
6236  # Check for GNU $ac_path_EGREP
6237case `"$ac_path_EGREP" --version 2>&1` in
6238*GNU*)
6239  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6240*)
6241  ac_count=0
6242  $as_echo_n 0123456789 >"conftest.in"
6243  while :
6244  do
6245    cat "conftest.in" "conftest.in" >"conftest.tmp"
6246    mv "conftest.tmp" "conftest.in"
6247    cp "conftest.in" "conftest.nl"
6248    $as_echo 'EGREP' >> "conftest.nl"
6249    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6250    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6251    as_fn_arith $ac_count + 1 && ac_count=$as_val
6252    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6253      # Best one so far, save it but keep looking for a better one
6254      ac_cv_path_EGREP="$ac_path_EGREP"
6255      ac_path_EGREP_max=$ac_count
6256    fi
6257    # 10*(2^10) chars as input seems more than enough
6258    test $ac_count -gt 10 && break
6259  done
6260  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6261esac
6262
6263      $ac_path_EGREP_found && break 3
6264    done
6265  done
6266  done
6267IFS=$as_save_IFS
6268  if test -z "$ac_cv_path_EGREP"; then
6269    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6270  fi
6271else
6272  ac_cv_path_EGREP=$EGREP
6273fi
6274
6275   fi
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6278$as_echo "$ac_cv_path_EGREP" >&6; }
6279 EGREP="$ac_cv_path_EGREP"
6280
6281
6282
6283
6284  acl_libdirstem=lib
6285  acl_libdirstem2=
6286  case "$host_os" in
6287    solaris*)
6288                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6289$as_echo_n "checking for 64-bit host... " >&6; }
6290if ${gl_cv_solaris_64bit+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h.  */
6295
6296#ifdef _LP64
6297sixtyfour bits
6298#endif
6299
6300_ACEOF
6301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6303  gl_cv_solaris_64bit=yes
6304else
6305  gl_cv_solaris_64bit=no
6306fi
6307rm -f conftest*
6308
6309
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6312$as_echo "$gl_cv_solaris_64bit" >&6; }
6313      if test $gl_cv_solaris_64bit = yes; then
6314        acl_libdirstem=lib/64
6315        case "$host_cpu" in
6316          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6317          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6318        esac
6319      fi
6320      ;;
6321    *)
6322      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6323      if test -n "$searchpath"; then
6324        acl_save_IFS="${IFS= 	}"; IFS=":"
6325        for searchdir in $searchpath; do
6326          if test -d "$searchdir"; then
6327            case "$searchdir" in
6328              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6329              */../ | */.. )
6330                # Better ignore directories of this form. They are misleading.
6331                ;;
6332              *) searchdir=`cd "$searchdir" && pwd`
6333                 case "$searchdir" in
6334                   */lib64 ) acl_libdirstem=lib64 ;;
6335                 esac ;;
6336            esac
6337          fi
6338        done
6339        IFS="$acl_save_IFS"
6340      fi
6341      ;;
6342  esac
6343  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356    use_additional=yes
6357
6358  acl_save_prefix="$prefix"
6359  prefix="$acl_final_prefix"
6360  acl_save_exec_prefix="$exec_prefix"
6361  exec_prefix="$acl_final_exec_prefix"
6362
6363    eval additional_includedir=\"$includedir\"
6364    eval additional_libdir=\"$libdir\"
6365
6366  exec_prefix="$acl_save_exec_prefix"
6367  prefix="$acl_save_prefix"
6368
6369
6370# Check whether --with-libiconv-prefix was given.
6371if test "${with_libiconv_prefix+set}" = set; then :
6372  withval=$with_libiconv_prefix;
6373    if test "X$withval" = "Xno"; then
6374      use_additional=no
6375    else
6376      if test "X$withval" = "X"; then
6377
6378  acl_save_prefix="$prefix"
6379  prefix="$acl_final_prefix"
6380  acl_save_exec_prefix="$exec_prefix"
6381  exec_prefix="$acl_final_exec_prefix"
6382
6383          eval additional_includedir=\"$includedir\"
6384          eval additional_libdir=\"$libdir\"
6385
6386  exec_prefix="$acl_save_exec_prefix"
6387  prefix="$acl_save_prefix"
6388
6389      else
6390        additional_includedir="$withval/include"
6391        additional_libdir="$withval/$acl_libdirstem"
6392        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6393           && ! test -d "$withval/$acl_libdirstem"; then
6394          additional_libdir="$withval/$acl_libdirstem2"
6395        fi
6396      fi
6397    fi
6398
6399fi
6400
6401      LIBICONV=
6402  LTLIBICONV=
6403  INCICONV=
6404  LIBICONV_PREFIX=
6405      HAVE_LIBICONV=
6406  rpathdirs=
6407  ltrpathdirs=
6408  names_already_handled=
6409  names_next_round='iconv '
6410  while test -n "$names_next_round"; do
6411    names_this_round="$names_next_round"
6412    names_next_round=
6413    for name in $names_this_round; do
6414      already_handled=
6415      for n in $names_already_handled; do
6416        if test "$n" = "$name"; then
6417          already_handled=yes
6418          break
6419        fi
6420      done
6421      if test -z "$already_handled"; then
6422        names_already_handled="$names_already_handled $name"
6423                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6424        eval value=\"\$HAVE_LIB$uppername\"
6425        if test -n "$value"; then
6426          if test "$value" = yes; then
6427            eval value=\"\$LIB$uppername\"
6428            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6429            eval value=\"\$LTLIB$uppername\"
6430            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6431          else
6432                                    :
6433          fi
6434        else
6435                              found_dir=
6436          found_la=
6437          found_so=
6438          found_a=
6439          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6440          if test -n "$acl_shlibext"; then
6441            shrext=".$acl_shlibext"             # typically: shrext=.so
6442          else
6443            shrext=
6444          fi
6445          if test $use_additional = yes; then
6446            dir="$additional_libdir"
6447                                    if test -n "$acl_shlibext"; then
6448              if test -f "$dir/$libname$shrext"; then
6449                found_dir="$dir"
6450                found_so="$dir/$libname$shrext"
6451              else
6452                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6453                  ver=`(cd "$dir" && \
6454                        for f in "$libname$shrext".*; do echo "$f"; done \
6455                        | sed -e "s,^$libname$shrext\\\\.,," \
6456                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6457                        | sed 1q ) 2>/dev/null`
6458                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6459                    found_dir="$dir"
6460                    found_so="$dir/$libname$shrext.$ver"
6461                  fi
6462                else
6463                  eval library_names=\"$acl_library_names_spec\"
6464                  for f in $library_names; do
6465                    if test -f "$dir/$f"; then
6466                      found_dir="$dir"
6467                      found_so="$dir/$f"
6468                      break
6469                    fi
6470                  done
6471                fi
6472              fi
6473            fi
6474                        if test "X$found_dir" = "X"; then
6475              if test -f "$dir/$libname.$acl_libext"; then
6476                found_dir="$dir"
6477                found_a="$dir/$libname.$acl_libext"
6478              fi
6479            fi
6480            if test "X$found_dir" != "X"; then
6481              if test -f "$dir/$libname.la"; then
6482                found_la="$dir/$libname.la"
6483              fi
6484            fi
6485          fi
6486          if test "X$found_dir" = "X"; then
6487            for x in $LDFLAGS $LTLIBICONV; do
6488
6489  acl_save_prefix="$prefix"
6490  prefix="$acl_final_prefix"
6491  acl_save_exec_prefix="$exec_prefix"
6492  exec_prefix="$acl_final_exec_prefix"
6493  eval x=\"$x\"
6494  exec_prefix="$acl_save_exec_prefix"
6495  prefix="$acl_save_prefix"
6496
6497              case "$x" in
6498                -L*)
6499                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6500                                    if test -n "$acl_shlibext"; then
6501                    if test -f "$dir/$libname$shrext"; then
6502                      found_dir="$dir"
6503                      found_so="$dir/$libname$shrext"
6504                    else
6505                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6506                        ver=`(cd "$dir" && \
6507                              for f in "$libname$shrext".*; do echo "$f"; done \
6508                              | sed -e "s,^$libname$shrext\\\\.,," \
6509                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6510                              | sed 1q ) 2>/dev/null`
6511                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6512                          found_dir="$dir"
6513                          found_so="$dir/$libname$shrext.$ver"
6514                        fi
6515                      else
6516                        eval library_names=\"$acl_library_names_spec\"
6517                        for f in $library_names; do
6518                          if test -f "$dir/$f"; then
6519                            found_dir="$dir"
6520                            found_so="$dir/$f"
6521                            break
6522                          fi
6523                        done
6524                      fi
6525                    fi
6526                  fi
6527                                    if test "X$found_dir" = "X"; then
6528                    if test -f "$dir/$libname.$acl_libext"; then
6529                      found_dir="$dir"
6530                      found_a="$dir/$libname.$acl_libext"
6531                    fi
6532                  fi
6533                  if test "X$found_dir" != "X"; then
6534                    if test -f "$dir/$libname.la"; then
6535                      found_la="$dir/$libname.la"
6536                    fi
6537                  fi
6538                  ;;
6539              esac
6540              if test "X$found_dir" != "X"; then
6541                break
6542              fi
6543            done
6544          fi
6545          if test "X$found_dir" != "X"; then
6546                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6547            if test "X$found_so" != "X"; then
6548                                                        if test "$enable_rpath" = no \
6549                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6550                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6551                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6552              else
6553                                                                                haveit=
6554                for x in $ltrpathdirs; do
6555                  if test "X$x" = "X$found_dir"; then
6556                    haveit=yes
6557                    break
6558                  fi
6559                done
6560                if test -z "$haveit"; then
6561                  ltrpathdirs="$ltrpathdirs $found_dir"
6562                fi
6563                                if test "$acl_hardcode_direct" = yes; then
6564                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6565                else
6566                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6567                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6568                                                            haveit=
6569                    for x in $rpathdirs; do
6570                      if test "X$x" = "X$found_dir"; then
6571                        haveit=yes
6572                        break
6573                      fi
6574                    done
6575                    if test -z "$haveit"; then
6576                      rpathdirs="$rpathdirs $found_dir"
6577                    fi
6578                  else
6579                                                                                haveit=
6580                    for x in $LDFLAGS $LIBICONV; do
6581
6582  acl_save_prefix="$prefix"
6583  prefix="$acl_final_prefix"
6584  acl_save_exec_prefix="$exec_prefix"
6585  exec_prefix="$acl_final_exec_prefix"
6586  eval x=\"$x\"
6587  exec_prefix="$acl_save_exec_prefix"
6588  prefix="$acl_save_prefix"
6589
6590                      if test "X$x" = "X-L$found_dir"; then
6591                        haveit=yes
6592                        break
6593                      fi
6594                    done
6595                    if test -z "$haveit"; then
6596                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6597                    fi
6598                    if test "$acl_hardcode_minus_L" != no; then
6599                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6600                    else
6601                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6602                    fi
6603                  fi
6604                fi
6605              fi
6606            else
6607              if test "X$found_a" != "X"; then
6608                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6609              else
6610                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6611              fi
6612            fi
6613                        additional_includedir=
6614            case "$found_dir" in
6615              */$acl_libdirstem | */$acl_libdirstem/)
6616                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6617                if test "$name" = 'iconv'; then
6618                  LIBICONV_PREFIX="$basedir"
6619                fi
6620                additional_includedir="$basedir/include"
6621                ;;
6622              */$acl_libdirstem2 | */$acl_libdirstem2/)
6623                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6624                if test "$name" = 'iconv'; then
6625                  LIBICONV_PREFIX="$basedir"
6626                fi
6627                additional_includedir="$basedir/include"
6628                ;;
6629            esac
6630            if test "X$additional_includedir" != "X"; then
6631                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6632                haveit=
6633                if test "X$additional_includedir" = "X/usr/local/include"; then
6634                  if test -n "$GCC"; then
6635                    case $host_os in
6636                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6637                    esac
6638                  fi
6639                fi
6640                if test -z "$haveit"; then
6641                  for x in $CPPFLAGS $INCICONV; do
6642
6643  acl_save_prefix="$prefix"
6644  prefix="$acl_final_prefix"
6645  acl_save_exec_prefix="$exec_prefix"
6646  exec_prefix="$acl_final_exec_prefix"
6647  eval x=\"$x\"
6648  exec_prefix="$acl_save_exec_prefix"
6649  prefix="$acl_save_prefix"
6650
6651                    if test "X$x" = "X-I$additional_includedir"; then
6652                      haveit=yes
6653                      break
6654                    fi
6655                  done
6656                  if test -z "$haveit"; then
6657                    if test -d "$additional_includedir"; then
6658                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6659                    fi
6660                  fi
6661                fi
6662              fi
6663            fi
6664                        if test -n "$found_la"; then
6665                                                        save_libdir="$libdir"
6666              case "$found_la" in
6667                */* | *\\*) . "$found_la" ;;
6668                *) . "./$found_la" ;;
6669              esac
6670              libdir="$save_libdir"
6671                            for dep in $dependency_libs; do
6672                case "$dep" in
6673                  -L*)
6674                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6675                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6676                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6677                      haveit=
6678                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6679                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6680                        if test -n "$GCC"; then
6681                          case $host_os in
6682                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6683                          esac
6684                        fi
6685                      fi
6686                      if test -z "$haveit"; then
6687                        haveit=
6688                        for x in $LDFLAGS $LIBICONV; do
6689
6690  acl_save_prefix="$prefix"
6691  prefix="$acl_final_prefix"
6692  acl_save_exec_prefix="$exec_prefix"
6693  exec_prefix="$acl_final_exec_prefix"
6694  eval x=\"$x\"
6695  exec_prefix="$acl_save_exec_prefix"
6696  prefix="$acl_save_prefix"
6697
6698                          if test "X$x" = "X-L$additional_libdir"; then
6699                            haveit=yes
6700                            break
6701                          fi
6702                        done
6703                        if test -z "$haveit"; then
6704                          if test -d "$additional_libdir"; then
6705                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6706                          fi
6707                        fi
6708                        haveit=
6709                        for x in $LDFLAGS $LTLIBICONV; do
6710
6711  acl_save_prefix="$prefix"
6712  prefix="$acl_final_prefix"
6713  acl_save_exec_prefix="$exec_prefix"
6714  exec_prefix="$acl_final_exec_prefix"
6715  eval x=\"$x\"
6716  exec_prefix="$acl_save_exec_prefix"
6717  prefix="$acl_save_prefix"
6718
6719                          if test "X$x" = "X-L$additional_libdir"; then
6720                            haveit=yes
6721                            break
6722                          fi
6723                        done
6724                        if test -z "$haveit"; then
6725                          if test -d "$additional_libdir"; then
6726                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6727                          fi
6728                        fi
6729                      fi
6730                    fi
6731                    ;;
6732                  -R*)
6733                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6734                    if test "$enable_rpath" != no; then
6735                                                                  haveit=
6736                      for x in $rpathdirs; do
6737                        if test "X$x" = "X$dir"; then
6738                          haveit=yes
6739                          break
6740                        fi
6741                      done
6742                      if test -z "$haveit"; then
6743                        rpathdirs="$rpathdirs $dir"
6744                      fi
6745                                                                  haveit=
6746                      for x in $ltrpathdirs; do
6747                        if test "X$x" = "X$dir"; then
6748                          haveit=yes
6749                          break
6750                        fi
6751                      done
6752                      if test -z "$haveit"; then
6753                        ltrpathdirs="$ltrpathdirs $dir"
6754                      fi
6755                    fi
6756                    ;;
6757                  -l*)
6758                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6759                    ;;
6760                  *.la)
6761                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6762                    ;;
6763                  *)
6764                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6765                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6766                    ;;
6767                esac
6768              done
6769            fi
6770          else
6771                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6772            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6773          fi
6774        fi
6775      fi
6776    done
6777  done
6778  if test "X$rpathdirs" != "X"; then
6779    if test -n "$acl_hardcode_libdir_separator"; then
6780                        alldirs=
6781      for found_dir in $rpathdirs; do
6782        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6783      done
6784            acl_save_libdir="$libdir"
6785      libdir="$alldirs"
6786      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6787      libdir="$acl_save_libdir"
6788      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6789    else
6790            for found_dir in $rpathdirs; do
6791        acl_save_libdir="$libdir"
6792        libdir="$found_dir"
6793        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6794        libdir="$acl_save_libdir"
6795        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6796      done
6797    fi
6798  fi
6799  if test "X$ltrpathdirs" != "X"; then
6800            for found_dir in $ltrpathdirs; do
6801      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6802    done
6803  fi
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816          am_save_CPPFLAGS="$CPPFLAGS"
6817
6818  for element in $INCICONV; do
6819    haveit=
6820    for x in $CPPFLAGS; do
6821
6822  acl_save_prefix="$prefix"
6823  prefix="$acl_final_prefix"
6824  acl_save_exec_prefix="$exec_prefix"
6825  exec_prefix="$acl_final_exec_prefix"
6826  eval x=\"$x\"
6827  exec_prefix="$acl_save_exec_prefix"
6828  prefix="$acl_save_prefix"
6829
6830      if test "X$x" = "X$element"; then
6831        haveit=yes
6832        break
6833      fi
6834    done
6835    if test -z "$haveit"; then
6836      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6837    fi
6838  done
6839
6840
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6842$as_echo_n "checking for iconv... " >&6; }
6843if ${am_cv_func_iconv+:} false; then :
6844  $as_echo_n "(cached) " >&6
6845else
6846
6847    am_cv_func_iconv="no, consider installing GNU libiconv"
6848    am_cv_lib_iconv=no
6849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851
6852#include <stdlib.h>
6853#include <iconv.h>
6854
6855int
6856main ()
6857{
6858iconv_t cd = iconv_open("","");
6859           iconv(cd,NULL,NULL,NULL,NULL);
6860           iconv_close(cd);
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_cxx_try_link "$LINENO"; then :
6866  am_cv_func_iconv=yes
6867fi
6868rm -f core conftest.err conftest.$ac_objext \
6869    conftest$ac_exeext conftest.$ac_ext
6870    if test "$am_cv_func_iconv" != yes; then
6871      am_save_LIBS="$LIBS"
6872      LIBS="$LIBS $LIBICONV"
6873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875
6876#include <stdlib.h>
6877#include <iconv.h>
6878
6879int
6880main ()
6881{
6882iconv_t cd = iconv_open("","");
6883             iconv(cd,NULL,NULL,NULL,NULL);
6884             iconv_close(cd);
6885  ;
6886  return 0;
6887}
6888_ACEOF
6889if ac_fn_cxx_try_link "$LINENO"; then :
6890  am_cv_lib_iconv=yes
6891        am_cv_func_iconv=yes
6892fi
6893rm -f core conftest.err conftest.$ac_objext \
6894    conftest$ac_exeext conftest.$ac_ext
6895      LIBS="$am_save_LIBS"
6896    fi
6897
6898fi
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6900$as_echo "$am_cv_func_iconv" >&6; }
6901  if test "$am_cv_func_iconv" = yes; then
6902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6903$as_echo_n "checking for working iconv... " >&6; }
6904if ${am_cv_func_iconv_works+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907
6908                  am_save_LIBS="$LIBS"
6909      if test $am_cv_lib_iconv = yes; then
6910        LIBS="$LIBS $LIBICONV"
6911      fi
6912      if test "$cross_compiling" = yes; then :
6913
6914         case "$host_os" in
6915           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6916           *)            am_cv_func_iconv_works="guessing yes" ;;
6917         esac
6918
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922
6923#include <iconv.h>
6924#include <string.h>
6925int main ()
6926{
6927  int result = 0;
6928  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6929     returns.  */
6930  {
6931    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6932    if (cd_utf8_to_88591 != (iconv_t)(-1))
6933      {
6934        static const char input[] = "\342\202\254"; /* EURO SIGN */
6935        char buf[10];
6936        const char *inptr = input;
6937        size_t inbytesleft = strlen (input);
6938        char *outptr = buf;
6939        size_t outbytesleft = sizeof (buf);
6940        size_t res = iconv (cd_utf8_to_88591,
6941                            (char **) &inptr, &inbytesleft,
6942                            &outptr, &outbytesleft);
6943        if (res == 0)
6944          result |= 1;
6945        iconv_close (cd_utf8_to_88591);
6946      }
6947  }
6948  /* Test against Solaris 10 bug: Failures are not distinguishable from
6949     successful returns.  */
6950  {
6951    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6952    if (cd_ascii_to_88591 != (iconv_t)(-1))
6953      {
6954        static const char input[] = "\263";
6955        char buf[10];
6956        const char *inptr = input;
6957        size_t inbytesleft = strlen (input);
6958        char *outptr = buf;
6959        size_t outbytesleft = sizeof (buf);
6960        size_t res = iconv (cd_ascii_to_88591,
6961                            (char **) &inptr, &inbytesleft,
6962                            &outptr, &outbytesleft);
6963        if (res == 0)
6964          result |= 2;
6965        iconv_close (cd_ascii_to_88591);
6966      }
6967  }
6968  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6969  {
6970    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6971    if (cd_88591_to_utf8 != (iconv_t)(-1))
6972      {
6973        static const char input[] = "\304";
6974        static char buf[2] = { (char)0xDE, (char)0xAD };
6975        const char *inptr = input;
6976        size_t inbytesleft = 1;
6977        char *outptr = buf;
6978        size_t outbytesleft = 1;
6979        size_t res = iconv (cd_88591_to_utf8,
6980                            (char **) &inptr, &inbytesleft,
6981                            &outptr, &outbytesleft);
6982        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6983          result |= 4;
6984        iconv_close (cd_88591_to_utf8);
6985      }
6986  }
6987#if 0 /* This bug could be worked around by the caller.  */
6988  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6989  {
6990    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6991    if (cd_88591_to_utf8 != (iconv_t)(-1))
6992      {
6993        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6994        char buf[50];
6995        const char *inptr = input;
6996        size_t inbytesleft = strlen (input);
6997        char *outptr = buf;
6998        size_t outbytesleft = sizeof (buf);
6999        size_t res = iconv (cd_88591_to_utf8,
7000                            (char **) &inptr, &inbytesleft,
7001                            &outptr, &outbytesleft);
7002        if ((int)res > 0)
7003          result |= 8;
7004        iconv_close (cd_88591_to_utf8);
7005      }
7006  }
7007#endif
7008  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7009     provided.  */
7010  if (/* Try standardized names.  */
7011      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7012      /* Try IRIX, OSF/1 names.  */
7013      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7014      /* Try AIX names.  */
7015      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7016      /* Try HP-UX names.  */
7017      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7018    result |= 16;
7019  return result;
7020}
7021_ACEOF
7022if ac_fn_cxx_try_run "$LINENO"; then :
7023  am_cv_func_iconv_works=yes
7024else
7025  am_cv_func_iconv_works=no
7026fi
7027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7028  conftest.$ac_objext conftest.beam conftest.$ac_ext
7029fi
7030
7031      LIBS="$am_save_LIBS"
7032
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7035$as_echo "$am_cv_func_iconv_works" >&6; }
7036    case "$am_cv_func_iconv_works" in
7037      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7038      *)   am_func_iconv=yes ;;
7039    esac
7040  else
7041    am_func_iconv=no am_cv_lib_iconv=no
7042  fi
7043  if test "$am_func_iconv" = yes; then
7044
7045$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7046
7047  fi
7048  if test "$am_cv_lib_iconv" = yes; then
7049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7050$as_echo_n "checking how to link with libiconv... " >&6; }
7051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7052$as_echo "$LIBICONV" >&6; }
7053  else
7054            CPPFLAGS="$am_save_CPPFLAGS"
7055    LIBICONV=
7056    LTLIBICONV=
7057  fi
7058
7059
7060
7061  if test "$am_cv_func_iconv" = yes; then
7062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7063$as_echo_n "checking for iconv declaration... " >&6; }
7064    if ${am_cv_proto_iconv+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067
7068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070
7071#include <stdlib.h>
7072#include <iconv.h>
7073extern
7074#ifdef __cplusplus
7075"C"
7076#endif
7077#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
7078size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7079#else
7080size_t iconv();
7081#endif
7082
7083int
7084main ()
7085{
7086
7087  ;
7088  return 0;
7089}
7090_ACEOF
7091if ac_fn_cxx_try_compile "$LINENO"; then :
7092  am_cv_proto_iconv_arg1=""
7093else
7094  am_cv_proto_iconv_arg1="const"
7095fi
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7098fi
7099
7100    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7101    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7102         $am_cv_proto_iconv" >&5
7103$as_echo "
7104         $am_cv_proto_iconv" >&6; }
7105
7106cat >>confdefs.h <<_ACEOF
7107#define ICONV_CONST $am_cv_proto_iconv_arg1
7108_ACEOF
7109
7110
7111  fi
7112
7113ac_ext=c
7114ac_cpp='$CPP $CPPFLAGS'
7115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7117ac_compiler_gnu=$ac_cv_c_compiler_gnu
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7119$as_echo_n "checking how to run the C preprocessor... " >&6; }
7120# On Suns, sometimes $CPP names a directory.
7121if test -n "$CPP" && test -d "$CPP"; then
7122  CPP=
7123fi
7124if test -z "$CPP"; then
7125  if ${ac_cv_prog_CPP+:} false; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128      # Double quotes because CPP needs to be expanded
7129    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7130    do
7131      ac_preproc_ok=false
7132for ac_c_preproc_warn_flag in '' yes
7133do
7134  # Use a header file that comes with gcc, so configuring glibc
7135  # with a fresh cross-compiler works.
7136  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137  # <limits.h> exists even on freestanding compilers.
7138  # On the NeXT, cc -E runs the code through the compiler's parser,
7139  # not just through cpp. "Syntax error" is here to catch this case.
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142#ifdef __STDC__
7143# include <limits.h>
7144#else
7145# include <assert.h>
7146#endif
7147		     Syntax error
7148_ACEOF
7149if ac_fn_c_try_cpp "$LINENO"; then :
7150
7151else
7152  # Broken: fails on valid input.
7153continue
7154fi
7155rm -f conftest.err conftest.i conftest.$ac_ext
7156
7157  # OK, works on sane cases.  Now check whether nonexistent headers
7158  # can be detected and how.
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161#include <ac_nonexistent.h>
7162_ACEOF
7163if ac_fn_c_try_cpp "$LINENO"; then :
7164  # Broken: success on invalid input.
7165continue
7166else
7167  # Passes both tests.
7168ac_preproc_ok=:
7169break
7170fi
7171rm -f conftest.err conftest.i conftest.$ac_ext
7172
7173done
7174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7175rm -f conftest.i conftest.err conftest.$ac_ext
7176if $ac_preproc_ok; then :
7177  break
7178fi
7179
7180    done
7181    ac_cv_prog_CPP=$CPP
7182
7183fi
7184  CPP=$ac_cv_prog_CPP
7185else
7186  ac_cv_prog_CPP=$CPP
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7189$as_echo "$CPP" >&6; }
7190ac_preproc_ok=false
7191for ac_c_preproc_warn_flag in '' yes
7192do
7193  # Use a header file that comes with gcc, so configuring glibc
7194  # with a fresh cross-compiler works.
7195  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7196  # <limits.h> exists even on freestanding compilers.
7197  # On the NeXT, cc -E runs the code through the compiler's parser,
7198  # not just through cpp. "Syntax error" is here to catch this case.
7199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h.  */
7201#ifdef __STDC__
7202# include <limits.h>
7203#else
7204# include <assert.h>
7205#endif
7206		     Syntax error
7207_ACEOF
7208if ac_fn_c_try_cpp "$LINENO"; then :
7209
7210else
7211  # Broken: fails on valid input.
7212continue
7213fi
7214rm -f conftest.err conftest.i conftest.$ac_ext
7215
7216  # OK, works on sane cases.  Now check whether nonexistent headers
7217  # can be detected and how.
7218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220#include <ac_nonexistent.h>
7221_ACEOF
7222if ac_fn_c_try_cpp "$LINENO"; then :
7223  # Broken: success on invalid input.
7224continue
7225else
7226  # Passes both tests.
7227ac_preproc_ok=:
7228break
7229fi
7230rm -f conftest.err conftest.i conftest.$ac_ext
7231
7232done
7233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7234rm -f conftest.i conftest.err conftest.$ac_ext
7235if $ac_preproc_ok; then :
7236
7237else
7238  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7240as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7241See \`config.log' for more details" "$LINENO" 5; }
7242fi
7243
7244ac_ext=cpp
7245ac_cpp='$CXXCPP $CPPFLAGS'
7246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7249
7250
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7252$as_echo_n "checking whether ln -s works... " >&6; }
7253LN_S=$as_ln_s
7254if test "$LN_S" = "ln -s"; then
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256$as_echo "yes" >&6; }
7257else
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7259$as_echo "no, using $LN_S" >&6; }
7260fi
7261
7262rm -f conf$$ conf$$.exe conf$$.file
7263if test -d conf$$.dir; then
7264  rm -f conf$$.dir/conf$$.file
7265else
7266  rm -f conf$$.dir
7267  mkdir conf$$.dir 2>/dev/null
7268fi
7269if (echo >conf$$.file) 2>/dev/null; then
7270  if ln -s -r conf$$.file conf$$ 2>/dev/null; then
7271    as_ln_srf='ln -s -r -f'
7272  elif ln -s conf$$.file conf$$ 2>/dev/null; then
7273    as_ln_srf='./ln-srf'
7274    # ... but there are two gotchas:
7275    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7276    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7277    # In both cases, we have to default to `cp -pRf'.
7278    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7279      as_ln_srf='cp -pRf'
7280  elif ln conf$$.file conf$$ 2>/dev/null; then
7281    as_ln_srf=ln
7282  else
7283    as_ln_srf='cp -pRf'
7284  fi
7285else
7286  as_ln_srf='cp -pRf'
7287fi
7288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7289rmdir conf$$.dir 2>/dev/null
7290
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s -r -f works" >&5
7292$as_echo_n "checking whether ln -s -r -f works... " >&6; }
7293LN_SRF=$as_ln_srf
7294if test "$LN_SRF" = "ln -s -r -f"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296$as_echo "yes" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_SRF" >&5
7299$as_echo "no, using $LN_SRF" >&6; }
7300fi
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7303$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7304set x ${MAKE-make}
7305ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7306if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  cat >conftest.make <<\_ACEOF
7310SHELL = /bin/sh
7311all:
7312	@echo '@@@%%%=$(MAKE)=@@@%%%'
7313_ACEOF
7314# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7315case `${MAKE-make} -f conftest.make 2>/dev/null` in
7316  *@@@%%%=?*=@@@%%%*)
7317    eval ac_cv_prog_make_${ac_make}_set=yes;;
7318  *)
7319    eval ac_cv_prog_make_${ac_make}_set=no;;
7320esac
7321rm -f conftest.make
7322fi
7323if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325$as_echo "yes" >&6; }
7326  SET_MAKE=
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330  SET_MAKE="MAKE=${MAKE-make}"
7331fi
7332
7333case `pwd` in
7334  *\ * | *\	*)
7335    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7336$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7337esac
7338
7339
7340
7341macro_version='2.4.6'
7342macro_revision='2.4.6'
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356ltmain=$ac_aux_dir/ltmain.sh
7357
7358# Backslashify metacharacters that are still active within
7359# double-quoted strings.
7360sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7361
7362# Same as above, but do not quote variable references.
7363double_quote_subst='s/\(["`\\]\)/\\\1/g'
7364
7365# Sed substitution to delay expansion of an escaped shell variable in a
7366# double_quote_subst'ed string.
7367delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7368
7369# Sed substitution to delay expansion of an escaped single quote.
7370delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7371
7372# Sed substitution to avoid accidental globbing in evaled expressions
7373no_glob_subst='s/\*/\\\*/g'
7374
7375ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7376ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7377ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7378
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7380$as_echo_n "checking how to print strings... " >&6; }
7381# Test print first, because it will be a builtin if present.
7382if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7383   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7384  ECHO='print -r --'
7385elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7386  ECHO='printf %s\n'
7387else
7388  # Use this function as a fallback that always works.
7389  func_fallback_echo ()
7390  {
7391    eval 'cat <<_LTECHO_EOF
7392$1
7393_LTECHO_EOF'
7394  }
7395  ECHO='func_fallback_echo'
7396fi
7397
7398# func_echo_all arg...
7399# Invoke $ECHO with all args, space-separated.
7400func_echo_all ()
7401{
7402    $ECHO ""
7403}
7404
7405case $ECHO in
7406  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7407$as_echo "printf" >&6; } ;;
7408  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7409$as_echo "print -r" >&6; } ;;
7410  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7411$as_echo "cat" >&6; } ;;
7412esac
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7428$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7429if ${ac_cv_path_SED+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7433     for ac_i in 1 2 3 4 5 6 7; do
7434       ac_script="$ac_script$as_nl$ac_script"
7435     done
7436     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7437     { ac_script=; unset ac_script;}
7438     if test -z "$SED"; then
7439  ac_path_SED_found=false
7440  # Loop through the user's path and test for each of PROGNAME-LIST
7441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446    for ac_prog in sed gsed; do
7447    for ac_exec_ext in '' $ac_executable_extensions; do
7448      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7449      as_fn_executable_p "$ac_path_SED" || continue
7450# Check for GNU ac_path_SED and select it if it is found.
7451  # Check for GNU $ac_path_SED
7452case `"$ac_path_SED" --version 2>&1` in
7453*GNU*)
7454  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7455*)
7456  ac_count=0
7457  $as_echo_n 0123456789 >"conftest.in"
7458  while :
7459  do
7460    cat "conftest.in" "conftest.in" >"conftest.tmp"
7461    mv "conftest.tmp" "conftest.in"
7462    cp "conftest.in" "conftest.nl"
7463    $as_echo '' >> "conftest.nl"
7464    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7465    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7466    as_fn_arith $ac_count + 1 && ac_count=$as_val
7467    if test $ac_count -gt ${ac_path_SED_max-0}; then
7468      # Best one so far, save it but keep looking for a better one
7469      ac_cv_path_SED="$ac_path_SED"
7470      ac_path_SED_max=$ac_count
7471    fi
7472    # 10*(2^10) chars as input seems more than enough
7473    test $ac_count -gt 10 && break
7474  done
7475  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7476esac
7477
7478      $ac_path_SED_found && break 3
7479    done
7480  done
7481  done
7482IFS=$as_save_IFS
7483  if test -z "$ac_cv_path_SED"; then
7484    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7485  fi
7486else
7487  ac_cv_path_SED=$SED
7488fi
7489
7490fi
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7492$as_echo "$ac_cv_path_SED" >&6; }
7493 SED="$ac_cv_path_SED"
7494  rm -f conftest.sed
7495
7496test -z "$SED" && SED=sed
7497Xsed="$SED -e 1s/^X//"
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7510$as_echo_n "checking for fgrep... " >&6; }
7511if ${ac_cv_path_FGREP+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7515   then ac_cv_path_FGREP="$GREP -F"
7516   else
7517     if test -z "$FGREP"; then
7518  ac_path_FGREP_found=false
7519  # Loop through the user's path and test for each of PROGNAME-LIST
7520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_prog in fgrep; do
7526    for ac_exec_ext in '' $ac_executable_extensions; do
7527      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7528      as_fn_executable_p "$ac_path_FGREP" || continue
7529# Check for GNU ac_path_FGREP and select it if it is found.
7530  # Check for GNU $ac_path_FGREP
7531case `"$ac_path_FGREP" --version 2>&1` in
7532*GNU*)
7533  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7534*)
7535  ac_count=0
7536  $as_echo_n 0123456789 >"conftest.in"
7537  while :
7538  do
7539    cat "conftest.in" "conftest.in" >"conftest.tmp"
7540    mv "conftest.tmp" "conftest.in"
7541    cp "conftest.in" "conftest.nl"
7542    $as_echo 'FGREP' >> "conftest.nl"
7543    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7544    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7545    as_fn_arith $ac_count + 1 && ac_count=$as_val
7546    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7547      # Best one so far, save it but keep looking for a better one
7548      ac_cv_path_FGREP="$ac_path_FGREP"
7549      ac_path_FGREP_max=$ac_count
7550    fi
7551    # 10*(2^10) chars as input seems more than enough
7552    test $ac_count -gt 10 && break
7553  done
7554  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7555esac
7556
7557      $ac_path_FGREP_found && break 3
7558    done
7559  done
7560  done
7561IFS=$as_save_IFS
7562  if test -z "$ac_cv_path_FGREP"; then
7563    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7564  fi
7565else
7566  ac_cv_path_FGREP=$FGREP
7567fi
7568
7569   fi
7570fi
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7572$as_echo "$ac_cv_path_FGREP" >&6; }
7573 FGREP="$ac_cv_path_FGREP"
7574
7575
7576test -z "$GREP" && GREP=grep
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596# Check whether --with-gnu-ld was given.
7597if test "${with_gnu_ld+set}" = set; then :
7598  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7599else
7600  with_gnu_ld=no
7601fi
7602
7603ac_prog=ld
7604if test yes = "$GCC"; then
7605  # Check if gcc -print-prog-name=ld gives a path.
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7607$as_echo_n "checking for ld used by $CC... " >&6; }
7608  case $host in
7609  *-*-mingw*)
7610    # gcc leaves a trailing carriage return, which upsets mingw
7611    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7612  *)
7613    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7614  esac
7615  case $ac_prog in
7616    # Accept absolute paths.
7617    [\\/]* | ?:[\\/]*)
7618      re_direlt='/[^/][^/]*/\.\./'
7619      # Canonicalize the pathname of ld
7620      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7621      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7622	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7623      done
7624      test -z "$LD" && LD=$ac_prog
7625      ;;
7626  "")
7627    # If it fails, then pretend we aren't using GCC.
7628    ac_prog=ld
7629    ;;
7630  *)
7631    # If it is relative, then search for the first ld in PATH.
7632    with_gnu_ld=unknown
7633    ;;
7634  esac
7635elif test yes = "$with_gnu_ld"; then
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7637$as_echo_n "checking for GNU ld... " >&6; }
7638else
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7640$as_echo_n "checking for non-GNU ld... " >&6; }
7641fi
7642if ${lt_cv_path_LD+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  if test -z "$LD"; then
7646  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7647  for ac_dir in $PATH; do
7648    IFS=$lt_save_ifs
7649    test -z "$ac_dir" && ac_dir=.
7650    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7651      lt_cv_path_LD=$ac_dir/$ac_prog
7652      # Check to see if the program is GNU ld.  I'd rather use --version,
7653      # but apparently some variants of GNU ld only accept -v.
7654      # Break only if it was the GNU/non-GNU ld that we prefer.
7655      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7656      *GNU* | *'with BFD'*)
7657	test no != "$with_gnu_ld" && break
7658	;;
7659      *)
7660	test yes != "$with_gnu_ld" && break
7661	;;
7662      esac
7663    fi
7664  done
7665  IFS=$lt_save_ifs
7666else
7667  lt_cv_path_LD=$LD # Let the user override the test with a path.
7668fi
7669fi
7670
7671LD=$lt_cv_path_LD
7672if test -n "$LD"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7674$as_echo "$LD" >&6; }
7675else
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7681$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7682if ${lt_cv_prog_gnu_ld+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7686case `$LD -v 2>&1 </dev/null` in
7687*GNU* | *'with BFD'*)
7688  lt_cv_prog_gnu_ld=yes
7689  ;;
7690*)
7691  lt_cv_prog_gnu_ld=no
7692  ;;
7693esac
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7696$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7697with_gnu_ld=$lt_cv_prog_gnu_ld
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7708$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7709if ${lt_cv_path_NM+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  if test -n "$NM"; then
7713  # Let the user override the test.
7714  lt_cv_path_NM=$NM
7715else
7716  lt_nm_to_check=${ac_tool_prefix}nm
7717  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7718    lt_nm_to_check="$lt_nm_to_check nm"
7719  fi
7720  for lt_tmp_nm in $lt_nm_to_check; do
7721    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7722    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7723      IFS=$lt_save_ifs
7724      test -z "$ac_dir" && ac_dir=.
7725      tmp_nm=$ac_dir/$lt_tmp_nm
7726      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7727	# Check to see if the nm accepts a BSD-compat flag.
7728	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7729	#   nm: unknown option "B" ignored
7730	# Tru64's nm complains that /dev/null is an invalid object file
7731	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7732	case $build_os in
7733	mingw*) lt_bad_file=conftest.nm/nofile ;;
7734	*) lt_bad_file=/dev/null ;;
7735	esac
7736	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7737	*$lt_bad_file* | *'Invalid file or object type'*)
7738	  lt_cv_path_NM="$tmp_nm -B"
7739	  break 2
7740	  ;;
7741	*)
7742	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7743	  */dev/null*)
7744	    lt_cv_path_NM="$tmp_nm -p"
7745	    break 2
7746	    ;;
7747	  *)
7748	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7749	    continue # so that we can try to find one that supports BSD flags
7750	    ;;
7751	  esac
7752	  ;;
7753	esac
7754      fi
7755    done
7756    IFS=$lt_save_ifs
7757  done
7758  : ${lt_cv_path_NM=no}
7759fi
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7762$as_echo "$lt_cv_path_NM" >&6; }
7763if test no != "$lt_cv_path_NM"; then
7764  NM=$lt_cv_path_NM
7765else
7766  # Didn't find any BSD compatible name lister, look for dumpbin.
7767  if test -n "$DUMPBIN"; then :
7768    # Let the user override the test.
7769  else
7770    if test -n "$ac_tool_prefix"; then
7771  for ac_prog in dumpbin "link -dump"
7772  do
7773    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if ${ac_cv_prog_DUMPBIN+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  if test -n "$DUMPBIN"; then
7781  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786  IFS=$as_save_IFS
7787  test -z "$as_dir" && as_dir=.
7788    for ac_exec_ext in '' $ac_executable_extensions; do
7789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792    break 2
7793  fi
7794done
7795  done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800DUMPBIN=$ac_cv_prog_DUMPBIN
7801if test -n "$DUMPBIN"; then
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7803$as_echo "$DUMPBIN" >&6; }
7804else
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809
7810    test -n "$DUMPBIN" && break
7811  done
7812fi
7813if test -z "$DUMPBIN"; then
7814  ac_ct_DUMPBIN=$DUMPBIN
7815  for ac_prog in dumpbin "link -dump"
7816do
7817  # Extract the first word of "$ac_prog", so it can be a program name with args.
7818set dummy $ac_prog; ac_word=$2
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820$as_echo_n "checking for $ac_word... " >&6; }
7821if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  if test -n "$ac_ct_DUMPBIN"; then
7825  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7826else
7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830  IFS=$as_save_IFS
7831  test -z "$as_dir" && as_dir=.
7832    for ac_exec_ext in '' $ac_executable_extensions; do
7833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836    break 2
7837  fi
7838done
7839  done
7840IFS=$as_save_IFS
7841
7842fi
7843fi
7844ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7845if test -n "$ac_ct_DUMPBIN"; then
7846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7847$as_echo "$ac_ct_DUMPBIN" >&6; }
7848else
7849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
7851fi
7852
7853
7854  test -n "$ac_ct_DUMPBIN" && break
7855done
7856
7857  if test "x$ac_ct_DUMPBIN" = x; then
7858    DUMPBIN=":"
7859  else
7860    case $cross_compiling:$ac_tool_warned in
7861yes:)
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7864ac_tool_warned=yes ;;
7865esac
7866    DUMPBIN=$ac_ct_DUMPBIN
7867  fi
7868fi
7869
7870    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7871    *COFF*)
7872      DUMPBIN="$DUMPBIN -symbols -headers"
7873      ;;
7874    *)
7875      DUMPBIN=:
7876      ;;
7877    esac
7878  fi
7879
7880  if test : != "$DUMPBIN"; then
7881    NM=$DUMPBIN
7882  fi
7883fi
7884test -z "$NM" && NM=nm
7885
7886
7887
7888
7889
7890
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7892$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7893if ${lt_cv_nm_interface+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  lt_cv_nm_interface="BSD nm"
7897  echo "int some_variable = 0;" > conftest.$ac_ext
7898  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7899  (eval "$ac_compile" 2>conftest.err)
7900  cat conftest.err >&5
7901  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7902  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7903  cat conftest.err >&5
7904  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7905  cat conftest.out >&5
7906  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7907    lt_cv_nm_interface="MS dumpbin"
7908  fi
7909  rm -f conftest*
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7912$as_echo "$lt_cv_nm_interface" >&6; }
7913
7914# find the maximum length of command line arguments
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7916$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7917if ${lt_cv_sys_max_cmd_len+:} false; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920    i=0
7921  teststring=ABCD
7922
7923  case $build_os in
7924  msdosdjgpp*)
7925    # On DJGPP, this test can blow up pretty badly due to problems in libc
7926    # (any single argument exceeding 2000 bytes causes a buffer overrun
7927    # during glob expansion).  Even if it were fixed, the result of this
7928    # check would be larger than it should be.
7929    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7930    ;;
7931
7932  gnu*)
7933    # Under GNU Hurd, this test is not required because there is
7934    # no limit to the length of command line arguments.
7935    # Libtool will interpret -1 as no limit whatsoever
7936    lt_cv_sys_max_cmd_len=-1;
7937    ;;
7938
7939  cygwin* | mingw* | cegcc*)
7940    # On Win9x/ME, this test blows up -- it succeeds, but takes
7941    # about 5 minutes as the teststring grows exponentially.
7942    # Worse, since 9x/ME are not pre-emptively multitasking,
7943    # you end up with a "frozen" computer, even though with patience
7944    # the test eventually succeeds (with a max line length of 256k).
7945    # Instead, let's just punt: use the minimum linelength reported by
7946    # all of the supported platforms: 8192 (on NT/2K/XP).
7947    lt_cv_sys_max_cmd_len=8192;
7948    ;;
7949
7950  mint*)
7951    # On MiNT this can take a long time and run out of memory.
7952    lt_cv_sys_max_cmd_len=8192;
7953    ;;
7954
7955  amigaos*)
7956    # On AmigaOS with pdksh, this test takes hours, literally.
7957    # So we just punt and use a minimum line length of 8192.
7958    lt_cv_sys_max_cmd_len=8192;
7959    ;;
7960
7961  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7962    # This has been around since 386BSD, at least.  Likely further.
7963    if test -x /sbin/sysctl; then
7964      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7965    elif test -x /usr/sbin/sysctl; then
7966      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7967    else
7968      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7969    fi
7970    # And add a safety zone
7971    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7972    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7973    ;;
7974
7975  interix*)
7976    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7977    lt_cv_sys_max_cmd_len=196608
7978    ;;
7979
7980  os2*)
7981    # The test takes a long time on OS/2.
7982    lt_cv_sys_max_cmd_len=8192
7983    ;;
7984
7985  osf*)
7986    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7987    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7988    # nice to cause kernel panics so lets avoid the loop below.
7989    # First set a reasonable default.
7990    lt_cv_sys_max_cmd_len=16384
7991    #
7992    if test -x /sbin/sysconfig; then
7993      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7994        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7995      esac
7996    fi
7997    ;;
7998  sco3.2v5*)
7999    lt_cv_sys_max_cmd_len=102400
8000    ;;
8001  sysv5* | sco5v6* | sysv4.2uw2*)
8002    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8003    if test -n "$kargmax"; then
8004      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8005    else
8006      lt_cv_sys_max_cmd_len=32768
8007    fi
8008    ;;
8009  *)
8010    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8011    if test -n "$lt_cv_sys_max_cmd_len" && \
8012       test undefined != "$lt_cv_sys_max_cmd_len"; then
8013      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8014      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8015    else
8016      # Make teststring a little bigger before we do anything with it.
8017      # a 1K string should be a reasonable start.
8018      for i in 1 2 3 4 5 6 7 8; do
8019        teststring=$teststring$teststring
8020      done
8021      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8022      # If test is not a shell built-in, we'll probably end up computing a
8023      # maximum length that is only half of the actual maximum length, but
8024      # we can't tell.
8025      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8026	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8027	      test 17 != "$i" # 1/2 MB should be enough
8028      do
8029        i=`expr $i + 1`
8030        teststring=$teststring$teststring
8031      done
8032      # Only check the string length outside the loop.
8033      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8034      teststring=
8035      # Add a significant safety factor because C++ compilers can tack on
8036      # massive amounts of additional arguments before passing them to the
8037      # linker.  It appears as though 1/2 is a usable value.
8038      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8039    fi
8040    ;;
8041  esac
8042
8043fi
8044
8045if test -n "$lt_cv_sys_max_cmd_len"; then
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8047$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8048else
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8050$as_echo "none" >&6; }
8051fi
8052max_cmd_len=$lt_cv_sys_max_cmd_len
8053
8054
8055
8056
8057
8058
8059: ${CP="cp -f"}
8060: ${MV="mv -f"}
8061: ${RM="rm -f"}
8062
8063if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8064  lt_unset=unset
8065else
8066  lt_unset=false
8067fi
8068
8069
8070
8071
8072
8073# test EBCDIC or ASCII
8074case `echo X|tr X '\101'` in
8075 A) # ASCII based system
8076    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8077  lt_SP2NL='tr \040 \012'
8078  lt_NL2SP='tr \015\012 \040\040'
8079  ;;
8080 *) # EBCDIC based system
8081  lt_SP2NL='tr \100 \n'
8082  lt_NL2SP='tr \r\n \100\100'
8083  ;;
8084esac
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8095$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8096if ${lt_cv_to_host_file_cmd+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  case $host in
8100  *-*-mingw* )
8101    case $build in
8102      *-*-mingw* ) # actually msys
8103        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8104        ;;
8105      *-*-cygwin* )
8106        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8107        ;;
8108      * ) # otherwise, assume *nix
8109        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8110        ;;
8111    esac
8112    ;;
8113  *-*-cygwin* )
8114    case $build in
8115      *-*-mingw* ) # actually msys
8116        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8117        ;;
8118      *-*-cygwin* )
8119        lt_cv_to_host_file_cmd=func_convert_file_noop
8120        ;;
8121      * ) # otherwise, assume *nix
8122        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8123        ;;
8124    esac
8125    ;;
8126  * ) # unhandled hosts (and "normal" native builds)
8127    lt_cv_to_host_file_cmd=func_convert_file_noop
8128    ;;
8129esac
8130
8131fi
8132
8133to_host_file_cmd=$lt_cv_to_host_file_cmd
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8135$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8136
8137
8138
8139
8140
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8142$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8143if ${lt_cv_to_tool_file_cmd+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  #assume ordinary cross tools, or native build.
8147lt_cv_to_tool_file_cmd=func_convert_file_noop
8148case $host in
8149  *-*-mingw* )
8150    case $build in
8151      *-*-mingw* ) # actually msys
8152        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8153        ;;
8154    esac
8155    ;;
8156esac
8157
8158fi
8159
8160to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8162$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8163
8164
8165
8166
8167
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8169$as_echo_n "checking for $LD option to reload object files... " >&6; }
8170if ${lt_cv_ld_reload_flag+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  lt_cv_ld_reload_flag='-r'
8174fi
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8176$as_echo "$lt_cv_ld_reload_flag" >&6; }
8177reload_flag=$lt_cv_ld_reload_flag
8178case $reload_flag in
8179"" | " "*) ;;
8180*) reload_flag=" $reload_flag" ;;
8181esac
8182reload_cmds='$LD$reload_flag -o $output$reload_objs'
8183case $host_os in
8184  cygwin* | mingw* | pw32* | cegcc*)
8185    if test yes != "$GCC"; then
8186      reload_cmds=false
8187    fi
8188    ;;
8189  darwin*)
8190    if test yes = "$GCC"; then
8191      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8192    else
8193      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8194    fi
8195    ;;
8196esac
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206if test -n "$ac_tool_prefix"; then
8207  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8208set dummy ${ac_tool_prefix}objdump; ac_word=$2
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210$as_echo_n "checking for $ac_word... " >&6; }
8211if ${ac_cv_prog_OBJDUMP+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  if test -n "$OBJDUMP"; then
8215  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8216else
8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220  IFS=$as_save_IFS
8221  test -z "$as_dir" && as_dir=.
8222    for ac_exec_ext in '' $ac_executable_extensions; do
8223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226    break 2
8227  fi
8228done
8229  done
8230IFS=$as_save_IFS
8231
8232fi
8233fi
8234OBJDUMP=$ac_cv_prog_OBJDUMP
8235if test -n "$OBJDUMP"; then
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8237$as_echo "$OBJDUMP" >&6; }
8238else
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
8241fi
8242
8243
8244fi
8245if test -z "$ac_cv_prog_OBJDUMP"; then
8246  ac_ct_OBJDUMP=$OBJDUMP
8247  # Extract the first word of "objdump", so it can be a program name with args.
8248set dummy objdump; ac_word=$2
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250$as_echo_n "checking for $ac_word... " >&6; }
8251if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  if test -n "$ac_ct_OBJDUMP"; then
8255  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8256else
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260  IFS=$as_save_IFS
8261  test -z "$as_dir" && as_dir=.
8262    for ac_exec_ext in '' $ac_executable_extensions; do
8263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266    break 2
8267  fi
8268done
8269  done
8270IFS=$as_save_IFS
8271
8272fi
8273fi
8274ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8275if test -n "$ac_ct_OBJDUMP"; then
8276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8277$as_echo "$ac_ct_OBJDUMP" >&6; }
8278else
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280$as_echo "no" >&6; }
8281fi
8282
8283  if test "x$ac_ct_OBJDUMP" = x; then
8284    OBJDUMP="false"
8285  else
8286    case $cross_compiling:$ac_tool_warned in
8287yes:)
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290ac_tool_warned=yes ;;
8291esac
8292    OBJDUMP=$ac_ct_OBJDUMP
8293  fi
8294else
8295  OBJDUMP="$ac_cv_prog_OBJDUMP"
8296fi
8297
8298test -z "$OBJDUMP" && OBJDUMP=objdump
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8309$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8310if ${lt_cv_deplibs_check_method+:} false; then :
8311  $as_echo_n "(cached) " >&6
8312else
8313  lt_cv_file_magic_cmd='$MAGIC_CMD'
8314lt_cv_file_magic_test_file=
8315lt_cv_deplibs_check_method='unknown'
8316# Need to set the preceding variable on all platforms that support
8317# interlibrary dependencies.
8318# 'none' -- dependencies not supported.
8319# 'unknown' -- same as none, but documents that we really don't know.
8320# 'pass_all' -- all dependencies passed with no checks.
8321# 'test_compile' -- check by making test program.
8322# 'file_magic [[regex]]' -- check by looking for files in library path
8323# that responds to the $file_magic_cmd with a given extended regex.
8324# If you have 'file' or equivalent on your system and you're not sure
8325# whether 'pass_all' will *always* work, you probably want this one.
8326
8327case $host_os in
8328aix[4-9]*)
8329  lt_cv_deplibs_check_method=pass_all
8330  ;;
8331
8332beos*)
8333  lt_cv_deplibs_check_method=pass_all
8334  ;;
8335
8336bsdi[45]*)
8337  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8338  lt_cv_file_magic_cmd='/usr/bin/file -L'
8339  lt_cv_file_magic_test_file=/shlib/libc.so
8340  ;;
8341
8342cygwin*)
8343  # func_win32_libid is a shell function defined in ltmain.sh
8344  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8345  lt_cv_file_magic_cmd='func_win32_libid'
8346  ;;
8347
8348mingw* | pw32*)
8349  # Base MSYS/MinGW do not provide the 'file' command needed by
8350  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8351  # unless we find 'file', for example because we are cross-compiling.
8352  if ( file / ) >/dev/null 2>&1; then
8353    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8354    lt_cv_file_magic_cmd='func_win32_libid'
8355  else
8356    # Keep this pattern in sync with the one in func_win32_libid.
8357    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8358    lt_cv_file_magic_cmd='$OBJDUMP -f'
8359  fi
8360  ;;
8361
8362cegcc*)
8363  # use the weaker test based on 'objdump'. See mingw*.
8364  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8365  lt_cv_file_magic_cmd='$OBJDUMP -f'
8366  ;;
8367
8368darwin* | rhapsody*)
8369  lt_cv_deplibs_check_method=pass_all
8370  ;;
8371
8372freebsd* | dragonfly*)
8373  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8374    case $host_cpu in
8375    i*86 )
8376      # Not sure whether the presence of OpenBSD here was a mistake.
8377      # Let's accept both of them until this is cleared up.
8378      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8379      lt_cv_file_magic_cmd=/usr/bin/file
8380      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8381      ;;
8382    esac
8383  else
8384    lt_cv_deplibs_check_method=pass_all
8385  fi
8386  ;;
8387
8388haiku*)
8389  lt_cv_deplibs_check_method=pass_all
8390  ;;
8391
8392hpux10.20* | hpux11*)
8393  lt_cv_file_magic_cmd=/usr/bin/file
8394  case $host_cpu in
8395  ia64*)
8396    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8397    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8398    ;;
8399  hppa*64*)
8400    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]'
8401    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8402    ;;
8403  *)
8404    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8405    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8406    ;;
8407  esac
8408  ;;
8409
8410interix[3-9]*)
8411  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8412  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8413  ;;
8414
8415irix5* | irix6* | nonstopux*)
8416  case $LD in
8417  *-32|*"-32 ") libmagic=32-bit;;
8418  *-n32|*"-n32 ") libmagic=N32;;
8419  *-64|*"-64 ") libmagic=64-bit;;
8420  *) libmagic=never-match;;
8421  esac
8422  lt_cv_deplibs_check_method=pass_all
8423  ;;
8424
8425# This must be glibc/ELF.
8426linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8427  lt_cv_deplibs_check_method=pass_all
8428  ;;
8429
8430netbsd* | netbsdelf*-gnu)
8431  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8432    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8433  else
8434    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8435  fi
8436  ;;
8437
8438newos6*)
8439  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8440  lt_cv_file_magic_cmd=/usr/bin/file
8441  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8442  ;;
8443
8444*nto* | *qnx*)
8445  lt_cv_deplibs_check_method=pass_all
8446  ;;
8447
8448openbsd* | bitrig*)
8449  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8450    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8451  else
8452    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8453  fi
8454  ;;
8455
8456osf3* | osf4* | osf5*)
8457  lt_cv_deplibs_check_method=pass_all
8458  ;;
8459
8460rdos*)
8461  lt_cv_deplibs_check_method=pass_all
8462  ;;
8463
8464solaris*)
8465  lt_cv_deplibs_check_method=pass_all
8466  ;;
8467
8468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8469  lt_cv_deplibs_check_method=pass_all
8470  ;;
8471
8472sysv4 | sysv4.3*)
8473  case $host_vendor in
8474  motorola)
8475    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]'
8476    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8477    ;;
8478  ncr)
8479    lt_cv_deplibs_check_method=pass_all
8480    ;;
8481  sequent)
8482    lt_cv_file_magic_cmd='/bin/file'
8483    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8484    ;;
8485  sni)
8486    lt_cv_file_magic_cmd='/bin/file'
8487    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8488    lt_cv_file_magic_test_file=/lib/libc.so
8489    ;;
8490  siemens)
8491    lt_cv_deplibs_check_method=pass_all
8492    ;;
8493  pc)
8494    lt_cv_deplibs_check_method=pass_all
8495    ;;
8496  esac
8497  ;;
8498
8499tpf*)
8500  lt_cv_deplibs_check_method=pass_all
8501  ;;
8502os2*)
8503  lt_cv_deplibs_check_method=pass_all
8504  ;;
8505esac
8506
8507fi
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8509$as_echo "$lt_cv_deplibs_check_method" >&6; }
8510
8511file_magic_glob=
8512want_nocaseglob=no
8513if test "$build" = "$host"; then
8514  case $host_os in
8515  mingw* | pw32*)
8516    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8517      want_nocaseglob=yes
8518    else
8519      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8520    fi
8521    ;;
8522  esac
8523fi
8524
8525file_magic_cmd=$lt_cv_file_magic_cmd
8526deplibs_check_method=$lt_cv_deplibs_check_method
8527test -z "$deplibs_check_method" && deplibs_check_method=unknown
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550if test -n "$ac_tool_prefix"; then
8551  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8552set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554$as_echo_n "checking for $ac_word... " >&6; }
8555if ${ac_cv_prog_DLLTOOL+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  if test -n "$DLLTOOL"; then
8559  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8560else
8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562for as_dir in $PATH
8563do
8564  IFS=$as_save_IFS
8565  test -z "$as_dir" && as_dir=.
8566    for ac_exec_ext in '' $ac_executable_extensions; do
8567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570    break 2
8571  fi
8572done
8573  done
8574IFS=$as_save_IFS
8575
8576fi
8577fi
8578DLLTOOL=$ac_cv_prog_DLLTOOL
8579if test -n "$DLLTOOL"; then
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8581$as_echo "$DLLTOOL" >&6; }
8582else
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584$as_echo "no" >&6; }
8585fi
8586
8587
8588fi
8589if test -z "$ac_cv_prog_DLLTOOL"; then
8590  ac_ct_DLLTOOL=$DLLTOOL
8591  # Extract the first word of "dlltool", so it can be a program name with args.
8592set dummy dlltool; ac_word=$2
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594$as_echo_n "checking for $ac_word... " >&6; }
8595if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8596  $as_echo_n "(cached) " >&6
8597else
8598  if test -n "$ac_ct_DLLTOOL"; then
8599  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8600else
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604  IFS=$as_save_IFS
8605  test -z "$as_dir" && as_dir=.
8606    for ac_exec_ext in '' $ac_executable_extensions; do
8607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610    break 2
8611  fi
8612done
8613  done
8614IFS=$as_save_IFS
8615
8616fi
8617fi
8618ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8619if test -n "$ac_ct_DLLTOOL"; then
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8621$as_echo "$ac_ct_DLLTOOL" >&6; }
8622else
8623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624$as_echo "no" >&6; }
8625fi
8626
8627  if test "x$ac_ct_DLLTOOL" = x; then
8628    DLLTOOL="false"
8629  else
8630    case $cross_compiling:$ac_tool_warned in
8631yes:)
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8634ac_tool_warned=yes ;;
8635esac
8636    DLLTOOL=$ac_ct_DLLTOOL
8637  fi
8638else
8639  DLLTOOL="$ac_cv_prog_DLLTOOL"
8640fi
8641
8642test -z "$DLLTOOL" && DLLTOOL=dlltool
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8654$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8655if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658  lt_cv_sharedlib_from_linklib_cmd='unknown'
8659
8660case $host_os in
8661cygwin* | mingw* | pw32* | cegcc*)
8662  # two different shell functions defined in ltmain.sh;
8663  # decide which one to use based on capabilities of $DLLTOOL
8664  case `$DLLTOOL --help 2>&1` in
8665  *--identify-strict*)
8666    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8667    ;;
8668  *)
8669    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8670    ;;
8671  esac
8672  ;;
8673*)
8674  # fallback: assume linklib IS sharedlib
8675  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8676  ;;
8677esac
8678
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8681$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8682sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8683test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8684
8685
8686
8687
8688
8689
8690
8691if test -n "$ac_tool_prefix"; then
8692  for ac_prog in ar
8693  do
8694    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if ${ac_cv_prog_AR+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  if test -n "$AR"; then
8702  ac_cv_prog_AR="$AR" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707  IFS=$as_save_IFS
8708  test -z "$as_dir" && as_dir=.
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713    break 2
8714  fi
8715done
8716  done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721AR=$ac_cv_prog_AR
8722if test -n "$AR"; then
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8724$as_echo "$AR" >&6; }
8725else
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730
8731    test -n "$AR" && break
8732  done
8733fi
8734if test -z "$AR"; then
8735  ac_ct_AR=$AR
8736  for ac_prog in ar
8737do
8738  # Extract the first word of "$ac_prog", so it can be a program name with args.
8739set dummy $ac_prog; ac_word=$2
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
8742if ${ac_cv_prog_ac_ct_AR+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  if test -n "$ac_ct_AR"; then
8746  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8747else
8748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749for as_dir in $PATH
8750do
8751  IFS=$as_save_IFS
8752  test -z "$as_dir" && as_dir=.
8753    for ac_exec_ext in '' $ac_executable_extensions; do
8754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755    ac_cv_prog_ac_ct_AR="$ac_prog"
8756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757    break 2
8758  fi
8759done
8760  done
8761IFS=$as_save_IFS
8762
8763fi
8764fi
8765ac_ct_AR=$ac_cv_prog_ac_ct_AR
8766if test -n "$ac_ct_AR"; then
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8768$as_echo "$ac_ct_AR" >&6; }
8769else
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771$as_echo "no" >&6; }
8772fi
8773
8774
8775  test -n "$ac_ct_AR" && break
8776done
8777
8778  if test "x$ac_ct_AR" = x; then
8779    AR="false"
8780  else
8781    case $cross_compiling:$ac_tool_warned in
8782yes:)
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8785ac_tool_warned=yes ;;
8786esac
8787    AR=$ac_ct_AR
8788  fi
8789fi
8790
8791: ${AR=ar}
8792: ${AR_FLAGS=cr}
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8805$as_echo_n "checking for archiver @FILE support... " >&6; }
8806if ${lt_cv_ar_at_file+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_ar_at_file=no
8810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812
8813int
8814main ()
8815{
8816
8817  ;
8818  return 0;
8819}
8820_ACEOF
8821if ac_fn_cxx_try_compile "$LINENO"; then :
8822  echo conftest.$ac_objext > conftest.lst
8823      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8824      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8825  (eval $lt_ar_try) 2>&5
8826  ac_status=$?
8827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8828  test $ac_status = 0; }
8829      if test 0 -eq "$ac_status"; then
8830	# Ensure the archiver fails upon bogus file names.
8831	rm -f conftest.$ac_objext libconftest.a
8832	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8833  (eval $lt_ar_try) 2>&5
8834  ac_status=$?
8835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8836  test $ac_status = 0; }
8837	if test 0 -ne "$ac_status"; then
8838          lt_cv_ar_at_file=@
8839        fi
8840      fi
8841      rm -f conftest.* libconftest.a
8842
8843fi
8844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845
8846fi
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8848$as_echo "$lt_cv_ar_at_file" >&6; }
8849
8850if test no = "$lt_cv_ar_at_file"; then
8851  archiver_list_spec=
8852else
8853  archiver_list_spec=$lt_cv_ar_at_file
8854fi
8855
8856
8857
8858
8859
8860
8861
8862if test -n "$ac_tool_prefix"; then
8863  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8864set dummy ${ac_tool_prefix}strip; ac_word=$2
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
8867if ${ac_cv_prog_STRIP+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  if test -n "$STRIP"; then
8871  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8872else
8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874for as_dir in $PATH
8875do
8876  IFS=$as_save_IFS
8877  test -z "$as_dir" && as_dir=.
8878    for ac_exec_ext in '' $ac_executable_extensions; do
8879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882    break 2
8883  fi
8884done
8885  done
8886IFS=$as_save_IFS
8887
8888fi
8889fi
8890STRIP=$ac_cv_prog_STRIP
8891if test -n "$STRIP"; then
8892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8893$as_echo "$STRIP" >&6; }
8894else
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
8897fi
8898
8899
8900fi
8901if test -z "$ac_cv_prog_STRIP"; then
8902  ac_ct_STRIP=$STRIP
8903  # Extract the first word of "strip", so it can be a program name with args.
8904set dummy strip; ac_word=$2
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906$as_echo_n "checking for $ac_word... " >&6; }
8907if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  if test -n "$ac_ct_STRIP"; then
8911  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8912else
8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914for as_dir in $PATH
8915do
8916  IFS=$as_save_IFS
8917  test -z "$as_dir" && as_dir=.
8918    for ac_exec_ext in '' $ac_executable_extensions; do
8919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920    ac_cv_prog_ac_ct_STRIP="strip"
8921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922    break 2
8923  fi
8924done
8925  done
8926IFS=$as_save_IFS
8927
8928fi
8929fi
8930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8931if test -n "$ac_ct_STRIP"; then
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8933$as_echo "$ac_ct_STRIP" >&6; }
8934else
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936$as_echo "no" >&6; }
8937fi
8938
8939  if test "x$ac_ct_STRIP" = x; then
8940    STRIP=":"
8941  else
8942    case $cross_compiling:$ac_tool_warned in
8943yes:)
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8946ac_tool_warned=yes ;;
8947esac
8948    STRIP=$ac_ct_STRIP
8949  fi
8950else
8951  STRIP="$ac_cv_prog_STRIP"
8952fi
8953
8954test -z "$STRIP" && STRIP=:
8955
8956
8957
8958
8959
8960
8961if test -n "$ac_tool_prefix"; then
8962  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8963set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965$as_echo_n "checking for $ac_word... " >&6; }
8966if ${ac_cv_prog_RANLIB+:} false; then :
8967  $as_echo_n "(cached) " >&6
8968else
8969  if test -n "$RANLIB"; then
8970  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975  IFS=$as_save_IFS
8976  test -z "$as_dir" && as_dir=.
8977    for ac_exec_ext in '' $ac_executable_extensions; do
8978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981    break 2
8982  fi
8983done
8984  done
8985IFS=$as_save_IFS
8986
8987fi
8988fi
8989RANLIB=$ac_cv_prog_RANLIB
8990if test -n "$RANLIB"; then
8991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8992$as_echo "$RANLIB" >&6; }
8993else
8994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995$as_echo "no" >&6; }
8996fi
8997
8998
8999fi
9000if test -z "$ac_cv_prog_RANLIB"; then
9001  ac_ct_RANLIB=$RANLIB
9002  # Extract the first word of "ranlib", so it can be a program name with args.
9003set dummy ranlib; ac_word=$2
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005$as_echo_n "checking for $ac_word... " >&6; }
9006if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  if test -n "$ac_ct_RANLIB"; then
9010  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9011else
9012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013for as_dir in $PATH
9014do
9015  IFS=$as_save_IFS
9016  test -z "$as_dir" && as_dir=.
9017    for ac_exec_ext in '' $ac_executable_extensions; do
9018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9019    ac_cv_prog_ac_ct_RANLIB="ranlib"
9020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021    break 2
9022  fi
9023done
9024  done
9025IFS=$as_save_IFS
9026
9027fi
9028fi
9029ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9030if test -n "$ac_ct_RANLIB"; then
9031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9032$as_echo "$ac_ct_RANLIB" >&6; }
9033else
9034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035$as_echo "no" >&6; }
9036fi
9037
9038  if test "x$ac_ct_RANLIB" = x; then
9039    RANLIB=":"
9040  else
9041    case $cross_compiling:$ac_tool_warned in
9042yes:)
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9045ac_tool_warned=yes ;;
9046esac
9047    RANLIB=$ac_ct_RANLIB
9048  fi
9049else
9050  RANLIB="$ac_cv_prog_RANLIB"
9051fi
9052
9053test -z "$RANLIB" && RANLIB=:
9054
9055
9056
9057
9058
9059
9060# Determine commands to create old-style static archives.
9061old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9062old_postinstall_cmds='chmod 644 $oldlib'
9063old_postuninstall_cmds=
9064
9065if test -n "$RANLIB"; then
9066  case $host_os in
9067  bitrig* | openbsd*)
9068    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9069    ;;
9070  *)
9071    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9072    ;;
9073  esac
9074  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9075fi
9076
9077case $host_os in
9078  darwin*)
9079    lock_old_archive_extraction=yes ;;
9080  *)
9081    lock_old_archive_extraction=no ;;
9082esac
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122# If no C compiler was specified, use CC.
9123LTCC=${LTCC-"$CC"}
9124
9125# If no C compiler flags were specified, use CFLAGS.
9126LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9127
9128# Allow CC to be a program name with arguments.
9129compiler=$CC
9130
9131
9132# Check for command to grab the raw symbol name followed by C symbol from nm.
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9134$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9135if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137else
9138
9139# These are sane defaults that work on at least a few old systems.
9140# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9141
9142# Character class describing NM global symbol codes.
9143symcode='[BCDEGRST]'
9144
9145# Regexp to match symbols that can be accessed directly from C.
9146sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9147
9148# Define system-specific variables.
9149case $host_os in
9150aix*)
9151  symcode='[BCDT]'
9152  ;;
9153cygwin* | mingw* | pw32* | cegcc*)
9154  symcode='[ABCDGISTW]'
9155  ;;
9156hpux*)
9157  if test ia64 = "$host_cpu"; then
9158    symcode='[ABCDEGRST]'
9159  fi
9160  ;;
9161irix* | nonstopux*)
9162  symcode='[BCDEGRST]'
9163  ;;
9164osf*)
9165  symcode='[BCDEGQRST]'
9166  ;;
9167solaris*)
9168  symcode='[BDRT]'
9169  ;;
9170sco3.2v5*)
9171  symcode='[DT]'
9172  ;;
9173sysv4.2uw2*)
9174  symcode='[DT]'
9175  ;;
9176sysv5* | sco5v6* | unixware* | OpenUNIX*)
9177  symcode='[ABDT]'
9178  ;;
9179sysv4)
9180  symcode='[DFNSTU]'
9181  ;;
9182esac
9183
9184# If we're using GNU nm, then use its standard symbol codes.
9185case `$NM -V 2>&1` in
9186*GNU* | *'with BFD'*)
9187  symcode='[ABCDGIRSTW]' ;;
9188esac
9189
9190if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9191  # Gets list of data symbols to import.
9192  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9193  # Adjust the below global symbol transforms to fixup imported variables.
9194  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9195  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9196  lt_c_name_lib_hook="\
9197  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9198  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9199else
9200  # Disable hooks by default.
9201  lt_cv_sys_global_symbol_to_import=
9202  lt_cdecl_hook=
9203  lt_c_name_hook=
9204  lt_c_name_lib_hook=
9205fi
9206
9207# Transform an extracted symbol line into a proper C declaration.
9208# Some systems (esp. on ia64) link data and code symbols differently,
9209# so use this general approach.
9210lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9211$lt_cdecl_hook\
9212" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9213" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9214
9215# Transform an extracted symbol line into symbol name and symbol address
9216lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9217$lt_c_name_hook\
9218" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9219" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9220
9221# Transform an extracted symbol line into symbol name with lib prefix and
9222# symbol address.
9223lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9224$lt_c_name_lib_hook\
9225" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9226" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9227" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9228
9229# Handle CRLF in mingw tool chain
9230opt_cr=
9231case $build_os in
9232mingw*)
9233  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9234  ;;
9235esac
9236
9237# Try without a prefix underscore, then with it.
9238for ac_symprfx in "" "_"; do
9239
9240  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9241  symxfrm="\\1 $ac_symprfx\\2 \\2"
9242
9243  # Write the raw and C identifiers.
9244  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9245    # Fake it for dumpbin and say T for any non-static function,
9246    # D for any global variable and I for any imported variable.
9247    # Also find C++ and __fastcall symbols from MSVC++,
9248    # which start with @ or ?.
9249    lt_cv_sys_global_symbol_pipe="$AWK '"\
9250"     {last_section=section; section=\$ 3};"\
9251"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9252"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9253"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9254"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9255"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9256"     \$ 0!~/External *\|/{next};"\
9257"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9258"     {if(hide[section]) next};"\
9259"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9260"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9261"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9262"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9263"     ' prfx=^$ac_symprfx"
9264  else
9265    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9266  fi
9267  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9268
9269  # Check to see that the pipe works correctly.
9270  pipe_works=no
9271
9272  rm -f conftest*
9273  cat > conftest.$ac_ext <<_LT_EOF
9274#ifdef __cplusplus
9275extern "C" {
9276#endif
9277char nm_test_var;
9278void nm_test_func(void);
9279void nm_test_func(void){}
9280#ifdef __cplusplus
9281}
9282#endif
9283int main(){nm_test_var='a';nm_test_func();return(0);}
9284_LT_EOF
9285
9286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9287  (eval $ac_compile) 2>&5
9288  ac_status=$?
9289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9290  test $ac_status = 0; }; then
9291    # Now try to grab the symbols.
9292    nlist=conftest.nm
9293    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9294    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9295      # Try sorting and uniquifying the output.
9296      if sort "$nlist" | uniq > "$nlist"T; then
9297	mv -f "$nlist"T "$nlist"
9298      else
9299	rm -f "$nlist"T
9300      fi
9301
9302      # Make sure that we snagged all the symbols we need.
9303      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9304	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9305	  cat <<_LT_EOF > conftest.$ac_ext
9306/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9307#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9308/* DATA imports from DLLs on WIN32 can't be const, because runtime
9309   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9310# define LT_DLSYM_CONST
9311#elif defined __osf__
9312/* This system does not cope well with relocations in const data.  */
9313# define LT_DLSYM_CONST
9314#else
9315# define LT_DLSYM_CONST const
9316#endif
9317
9318#ifdef __cplusplus
9319extern "C" {
9320#endif
9321
9322_LT_EOF
9323	  # Now generate the symbol file.
9324	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9325
9326	  cat <<_LT_EOF >> conftest.$ac_ext
9327
9328/* The mapping between symbol names and symbols.  */
9329LT_DLSYM_CONST struct {
9330  const char *name;
9331  void       *address;
9332}
9333lt__PROGRAM__LTX_preloaded_symbols[] =
9334{
9335  { "@PROGRAM@", (void *) 0 },
9336_LT_EOF
9337	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9338	  cat <<\_LT_EOF >> conftest.$ac_ext
9339  {0, (void *) 0}
9340};
9341
9342/* This works around a problem in FreeBSD linker */
9343#ifdef FREEBSD_WORKAROUND
9344static const void *lt_preloaded_setup() {
9345  return lt__PROGRAM__LTX_preloaded_symbols;
9346}
9347#endif
9348
9349#ifdef __cplusplus
9350}
9351#endif
9352_LT_EOF
9353	  # Now try linking the two files.
9354	  mv conftest.$ac_objext conftstm.$ac_objext
9355	  lt_globsym_save_LIBS=$LIBS
9356	  lt_globsym_save_CFLAGS=$CFLAGS
9357	  LIBS=conftstm.$ac_objext
9358	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9359	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9360  (eval $ac_link) 2>&5
9361  ac_status=$?
9362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9363  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9364	    pipe_works=yes
9365	  fi
9366	  LIBS=$lt_globsym_save_LIBS
9367	  CFLAGS=$lt_globsym_save_CFLAGS
9368	else
9369	  echo "cannot find nm_test_func in $nlist" >&5
9370	fi
9371      else
9372	echo "cannot find nm_test_var in $nlist" >&5
9373      fi
9374    else
9375      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9376    fi
9377  else
9378    echo "$progname: failed program was:" >&5
9379    cat conftest.$ac_ext >&5
9380  fi
9381  rm -rf conftest* conftst*
9382
9383  # Do not use the global_symbol_pipe unless it works.
9384  if test yes = "$pipe_works"; then
9385    break
9386  else
9387    lt_cv_sys_global_symbol_pipe=
9388  fi
9389done
9390
9391fi
9392
9393if test -z "$lt_cv_sys_global_symbol_pipe"; then
9394  lt_cv_sys_global_symbol_to_cdecl=
9395fi
9396if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9398$as_echo "failed" >&6; }
9399else
9400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9401$as_echo "ok" >&6; }
9402fi
9403
9404# Response file support.
9405if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9406  nm_file_list_spec='@'
9407elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9408  nm_file_list_spec='@'
9409fi
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9448$as_echo_n "checking for sysroot... " >&6; }
9449
9450# Check whether --with-sysroot was given.
9451if test "${with_sysroot+set}" = set; then :
9452  withval=$with_sysroot;
9453else
9454  with_sysroot=no
9455fi
9456
9457
9458lt_sysroot=
9459case $with_sysroot in #(
9460 yes)
9461   if test yes = "$GCC"; then
9462     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9463   fi
9464   ;; #(
9465 /*)
9466   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9467   ;; #(
9468 no|'')
9469   ;; #(
9470 *)
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9472$as_echo "$with_sysroot" >&6; }
9473   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9474   ;;
9475esac
9476
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9478$as_echo "${lt_sysroot:-no}" >&6; }
9479
9480
9481
9482
9483
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9485$as_echo_n "checking for a working dd... " >&6; }
9486if ${ac_cv_path_lt_DD+:} false; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489  printf 0123456789abcdef0123456789abcdef >conftest.i
9490cat conftest.i conftest.i >conftest2.i
9491: ${lt_DD:=$DD}
9492if test -z "$lt_DD"; then
9493  ac_path_lt_DD_found=false
9494  # Loop through the user's path and test for each of PROGNAME-LIST
9495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498  IFS=$as_save_IFS
9499  test -z "$as_dir" && as_dir=.
9500    for ac_prog in dd; do
9501    for ac_exec_ext in '' $ac_executable_extensions; do
9502      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9503      as_fn_executable_p "$ac_path_lt_DD" || continue
9504if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9505  cmp -s conftest.i conftest.out \
9506  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9507fi
9508      $ac_path_lt_DD_found && break 3
9509    done
9510  done
9511  done
9512IFS=$as_save_IFS
9513  if test -z "$ac_cv_path_lt_DD"; then
9514    :
9515  fi
9516else
9517  ac_cv_path_lt_DD=$lt_DD
9518fi
9519
9520rm -f conftest.i conftest2.i conftest.out
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9523$as_echo "$ac_cv_path_lt_DD" >&6; }
9524
9525
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9527$as_echo_n "checking how to truncate binary pipes... " >&6; }
9528if ${lt_cv_truncate_bin+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  printf 0123456789abcdef0123456789abcdef >conftest.i
9532cat conftest.i conftest.i >conftest2.i
9533lt_cv_truncate_bin=
9534if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9535  cmp -s conftest.i conftest.out \
9536  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9537fi
9538rm -f conftest.i conftest2.i conftest.out
9539test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9542$as_echo "$lt_cv_truncate_bin" >&6; }
9543
9544
9545
9546
9547
9548
9549
9550# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9551func_cc_basename ()
9552{
9553    for cc_temp in $*""; do
9554      case $cc_temp in
9555        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9556        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9557        \-*) ;;
9558        *) break;;
9559      esac
9560    done
9561    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9562}
9563
9564
9565# Check whether --enable-libtool-lock was given.
9566if test "${enable_libtool_lock+set}" = set; then :
9567  enableval=$enable_libtool_lock;
9568fi
9569
9570test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9571
9572# Some flags need to be propagated to the compiler or linker for good
9573# libtool support.
9574case $host in
9575ia64-*-hpux*)
9576  # Find out what ABI is being produced by ac_compile, and set mode
9577  # options accordingly.
9578  echo 'int i;' > conftest.$ac_ext
9579  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9580  (eval $ac_compile) 2>&5
9581  ac_status=$?
9582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583  test $ac_status = 0; }; then
9584    case `/usr/bin/file conftest.$ac_objext` in
9585      *ELF-32*)
9586	HPUX_IA64_MODE=32
9587	;;
9588      *ELF-64*)
9589	HPUX_IA64_MODE=64
9590	;;
9591    esac
9592  fi
9593  rm -rf conftest*
9594  ;;
9595*-*-irix6*)
9596  # Find out what ABI is being produced by ac_compile, and set linker
9597  # options accordingly.
9598  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9599  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9600  (eval $ac_compile) 2>&5
9601  ac_status=$?
9602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9603  test $ac_status = 0; }; then
9604    if test yes = "$lt_cv_prog_gnu_ld"; then
9605      case `/usr/bin/file conftest.$ac_objext` in
9606	*32-bit*)
9607	  LD="${LD-ld} -melf32bsmip"
9608	  ;;
9609	*N32*)
9610	  LD="${LD-ld} -melf32bmipn32"
9611	  ;;
9612	*64-bit*)
9613	  LD="${LD-ld} -melf64bmip"
9614	;;
9615      esac
9616    else
9617      case `/usr/bin/file conftest.$ac_objext` in
9618	*32-bit*)
9619	  LD="${LD-ld} -32"
9620	  ;;
9621	*N32*)
9622	  LD="${LD-ld} -n32"
9623	  ;;
9624	*64-bit*)
9625	  LD="${LD-ld} -64"
9626	  ;;
9627      esac
9628    fi
9629  fi
9630  rm -rf conftest*
9631  ;;
9632
9633mips64*-*linux*)
9634  # Find out what ABI is being produced by ac_compile, and set linker
9635  # options accordingly.
9636  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9637  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9638  (eval $ac_compile) 2>&5
9639  ac_status=$?
9640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9641  test $ac_status = 0; }; then
9642    emul=elf
9643    case `/usr/bin/file conftest.$ac_objext` in
9644      *32-bit*)
9645	emul="${emul}32"
9646	;;
9647      *64-bit*)
9648	emul="${emul}64"
9649	;;
9650    esac
9651    case `/usr/bin/file conftest.$ac_objext` in
9652      *MSB*)
9653	emul="${emul}btsmip"
9654	;;
9655      *LSB*)
9656	emul="${emul}ltsmip"
9657	;;
9658    esac
9659    case `/usr/bin/file conftest.$ac_objext` in
9660      *N32*)
9661	emul="${emul}n32"
9662	;;
9663    esac
9664    LD="${LD-ld} -m $emul"
9665  fi
9666  rm -rf conftest*
9667  ;;
9668
9669x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9670s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9671  # Find out what ABI is being produced by ac_compile, and set linker
9672  # options accordingly.  Note that the listed cases only cover the
9673  # situations where additional linker options are needed (such as when
9674  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9675  # vice versa); the common cases where no linker options are needed do
9676  # not appear in the list.
9677  echo 'int i;' > conftest.$ac_ext
9678  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9679  (eval $ac_compile) 2>&5
9680  ac_status=$?
9681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682  test $ac_status = 0; }; then
9683    case `/usr/bin/file conftest.o` in
9684      *32-bit*)
9685	case $host in
9686	  x86_64-*kfreebsd*-gnu)
9687	    LD="${LD-ld} -m elf_i386_fbsd"
9688	    ;;
9689	  x86_64-*linux*)
9690	    case `/usr/bin/file conftest.o` in
9691	      *x86-64*)
9692		LD="${LD-ld} -m elf32_x86_64"
9693		;;
9694	      *)
9695		LD="${LD-ld} -m elf_i386"
9696		;;
9697	    esac
9698	    ;;
9699	  powerpc64le-*linux*)
9700	    LD="${LD-ld} -m elf32lppclinux"
9701	    ;;
9702	  powerpc64-*linux*)
9703	    LD="${LD-ld} -m elf32ppclinux"
9704	    ;;
9705	  s390x-*linux*)
9706	    LD="${LD-ld} -m elf_s390"
9707	    ;;
9708	  sparc64-*linux*)
9709	    LD="${LD-ld} -m elf32_sparc"
9710	    ;;
9711	esac
9712	;;
9713      *64-bit*)
9714	case $host in
9715	  x86_64-*kfreebsd*-gnu)
9716	    LD="${LD-ld} -m elf_x86_64_fbsd"
9717	    ;;
9718	  x86_64-*linux*)
9719	    LD="${LD-ld} -m elf_x86_64"
9720	    ;;
9721	  powerpcle-*linux*)
9722	    LD="${LD-ld} -m elf64lppc"
9723	    ;;
9724	  powerpc-*linux*)
9725	    LD="${LD-ld} -m elf64ppc"
9726	    ;;
9727	  s390*-*linux*|s390*-*tpf*)
9728	    LD="${LD-ld} -m elf64_s390"
9729	    ;;
9730	  sparc*-*linux*)
9731	    LD="${LD-ld} -m elf64_sparc"
9732	    ;;
9733	esac
9734	;;
9735    esac
9736  fi
9737  rm -rf conftest*
9738  ;;
9739
9740*-*-sco3.2v5*)
9741  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9742  SAVE_CFLAGS=$CFLAGS
9743  CFLAGS="$CFLAGS -belf"
9744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9745$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9746if ${lt_cv_cc_needs_belf+:} false; then :
9747  $as_echo_n "(cached) " >&6
9748else
9749  ac_ext=c
9750ac_cpp='$CPP $CPPFLAGS'
9751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753ac_compiler_gnu=$ac_cv_c_compiler_gnu
9754
9755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757
9758int
9759main ()
9760{
9761
9762  ;
9763  return 0;
9764}
9765_ACEOF
9766if ac_fn_c_try_link "$LINENO"; then :
9767  lt_cv_cc_needs_belf=yes
9768else
9769  lt_cv_cc_needs_belf=no
9770fi
9771rm -f core conftest.err conftest.$ac_objext \
9772    conftest$ac_exeext conftest.$ac_ext
9773     ac_ext=c
9774ac_cpp='$CPP $CPPFLAGS'
9775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777ac_compiler_gnu=$ac_cv_c_compiler_gnu
9778
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9781$as_echo "$lt_cv_cc_needs_belf" >&6; }
9782  if test yes != "$lt_cv_cc_needs_belf"; then
9783    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9784    CFLAGS=$SAVE_CFLAGS
9785  fi
9786  ;;
9787*-*solaris*)
9788  # Find out what ABI is being produced by ac_compile, and set linker
9789  # options accordingly.
9790  echo 'int i;' > conftest.$ac_ext
9791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9792  (eval $ac_compile) 2>&5
9793  ac_status=$?
9794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9795  test $ac_status = 0; }; then
9796    case `/usr/bin/file conftest.o` in
9797    *64-bit*)
9798      case $lt_cv_prog_gnu_ld in
9799      yes*)
9800        case $host in
9801        i?86-*-solaris*|x86_64-*-solaris*)
9802          LD="${LD-ld} -m elf_x86_64"
9803          ;;
9804        sparc*-*-solaris*)
9805          LD="${LD-ld} -m elf64_sparc"
9806          ;;
9807        esac
9808        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9809        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9810          LD=${LD-ld}_sol2
9811        fi
9812        ;;
9813      *)
9814	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9815	  LD="${LD-ld} -64"
9816	fi
9817	;;
9818      esac
9819      ;;
9820    esac
9821  fi
9822  rm -rf conftest*
9823  ;;
9824esac
9825
9826need_locks=$enable_libtool_lock
9827
9828if test -n "$ac_tool_prefix"; then
9829  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9830set dummy ${ac_tool_prefix}mt; ac_word=$2
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9832$as_echo_n "checking for $ac_word... " >&6; }
9833if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9834  $as_echo_n "(cached) " >&6
9835else
9836  if test -n "$MANIFEST_TOOL"; then
9837  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9838else
9839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840for as_dir in $PATH
9841do
9842  IFS=$as_save_IFS
9843  test -z "$as_dir" && as_dir=.
9844    for ac_exec_ext in '' $ac_executable_extensions; do
9845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9846    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848    break 2
9849  fi
9850done
9851  done
9852IFS=$as_save_IFS
9853
9854fi
9855fi
9856MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9857if test -n "$MANIFEST_TOOL"; then
9858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9859$as_echo "$MANIFEST_TOOL" >&6; }
9860else
9861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862$as_echo "no" >&6; }
9863fi
9864
9865
9866fi
9867if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9868  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9869  # Extract the first word of "mt", so it can be a program name with args.
9870set dummy mt; ac_word=$2
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872$as_echo_n "checking for $ac_word... " >&6; }
9873if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9874  $as_echo_n "(cached) " >&6
9875else
9876  if test -n "$ac_ct_MANIFEST_TOOL"; then
9877  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9878else
9879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880for as_dir in $PATH
9881do
9882  IFS=$as_save_IFS
9883  test -z "$as_dir" && as_dir=.
9884    for ac_exec_ext in '' $ac_executable_extensions; do
9885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9886    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888    break 2
9889  fi
9890done
9891  done
9892IFS=$as_save_IFS
9893
9894fi
9895fi
9896ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9897if test -n "$ac_ct_MANIFEST_TOOL"; then
9898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9899$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9900else
9901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
9903fi
9904
9905  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9906    MANIFEST_TOOL=":"
9907  else
9908    case $cross_compiling:$ac_tool_warned in
9909yes:)
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9912ac_tool_warned=yes ;;
9913esac
9914    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9915  fi
9916else
9917  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9918fi
9919
9920test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9922$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9923if ${lt_cv_path_mainfest_tool+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  lt_cv_path_mainfest_tool=no
9927  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9928  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9929  cat conftest.err >&5
9930  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9931    lt_cv_path_mainfest_tool=yes
9932  fi
9933  rm -f conftest*
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9936$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9937if test yes != "$lt_cv_path_mainfest_tool"; then
9938  MANIFEST_TOOL=:
9939fi
9940
9941
9942
9943
9944
9945
9946  case $host_os in
9947    rhapsody* | darwin*)
9948    if test -n "$ac_tool_prefix"; then
9949  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9950set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952$as_echo_n "checking for $ac_word... " >&6; }
9953if ${ac_cv_prog_DSYMUTIL+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  if test -n "$DSYMUTIL"; then
9957  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9958else
9959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960for as_dir in $PATH
9961do
9962  IFS=$as_save_IFS
9963  test -z "$as_dir" && as_dir=.
9964    for ac_exec_ext in '' $ac_executable_extensions; do
9965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9966    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968    break 2
9969  fi
9970done
9971  done
9972IFS=$as_save_IFS
9973
9974fi
9975fi
9976DSYMUTIL=$ac_cv_prog_DSYMUTIL
9977if test -n "$DSYMUTIL"; then
9978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9979$as_echo "$DSYMUTIL" >&6; }
9980else
9981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982$as_echo "no" >&6; }
9983fi
9984
9985
9986fi
9987if test -z "$ac_cv_prog_DSYMUTIL"; then
9988  ac_ct_DSYMUTIL=$DSYMUTIL
9989  # Extract the first word of "dsymutil", so it can be a program name with args.
9990set dummy dsymutil; ac_word=$2
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
9993if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9994  $as_echo_n "(cached) " >&6
9995else
9996  if test -n "$ac_ct_DSYMUTIL"; then
9997  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9998else
9999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000for as_dir in $PATH
10001do
10002  IFS=$as_save_IFS
10003  test -z "$as_dir" && as_dir=.
10004    for ac_exec_ext in '' $ac_executable_extensions; do
10005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008    break 2
10009  fi
10010done
10011  done
10012IFS=$as_save_IFS
10013
10014fi
10015fi
10016ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10017if test -n "$ac_ct_DSYMUTIL"; then
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10019$as_echo "$ac_ct_DSYMUTIL" >&6; }
10020else
10021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022$as_echo "no" >&6; }
10023fi
10024
10025  if test "x$ac_ct_DSYMUTIL" = x; then
10026    DSYMUTIL=":"
10027  else
10028    case $cross_compiling:$ac_tool_warned in
10029yes:)
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10032ac_tool_warned=yes ;;
10033esac
10034    DSYMUTIL=$ac_ct_DSYMUTIL
10035  fi
10036else
10037  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10038fi
10039
10040    if test -n "$ac_tool_prefix"; then
10041  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10042set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044$as_echo_n "checking for $ac_word... " >&6; }
10045if ${ac_cv_prog_NMEDIT+:} false; then :
10046  $as_echo_n "(cached) " >&6
10047else
10048  if test -n "$NMEDIT"; then
10049  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10050else
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054  IFS=$as_save_IFS
10055  test -z "$as_dir" && as_dir=.
10056    for ac_exec_ext in '' $ac_executable_extensions; do
10057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060    break 2
10061  fi
10062done
10063  done
10064IFS=$as_save_IFS
10065
10066fi
10067fi
10068NMEDIT=$ac_cv_prog_NMEDIT
10069if test -n "$NMEDIT"; then
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10071$as_echo "$NMEDIT" >&6; }
10072else
10073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074$as_echo "no" >&6; }
10075fi
10076
10077
10078fi
10079if test -z "$ac_cv_prog_NMEDIT"; then
10080  ac_ct_NMEDIT=$NMEDIT
10081  # Extract the first word of "nmedit", so it can be a program name with args.
10082set dummy nmedit; ac_word=$2
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084$as_echo_n "checking for $ac_word... " >&6; }
10085if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10086  $as_echo_n "(cached) " >&6
10087else
10088  if test -n "$ac_ct_NMEDIT"; then
10089  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10090else
10091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $PATH
10093do
10094  IFS=$as_save_IFS
10095  test -z "$as_dir" && as_dir=.
10096    for ac_exec_ext in '' $ac_executable_extensions; do
10097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100    break 2
10101  fi
10102done
10103  done
10104IFS=$as_save_IFS
10105
10106fi
10107fi
10108ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10109if test -n "$ac_ct_NMEDIT"; then
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10111$as_echo "$ac_ct_NMEDIT" >&6; }
10112else
10113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
10115fi
10116
10117  if test "x$ac_ct_NMEDIT" = x; then
10118    NMEDIT=":"
10119  else
10120    case $cross_compiling:$ac_tool_warned in
10121yes:)
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10124ac_tool_warned=yes ;;
10125esac
10126    NMEDIT=$ac_ct_NMEDIT
10127  fi
10128else
10129  NMEDIT="$ac_cv_prog_NMEDIT"
10130fi
10131
10132    if test -n "$ac_tool_prefix"; then
10133  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10134set dummy ${ac_tool_prefix}lipo; ac_word=$2
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10136$as_echo_n "checking for $ac_word... " >&6; }
10137if ${ac_cv_prog_LIPO+:} false; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  if test -n "$LIPO"; then
10141  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10142else
10143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146  IFS=$as_save_IFS
10147  test -z "$as_dir" && as_dir=.
10148    for ac_exec_ext in '' $ac_executable_extensions; do
10149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10152    break 2
10153  fi
10154done
10155  done
10156IFS=$as_save_IFS
10157
10158fi
10159fi
10160LIPO=$ac_cv_prog_LIPO
10161if test -n "$LIPO"; then
10162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10163$as_echo "$LIPO" >&6; }
10164else
10165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10166$as_echo "no" >&6; }
10167fi
10168
10169
10170fi
10171if test -z "$ac_cv_prog_LIPO"; then
10172  ac_ct_LIPO=$LIPO
10173  # Extract the first word of "lipo", so it can be a program name with args.
10174set dummy lipo; ac_word=$2
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176$as_echo_n "checking for $ac_word... " >&6; }
10177if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  if test -n "$ac_ct_LIPO"; then
10181  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10182else
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186  IFS=$as_save_IFS
10187  test -z "$as_dir" && as_dir=.
10188    for ac_exec_ext in '' $ac_executable_extensions; do
10189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190    ac_cv_prog_ac_ct_LIPO="lipo"
10191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192    break 2
10193  fi
10194done
10195  done
10196IFS=$as_save_IFS
10197
10198fi
10199fi
10200ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10201if test -n "$ac_ct_LIPO"; then
10202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10203$as_echo "$ac_ct_LIPO" >&6; }
10204else
10205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206$as_echo "no" >&6; }
10207fi
10208
10209  if test "x$ac_ct_LIPO" = x; then
10210    LIPO=":"
10211  else
10212    case $cross_compiling:$ac_tool_warned in
10213yes:)
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10216ac_tool_warned=yes ;;
10217esac
10218    LIPO=$ac_ct_LIPO
10219  fi
10220else
10221  LIPO="$ac_cv_prog_LIPO"
10222fi
10223
10224    if test -n "$ac_tool_prefix"; then
10225  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10226set dummy ${ac_tool_prefix}otool; ac_word=$2
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
10229if ${ac_cv_prog_OTOOL+:} false; then :
10230  $as_echo_n "(cached) " >&6
10231else
10232  if test -n "$OTOOL"; then
10233  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10234else
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238  IFS=$as_save_IFS
10239  test -z "$as_dir" && as_dir=.
10240    for ac_exec_ext in '' $ac_executable_extensions; do
10241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244    break 2
10245  fi
10246done
10247  done
10248IFS=$as_save_IFS
10249
10250fi
10251fi
10252OTOOL=$ac_cv_prog_OTOOL
10253if test -n "$OTOOL"; then
10254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10255$as_echo "$OTOOL" >&6; }
10256else
10257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
10259fi
10260
10261
10262fi
10263if test -z "$ac_cv_prog_OTOOL"; then
10264  ac_ct_OTOOL=$OTOOL
10265  # Extract the first word of "otool", so it can be a program name with args.
10266set dummy otool; ac_word=$2
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268$as_echo_n "checking for $ac_word... " >&6; }
10269if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10270  $as_echo_n "(cached) " >&6
10271else
10272  if test -n "$ac_ct_OTOOL"; then
10273  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278  IFS=$as_save_IFS
10279  test -z "$as_dir" && as_dir=.
10280    for ac_exec_ext in '' $ac_executable_extensions; do
10281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10282    ac_cv_prog_ac_ct_OTOOL="otool"
10283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284    break 2
10285  fi
10286done
10287  done
10288IFS=$as_save_IFS
10289
10290fi
10291fi
10292ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10293if test -n "$ac_ct_OTOOL"; then
10294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10295$as_echo "$ac_ct_OTOOL" >&6; }
10296else
10297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298$as_echo "no" >&6; }
10299fi
10300
10301  if test "x$ac_ct_OTOOL" = x; then
10302    OTOOL=":"
10303  else
10304    case $cross_compiling:$ac_tool_warned in
10305yes:)
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10308ac_tool_warned=yes ;;
10309esac
10310    OTOOL=$ac_ct_OTOOL
10311  fi
10312else
10313  OTOOL="$ac_cv_prog_OTOOL"
10314fi
10315
10316    if test -n "$ac_tool_prefix"; then
10317  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10318set dummy ${ac_tool_prefix}otool64; ac_word=$2
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320$as_echo_n "checking for $ac_word... " >&6; }
10321if ${ac_cv_prog_OTOOL64+:} false; then :
10322  $as_echo_n "(cached) " >&6
10323else
10324  if test -n "$OTOOL64"; then
10325  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10326else
10327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328for as_dir in $PATH
10329do
10330  IFS=$as_save_IFS
10331  test -z "$as_dir" && as_dir=.
10332    for ac_exec_ext in '' $ac_executable_extensions; do
10333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10334    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336    break 2
10337  fi
10338done
10339  done
10340IFS=$as_save_IFS
10341
10342fi
10343fi
10344OTOOL64=$ac_cv_prog_OTOOL64
10345if test -n "$OTOOL64"; then
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10347$as_echo "$OTOOL64" >&6; }
10348else
10349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
10351fi
10352
10353
10354fi
10355if test -z "$ac_cv_prog_OTOOL64"; then
10356  ac_ct_OTOOL64=$OTOOL64
10357  # Extract the first word of "otool64", so it can be a program name with args.
10358set dummy otool64; ac_word=$2
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360$as_echo_n "checking for $ac_word... " >&6; }
10361if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  if test -n "$ac_ct_OTOOL64"; then
10365  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10366else
10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370  IFS=$as_save_IFS
10371  test -z "$as_dir" && as_dir=.
10372    for ac_exec_ext in '' $ac_executable_extensions; do
10373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374    ac_cv_prog_ac_ct_OTOOL64="otool64"
10375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376    break 2
10377  fi
10378done
10379  done
10380IFS=$as_save_IFS
10381
10382fi
10383fi
10384ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10385if test -n "$ac_ct_OTOOL64"; then
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10387$as_echo "$ac_ct_OTOOL64" >&6; }
10388else
10389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390$as_echo "no" >&6; }
10391fi
10392
10393  if test "x$ac_ct_OTOOL64" = x; then
10394    OTOOL64=":"
10395  else
10396    case $cross_compiling:$ac_tool_warned in
10397yes:)
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10400ac_tool_warned=yes ;;
10401esac
10402    OTOOL64=$ac_ct_OTOOL64
10403  fi
10404else
10405  OTOOL64="$ac_cv_prog_OTOOL64"
10406fi
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10435$as_echo_n "checking for -single_module linker flag... " >&6; }
10436if ${lt_cv_apple_cc_single_mod+:} false; then :
10437  $as_echo_n "(cached) " >&6
10438else
10439  lt_cv_apple_cc_single_mod=no
10440      if test -z "$LT_MULTI_MODULE"; then
10441	# By default we will add the -single_module flag. You can override
10442	# by either setting the environment variable LT_MULTI_MODULE
10443	# non-empty at configure time, or by adding -multi_module to the
10444	# link flags.
10445	rm -rf libconftest.dylib*
10446	echo "int foo(void){return 1;}" > conftest.c
10447	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10448-dynamiclib -Wl,-single_module conftest.c" >&5
10449	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10450	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10451        _lt_result=$?
10452	# If there is a non-empty error log, and "single_module"
10453	# appears in it, assume the flag caused a linker warning
10454        if test -s conftest.err && $GREP single_module conftest.err; then
10455	  cat conftest.err >&5
10456	# Otherwise, if the output was created with a 0 exit code from
10457	# the compiler, it worked.
10458	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10459	  lt_cv_apple_cc_single_mod=yes
10460	else
10461	  cat conftest.err >&5
10462	fi
10463	rm -rf libconftest.dylib*
10464	rm -f conftest.*
10465      fi
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10468$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10469
10470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10471$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10472if ${lt_cv_ld_exported_symbols_list+:} false; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  lt_cv_ld_exported_symbols_list=no
10476      save_LDFLAGS=$LDFLAGS
10477      echo "_main" > conftest.sym
10478      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10479      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481
10482int
10483main ()
10484{
10485
10486  ;
10487  return 0;
10488}
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491  lt_cv_ld_exported_symbols_list=yes
10492else
10493  lt_cv_ld_exported_symbols_list=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496    conftest$ac_exeext conftest.$ac_ext
10497	LDFLAGS=$save_LDFLAGS
10498
10499fi
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10501$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10502
10503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10504$as_echo_n "checking for -force_load linker flag... " >&6; }
10505if ${lt_cv_ld_force_load+:} false; then :
10506  $as_echo_n "(cached) " >&6
10507else
10508  lt_cv_ld_force_load=no
10509      cat > conftest.c << _LT_EOF
10510int forced_loaded() { return 2;}
10511_LT_EOF
10512      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10513      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10514      echo "$AR cr libconftest.a conftest.o" >&5
10515      $AR cr libconftest.a conftest.o 2>&5
10516      echo "$RANLIB libconftest.a" >&5
10517      $RANLIB libconftest.a 2>&5
10518      cat > conftest.c << _LT_EOF
10519int main() { return 0;}
10520_LT_EOF
10521      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10522      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10523      _lt_result=$?
10524      if test -s conftest.err && $GREP force_load conftest.err; then
10525	cat conftest.err >&5
10526      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10527	lt_cv_ld_force_load=yes
10528      else
10529	cat conftest.err >&5
10530      fi
10531        rm -f conftest.err libconftest.a conftest conftest.c
10532        rm -rf conftest.dSYM
10533
10534fi
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10536$as_echo "$lt_cv_ld_force_load" >&6; }
10537    case $host_os in
10538    rhapsody* | darwin1.[012])
10539      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10540    darwin1.*)
10541      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10542    darwin*) # darwin 5.x on
10543      # if running on 10.5 or later, the deployment target defaults
10544      # to the OS version, if on x86, and 10.4, the deployment
10545      # target defaults to 10.4. Don't you love it?
10546      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10547	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
10548	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10549	10.[012][,.]*)
10550	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10551	10.*|11.*)
10552	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10553      esac
10554    ;;
10555  esac
10556    if test yes = "$lt_cv_apple_cc_single_mod"; then
10557      _lt_dar_single_mod='$single_module'
10558    fi
10559    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10560      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10561    else
10562      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10563    fi
10564    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10565      _lt_dsymutil='~$DSYMUTIL $lib || :'
10566    else
10567      _lt_dsymutil=
10568    fi
10569    ;;
10570  esac
10571
10572# func_munge_path_list VARIABLE PATH
10573# -----------------------------------
10574# VARIABLE is name of variable containing _space_ separated list of
10575# directories to be munged by the contents of PATH, which is string
10576# having a format:
10577# "DIR[:DIR]:"
10578#       string "DIR[ DIR]" will be prepended to VARIABLE
10579# ":DIR[:DIR]"
10580#       string "DIR[ DIR]" will be appended to VARIABLE
10581# "DIRP[:DIRP]::[DIRA:]DIRA"
10582#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10583#       "DIRA[ DIRA]" will be appended to VARIABLE
10584# "DIR[:DIR]"
10585#       VARIABLE will be replaced by "DIR[ DIR]"
10586func_munge_path_list ()
10587{
10588    case x$2 in
10589    x)
10590        ;;
10591    *:)
10592        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10593        ;;
10594    x:*)
10595        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10596        ;;
10597    *::*)
10598        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10599        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10600        ;;
10601    *)
10602        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10603        ;;
10604    esac
10605}
10606
10607
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10609$as_echo_n "checking for ANSI C header files... " >&6; }
10610if ${ac_cv_header_stdc+:} false; then :
10611  $as_echo_n "(cached) " >&6
10612else
10613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615#include <stdlib.h>
10616#include <stdarg.h>
10617#include <string.h>
10618#include <float.h>
10619
10620int
10621main ()
10622{
10623
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_compile "$LINENO"; then :
10629  ac_cv_header_stdc=yes
10630else
10631  ac_cv_header_stdc=no
10632fi
10633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634
10635if test $ac_cv_header_stdc = yes; then
10636  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638/* end confdefs.h.  */
10639#include <string.h>
10640
10641_ACEOF
10642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10643  $EGREP "memchr" >/dev/null 2>&1; then :
10644
10645else
10646  ac_cv_header_stdc=no
10647fi
10648rm -f conftest*
10649
10650fi
10651
10652if test $ac_cv_header_stdc = yes; then
10653  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656#include <stdlib.h>
10657
10658_ACEOF
10659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10660  $EGREP "free" >/dev/null 2>&1; then :
10661
10662else
10663  ac_cv_header_stdc=no
10664fi
10665rm -f conftest*
10666
10667fi
10668
10669if test $ac_cv_header_stdc = yes; then
10670  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10671  if test "$cross_compiling" = yes; then :
10672  :
10673else
10674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675/* end confdefs.h.  */
10676#include <ctype.h>
10677#include <stdlib.h>
10678#if ((' ' & 0x0FF) == 0x020)
10679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10681#else
10682# define ISLOWER(c) \
10683		   (('a' <= (c) && (c) <= 'i') \
10684		     || ('j' <= (c) && (c) <= 'r') \
10685		     || ('s' <= (c) && (c) <= 'z'))
10686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10687#endif
10688
10689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10690int
10691main ()
10692{
10693  int i;
10694  for (i = 0; i < 256; i++)
10695    if (XOR (islower (i), ISLOWER (i))
10696	|| toupper (i) != TOUPPER (i))
10697      return 2;
10698  return 0;
10699}
10700_ACEOF
10701if ac_fn_c_try_run "$LINENO"; then :
10702
10703else
10704  ac_cv_header_stdc=no
10705fi
10706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10707  conftest.$ac_objext conftest.beam conftest.$ac_ext
10708fi
10709
10710fi
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10713$as_echo "$ac_cv_header_stdc" >&6; }
10714if test $ac_cv_header_stdc = yes; then
10715
10716$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10717
10718fi
10719
10720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10722		  inttypes.h stdint.h unistd.h
10723do :
10724  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10725ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10726"
10727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10728  cat >>confdefs.h <<_ACEOF
10729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730_ACEOF
10731
10732fi
10733
10734done
10735
10736
10737for ac_header in dlfcn.h
10738do :
10739  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10740"
10741if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10742  cat >>confdefs.h <<_ACEOF
10743#define HAVE_DLFCN_H 1
10744_ACEOF
10745
10746fi
10747
10748done
10749
10750
10751
10752func_stripname_cnf ()
10753{
10754  case $2 in
10755  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10756  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10757  esac
10758} # func_stripname_cnf
10759
10760
10761
10762
10763
10764# Set options
10765
10766
10767
10768        enable_dlopen=no
10769
10770
10771  enable_win32_dll=no
10772
10773
10774            # Check whether --enable-shared was given.
10775if test "${enable_shared+set}" = set; then :
10776  enableval=$enable_shared; p=${PACKAGE-default}
10777    case $enableval in
10778    yes) enable_shared=yes ;;
10779    no) enable_shared=no ;;
10780    *)
10781      enable_shared=no
10782      # Look at the argument we got.  We use all the common list separators.
10783      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10784      for pkg in $enableval; do
10785	IFS=$lt_save_ifs
10786	if test "X$pkg" = "X$p"; then
10787	  enable_shared=yes
10788	fi
10789      done
10790      IFS=$lt_save_ifs
10791      ;;
10792    esac
10793else
10794  enable_shared=yes
10795fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805  # Check whether --enable-static was given.
10806if test "${enable_static+set}" = set; then :
10807  enableval=$enable_static; p=${PACKAGE-default}
10808    case $enableval in
10809    yes) enable_static=yes ;;
10810    no) enable_static=no ;;
10811    *)
10812     enable_static=no
10813      # Look at the argument we got.  We use all the common list separators.
10814      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10815      for pkg in $enableval; do
10816	IFS=$lt_save_ifs
10817	if test "X$pkg" = "X$p"; then
10818	  enable_static=yes
10819	fi
10820      done
10821      IFS=$lt_save_ifs
10822      ;;
10823    esac
10824else
10825  enable_static=yes
10826fi
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837# Check whether --with-pic was given.
10838if test "${with_pic+set}" = set; then :
10839  withval=$with_pic; lt_p=${PACKAGE-default}
10840    case $withval in
10841    yes|no) pic_mode=$withval ;;
10842    *)
10843      pic_mode=default
10844      # Look at the argument we got.  We use all the common list separators.
10845      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10846      for lt_pkg in $withval; do
10847	IFS=$lt_save_ifs
10848	if test "X$lt_pkg" = "X$lt_p"; then
10849	  pic_mode=yes
10850	fi
10851      done
10852      IFS=$lt_save_ifs
10853      ;;
10854    esac
10855else
10856  pic_mode=default
10857fi
10858
10859
10860
10861
10862
10863
10864
10865
10866  # Check whether --enable-fast-install was given.
10867if test "${enable_fast_install+set}" = set; then :
10868  enableval=$enable_fast_install; p=${PACKAGE-default}
10869    case $enableval in
10870    yes) enable_fast_install=yes ;;
10871    no) enable_fast_install=no ;;
10872    *)
10873      enable_fast_install=no
10874      # Look at the argument we got.  We use all the common list separators.
10875      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10876      for pkg in $enableval; do
10877	IFS=$lt_save_ifs
10878	if test "X$pkg" = "X$p"; then
10879	  enable_fast_install=yes
10880	fi
10881      done
10882      IFS=$lt_save_ifs
10883      ;;
10884    esac
10885else
10886  enable_fast_install=yes
10887fi
10888
10889
10890
10891
10892
10893
10894
10895
10896  shared_archive_member_spec=
10897case $host,$enable_shared in
10898power*-*-aix[5-9]*,yes)
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10900$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10901
10902# Check whether --with-aix-soname was given.
10903if test "${with_aix_soname+set}" = set; then :
10904  withval=$with_aix_soname; case $withval in
10905    aix|svr4|both)
10906      ;;
10907    *)
10908      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10909      ;;
10910    esac
10911    lt_cv_with_aix_soname=$with_aix_soname
10912else
10913  if ${lt_cv_with_aix_soname+:} false; then :
10914  $as_echo_n "(cached) " >&6
10915else
10916  lt_cv_with_aix_soname=aix
10917fi
10918
10919    with_aix_soname=$lt_cv_with_aix_soname
10920fi
10921
10922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10923$as_echo "$with_aix_soname" >&6; }
10924  if test aix != "$with_aix_soname"; then
10925    # For the AIX way of multilib, we name the shared archive member
10926    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10927    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10928    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10929    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10930    if test 64 = "${OBJECT_MODE-32}"; then
10931      shared_archive_member_spec=shr_64
10932    else
10933      shared_archive_member_spec=shr
10934    fi
10935  fi
10936  ;;
10937*)
10938  with_aix_soname=aix
10939  ;;
10940esac
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951# This can be used to rebuild libtool when needed
10952LIBTOOL_DEPS=$ltmain
10953
10954# Always use our own libtool.
10955LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986test -z "$LN_S" && LN_S="ln -s"
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001if test -n "${ZSH_VERSION+set}"; then
11002   setopt NO_GLOB_SUBST
11003fi
11004
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11006$as_echo_n "checking for objdir... " >&6; }
11007if ${lt_cv_objdir+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  rm -f .libs 2>/dev/null
11011mkdir .libs 2>/dev/null
11012if test -d .libs; then
11013  lt_cv_objdir=.libs
11014else
11015  # MS-DOS does not allow filenames that begin with a dot.
11016  lt_cv_objdir=_libs
11017fi
11018rmdir .libs 2>/dev/null
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11021$as_echo "$lt_cv_objdir" >&6; }
11022objdir=$lt_cv_objdir
11023
11024
11025
11026
11027
11028cat >>confdefs.h <<_ACEOF
11029#define LT_OBJDIR "$lt_cv_objdir/"
11030_ACEOF
11031
11032
11033
11034
11035case $host_os in
11036aix3*)
11037  # AIX sometimes has problems with the GCC collect2 program.  For some
11038  # reason, if we set the COLLECT_NAMES environment variable, the problems
11039  # vanish in a puff of smoke.
11040  if test set != "${COLLECT_NAMES+set}"; then
11041    COLLECT_NAMES=
11042    export COLLECT_NAMES
11043  fi
11044  ;;
11045esac
11046
11047# Global variables:
11048ofile=libtool
11049can_build_shared=yes
11050
11051# All known linkers require a '.a' archive for static linking (except MSVC,
11052# which needs '.lib').
11053libext=a
11054
11055with_gnu_ld=$lt_cv_prog_gnu_ld
11056
11057old_CC=$CC
11058old_CFLAGS=$CFLAGS
11059
11060# Set sane defaults for various variables
11061test -z "$CC" && CC=cc
11062test -z "$LTCC" && LTCC=$CC
11063test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11064test -z "$LD" && LD=ld
11065test -z "$ac_objext" && ac_objext=o
11066
11067func_cc_basename $compiler
11068cc_basename=$func_cc_basename_result
11069
11070
11071# Only perform the check for file, if the check method requires it
11072test -z "$MAGIC_CMD" && MAGIC_CMD=file
11073case $deplibs_check_method in
11074file_magic*)
11075  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11077$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11078if ${lt_cv_path_MAGIC_CMD+:} false; then :
11079  $as_echo_n "(cached) " >&6
11080else
11081  case $MAGIC_CMD in
11082[\\/*] |  ?:[\\/]*)
11083  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11084  ;;
11085*)
11086  lt_save_MAGIC_CMD=$MAGIC_CMD
11087  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11088  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11089  for ac_dir in $ac_dummy; do
11090    IFS=$lt_save_ifs
11091    test -z "$ac_dir" && ac_dir=.
11092    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11093      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11094      if test -n "$file_magic_test_file"; then
11095	case $deplibs_check_method in
11096	"file_magic "*)
11097	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11098	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11099	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11100	    $EGREP "$file_magic_regex" > /dev/null; then
11101	    :
11102	  else
11103	    cat <<_LT_EOF 1>&2
11104
11105*** Warning: the command libtool uses to detect shared libraries,
11106*** $file_magic_cmd, produces output that libtool cannot recognize.
11107*** The result is that libtool may fail to recognize shared libraries
11108*** as such.  This will affect the creation of libtool libraries that
11109*** depend on shared libraries, but programs linked with such libtool
11110*** libraries will work regardless of this problem.  Nevertheless, you
11111*** may want to report the problem to your system manager and/or to
11112*** bug-libtool@gnu.org
11113
11114_LT_EOF
11115	  fi ;;
11116	esac
11117      fi
11118      break
11119    fi
11120  done
11121  IFS=$lt_save_ifs
11122  MAGIC_CMD=$lt_save_MAGIC_CMD
11123  ;;
11124esac
11125fi
11126
11127MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11128if test -n "$MAGIC_CMD"; then
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11130$as_echo "$MAGIC_CMD" >&6; }
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135
11136
11137
11138
11139
11140if test -z "$lt_cv_path_MAGIC_CMD"; then
11141  if test -n "$ac_tool_prefix"; then
11142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11143$as_echo_n "checking for file... " >&6; }
11144if ${lt_cv_path_MAGIC_CMD+:} false; then :
11145  $as_echo_n "(cached) " >&6
11146else
11147  case $MAGIC_CMD in
11148[\\/*] |  ?:[\\/]*)
11149  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11150  ;;
11151*)
11152  lt_save_MAGIC_CMD=$MAGIC_CMD
11153  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11154  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11155  for ac_dir in $ac_dummy; do
11156    IFS=$lt_save_ifs
11157    test -z "$ac_dir" && ac_dir=.
11158    if test -f "$ac_dir/file"; then
11159      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11160      if test -n "$file_magic_test_file"; then
11161	case $deplibs_check_method in
11162	"file_magic "*)
11163	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11164	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11165	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11166	    $EGREP "$file_magic_regex" > /dev/null; then
11167	    :
11168	  else
11169	    cat <<_LT_EOF 1>&2
11170
11171*** Warning: the command libtool uses to detect shared libraries,
11172*** $file_magic_cmd, produces output that libtool cannot recognize.
11173*** The result is that libtool may fail to recognize shared libraries
11174*** as such.  This will affect the creation of libtool libraries that
11175*** depend on shared libraries, but programs linked with such libtool
11176*** libraries will work regardless of this problem.  Nevertheless, you
11177*** may want to report the problem to your system manager and/or to
11178*** bug-libtool@gnu.org
11179
11180_LT_EOF
11181	  fi ;;
11182	esac
11183      fi
11184      break
11185    fi
11186  done
11187  IFS=$lt_save_ifs
11188  MAGIC_CMD=$lt_save_MAGIC_CMD
11189  ;;
11190esac
11191fi
11192
11193MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11194if test -n "$MAGIC_CMD"; then
11195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11196$as_echo "$MAGIC_CMD" >&6; }
11197else
11198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199$as_echo "no" >&6; }
11200fi
11201
11202
11203  else
11204    MAGIC_CMD=:
11205  fi
11206fi
11207
11208  fi
11209  ;;
11210esac
11211
11212# Use C for the default configuration in the libtool script
11213
11214lt_save_CC=$CC
11215ac_ext=c
11216ac_cpp='$CPP $CPPFLAGS'
11217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11219ac_compiler_gnu=$ac_cv_c_compiler_gnu
11220
11221
11222# Source file extension for C test sources.
11223ac_ext=c
11224
11225# Object file extension for compiled C test sources.
11226objext=o
11227objext=$objext
11228
11229# Code to be used in simple compile tests
11230lt_simple_compile_test_code="int some_variable = 0;"
11231
11232# Code to be used in simple link tests
11233lt_simple_link_test_code='int main(){return(0);}'
11234
11235
11236
11237
11238
11239
11240
11241# If no C compiler was specified, use CC.
11242LTCC=${LTCC-"$CC"}
11243
11244# If no C compiler flags were specified, use CFLAGS.
11245LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11246
11247# Allow CC to be a program name with arguments.
11248compiler=$CC
11249
11250# Save the default compiler, since it gets overwritten when the other
11251# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11252compiler_DEFAULT=$CC
11253
11254# save warnings/boilerplate of simple test code
11255ac_outfile=conftest.$ac_objext
11256echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11257eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11258_lt_compiler_boilerplate=`cat conftest.err`
11259$RM conftest*
11260
11261ac_outfile=conftest.$ac_objext
11262echo "$lt_simple_link_test_code" >conftest.$ac_ext
11263eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11264_lt_linker_boilerplate=`cat conftest.err`
11265$RM -r conftest*
11266
11267
11268## CAVEAT EMPTOR:
11269## There is no encapsulation within the following macros, do not change
11270## the running order or otherwise move them around unless you know exactly
11271## what you are doing...
11272if test -n "$compiler"; then
11273
11274lt_prog_compiler_no_builtin_flag=
11275
11276if test yes = "$GCC"; then
11277  case $cc_basename in
11278  nvcc*)
11279    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11280  *)
11281    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11282  esac
11283
11284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11285$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11286if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11287  $as_echo_n "(cached) " >&6
11288else
11289  lt_cv_prog_compiler_rtti_exceptions=no
11290   ac_outfile=conftest.$ac_objext
11291   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11292   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11293   # Insert the option either (1) after the last *FLAGS variable, or
11294   # (2) before a word containing "conftest.", or (3) at the end.
11295   # Note that $ac_compile itself does not contain backslashes and begins
11296   # with a dollar sign (not a hyphen), so the echo should work correctly.
11297   # The option is referenced via a variable to avoid confusing sed.
11298   lt_compile=`echo "$ac_compile" | $SED \
11299   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11300   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11301   -e 's:$: $lt_compiler_flag:'`
11302   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11303   (eval "$lt_compile" 2>conftest.err)
11304   ac_status=$?
11305   cat conftest.err >&5
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   if (exit $ac_status) && test -s "$ac_outfile"; then
11308     # The compiler can only warn and ignore the option if not recognized
11309     # So say no if there are warnings other than the usual output.
11310     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11311     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11312     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11313       lt_cv_prog_compiler_rtti_exceptions=yes
11314     fi
11315   fi
11316   $RM conftest*
11317
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11320$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11321
11322if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11323    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11324else
11325    :
11326fi
11327
11328fi
11329
11330
11331
11332
11333
11334
11335  lt_prog_compiler_wl=
11336lt_prog_compiler_pic=
11337lt_prog_compiler_static=
11338
11339
11340  if test yes = "$GCC"; then
11341    lt_prog_compiler_wl='-Wl,'
11342    lt_prog_compiler_static='-static'
11343
11344    case $host_os in
11345      aix*)
11346      # All AIX code is PIC.
11347      if test ia64 = "$host_cpu"; then
11348	# AIX 5 now supports IA64 processor
11349	lt_prog_compiler_static='-Bstatic'
11350      fi
11351      lt_prog_compiler_pic='-fPIC'
11352      ;;
11353
11354    amigaos*)
11355      case $host_cpu in
11356      powerpc)
11357            # see comment about AmigaOS4 .so support
11358            lt_prog_compiler_pic='-fPIC'
11359        ;;
11360      m68k)
11361            # FIXME: we need at least 68020 code to build shared libraries, but
11362            # adding the '-m68020' flag to GCC prevents building anything better,
11363            # like '-m68040'.
11364            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11365        ;;
11366      esac
11367      ;;
11368
11369    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11370      # PIC is the default for these OSes.
11371      ;;
11372
11373    mingw* | cygwin* | pw32* | os2* | cegcc*)
11374      # This hack is so that the source file can tell whether it is being
11375      # built for inclusion in a dll (and should export symbols for example).
11376      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11377      # (--disable-auto-import) libraries
11378      lt_prog_compiler_pic='-DDLL_EXPORT'
11379      case $host_os in
11380      os2*)
11381	lt_prog_compiler_static='$wl-static'
11382	;;
11383      esac
11384      ;;
11385
11386    darwin* | rhapsody*)
11387      # PIC is the default on this platform
11388      # Common symbols not allowed in MH_DYLIB files
11389      lt_prog_compiler_pic='-fno-common'
11390      ;;
11391
11392    haiku*)
11393      # PIC is the default for Haiku.
11394      # The "-static" flag exists, but is broken.
11395      lt_prog_compiler_static=
11396      ;;
11397
11398    hpux*)
11399      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11400      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11401      # sets the default TLS model and affects inlining.
11402      case $host_cpu in
11403      hppa*64*)
11404	# +Z the default
11405	;;
11406      *)
11407	lt_prog_compiler_pic='-fPIC'
11408	;;
11409      esac
11410      ;;
11411
11412    interix[3-9]*)
11413      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11414      # Instead, we relocate shared libraries at runtime.
11415      ;;
11416
11417    msdosdjgpp*)
11418      # Just because we use GCC doesn't mean we suddenly get shared libraries
11419      # on systems that don't support them.
11420      lt_prog_compiler_can_build_shared=no
11421      enable_shared=no
11422      ;;
11423
11424    *nto* | *qnx*)
11425      # QNX uses GNU C++, but need to define -shared option too, otherwise
11426      # it will coredump.
11427      lt_prog_compiler_pic='-fPIC -shared'
11428      ;;
11429
11430    sysv4*MP*)
11431      if test -d /usr/nec; then
11432	lt_prog_compiler_pic=-Kconform_pic
11433      fi
11434      ;;
11435
11436    *)
11437      lt_prog_compiler_pic='-fPIC'
11438      ;;
11439    esac
11440
11441    case $cc_basename in
11442    nvcc*) # Cuda Compiler Driver 2.2
11443      lt_prog_compiler_wl='-Xlinker '
11444      if test -n "$lt_prog_compiler_pic"; then
11445        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11446      fi
11447      ;;
11448    esac
11449  else
11450    # PORTME Check for flag to pass linker flags through the system compiler.
11451    case $host_os in
11452    aix*)
11453      lt_prog_compiler_wl='-Wl,'
11454      if test ia64 = "$host_cpu"; then
11455	# AIX 5 now supports IA64 processor
11456	lt_prog_compiler_static='-Bstatic'
11457      else
11458	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11459      fi
11460      ;;
11461
11462    darwin* | rhapsody*)
11463      # PIC is the default on this platform
11464      # Common symbols not allowed in MH_DYLIB files
11465      lt_prog_compiler_pic='-fno-common'
11466      case $cc_basename in
11467      nagfor*)
11468        # NAG Fortran compiler
11469        lt_prog_compiler_wl='-Wl,-Wl,,'
11470        lt_prog_compiler_pic='-PIC'
11471        lt_prog_compiler_static='-Bstatic'
11472        ;;
11473      esac
11474      ;;
11475
11476    mingw* | cygwin* | pw32* | os2* | cegcc*)
11477      # This hack is so that the source file can tell whether it is being
11478      # built for inclusion in a dll (and should export symbols for example).
11479      lt_prog_compiler_pic='-DDLL_EXPORT'
11480      case $host_os in
11481      os2*)
11482	lt_prog_compiler_static='$wl-static'
11483	;;
11484      esac
11485      ;;
11486
11487    hpux9* | hpux10* | hpux11*)
11488      lt_prog_compiler_wl='-Wl,'
11489      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11490      # not for PA HP-UX.
11491      case $host_cpu in
11492      hppa*64*|ia64*)
11493	# +Z the default
11494	;;
11495      *)
11496	lt_prog_compiler_pic='+Z'
11497	;;
11498      esac
11499      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11500      lt_prog_compiler_static='$wl-a ${wl}archive'
11501      ;;
11502
11503    irix5* | irix6* | nonstopux*)
11504      lt_prog_compiler_wl='-Wl,'
11505      # PIC (with -KPIC) is the default.
11506      lt_prog_compiler_static='-non_shared'
11507      ;;
11508
11509    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11510      case $cc_basename in
11511      # old Intel for x86_64, which still supported -KPIC.
11512      ecc*)
11513	lt_prog_compiler_wl='-Wl,'
11514	lt_prog_compiler_pic='-KPIC'
11515	lt_prog_compiler_static='-static'
11516        ;;
11517      # flang / f18. f95 an alias for gfortran or flang on Debian
11518      flang* | f18* | f95*)
11519	lt_prog_compiler_wl='-Wl,'
11520	lt_prog_compiler_pic='-fPIC'
11521	lt_prog_compiler_static='-static'
11522        ;;
11523      # icc used to be incompatible with GCC.
11524      # ICC 10 doesn't accept -KPIC any more.
11525      icc* | ifort*)
11526	lt_prog_compiler_wl='-Wl,'
11527	lt_prog_compiler_pic='-fPIC'
11528	lt_prog_compiler_static='-static'
11529        ;;
11530      # Lahey Fortran 8.1.
11531      lf95*)
11532	lt_prog_compiler_wl='-Wl,'
11533	lt_prog_compiler_pic='--shared'
11534	lt_prog_compiler_static='--static'
11535	;;
11536      nagfor*)
11537	# NAG Fortran compiler
11538	lt_prog_compiler_wl='-Wl,-Wl,,'
11539	lt_prog_compiler_pic='-PIC'
11540	lt_prog_compiler_static='-Bstatic'
11541	;;
11542      tcc*)
11543	# Fabrice Bellard et al's Tiny C Compiler
11544	lt_prog_compiler_wl='-Wl,'
11545	lt_prog_compiler_pic='-fPIC'
11546	lt_prog_compiler_static='-static'
11547	;;
11548      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11549        # Portland Group compilers (*not* the Pentium gcc compiler,
11550	# which looks to be a dead project)
11551	lt_prog_compiler_wl='-Wl,'
11552	lt_prog_compiler_pic='-fpic'
11553	lt_prog_compiler_static='-Bstatic'
11554        ;;
11555      ccc*)
11556        lt_prog_compiler_wl='-Wl,'
11557        # All Alpha code is PIC.
11558        lt_prog_compiler_static='-non_shared'
11559        ;;
11560      xl* | bgxl* | bgf* | mpixl*)
11561	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11562	lt_prog_compiler_wl='-Wl,'
11563	lt_prog_compiler_pic='-qpic'
11564	lt_prog_compiler_static='-qstaticlink'
11565	;;
11566      *)
11567	case `$CC -V 2>&1 | sed 5q` in
11568	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11569	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11570	  lt_prog_compiler_pic='-KPIC'
11571	  lt_prog_compiler_static='-Bstatic'
11572	  lt_prog_compiler_wl=''
11573	  ;;
11574	*Sun\ F* | *Sun*Fortran*)
11575	  lt_prog_compiler_pic='-KPIC'
11576	  lt_prog_compiler_static='-Bstatic'
11577	  lt_prog_compiler_wl='-Qoption ld '
11578	  ;;
11579	*Sun\ C*)
11580	  # Sun C 5.9
11581	  lt_prog_compiler_pic='-KPIC'
11582	  lt_prog_compiler_static='-Bstatic'
11583	  lt_prog_compiler_wl='-Wl,'
11584	  ;;
11585        *Intel*\ [CF]*Compiler*)
11586	  lt_prog_compiler_wl='-Wl,'
11587	  lt_prog_compiler_pic='-fPIC'
11588	  lt_prog_compiler_static='-static'
11589	  ;;
11590	*Portland\ Group*)
11591	  lt_prog_compiler_wl='-Wl,'
11592	  lt_prog_compiler_pic='-fpic'
11593	  lt_prog_compiler_static='-Bstatic'
11594	  ;;
11595	esac
11596	;;
11597      esac
11598      ;;
11599
11600    newsos6)
11601      lt_prog_compiler_pic='-KPIC'
11602      lt_prog_compiler_static='-Bstatic'
11603      ;;
11604
11605    *nto* | *qnx*)
11606      # QNX uses GNU C++, but need to define -shared option too, otherwise
11607      # it will coredump.
11608      lt_prog_compiler_pic='-fPIC -shared'
11609      ;;
11610
11611    osf3* | osf4* | osf5*)
11612      lt_prog_compiler_wl='-Wl,'
11613      # All OSF/1 code is PIC.
11614      lt_prog_compiler_static='-non_shared'
11615      ;;
11616
11617    rdos*)
11618      lt_prog_compiler_static='-non_shared'
11619      ;;
11620
11621    solaris*)
11622      lt_prog_compiler_pic='-KPIC'
11623      lt_prog_compiler_static='-Bstatic'
11624      case $cc_basename in
11625      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11626	lt_prog_compiler_wl='-Qoption ld ';;
11627      *)
11628	lt_prog_compiler_wl='-Wl,';;
11629      esac
11630      ;;
11631
11632    sunos4*)
11633      lt_prog_compiler_wl='-Qoption ld '
11634      lt_prog_compiler_pic='-PIC'
11635      lt_prog_compiler_static='-Bstatic'
11636      ;;
11637
11638    sysv4 | sysv4.2uw2* | sysv4.3*)
11639      lt_prog_compiler_wl='-Wl,'
11640      lt_prog_compiler_pic='-KPIC'
11641      lt_prog_compiler_static='-Bstatic'
11642      ;;
11643
11644    sysv4*MP*)
11645      if test -d /usr/nec; then
11646	lt_prog_compiler_pic='-Kconform_pic'
11647	lt_prog_compiler_static='-Bstatic'
11648      fi
11649      ;;
11650
11651    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11652      lt_prog_compiler_wl='-Wl,'
11653      lt_prog_compiler_pic='-KPIC'
11654      lt_prog_compiler_static='-Bstatic'
11655      ;;
11656
11657    unicos*)
11658      lt_prog_compiler_wl='-Wl,'
11659      lt_prog_compiler_can_build_shared=no
11660      ;;
11661
11662    uts4*)
11663      lt_prog_compiler_pic='-pic'
11664      lt_prog_compiler_static='-Bstatic'
11665      ;;
11666
11667    *)
11668      lt_prog_compiler_can_build_shared=no
11669      ;;
11670    esac
11671  fi
11672
11673case $host_os in
11674  # For platforms that do not support PIC, -DPIC is meaningless:
11675  *djgpp*)
11676    lt_prog_compiler_pic=
11677    ;;
11678  *)
11679    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11680    ;;
11681esac
11682
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11684$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11685if ${lt_cv_prog_compiler_pic+:} false; then :
11686  $as_echo_n "(cached) " >&6
11687else
11688  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11689fi
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11691$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11692lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11693
11694#
11695# Check to make sure the PIC flag actually works.
11696#
11697if test -n "$lt_prog_compiler_pic"; then
11698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11699$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11700if ${lt_cv_prog_compiler_pic_works+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  lt_cv_prog_compiler_pic_works=no
11704   ac_outfile=conftest.$ac_objext
11705   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11706   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11707   # Insert the option either (1) after the last *FLAGS variable, or
11708   # (2) before a word containing "conftest.", or (3) at the end.
11709   # Note that $ac_compile itself does not contain backslashes and begins
11710   # with a dollar sign (not a hyphen), so the echo should work correctly.
11711   # The option is referenced via a variable to avoid confusing sed.
11712   lt_compile=`echo "$ac_compile" | $SED \
11713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11715   -e 's:$: $lt_compiler_flag:'`
11716   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11717   (eval "$lt_compile" 2>conftest.err)
11718   ac_status=$?
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   if (exit $ac_status) && test -s "$ac_outfile"; then
11722     # The compiler can only warn and ignore the option if not recognized
11723     # So say no if there are warnings other than the usual output.
11724     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11725     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11726     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11727       lt_cv_prog_compiler_pic_works=yes
11728     fi
11729   fi
11730   $RM conftest*
11731
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11734$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11735
11736if test yes = "$lt_cv_prog_compiler_pic_works"; then
11737    case $lt_prog_compiler_pic in
11738     "" | " "*) ;;
11739     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11740     esac
11741else
11742    lt_prog_compiler_pic=
11743     lt_prog_compiler_can_build_shared=no
11744fi
11745
11746fi
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758#
11759# Check to make sure the static flag actually works.
11760#
11761wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11763$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11764if ${lt_cv_prog_compiler_static_works+:} false; then :
11765  $as_echo_n "(cached) " >&6
11766else
11767  lt_cv_prog_compiler_static_works=no
11768   save_LDFLAGS=$LDFLAGS
11769   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11770   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11771   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11772     # The linker can only warn and ignore the option if not recognized
11773     # So say no if there are warnings
11774     if test -s conftest.err; then
11775       # Append any errors to the config.log.
11776       cat conftest.err 1>&5
11777       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11778       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11779       if diff conftest.exp conftest.er2 >/dev/null; then
11780         lt_cv_prog_compiler_static_works=yes
11781       fi
11782     else
11783       lt_cv_prog_compiler_static_works=yes
11784     fi
11785   fi
11786   $RM -r conftest*
11787   LDFLAGS=$save_LDFLAGS
11788
11789fi
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11791$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11792
11793if test yes = "$lt_cv_prog_compiler_static_works"; then
11794    :
11795else
11796    lt_prog_compiler_static=
11797fi
11798
11799
11800
11801
11802
11803
11804
11805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11806$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11807if ${lt_cv_prog_compiler_c_o+:} false; then :
11808  $as_echo_n "(cached) " >&6
11809else
11810  lt_cv_prog_compiler_c_o=no
11811   $RM -r conftest 2>/dev/null
11812   mkdir conftest
11813   cd conftest
11814   mkdir out
11815   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11816
11817   lt_compiler_flag="-o out/conftest2.$ac_objext"
11818   # Insert the option either (1) after the last *FLAGS variable, or
11819   # (2) before a word containing "conftest.", or (3) at the end.
11820   # Note that $ac_compile itself does not contain backslashes and begins
11821   # with a dollar sign (not a hyphen), so the echo should work correctly.
11822   lt_compile=`echo "$ac_compile" | $SED \
11823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11825   -e 's:$: $lt_compiler_flag:'`
11826   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11827   (eval "$lt_compile" 2>out/conftest.err)
11828   ac_status=$?
11829   cat out/conftest.err >&5
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11832   then
11833     # The compiler can only warn and ignore the option if not recognized
11834     # So say no if there are warnings
11835     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11836     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11837     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11838       lt_cv_prog_compiler_c_o=yes
11839     fi
11840   fi
11841   chmod u+w . 2>&5
11842   $RM conftest*
11843   # SGI C++ compiler will create directory out/ii_files/ for
11844   # template instantiation
11845   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11846   $RM out/* && rmdir out
11847   cd ..
11848   $RM -r conftest
11849   $RM conftest*
11850
11851fi
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11853$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11854
11855
11856
11857
11858
11859
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11861$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11862if ${lt_cv_prog_compiler_c_o+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  lt_cv_prog_compiler_c_o=no
11866   $RM -r conftest 2>/dev/null
11867   mkdir conftest
11868   cd conftest
11869   mkdir out
11870   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11871
11872   lt_compiler_flag="-o out/conftest2.$ac_objext"
11873   # Insert the option either (1) after the last *FLAGS variable, or
11874   # (2) before a word containing "conftest.", or (3) at the end.
11875   # Note that $ac_compile itself does not contain backslashes and begins
11876   # with a dollar sign (not a hyphen), so the echo should work correctly.
11877   lt_compile=`echo "$ac_compile" | $SED \
11878   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11880   -e 's:$: $lt_compiler_flag:'`
11881   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11882   (eval "$lt_compile" 2>out/conftest.err)
11883   ac_status=$?
11884   cat out/conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11887   then
11888     # The compiler can only warn and ignore the option if not recognized
11889     # So say no if there are warnings
11890     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11891     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11892     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11893       lt_cv_prog_compiler_c_o=yes
11894     fi
11895   fi
11896   chmod u+w . 2>&5
11897   $RM conftest*
11898   # SGI C++ compiler will create directory out/ii_files/ for
11899   # template instantiation
11900   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11901   $RM out/* && rmdir out
11902   cd ..
11903   $RM -r conftest
11904   $RM conftest*
11905
11906fi
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11908$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11909
11910
11911
11912
11913hard_links=nottested
11914if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11915  # do not overwrite the value of need_locks provided by the user
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11917$as_echo_n "checking if we can lock with hard links... " >&6; }
11918  hard_links=yes
11919  $RM conftest*
11920  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11921  touch conftest.a
11922  ln conftest.a conftest.b 2>&5 || hard_links=no
11923  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11925$as_echo "$hard_links" >&6; }
11926  if test no = "$hard_links"; then
11927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11928$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11929    need_locks=warn
11930  fi
11931else
11932  need_locks=no
11933fi
11934
11935
11936
11937
11938
11939
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11941$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11942
11943  runpath_var=
11944  allow_undefined_flag=
11945  always_export_symbols=no
11946  archive_cmds=
11947  archive_expsym_cmds=
11948  compiler_needs_object=no
11949  enable_shared_with_static_runtimes=no
11950  export_dynamic_flag_spec=
11951  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11952  hardcode_automatic=no
11953  hardcode_direct=no
11954  hardcode_direct_absolute=no
11955  hardcode_libdir_flag_spec=
11956  hardcode_libdir_separator=
11957  hardcode_minus_L=no
11958  hardcode_shlibpath_var=unsupported
11959  inherit_rpath=no
11960  link_all_deplibs=unknown
11961  module_cmds=
11962  module_expsym_cmds=
11963  old_archive_from_new_cmds=
11964  old_archive_from_expsyms_cmds=
11965  thread_safe_flag_spec=
11966  whole_archive_flag_spec=
11967  # include_expsyms should be a list of space-separated symbols to be *always*
11968  # included in the symbol list
11969  include_expsyms=
11970  # exclude_expsyms can be an extended regexp of symbols to exclude
11971  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11972  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11973  # as well as any symbol that contains 'd'.
11974  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11975  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11976  # platforms (ab)use it in PIC code, but their linkers get confused if
11977  # the symbol is explicitly referenced.  Since portable code cannot
11978  # rely on this symbol name, it's probably fine to never include it in
11979  # preloaded symbol tables.
11980  # Exclude shared library initialization/finalization symbols.
11981  extract_expsyms_cmds=
11982
11983  case $host_os in
11984  cygwin* | mingw* | pw32* | cegcc*)
11985    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11986    # When not using gcc, we currently assume that we are using
11987    # Microsoft Visual C++.
11988    if test yes != "$GCC"; then
11989      with_gnu_ld=no
11990    fi
11991    ;;
11992  interix*)
11993    # we just hope/assume this is gcc and not c89 (= MSVC++)
11994    with_gnu_ld=yes
11995    ;;
11996  openbsd* | bitrig*)
11997    with_gnu_ld=no
11998    ;;
11999  linux* | k*bsd*-gnu | gnu*)
12000    link_all_deplibs=no
12001    ;;
12002  esac
12003
12004  ld_shlibs=yes
12005
12006  # On some targets, GNU ld is compatible enough with the native linker
12007  # that we're better off using the native interface for both.
12008  lt_use_gnu_ld_interface=no
12009  if test yes = "$with_gnu_ld"; then
12010    case $host_os in
12011      aix*)
12012	# The AIX port of GNU ld has always aspired to compatibility
12013	# with the native linker.  However, as the warning in the GNU ld
12014	# block says, versions before 2.19.5* couldn't really create working
12015	# shared libraries, regardless of the interface used.
12016	case `$LD -v 2>&1` in
12017	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12018	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12019	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12020	  *)
12021	    lt_use_gnu_ld_interface=yes
12022	    ;;
12023	esac
12024	;;
12025      *)
12026	lt_use_gnu_ld_interface=yes
12027	;;
12028    esac
12029  fi
12030
12031  if test yes = "$lt_use_gnu_ld_interface"; then
12032    # If archive_cmds runs LD, not CC, wlarc should be empty
12033    wlarc='$wl'
12034
12035    # Set some defaults for GNU ld with shared library support. These
12036    # are reset later if shared libraries are not supported. Putting them
12037    # here allows them to be overridden if necessary.
12038    runpath_var=LD_RUN_PATH
12039    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12040    export_dynamic_flag_spec='$wl--export-dynamic'
12041    # ancient GNU ld didn't support --whole-archive et. al.
12042    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12043      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12044    else
12045      whole_archive_flag_spec=
12046    fi
12047    supports_anon_versioning=no
12048    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12049      *GNU\ gold*) supports_anon_versioning=yes ;;
12050      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12051      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12052      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12053      *\ 2.11.*) ;; # other 2.11 versions
12054      *) supports_anon_versioning=yes ;;
12055    esac
12056
12057    # See if GNU ld supports shared libraries.
12058    case $host_os in
12059    aix[3-9]*)
12060      # On AIX/PPC, the GNU linker is very broken
12061      if test ia64 != "$host_cpu"; then
12062	ld_shlibs=no
12063	cat <<_LT_EOF 1>&2
12064
12065*** Warning: the GNU linker, at least up to release 2.19, is reported
12066*** to be unable to reliably create shared libraries on AIX.
12067*** Therefore, libtool is disabling shared libraries support.  If you
12068*** really care for shared libraries, you may want to install binutils
12069*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12070*** You will then need to restart the configuration process.
12071
12072_LT_EOF
12073      fi
12074      ;;
12075
12076    amigaos*)
12077      case $host_cpu in
12078      powerpc)
12079            # see comment about AmigaOS4 .so support
12080            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12081            archive_expsym_cmds=''
12082        ;;
12083      m68k)
12084            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)'
12085            hardcode_libdir_flag_spec='-L$libdir'
12086            hardcode_minus_L=yes
12087        ;;
12088      esac
12089      ;;
12090
12091    beos*)
12092      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12093	allow_undefined_flag=unsupported
12094	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12095	# support --undefined.  This deserves some investigation.  FIXME
12096	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12097      else
12098	ld_shlibs=no
12099      fi
12100      ;;
12101
12102    cygwin* | mingw* | pw32* | cegcc*)
12103      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12104      # as there is no search path for DLLs.
12105      hardcode_libdir_flag_spec='-L$libdir'
12106      export_dynamic_flag_spec='$wl--export-all-symbols'
12107      allow_undefined_flag=unsupported
12108      always_export_symbols=no
12109      enable_shared_with_static_runtimes=yes
12110      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'
12111      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12112
12113      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12114        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12115	# If the export-symbols file already is a .def file, use it as
12116	# is; otherwise, prepend EXPORTS...
12117	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12118          cp $export_symbols $output_objdir/$soname.def;
12119        else
12120          echo EXPORTS > $output_objdir/$soname.def;
12121          cat $export_symbols >> $output_objdir/$soname.def;
12122        fi~
12123        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12124      else
12125	ld_shlibs=no
12126      fi
12127      ;;
12128
12129    haiku*)
12130      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12131      link_all_deplibs=yes
12132      ;;
12133
12134    os2*)
12135      hardcode_libdir_flag_spec='-L$libdir'
12136      hardcode_minus_L=yes
12137      allow_undefined_flag=unsupported
12138      shrext_cmds=.dll
12139      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12140	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12141	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12142	$ECHO EXPORTS >> $output_objdir/$libname.def~
12143	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12144	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12145	emximp -o $lib $output_objdir/$libname.def'
12146      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12147	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12148	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12149	$ECHO EXPORTS >> $output_objdir/$libname.def~
12150	prefix_cmds="$SED"~
12151	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12152	  prefix_cmds="$prefix_cmds -e 1d";
12153	fi~
12154	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12155	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12156	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12157	emximp -o $lib $output_objdir/$libname.def'
12158      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12159      enable_shared_with_static_runtimes=yes
12160      ;;
12161
12162    interix[3-9]*)
12163      hardcode_direct=no
12164      hardcode_shlibpath_var=no
12165      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12166      export_dynamic_flag_spec='$wl-E'
12167      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12168      # Instead, shared libraries are loaded at an image base (0x10000000 by
12169      # default) and relocated if they conflict, which is a slow very memory
12170      # consuming and fragmenting process.  To avoid this, we pick a random,
12171      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12172      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12173      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12174      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'
12175      ;;
12176
12177    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12178      tmp_diet=no
12179      if test linux-dietlibc = "$host_os"; then
12180	case $cc_basename in
12181	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12182	esac
12183      fi
12184      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12185	 && test no = "$tmp_diet"
12186      then
12187	tmp_addflag=' $pic_flag'
12188	tmp_sharedflag='-shared'
12189	case $cc_basename,$host_cpu in
12190        pgcc*)				# Portland Group C compiler
12191	  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'
12192	  tmp_addflag=' $pic_flag'
12193	  ;;
12194	pgf77* | pgf90* | pgf95* | pgfortran*)
12195					# Portland Group f77 and f90 compilers
12196	  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'
12197	  tmp_addflag=' $pic_flag -Mnomain' ;;
12198	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12199	  tmp_addflag=' -i_dynamic' ;;
12200	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12201	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12202	ifc* | ifort*)			# Intel Fortran compiler
12203	  tmp_addflag=' -nofor_main' ;;
12204	lf95*)				# Lahey Fortran 8.1
12205	  whole_archive_flag_spec=
12206	  tmp_sharedflag='--shared' ;;
12207        nagfor*)                        # NAGFOR 5.3
12208          tmp_sharedflag='-Wl,-shared' ;;
12209	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12210	  tmp_sharedflag='-qmkshrobj'
12211	  tmp_addflag= ;;
12212	nvcc*)	# Cuda Compiler Driver 2.2
12213	  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'
12214	  compiler_needs_object=yes
12215	  ;;
12216	esac
12217	case `$CC -V 2>&1 | sed 5q` in
12218	*Sun\ C*)			# Sun C 5.9
12219	  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'
12220	  compiler_needs_object=yes
12221	  tmp_sharedflag='-G' ;;
12222	*Sun\ F*)			# Sun Fortran 8.3
12223	  tmp_sharedflag='-G' ;;
12224	esac
12225	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12226
12227        if test yes = "$supports_anon_versioning"; then
12228          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12229            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12230            echo "local: *; };" >> $output_objdir/$libname.ver~
12231            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12232        fi
12233
12234	case $cc_basename in
12235	tcc*)
12236	  export_dynamic_flag_spec='-rdynamic'
12237	  ;;
12238	xlf* | bgf* | bgxlf* | mpixlf*)
12239	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12240	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12241	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12242	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12243	  if test yes = "$supports_anon_versioning"; then
12244	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12245              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12246              echo "local: *; };" >> $output_objdir/$libname.ver~
12247              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12248	  fi
12249	  ;;
12250	esac
12251      else
12252        ld_shlibs=no
12253      fi
12254      ;;
12255
12256    netbsd* | netbsdelf*-gnu)
12257      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12258	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12259	wlarc=
12260      else
12261	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12262	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12263      fi
12264      ;;
12265
12266    solaris*)
12267      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12268	ld_shlibs=no
12269	cat <<_LT_EOF 1>&2
12270
12271*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12272*** create shared libraries on Solaris systems.  Therefore, libtool
12273*** is disabling shared libraries support.  We urge you to upgrade GNU
12274*** binutils to release 2.9.1 or newer.  Another option is to modify
12275*** your PATH or compiler configuration so that the native linker is
12276*** used, and then restart.
12277
12278_LT_EOF
12279      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12280	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12281	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12282      else
12283	ld_shlibs=no
12284      fi
12285      ;;
12286
12287    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12288      case `$LD -v 2>&1` in
12289        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12290	ld_shlibs=no
12291	cat <<_LT_EOF 1>&2
12292
12293*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12294*** reliably create shared libraries on SCO systems.  Therefore, libtool
12295*** is disabling shared libraries support.  We urge you to upgrade GNU
12296*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12297*** your PATH or compiler configuration so that the native linker is
12298*** used, and then restart.
12299
12300_LT_EOF
12301	;;
12302	*)
12303	  # For security reasons, it is highly recommended that you always
12304	  # use absolute paths for naming shared libraries, and exclude the
12305	  # DT_RUNPATH tag from executables and libraries.  But doing so
12306	  # requires that you compile everything twice, which is a pain.
12307	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12308	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12309	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12310	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12311	  else
12312	    ld_shlibs=no
12313	  fi
12314	;;
12315      esac
12316      ;;
12317
12318    sunos4*)
12319      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12320      wlarc=
12321      hardcode_direct=yes
12322      hardcode_shlibpath_var=no
12323      ;;
12324
12325    *)
12326      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12327	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12328	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12329      else
12330	ld_shlibs=no
12331      fi
12332      ;;
12333    esac
12334
12335    if test no = "$ld_shlibs"; then
12336      runpath_var=
12337      hardcode_libdir_flag_spec=
12338      export_dynamic_flag_spec=
12339      whole_archive_flag_spec=
12340    fi
12341  else
12342    # PORTME fill in a description of your system's linker (not GNU ld)
12343    case $host_os in
12344    aix3*)
12345      allow_undefined_flag=unsupported
12346      always_export_symbols=yes
12347      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'
12348      # Note: this linker hardcodes the directories in LIBPATH if there
12349      # are no directories specified by -L.
12350      hardcode_minus_L=yes
12351      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12352	# Neither direct hardcoding nor static linking is supported with a
12353	# broken collect2.
12354	hardcode_direct=unsupported
12355      fi
12356      ;;
12357
12358    aix[4-9]*)
12359      if test ia64 = "$host_cpu"; then
12360	# On IA64, the linker does run time linking by default, so we don't
12361	# have to do anything special.
12362	aix_use_runtimelinking=no
12363	exp_sym_flag='-Bexport'
12364	no_entry_flag=
12365      else
12366	# If we're using GNU nm, then we don't want the "-C" option.
12367	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12368	# Without the "-l" option, or with the "-B" option, AIX nm treats
12369	# weak defined symbols like other global defined symbols, whereas
12370	# GNU nm marks them as "W".
12371	# While the 'weak' keyword is ignored in the Export File, we need
12372	# it in the Import File for the 'aix-soname' feature, so we have
12373	# to replace the "-B" option with "-P" for AIX nm.
12374	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12375	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12376	else
12377	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12378	fi
12379	aix_use_runtimelinking=no
12380
12381	# Test if we are trying to use run time linking or normal
12382	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12383	# have runtime linking enabled, and use it for executables.
12384	# For shared libraries, we enable/disable runtime linking
12385	# depending on the kind of the shared library created -
12386	# when "with_aix_soname,aix_use_runtimelinking" is:
12387	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12388	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12389	#            lib.a           static archive
12390	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12391	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12392	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12393	#            lib.a(lib.so.V) shared, rtl:no
12394	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12395	#            lib.a           static archive
12396	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12397	  for ld_flag in $LDFLAGS; do
12398	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12399	    aix_use_runtimelinking=yes
12400	    break
12401	  fi
12402	  done
12403	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12404	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12405	    # so we don't have lib.a shared libs to link our executables.
12406	    # We have to force runtime linking in this case.
12407	    aix_use_runtimelinking=yes
12408	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12409	  fi
12410	  ;;
12411	esac
12412
12413	exp_sym_flag='-bexport'
12414	no_entry_flag='-bnoentry'
12415      fi
12416
12417      # When large executables or shared objects are built, AIX ld can
12418      # have problems creating the table of contents.  If linking a library
12419      # or program results in "error TOC overflow" add -mminimal-toc to
12420      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12421      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12422
12423      archive_cmds=''
12424      hardcode_direct=yes
12425      hardcode_direct_absolute=yes
12426      hardcode_libdir_separator=':'
12427      link_all_deplibs=yes
12428      file_list_spec='$wl-f,'
12429      case $with_aix_soname,$aix_use_runtimelinking in
12430      aix,*) ;; # traditional, no import file
12431      svr4,* | *,yes) # use import file
12432	# The Import File defines what to hardcode.
12433	hardcode_direct=no
12434	hardcode_direct_absolute=no
12435	;;
12436      esac
12437
12438      if test yes = "$GCC"; then
12439	case $host_os in aix4.[012]|aix4.[012].*)
12440	# We only want to do this on AIX 4.2 and lower, the check
12441	# below for broken collect2 doesn't work under 4.3+
12442	  collect2name=`$CC -print-prog-name=collect2`
12443	  if test -f "$collect2name" &&
12444	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12445	  then
12446	  # We have reworked collect2
12447	  :
12448	  else
12449	  # We have old collect2
12450	  hardcode_direct=unsupported
12451	  # It fails to find uninstalled libraries when the uninstalled
12452	  # path is not listed in the libpath.  Setting hardcode_minus_L
12453	  # to unsupported forces relinking
12454	  hardcode_minus_L=yes
12455	  hardcode_libdir_flag_spec='-L$libdir'
12456	  hardcode_libdir_separator=
12457	  fi
12458	  ;;
12459	esac
12460	shared_flag='-shared'
12461	if test yes = "$aix_use_runtimelinking"; then
12462	  shared_flag="$shared_flag "'$wl-G'
12463	fi
12464	# Need to ensure runtime linking is disabled for the traditional
12465	# shared library, or the linker may eventually find shared libraries
12466	# /with/ Import File - we do not want to mix them.
12467	shared_flag_aix='-shared'
12468	shared_flag_svr4='-shared $wl-G'
12469      else
12470	# not using gcc
12471	if test ia64 = "$host_cpu"; then
12472	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12473	# chokes on -Wl,-G. The following line is correct:
12474	  shared_flag='-G'
12475	else
12476	  if test yes = "$aix_use_runtimelinking"; then
12477	    shared_flag='$wl-G'
12478	  else
12479	    shared_flag='$wl-bM:SRE'
12480	  fi
12481	  shared_flag_aix='$wl-bM:SRE'
12482	  shared_flag_svr4='$wl-G'
12483	fi
12484      fi
12485
12486      export_dynamic_flag_spec='$wl-bexpall'
12487      # It seems that -bexpall does not export symbols beginning with
12488      # underscore (_), so it is better to generate a list of symbols to export.
12489      always_export_symbols=yes
12490      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12491	# Warning - without using the other runtime loading flags (-brtl),
12492	# -berok will link without error, but may produce a broken library.
12493	allow_undefined_flag='-berok'
12494        # Determine the default libpath from the value encoded in an
12495        # empty executable.
12496        if test set = "${lt_cv_aix_libpath+set}"; then
12497  aix_libpath=$lt_cv_aix_libpath
12498else
12499  if ${lt_cv_aix_libpath_+:} false; then :
12500  $as_echo_n "(cached) " >&6
12501else
12502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503/* end confdefs.h.  */
12504
12505int
12506main ()
12507{
12508
12509  ;
12510  return 0;
12511}
12512_ACEOF
12513if ac_fn_c_try_link "$LINENO"; then :
12514
12515  lt_aix_libpath_sed='
12516      /Import File Strings/,/^$/ {
12517	  /^0/ {
12518	      s/^0  *\([^ ]*\) *$/\1/
12519	      p
12520	  }
12521      }'
12522  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12523  # Check for a 64-bit object if we didn't find anything.
12524  if test -z "$lt_cv_aix_libpath_"; then
12525    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12526  fi
12527fi
12528rm -f core conftest.err conftest.$ac_objext \
12529    conftest$ac_exeext conftest.$ac_ext
12530  if test -z "$lt_cv_aix_libpath_"; then
12531    lt_cv_aix_libpath_=/usr/lib:/lib
12532  fi
12533
12534fi
12535
12536  aix_libpath=$lt_cv_aix_libpath_
12537fi
12538
12539        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12540        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12541      else
12542	if test ia64 = "$host_cpu"; then
12543	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12544	  allow_undefined_flag="-z nodefs"
12545	  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"
12546	else
12547	 # Determine the default libpath from the value encoded in an
12548	 # empty executable.
12549	 if test set = "${lt_cv_aix_libpath+set}"; then
12550  aix_libpath=$lt_cv_aix_libpath
12551else
12552  if ${lt_cv_aix_libpath_+:} false; then :
12553  $as_echo_n "(cached) " >&6
12554else
12555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557
12558int
12559main ()
12560{
12561
12562  ;
12563  return 0;
12564}
12565_ACEOF
12566if ac_fn_c_try_link "$LINENO"; then :
12567
12568  lt_aix_libpath_sed='
12569      /Import File Strings/,/^$/ {
12570	  /^0/ {
12571	      s/^0  *\([^ ]*\) *$/\1/
12572	      p
12573	  }
12574      }'
12575  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12576  # Check for a 64-bit object if we didn't find anything.
12577  if test -z "$lt_cv_aix_libpath_"; then
12578    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579  fi
12580fi
12581rm -f core conftest.err conftest.$ac_objext \
12582    conftest$ac_exeext conftest.$ac_ext
12583  if test -z "$lt_cv_aix_libpath_"; then
12584    lt_cv_aix_libpath_=/usr/lib:/lib
12585  fi
12586
12587fi
12588
12589  aix_libpath=$lt_cv_aix_libpath_
12590fi
12591
12592	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12593	  # Warning - without using the other run time loading flags,
12594	  # -berok will link without error, but may produce a broken library.
12595	  no_undefined_flag=' $wl-bernotok'
12596	  allow_undefined_flag=' $wl-berok'
12597	  if test yes = "$with_gnu_ld"; then
12598	    # We only use this code for GNU lds that support --whole-archive.
12599	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12600	  else
12601	    # Exported symbols can be pulled into shared objects from archives
12602	    whole_archive_flag_spec='$convenience'
12603	  fi
12604	  archive_cmds_need_lc=yes
12605	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12606	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12607	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12608	  if test svr4 != "$with_aix_soname"; then
12609	    # This is similar to how AIX traditionally builds its shared libraries.
12610	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12611	  fi
12612	  if test aix != "$with_aix_soname"; then
12613	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12614	  else
12615	    # used by -dlpreopen to get the symbols
12616	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12617	  fi
12618	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12619	fi
12620      fi
12621      ;;
12622
12623    amigaos*)
12624      case $host_cpu in
12625      powerpc)
12626            # see comment about AmigaOS4 .so support
12627            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12628            archive_expsym_cmds=''
12629        ;;
12630      m68k)
12631            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)'
12632            hardcode_libdir_flag_spec='-L$libdir'
12633            hardcode_minus_L=yes
12634        ;;
12635      esac
12636      ;;
12637
12638    bsdi[45]*)
12639      export_dynamic_flag_spec=-rdynamic
12640      ;;
12641
12642    cygwin* | mingw* | pw32* | cegcc*)
12643      # When not using gcc, we currently assume that we are using
12644      # Microsoft Visual C++.
12645      # hardcode_libdir_flag_spec is actually meaningless, as there is
12646      # no search path for DLLs.
12647      case $cc_basename in
12648      cl*)
12649	# Native MSVC
12650	hardcode_libdir_flag_spec=' '
12651	allow_undefined_flag=unsupported
12652	always_export_symbols=yes
12653	file_list_spec='@'
12654	# Tell ltmain to make .lib files, not .a files.
12655	libext=lib
12656	# Tell ltmain to make .dll files, not .so files.
12657	shrext_cmds=.dll
12658	# FIXME: Setting linknames here is a bad hack.
12659	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12660	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12661            cp "$export_symbols" "$output_objdir/$soname.def";
12662            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12663          else
12664            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12665          fi~
12666          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12667          linknames='
12668	# The linker will not automatically build a static lib if we build a DLL.
12669	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12670	enable_shared_with_static_runtimes=yes
12671	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12672	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12673	# Don't use ranlib
12674	old_postinstall_cmds='chmod 644 $oldlib'
12675	postlink_cmds='lt_outputfile="@OUTPUT@"~
12676          lt_tool_outputfile="@TOOL_OUTPUT@"~
12677          case $lt_outputfile in
12678            *.exe|*.EXE) ;;
12679            *)
12680              lt_outputfile=$lt_outputfile.exe
12681              lt_tool_outputfile=$lt_tool_outputfile.exe
12682              ;;
12683          esac~
12684          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12685            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12686            $RM "$lt_outputfile.manifest";
12687          fi'
12688	;;
12689      *)
12690	# Assume MSVC wrapper
12691	hardcode_libdir_flag_spec=' '
12692	allow_undefined_flag=unsupported
12693	# Tell ltmain to make .lib files, not .a files.
12694	libext=lib
12695	# Tell ltmain to make .dll files, not .so files.
12696	shrext_cmds=.dll
12697	# FIXME: Setting linknames here is a bad hack.
12698	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12699	# The linker will automatically build a .lib file if we build a DLL.
12700	old_archive_from_new_cmds='true'
12701	# FIXME: Should let the user specify the lib program.
12702	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12703	enable_shared_with_static_runtimes=yes
12704	;;
12705      esac
12706      ;;
12707
12708    darwin* | rhapsody*)
12709
12710
12711  archive_cmds_need_lc=no
12712  hardcode_direct=no
12713  hardcode_automatic=yes
12714  hardcode_shlibpath_var=unsupported
12715  if test yes = "$lt_cv_ld_force_load"; then
12716    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\"`'
12717
12718  else
12719    whole_archive_flag_spec=''
12720  fi
12721  link_all_deplibs=yes
12722  allow_undefined_flag=$_lt_dar_allow_undefined
12723  case $cc_basename in
12724     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12725     *) _lt_dar_can_shared=$GCC ;;
12726  esac
12727  if test yes = "$_lt_dar_can_shared"; then
12728    output_verbose_link_cmd=func_echo_all
12729    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12730    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12731    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"
12732    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"
12733
12734  else
12735  ld_shlibs=no
12736  fi
12737
12738      ;;
12739
12740    dgux*)
12741      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12742      hardcode_libdir_flag_spec='-L$libdir'
12743      hardcode_shlibpath_var=no
12744      ;;
12745
12746    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12747    # support.  Future versions do this automatically, but an explicit c++rt0.o
12748    # does not break anything, and helps significantly (at the cost of a little
12749    # extra space).
12750    freebsd2.2*)
12751      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12752      hardcode_libdir_flag_spec='-R$libdir'
12753      hardcode_direct=yes
12754      hardcode_shlibpath_var=no
12755      ;;
12756
12757    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12758    freebsd2.*)
12759      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12760      hardcode_direct=yes
12761      hardcode_minus_L=yes
12762      hardcode_shlibpath_var=no
12763      ;;
12764
12765    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12766    freebsd* | dragonfly*)
12767      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12768      hardcode_libdir_flag_spec='-R$libdir'
12769      hardcode_direct=yes
12770      hardcode_shlibpath_var=no
12771      ;;
12772
12773    hpux9*)
12774      if test yes = "$GCC"; then
12775	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12776      else
12777	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12778      fi
12779      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12780      hardcode_libdir_separator=:
12781      hardcode_direct=yes
12782
12783      # hardcode_minus_L: Not really in the search PATH,
12784      # but as the default location of the library.
12785      hardcode_minus_L=yes
12786      export_dynamic_flag_spec='$wl-E'
12787      ;;
12788
12789    hpux10*)
12790      if test yes,no = "$GCC,$with_gnu_ld"; then
12791	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792      else
12793	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12794      fi
12795      if test no = "$with_gnu_ld"; then
12796	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12797	hardcode_libdir_separator=:
12798	hardcode_direct=yes
12799	hardcode_direct_absolute=yes
12800	export_dynamic_flag_spec='$wl-E'
12801	# hardcode_minus_L: Not really in the search PATH,
12802	# but as the default location of the library.
12803	hardcode_minus_L=yes
12804      fi
12805      ;;
12806
12807    hpux11*)
12808      if test yes,no = "$GCC,$with_gnu_ld"; then
12809	case $host_cpu in
12810	hppa*64*)
12811	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12812	  ;;
12813	ia64*)
12814	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12815	  ;;
12816	*)
12817	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12818	  ;;
12819	esac
12820      else
12821	case $host_cpu in
12822	hppa*64*)
12823	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12824	  ;;
12825	ia64*)
12826	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12827	  ;;
12828	*)
12829
12830	  # Older versions of the 11.00 compiler do not understand -b yet
12831	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12832	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12833$as_echo_n "checking if $CC understands -b... " >&6; }
12834if ${lt_cv_prog_compiler__b+:} false; then :
12835  $as_echo_n "(cached) " >&6
12836else
12837  lt_cv_prog_compiler__b=no
12838   save_LDFLAGS=$LDFLAGS
12839   LDFLAGS="$LDFLAGS -b"
12840   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12841   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12842     # The linker can only warn and ignore the option if not recognized
12843     # So say no if there are warnings
12844     if test -s conftest.err; then
12845       # Append any errors to the config.log.
12846       cat conftest.err 1>&5
12847       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12848       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12849       if diff conftest.exp conftest.er2 >/dev/null; then
12850         lt_cv_prog_compiler__b=yes
12851       fi
12852     else
12853       lt_cv_prog_compiler__b=yes
12854     fi
12855   fi
12856   $RM -r conftest*
12857   LDFLAGS=$save_LDFLAGS
12858
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12861$as_echo "$lt_cv_prog_compiler__b" >&6; }
12862
12863if test yes = "$lt_cv_prog_compiler__b"; then
12864    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12865else
12866    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12867fi
12868
12869	  ;;
12870	esac
12871      fi
12872      if test no = "$with_gnu_ld"; then
12873	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12874	hardcode_libdir_separator=:
12875
12876	case $host_cpu in
12877	hppa*64*|ia64*)
12878	  hardcode_direct=no
12879	  hardcode_shlibpath_var=no
12880	  ;;
12881	*)
12882	  hardcode_direct=yes
12883	  hardcode_direct_absolute=yes
12884	  export_dynamic_flag_spec='$wl-E'
12885
12886	  # hardcode_minus_L: Not really in the search PATH,
12887	  # but as the default location of the library.
12888	  hardcode_minus_L=yes
12889	  ;;
12890	esac
12891      fi
12892      ;;
12893
12894    irix5* | irix6* | nonstopux*)
12895      if test yes = "$GCC"; then
12896	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'
12897	# Try to use the -exported_symbol ld option, if it does not
12898	# work, assume that -exports_file does not work either and
12899	# implicitly export all symbols.
12900	# This should be the same for all languages, so no per-tag cache variable.
12901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12902$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12903if ${lt_cv_irix_exported_symbol+:} false; then :
12904  $as_echo_n "(cached) " >&6
12905else
12906  save_LDFLAGS=$LDFLAGS
12907	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12908	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909/* end confdefs.h.  */
12910int foo (void) { return 0; }
12911_ACEOF
12912if ac_fn_c_try_link "$LINENO"; then :
12913  lt_cv_irix_exported_symbol=yes
12914else
12915  lt_cv_irix_exported_symbol=no
12916fi
12917rm -f core conftest.err conftest.$ac_objext \
12918    conftest$ac_exeext conftest.$ac_ext
12919           LDFLAGS=$save_LDFLAGS
12920fi
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12922$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12923	if test yes = "$lt_cv_irix_exported_symbol"; then
12924          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'
12925	fi
12926	link_all_deplibs=no
12927      else
12928	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'
12929	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'
12930      fi
12931      archive_cmds_need_lc='no'
12932      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12933      hardcode_libdir_separator=:
12934      inherit_rpath=yes
12935      link_all_deplibs=yes
12936      ;;
12937
12938    linux*)
12939      case $cc_basename in
12940      tcc*)
12941	# Fabrice Bellard et al's Tiny C Compiler
12942	ld_shlibs=yes
12943	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12944	;;
12945      esac
12946      ;;
12947
12948    netbsd* | netbsdelf*-gnu)
12949      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12950	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12951      else
12952	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12953      fi
12954      hardcode_libdir_flag_spec='-R$libdir'
12955      hardcode_direct=yes
12956      hardcode_shlibpath_var=no
12957      ;;
12958
12959    newsos6)
12960      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12961      hardcode_direct=yes
12962      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12963      hardcode_libdir_separator=:
12964      hardcode_shlibpath_var=no
12965      ;;
12966
12967    *nto* | *qnx*)
12968      ;;
12969
12970    openbsd* | bitrig*)
12971      if test -f /usr/libexec/ld.so; then
12972	hardcode_direct=yes
12973	hardcode_shlibpath_var=no
12974	hardcode_direct_absolute=yes
12975	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12976	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12977	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12978	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12979	  export_dynamic_flag_spec='$wl-E'
12980	else
12981	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12982	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12983	fi
12984      else
12985	ld_shlibs=no
12986      fi
12987      ;;
12988
12989    os2*)
12990      hardcode_libdir_flag_spec='-L$libdir'
12991      hardcode_minus_L=yes
12992      allow_undefined_flag=unsupported
12993      shrext_cmds=.dll
12994      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12995	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12996	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12997	$ECHO EXPORTS >> $output_objdir/$libname.def~
12998	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12999	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13000	emximp -o $lib $output_objdir/$libname.def'
13001      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13002	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13003	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13004	$ECHO EXPORTS >> $output_objdir/$libname.def~
13005	prefix_cmds="$SED"~
13006	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13007	  prefix_cmds="$prefix_cmds -e 1d";
13008	fi~
13009	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13010	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13011	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13012	emximp -o $lib $output_objdir/$libname.def'
13013      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13014      enable_shared_with_static_runtimes=yes
13015      ;;
13016
13017    osf3*)
13018      if test yes = "$GCC"; then
13019	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13020	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'
13021      else
13022	allow_undefined_flag=' -expect_unresolved \*'
13023	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'
13024      fi
13025      archive_cmds_need_lc='no'
13026      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13027      hardcode_libdir_separator=:
13028      ;;
13029
13030    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13031      if test yes = "$GCC"; then
13032	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13033	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'
13034	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13035      else
13036	allow_undefined_flag=' -expect_unresolved \*'
13037	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'
13038	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~
13039          $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'
13040
13041	# Both c and cxx compiler support -rpath directly
13042	hardcode_libdir_flag_spec='-rpath $libdir'
13043      fi
13044      archive_cmds_need_lc='no'
13045      hardcode_libdir_separator=:
13046      ;;
13047
13048    solaris*)
13049      no_undefined_flag=' -z defs'
13050      if test yes = "$GCC"; then
13051	wlarc='$wl'
13052	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13053	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13054          $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'
13055      else
13056	case `$CC -V 2>&1` in
13057	*"Compilers 5.0"*)
13058	  wlarc=''
13059	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13060	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13061            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13062	  ;;
13063	*)
13064	  wlarc='$wl'
13065	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13066	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13067            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13068	  ;;
13069	esac
13070      fi
13071      hardcode_libdir_flag_spec='-R$libdir'
13072      hardcode_shlibpath_var=no
13073      case $host_os in
13074      solaris2.[0-5] | solaris2.[0-5].*) ;;
13075      *)
13076	# The compiler driver will combine and reorder linker options,
13077	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13078	# but is careful enough not to reorder.
13079	# Supported since Solaris 2.6 (maybe 2.5.1?)
13080	if test yes = "$GCC"; then
13081	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13082	else
13083	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13084	fi
13085	;;
13086      esac
13087      link_all_deplibs=yes
13088      ;;
13089
13090    sunos4*)
13091      if test sequent = "$host_vendor"; then
13092	# Use $CC to link under sequent, because it throws in some extra .o
13093	# files that make .init and .fini sections work.
13094	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13095      else
13096	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13097      fi
13098      hardcode_libdir_flag_spec='-L$libdir'
13099      hardcode_direct=yes
13100      hardcode_minus_L=yes
13101      hardcode_shlibpath_var=no
13102      ;;
13103
13104    sysv4)
13105      case $host_vendor in
13106	sni)
13107	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13108	  hardcode_direct=yes # is this really true???
13109	;;
13110	siemens)
13111	  ## LD is ld it makes a PLAMLIB
13112	  ## CC just makes a GrossModule.
13113	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13114	  reload_cmds='$CC -r -o $output$reload_objs'
13115	  hardcode_direct=no
13116        ;;
13117	motorola)
13118	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13120	;;
13121      esac
13122      runpath_var='LD_RUN_PATH'
13123      hardcode_shlibpath_var=no
13124      ;;
13125
13126    sysv4.3*)
13127      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128      hardcode_shlibpath_var=no
13129      export_dynamic_flag_spec='-Bexport'
13130      ;;
13131
13132    sysv4*MP*)
13133      if test -d /usr/nec; then
13134	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13135	hardcode_shlibpath_var=no
13136	runpath_var=LD_RUN_PATH
13137	hardcode_runpath_var=yes
13138	ld_shlibs=yes
13139      fi
13140      ;;
13141
13142    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13143      no_undefined_flag='$wl-z,text'
13144      archive_cmds_need_lc=no
13145      hardcode_shlibpath_var=no
13146      runpath_var='LD_RUN_PATH'
13147
13148      if test yes = "$GCC"; then
13149	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13150	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13151      else
13152	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13153	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154      fi
13155      ;;
13156
13157    sysv5* | sco3.2v5* | sco5v6*)
13158      # Note: We CANNOT use -z defs as we might desire, because we do not
13159      # link with -lc, and that would cause any symbols used from libc to
13160      # always be unresolved, which means just about no library would
13161      # ever link correctly.  If we're not using GNU ld we use -z text
13162      # though, which does catch some bad symbols but isn't as heavy-handed
13163      # as -z defs.
13164      no_undefined_flag='$wl-z,text'
13165      allow_undefined_flag='$wl-z,nodefs'
13166      archive_cmds_need_lc=no
13167      hardcode_shlibpath_var=no
13168      hardcode_libdir_flag_spec='$wl-R,$libdir'
13169      hardcode_libdir_separator=':'
13170      link_all_deplibs=yes
13171      export_dynamic_flag_spec='$wl-Bexport'
13172      runpath_var='LD_RUN_PATH'
13173
13174      if test yes = "$GCC"; then
13175	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13176	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13177      else
13178	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13179	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13180      fi
13181      ;;
13182
13183    uts4*)
13184      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13185      hardcode_libdir_flag_spec='-L$libdir'
13186      hardcode_shlibpath_var=no
13187      ;;
13188
13189    *)
13190      ld_shlibs=no
13191      ;;
13192    esac
13193
13194    if test sni = "$host_vendor"; then
13195      case $host in
13196      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13197	export_dynamic_flag_spec='$wl-Blargedynsym'
13198	;;
13199      esac
13200    fi
13201  fi
13202
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13204$as_echo "$ld_shlibs" >&6; }
13205test no = "$ld_shlibs" && can_build_shared=no
13206
13207with_gnu_ld=$with_gnu_ld
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223#
13224# Do we need to explicitly link libc?
13225#
13226case "x$archive_cmds_need_lc" in
13227x|xyes)
13228  # Assume -lc should be added
13229  archive_cmds_need_lc=yes
13230
13231  if test yes,yes = "$GCC,$enable_shared"; then
13232    case $archive_cmds in
13233    *'~'*)
13234      # FIXME: we may have to deal with multi-command sequences.
13235      ;;
13236    '$CC '*)
13237      # Test whether the compiler implicitly links with -lc since on some
13238      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13239      # to ld, don't add -lc before -lgcc.
13240      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13241$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13242if ${lt_cv_archive_cmds_need_lc+:} false; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  $RM conftest*
13246	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13247
13248	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13249  (eval $ac_compile) 2>&5
13250  ac_status=$?
13251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13252  test $ac_status = 0; } 2>conftest.err; then
13253	  soname=conftest
13254	  lib=conftest
13255	  libobjs=conftest.$ac_objext
13256	  deplibs=
13257	  wl=$lt_prog_compiler_wl
13258	  pic_flag=$lt_prog_compiler_pic
13259	  compiler_flags=-v
13260	  linker_flags=-v
13261	  verstring=
13262	  output_objdir=.
13263	  libname=conftest
13264	  lt_save_allow_undefined_flag=$allow_undefined_flag
13265	  allow_undefined_flag=
13266	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13267  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13268  ac_status=$?
13269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13270  test $ac_status = 0; }
13271	  then
13272	    lt_cv_archive_cmds_need_lc=no
13273	  else
13274	    lt_cv_archive_cmds_need_lc=yes
13275	  fi
13276	  allow_undefined_flag=$lt_save_allow_undefined_flag
13277	else
13278	  cat conftest.err 1>&5
13279	fi
13280	$RM conftest*
13281
13282fi
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13284$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13285      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13286      ;;
13287    esac
13288  fi
13289  ;;
13290esac
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13444$as_echo_n "checking dynamic linker characteristics... " >&6; }
13445
13446if test yes = "$GCC"; then
13447  case $host_os in
13448    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13449    *) lt_awk_arg='/^libraries:/' ;;
13450  esac
13451  case $host_os in
13452    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13453    *) lt_sed_strip_eq='s|=/|/|g' ;;
13454  esac
13455  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13456  case $lt_search_path_spec in
13457  *\;*)
13458    # if the path contains ";" then we assume it to be the separator
13459    # otherwise default to the standard path separator (i.e. ":") - it is
13460    # assumed that no part of a normal pathname contains ";" but that should
13461    # okay in the real world where ";" in dirpaths is itself problematic.
13462    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13463    ;;
13464  *)
13465    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13466    ;;
13467  esac
13468  # Ok, now we have the path, separated by spaces, we can step through it
13469  # and add multilib dir if necessary...
13470  lt_tmp_lt_search_path_spec=
13471  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13472  # ...but if some path component already ends with the multilib dir we assume
13473  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13474  case "$lt_multi_os_dir; $lt_search_path_spec " in
13475  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13476    lt_multi_os_dir=
13477    ;;
13478  esac
13479  for lt_sys_path in $lt_search_path_spec; do
13480    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13481      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13482    elif test -n "$lt_multi_os_dir"; then
13483      test -d "$lt_sys_path" && \
13484	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13485    fi
13486  done
13487  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13488BEGIN {RS = " "; FS = "/|\n";} {
13489  lt_foo = "";
13490  lt_count = 0;
13491  for (lt_i = NF; lt_i > 0; lt_i--) {
13492    if ($lt_i != "" && $lt_i != ".") {
13493      if ($lt_i == "..") {
13494        lt_count++;
13495      } else {
13496        if (lt_count == 0) {
13497          lt_foo = "/" $lt_i lt_foo;
13498        } else {
13499          lt_count--;
13500        }
13501      }
13502    }
13503  }
13504  if (lt_foo != "") { lt_freq[lt_foo]++; }
13505  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13506}'`
13507  # AWK program above erroneously prepends '/' to C:/dos/paths
13508  # for these hosts.
13509  case $host_os in
13510    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13511      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13512  esac
13513  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13514else
13515  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13516fi
13517library_names_spec=
13518libname_spec='lib$name'
13519soname_spec=
13520shrext_cmds=.so
13521postinstall_cmds=
13522postuninstall_cmds=
13523finish_cmds=
13524finish_eval=
13525shlibpath_var=
13526shlibpath_overrides_runpath=unknown
13527version_type=none
13528dynamic_linker="$host_os ld.so"
13529sys_lib_dlsearch_path_spec="/lib /usr/lib"
13530need_lib_prefix=unknown
13531hardcode_into_libs=no
13532
13533# when you set need_version to no, make sure it does not cause -set_version
13534# flags to be left without arguments
13535need_version=unknown
13536
13537
13538
13539case $host_os in
13540aix3*)
13541  version_type=linux # correct to gnu/linux during the next big refactor
13542  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13543  shlibpath_var=LIBPATH
13544
13545  # AIX 3 has no versioning support, so we append a major version to the name.
13546  soname_spec='$libname$release$shared_ext$major'
13547  ;;
13548
13549aix[4-9]*)
13550  version_type=linux # correct to gnu/linux during the next big refactor
13551  need_lib_prefix=no
13552  need_version=no
13553  hardcode_into_libs=yes
13554  if test ia64 = "$host_cpu"; then
13555    # AIX 5 supports IA64
13556    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13557    shlibpath_var=LD_LIBRARY_PATH
13558  else
13559    # With GCC up to 2.95.x, collect2 would create an import file
13560    # for dependence libraries.  The import file would start with
13561    # the line '#! .'.  This would cause the generated library to
13562    # depend on '.', always an invalid library.  This was fixed in
13563    # development snapshots of GCC prior to 3.0.
13564    case $host_os in
13565      aix4 | aix4.[01] | aix4.[01].*)
13566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13567	   echo ' yes '
13568	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13569	:
13570      else
13571	can_build_shared=no
13572      fi
13573      ;;
13574    esac
13575    # Using Import Files as archive members, it is possible to support
13576    # filename-based versioning of shared library archives on AIX. While
13577    # this would work for both with and without runtime linking, it will
13578    # prevent static linking of such archives. So we do filename-based
13579    # shared library versioning with .so extension only, which is used
13580    # when both runtime linking and shared linking is enabled.
13581    # Unfortunately, runtime linking may impact performance, so we do
13582    # not want this to be the default eventually. Also, we use the
13583    # versioned .so libs for executables only if there is the -brtl
13584    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13585    # To allow for filename-based versioning support, we need to create
13586    # libNAME.so.V as an archive file, containing:
13587    # *) an Import File, referring to the versioned filename of the
13588    #    archive as well as the shared archive member, telling the
13589    #    bitwidth (32 or 64) of that shared object, and providing the
13590    #    list of exported symbols of that shared object, eventually
13591    #    decorated with the 'weak' keyword
13592    # *) the shared object with the F_LOADONLY flag set, to really avoid
13593    #    it being seen by the linker.
13594    # At run time we better use the real file rather than another symlink,
13595    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13596
13597    case $with_aix_soname,$aix_use_runtimelinking in
13598    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13599    # soname into executable. Probably we can add versioning support to
13600    # collect2, so additional links can be useful in future.
13601    aix,yes) # traditional libtool
13602      dynamic_linker='AIX unversionable lib.so'
13603      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13604      # instead of lib<name>.a to let people know that these are not
13605      # typical AIX shared libraries.
13606      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13607      ;;
13608    aix,no) # traditional AIX only
13609      dynamic_linker='AIX lib.a(lib.so.V)'
13610      # We preserve .a as extension for shared libraries through AIX4.2
13611      # and later when we are not doing run time linking.
13612      library_names_spec='$libname$release.a $libname.a'
13613      soname_spec='$libname$release$shared_ext$major'
13614      ;;
13615    svr4,*) # full svr4 only
13616      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13617      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13618      # We do not specify a path in Import Files, so LIBPATH fires.
13619      shlibpath_overrides_runpath=yes
13620      ;;
13621    *,yes) # both, prefer svr4
13622      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13623      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13624      # unpreferred sharedlib libNAME.a needs extra handling
13625      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13626      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13627      # We do not specify a path in Import Files, so LIBPATH fires.
13628      shlibpath_overrides_runpath=yes
13629      ;;
13630    *,no) # both, prefer aix
13631      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13632      library_names_spec='$libname$release.a $libname.a'
13633      soname_spec='$libname$release$shared_ext$major'
13634      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13635      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13636      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13637      ;;
13638    esac
13639    shlibpath_var=LIBPATH
13640  fi
13641  ;;
13642
13643amigaos*)
13644  case $host_cpu in
13645  powerpc)
13646    # Since July 2007 AmigaOS4 officially supports .so libraries.
13647    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13648    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13649    ;;
13650  m68k)
13651    library_names_spec='$libname.ixlibrary $libname.a'
13652    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13653    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13654    ;;
13655  esac
13656  ;;
13657
13658beos*)
13659  library_names_spec='$libname$shared_ext'
13660  dynamic_linker="$host_os ld.so"
13661  shlibpath_var=LIBRARY_PATH
13662  ;;
13663
13664bsdi[45]*)
13665  version_type=linux # correct to gnu/linux during the next big refactor
13666  need_version=no
13667  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13668  soname_spec='$libname$release$shared_ext$major'
13669  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13670  shlibpath_var=LD_LIBRARY_PATH
13671  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13672  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13673  # the default ld.so.conf also contains /usr/contrib/lib and
13674  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13675  # libtool to hard-code these into programs
13676  ;;
13677
13678cygwin* | mingw* | pw32* | cegcc*)
13679  version_type=windows
13680  shrext_cmds=.dll
13681  need_version=no
13682  need_lib_prefix=no
13683
13684  case $GCC,$cc_basename in
13685  yes,*)
13686    # gcc
13687    library_names_spec='$libname.dll.a'
13688    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13689    postinstall_cmds='base_file=`basename \$file`~
13690      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13691      dldir=$destdir/`dirname \$dlpath`~
13692      test -d \$dldir || mkdir -p \$dldir~
13693      $install_prog $dir/$dlname \$dldir/$dlname~
13694      chmod a+x \$dldir/$dlname~
13695      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13696        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13697      fi'
13698    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13699      dlpath=$dir/\$dldll~
13700       $RM \$dlpath'
13701    shlibpath_overrides_runpath=yes
13702
13703    case $host_os in
13704    cygwin*)
13705      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13706      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13707
13708      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13709      ;;
13710    mingw* | cegcc*)
13711      # MinGW DLLs use traditional 'lib' prefix
13712      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13713      ;;
13714    pw32*)
13715      # pw32 DLLs use 'pw' prefix rather than 'lib'
13716      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13717      ;;
13718    esac
13719    dynamic_linker='Win32 ld.exe'
13720    ;;
13721
13722  *,cl*)
13723    # Native MSVC
13724    libname_spec='$name'
13725    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13726    library_names_spec='$libname.dll.lib'
13727
13728    case $build_os in
13729    mingw*)
13730      sys_lib_search_path_spec=
13731      lt_save_ifs=$IFS
13732      IFS=';'
13733      for lt_path in $LIB
13734      do
13735        IFS=$lt_save_ifs
13736        # Let DOS variable expansion print the short 8.3 style file name.
13737        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13738        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13739      done
13740      IFS=$lt_save_ifs
13741      # Convert to MSYS style.
13742      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13743      ;;
13744    cygwin*)
13745      # Convert to unix form, then to dos form, then back to unix form
13746      # but this time dos style (no spaces!) so that the unix form looks
13747      # like /cygdrive/c/PROGRA~1:/cygdr...
13748      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13749      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13750      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13751      ;;
13752    *)
13753      sys_lib_search_path_spec=$LIB
13754      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13755        # It is most probably a Windows format PATH.
13756        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13757      else
13758        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13759      fi
13760      # FIXME: find the short name or the path components, as spaces are
13761      # common. (e.g. "Program Files" -> "PROGRA~1")
13762      ;;
13763    esac
13764
13765    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13766    postinstall_cmds='base_file=`basename \$file`~
13767      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13768      dldir=$destdir/`dirname \$dlpath`~
13769      test -d \$dldir || mkdir -p \$dldir~
13770      $install_prog $dir/$dlname \$dldir/$dlname'
13771    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13772      dlpath=$dir/\$dldll~
13773       $RM \$dlpath'
13774    shlibpath_overrides_runpath=yes
13775    dynamic_linker='Win32 link.exe'
13776    ;;
13777
13778  *)
13779    # Assume MSVC wrapper
13780    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13781    dynamic_linker='Win32 ld.exe'
13782    ;;
13783  esac
13784  # FIXME: first we should search . and the directory the executable is in
13785  shlibpath_var=PATH
13786  ;;
13787
13788darwin* | rhapsody*)
13789  dynamic_linker="$host_os dyld"
13790  version_type=darwin
13791  need_lib_prefix=no
13792  need_version=no
13793  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13794  soname_spec='$libname$release$major$shared_ext'
13795  shlibpath_overrides_runpath=yes
13796  shlibpath_var=DYLD_LIBRARY_PATH
13797  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13798
13799  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13800  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13801  ;;
13802
13803dgux*)
13804  version_type=linux # correct to gnu/linux during the next big refactor
13805  need_lib_prefix=no
13806  need_version=no
13807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13808  soname_spec='$libname$release$shared_ext$major'
13809  shlibpath_var=LD_LIBRARY_PATH
13810  ;;
13811
13812freebsd* | dragonfly*)
13813  # DragonFly does not have aout.  When/if they implement a new
13814  # versioning mechanism, adjust this.
13815  if test -x /usr/bin/objformat; then
13816    objformat=`/usr/bin/objformat`
13817  else
13818    case $host_os in
13819    freebsd[23].*) objformat=aout ;;
13820    *) objformat=elf ;;
13821    esac
13822  fi
13823  version_type=freebsd-$objformat
13824  case $version_type in
13825    freebsd-elf*)
13826      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13827      soname_spec='$libname$release$shared_ext$major'
13828      need_version=no
13829      need_lib_prefix=no
13830      ;;
13831    freebsd-*)
13832      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13833      need_version=yes
13834      ;;
13835  esac
13836  shlibpath_var=LD_LIBRARY_PATH
13837  case $host_os in
13838  freebsd2.*)
13839    shlibpath_overrides_runpath=yes
13840    ;;
13841  freebsd3.[01]* | freebsdelf3.[01]*)
13842    shlibpath_overrides_runpath=yes
13843    hardcode_into_libs=yes
13844    ;;
13845  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13846  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13847    shlibpath_overrides_runpath=no
13848    hardcode_into_libs=yes
13849    ;;
13850  *) # from 4.6 on, and DragonFly
13851    shlibpath_overrides_runpath=yes
13852    hardcode_into_libs=yes
13853    ;;
13854  esac
13855  ;;
13856
13857haiku*)
13858  version_type=linux # correct to gnu/linux during the next big refactor
13859  need_lib_prefix=no
13860  need_version=no
13861  dynamic_linker="$host_os runtime_loader"
13862  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13863  soname_spec='$libname$release$shared_ext$major'
13864  shlibpath_var=LIBRARY_PATH
13865  shlibpath_overrides_runpath=no
13866  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13867  hardcode_into_libs=yes
13868  ;;
13869
13870hpux9* | hpux10* | hpux11*)
13871  # Give a soname corresponding to the major version so that dld.sl refuses to
13872  # link against other versions.
13873  version_type=sunos
13874  need_lib_prefix=no
13875  need_version=no
13876  case $host_cpu in
13877  ia64*)
13878    shrext_cmds='.so'
13879    hardcode_into_libs=yes
13880    dynamic_linker="$host_os dld.so"
13881    shlibpath_var=LD_LIBRARY_PATH
13882    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13883    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13884    soname_spec='$libname$release$shared_ext$major'
13885    if test 32 = "$HPUX_IA64_MODE"; then
13886      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13887      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13888    else
13889      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13890      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13891    fi
13892    ;;
13893  hppa*64*)
13894    shrext_cmds='.sl'
13895    hardcode_into_libs=yes
13896    dynamic_linker="$host_os dld.sl"
13897    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13898    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13899    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13900    soname_spec='$libname$release$shared_ext$major'
13901    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13902    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13903    ;;
13904  *)
13905    shrext_cmds='.sl'
13906    dynamic_linker="$host_os dld.sl"
13907    shlibpath_var=SHLIB_PATH
13908    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13909    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13910    soname_spec='$libname$release$shared_ext$major'
13911    ;;
13912  esac
13913  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13914  postinstall_cmds='chmod 555 $lib'
13915  # or fails outright, so override atomically:
13916  install_override_mode=555
13917  ;;
13918
13919interix[3-9]*)
13920  version_type=linux # correct to gnu/linux during the next big refactor
13921  need_lib_prefix=no
13922  need_version=no
13923  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13924  soname_spec='$libname$release$shared_ext$major'
13925  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13926  shlibpath_var=LD_LIBRARY_PATH
13927  shlibpath_overrides_runpath=no
13928  hardcode_into_libs=yes
13929  ;;
13930
13931irix5* | irix6* | nonstopux*)
13932  case $host_os in
13933    nonstopux*) version_type=nonstopux ;;
13934    *)
13935	if test yes = "$lt_cv_prog_gnu_ld"; then
13936		version_type=linux # correct to gnu/linux during the next big refactor
13937	else
13938		version_type=irix
13939	fi ;;
13940  esac
13941  need_lib_prefix=no
13942  need_version=no
13943  soname_spec='$libname$release$shared_ext$major'
13944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13945  case $host_os in
13946  irix5* | nonstopux*)
13947    libsuff= shlibsuff=
13948    ;;
13949  *)
13950    case $LD in # libtool.m4 will add one of these switches to LD
13951    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13952      libsuff= shlibsuff= libmagic=32-bit;;
13953    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13954      libsuff=32 shlibsuff=N32 libmagic=N32;;
13955    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13956      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13957    *) libsuff= shlibsuff= libmagic=never-match;;
13958    esac
13959    ;;
13960  esac
13961  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13962  shlibpath_overrides_runpath=no
13963  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13964  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13965  hardcode_into_libs=yes
13966  ;;
13967
13968# No shared lib support for Linux oldld, aout, or coff.
13969linux*oldld* | linux*aout* | linux*coff*)
13970  dynamic_linker=no
13971  ;;
13972
13973linux*android*)
13974  version_type=none # Android doesn't support versioned libraries.
13975  need_lib_prefix=no
13976  need_version=no
13977  library_names_spec='$libname$release$shared_ext'
13978  soname_spec='$libname$release$shared_ext'
13979  finish_cmds=
13980  shlibpath_var=LD_LIBRARY_PATH
13981  shlibpath_overrides_runpath=yes
13982
13983  # This implies no fast_install, which is unacceptable.
13984  # Some rework will be needed to allow for fast_install
13985  # before this can be enabled.
13986  hardcode_into_libs=yes
13987
13988  dynamic_linker='Android linker'
13989  # Don't embed -rpath directories since the linker doesn't support them.
13990  hardcode_libdir_flag_spec='-L$libdir'
13991  ;;
13992
13993# This must be glibc/ELF.
13994linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13995  version_type=linux # correct to gnu/linux during the next big refactor
13996  need_lib_prefix=no
13997  need_version=no
13998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13999  soname_spec='$libname$release$shared_ext$major'
14000  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14001  shlibpath_var=LD_LIBRARY_PATH
14002  shlibpath_overrides_runpath=no
14003
14004  # Some binutils ld are patched to set DT_RUNPATH
14005  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14006  $as_echo_n "(cached) " >&6
14007else
14008  lt_cv_shlibpath_overrides_runpath=no
14009    save_LDFLAGS=$LDFLAGS
14010    save_libdir=$libdir
14011    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14012	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014/* end confdefs.h.  */
14015
14016int
14017main ()
14018{
14019
14020  ;
14021  return 0;
14022}
14023_ACEOF
14024if ac_fn_c_try_link "$LINENO"; then :
14025  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14026  lt_cv_shlibpath_overrides_runpath=yes
14027fi
14028fi
14029rm -f core conftest.err conftest.$ac_objext \
14030    conftest$ac_exeext conftest.$ac_ext
14031    LDFLAGS=$save_LDFLAGS
14032    libdir=$save_libdir
14033
14034fi
14035
14036  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14037
14038  # This implies no fast_install, which is unacceptable.
14039  # Some rework will be needed to allow for fast_install
14040  # before this can be enabled.
14041  hardcode_into_libs=yes
14042
14043  # Ideally, we could use ldconfig to report *all* directores which are
14044  # searched for libraries, however this is still not possible.  Aside from not
14045  # being certain /sbin/ldconfig is available, command
14046  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14047  # even though it is searched at run-time.  Try to do the best guess by
14048  # appending ld.so.conf contents (and includes) to the search path.
14049  if test -f /etc/ld.so.conf; then
14050    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' ' '`
14051    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14052  fi
14053
14054  # We used to test for /lib/ld.so.1 and disable shared libraries on
14055  # powerpc, because MkLinux only supported shared libraries with the
14056  # GNU dynamic linker.  Since this was broken with cross compilers,
14057  # most powerpc-linux boxes support dynamic linking these days and
14058  # people can always --disable-shared, the test was removed, and we
14059  # assume the GNU/Linux dynamic linker is in use.
14060  dynamic_linker='GNU/Linux ld.so'
14061  ;;
14062
14063netbsdelf*-gnu)
14064  version_type=linux
14065  need_lib_prefix=no
14066  need_version=no
14067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14068  soname_spec='${libname}${release}${shared_ext}$major'
14069  shlibpath_var=LD_LIBRARY_PATH
14070  shlibpath_overrides_runpath=no
14071  hardcode_into_libs=yes
14072  dynamic_linker='NetBSD ld.elf_so'
14073  ;;
14074
14075netbsd*)
14076  version_type=sunos
14077  need_lib_prefix=no
14078  need_version=no
14079  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14081    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14082    dynamic_linker='NetBSD (a.out) ld.so'
14083  else
14084    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14085    soname_spec='$libname$release$shared_ext$major'
14086    dynamic_linker='NetBSD ld.elf_so'
14087  fi
14088  shlibpath_var=LD_LIBRARY_PATH
14089  shlibpath_overrides_runpath=yes
14090  hardcode_into_libs=yes
14091  ;;
14092
14093newsos6)
14094  version_type=linux # correct to gnu/linux during the next big refactor
14095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14096  shlibpath_var=LD_LIBRARY_PATH
14097  shlibpath_overrides_runpath=yes
14098  ;;
14099
14100*nto* | *qnx*)
14101  version_type=qnx
14102  need_lib_prefix=no
14103  need_version=no
14104  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14105  soname_spec='$libname$release$shared_ext$major'
14106  shlibpath_var=LD_LIBRARY_PATH
14107  shlibpath_overrides_runpath=no
14108  hardcode_into_libs=yes
14109  dynamic_linker='ldqnx.so'
14110  ;;
14111
14112openbsd* | bitrig*)
14113  version_type=sunos
14114  sys_lib_dlsearch_path_spec=/usr/lib
14115  need_lib_prefix=no
14116  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14117    need_version=no
14118  else
14119    need_version=yes
14120  fi
14121  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14122  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14123  shlibpath_var=LD_LIBRARY_PATH
14124  shlibpath_overrides_runpath=yes
14125  ;;
14126
14127os2*)
14128  libname_spec='$name'
14129  version_type=windows
14130  shrext_cmds=.dll
14131  need_version=no
14132  need_lib_prefix=no
14133  # OS/2 can only load a DLL with a base name of 8 characters or less.
14134  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14135    v=$($ECHO $release$versuffix | tr -d .-);
14136    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14137    $ECHO $n$v`$shared_ext'
14138  library_names_spec='${libname}_dll.$libext'
14139  dynamic_linker='OS/2 ld.exe'
14140  shlibpath_var=BEGINLIBPATH
14141  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14142  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14143  postinstall_cmds='base_file=`basename \$file`~
14144    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14145    dldir=$destdir/`dirname \$dlpath`~
14146    test -d \$dldir || mkdir -p \$dldir~
14147    $install_prog $dir/$dlname \$dldir/$dlname~
14148    chmod a+x \$dldir/$dlname~
14149    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14150      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14151    fi'
14152  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14153    dlpath=$dir/\$dldll~
14154    $RM \$dlpath'
14155  ;;
14156
14157osf3* | osf4* | osf5*)
14158  version_type=osf
14159  need_lib_prefix=no
14160  need_version=no
14161  soname_spec='$libname$release$shared_ext$major'
14162  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14163  shlibpath_var=LD_LIBRARY_PATH
14164  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14165  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14166  ;;
14167
14168rdos*)
14169  dynamic_linker=no
14170  ;;
14171
14172solaris*)
14173  version_type=linux # correct to gnu/linux during the next big refactor
14174  need_lib_prefix=no
14175  need_version=no
14176  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14177  soname_spec='$libname$release$shared_ext$major'
14178  shlibpath_var=LD_LIBRARY_PATH
14179  shlibpath_overrides_runpath=yes
14180  hardcode_into_libs=yes
14181  # ldd complains unless libraries are executable
14182  postinstall_cmds='chmod +x $lib'
14183  ;;
14184
14185sunos4*)
14186  version_type=sunos
14187  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14188  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14189  shlibpath_var=LD_LIBRARY_PATH
14190  shlibpath_overrides_runpath=yes
14191  if test yes = "$with_gnu_ld"; then
14192    need_lib_prefix=no
14193  fi
14194  need_version=yes
14195  ;;
14196
14197sysv4 | sysv4.3*)
14198  version_type=linux # correct to gnu/linux during the next big refactor
14199  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14200  soname_spec='$libname$release$shared_ext$major'
14201  shlibpath_var=LD_LIBRARY_PATH
14202  case $host_vendor in
14203    sni)
14204      shlibpath_overrides_runpath=no
14205      need_lib_prefix=no
14206      runpath_var=LD_RUN_PATH
14207      ;;
14208    siemens)
14209      need_lib_prefix=no
14210      ;;
14211    motorola)
14212      need_lib_prefix=no
14213      need_version=no
14214      shlibpath_overrides_runpath=no
14215      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14216      ;;
14217  esac
14218  ;;
14219
14220sysv4*MP*)
14221  if test -d /usr/nec; then
14222    version_type=linux # correct to gnu/linux during the next big refactor
14223    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14224    soname_spec='$libname$shared_ext.$major'
14225    shlibpath_var=LD_LIBRARY_PATH
14226  fi
14227  ;;
14228
14229sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14230  version_type=sco
14231  need_lib_prefix=no
14232  need_version=no
14233  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14234  soname_spec='$libname$release$shared_ext$major'
14235  shlibpath_var=LD_LIBRARY_PATH
14236  shlibpath_overrides_runpath=yes
14237  hardcode_into_libs=yes
14238  if test yes = "$with_gnu_ld"; then
14239    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14240  else
14241    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14242    case $host_os in
14243      sco3.2v5*)
14244        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14245	;;
14246    esac
14247  fi
14248  sys_lib_dlsearch_path_spec='/usr/lib'
14249  ;;
14250
14251tpf*)
14252  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14253  version_type=linux # correct to gnu/linux during the next big refactor
14254  need_lib_prefix=no
14255  need_version=no
14256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14257  shlibpath_var=LD_LIBRARY_PATH
14258  shlibpath_overrides_runpath=no
14259  hardcode_into_libs=yes
14260  ;;
14261
14262uts4*)
14263  version_type=linux # correct to gnu/linux during the next big refactor
14264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14265  soname_spec='$libname$release$shared_ext$major'
14266  shlibpath_var=LD_LIBRARY_PATH
14267  ;;
14268
14269*)
14270  dynamic_linker=no
14271  ;;
14272esac
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14274$as_echo "$dynamic_linker" >&6; }
14275test no = "$dynamic_linker" && can_build_shared=no
14276
14277variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14278if test yes = "$GCC"; then
14279  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14280fi
14281
14282if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14283  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14284fi
14285
14286if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14287  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14288fi
14289
14290# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14291configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14292
14293# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14294func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14295
14296# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14297configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14396$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14397hardcode_action=
14398if test -n "$hardcode_libdir_flag_spec" ||
14399   test -n "$runpath_var" ||
14400   test yes = "$hardcode_automatic"; then
14401
14402  # We can hardcode non-existent directories.
14403  if test no != "$hardcode_direct" &&
14404     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14405     # have to relink, otherwise we might link with an installed library
14406     # when we should be linking with a yet-to-be-installed one
14407     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14408     test no != "$hardcode_minus_L"; then
14409    # Linking always hardcodes the temporary library directory.
14410    hardcode_action=relink
14411  else
14412    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14413    hardcode_action=immediate
14414  fi
14415else
14416  # We cannot hardcode anything, or else we can only hardcode existing
14417  # directories.
14418  hardcode_action=unsupported
14419fi
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14421$as_echo "$hardcode_action" >&6; }
14422
14423if test relink = "$hardcode_action" ||
14424   test yes = "$inherit_rpath"; then
14425  # Fast installation is not supported
14426  enable_fast_install=no
14427elif test yes = "$shlibpath_overrides_runpath" ||
14428     test no = "$enable_shared"; then
14429  # Fast installation is not necessary
14430  enable_fast_install=needless
14431fi
14432
14433
14434
14435
14436
14437
14438  if test yes != "$enable_dlopen"; then
14439  enable_dlopen=unknown
14440  enable_dlopen_self=unknown
14441  enable_dlopen_self_static=unknown
14442else
14443  lt_cv_dlopen=no
14444  lt_cv_dlopen_libs=
14445
14446  case $host_os in
14447  beos*)
14448    lt_cv_dlopen=load_add_on
14449    lt_cv_dlopen_libs=
14450    lt_cv_dlopen_self=yes
14451    ;;
14452
14453  mingw* | pw32* | cegcc*)
14454    lt_cv_dlopen=LoadLibrary
14455    lt_cv_dlopen_libs=
14456    ;;
14457
14458  cygwin*)
14459    lt_cv_dlopen=dlopen
14460    lt_cv_dlopen_libs=
14461    ;;
14462
14463  darwin*)
14464    # if libdl is installed we need to link against it
14465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14466$as_echo_n "checking for dlopen in -ldl... " >&6; }
14467if ${ac_cv_lib_dl_dlopen+:} false; then :
14468  $as_echo_n "(cached) " >&6
14469else
14470  ac_check_lib_save_LIBS=$LIBS
14471LIBS="-ldl  $LIBS"
14472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473/* end confdefs.h.  */
14474
14475/* Override any GCC internal prototype to avoid an error.
14476   Use char because int might match the return type of a GCC
14477   builtin and then its argument prototype would still apply.  */
14478#ifdef __cplusplus
14479extern "C"
14480#endif
14481char dlopen ();
14482int
14483main ()
14484{
14485return dlopen ();
14486  ;
14487  return 0;
14488}
14489_ACEOF
14490if ac_fn_c_try_link "$LINENO"; then :
14491  ac_cv_lib_dl_dlopen=yes
14492else
14493  ac_cv_lib_dl_dlopen=no
14494fi
14495rm -f core conftest.err conftest.$ac_objext \
14496    conftest$ac_exeext conftest.$ac_ext
14497LIBS=$ac_check_lib_save_LIBS
14498fi
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14500$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14501if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14502  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14503else
14504
14505    lt_cv_dlopen=dyld
14506    lt_cv_dlopen_libs=
14507    lt_cv_dlopen_self=yes
14508
14509fi
14510
14511    ;;
14512
14513  tpf*)
14514    # Don't try to run any link tests for TPF.  We know it's impossible
14515    # because TPF is a cross-compiler, and we know how we open DSOs.
14516    lt_cv_dlopen=dlopen
14517    lt_cv_dlopen_libs=
14518    lt_cv_dlopen_self=no
14519    ;;
14520
14521  *)
14522    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14523if test "x$ac_cv_func_shl_load" = xyes; then :
14524  lt_cv_dlopen=shl_load
14525else
14526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14527$as_echo_n "checking for shl_load in -ldld... " >&6; }
14528if ${ac_cv_lib_dld_shl_load+:} false; then :
14529  $as_echo_n "(cached) " >&6
14530else
14531  ac_check_lib_save_LIBS=$LIBS
14532LIBS="-ldld  $LIBS"
14533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534/* end confdefs.h.  */
14535
14536/* Override any GCC internal prototype to avoid an error.
14537   Use char because int might match the return type of a GCC
14538   builtin and then its argument prototype would still apply.  */
14539#ifdef __cplusplus
14540extern "C"
14541#endif
14542char shl_load ();
14543int
14544main ()
14545{
14546return shl_load ();
14547  ;
14548  return 0;
14549}
14550_ACEOF
14551if ac_fn_c_try_link "$LINENO"; then :
14552  ac_cv_lib_dld_shl_load=yes
14553else
14554  ac_cv_lib_dld_shl_load=no
14555fi
14556rm -f core conftest.err conftest.$ac_objext \
14557    conftest$ac_exeext conftest.$ac_ext
14558LIBS=$ac_check_lib_save_LIBS
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14561$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14562if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14563  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14564else
14565  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14566if test "x$ac_cv_func_dlopen" = xyes; then :
14567  lt_cv_dlopen=dlopen
14568else
14569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14570$as_echo_n "checking for dlopen in -ldl... " >&6; }
14571if ${ac_cv_lib_dl_dlopen+:} false; then :
14572  $as_echo_n "(cached) " >&6
14573else
14574  ac_check_lib_save_LIBS=$LIBS
14575LIBS="-ldl  $LIBS"
14576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577/* end confdefs.h.  */
14578
14579/* Override any GCC internal prototype to avoid an error.
14580   Use char because int might match the return type of a GCC
14581   builtin and then its argument prototype would still apply.  */
14582#ifdef __cplusplus
14583extern "C"
14584#endif
14585char dlopen ();
14586int
14587main ()
14588{
14589return dlopen ();
14590  ;
14591  return 0;
14592}
14593_ACEOF
14594if ac_fn_c_try_link "$LINENO"; then :
14595  ac_cv_lib_dl_dlopen=yes
14596else
14597  ac_cv_lib_dl_dlopen=no
14598fi
14599rm -f core conftest.err conftest.$ac_objext \
14600    conftest$ac_exeext conftest.$ac_ext
14601LIBS=$ac_check_lib_save_LIBS
14602fi
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14604$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14605if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14606  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14607else
14608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14609$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14610if ${ac_cv_lib_svld_dlopen+:} false; then :
14611  $as_echo_n "(cached) " >&6
14612else
14613  ac_check_lib_save_LIBS=$LIBS
14614LIBS="-lsvld  $LIBS"
14615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617
14618/* Override any GCC internal prototype to avoid an error.
14619   Use char because int might match the return type of a GCC
14620   builtin and then its argument prototype would still apply.  */
14621#ifdef __cplusplus
14622extern "C"
14623#endif
14624char dlopen ();
14625int
14626main ()
14627{
14628return dlopen ();
14629  ;
14630  return 0;
14631}
14632_ACEOF
14633if ac_fn_c_try_link "$LINENO"; then :
14634  ac_cv_lib_svld_dlopen=yes
14635else
14636  ac_cv_lib_svld_dlopen=no
14637fi
14638rm -f core conftest.err conftest.$ac_objext \
14639    conftest$ac_exeext conftest.$ac_ext
14640LIBS=$ac_check_lib_save_LIBS
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14643$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14644if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14645  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14646else
14647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14648$as_echo_n "checking for dld_link in -ldld... " >&6; }
14649if ${ac_cv_lib_dld_dld_link+:} false; then :
14650  $as_echo_n "(cached) " >&6
14651else
14652  ac_check_lib_save_LIBS=$LIBS
14653LIBS="-ldld  $LIBS"
14654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655/* end confdefs.h.  */
14656
14657/* Override any GCC internal prototype to avoid an error.
14658   Use char because int might match the return type of a GCC
14659   builtin and then its argument prototype would still apply.  */
14660#ifdef __cplusplus
14661extern "C"
14662#endif
14663char dld_link ();
14664int
14665main ()
14666{
14667return dld_link ();
14668  ;
14669  return 0;
14670}
14671_ACEOF
14672if ac_fn_c_try_link "$LINENO"; then :
14673  ac_cv_lib_dld_dld_link=yes
14674else
14675  ac_cv_lib_dld_dld_link=no
14676fi
14677rm -f core conftest.err conftest.$ac_objext \
14678    conftest$ac_exeext conftest.$ac_ext
14679LIBS=$ac_check_lib_save_LIBS
14680fi
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14682$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14683if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14684  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14685fi
14686
14687
14688fi
14689
14690
14691fi
14692
14693
14694fi
14695
14696
14697fi
14698
14699
14700fi
14701
14702    ;;
14703  esac
14704
14705  if test no = "$lt_cv_dlopen"; then
14706    enable_dlopen=no
14707  else
14708    enable_dlopen=yes
14709  fi
14710
14711  case $lt_cv_dlopen in
14712  dlopen)
14713    save_CPPFLAGS=$CPPFLAGS
14714    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14715
14716    save_LDFLAGS=$LDFLAGS
14717    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14718
14719    save_LIBS=$LIBS
14720    LIBS="$lt_cv_dlopen_libs $LIBS"
14721
14722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14723$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14724if ${lt_cv_dlopen_self+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  	  if test yes = "$cross_compiling"; then :
14728  lt_cv_dlopen_self=cross
14729else
14730  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14731  lt_status=$lt_dlunknown
14732  cat > conftest.$ac_ext <<_LT_EOF
14733#line $LINENO "configure"
14734#include "confdefs.h"
14735
14736#if HAVE_DLFCN_H
14737#include <dlfcn.h>
14738#endif
14739
14740#include <stdio.h>
14741
14742#ifdef RTLD_GLOBAL
14743#  define LT_DLGLOBAL		RTLD_GLOBAL
14744#else
14745#  ifdef DL_GLOBAL
14746#    define LT_DLGLOBAL		DL_GLOBAL
14747#  else
14748#    define LT_DLGLOBAL		0
14749#  endif
14750#endif
14751
14752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14753   find out it does not work in some platform. */
14754#ifndef LT_DLLAZY_OR_NOW
14755#  ifdef RTLD_LAZY
14756#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14757#  else
14758#    ifdef DL_LAZY
14759#      define LT_DLLAZY_OR_NOW		DL_LAZY
14760#    else
14761#      ifdef RTLD_NOW
14762#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14763#      else
14764#        ifdef DL_NOW
14765#          define LT_DLLAZY_OR_NOW	DL_NOW
14766#        else
14767#          define LT_DLLAZY_OR_NOW	0
14768#        endif
14769#      endif
14770#    endif
14771#  endif
14772#endif
14773
14774/* When -fvisibility=hidden is used, assume the code has been annotated
14775   correspondingly for the symbols needed.  */
14776#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14777int fnord () __attribute__((visibility("default")));
14778#endif
14779
14780int fnord () { return 42; }
14781int main ()
14782{
14783  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14784  int status = $lt_dlunknown;
14785
14786  if (self)
14787    {
14788      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14789      else
14790        {
14791	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14792          else puts (dlerror ());
14793	}
14794      /* dlclose (self); */
14795    }
14796  else
14797    puts (dlerror ());
14798
14799  return status;
14800}
14801_LT_EOF
14802  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14803  (eval $ac_link) 2>&5
14804  ac_status=$?
14805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14807    (./conftest; exit; ) >&5 2>/dev/null
14808    lt_status=$?
14809    case x$lt_status in
14810      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14811      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14812      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14813    esac
14814  else :
14815    # compilation failed
14816    lt_cv_dlopen_self=no
14817  fi
14818fi
14819rm -fr conftest*
14820
14821
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14824$as_echo "$lt_cv_dlopen_self" >&6; }
14825
14826    if test yes = "$lt_cv_dlopen_self"; then
14827      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14828      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14829$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14830if ${lt_cv_dlopen_self_static+:} false; then :
14831  $as_echo_n "(cached) " >&6
14832else
14833  	  if test yes = "$cross_compiling"; then :
14834  lt_cv_dlopen_self_static=cross
14835else
14836  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14837  lt_status=$lt_dlunknown
14838  cat > conftest.$ac_ext <<_LT_EOF
14839#line $LINENO "configure"
14840#include "confdefs.h"
14841
14842#if HAVE_DLFCN_H
14843#include <dlfcn.h>
14844#endif
14845
14846#include <stdio.h>
14847
14848#ifdef RTLD_GLOBAL
14849#  define LT_DLGLOBAL		RTLD_GLOBAL
14850#else
14851#  ifdef DL_GLOBAL
14852#    define LT_DLGLOBAL		DL_GLOBAL
14853#  else
14854#    define LT_DLGLOBAL		0
14855#  endif
14856#endif
14857
14858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14859   find out it does not work in some platform. */
14860#ifndef LT_DLLAZY_OR_NOW
14861#  ifdef RTLD_LAZY
14862#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14863#  else
14864#    ifdef DL_LAZY
14865#      define LT_DLLAZY_OR_NOW		DL_LAZY
14866#    else
14867#      ifdef RTLD_NOW
14868#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14869#      else
14870#        ifdef DL_NOW
14871#          define LT_DLLAZY_OR_NOW	DL_NOW
14872#        else
14873#          define LT_DLLAZY_OR_NOW	0
14874#        endif
14875#      endif
14876#    endif
14877#  endif
14878#endif
14879
14880/* When -fvisibility=hidden is used, assume the code has been annotated
14881   correspondingly for the symbols needed.  */
14882#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14883int fnord () __attribute__((visibility("default")));
14884#endif
14885
14886int fnord () { return 42; }
14887int main ()
14888{
14889  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14890  int status = $lt_dlunknown;
14891
14892  if (self)
14893    {
14894      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14895      else
14896        {
14897	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14898          else puts (dlerror ());
14899	}
14900      /* dlclose (self); */
14901    }
14902  else
14903    puts (dlerror ());
14904
14905  return status;
14906}
14907_LT_EOF
14908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14909  (eval $ac_link) 2>&5
14910  ac_status=$?
14911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14912  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14913    (./conftest; exit; ) >&5 2>/dev/null
14914    lt_status=$?
14915    case x$lt_status in
14916      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14917      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14918      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14919    esac
14920  else :
14921    # compilation failed
14922    lt_cv_dlopen_self_static=no
14923  fi
14924fi
14925rm -fr conftest*
14926
14927
14928fi
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14930$as_echo "$lt_cv_dlopen_self_static" >&6; }
14931    fi
14932
14933    CPPFLAGS=$save_CPPFLAGS
14934    LDFLAGS=$save_LDFLAGS
14935    LIBS=$save_LIBS
14936    ;;
14937  esac
14938
14939  case $lt_cv_dlopen_self in
14940  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14941  *) enable_dlopen_self=unknown ;;
14942  esac
14943
14944  case $lt_cv_dlopen_self_static in
14945  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14946  *) enable_dlopen_self_static=unknown ;;
14947  esac
14948fi
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966striplib=
14967old_striplib=
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14969$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14970if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14971  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14972  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14974$as_echo "yes" >&6; }
14975else
14976# FIXME - insert some real tests, host_os isn't really good enough
14977  case $host_os in
14978  darwin*)
14979    if test -n "$STRIP"; then
14980      striplib="$STRIP -x"
14981      old_striplib="$STRIP -S"
14982      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983$as_echo "yes" >&6; }
14984    else
14985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14986$as_echo "no" >&6; }
14987    fi
14988    ;;
14989  *)
14990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991$as_echo "no" >&6; }
14992    ;;
14993  esac
14994fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007  # Report what library types will actually be built
15008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15009$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15011$as_echo "$can_build_shared" >&6; }
15012
15013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15014$as_echo_n "checking whether to build shared libraries... " >&6; }
15015  test no = "$can_build_shared" && enable_shared=no
15016
15017  # On AIX, shared libraries and static libraries use the same namespace, and
15018  # are all built from PIC.
15019  case $host_os in
15020  aix3*)
15021    test yes = "$enable_shared" && enable_static=no
15022    if test -n "$RANLIB"; then
15023      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15024      postinstall_cmds='$RANLIB $lib'
15025    fi
15026    ;;
15027
15028  aix[4-9]*)
15029    if test ia64 != "$host_cpu"; then
15030      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15031      yes,aix,yes) ;;			# shared object as lib.so file only
15032      yes,svr4,*) ;;			# shared object as lib.so archive member only
15033      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15034      esac
15035    fi
15036    ;;
15037  esac
15038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15039$as_echo "$enable_shared" >&6; }
15040
15041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15042$as_echo_n "checking whether to build static libraries... " >&6; }
15043  # Make sure either enable_shared or enable_static is yes.
15044  test yes = "$enable_shared" || enable_static=yes
15045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15046$as_echo "$enable_static" >&6; }
15047
15048
15049
15050
15051fi
15052ac_ext=cpp
15053ac_cpp='$CXXCPP $CPPFLAGS'
15054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15057
15058CC=$lt_save_CC
15059
15060      if test -n "$CXX" && ( test no != "$CXX" &&
15061    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15062    (test g++ != "$CXX"))); then
15063  ac_ext=cpp
15064ac_cpp='$CXXCPP $CPPFLAGS'
15065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15069$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15070if test -z "$CXXCPP"; then
15071  if ${ac_cv_prog_CXXCPP+:} false; then :
15072  $as_echo_n "(cached) " >&6
15073else
15074      # Double quotes because CXXCPP needs to be expanded
15075    for CXXCPP in "$CXX -E" "/lib/cpp"
15076    do
15077      ac_preproc_ok=false
15078for ac_cxx_preproc_warn_flag in '' yes
15079do
15080  # Use a header file that comes with gcc, so configuring glibc
15081  # with a fresh cross-compiler works.
15082  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15083  # <limits.h> exists even on freestanding compilers.
15084  # On the NeXT, cc -E runs the code through the compiler's parser,
15085  # not just through cpp. "Syntax error" is here to catch this case.
15086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087/* end confdefs.h.  */
15088#ifdef __STDC__
15089# include <limits.h>
15090#else
15091# include <assert.h>
15092#endif
15093		     Syntax error
15094_ACEOF
15095if ac_fn_cxx_try_cpp "$LINENO"; then :
15096
15097else
15098  # Broken: fails on valid input.
15099continue
15100fi
15101rm -f conftest.err conftest.i conftest.$ac_ext
15102
15103  # OK, works on sane cases.  Now check whether nonexistent headers
15104  # can be detected and how.
15105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106/* end confdefs.h.  */
15107#include <ac_nonexistent.h>
15108_ACEOF
15109if ac_fn_cxx_try_cpp "$LINENO"; then :
15110  # Broken: success on invalid input.
15111continue
15112else
15113  # Passes both tests.
15114ac_preproc_ok=:
15115break
15116fi
15117rm -f conftest.err conftest.i conftest.$ac_ext
15118
15119done
15120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15121rm -f conftest.i conftest.err conftest.$ac_ext
15122if $ac_preproc_ok; then :
15123  break
15124fi
15125
15126    done
15127    ac_cv_prog_CXXCPP=$CXXCPP
15128
15129fi
15130  CXXCPP=$ac_cv_prog_CXXCPP
15131else
15132  ac_cv_prog_CXXCPP=$CXXCPP
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15135$as_echo "$CXXCPP" >&6; }
15136ac_preproc_ok=false
15137for ac_cxx_preproc_warn_flag in '' yes
15138do
15139  # Use a header file that comes with gcc, so configuring glibc
15140  # with a fresh cross-compiler works.
15141  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15142  # <limits.h> exists even on freestanding compilers.
15143  # On the NeXT, cc -E runs the code through the compiler's parser,
15144  # not just through cpp. "Syntax error" is here to catch this case.
15145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147#ifdef __STDC__
15148# include <limits.h>
15149#else
15150# include <assert.h>
15151#endif
15152		     Syntax error
15153_ACEOF
15154if ac_fn_cxx_try_cpp "$LINENO"; then :
15155
15156else
15157  # Broken: fails on valid input.
15158continue
15159fi
15160rm -f conftest.err conftest.i conftest.$ac_ext
15161
15162  # OK, works on sane cases.  Now check whether nonexistent headers
15163  # can be detected and how.
15164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165/* end confdefs.h.  */
15166#include <ac_nonexistent.h>
15167_ACEOF
15168if ac_fn_cxx_try_cpp "$LINENO"; then :
15169  # Broken: success on invalid input.
15170continue
15171else
15172  # Passes both tests.
15173ac_preproc_ok=:
15174break
15175fi
15176rm -f conftest.err conftest.i conftest.$ac_ext
15177
15178done
15179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15180rm -f conftest.i conftest.err conftest.$ac_ext
15181if $ac_preproc_ok; then :
15182
15183else
15184  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15186as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15187See \`config.log' for more details" "$LINENO" 5; }
15188fi
15189
15190ac_ext=cpp
15191ac_cpp='$CXXCPP $CPPFLAGS'
15192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15195
15196else
15197  _lt_caught_CXX_error=yes
15198fi
15199
15200ac_ext=cpp
15201ac_cpp='$CXXCPP $CPPFLAGS'
15202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15205
15206archive_cmds_need_lc_CXX=no
15207allow_undefined_flag_CXX=
15208always_export_symbols_CXX=no
15209archive_expsym_cmds_CXX=
15210compiler_needs_object_CXX=no
15211export_dynamic_flag_spec_CXX=
15212hardcode_direct_CXX=no
15213hardcode_direct_absolute_CXX=no
15214hardcode_libdir_flag_spec_CXX=
15215hardcode_libdir_separator_CXX=
15216hardcode_minus_L_CXX=no
15217hardcode_shlibpath_var_CXX=unsupported
15218hardcode_automatic_CXX=no
15219inherit_rpath_CXX=no
15220module_cmds_CXX=
15221module_expsym_cmds_CXX=
15222link_all_deplibs_CXX=unknown
15223old_archive_cmds_CXX=$old_archive_cmds
15224reload_flag_CXX=$reload_flag
15225reload_cmds_CXX=$reload_cmds
15226no_undefined_flag_CXX=
15227whole_archive_flag_spec_CXX=
15228enable_shared_with_static_runtimes_CXX=no
15229
15230# Source file extension for C++ test sources.
15231ac_ext=cpp
15232
15233# Object file extension for compiled C++ test sources.
15234objext=o
15235objext_CXX=$objext
15236
15237# No sense in running all these tests if we already determined that
15238# the CXX compiler isn't working.  Some variables (like enable_shared)
15239# are currently assumed to apply to all compilers on this platform,
15240# and will be corrupted by setting them based on a non-working compiler.
15241if test yes != "$_lt_caught_CXX_error"; then
15242  # Code to be used in simple compile tests
15243  lt_simple_compile_test_code="int some_variable = 0;"
15244
15245  # Code to be used in simple link tests
15246  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15247
15248  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15249
15250
15251
15252
15253
15254
15255# If no C compiler was specified, use CC.
15256LTCC=${LTCC-"$CC"}
15257
15258# If no C compiler flags were specified, use CFLAGS.
15259LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15260
15261# Allow CC to be a program name with arguments.
15262compiler=$CC
15263
15264
15265  # save warnings/boilerplate of simple test code
15266  ac_outfile=conftest.$ac_objext
15267echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15268eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15269_lt_compiler_boilerplate=`cat conftest.err`
15270$RM conftest*
15271
15272  ac_outfile=conftest.$ac_objext
15273echo "$lt_simple_link_test_code" >conftest.$ac_ext
15274eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15275_lt_linker_boilerplate=`cat conftest.err`
15276$RM -r conftest*
15277
15278
15279  # Allow CC to be a program name with arguments.
15280  lt_save_CC=$CC
15281  lt_save_CFLAGS=$CFLAGS
15282  lt_save_LD=$LD
15283  lt_save_GCC=$GCC
15284  GCC=$GXX
15285  lt_save_with_gnu_ld=$with_gnu_ld
15286  lt_save_path_LD=$lt_cv_path_LD
15287  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15288    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15289  else
15290    $as_unset lt_cv_prog_gnu_ld
15291  fi
15292  if test -n "${lt_cv_path_LDCXX+set}"; then
15293    lt_cv_path_LD=$lt_cv_path_LDCXX
15294  else
15295    $as_unset lt_cv_path_LD
15296  fi
15297  test -z "${LDCXX+set}" || LD=$LDCXX
15298  CC=${CXX-"c++"}
15299  CFLAGS=$CXXFLAGS
15300  compiler=$CC
15301  compiler_CXX=$CC
15302  func_cc_basename $compiler
15303cc_basename=$func_cc_basename_result
15304
15305
15306  if test -n "$compiler"; then
15307    # We don't want -fno-exception when compiling C++ code, so set the
15308    # no_builtin_flag separately
15309    if test yes = "$GXX"; then
15310      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15311    else
15312      lt_prog_compiler_no_builtin_flag_CXX=
15313    fi
15314
15315    if test yes = "$GXX"; then
15316      # Set up default GNU C++ configuration
15317
15318
15319
15320# Check whether --with-gnu-ld was given.
15321if test "${with_gnu_ld+set}" = set; then :
15322  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15323else
15324  with_gnu_ld=no
15325fi
15326
15327ac_prog=ld
15328if test yes = "$GCC"; then
15329  # Check if gcc -print-prog-name=ld gives a path.
15330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15331$as_echo_n "checking for ld used by $CC... " >&6; }
15332  case $host in
15333  *-*-mingw*)
15334    # gcc leaves a trailing carriage return, which upsets mingw
15335    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15336  *)
15337    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15338  esac
15339  case $ac_prog in
15340    # Accept absolute paths.
15341    [\\/]* | ?:[\\/]*)
15342      re_direlt='/[^/][^/]*/\.\./'
15343      # Canonicalize the pathname of ld
15344      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15345      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15346	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15347      done
15348      test -z "$LD" && LD=$ac_prog
15349      ;;
15350  "")
15351    # If it fails, then pretend we aren't using GCC.
15352    ac_prog=ld
15353    ;;
15354  *)
15355    # If it is relative, then search for the first ld in PATH.
15356    with_gnu_ld=unknown
15357    ;;
15358  esac
15359elif test yes = "$with_gnu_ld"; then
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15361$as_echo_n "checking for GNU ld... " >&6; }
15362else
15363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15364$as_echo_n "checking for non-GNU ld... " >&6; }
15365fi
15366if ${lt_cv_path_LD+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369  if test -z "$LD"; then
15370  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15371  for ac_dir in $PATH; do
15372    IFS=$lt_save_ifs
15373    test -z "$ac_dir" && ac_dir=.
15374    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15375      lt_cv_path_LD=$ac_dir/$ac_prog
15376      # Check to see if the program is GNU ld.  I'd rather use --version,
15377      # but apparently some variants of GNU ld only accept -v.
15378      # Break only if it was the GNU/non-GNU ld that we prefer.
15379      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15380      *GNU* | *'with BFD'*)
15381	test no != "$with_gnu_ld" && break
15382	;;
15383      *)
15384	test yes != "$with_gnu_ld" && break
15385	;;
15386      esac
15387    fi
15388  done
15389  IFS=$lt_save_ifs
15390else
15391  lt_cv_path_LD=$LD # Let the user override the test with a path.
15392fi
15393fi
15394
15395LD=$lt_cv_path_LD
15396if test -n "$LD"; then
15397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15398$as_echo "$LD" >&6; }
15399else
15400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401$as_echo "no" >&6; }
15402fi
15403test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15405$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15406if ${lt_cv_prog_gnu_ld+:} false; then :
15407  $as_echo_n "(cached) " >&6
15408else
15409  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15410case `$LD -v 2>&1 </dev/null` in
15411*GNU* | *'with BFD'*)
15412  lt_cv_prog_gnu_ld=yes
15413  ;;
15414*)
15415  lt_cv_prog_gnu_ld=no
15416  ;;
15417esac
15418fi
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15420$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15421with_gnu_ld=$lt_cv_prog_gnu_ld
15422
15423
15424
15425
15426
15427
15428
15429      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15430      # archiving commands below assume that GNU ld is being used.
15431      if test yes = "$with_gnu_ld"; then
15432        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15433        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'
15434
15435        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15436        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15437
15438        # If archive_cmds runs LD, not CC, wlarc should be empty
15439        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15440        #     investigate it a little bit more. (MM)
15441        wlarc='$wl'
15442
15443        # ancient GNU ld didn't support --whole-archive et. al.
15444        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15445	  $GREP 'no-whole-archive' > /dev/null; then
15446          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15447        else
15448          whole_archive_flag_spec_CXX=
15449        fi
15450      else
15451        with_gnu_ld=no
15452        wlarc=
15453
15454        # A generic and very simple default shared library creation
15455        # command for GNU C++ for the case where it uses the native
15456        # linker, instead of GNU ld.  If possible, this setting should
15457        # overridden to take advantage of the native linker features on
15458        # the platform it is being used on.
15459        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15460      fi
15461
15462      # Commands to make compiler produce verbose output that lists
15463      # what "hidden" libraries, object files and flags are used when
15464      # linking a shared library.
15465      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15466
15467    else
15468      GXX=no
15469      with_gnu_ld=no
15470      wlarc=
15471    fi
15472
15473    # PORTME: fill in a description of your system's C++ link characteristics
15474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15475$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15476    ld_shlibs_CXX=yes
15477    case $host_os in
15478      aix3*)
15479        # FIXME: insert proper C++ library support
15480        ld_shlibs_CXX=no
15481        ;;
15482      aix[4-9]*)
15483        if test ia64 = "$host_cpu"; then
15484          # On IA64, the linker does run time linking by default, so we don't
15485          # have to do anything special.
15486          aix_use_runtimelinking=no
15487          exp_sym_flag='-Bexport'
15488          no_entry_flag=
15489        else
15490          aix_use_runtimelinking=no
15491
15492          # Test if we are trying to use run time linking or normal
15493          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15494          # have runtime linking enabled, and use it for executables.
15495          # For shared libraries, we enable/disable runtime linking
15496          # depending on the kind of the shared library created -
15497          # when "with_aix_soname,aix_use_runtimelinking" is:
15498          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15499          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15500          #            lib.a           static archive
15501          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15502          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15503          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15504          #            lib.a(lib.so.V) shared, rtl:no
15505          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15506          #            lib.a           static archive
15507          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15508	    for ld_flag in $LDFLAGS; do
15509	      case $ld_flag in
15510	      *-brtl*)
15511	        aix_use_runtimelinking=yes
15512	        break
15513	        ;;
15514	      esac
15515	    done
15516	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15517	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15518	      # so we don't have lib.a shared libs to link our executables.
15519	      # We have to force runtime linking in this case.
15520	      aix_use_runtimelinking=yes
15521	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15522	    fi
15523	    ;;
15524          esac
15525
15526          exp_sym_flag='-bexport'
15527          no_entry_flag='-bnoentry'
15528        fi
15529
15530        # When large executables or shared objects are built, AIX ld can
15531        # have problems creating the table of contents.  If linking a library
15532        # or program results in "error TOC overflow" add -mminimal-toc to
15533        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15534        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15535
15536        archive_cmds_CXX=''
15537        hardcode_direct_CXX=yes
15538        hardcode_direct_absolute_CXX=yes
15539        hardcode_libdir_separator_CXX=':'
15540        link_all_deplibs_CXX=yes
15541        file_list_spec_CXX='$wl-f,'
15542        case $with_aix_soname,$aix_use_runtimelinking in
15543        aix,*) ;;	# no import file
15544        svr4,* | *,yes) # use import file
15545          # The Import File defines what to hardcode.
15546          hardcode_direct_CXX=no
15547          hardcode_direct_absolute_CXX=no
15548          ;;
15549        esac
15550
15551        if test yes = "$GXX"; then
15552          case $host_os in aix4.[012]|aix4.[012].*)
15553          # We only want to do this on AIX 4.2 and lower, the check
15554          # below for broken collect2 doesn't work under 4.3+
15555	  collect2name=`$CC -print-prog-name=collect2`
15556	  if test -f "$collect2name" &&
15557	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15558	  then
15559	    # We have reworked collect2
15560	    :
15561	  else
15562	    # We have old collect2
15563	    hardcode_direct_CXX=unsupported
15564	    # It fails to find uninstalled libraries when the uninstalled
15565	    # path is not listed in the libpath.  Setting hardcode_minus_L
15566	    # to unsupported forces relinking
15567	    hardcode_minus_L_CXX=yes
15568	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15569	    hardcode_libdir_separator_CXX=
15570	  fi
15571          esac
15572          shared_flag='-shared'
15573	  if test yes = "$aix_use_runtimelinking"; then
15574	    shared_flag=$shared_flag' $wl-G'
15575	  fi
15576	  # Need to ensure runtime linking is disabled for the traditional
15577	  # shared library, or the linker may eventually find shared libraries
15578	  # /with/ Import File - we do not want to mix them.
15579	  shared_flag_aix='-shared'
15580	  shared_flag_svr4='-shared $wl-G'
15581        else
15582          # not using gcc
15583          if test ia64 = "$host_cpu"; then
15584	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15585	  # chokes on -Wl,-G. The following line is correct:
15586	  shared_flag='-G'
15587          else
15588	    if test yes = "$aix_use_runtimelinking"; then
15589	      shared_flag='$wl-G'
15590	    else
15591	      shared_flag='$wl-bM:SRE'
15592	    fi
15593	    shared_flag_aix='$wl-bM:SRE'
15594	    shared_flag_svr4='$wl-G'
15595          fi
15596        fi
15597
15598        export_dynamic_flag_spec_CXX='$wl-bexpall'
15599        # It seems that -bexpall does not export symbols beginning with
15600        # underscore (_), so it is better to generate a list of symbols to
15601	# export.
15602        always_export_symbols_CXX=yes
15603	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15604          # Warning - without using the other runtime loading flags (-brtl),
15605          # -berok will link without error, but may produce a broken library.
15606          # The "-G" linker flag allows undefined symbols.
15607          no_undefined_flag_CXX='-bernotok'
15608          # Determine the default libpath from the value encoded in an empty
15609          # executable.
15610          if test set = "${lt_cv_aix_libpath+set}"; then
15611  aix_libpath=$lt_cv_aix_libpath
15612else
15613  if ${lt_cv_aix_libpath__CXX+:} false; then :
15614  $as_echo_n "(cached) " >&6
15615else
15616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617/* end confdefs.h.  */
15618
15619int
15620main ()
15621{
15622
15623  ;
15624  return 0;
15625}
15626_ACEOF
15627if ac_fn_cxx_try_link "$LINENO"; then :
15628
15629  lt_aix_libpath_sed='
15630      /Import File Strings/,/^$/ {
15631	  /^0/ {
15632	      s/^0  *\([^ ]*\) *$/\1/
15633	      p
15634	  }
15635      }'
15636  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15637  # Check for a 64-bit object if we didn't find anything.
15638  if test -z "$lt_cv_aix_libpath__CXX"; then
15639    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15640  fi
15641fi
15642rm -f core conftest.err conftest.$ac_objext \
15643    conftest$ac_exeext conftest.$ac_ext
15644  if test -z "$lt_cv_aix_libpath__CXX"; then
15645    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15646  fi
15647
15648fi
15649
15650  aix_libpath=$lt_cv_aix_libpath__CXX
15651fi
15652
15653          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15654
15655          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15656        else
15657          if test ia64 = "$host_cpu"; then
15658	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15659	    allow_undefined_flag_CXX="-z nodefs"
15660	    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"
15661          else
15662	    # Determine the default libpath from the value encoded in an
15663	    # empty executable.
15664	    if test set = "${lt_cv_aix_libpath+set}"; then
15665  aix_libpath=$lt_cv_aix_libpath
15666else
15667  if ${lt_cv_aix_libpath__CXX+:} false; then :
15668  $as_echo_n "(cached) " >&6
15669else
15670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671/* end confdefs.h.  */
15672
15673int
15674main ()
15675{
15676
15677  ;
15678  return 0;
15679}
15680_ACEOF
15681if ac_fn_cxx_try_link "$LINENO"; then :
15682
15683  lt_aix_libpath_sed='
15684      /Import File Strings/,/^$/ {
15685	  /^0/ {
15686	      s/^0  *\([^ ]*\) *$/\1/
15687	      p
15688	  }
15689      }'
15690  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15691  # Check for a 64-bit object if we didn't find anything.
15692  if test -z "$lt_cv_aix_libpath__CXX"; then
15693    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15694  fi
15695fi
15696rm -f core conftest.err conftest.$ac_objext \
15697    conftest$ac_exeext conftest.$ac_ext
15698  if test -z "$lt_cv_aix_libpath__CXX"; then
15699    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15700  fi
15701
15702fi
15703
15704  aix_libpath=$lt_cv_aix_libpath__CXX
15705fi
15706
15707	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15708	    # Warning - without using the other run time loading flags,
15709	    # -berok will link without error, but may produce a broken library.
15710	    no_undefined_flag_CXX=' $wl-bernotok'
15711	    allow_undefined_flag_CXX=' $wl-berok'
15712	    if test yes = "$with_gnu_ld"; then
15713	      # We only use this code for GNU lds that support --whole-archive.
15714	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15715	    else
15716	      # Exported symbols can be pulled into shared objects from archives
15717	      whole_archive_flag_spec_CXX='$convenience'
15718	    fi
15719	    archive_cmds_need_lc_CXX=yes
15720	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15721	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15722	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15723	    if test svr4 != "$with_aix_soname"; then
15724	      # This is similar to how AIX traditionally builds its shared
15725	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15726	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15727	    fi
15728	    if test aix != "$with_aix_soname"; then
15729	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15730	    else
15731	      # used by -dlpreopen to get the symbols
15732	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15733	    fi
15734	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15735          fi
15736        fi
15737        ;;
15738
15739      beos*)
15740	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15741	  allow_undefined_flag_CXX=unsupported
15742	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15743	  # support --undefined.  This deserves some investigation.  FIXME
15744	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15745	else
15746	  ld_shlibs_CXX=no
15747	fi
15748	;;
15749
15750      chorus*)
15751        case $cc_basename in
15752          *)
15753	  # FIXME: insert proper C++ library support
15754	  ld_shlibs_CXX=no
15755	  ;;
15756        esac
15757        ;;
15758
15759      cygwin* | mingw* | pw32* | cegcc*)
15760	case $GXX,$cc_basename in
15761	,cl* | no,cl*)
15762	  # Native MSVC
15763	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15764	  # no search path for DLLs.
15765	  hardcode_libdir_flag_spec_CXX=' '
15766	  allow_undefined_flag_CXX=unsupported
15767	  always_export_symbols_CXX=yes
15768	  file_list_spec_CXX='@'
15769	  # Tell ltmain to make .lib files, not .a files.
15770	  libext=lib
15771	  # Tell ltmain to make .dll files, not .so files.
15772	  shrext_cmds=.dll
15773	  # FIXME: Setting linknames here is a bad hack.
15774	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15775	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15776              cp "$export_symbols" "$output_objdir/$soname.def";
15777              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15778            else
15779              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15780            fi~
15781            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15782            linknames='
15783	  # The linker will not automatically build a static lib if we build a DLL.
15784	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15785	  enable_shared_with_static_runtimes_CXX=yes
15786	  # Don't use ranlib
15787	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15788	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15789            lt_tool_outputfile="@TOOL_OUTPUT@"~
15790            case $lt_outputfile in
15791              *.exe|*.EXE) ;;
15792              *)
15793                lt_outputfile=$lt_outputfile.exe
15794                lt_tool_outputfile=$lt_tool_outputfile.exe
15795                ;;
15796            esac~
15797            func_to_tool_file "$lt_outputfile"~
15798            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15799              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15800              $RM "$lt_outputfile.manifest";
15801            fi'
15802	  ;;
15803	*)
15804	  # g++
15805	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15806	  # as there is no search path for DLLs.
15807	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15808	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15809	  allow_undefined_flag_CXX=unsupported
15810	  always_export_symbols_CXX=no
15811	  enable_shared_with_static_runtimes_CXX=yes
15812
15813	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15814	    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'
15815	    # If the export-symbols file already is a .def file, use it as
15816	    # is; otherwise, prepend EXPORTS...
15817	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15818              cp $export_symbols $output_objdir/$soname.def;
15819            else
15820              echo EXPORTS > $output_objdir/$soname.def;
15821              cat $export_symbols >> $output_objdir/$soname.def;
15822            fi~
15823            $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'
15824	  else
15825	    ld_shlibs_CXX=no
15826	  fi
15827	  ;;
15828	esac
15829	;;
15830      darwin* | rhapsody*)
15831
15832
15833  archive_cmds_need_lc_CXX=no
15834  hardcode_direct_CXX=no
15835  hardcode_automatic_CXX=yes
15836  hardcode_shlibpath_var_CXX=unsupported
15837  if test yes = "$lt_cv_ld_force_load"; then
15838    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\"`'
15839
15840  else
15841    whole_archive_flag_spec_CXX=''
15842  fi
15843  link_all_deplibs_CXX=yes
15844  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15845  case $cc_basename in
15846     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15847     *) _lt_dar_can_shared=$GCC ;;
15848  esac
15849  if test yes = "$_lt_dar_can_shared"; then
15850    output_verbose_link_cmd=func_echo_all
15851    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"
15852    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15853    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"
15854    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"
15855       if test yes != "$lt_cv_apple_cc_single_mod"; then
15856      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"
15857      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"
15858    fi
15859
15860  else
15861  ld_shlibs_CXX=no
15862  fi
15863
15864	;;
15865
15866      os2*)
15867	hardcode_libdir_flag_spec_CXX='-L$libdir'
15868	hardcode_minus_L_CXX=yes
15869	allow_undefined_flag_CXX=unsupported
15870	shrext_cmds=.dll
15871	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15872	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15873	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15874	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15875	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15876	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15877	  emximp -o $lib $output_objdir/$libname.def'
15878	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15879	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15880	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15881	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15882	  prefix_cmds="$SED"~
15883	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15884	    prefix_cmds="$prefix_cmds -e 1d";
15885	  fi~
15886	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15887	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15888	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15889	  emximp -o $lib $output_objdir/$libname.def'
15890	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15891	enable_shared_with_static_runtimes_CXX=yes
15892	;;
15893
15894      dgux*)
15895        case $cc_basename in
15896          ec++*)
15897	    # FIXME: insert proper C++ library support
15898	    ld_shlibs_CXX=no
15899	    ;;
15900          ghcx*)
15901	    # Green Hills C++ Compiler
15902	    # FIXME: insert proper C++ library support
15903	    ld_shlibs_CXX=no
15904	    ;;
15905          *)
15906	    # FIXME: insert proper C++ library support
15907	    ld_shlibs_CXX=no
15908	    ;;
15909        esac
15910        ;;
15911
15912      freebsd2.*)
15913        # C++ shared libraries reported to be fairly broken before
15914	# switch to ELF
15915        ld_shlibs_CXX=no
15916        ;;
15917
15918      freebsd-elf*)
15919        archive_cmds_need_lc_CXX=no
15920        ;;
15921
15922      freebsd* | dragonfly*)
15923        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15924        # conventions
15925        ld_shlibs_CXX=yes
15926        ;;
15927
15928      haiku*)
15929        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15930        link_all_deplibs_CXX=yes
15931        ;;
15932
15933      hpux9*)
15934        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15935        hardcode_libdir_separator_CXX=:
15936        export_dynamic_flag_spec_CXX='$wl-E'
15937        hardcode_direct_CXX=yes
15938        hardcode_minus_L_CXX=yes # Not in the search PATH,
15939				             # but as the default
15940				             # location of the library.
15941
15942        case $cc_basename in
15943          CC*)
15944            # FIXME: insert proper C++ library support
15945            ld_shlibs_CXX=no
15946            ;;
15947          aCC*)
15948            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15949            # Commands to make compiler produce verbose output that lists
15950            # what "hidden" libraries, object files and flags are used when
15951            # linking a shared library.
15952            #
15953            # There doesn't appear to be a way to prevent this compiler from
15954            # explicitly linking system object files so we need to strip them
15955            # from the output so that they don't get included in the library
15956            # dependencies.
15957            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"'
15958            ;;
15959          *)
15960            if test yes = "$GXX"; then
15961              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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15962            else
15963              # FIXME: insert proper C++ library support
15964              ld_shlibs_CXX=no
15965            fi
15966            ;;
15967        esac
15968        ;;
15969
15970      hpux10*|hpux11*)
15971        if test no = "$with_gnu_ld"; then
15972	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15973	  hardcode_libdir_separator_CXX=:
15974
15975          case $host_cpu in
15976            hppa*64*|ia64*)
15977              ;;
15978            *)
15979	      export_dynamic_flag_spec_CXX='$wl-E'
15980              ;;
15981          esac
15982        fi
15983        case $host_cpu in
15984          hppa*64*|ia64*)
15985            hardcode_direct_CXX=no
15986            hardcode_shlibpath_var_CXX=no
15987            ;;
15988          *)
15989            hardcode_direct_CXX=yes
15990            hardcode_direct_absolute_CXX=yes
15991            hardcode_minus_L_CXX=yes # Not in the search PATH,
15992					         # but as the default
15993					         # location of the library.
15994            ;;
15995        esac
15996
15997        case $cc_basename in
15998          CC*)
15999	    # FIXME: insert proper C++ library support
16000	    ld_shlibs_CXX=no
16001	    ;;
16002          aCC*)
16003	    case $host_cpu in
16004	      hppa*64*)
16005	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16006	        ;;
16007	      ia64*)
16008	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16009	        ;;
16010	      *)
16011	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16012	        ;;
16013	    esac
16014	    # Commands to make compiler produce verbose output that lists
16015	    # what "hidden" libraries, object files and flags are used when
16016	    # linking a shared library.
16017	    #
16018	    # There doesn't appear to be a way to prevent this compiler from
16019	    # explicitly linking system object files so we need to strip them
16020	    # from the output so that they don't get included in the library
16021	    # dependencies.
16022	    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"'
16023	    ;;
16024          *)
16025	    if test yes = "$GXX"; then
16026	      if test no = "$with_gnu_ld"; then
16027	        case $host_cpu in
16028	          hppa*64*)
16029	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16030	            ;;
16031	          ia64*)
16032	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16033	            ;;
16034	          *)
16035	            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'
16036	            ;;
16037	        esac
16038	      fi
16039	    else
16040	      # FIXME: insert proper C++ library support
16041	      ld_shlibs_CXX=no
16042	    fi
16043	    ;;
16044        esac
16045        ;;
16046
16047      interix[3-9]*)
16048	hardcode_direct_CXX=no
16049	hardcode_shlibpath_var_CXX=no
16050	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16051	export_dynamic_flag_spec_CXX='$wl-E'
16052	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16053	# Instead, shared libraries are loaded at an image base (0x10000000 by
16054	# default) and relocated if they conflict, which is a slow very memory
16055	# consuming and fragmenting process.  To avoid this, we pick a random,
16056	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16057	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16058	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'
16059	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'
16060	;;
16061      irix5* | irix6*)
16062        case $cc_basename in
16063          CC*)
16064	    # SGI C++
16065	    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'
16066
16067	    # Archives containing C++ object files must be created using
16068	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16069	    # necessary to make sure instantiated templates are included
16070	    # in the archive.
16071	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16072	    ;;
16073          *)
16074	    if test yes = "$GXX"; then
16075	      if test no = "$with_gnu_ld"; then
16076	        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'
16077	      else
16078	        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'
16079	      fi
16080	    fi
16081	    link_all_deplibs_CXX=yes
16082	    ;;
16083        esac
16084        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16085        hardcode_libdir_separator_CXX=:
16086        inherit_rpath_CXX=yes
16087        ;;
16088
16089      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16090        case $cc_basename in
16091          KCC*)
16092	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16093
16094	    # KCC will only create a shared library if the output file
16095	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096	    # to its proper name (with version) after linking.
16097	    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'
16098	    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'
16099	    # Commands to make compiler produce verbose output that lists
16100	    # what "hidden" libraries, object files and flags are used when
16101	    # linking a shared library.
16102	    #
16103	    # There doesn't appear to be a way to prevent this compiler from
16104	    # explicitly linking system object files so we need to strip them
16105	    # from the output so that they don't get included in the library
16106	    # dependencies.
16107	    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"'
16108
16109	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16110	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16111
16112	    # Archives containing C++ object files must be created using
16113	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16114	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16115	    ;;
16116	  icpc* | ecpc* )
16117	    # Intel C++
16118	    with_gnu_ld=yes
16119	    # version 8.0 and above of icpc choke on multiply defined symbols
16120	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16121	    # earlier do not add the objects themselves.
16122	    case `$CC -V 2>&1` in
16123	      *"Version 7."*)
16124	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16125		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'
16126		;;
16127	      *)  # Version 8.0 or newer
16128	        tmp_idyn=
16129	        case $host_cpu in
16130		  ia64*) tmp_idyn=' -i_dynamic';;
16131		esac
16132	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16133		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'
16134		;;
16135	    esac
16136	    archive_cmds_need_lc_CXX=no
16137	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16138	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16139	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16140	    ;;
16141          pgCC* | pgcpp*)
16142            # Portland Group C++ compiler
16143	    case `$CC -V` in
16144	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16145	      prelink_cmds_CXX='tpldir=Template.dir~
16146               rm -rf $tpldir~
16147               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16148               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16149	      old_archive_cmds_CXX='tpldir=Template.dir~
16150                rm -rf $tpldir~
16151                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16152                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16153                $RANLIB $oldlib'
16154	      archive_cmds_CXX='tpldir=Template.dir~
16155                rm -rf $tpldir~
16156                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16157                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16158	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16159                rm -rf $tpldir~
16160                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16161                $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'
16162	      ;;
16163	    *) # Version 6 and above use weak symbols
16164	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16165	      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'
16166	      ;;
16167	    esac
16168
16169	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16170	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16171	    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'
16172            ;;
16173	  cxx*)
16174	    # Compaq C++
16175	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16176	    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'
16177
16178	    runpath_var=LD_RUN_PATH
16179	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16180	    hardcode_libdir_separator_CXX=:
16181
16182	    # Commands to make compiler produce verbose output that lists
16183	    # what "hidden" libraries, object files and flags are used when
16184	    # linking a shared library.
16185	    #
16186	    # There doesn't appear to be a way to prevent this compiler from
16187	    # explicitly linking system object files so we need to strip them
16188	    # from the output so that they don't get included in the library
16189	    # dependencies.
16190	    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'
16191	    ;;
16192	  xl* | mpixl* | bgxl*)
16193	    # IBM XL 8.0 on PPC, with GNU ld
16194	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16195	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16196	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16197	    if test yes = "$supports_anon_versioning"; then
16198	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16199                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16200                echo "local: *; };" >> $output_objdir/$libname.ver~
16201                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16202	    fi
16203	    ;;
16204	  *)
16205	    case `$CC -V 2>&1 | sed 5q` in
16206	    *Sun\ C*)
16207	      # Sun C++ 5.9
16208	      no_undefined_flag_CXX=' -zdefs'
16209	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16210	      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'
16211	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16212	      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'
16213	      compiler_needs_object_CXX=yes
16214
16215	      # Not sure whether something based on
16216	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16217	      # would be better.
16218	      output_verbose_link_cmd='func_echo_all'
16219
16220	      # Archives containing C++ object files must be created using
16221	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16222	      # necessary to make sure instantiated templates are included
16223	      # in the archive.
16224	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16225	      ;;
16226	    esac
16227	    ;;
16228	esac
16229	;;
16230
16231      lynxos*)
16232        # FIXME: insert proper C++ library support
16233	ld_shlibs_CXX=no
16234	;;
16235
16236      m88k*)
16237        # FIXME: insert proper C++ library support
16238        ld_shlibs_CXX=no
16239	;;
16240
16241      mvs*)
16242        case $cc_basename in
16243          cxx*)
16244	    # FIXME: insert proper C++ library support
16245	    ld_shlibs_CXX=no
16246	    ;;
16247	  *)
16248	    # FIXME: insert proper C++ library support
16249	    ld_shlibs_CXX=no
16250	    ;;
16251	esac
16252	;;
16253
16254      netbsd*)
16255        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16256	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16257	  wlarc=
16258	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16259	  hardcode_direct_CXX=yes
16260	  hardcode_shlibpath_var_CXX=no
16261	fi
16262	# Workaround some broken pre-1.5 toolchains
16263	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16264	;;
16265
16266      *nto* | *qnx*)
16267        ld_shlibs_CXX=yes
16268	;;
16269
16270      openbsd* | bitrig*)
16271	if test -f /usr/libexec/ld.so; then
16272	  hardcode_direct_CXX=yes
16273	  hardcode_shlibpath_var_CXX=no
16274	  hardcode_direct_absolute_CXX=yes
16275	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16276	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16277	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16278	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16279	    export_dynamic_flag_spec_CXX='$wl-E'
16280	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16281	  fi
16282	  output_verbose_link_cmd=func_echo_all
16283	else
16284	  ld_shlibs_CXX=no
16285	fi
16286	;;
16287
16288      osf3* | osf4* | osf5*)
16289        case $cc_basename in
16290          KCC*)
16291	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16292
16293	    # KCC will only create a shared library if the output file
16294	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16295	    # to its proper name (with version) after linking.
16296	    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'
16297
16298	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16299	    hardcode_libdir_separator_CXX=:
16300
16301	    # Archives containing C++ object files must be created using
16302	    # the KAI C++ compiler.
16303	    case $host in
16304	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16305	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16306	    esac
16307	    ;;
16308          RCC*)
16309	    # Rational C++ 2.4.1
16310	    # FIXME: insert proper C++ library support
16311	    ld_shlibs_CXX=no
16312	    ;;
16313          cxx*)
16314	    case $host in
16315	      osf3*)
16316	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16317	        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'
16318	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16319		;;
16320	      *)
16321	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16322	        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'
16323	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16324                  echo "-hidden">> $lib.exp~
16325                  $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~
16326                  $RM $lib.exp'
16327	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16328		;;
16329	    esac
16330
16331	    hardcode_libdir_separator_CXX=:
16332
16333	    # Commands to make compiler produce verbose output that lists
16334	    # what "hidden" libraries, object files and flags are used when
16335	    # linking a shared library.
16336	    #
16337	    # There doesn't appear to be a way to prevent this compiler from
16338	    # explicitly linking system object files so we need to strip them
16339	    # from the output so that they don't get included in the library
16340	    # dependencies.
16341	    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"'
16342	    ;;
16343	  *)
16344	    if test yes,no = "$GXX,$with_gnu_ld"; then
16345	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16346	      case $host in
16347	        osf3*)
16348	          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'
16349		  ;;
16350	        *)
16351	          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'
16352		  ;;
16353	      esac
16354
16355	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16356	      hardcode_libdir_separator_CXX=:
16357
16358	      # Commands to make compiler produce verbose output that lists
16359	      # what "hidden" libraries, object files and flags are used when
16360	      # linking a shared library.
16361	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16362
16363	    else
16364	      # FIXME: insert proper C++ library support
16365	      ld_shlibs_CXX=no
16366	    fi
16367	    ;;
16368        esac
16369        ;;
16370
16371      psos*)
16372        # FIXME: insert proper C++ library support
16373        ld_shlibs_CXX=no
16374        ;;
16375
16376      sunos4*)
16377        case $cc_basename in
16378          CC*)
16379	    # Sun C++ 4.x
16380	    # FIXME: insert proper C++ library support
16381	    ld_shlibs_CXX=no
16382	    ;;
16383          lcc*)
16384	    # Lucid
16385	    # FIXME: insert proper C++ library support
16386	    ld_shlibs_CXX=no
16387	    ;;
16388          *)
16389	    # FIXME: insert proper C++ library support
16390	    ld_shlibs_CXX=no
16391	    ;;
16392        esac
16393        ;;
16394
16395      solaris*)
16396        case $cc_basename in
16397          CC* | sunCC*)
16398	    # Sun C++ 4.2, 5.x and Centerline C++
16399            archive_cmds_need_lc_CXX=yes
16400	    no_undefined_flag_CXX=' -zdefs'
16401	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16402	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16403              $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'
16404
16405	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16406	    hardcode_shlibpath_var_CXX=no
16407	    case $host_os in
16408	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16409	      *)
16410		# The compiler driver will combine and reorder linker options,
16411		# but understands '-z linker_flag'.
16412	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16413		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16414	        ;;
16415	    esac
16416	    link_all_deplibs_CXX=yes
16417
16418	    output_verbose_link_cmd='func_echo_all'
16419
16420	    # Archives containing C++ object files must be created using
16421	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16422	    # necessary to make sure instantiated templates are included
16423	    # in the archive.
16424	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16425	    ;;
16426          gcx*)
16427	    # Green Hills C++ Compiler
16428	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16429
16430	    # The C++ compiler must be used to create the archive.
16431	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16432	    ;;
16433          *)
16434	    # GNU C++ compiler with Solaris linker
16435	    if test yes,no = "$GXX,$with_gnu_ld"; then
16436	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16437	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16438	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16439	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16440                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16441
16442	        # Commands to make compiler produce verbose output that lists
16443	        # what "hidden" libraries, object files and flags are used when
16444	        # linking a shared library.
16445	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16446	      else
16447	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16448	        # platform.
16449	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16450	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16451                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16452
16453	        # Commands to make compiler produce verbose output that lists
16454	        # what "hidden" libraries, object files and flags are used when
16455	        # linking a shared library.
16456	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16457	      fi
16458
16459	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16460	      case $host_os in
16461		solaris2.[0-5] | solaris2.[0-5].*) ;;
16462		*)
16463		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16464		  ;;
16465	      esac
16466	    fi
16467	    ;;
16468        esac
16469        ;;
16470
16471    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16472      no_undefined_flag_CXX='$wl-z,text'
16473      archive_cmds_need_lc_CXX=no
16474      hardcode_shlibpath_var_CXX=no
16475      runpath_var='LD_RUN_PATH'
16476
16477      case $cc_basename in
16478        CC*)
16479	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16480	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16481	  ;;
16482	*)
16483	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16484	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16485	  ;;
16486      esac
16487      ;;
16488
16489      sysv5* | sco3.2v5* | sco5v6*)
16490	# Note: We CANNOT use -z defs as we might desire, because we do not
16491	# link with -lc, and that would cause any symbols used from libc to
16492	# always be unresolved, which means just about no library would
16493	# ever link correctly.  If we're not using GNU ld we use -z text
16494	# though, which does catch some bad symbols but isn't as heavy-handed
16495	# as -z defs.
16496	no_undefined_flag_CXX='$wl-z,text'
16497	allow_undefined_flag_CXX='$wl-z,nodefs'
16498	archive_cmds_need_lc_CXX=no
16499	hardcode_shlibpath_var_CXX=no
16500	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16501	hardcode_libdir_separator_CXX=':'
16502	link_all_deplibs_CXX=yes
16503	export_dynamic_flag_spec_CXX='$wl-Bexport'
16504	runpath_var='LD_RUN_PATH'
16505
16506	case $cc_basename in
16507          CC*)
16508	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16509	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16510	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16511              '"$old_archive_cmds_CXX"
16512	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16513              '"$reload_cmds_CXX"
16514	    ;;
16515	  *)
16516	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518	    ;;
16519	esac
16520      ;;
16521
16522      tandem*)
16523        case $cc_basename in
16524          NCC*)
16525	    # NonStop-UX NCC 3.20
16526	    # FIXME: insert proper C++ library support
16527	    ld_shlibs_CXX=no
16528	    ;;
16529          *)
16530	    # FIXME: insert proper C++ library support
16531	    ld_shlibs_CXX=no
16532	    ;;
16533        esac
16534        ;;
16535
16536      vxworks*)
16537        # FIXME: insert proper C++ library support
16538        ld_shlibs_CXX=no
16539        ;;
16540
16541      *)
16542        # FIXME: insert proper C++ library support
16543        ld_shlibs_CXX=no
16544        ;;
16545    esac
16546
16547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16548$as_echo "$ld_shlibs_CXX" >&6; }
16549    test no = "$ld_shlibs_CXX" && can_build_shared=no
16550
16551    GCC_CXX=$GXX
16552    LD_CXX=$LD
16553
16554    ## CAVEAT EMPTOR:
16555    ## There is no encapsulation within the following macros, do not change
16556    ## the running order or otherwise move them around unless you know exactly
16557    ## what you are doing...
16558    # Dependencies to place before and after the object being linked:
16559predep_objects_CXX=
16560postdep_objects_CXX=
16561predeps_CXX=
16562postdeps_CXX=
16563compiler_lib_search_path_CXX=
16564
16565cat > conftest.$ac_ext <<_LT_EOF
16566class Foo
16567{
16568public:
16569  Foo (void) { a = 0; }
16570private:
16571  int a;
16572};
16573_LT_EOF
16574
16575
16576_lt_libdeps_save_CFLAGS=$CFLAGS
16577case "$CC $CFLAGS " in #(
16578*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16579*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16580*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16581esac
16582
16583if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16584  (eval $ac_compile) 2>&5
16585  ac_status=$?
16586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16587  test $ac_status = 0; }; then
16588  # Parse the compiler output and extract the necessary
16589  # objects, libraries and library flags.
16590
16591  # Sentinel used to keep track of whether or not we are before
16592  # the conftest object file.
16593  pre_test_object_deps_done=no
16594
16595  for p in `eval "$output_verbose_link_cmd"`; do
16596    case $prev$p in
16597
16598    -L* | -R* | -l*)
16599       # Some compilers place space between "-{L,R}" and the path.
16600       # Remove the space.
16601       if test x-L = "$p" ||
16602          test x-R = "$p"; then
16603	 prev=$p
16604	 continue
16605       fi
16606
16607       # Expand the sysroot to ease extracting the directories later.
16608       if test -z "$prev"; then
16609         case $p in
16610         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16611         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16612         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16613         esac
16614       fi
16615       case $p in
16616       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16617       esac
16618       if test no = "$pre_test_object_deps_done"; then
16619	 case $prev in
16620	 -L | -R)
16621	   # Internal compiler library paths should come after those
16622	   # provided the user.  The postdeps already come after the
16623	   # user supplied libs so there is no need to process them.
16624	   if test -z "$compiler_lib_search_path_CXX"; then
16625	     compiler_lib_search_path_CXX=$prev$p
16626	   else
16627	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16628	   fi
16629	   ;;
16630	 # The "-l" case would never come before the object being
16631	 # linked, so don't bother handling this case.
16632	 esac
16633       else
16634	 if test -z "$postdeps_CXX"; then
16635	   postdeps_CXX=$prev$p
16636	 else
16637	   postdeps_CXX="${postdeps_CXX} $prev$p"
16638	 fi
16639       fi
16640       prev=
16641       ;;
16642
16643    *.lto.$objext) ;; # Ignore GCC LTO objects
16644    *.$objext)
16645       # This assumes that the test object file only shows up
16646       # once in the compiler output.
16647       if test "$p" = "conftest.$objext"; then
16648	 pre_test_object_deps_done=yes
16649	 continue
16650       fi
16651
16652       if test no = "$pre_test_object_deps_done"; then
16653	 if test -z "$predep_objects_CXX"; then
16654	   predep_objects_CXX=$p
16655	 else
16656	   predep_objects_CXX="$predep_objects_CXX $p"
16657	 fi
16658       else
16659	 if test -z "$postdep_objects_CXX"; then
16660	   postdep_objects_CXX=$p
16661	 else
16662	   postdep_objects_CXX="$postdep_objects_CXX $p"
16663	 fi
16664       fi
16665       ;;
16666
16667    *) ;; # Ignore the rest.
16668
16669    esac
16670  done
16671
16672  # Clean up.
16673  rm -f a.out a.exe
16674else
16675  echo "libtool.m4: error: problem compiling CXX test program"
16676fi
16677
16678$RM -f confest.$objext
16679CFLAGS=$_lt_libdeps_save_CFLAGS
16680
16681# PORTME: override above test on systems where it is broken
16682case $host_os in
16683interix[3-9]*)
16684  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16685  # hack all around it, let's just trust "g++" to DTRT.
16686  predep_objects_CXX=
16687  postdep_objects_CXX=
16688  postdeps_CXX=
16689  ;;
16690esac
16691
16692
16693case " $postdeps_CXX " in
16694*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16695esac
16696 compiler_lib_search_dirs_CXX=
16697if test -n "${compiler_lib_search_path_CXX}"; then
16698 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16699fi
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    lt_prog_compiler_wl_CXX=
16732lt_prog_compiler_pic_CXX=
16733lt_prog_compiler_static_CXX=
16734
16735
16736  # C++ specific cases for pic, static, wl, etc.
16737  if test yes = "$GXX"; then
16738    lt_prog_compiler_wl_CXX='-Wl,'
16739    lt_prog_compiler_static_CXX='-static'
16740
16741    case $host_os in
16742    aix*)
16743      # All AIX code is PIC.
16744      if test ia64 = "$host_cpu"; then
16745	# AIX 5 now supports IA64 processor
16746	lt_prog_compiler_static_CXX='-Bstatic'
16747      fi
16748      lt_prog_compiler_pic_CXX='-fPIC'
16749      ;;
16750
16751    amigaos*)
16752      case $host_cpu in
16753      powerpc)
16754            # see comment about AmigaOS4 .so support
16755            lt_prog_compiler_pic_CXX='-fPIC'
16756        ;;
16757      m68k)
16758            # FIXME: we need at least 68020 code to build shared libraries, but
16759            # adding the '-m68020' flag to GCC prevents building anything better,
16760            # like '-m68040'.
16761            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16762        ;;
16763      esac
16764      ;;
16765
16766    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16767      # PIC is the default for these OSes.
16768      ;;
16769    mingw* | cygwin* | os2* | pw32* | cegcc*)
16770      # This hack is so that the source file can tell whether it is being
16771      # built for inclusion in a dll (and should export symbols for example).
16772      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16773      # (--disable-auto-import) libraries
16774      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16775      case $host_os in
16776      os2*)
16777	lt_prog_compiler_static_CXX='$wl-static'
16778	;;
16779      esac
16780      ;;
16781    darwin* | rhapsody*)
16782      # PIC is the default on this platform
16783      # Common symbols not allowed in MH_DYLIB files
16784      lt_prog_compiler_pic_CXX='-fno-common'
16785      ;;
16786    *djgpp*)
16787      # DJGPP does not support shared libraries at all
16788      lt_prog_compiler_pic_CXX=
16789      ;;
16790    haiku*)
16791      # PIC is the default for Haiku.
16792      # The "-static" flag exists, but is broken.
16793      lt_prog_compiler_static_CXX=
16794      ;;
16795    interix[3-9]*)
16796      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16797      # Instead, we relocate shared libraries at runtime.
16798      ;;
16799    sysv4*MP*)
16800      if test -d /usr/nec; then
16801	lt_prog_compiler_pic_CXX=-Kconform_pic
16802      fi
16803      ;;
16804    hpux*)
16805      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16806      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16807      # sets the default TLS model and affects inlining.
16808      case $host_cpu in
16809      hppa*64*)
16810	;;
16811      *)
16812	lt_prog_compiler_pic_CXX='-fPIC'
16813	;;
16814      esac
16815      ;;
16816    *qnx* | *nto*)
16817      # QNX uses GNU C++, but need to define -shared option too, otherwise
16818      # it will coredump.
16819      lt_prog_compiler_pic_CXX='-fPIC -shared'
16820      ;;
16821    *)
16822      lt_prog_compiler_pic_CXX='-fPIC'
16823      ;;
16824    esac
16825  else
16826    case $host_os in
16827      aix[4-9]*)
16828	# All AIX code is PIC.
16829	if test ia64 = "$host_cpu"; then
16830	  # AIX 5 now supports IA64 processor
16831	  lt_prog_compiler_static_CXX='-Bstatic'
16832	else
16833	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16834	fi
16835	;;
16836      chorus*)
16837	case $cc_basename in
16838	cxch68*)
16839	  # Green Hills C++ Compiler
16840	  # _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"
16841	  ;;
16842	esac
16843	;;
16844      mingw* | cygwin* | os2* | pw32* | cegcc*)
16845	# This hack is so that the source file can tell whether it is being
16846	# built for inclusion in a dll (and should export symbols for example).
16847	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16848	;;
16849      dgux*)
16850	case $cc_basename in
16851	  ec++*)
16852	    lt_prog_compiler_pic_CXX='-KPIC'
16853	    ;;
16854	  ghcx*)
16855	    # Green Hills C++ Compiler
16856	    lt_prog_compiler_pic_CXX='-pic'
16857	    ;;
16858	  *)
16859	    ;;
16860	esac
16861	;;
16862      freebsd* | dragonfly*)
16863	# FreeBSD uses GNU C++
16864	;;
16865      hpux9* | hpux10* | hpux11*)
16866	case $cc_basename in
16867	  CC*)
16868	    lt_prog_compiler_wl_CXX='-Wl,'
16869	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16870	    if test ia64 != "$host_cpu"; then
16871	      lt_prog_compiler_pic_CXX='+Z'
16872	    fi
16873	    ;;
16874	  aCC*)
16875	    lt_prog_compiler_wl_CXX='-Wl,'
16876	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16877	    case $host_cpu in
16878	    hppa*64*|ia64*)
16879	      # +Z the default
16880	      ;;
16881	    *)
16882	      lt_prog_compiler_pic_CXX='+Z'
16883	      ;;
16884	    esac
16885	    ;;
16886	  *)
16887	    ;;
16888	esac
16889	;;
16890      interix*)
16891	# This is c89, which is MS Visual C++ (no shared libs)
16892	# Anyone wants to do a port?
16893	;;
16894      irix5* | irix6* | nonstopux*)
16895	case $cc_basename in
16896	  CC*)
16897	    lt_prog_compiler_wl_CXX='-Wl,'
16898	    lt_prog_compiler_static_CXX='-non_shared'
16899	    # CC pic flag -KPIC is the default.
16900	    ;;
16901	  *)
16902	    ;;
16903	esac
16904	;;
16905      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16906	case $cc_basename in
16907	  KCC*)
16908	    # KAI C++ Compiler
16909	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16910	    lt_prog_compiler_pic_CXX='-fPIC'
16911	    ;;
16912	  ecpc* )
16913	    # old Intel C++ for x86_64, which still supported -KPIC.
16914	    lt_prog_compiler_wl_CXX='-Wl,'
16915	    lt_prog_compiler_pic_CXX='-KPIC'
16916	    lt_prog_compiler_static_CXX='-static'
16917	    ;;
16918	  icpc* )
16919	    # Intel C++, used to be incompatible with GCC.
16920	    # ICC 10 doesn't accept -KPIC any more.
16921	    lt_prog_compiler_wl_CXX='-Wl,'
16922	    lt_prog_compiler_pic_CXX='-fPIC'
16923	    lt_prog_compiler_static_CXX='-static'
16924	    ;;
16925	  pgCC* | pgcpp*)
16926	    # Portland Group C++ compiler
16927	    lt_prog_compiler_wl_CXX='-Wl,'
16928	    lt_prog_compiler_pic_CXX='-fpic'
16929	    lt_prog_compiler_static_CXX='-Bstatic'
16930	    ;;
16931	  cxx*)
16932	    # Compaq C++
16933	    # Make sure the PIC flag is empty.  It appears that all Alpha
16934	    # Linux and Compaq Tru64 Unix objects are PIC.
16935	    lt_prog_compiler_pic_CXX=
16936	    lt_prog_compiler_static_CXX='-non_shared'
16937	    ;;
16938	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16939	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16940	    lt_prog_compiler_wl_CXX='-Wl,'
16941	    lt_prog_compiler_pic_CXX='-qpic'
16942	    lt_prog_compiler_static_CXX='-qstaticlink'
16943	    ;;
16944	  *)
16945	    case `$CC -V 2>&1 | sed 5q` in
16946	    *Sun\ C*)
16947	      # Sun C++ 5.9
16948	      lt_prog_compiler_pic_CXX='-KPIC'
16949	      lt_prog_compiler_static_CXX='-Bstatic'
16950	      lt_prog_compiler_wl_CXX='-Qoption ld '
16951	      ;;
16952	    esac
16953	    ;;
16954	esac
16955	;;
16956      lynxos*)
16957	;;
16958      m88k*)
16959	;;
16960      mvs*)
16961	case $cc_basename in
16962	  cxx*)
16963	    lt_prog_compiler_pic_CXX='-W c,exportall'
16964	    ;;
16965	  *)
16966	    ;;
16967	esac
16968	;;
16969      netbsd* | netbsdelf*-gnu)
16970	;;
16971      *qnx* | *nto*)
16972        # QNX uses GNU C++, but need to define -shared option too, otherwise
16973        # it will coredump.
16974        lt_prog_compiler_pic_CXX='-fPIC -shared'
16975        ;;
16976      osf3* | osf4* | osf5*)
16977	case $cc_basename in
16978	  KCC*)
16979	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16980	    ;;
16981	  RCC*)
16982	    # Rational C++ 2.4.1
16983	    lt_prog_compiler_pic_CXX='-pic'
16984	    ;;
16985	  cxx*)
16986	    # Digital/Compaq C++
16987	    lt_prog_compiler_wl_CXX='-Wl,'
16988	    # Make sure the PIC flag is empty.  It appears that all Alpha
16989	    # Linux and Compaq Tru64 Unix objects are PIC.
16990	    lt_prog_compiler_pic_CXX=
16991	    lt_prog_compiler_static_CXX='-non_shared'
16992	    ;;
16993	  *)
16994	    ;;
16995	esac
16996	;;
16997      psos*)
16998	;;
16999      solaris*)
17000	case $cc_basename in
17001	  CC* | sunCC*)
17002	    # Sun C++ 4.2, 5.x and Centerline C++
17003	    lt_prog_compiler_pic_CXX='-KPIC'
17004	    lt_prog_compiler_static_CXX='-Bstatic'
17005	    lt_prog_compiler_wl_CXX='-Qoption ld '
17006	    ;;
17007	  gcx*)
17008	    # Green Hills C++ Compiler
17009	    lt_prog_compiler_pic_CXX='-PIC'
17010	    ;;
17011	  *)
17012	    ;;
17013	esac
17014	;;
17015      sunos4*)
17016	case $cc_basename in
17017	  CC*)
17018	    # Sun C++ 4.x
17019	    lt_prog_compiler_pic_CXX='-pic'
17020	    lt_prog_compiler_static_CXX='-Bstatic'
17021	    ;;
17022	  lcc*)
17023	    # Lucid
17024	    lt_prog_compiler_pic_CXX='-pic'
17025	    ;;
17026	  *)
17027	    ;;
17028	esac
17029	;;
17030      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17031	case $cc_basename in
17032	  CC*)
17033	    lt_prog_compiler_wl_CXX='-Wl,'
17034	    lt_prog_compiler_pic_CXX='-KPIC'
17035	    lt_prog_compiler_static_CXX='-Bstatic'
17036	    ;;
17037	esac
17038	;;
17039      tandem*)
17040	case $cc_basename in
17041	  NCC*)
17042	    # NonStop-UX NCC 3.20
17043	    lt_prog_compiler_pic_CXX='-KPIC'
17044	    ;;
17045	  *)
17046	    ;;
17047	esac
17048	;;
17049      vxworks*)
17050	;;
17051      *)
17052	lt_prog_compiler_can_build_shared_CXX=no
17053	;;
17054    esac
17055  fi
17056
17057case $host_os in
17058  # For platforms that do not support PIC, -DPIC is meaningless:
17059  *djgpp*)
17060    lt_prog_compiler_pic_CXX=
17061    ;;
17062  *)
17063    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17064    ;;
17065esac
17066
17067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17068$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17069if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17070  $as_echo_n "(cached) " >&6
17071else
17072  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17073fi
17074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17075$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17076lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17077
17078#
17079# Check to make sure the PIC flag actually works.
17080#
17081if test -n "$lt_prog_compiler_pic_CXX"; then
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17083$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17084if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17085  $as_echo_n "(cached) " >&6
17086else
17087  lt_cv_prog_compiler_pic_works_CXX=no
17088   ac_outfile=conftest.$ac_objext
17089   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17090   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17091   # Insert the option either (1) after the last *FLAGS variable, or
17092   # (2) before a word containing "conftest.", or (3) at the end.
17093   # Note that $ac_compile itself does not contain backslashes and begins
17094   # with a dollar sign (not a hyphen), so the echo should work correctly.
17095   # The option is referenced via a variable to avoid confusing sed.
17096   lt_compile=`echo "$ac_compile" | $SED \
17097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17099   -e 's:$: $lt_compiler_flag:'`
17100   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17101   (eval "$lt_compile" 2>conftest.err)
17102   ac_status=$?
17103   cat conftest.err >&5
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   if (exit $ac_status) && test -s "$ac_outfile"; then
17106     # The compiler can only warn and ignore the option if not recognized
17107     # So say no if there are warnings other than the usual output.
17108     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17109     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17110     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17111       lt_cv_prog_compiler_pic_works_CXX=yes
17112     fi
17113   fi
17114   $RM conftest*
17115
17116fi
17117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17118$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17119
17120if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17121    case $lt_prog_compiler_pic_CXX in
17122     "" | " "*) ;;
17123     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17124     esac
17125else
17126    lt_prog_compiler_pic_CXX=
17127     lt_prog_compiler_can_build_shared_CXX=no
17128fi
17129
17130fi
17131
17132
17133
17134
17135
17136#
17137# Check to make sure the static flag actually works.
17138#
17139wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17141$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17142if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17143  $as_echo_n "(cached) " >&6
17144else
17145  lt_cv_prog_compiler_static_works_CXX=no
17146   save_LDFLAGS=$LDFLAGS
17147   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17148   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17149   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17150     # The linker can only warn and ignore the option if not recognized
17151     # So say no if there are warnings
17152     if test -s conftest.err; then
17153       # Append any errors to the config.log.
17154       cat conftest.err 1>&5
17155       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17156       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17157       if diff conftest.exp conftest.er2 >/dev/null; then
17158         lt_cv_prog_compiler_static_works_CXX=yes
17159       fi
17160     else
17161       lt_cv_prog_compiler_static_works_CXX=yes
17162     fi
17163   fi
17164   $RM -r conftest*
17165   LDFLAGS=$save_LDFLAGS
17166
17167fi
17168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17169$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17170
17171if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17172    :
17173else
17174    lt_prog_compiler_static_CXX=
17175fi
17176
17177
17178
17179
17180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17181$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17182if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17183  $as_echo_n "(cached) " >&6
17184else
17185  lt_cv_prog_compiler_c_o_CXX=no
17186   $RM -r conftest 2>/dev/null
17187   mkdir conftest
17188   cd conftest
17189   mkdir out
17190   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17191
17192   lt_compiler_flag="-o out/conftest2.$ac_objext"
17193   # Insert the option either (1) after the last *FLAGS variable, or
17194   # (2) before a word containing "conftest.", or (3) at the end.
17195   # Note that $ac_compile itself does not contain backslashes and begins
17196   # with a dollar sign (not a hyphen), so the echo should work correctly.
17197   lt_compile=`echo "$ac_compile" | $SED \
17198   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17199   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17200   -e 's:$: $lt_compiler_flag:'`
17201   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17202   (eval "$lt_compile" 2>out/conftest.err)
17203   ac_status=$?
17204   cat out/conftest.err >&5
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17207   then
17208     # The compiler can only warn and ignore the option if not recognized
17209     # So say no if there are warnings
17210     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17211     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17212     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17213       lt_cv_prog_compiler_c_o_CXX=yes
17214     fi
17215   fi
17216   chmod u+w . 2>&5
17217   $RM conftest*
17218   # SGI C++ compiler will create directory out/ii_files/ for
17219   # template instantiation
17220   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17221   $RM out/* && rmdir out
17222   cd ..
17223   $RM -r conftest
17224   $RM conftest*
17225
17226fi
17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17228$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17229
17230
17231
17232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17233$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17234if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17235  $as_echo_n "(cached) " >&6
17236else
17237  lt_cv_prog_compiler_c_o_CXX=no
17238   $RM -r conftest 2>/dev/null
17239   mkdir conftest
17240   cd conftest
17241   mkdir out
17242   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17243
17244   lt_compiler_flag="-o out/conftest2.$ac_objext"
17245   # Insert the option either (1) after the last *FLAGS variable, or
17246   # (2) before a word containing "conftest.", or (3) at the end.
17247   # Note that $ac_compile itself does not contain backslashes and begins
17248   # with a dollar sign (not a hyphen), so the echo should work correctly.
17249   lt_compile=`echo "$ac_compile" | $SED \
17250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17252   -e 's:$: $lt_compiler_flag:'`
17253   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17254   (eval "$lt_compile" 2>out/conftest.err)
17255   ac_status=$?
17256   cat out/conftest.err >&5
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17259   then
17260     # The compiler can only warn and ignore the option if not recognized
17261     # So say no if there are warnings
17262     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17263     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17264     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17265       lt_cv_prog_compiler_c_o_CXX=yes
17266     fi
17267   fi
17268   chmod u+w . 2>&5
17269   $RM conftest*
17270   # SGI C++ compiler will create directory out/ii_files/ for
17271   # template instantiation
17272   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17273   $RM out/* && rmdir out
17274   cd ..
17275   $RM -r conftest
17276   $RM conftest*
17277
17278fi
17279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17280$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17281
17282
17283
17284
17285hard_links=nottested
17286if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17287  # do not overwrite the value of need_locks provided by the user
17288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17289$as_echo_n "checking if we can lock with hard links... " >&6; }
17290  hard_links=yes
17291  $RM conftest*
17292  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17293  touch conftest.a
17294  ln conftest.a conftest.b 2>&5 || hard_links=no
17295  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17297$as_echo "$hard_links" >&6; }
17298  if test no = "$hard_links"; then
17299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17300$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17301    need_locks=warn
17302  fi
17303else
17304  need_locks=no
17305fi
17306
17307
17308
17309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17310$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17311
17312  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17313  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17314  case $host_os in
17315  aix[4-9]*)
17316    # If we're using GNU nm, then we don't want the "-C" option.
17317    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17318    # Without the "-l" option, or with the "-B" option, AIX nm treats
17319    # weak defined symbols like other global defined symbols, whereas
17320    # GNU nm marks them as "W".
17321    # While the 'weak' keyword is ignored in the Export File, we need
17322    # it in the Import File for the 'aix-soname' feature, so we have
17323    # to replace the "-B" option with "-P" for AIX nm.
17324    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17325      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17326    else
17327      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17328    fi
17329    ;;
17330  pw32*)
17331    export_symbols_cmds_CXX=$ltdll_cmds
17332    ;;
17333  cygwin* | mingw* | cegcc*)
17334    case $cc_basename in
17335    cl*)
17336      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17337      ;;
17338    *)
17339      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'
17340      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17341      ;;
17342    esac
17343    ;;
17344  linux* | k*bsd*-gnu | gnu*)
17345    link_all_deplibs_CXX=no
17346    ;;
17347  *)
17348    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17349    ;;
17350  esac
17351
17352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17353$as_echo "$ld_shlibs_CXX" >&6; }
17354test no = "$ld_shlibs_CXX" && can_build_shared=no
17355
17356with_gnu_ld_CXX=$with_gnu_ld
17357
17358
17359
17360
17361
17362
17363#
17364# Do we need to explicitly link libc?
17365#
17366case "x$archive_cmds_need_lc_CXX" in
17367x|xyes)
17368  # Assume -lc should be added
17369  archive_cmds_need_lc_CXX=yes
17370
17371  if test yes,yes = "$GCC,$enable_shared"; then
17372    case $archive_cmds_CXX in
17373    *'~'*)
17374      # FIXME: we may have to deal with multi-command sequences.
17375      ;;
17376    '$CC '*)
17377      # Test whether the compiler implicitly links with -lc since on some
17378      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17379      # to ld, don't add -lc before -lgcc.
17380      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17381$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17382if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17383  $as_echo_n "(cached) " >&6
17384else
17385  $RM conftest*
17386	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17387
17388	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17389  (eval $ac_compile) 2>&5
17390  ac_status=$?
17391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17392  test $ac_status = 0; } 2>conftest.err; then
17393	  soname=conftest
17394	  lib=conftest
17395	  libobjs=conftest.$ac_objext
17396	  deplibs=
17397	  wl=$lt_prog_compiler_wl_CXX
17398	  pic_flag=$lt_prog_compiler_pic_CXX
17399	  compiler_flags=-v
17400	  linker_flags=-v
17401	  verstring=
17402	  output_objdir=.
17403	  libname=conftest
17404	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17405	  allow_undefined_flag_CXX=
17406	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17407  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17408  ac_status=$?
17409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17410  test $ac_status = 0; }
17411	  then
17412	    lt_cv_archive_cmds_need_lc_CXX=no
17413	  else
17414	    lt_cv_archive_cmds_need_lc_CXX=yes
17415	  fi
17416	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17417	else
17418	  cat conftest.err 1>&5
17419	fi
17420	$RM conftest*
17421
17422fi
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17424$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17425      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17426      ;;
17427    esac
17428  fi
17429  ;;
17430esac
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17494$as_echo_n "checking dynamic linker characteristics... " >&6; }
17495
17496library_names_spec=
17497libname_spec='lib$name'
17498soname_spec=
17499shrext_cmds=.so
17500postinstall_cmds=
17501postuninstall_cmds=
17502finish_cmds=
17503finish_eval=
17504shlibpath_var=
17505shlibpath_overrides_runpath=unknown
17506version_type=none
17507dynamic_linker="$host_os ld.so"
17508sys_lib_dlsearch_path_spec="/lib /usr/lib"
17509need_lib_prefix=unknown
17510hardcode_into_libs=no
17511
17512# when you set need_version to no, make sure it does not cause -set_version
17513# flags to be left without arguments
17514need_version=unknown
17515
17516
17517
17518case $host_os in
17519aix3*)
17520  version_type=linux # correct to gnu/linux during the next big refactor
17521  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17522  shlibpath_var=LIBPATH
17523
17524  # AIX 3 has no versioning support, so we append a major version to the name.
17525  soname_spec='$libname$release$shared_ext$major'
17526  ;;
17527
17528aix[4-9]*)
17529  version_type=linux # correct to gnu/linux during the next big refactor
17530  need_lib_prefix=no
17531  need_version=no
17532  hardcode_into_libs=yes
17533  if test ia64 = "$host_cpu"; then
17534    # AIX 5 supports IA64
17535    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17536    shlibpath_var=LD_LIBRARY_PATH
17537  else
17538    # With GCC up to 2.95.x, collect2 would create an import file
17539    # for dependence libraries.  The import file would start with
17540    # the line '#! .'.  This would cause the generated library to
17541    # depend on '.', always an invalid library.  This was fixed in
17542    # development snapshots of GCC prior to 3.0.
17543    case $host_os in
17544      aix4 | aix4.[01] | aix4.[01].*)
17545      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17546	   echo ' yes '
17547	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17548	:
17549      else
17550	can_build_shared=no
17551      fi
17552      ;;
17553    esac
17554    # Using Import Files as archive members, it is possible to support
17555    # filename-based versioning of shared library archives on AIX. While
17556    # this would work for both with and without runtime linking, it will
17557    # prevent static linking of such archives. So we do filename-based
17558    # shared library versioning with .so extension only, which is used
17559    # when both runtime linking and shared linking is enabled.
17560    # Unfortunately, runtime linking may impact performance, so we do
17561    # not want this to be the default eventually. Also, we use the
17562    # versioned .so libs for executables only if there is the -brtl
17563    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17564    # To allow for filename-based versioning support, we need to create
17565    # libNAME.so.V as an archive file, containing:
17566    # *) an Import File, referring to the versioned filename of the
17567    #    archive as well as the shared archive member, telling the
17568    #    bitwidth (32 or 64) of that shared object, and providing the
17569    #    list of exported symbols of that shared object, eventually
17570    #    decorated with the 'weak' keyword
17571    # *) the shared object with the F_LOADONLY flag set, to really avoid
17572    #    it being seen by the linker.
17573    # At run time we better use the real file rather than another symlink,
17574    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17575
17576    case $with_aix_soname,$aix_use_runtimelinking in
17577    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17578    # soname into executable. Probably we can add versioning support to
17579    # collect2, so additional links can be useful in future.
17580    aix,yes) # traditional libtool
17581      dynamic_linker='AIX unversionable lib.so'
17582      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17583      # instead of lib<name>.a to let people know that these are not
17584      # typical AIX shared libraries.
17585      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17586      ;;
17587    aix,no) # traditional AIX only
17588      dynamic_linker='AIX lib.a(lib.so.V)'
17589      # We preserve .a as extension for shared libraries through AIX4.2
17590      # and later when we are not doing run time linking.
17591      library_names_spec='$libname$release.a $libname.a'
17592      soname_spec='$libname$release$shared_ext$major'
17593      ;;
17594    svr4,*) # full svr4 only
17595      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17596      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17597      # We do not specify a path in Import Files, so LIBPATH fires.
17598      shlibpath_overrides_runpath=yes
17599      ;;
17600    *,yes) # both, prefer svr4
17601      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17602      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17603      # unpreferred sharedlib libNAME.a needs extra handling
17604      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17605      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17606      # We do not specify a path in Import Files, so LIBPATH fires.
17607      shlibpath_overrides_runpath=yes
17608      ;;
17609    *,no) # both, prefer aix
17610      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17611      library_names_spec='$libname$release.a $libname.a'
17612      soname_spec='$libname$release$shared_ext$major'
17613      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17614      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17615      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17616      ;;
17617    esac
17618    shlibpath_var=LIBPATH
17619  fi
17620  ;;
17621
17622amigaos*)
17623  case $host_cpu in
17624  powerpc)
17625    # Since July 2007 AmigaOS4 officially supports .so libraries.
17626    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17627    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17628    ;;
17629  m68k)
17630    library_names_spec='$libname.ixlibrary $libname.a'
17631    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17632    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17633    ;;
17634  esac
17635  ;;
17636
17637beos*)
17638  library_names_spec='$libname$shared_ext'
17639  dynamic_linker="$host_os ld.so"
17640  shlibpath_var=LIBRARY_PATH
17641  ;;
17642
17643bsdi[45]*)
17644  version_type=linux # correct to gnu/linux during the next big refactor
17645  need_version=no
17646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17647  soname_spec='$libname$release$shared_ext$major'
17648  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17649  shlibpath_var=LD_LIBRARY_PATH
17650  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17651  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17652  # the default ld.so.conf also contains /usr/contrib/lib and
17653  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17654  # libtool to hard-code these into programs
17655  ;;
17656
17657cygwin* | mingw* | pw32* | cegcc*)
17658  version_type=windows
17659  shrext_cmds=.dll
17660  need_version=no
17661  need_lib_prefix=no
17662
17663  case $GCC,$cc_basename in
17664  yes,*)
17665    # gcc
17666    library_names_spec='$libname.dll.a'
17667    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17668    postinstall_cmds='base_file=`basename \$file`~
17669      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17670      dldir=$destdir/`dirname \$dlpath`~
17671      test -d \$dldir || mkdir -p \$dldir~
17672      $install_prog $dir/$dlname \$dldir/$dlname~
17673      chmod a+x \$dldir/$dlname~
17674      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17675        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17676      fi'
17677    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17678      dlpath=$dir/\$dldll~
17679       $RM \$dlpath'
17680    shlibpath_overrides_runpath=yes
17681
17682    case $host_os in
17683    cygwin*)
17684      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17685      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17686
17687      ;;
17688    mingw* | cegcc*)
17689      # MinGW DLLs use traditional 'lib' prefix
17690      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17691      ;;
17692    pw32*)
17693      # pw32 DLLs use 'pw' prefix rather than 'lib'
17694      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17695      ;;
17696    esac
17697    dynamic_linker='Win32 ld.exe'
17698    ;;
17699
17700  *,cl*)
17701    # Native MSVC
17702    libname_spec='$name'
17703    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17704    library_names_spec='$libname.dll.lib'
17705
17706    case $build_os in
17707    mingw*)
17708      sys_lib_search_path_spec=
17709      lt_save_ifs=$IFS
17710      IFS=';'
17711      for lt_path in $LIB
17712      do
17713        IFS=$lt_save_ifs
17714        # Let DOS variable expansion print the short 8.3 style file name.
17715        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17716        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17717      done
17718      IFS=$lt_save_ifs
17719      # Convert to MSYS style.
17720      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17721      ;;
17722    cygwin*)
17723      # Convert to unix form, then to dos form, then back to unix form
17724      # but this time dos style (no spaces!) so that the unix form looks
17725      # like /cygdrive/c/PROGRA~1:/cygdr...
17726      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17727      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17728      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17729      ;;
17730    *)
17731      sys_lib_search_path_spec=$LIB
17732      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17733        # It is most probably a Windows format PATH.
17734        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17735      else
17736        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17737      fi
17738      # FIXME: find the short name or the path components, as spaces are
17739      # common. (e.g. "Program Files" -> "PROGRA~1")
17740      ;;
17741    esac
17742
17743    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17744    postinstall_cmds='base_file=`basename \$file`~
17745      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17746      dldir=$destdir/`dirname \$dlpath`~
17747      test -d \$dldir || mkdir -p \$dldir~
17748      $install_prog $dir/$dlname \$dldir/$dlname'
17749    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17750      dlpath=$dir/\$dldll~
17751       $RM \$dlpath'
17752    shlibpath_overrides_runpath=yes
17753    dynamic_linker='Win32 link.exe'
17754    ;;
17755
17756  *)
17757    # Assume MSVC wrapper
17758    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17759    dynamic_linker='Win32 ld.exe'
17760    ;;
17761  esac
17762  # FIXME: first we should search . and the directory the executable is in
17763  shlibpath_var=PATH
17764  ;;
17765
17766darwin* | rhapsody*)
17767  dynamic_linker="$host_os dyld"
17768  version_type=darwin
17769  need_lib_prefix=no
17770  need_version=no
17771  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17772  soname_spec='$libname$release$major$shared_ext'
17773  shlibpath_overrides_runpath=yes
17774  shlibpath_var=DYLD_LIBRARY_PATH
17775  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17776
17777  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17778  ;;
17779
17780dgux*)
17781  version_type=linux # correct to gnu/linux during the next big refactor
17782  need_lib_prefix=no
17783  need_version=no
17784  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17785  soname_spec='$libname$release$shared_ext$major'
17786  shlibpath_var=LD_LIBRARY_PATH
17787  ;;
17788
17789freebsd* | dragonfly*)
17790  # DragonFly does not have aout.  When/if they implement a new
17791  # versioning mechanism, adjust this.
17792  if test -x /usr/bin/objformat; then
17793    objformat=`/usr/bin/objformat`
17794  else
17795    case $host_os in
17796    freebsd[23].*) objformat=aout ;;
17797    *) objformat=elf ;;
17798    esac
17799  fi
17800  version_type=freebsd-$objformat
17801  case $version_type in
17802    freebsd-elf*)
17803      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17804      soname_spec='$libname$release$shared_ext$major'
17805      need_version=no
17806      need_lib_prefix=no
17807      ;;
17808    freebsd-*)
17809      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17810      need_version=yes
17811      ;;
17812  esac
17813  shlibpath_var=LD_LIBRARY_PATH
17814  case $host_os in
17815  freebsd2.*)
17816    shlibpath_overrides_runpath=yes
17817    ;;
17818  freebsd3.[01]* | freebsdelf3.[01]*)
17819    shlibpath_overrides_runpath=yes
17820    hardcode_into_libs=yes
17821    ;;
17822  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17823  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17824    shlibpath_overrides_runpath=no
17825    hardcode_into_libs=yes
17826    ;;
17827  *) # from 4.6 on, and DragonFly
17828    shlibpath_overrides_runpath=yes
17829    hardcode_into_libs=yes
17830    ;;
17831  esac
17832  ;;
17833
17834haiku*)
17835  version_type=linux # correct to gnu/linux during the next big refactor
17836  need_lib_prefix=no
17837  need_version=no
17838  dynamic_linker="$host_os runtime_loader"
17839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17840  soname_spec='$libname$release$shared_ext$major'
17841  shlibpath_var=LIBRARY_PATH
17842  shlibpath_overrides_runpath=no
17843  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17844  hardcode_into_libs=yes
17845  ;;
17846
17847hpux9* | hpux10* | hpux11*)
17848  # Give a soname corresponding to the major version so that dld.sl refuses to
17849  # link against other versions.
17850  version_type=sunos
17851  need_lib_prefix=no
17852  need_version=no
17853  case $host_cpu in
17854  ia64*)
17855    shrext_cmds='.so'
17856    hardcode_into_libs=yes
17857    dynamic_linker="$host_os dld.so"
17858    shlibpath_var=LD_LIBRARY_PATH
17859    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17860    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17861    soname_spec='$libname$release$shared_ext$major'
17862    if test 32 = "$HPUX_IA64_MODE"; then
17863      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17864      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17865    else
17866      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17867      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17868    fi
17869    ;;
17870  hppa*64*)
17871    shrext_cmds='.sl'
17872    hardcode_into_libs=yes
17873    dynamic_linker="$host_os dld.sl"
17874    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17875    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17876    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17877    soname_spec='$libname$release$shared_ext$major'
17878    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17879    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17880    ;;
17881  *)
17882    shrext_cmds='.sl'
17883    dynamic_linker="$host_os dld.sl"
17884    shlibpath_var=SHLIB_PATH
17885    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17886    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17887    soname_spec='$libname$release$shared_ext$major'
17888    ;;
17889  esac
17890  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17891  postinstall_cmds='chmod 555 $lib'
17892  # or fails outright, so override atomically:
17893  install_override_mode=555
17894  ;;
17895
17896interix[3-9]*)
17897  version_type=linux # correct to gnu/linux during the next big refactor
17898  need_lib_prefix=no
17899  need_version=no
17900  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17901  soname_spec='$libname$release$shared_ext$major'
17902  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17903  shlibpath_var=LD_LIBRARY_PATH
17904  shlibpath_overrides_runpath=no
17905  hardcode_into_libs=yes
17906  ;;
17907
17908irix5* | irix6* | nonstopux*)
17909  case $host_os in
17910    nonstopux*) version_type=nonstopux ;;
17911    *)
17912	if test yes = "$lt_cv_prog_gnu_ld"; then
17913		version_type=linux # correct to gnu/linux during the next big refactor
17914	else
17915		version_type=irix
17916	fi ;;
17917  esac
17918  need_lib_prefix=no
17919  need_version=no
17920  soname_spec='$libname$release$shared_ext$major'
17921  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17922  case $host_os in
17923  irix5* | nonstopux*)
17924    libsuff= shlibsuff=
17925    ;;
17926  *)
17927    case $LD in # libtool.m4 will add one of these switches to LD
17928    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17929      libsuff= shlibsuff= libmagic=32-bit;;
17930    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17931      libsuff=32 shlibsuff=N32 libmagic=N32;;
17932    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17933      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17934    *) libsuff= shlibsuff= libmagic=never-match;;
17935    esac
17936    ;;
17937  esac
17938  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17939  shlibpath_overrides_runpath=no
17940  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17941  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17942  hardcode_into_libs=yes
17943  ;;
17944
17945# No shared lib support for Linux oldld, aout, or coff.
17946linux*oldld* | linux*aout* | linux*coff*)
17947  dynamic_linker=no
17948  ;;
17949
17950linux*android*)
17951  version_type=none # Android doesn't support versioned libraries.
17952  need_lib_prefix=no
17953  need_version=no
17954  library_names_spec='$libname$release$shared_ext'
17955  soname_spec='$libname$release$shared_ext'
17956  finish_cmds=
17957  shlibpath_var=LD_LIBRARY_PATH
17958  shlibpath_overrides_runpath=yes
17959
17960  # This implies no fast_install, which is unacceptable.
17961  # Some rework will be needed to allow for fast_install
17962  # before this can be enabled.
17963  hardcode_into_libs=yes
17964
17965  dynamic_linker='Android linker'
17966  # Don't embed -rpath directories since the linker doesn't support them.
17967  hardcode_libdir_flag_spec_CXX='-L$libdir'
17968  ;;
17969
17970# This must be glibc/ELF.
17971linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17972  version_type=linux # correct to gnu/linux during the next big refactor
17973  need_lib_prefix=no
17974  need_version=no
17975  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17976  soname_spec='$libname$release$shared_ext$major'
17977  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17978  shlibpath_var=LD_LIBRARY_PATH
17979  shlibpath_overrides_runpath=no
17980
17981  # Some binutils ld are patched to set DT_RUNPATH
17982  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17983  $as_echo_n "(cached) " >&6
17984else
17985  lt_cv_shlibpath_overrides_runpath=no
17986    save_LDFLAGS=$LDFLAGS
17987    save_libdir=$libdir
17988    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17989	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991/* end confdefs.h.  */
17992
17993int
17994main ()
17995{
17996
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001if ac_fn_cxx_try_link "$LINENO"; then :
18002  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18003  lt_cv_shlibpath_overrides_runpath=yes
18004fi
18005fi
18006rm -f core conftest.err conftest.$ac_objext \
18007    conftest$ac_exeext conftest.$ac_ext
18008    LDFLAGS=$save_LDFLAGS
18009    libdir=$save_libdir
18010
18011fi
18012
18013  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18014
18015  # This implies no fast_install, which is unacceptable.
18016  # Some rework will be needed to allow for fast_install
18017  # before this can be enabled.
18018  hardcode_into_libs=yes
18019
18020  # Ideally, we could use ldconfig to report *all* directores which are
18021  # searched for libraries, however this is still not possible.  Aside from not
18022  # being certain /sbin/ldconfig is available, command
18023  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18024  # even though it is searched at run-time.  Try to do the best guess by
18025  # appending ld.so.conf contents (and includes) to the search path.
18026  if test -f /etc/ld.so.conf; then
18027    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' ' '`
18028    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18029  fi
18030
18031  # We used to test for /lib/ld.so.1 and disable shared libraries on
18032  # powerpc, because MkLinux only supported shared libraries with the
18033  # GNU dynamic linker.  Since this was broken with cross compilers,
18034  # most powerpc-linux boxes support dynamic linking these days and
18035  # people can always --disable-shared, the test was removed, and we
18036  # assume the GNU/Linux dynamic linker is in use.
18037  dynamic_linker='GNU/Linux ld.so'
18038  ;;
18039
18040netbsdelf*-gnu)
18041  version_type=linux
18042  need_lib_prefix=no
18043  need_version=no
18044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18045  soname_spec='${libname}${release}${shared_ext}$major'
18046  shlibpath_var=LD_LIBRARY_PATH
18047  shlibpath_overrides_runpath=no
18048  hardcode_into_libs=yes
18049  dynamic_linker='NetBSD ld.elf_so'
18050  ;;
18051
18052netbsd*)
18053  version_type=sunos
18054  need_lib_prefix=no
18055  need_version=no
18056  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18057    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18058    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18059    dynamic_linker='NetBSD (a.out) ld.so'
18060  else
18061    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18062    soname_spec='$libname$release$shared_ext$major'
18063    dynamic_linker='NetBSD ld.elf_so'
18064  fi
18065  shlibpath_var=LD_LIBRARY_PATH
18066  shlibpath_overrides_runpath=yes
18067  hardcode_into_libs=yes
18068  ;;
18069
18070newsos6)
18071  version_type=linux # correct to gnu/linux during the next big refactor
18072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18073  shlibpath_var=LD_LIBRARY_PATH
18074  shlibpath_overrides_runpath=yes
18075  ;;
18076
18077*nto* | *qnx*)
18078  version_type=qnx
18079  need_lib_prefix=no
18080  need_version=no
18081  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18082  soname_spec='$libname$release$shared_ext$major'
18083  shlibpath_var=LD_LIBRARY_PATH
18084  shlibpath_overrides_runpath=no
18085  hardcode_into_libs=yes
18086  dynamic_linker='ldqnx.so'
18087  ;;
18088
18089openbsd* | bitrig*)
18090  version_type=sunos
18091  sys_lib_dlsearch_path_spec=/usr/lib
18092  need_lib_prefix=no
18093  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18094    need_version=no
18095  else
18096    need_version=yes
18097  fi
18098  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18099  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18100  shlibpath_var=LD_LIBRARY_PATH
18101  shlibpath_overrides_runpath=yes
18102  ;;
18103
18104os2*)
18105  libname_spec='$name'
18106  version_type=windows
18107  shrext_cmds=.dll
18108  need_version=no
18109  need_lib_prefix=no
18110  # OS/2 can only load a DLL with a base name of 8 characters or less.
18111  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18112    v=$($ECHO $release$versuffix | tr -d .-);
18113    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18114    $ECHO $n$v`$shared_ext'
18115  library_names_spec='${libname}_dll.$libext'
18116  dynamic_linker='OS/2 ld.exe'
18117  shlibpath_var=BEGINLIBPATH
18118  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18119  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18120  postinstall_cmds='base_file=`basename \$file`~
18121    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18122    dldir=$destdir/`dirname \$dlpath`~
18123    test -d \$dldir || mkdir -p \$dldir~
18124    $install_prog $dir/$dlname \$dldir/$dlname~
18125    chmod a+x \$dldir/$dlname~
18126    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18127      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18128    fi'
18129  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18130    dlpath=$dir/\$dldll~
18131    $RM \$dlpath'
18132  ;;
18133
18134osf3* | osf4* | osf5*)
18135  version_type=osf
18136  need_lib_prefix=no
18137  need_version=no
18138  soname_spec='$libname$release$shared_ext$major'
18139  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18140  shlibpath_var=LD_LIBRARY_PATH
18141  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18142  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18143  ;;
18144
18145rdos*)
18146  dynamic_linker=no
18147  ;;
18148
18149solaris*)
18150  version_type=linux # correct to gnu/linux during the next big refactor
18151  need_lib_prefix=no
18152  need_version=no
18153  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18154  soname_spec='$libname$release$shared_ext$major'
18155  shlibpath_var=LD_LIBRARY_PATH
18156  shlibpath_overrides_runpath=yes
18157  hardcode_into_libs=yes
18158  # ldd complains unless libraries are executable
18159  postinstall_cmds='chmod +x $lib'
18160  ;;
18161
18162sunos4*)
18163  version_type=sunos
18164  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18165  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18166  shlibpath_var=LD_LIBRARY_PATH
18167  shlibpath_overrides_runpath=yes
18168  if test yes = "$with_gnu_ld"; then
18169    need_lib_prefix=no
18170  fi
18171  need_version=yes
18172  ;;
18173
18174sysv4 | sysv4.3*)
18175  version_type=linux # correct to gnu/linux during the next big refactor
18176  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177  soname_spec='$libname$release$shared_ext$major'
18178  shlibpath_var=LD_LIBRARY_PATH
18179  case $host_vendor in
18180    sni)
18181      shlibpath_overrides_runpath=no
18182      need_lib_prefix=no
18183      runpath_var=LD_RUN_PATH
18184      ;;
18185    siemens)
18186      need_lib_prefix=no
18187      ;;
18188    motorola)
18189      need_lib_prefix=no
18190      need_version=no
18191      shlibpath_overrides_runpath=no
18192      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18193      ;;
18194  esac
18195  ;;
18196
18197sysv4*MP*)
18198  if test -d /usr/nec; then
18199    version_type=linux # correct to gnu/linux during the next big refactor
18200    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18201    soname_spec='$libname$shared_ext.$major'
18202    shlibpath_var=LD_LIBRARY_PATH
18203  fi
18204  ;;
18205
18206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18207  version_type=sco
18208  need_lib_prefix=no
18209  need_version=no
18210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18211  soname_spec='$libname$release$shared_ext$major'
18212  shlibpath_var=LD_LIBRARY_PATH
18213  shlibpath_overrides_runpath=yes
18214  hardcode_into_libs=yes
18215  if test yes = "$with_gnu_ld"; then
18216    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18217  else
18218    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18219    case $host_os in
18220      sco3.2v5*)
18221        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18222	;;
18223    esac
18224  fi
18225  sys_lib_dlsearch_path_spec='/usr/lib'
18226  ;;
18227
18228tpf*)
18229  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18230  version_type=linux # correct to gnu/linux during the next big refactor
18231  need_lib_prefix=no
18232  need_version=no
18233  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18234  shlibpath_var=LD_LIBRARY_PATH
18235  shlibpath_overrides_runpath=no
18236  hardcode_into_libs=yes
18237  ;;
18238
18239uts4*)
18240  version_type=linux # correct to gnu/linux during the next big refactor
18241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18242  soname_spec='$libname$release$shared_ext$major'
18243  shlibpath_var=LD_LIBRARY_PATH
18244  ;;
18245
18246*)
18247  dynamic_linker=no
18248  ;;
18249esac
18250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18251$as_echo "$dynamic_linker" >&6; }
18252test no = "$dynamic_linker" && can_build_shared=no
18253
18254variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18255if test yes = "$GCC"; then
18256  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18257fi
18258
18259if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18260  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18261fi
18262
18263if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18264  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18265fi
18266
18267# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18268configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18269
18270# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18271func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18272
18273# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18274configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18316$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18317hardcode_action_CXX=
18318if test -n "$hardcode_libdir_flag_spec_CXX" ||
18319   test -n "$runpath_var_CXX" ||
18320   test yes = "$hardcode_automatic_CXX"; then
18321
18322  # We can hardcode non-existent directories.
18323  if test no != "$hardcode_direct_CXX" &&
18324     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18325     # have to relink, otherwise we might link with an installed library
18326     # when we should be linking with a yet-to-be-installed one
18327     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18328     test no != "$hardcode_minus_L_CXX"; then
18329    # Linking always hardcodes the temporary library directory.
18330    hardcode_action_CXX=relink
18331  else
18332    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18333    hardcode_action_CXX=immediate
18334  fi
18335else
18336  # We cannot hardcode anything, or else we can only hardcode existing
18337  # directories.
18338  hardcode_action_CXX=unsupported
18339fi
18340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18341$as_echo "$hardcode_action_CXX" >&6; }
18342
18343if test relink = "$hardcode_action_CXX" ||
18344   test yes = "$inherit_rpath_CXX"; then
18345  # Fast installation is not supported
18346  enable_fast_install=no
18347elif test yes = "$shlibpath_overrides_runpath" ||
18348     test no = "$enable_shared"; then
18349  # Fast installation is not necessary
18350  enable_fast_install=needless
18351fi
18352
18353
18354
18355
18356
18357
18358
18359  fi # test -n "$compiler"
18360
18361  CC=$lt_save_CC
18362  CFLAGS=$lt_save_CFLAGS
18363  LDCXX=$LD
18364  LD=$lt_save_LD
18365  GCC=$lt_save_GCC
18366  with_gnu_ld=$lt_save_with_gnu_ld
18367  lt_cv_path_LDCXX=$lt_cv_path_LD
18368  lt_cv_path_LD=$lt_save_path_LD
18369  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18370  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18371fi # test yes != "$_lt_caught_CXX_error"
18372
18373ac_ext=cpp
18374ac_cpp='$CXXCPP $CPPFLAGS'
18375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393        ac_config_commands="$ac_config_commands libtool"
18394
18395
18396
18397
18398# Only expand once:
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18409	if test -n "$ac_tool_prefix"; then
18410  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18411set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18413$as_echo_n "checking for $ac_word... " >&6; }
18414if ${ac_cv_path_PKG_CONFIG+:} false; then :
18415  $as_echo_n "(cached) " >&6
18416else
18417  case $PKG_CONFIG in
18418  [\\/]* | ?:[\\/]*)
18419  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18420  ;;
18421  *)
18422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18423for as_dir in $PATH
18424do
18425  IFS=$as_save_IFS
18426  test -z "$as_dir" && as_dir=.
18427    for ac_exec_ext in '' $ac_executable_extensions; do
18428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18429    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18431    break 2
18432  fi
18433done
18434  done
18435IFS=$as_save_IFS
18436
18437  ;;
18438esac
18439fi
18440PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18441if test -n "$PKG_CONFIG"; then
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18443$as_echo "$PKG_CONFIG" >&6; }
18444else
18445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446$as_echo "no" >&6; }
18447fi
18448
18449
18450fi
18451if test -z "$ac_cv_path_PKG_CONFIG"; then
18452  ac_pt_PKG_CONFIG=$PKG_CONFIG
18453  # Extract the first word of "pkg-config", so it can be a program name with args.
18454set dummy pkg-config; ac_word=$2
18455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18456$as_echo_n "checking for $ac_word... " >&6; }
18457if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18458  $as_echo_n "(cached) " >&6
18459else
18460  case $ac_pt_PKG_CONFIG in
18461  [\\/]* | ?:[\\/]*)
18462  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18463  ;;
18464  *)
18465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18466for as_dir in $PATH
18467do
18468  IFS=$as_save_IFS
18469  test -z "$as_dir" && as_dir=.
18470    for ac_exec_ext in '' $ac_executable_extensions; do
18471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18472    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18474    break 2
18475  fi
18476done
18477  done
18478IFS=$as_save_IFS
18479
18480  ;;
18481esac
18482fi
18483ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18484if test -n "$ac_pt_PKG_CONFIG"; then
18485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18486$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18487else
18488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18489$as_echo "no" >&6; }
18490fi
18491
18492  if test "x$ac_pt_PKG_CONFIG" = x; then
18493    PKG_CONFIG=""
18494  else
18495    case $cross_compiling:$ac_tool_warned in
18496yes:)
18497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18499ac_tool_warned=yes ;;
18500esac
18501    PKG_CONFIG=$ac_pt_PKG_CONFIG
18502  fi
18503else
18504  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18505fi
18506
18507fi
18508if test -n "$PKG_CONFIG"; then
18509	_pkg_min_version=0.20
18510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18511$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18512	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18514$as_echo "yes" >&6; }
18515	else
18516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517$as_echo "no" >&6; }
18518		PKG_CONFIG=""
18519	fi
18520fi
18521
18522
18523
18524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18525$as_echo_n "checking whether NLS is requested... " >&6; }
18526    # Check whether --enable-nls was given.
18527if test "${enable_nls+set}" = set; then :
18528  enableval=$enable_nls; USE_NLS=$enableval
18529else
18530  USE_NLS=yes
18531fi
18532
18533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18534$as_echo "$USE_NLS" >&6; }
18535
18536
18537
18538
18539      GETTEXT_MACRO_VERSION=0.18
18540
18541
18542
18543
18544# Prepare PATH_SEPARATOR.
18545# The user is always right.
18546if test "${PATH_SEPARATOR+set}" != set; then
18547  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18548  # contains only /bin. Note that ksh looks also at the FPATH variable,
18549  # so we have to set that as well for the test.
18550  PATH_SEPARATOR=:
18551  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18552    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18553           || PATH_SEPARATOR=';'
18554       }
18555fi
18556
18557# Find out how to test for executable files. Don't use a zero-byte file,
18558# as systems may use methods other than mode bits to determine executability.
18559cat >conf$$.file <<_ASEOF
18560#! /bin/sh
18561exit 0
18562_ASEOF
18563chmod +x conf$$.file
18564if test -x conf$$.file >/dev/null 2>&1; then
18565  ac_executable_p="test -x"
18566else
18567  ac_executable_p="test -f"
18568fi
18569rm -f conf$$.file
18570
18571# Extract the first word of "msgfmt", so it can be a program name with args.
18572set dummy msgfmt; ac_word=$2
18573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18574$as_echo_n "checking for $ac_word... " >&6; }
18575if ${ac_cv_path_MSGFMT+:} false; then :
18576  $as_echo_n "(cached) " >&6
18577else
18578  case "$MSGFMT" in
18579  [\\/]* | ?:[\\/]*)
18580    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18581    ;;
18582  *)
18583    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18584    for ac_dir in $PATH; do
18585      IFS="$ac_save_IFS"
18586      test -z "$ac_dir" && ac_dir=.
18587      for ac_exec_ext in '' $ac_executable_extensions; do
18588        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18589          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18590          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
18591     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18592            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18593            break 2
18594          fi
18595        fi
18596      done
18597    done
18598    IFS="$ac_save_IFS"
18599  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18600    ;;
18601esac
18602fi
18603MSGFMT="$ac_cv_path_MSGFMT"
18604if test "$MSGFMT" != ":"; then
18605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18606$as_echo "$MSGFMT" >&6; }
18607else
18608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609$as_echo "no" >&6; }
18610fi
18611
18612  # Extract the first word of "gmsgfmt", so it can be a program name with args.
18613set dummy gmsgfmt; ac_word=$2
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615$as_echo_n "checking for $ac_word... " >&6; }
18616if ${ac_cv_path_GMSGFMT+:} false; then :
18617  $as_echo_n "(cached) " >&6
18618else
18619  case $GMSGFMT in
18620  [\\/]* | ?:[\\/]*)
18621  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18622  ;;
18623  *)
18624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625for as_dir in $PATH
18626do
18627  IFS=$as_save_IFS
18628  test -z "$as_dir" && as_dir=.
18629    for ac_exec_ext in '' $ac_executable_extensions; do
18630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18631    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633    break 2
18634  fi
18635done
18636  done
18637IFS=$as_save_IFS
18638
18639  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18640  ;;
18641esac
18642fi
18643GMSGFMT=$ac_cv_path_GMSGFMT
18644if test -n "$GMSGFMT"; then
18645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18646$as_echo "$GMSGFMT" >&6; }
18647else
18648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649$as_echo "no" >&6; }
18650fi
18651
18652
18653
18654    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18655    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
18656    *) MSGFMT_015=$MSGFMT ;;
18657  esac
18658
18659  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18660    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
18661    *) GMSGFMT_015=$GMSGFMT ;;
18662  esac
18663
18664
18665
18666# Prepare PATH_SEPARATOR.
18667# The user is always right.
18668if test "${PATH_SEPARATOR+set}" != set; then
18669  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18670  # contains only /bin. Note that ksh looks also at the FPATH variable,
18671  # so we have to set that as well for the test.
18672  PATH_SEPARATOR=:
18673  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18674    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18675           || PATH_SEPARATOR=';'
18676       }
18677fi
18678
18679# Find out how to test for executable files. Don't use a zero-byte file,
18680# as systems may use methods other than mode bits to determine executability.
18681cat >conf$$.file <<_ASEOF
18682#! /bin/sh
18683exit 0
18684_ASEOF
18685chmod +x conf$$.file
18686if test -x conf$$.file >/dev/null 2>&1; then
18687  ac_executable_p="test -x"
18688else
18689  ac_executable_p="test -f"
18690fi
18691rm -f conf$$.file
18692
18693# Extract the first word of "xgettext", so it can be a program name with args.
18694set dummy xgettext; ac_word=$2
18695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18696$as_echo_n "checking for $ac_word... " >&6; }
18697if ${ac_cv_path_XGETTEXT+:} false; then :
18698  $as_echo_n "(cached) " >&6
18699else
18700  case "$XGETTEXT" in
18701  [\\/]* | ?:[\\/]*)
18702    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18703    ;;
18704  *)
18705    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18706    for ac_dir in $PATH; do
18707      IFS="$ac_save_IFS"
18708      test -z "$ac_dir" && ac_dir=.
18709      for ac_exec_ext in '' $ac_executable_extensions; do
18710        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18711          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18712          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
18713     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18714            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18715            break 2
18716          fi
18717        fi
18718      done
18719    done
18720    IFS="$ac_save_IFS"
18721  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18722    ;;
18723esac
18724fi
18725XGETTEXT="$ac_cv_path_XGETTEXT"
18726if test "$XGETTEXT" != ":"; then
18727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18728$as_echo "$XGETTEXT" >&6; }
18729else
18730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731$as_echo "no" >&6; }
18732fi
18733
18734    rm -f messages.po
18735
18736    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18737    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
18738    *) XGETTEXT_015=$XGETTEXT ;;
18739  esac
18740
18741
18742
18743# Prepare PATH_SEPARATOR.
18744# The user is always right.
18745if test "${PATH_SEPARATOR+set}" != set; then
18746  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18747  # contains only /bin. Note that ksh looks also at the FPATH variable,
18748  # so we have to set that as well for the test.
18749  PATH_SEPARATOR=:
18750  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18751    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18752           || PATH_SEPARATOR=';'
18753       }
18754fi
18755
18756# Find out how to test for executable files. Don't use a zero-byte file,
18757# as systems may use methods other than mode bits to determine executability.
18758cat >conf$$.file <<_ASEOF
18759#! /bin/sh
18760exit 0
18761_ASEOF
18762chmod +x conf$$.file
18763if test -x conf$$.file >/dev/null 2>&1; then
18764  ac_executable_p="test -x"
18765else
18766  ac_executable_p="test -f"
18767fi
18768rm -f conf$$.file
18769
18770# Extract the first word of "msgmerge", so it can be a program name with args.
18771set dummy msgmerge; ac_word=$2
18772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18773$as_echo_n "checking for $ac_word... " >&6; }
18774if ${ac_cv_path_MSGMERGE+:} false; then :
18775  $as_echo_n "(cached) " >&6
18776else
18777  case "$MSGMERGE" in
18778  [\\/]* | ?:[\\/]*)
18779    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18780    ;;
18781  *)
18782    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18783    for ac_dir in $PATH; do
18784      IFS="$ac_save_IFS"
18785      test -z "$ac_dir" && ac_dir=.
18786      for ac_exec_ext in '' $ac_executable_extensions; do
18787        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18788          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18789          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18790            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18791            break 2
18792          fi
18793        fi
18794      done
18795    done
18796    IFS="$ac_save_IFS"
18797  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18798    ;;
18799esac
18800fi
18801MSGMERGE="$ac_cv_path_MSGMERGE"
18802if test "$MSGMERGE" != ":"; then
18803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18804$as_echo "$MSGMERGE" >&6; }
18805else
18806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807$as_echo "no" >&6; }
18808fi
18809
18810
18811        test -n "$localedir" || localedir='${datadir}/locale'
18812
18813
18814    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18815
18816
18817  ac_config_commands="$ac_config_commands po-directories"
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18845$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18846if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18847  $as_echo_n "(cached) " >&6
18848else
18849  gt_save_LIBS="$LIBS"
18850     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853#include <CoreFoundation/CFPreferences.h>
18854int
18855main ()
18856{
18857CFPreferencesCopyAppValue(NULL, NULL)
18858  ;
18859  return 0;
18860}
18861_ACEOF
18862if ac_fn_cxx_try_link "$LINENO"; then :
18863  gt_cv_func_CFPreferencesCopyAppValue=yes
18864else
18865  gt_cv_func_CFPreferencesCopyAppValue=no
18866fi
18867rm -f core conftest.err conftest.$ac_objext \
18868    conftest$ac_exeext conftest.$ac_ext
18869     LIBS="$gt_save_LIBS"
18870fi
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18872$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18873  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18874
18875$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18876
18877  fi
18878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18879$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18880if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18881  $as_echo_n "(cached) " >&6
18882else
18883  gt_save_LIBS="$LIBS"
18884     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886/* end confdefs.h.  */
18887#include <CoreFoundation/CFLocale.h>
18888int
18889main ()
18890{
18891CFLocaleCopyCurrent();
18892  ;
18893  return 0;
18894}
18895_ACEOF
18896if ac_fn_cxx_try_link "$LINENO"; then :
18897  gt_cv_func_CFLocaleCopyCurrent=yes
18898else
18899  gt_cv_func_CFLocaleCopyCurrent=no
18900fi
18901rm -f core conftest.err conftest.$ac_objext \
18902    conftest$ac_exeext conftest.$ac_ext
18903     LIBS="$gt_save_LIBS"
18904fi
18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18906$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18907  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18908
18909$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18910
18911  fi
18912  INTL_MACOSX_LIBS=
18913  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18914    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18915  fi
18916
18917
18918
18919
18920
18921
18922  LIBINTL=
18923  LTLIBINTL=
18924  POSUB=
18925
18926    case " $gt_needs " in
18927    *" need-formatstring-macros "*) gt_api_version=3 ;;
18928    *" need-ngettext "*) gt_api_version=2 ;;
18929    *) gt_api_version=1 ;;
18930  esac
18931  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18932  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18933
18934    if test "$USE_NLS" = "yes"; then
18935    gt_use_preinstalled_gnugettext=no
18936
18937
18938        if test $gt_api_version -ge 3; then
18939          gt_revision_test_code='
18940#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18941#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18942#endif
18943typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18944'
18945        else
18946          gt_revision_test_code=
18947        fi
18948        if test $gt_api_version -ge 2; then
18949          gt_expression_test_code=' + * ngettext ("", "", 0)'
18950        else
18951          gt_expression_test_code=
18952        fi
18953
18954        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18955$as_echo_n "checking for GNU gettext in libc... " >&6; }
18956if eval \${$gt_func_gnugettext_libc+:} false; then :
18957  $as_echo_n "(cached) " >&6
18958else
18959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960/* end confdefs.h.  */
18961
18962#include <libintl.h>
18963$gt_revision_test_code
18964extern int _nl_msg_cat_cntr;
18965extern int *_nl_domain_bindings;
18966
18967int
18968main ()
18969{
18970
18971bindtextdomain ("", "");
18972return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
18973
18974  ;
18975  return 0;
18976}
18977_ACEOF
18978if ac_fn_cxx_try_link "$LINENO"; then :
18979  eval "$gt_func_gnugettext_libc=yes"
18980else
18981  eval "$gt_func_gnugettext_libc=no"
18982fi
18983rm -f core conftest.err conftest.$ac_objext \
18984    conftest$ac_exeext conftest.$ac_ext
18985fi
18986eval ac_res=\$$gt_func_gnugettext_libc
18987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18988$as_echo "$ac_res" >&6; }
18989
18990        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18991
18992
18993
18994
18995
18996          am_save_CPPFLAGS="$CPPFLAGS"
18997
18998  for element in $INCICONV; do
18999    haveit=
19000    for x in $CPPFLAGS; do
19001
19002  acl_save_prefix="$prefix"
19003  prefix="$acl_final_prefix"
19004  acl_save_exec_prefix="$exec_prefix"
19005  exec_prefix="$acl_final_exec_prefix"
19006  eval x=\"$x\"
19007  exec_prefix="$acl_save_exec_prefix"
19008  prefix="$acl_save_prefix"
19009
19010      if test "X$x" = "X$element"; then
19011        haveit=yes
19012        break
19013      fi
19014    done
19015    if test -z "$haveit"; then
19016      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19017    fi
19018  done
19019
19020
19021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19022$as_echo_n "checking for iconv... " >&6; }
19023if ${am_cv_func_iconv+:} false; then :
19024  $as_echo_n "(cached) " >&6
19025else
19026
19027    am_cv_func_iconv="no, consider installing GNU libiconv"
19028    am_cv_lib_iconv=no
19029    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030/* end confdefs.h.  */
19031
19032#include <stdlib.h>
19033#include <iconv.h>
19034
19035int
19036main ()
19037{
19038iconv_t cd = iconv_open("","");
19039           iconv(cd,NULL,NULL,NULL,NULL);
19040           iconv_close(cd);
19041  ;
19042  return 0;
19043}
19044_ACEOF
19045if ac_fn_cxx_try_link "$LINENO"; then :
19046  am_cv_func_iconv=yes
19047fi
19048rm -f core conftest.err conftest.$ac_objext \
19049    conftest$ac_exeext conftest.$ac_ext
19050    if test "$am_cv_func_iconv" != yes; then
19051      am_save_LIBS="$LIBS"
19052      LIBS="$LIBS $LIBICONV"
19053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054/* end confdefs.h.  */
19055
19056#include <stdlib.h>
19057#include <iconv.h>
19058
19059int
19060main ()
19061{
19062iconv_t cd = iconv_open("","");
19063             iconv(cd,NULL,NULL,NULL,NULL);
19064             iconv_close(cd);
19065  ;
19066  return 0;
19067}
19068_ACEOF
19069if ac_fn_cxx_try_link "$LINENO"; then :
19070  am_cv_lib_iconv=yes
19071        am_cv_func_iconv=yes
19072fi
19073rm -f core conftest.err conftest.$ac_objext \
19074    conftest$ac_exeext conftest.$ac_ext
19075      LIBS="$am_save_LIBS"
19076    fi
19077
19078fi
19079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19080$as_echo "$am_cv_func_iconv" >&6; }
19081  if test "$am_cv_func_iconv" = yes; then
19082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19083$as_echo_n "checking for working iconv... " >&6; }
19084if ${am_cv_func_iconv_works+:} false; then :
19085  $as_echo_n "(cached) " >&6
19086else
19087
19088                  am_save_LIBS="$LIBS"
19089      if test $am_cv_lib_iconv = yes; then
19090        LIBS="$LIBS $LIBICONV"
19091      fi
19092      if test "$cross_compiling" = yes; then :
19093
19094         case "$host_os" in
19095           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19096           *)            am_cv_func_iconv_works="guessing yes" ;;
19097         esac
19098
19099else
19100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101/* end confdefs.h.  */
19102
19103#include <iconv.h>
19104#include <string.h>
19105int main ()
19106{
19107  int result = 0;
19108  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19109     returns.  */
19110  {
19111    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19112    if (cd_utf8_to_88591 != (iconv_t)(-1))
19113      {
19114        static const char input[] = "\342\202\254"; /* EURO SIGN */
19115        char buf[10];
19116        const char *inptr = input;
19117        size_t inbytesleft = strlen (input);
19118        char *outptr = buf;
19119        size_t outbytesleft = sizeof (buf);
19120        size_t res = iconv (cd_utf8_to_88591,
19121                            (char **) &inptr, &inbytesleft,
19122                            &outptr, &outbytesleft);
19123        if (res == 0)
19124          result |= 1;
19125        iconv_close (cd_utf8_to_88591);
19126      }
19127  }
19128  /* Test against Solaris 10 bug: Failures are not distinguishable from
19129     successful returns.  */
19130  {
19131    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19132    if (cd_ascii_to_88591 != (iconv_t)(-1))
19133      {
19134        static const char input[] = "\263";
19135        char buf[10];
19136        const char *inptr = input;
19137        size_t inbytesleft = strlen (input);
19138        char *outptr = buf;
19139        size_t outbytesleft = sizeof (buf);
19140        size_t res = iconv (cd_ascii_to_88591,
19141                            (char **) &inptr, &inbytesleft,
19142                            &outptr, &outbytesleft);
19143        if (res == 0)
19144          result |= 2;
19145        iconv_close (cd_ascii_to_88591);
19146      }
19147  }
19148  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
19149  {
19150    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19151    if (cd_88591_to_utf8 != (iconv_t)(-1))
19152      {
19153        static const char input[] = "\304";
19154        static char buf[2] = { (char)0xDE, (char)0xAD };
19155        const char *inptr = input;
19156        size_t inbytesleft = 1;
19157        char *outptr = buf;
19158        size_t outbytesleft = 1;
19159        size_t res = iconv (cd_88591_to_utf8,
19160                            (char **) &inptr, &inbytesleft,
19161                            &outptr, &outbytesleft);
19162        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19163          result |= 4;
19164        iconv_close (cd_88591_to_utf8);
19165      }
19166  }
19167#if 0 /* This bug could be worked around by the caller.  */
19168  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
19169  {
19170    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19171    if (cd_88591_to_utf8 != (iconv_t)(-1))
19172      {
19173        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19174        char buf[50];
19175        const char *inptr = input;
19176        size_t inbytesleft = strlen (input);
19177        char *outptr = buf;
19178        size_t outbytesleft = sizeof (buf);
19179        size_t res = iconv (cd_88591_to_utf8,
19180                            (char **) &inptr, &inbytesleft,
19181                            &outptr, &outbytesleft);
19182        if ((int)res > 0)
19183          result |= 8;
19184        iconv_close (cd_88591_to_utf8);
19185      }
19186  }
19187#endif
19188  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19189     provided.  */
19190  if (/* Try standardized names.  */
19191      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19192      /* Try IRIX, OSF/1 names.  */
19193      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19194      /* Try AIX names.  */
19195      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19196      /* Try HP-UX names.  */
19197      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19198    result |= 16;
19199  return result;
19200}
19201_ACEOF
19202if ac_fn_cxx_try_run "$LINENO"; then :
19203  am_cv_func_iconv_works=yes
19204else
19205  am_cv_func_iconv_works=no
19206fi
19207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19208  conftest.$ac_objext conftest.beam conftest.$ac_ext
19209fi
19210
19211      LIBS="$am_save_LIBS"
19212
19213fi
19214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19215$as_echo "$am_cv_func_iconv_works" >&6; }
19216    case "$am_cv_func_iconv_works" in
19217      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19218      *)   am_func_iconv=yes ;;
19219    esac
19220  else
19221    am_func_iconv=no am_cv_lib_iconv=no
19222  fi
19223  if test "$am_func_iconv" = yes; then
19224
19225$as_echo "#define HAVE_ICONV 1" >>confdefs.h
19226
19227  fi
19228  if test "$am_cv_lib_iconv" = yes; then
19229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19230$as_echo_n "checking how to link with libiconv... " >&6; }
19231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19232$as_echo "$LIBICONV" >&6; }
19233  else
19234            CPPFLAGS="$am_save_CPPFLAGS"
19235    LIBICONV=
19236    LTLIBICONV=
19237  fi
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249    use_additional=yes
19250
19251  acl_save_prefix="$prefix"
19252  prefix="$acl_final_prefix"
19253  acl_save_exec_prefix="$exec_prefix"
19254  exec_prefix="$acl_final_exec_prefix"
19255
19256    eval additional_includedir=\"$includedir\"
19257    eval additional_libdir=\"$libdir\"
19258
19259  exec_prefix="$acl_save_exec_prefix"
19260  prefix="$acl_save_prefix"
19261
19262
19263# Check whether --with-libintl-prefix was given.
19264if test "${with_libintl_prefix+set}" = set; then :
19265  withval=$with_libintl_prefix;
19266    if test "X$withval" = "Xno"; then
19267      use_additional=no
19268    else
19269      if test "X$withval" = "X"; then
19270
19271  acl_save_prefix="$prefix"
19272  prefix="$acl_final_prefix"
19273  acl_save_exec_prefix="$exec_prefix"
19274  exec_prefix="$acl_final_exec_prefix"
19275
19276          eval additional_includedir=\"$includedir\"
19277          eval additional_libdir=\"$libdir\"
19278
19279  exec_prefix="$acl_save_exec_prefix"
19280  prefix="$acl_save_prefix"
19281
19282      else
19283        additional_includedir="$withval/include"
19284        additional_libdir="$withval/$acl_libdirstem"
19285        if test "$acl_libdirstem2" != "$acl_libdirstem" \
19286           && ! test -d "$withval/$acl_libdirstem"; then
19287          additional_libdir="$withval/$acl_libdirstem2"
19288        fi
19289      fi
19290    fi
19291
19292fi
19293
19294      LIBINTL=
19295  LTLIBINTL=
19296  INCINTL=
19297  LIBINTL_PREFIX=
19298      HAVE_LIBINTL=
19299  rpathdirs=
19300  ltrpathdirs=
19301  names_already_handled=
19302  names_next_round='intl '
19303  while test -n "$names_next_round"; do
19304    names_this_round="$names_next_round"
19305    names_next_round=
19306    for name in $names_this_round; do
19307      already_handled=
19308      for n in $names_already_handled; do
19309        if test "$n" = "$name"; then
19310          already_handled=yes
19311          break
19312        fi
19313      done
19314      if test -z "$already_handled"; then
19315        names_already_handled="$names_already_handled $name"
19316                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19317        eval value=\"\$HAVE_LIB$uppername\"
19318        if test -n "$value"; then
19319          if test "$value" = yes; then
19320            eval value=\"\$LIB$uppername\"
19321            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19322            eval value=\"\$LTLIB$uppername\"
19323            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19324          else
19325                                    :
19326          fi
19327        else
19328                              found_dir=
19329          found_la=
19330          found_so=
19331          found_a=
19332          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19333          if test -n "$acl_shlibext"; then
19334            shrext=".$acl_shlibext"             # typically: shrext=.so
19335          else
19336            shrext=
19337          fi
19338          if test $use_additional = yes; then
19339            dir="$additional_libdir"
19340                                    if test -n "$acl_shlibext"; then
19341              if test -f "$dir/$libname$shrext"; then
19342                found_dir="$dir"
19343                found_so="$dir/$libname$shrext"
19344              else
19345                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19346                  ver=`(cd "$dir" && \
19347                        for f in "$libname$shrext".*; do echo "$f"; done \
19348                        | sed -e "s,^$libname$shrext\\\\.,," \
19349                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19350                        | sed 1q ) 2>/dev/null`
19351                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19352                    found_dir="$dir"
19353                    found_so="$dir/$libname$shrext.$ver"
19354                  fi
19355                else
19356                  eval library_names=\"$acl_library_names_spec\"
19357                  for f in $library_names; do
19358                    if test -f "$dir/$f"; then
19359                      found_dir="$dir"
19360                      found_so="$dir/$f"
19361                      break
19362                    fi
19363                  done
19364                fi
19365              fi
19366            fi
19367                        if test "X$found_dir" = "X"; then
19368              if test -f "$dir/$libname.$acl_libext"; then
19369                found_dir="$dir"
19370                found_a="$dir/$libname.$acl_libext"
19371              fi
19372            fi
19373            if test "X$found_dir" != "X"; then
19374              if test -f "$dir/$libname.la"; then
19375                found_la="$dir/$libname.la"
19376              fi
19377            fi
19378          fi
19379          if test "X$found_dir" = "X"; then
19380            for x in $LDFLAGS $LTLIBINTL; do
19381
19382  acl_save_prefix="$prefix"
19383  prefix="$acl_final_prefix"
19384  acl_save_exec_prefix="$exec_prefix"
19385  exec_prefix="$acl_final_exec_prefix"
19386  eval x=\"$x\"
19387  exec_prefix="$acl_save_exec_prefix"
19388  prefix="$acl_save_prefix"
19389
19390              case "$x" in
19391                -L*)
19392                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19393                                    if test -n "$acl_shlibext"; then
19394                    if test -f "$dir/$libname$shrext"; then
19395                      found_dir="$dir"
19396                      found_so="$dir/$libname$shrext"
19397                    else
19398                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19399                        ver=`(cd "$dir" && \
19400                              for f in "$libname$shrext".*; do echo "$f"; done \
19401                              | sed -e "s,^$libname$shrext\\\\.,," \
19402                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19403                              | sed 1q ) 2>/dev/null`
19404                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19405                          found_dir="$dir"
19406                          found_so="$dir/$libname$shrext.$ver"
19407                        fi
19408                      else
19409                        eval library_names=\"$acl_library_names_spec\"
19410                        for f in $library_names; do
19411                          if test -f "$dir/$f"; then
19412                            found_dir="$dir"
19413                            found_so="$dir/$f"
19414                            break
19415                          fi
19416                        done
19417                      fi
19418                    fi
19419                  fi
19420                                    if test "X$found_dir" = "X"; then
19421                    if test -f "$dir/$libname.$acl_libext"; then
19422                      found_dir="$dir"
19423                      found_a="$dir/$libname.$acl_libext"
19424                    fi
19425                  fi
19426                  if test "X$found_dir" != "X"; then
19427                    if test -f "$dir/$libname.la"; then
19428                      found_la="$dir/$libname.la"
19429                    fi
19430                  fi
19431                  ;;
19432              esac
19433              if test "X$found_dir" != "X"; then
19434                break
19435              fi
19436            done
19437          fi
19438          if test "X$found_dir" != "X"; then
19439                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19440            if test "X$found_so" != "X"; then
19441                                                        if test "$enable_rpath" = no \
19442                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19443                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19444                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19445              else
19446                                                                                haveit=
19447                for x in $ltrpathdirs; do
19448                  if test "X$x" = "X$found_dir"; then
19449                    haveit=yes
19450                    break
19451                  fi
19452                done
19453                if test -z "$haveit"; then
19454                  ltrpathdirs="$ltrpathdirs $found_dir"
19455                fi
19456                                if test "$acl_hardcode_direct" = yes; then
19457                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19458                else
19459                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19460                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19461                                                            haveit=
19462                    for x in $rpathdirs; do
19463                      if test "X$x" = "X$found_dir"; then
19464                        haveit=yes
19465                        break
19466                      fi
19467                    done
19468                    if test -z "$haveit"; then
19469                      rpathdirs="$rpathdirs $found_dir"
19470                    fi
19471                  else
19472                                                                                haveit=
19473                    for x in $LDFLAGS $LIBINTL; do
19474
19475  acl_save_prefix="$prefix"
19476  prefix="$acl_final_prefix"
19477  acl_save_exec_prefix="$exec_prefix"
19478  exec_prefix="$acl_final_exec_prefix"
19479  eval x=\"$x\"
19480  exec_prefix="$acl_save_exec_prefix"
19481  prefix="$acl_save_prefix"
19482
19483                      if test "X$x" = "X-L$found_dir"; then
19484                        haveit=yes
19485                        break
19486                      fi
19487                    done
19488                    if test -z "$haveit"; then
19489                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19490                    fi
19491                    if test "$acl_hardcode_minus_L" != no; then
19492                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19493                    else
19494                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19495                    fi
19496                  fi
19497                fi
19498              fi
19499            else
19500              if test "X$found_a" != "X"; then
19501                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19502              else
19503                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19504              fi
19505            fi
19506                        additional_includedir=
19507            case "$found_dir" in
19508              */$acl_libdirstem | */$acl_libdirstem/)
19509                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19510                if test "$name" = 'intl'; then
19511                  LIBINTL_PREFIX="$basedir"
19512                fi
19513                additional_includedir="$basedir/include"
19514                ;;
19515              */$acl_libdirstem2 | */$acl_libdirstem2/)
19516                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19517                if test "$name" = 'intl'; then
19518                  LIBINTL_PREFIX="$basedir"
19519                fi
19520                additional_includedir="$basedir/include"
19521                ;;
19522            esac
19523            if test "X$additional_includedir" != "X"; then
19524                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19525                haveit=
19526                if test "X$additional_includedir" = "X/usr/local/include"; then
19527                  if test -n "$GCC"; then
19528                    case $host_os in
19529                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19530                    esac
19531                  fi
19532                fi
19533                if test -z "$haveit"; then
19534                  for x in $CPPFLAGS $INCINTL; do
19535
19536  acl_save_prefix="$prefix"
19537  prefix="$acl_final_prefix"
19538  acl_save_exec_prefix="$exec_prefix"
19539  exec_prefix="$acl_final_exec_prefix"
19540  eval x=\"$x\"
19541  exec_prefix="$acl_save_exec_prefix"
19542  prefix="$acl_save_prefix"
19543
19544                    if test "X$x" = "X-I$additional_includedir"; then
19545                      haveit=yes
19546                      break
19547                    fi
19548                  done
19549                  if test -z "$haveit"; then
19550                    if test -d "$additional_includedir"; then
19551                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19552                    fi
19553                  fi
19554                fi
19555              fi
19556            fi
19557                        if test -n "$found_la"; then
19558                                                        save_libdir="$libdir"
19559              case "$found_la" in
19560                */* | *\\*) . "$found_la" ;;
19561                *) . "./$found_la" ;;
19562              esac
19563              libdir="$save_libdir"
19564                            for dep in $dependency_libs; do
19565                case "$dep" in
19566                  -L*)
19567                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19568                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19569                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19570                      haveit=
19571                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19572                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19573                        if test -n "$GCC"; then
19574                          case $host_os in
19575                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19576                          esac
19577                        fi
19578                      fi
19579                      if test -z "$haveit"; then
19580                        haveit=
19581                        for x in $LDFLAGS $LIBINTL; do
19582
19583  acl_save_prefix="$prefix"
19584  prefix="$acl_final_prefix"
19585  acl_save_exec_prefix="$exec_prefix"
19586  exec_prefix="$acl_final_exec_prefix"
19587  eval x=\"$x\"
19588  exec_prefix="$acl_save_exec_prefix"
19589  prefix="$acl_save_prefix"
19590
19591                          if test "X$x" = "X-L$additional_libdir"; then
19592                            haveit=yes
19593                            break
19594                          fi
19595                        done
19596                        if test -z "$haveit"; then
19597                          if test -d "$additional_libdir"; then
19598                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19599                          fi
19600                        fi
19601                        haveit=
19602                        for x in $LDFLAGS $LTLIBINTL; do
19603
19604  acl_save_prefix="$prefix"
19605  prefix="$acl_final_prefix"
19606  acl_save_exec_prefix="$exec_prefix"
19607  exec_prefix="$acl_final_exec_prefix"
19608  eval x=\"$x\"
19609  exec_prefix="$acl_save_exec_prefix"
19610  prefix="$acl_save_prefix"
19611
19612                          if test "X$x" = "X-L$additional_libdir"; then
19613                            haveit=yes
19614                            break
19615                          fi
19616                        done
19617                        if test -z "$haveit"; then
19618                          if test -d "$additional_libdir"; then
19619                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19620                          fi
19621                        fi
19622                      fi
19623                    fi
19624                    ;;
19625                  -R*)
19626                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19627                    if test "$enable_rpath" != no; then
19628                                                                  haveit=
19629                      for x in $rpathdirs; do
19630                        if test "X$x" = "X$dir"; then
19631                          haveit=yes
19632                          break
19633                        fi
19634                      done
19635                      if test -z "$haveit"; then
19636                        rpathdirs="$rpathdirs $dir"
19637                      fi
19638                                                                  haveit=
19639                      for x in $ltrpathdirs; do
19640                        if test "X$x" = "X$dir"; then
19641                          haveit=yes
19642                          break
19643                        fi
19644                      done
19645                      if test -z "$haveit"; then
19646                        ltrpathdirs="$ltrpathdirs $dir"
19647                      fi
19648                    fi
19649                    ;;
19650                  -l*)
19651                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19652                    ;;
19653                  *.la)
19654                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19655                    ;;
19656                  *)
19657                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19658                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19659                    ;;
19660                esac
19661              done
19662            fi
19663          else
19664                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19665            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19666          fi
19667        fi
19668      fi
19669    done
19670  done
19671  if test "X$rpathdirs" != "X"; then
19672    if test -n "$acl_hardcode_libdir_separator"; then
19673                        alldirs=
19674      for found_dir in $rpathdirs; do
19675        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19676      done
19677            acl_save_libdir="$libdir"
19678      libdir="$alldirs"
19679      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19680      libdir="$acl_save_libdir"
19681      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19682    else
19683            for found_dir in $rpathdirs; do
19684        acl_save_libdir="$libdir"
19685        libdir="$found_dir"
19686        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19687        libdir="$acl_save_libdir"
19688        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19689      done
19690    fi
19691  fi
19692  if test "X$ltrpathdirs" != "X"; then
19693            for found_dir in $ltrpathdirs; do
19694      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19695    done
19696  fi
19697
19698
19699
19700
19701
19702
19703          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19704$as_echo_n "checking for GNU gettext in libintl... " >&6; }
19705if eval \${$gt_func_gnugettext_libintl+:} false; then :
19706  $as_echo_n "(cached) " >&6
19707else
19708  gt_save_CPPFLAGS="$CPPFLAGS"
19709            CPPFLAGS="$CPPFLAGS $INCINTL"
19710            gt_save_LIBS="$LIBS"
19711            LIBS="$LIBS $LIBINTL"
19712                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713/* end confdefs.h.  */
19714
19715#include <libintl.h>
19716$gt_revision_test_code
19717extern int _nl_msg_cat_cntr;
19718extern
19719#ifdef __cplusplus
19720"C"
19721#endif
19722const char *_nl_expand_alias (const char *);
19723
19724int
19725main ()
19726{
19727
19728bindtextdomain ("", "");
19729return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19730
19731  ;
19732  return 0;
19733}
19734_ACEOF
19735if ac_fn_cxx_try_link "$LINENO"; then :
19736  eval "$gt_func_gnugettext_libintl=yes"
19737else
19738  eval "$gt_func_gnugettext_libintl=no"
19739fi
19740rm -f core conftest.err conftest.$ac_objext \
19741    conftest$ac_exeext conftest.$ac_ext
19742                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19743              LIBS="$LIBS $LIBICONV"
19744              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745/* end confdefs.h.  */
19746
19747#include <libintl.h>
19748$gt_revision_test_code
19749extern int _nl_msg_cat_cntr;
19750extern
19751#ifdef __cplusplus
19752"C"
19753#endif
19754const char *_nl_expand_alias (const char *);
19755
19756int
19757main ()
19758{
19759
19760bindtextdomain ("", "");
19761return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19762
19763  ;
19764  return 0;
19765}
19766_ACEOF
19767if ac_fn_cxx_try_link "$LINENO"; then :
19768  LIBINTL="$LIBINTL $LIBICONV"
19769                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19770                 eval "$gt_func_gnugettext_libintl=yes"
19771
19772fi
19773rm -f core conftest.err conftest.$ac_objext \
19774    conftest$ac_exeext conftest.$ac_ext
19775            fi
19776            CPPFLAGS="$gt_save_CPPFLAGS"
19777            LIBS="$gt_save_LIBS"
19778fi
19779eval ac_res=\$$gt_func_gnugettext_libintl
19780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19781$as_echo "$ac_res" >&6; }
19782        fi
19783
19784                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19785           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19786                && test "$PACKAGE" != gettext-runtime \
19787                && test "$PACKAGE" != gettext-tools; }; then
19788          gt_use_preinstalled_gnugettext=yes
19789        else
19790                    LIBINTL=
19791          LTLIBINTL=
19792          INCINTL=
19793        fi
19794
19795
19796
19797    if test -n "$INTL_MACOSX_LIBS"; then
19798      if test "$gt_use_preinstalled_gnugettext" = "yes" \
19799         || test "$nls_cv_use_gnu_gettext" = "yes"; then
19800                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19801        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19802      fi
19803    fi
19804
19805    if test "$gt_use_preinstalled_gnugettext" = "yes" \
19806       || test "$nls_cv_use_gnu_gettext" = "yes"; then
19807
19808$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19809
19810    else
19811      USE_NLS=no
19812    fi
19813  fi
19814
19815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19816$as_echo_n "checking whether to use NLS... " >&6; }
19817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19818$as_echo "$USE_NLS" >&6; }
19819  if test "$USE_NLS" = "yes"; then
19820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19821$as_echo_n "checking where the gettext function comes from... " >&6; }
19822    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19823      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19824        gt_source="external libintl"
19825      else
19826        gt_source="libc"
19827      fi
19828    else
19829      gt_source="included intl directory"
19830    fi
19831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19832$as_echo "$gt_source" >&6; }
19833  fi
19834
19835  if test "$USE_NLS" = "yes"; then
19836
19837    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19838      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19839        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19840$as_echo_n "checking how to link with libintl... " >&6; }
19841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19842$as_echo "$LIBINTL" >&6; }
19843
19844  for element in $INCINTL; do
19845    haveit=
19846    for x in $CPPFLAGS; do
19847
19848  acl_save_prefix="$prefix"
19849  prefix="$acl_final_prefix"
19850  acl_save_exec_prefix="$exec_prefix"
19851  exec_prefix="$acl_final_exec_prefix"
19852  eval x=\"$x\"
19853  exec_prefix="$acl_save_exec_prefix"
19854  prefix="$acl_save_prefix"
19855
19856      if test "X$x" = "X$element"; then
19857        haveit=yes
19858        break
19859      fi
19860    done
19861    if test -z "$haveit"; then
19862      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19863    fi
19864  done
19865
19866      fi
19867
19868
19869$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19870
19871
19872$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
19873
19874    fi
19875
19876        POSUB=po
19877  fi
19878
19879
19880
19881    INTLLIBS="$LIBINTL"
19882
19883
19884
19885
19886
19887
19888
19889# ========================================
19890# Specify the fontdir patch if not default
19891# ========================================
19892
19893# Check whether --with-fontdir was given.
19894if test "${with_fontdir+set}" = set; then :
19895  withval=$with_fontdir; FONTDIR="$withval"
19896else
19897  FONTDIR="fonts/conf.d"
19898
19899fi
19900
19901
19902
19903# ================================
19904# Find CUPS internals (no pc file)
19905# ================================
19906
19907# Check whether --with-cups-config was given.
19908if test "${with_cups_config+set}" = set; then :
19909  withval=$with_cups_config; with_cups_config="$withval"
19910else
19911  with_cups_config=system
19912
19913fi
19914
19915
19916if test "x$with_cups_config" != "xsystem"; then :
19917
19918	CUPSCONFIG=$with_cups_config
19919
19920else
19921
19922	if test -n "$ac_tool_prefix"; then
19923  # Extract the first word of "${ac_tool_prefix}cups-config", so it can be a program name with args.
19924set dummy ${ac_tool_prefix}cups-config; ac_word=$2
19925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19926$as_echo_n "checking for $ac_word... " >&6; }
19927if ${ac_cv_path_CUPSCONFIG+:} false; then :
19928  $as_echo_n "(cached) " >&6
19929else
19930  case $CUPSCONFIG in
19931  [\\/]* | ?:[\\/]*)
19932  ac_cv_path_CUPSCONFIG="$CUPSCONFIG" # Let the user override the test with a path.
19933  ;;
19934  *)
19935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19936for as_dir in $PATH
19937do
19938  IFS=$as_save_IFS
19939  test -z "$as_dir" && as_dir=.
19940    for ac_exec_ext in '' $ac_executable_extensions; do
19941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19942    ac_cv_path_CUPSCONFIG="$as_dir/$ac_word$ac_exec_ext"
19943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19944    break 2
19945  fi
19946done
19947  done
19948IFS=$as_save_IFS
19949
19950  ;;
19951esac
19952fi
19953CUPSCONFIG=$ac_cv_path_CUPSCONFIG
19954if test -n "$CUPSCONFIG"; then
19955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPSCONFIG" >&5
19956$as_echo "$CUPSCONFIG" >&6; }
19957else
19958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959$as_echo "no" >&6; }
19960fi
19961
19962
19963fi
19964if test -z "$ac_cv_path_CUPSCONFIG"; then
19965  ac_pt_CUPSCONFIG=$CUPSCONFIG
19966  # Extract the first word of "cups-config", so it can be a program name with args.
19967set dummy cups-config; ac_word=$2
19968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19969$as_echo_n "checking for $ac_word... " >&6; }
19970if ${ac_cv_path_ac_pt_CUPSCONFIG+:} false; then :
19971  $as_echo_n "(cached) " >&6
19972else
19973  case $ac_pt_CUPSCONFIG in
19974  [\\/]* | ?:[\\/]*)
19975  ac_cv_path_ac_pt_CUPSCONFIG="$ac_pt_CUPSCONFIG" # Let the user override the test with a path.
19976  ;;
19977  *)
19978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19979for as_dir in $PATH
19980do
19981  IFS=$as_save_IFS
19982  test -z "$as_dir" && as_dir=.
19983    for ac_exec_ext in '' $ac_executable_extensions; do
19984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19985    ac_cv_path_ac_pt_CUPSCONFIG="$as_dir/$ac_word$ac_exec_ext"
19986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19987    break 2
19988  fi
19989done
19990  done
19991IFS=$as_save_IFS
19992
19993  ;;
19994esac
19995fi
19996ac_pt_CUPSCONFIG=$ac_cv_path_ac_pt_CUPSCONFIG
19997if test -n "$ac_pt_CUPSCONFIG"; then
19998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CUPSCONFIG" >&5
19999$as_echo "$ac_pt_CUPSCONFIG" >&6; }
20000else
20001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20002$as_echo "no" >&6; }
20003fi
20004
20005  if test "x$ac_pt_CUPSCONFIG" = x; then
20006    CUPSCONFIG=""
20007  else
20008    case $cross_compiling:$ac_tool_warned in
20009yes:)
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20012ac_tool_warned=yes ;;
20013esac
20014    CUPSCONFIG=$ac_pt_CUPSCONFIG
20015  fi
20016else
20017  CUPSCONFIG="$ac_cv_path_CUPSCONFIG"
20018fi
20019
20020	if test -z "$CUPSCONFIG"; then :
20021
20022		as_fn_error $? "Required cups-config is missing. Please install CUPS developer packages." "$LINENO" 5
20023
20024fi
20025
20026fi
20027CUPS_CFLAGS=`$CUPSCONFIG --cflags`' -D_PPD_DEPRECATED=""'
20028CUPS_LIBS=`$CUPSCONFIG --image --libs`
20029CUPS_VERSION=`$CUPSCONFIG --version`
20030
20031
20032
20033CUPS_DATADIR="`$CUPSCONFIG --datadir`"
20034
20035cat >>confdefs.h <<_ACEOF
20036#define CUPS_DATADIR "$CUPS_DATADIR"
20037_ACEOF
20038
20039
20040
20041CUPS_SERVERROOT="`$CUPSCONFIG --serverroot`"
20042
20043cat >>confdefs.h <<_ACEOF
20044#define CUPS_SERVERROOT "$CUPS_SERVERROOT"
20045_ACEOF
20046
20047
20048
20049CUPS_FONTPATH="$CUPS_DATADIR/fonts"
20050
20051cat >>confdefs.h <<_ACEOF
20052#define CUPS_FONTPATH "$CUPS_FONTPATH"
20053_ACEOF
20054
20055
20056
20057CUPS_SERVERBIN="`$CUPSCONFIG --serverbin`"
20058
20059cat >>confdefs.h <<_ACEOF
20060#define CUPS_SERVERBIN "$CUPS_SERVERBIN"
20061_ACEOF
20062
20063
20064
20065
20066
20067
20068  # Used to indicate true or false condition
20069  ax_compare_version=false
20070
20071  # Convert the two version strings to be compared into a format that
20072  # allows a simple string comparison.  The end result is that a version
20073  # string of the form 1.12.5-r617 will be converted to the form
20074  # 0001001200050617.  In other words, each number is zero padded to four
20075  # digits, and non digits are removed.
20076
20077  ax_compare_version_A=`echo "$CUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20078                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20079                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20080                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20081                     -e 's/[^0-9]//g'`
20082
20083
20084  ax_compare_version_B=`echo "1.4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20085                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20086                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20087                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20088                     -e 's/[^0-9]//g'`
20089
20090
20091    ax_compare_version=`echo "x$ax_compare_version_A
20092x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
20093
20094
20095
20096    if test "$ax_compare_version" = "true" ; then
20097
20098
20099$as_echo "#define CUPS_1_4 1" >>confdefs.h
20100
20101
20102      fi
20103
20104
20105# Check whether --enable-driverless was given.
20106if test "${enable_driverless+set}" = set; then :
20107  enableval=$enable_driverless; enable_driverless="$enableval"
20108else
20109  enable_driverless=yes
20110
20111fi
20112
20113
20114
20115
20116  # Used to indicate true or false condition
20117  ax_compare_version=false
20118
20119  # Convert the two version strings to be compared into a format that
20120  # allows a simple string comparison.  The end result is that a version
20121  # string of the form 1.12.5-r617 will be converted to the form
20122  # 0001001200050617.  In other words, each number is zero padded to four
20123  # digits, and non digits are removed.
20124
20125  ax_compare_version_A=`echo "$CUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20126                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20127                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20128                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20129                     -e 's/[^0-9]//g'`
20130
20131
20132  ax_compare_version_B=`echo "1.6" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20133                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20134                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20135                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20136                     -e 's/[^0-9]//g'`
20137
20138
20139    ax_compare_version=`echo "x$ax_compare_version_A
20140x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
20141
20142
20143
20144    if test "$ax_compare_version" = "true" ; then
20145
20146	enable_driverless=no
20147
20148      fi
20149
20150 if test "x$enable_driverless" != "xno"; then
20151  ENABLE_DRIVERLESS_TRUE=
20152  ENABLE_DRIVERLESS_FALSE='#'
20153else
20154  ENABLE_DRIVERLESS_TRUE='#'
20155  ENABLE_DRIVERLESS_FALSE=
20156fi
20157
20158
20159APPLE_RASTER_FILTER=rastertopdf
20160
20161
20162
20163  # Used to indicate true or false condition
20164  ax_compare_version=false
20165
20166  # Convert the two version strings to be compared into a format that
20167  # allows a simple string comparison.  The end result is that a version
20168  # string of the form 1.12.5-r617 will be converted to the form
20169  # 0001001200050617.  In other words, each number is zero padded to four
20170  # digits, and non digits are removed.
20171
20172  ax_compare_version_A=`echo "$CUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20173                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20174                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20175                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20176                     -e 's/[^0-9]//g'`
20177
20178
20179  ax_compare_version_B=`echo "2.2.2" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20180                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20181                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20182                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20183                     -e 's/[^0-9]//g'`
20184
20185
20186    ax_compare_version=`echo "x$ax_compare_version_A
20187x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
20188
20189
20190
20191    if test "$ax_compare_version" = "true" ; then
20192
20193	APPLE_RASTER_FILTER=urftopdf
20194
20195      fi
20196
20197
20198# Check whether --with-apple-raster-filter was given.
20199if test "${with_apple_raster_filter+set}" = set; then :
20200  withval=$with_apple_raster_filter; with_apple_raster_filter="$withval"
20201else
20202  with_apple_raster_filter="$APPLE_RASTER_FILTER"
20203
20204fi
20205
20206case x$with_apple_raster_filter in #(
20207  xrastertopdf|xurftopdf) :
20208    APPLE_RASTER_FILTER=$with_apple_raster_filter ;; #(
20209  *) :
20210    as_fn_error $? "Unknown value of with-apple-raster-filter provided: $with_apple_raster_filter" "$LINENO" 5
20211 ;;
20212esac
20213 if test "x$APPLE_RASTER_FILTER" = "xurftopdf"; then
20214  ENABLE_URFTOPDF_TRUE=
20215  ENABLE_URFTOPDF_FALSE='#'
20216else
20217  ENABLE_URFTOPDF_TRUE='#'
20218  ENABLE_URFTOPDF_FALSE=
20219fi
20220
20221
20222
20223
20224$as_echo "#define PDFTOPDF /**/" >>confdefs.h
20225
20226
20227  prefix_NONE=
20228  exec_prefix_NONE=
20229  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20230  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20231  eval ac_define_dir="\"$"{CUPS_DATADIR}/data"\""
20232  eval ac_define_dir="\"$ac_define_dir\""
20233  BANNERTOPDF_DATADIR="$ac_define_dir"
20234
20235
20236cat >>confdefs.h <<_ACEOF
20237#define BANNERTOPDF_DATADIR "$ac_define_dir"
20238_ACEOF
20239
20240  test "$prefix_NONE" && prefix=NONE
20241  test "$exec_prefix_NONE" && exec_prefix=NONE
20242
20243
20244# Check whether --enable-auto-setup-local-only was given.
20245if test "${enable_auto_setup_local_only+set}" = set; then :
20246  enableval=$enable_auto_setup_local_only; enable_auto_setup_local_only="$enableval"
20247else
20248  enable_auto_setup_local_only=no
20249
20250fi
20251
20252if test "x$enable_auto_setup_local_only" != "xno"; then
20253
20254$as_echo "#define ONLY_LOCAL_IPP_PRINTERS_AUTO_SETUP /**/" >>confdefs.h
20255
20256fi
20257
20258# Check whether --enable-auto-setup-driverless-only was given.
20259if test "${enable_auto_setup_driverless_only+set}" = set; then :
20260  enableval=$enable_auto_setup_driverless_only; enable_auto_setup_driverless_only="$enableval"
20261else
20262  enable_auto_setup_driverless_only=no
20263
20264fi
20265
20266if test "x$enable_auto_setup_driverless_only" != "xno"; then
20267
20268$as_echo "#define ONLY_DRIVERLESS_IPP_PRINTERS_AUTO_SETUP /**/" >>confdefs.h
20269
20270fi
20271
20272if test "x$enable_auto_setup_local_only" != "xno"; then
20273	enable_auto_setup_driverless_only=no
20274	enable_auto_setup_all=no
20275else
20276	if test "x$enable_auto_setup_driverless_only" != "xno"; then
20277		enable_auto_setup_all=no
20278	else
20279		enable_auto_setup_all=yes
20280	fi
20281fi
20282
20283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20284$as_echo_n "checking for library containing dlopen... " >&6; }
20285if ${ac_cv_search_dlopen+:} false; then :
20286  $as_echo_n "(cached) " >&6
20287else
20288  ac_func_search_save_LIBS=$LIBS
20289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290/* end confdefs.h.  */
20291
20292/* Override any GCC internal prototype to avoid an error.
20293   Use char because int might match the return type of a GCC
20294   builtin and then its argument prototype would still apply.  */
20295#ifdef __cplusplus
20296extern "C"
20297#endif
20298char dlopen ();
20299int
20300main ()
20301{
20302return dlopen ();
20303  ;
20304  return 0;
20305}
20306_ACEOF
20307for ac_lib in '' dl; do
20308  if test -z "$ac_lib"; then
20309    ac_res="none required"
20310  else
20311    ac_res=-l$ac_lib
20312    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20313  fi
20314  if ac_fn_cxx_try_link "$LINENO"; then :
20315  ac_cv_search_dlopen=$ac_res
20316fi
20317rm -f core conftest.err conftest.$ac_objext \
20318    conftest$ac_exeext
20319  if ${ac_cv_search_dlopen+:} false; then :
20320  break
20321fi
20322done
20323if ${ac_cv_search_dlopen+:} false; then :
20324
20325else
20326  ac_cv_search_dlopen=no
20327fi
20328rm conftest.$ac_ext
20329LIBS=$ac_func_search_save_LIBS
20330fi
20331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20332$as_echo "$ac_cv_search_dlopen" >&6; }
20333ac_res=$ac_cv_search_dlopen
20334if test "$ac_res" != no; then :
20335  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20336  if test "$ac_cv_search_dlopen" != "none required"; then :
20337
20338		DLOPEN_LIBS="$ac_cv_search_dlopen"
20339
20340fi
20341else
20342  as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
20343
20344fi
20345
20346
20347
20348# Transient run-time state dir of CUPS
20349CUPS_STATEDIR=""
20350
20351# Check whether --with-cups-rundir was given.
20352if test "${with_cups_rundir+set}" = set; then :
20353  withval=$with_cups_rundir; CUPS_STATEDIR="$withval"
20354else
20355
20356        case "$uname" in
20357                Darwin*)
20358                        # Darwin (OS X)
20359                        CUPS_STATEDIR="$CUPS_SERVERROOT"
20360                        ;;
20361                *)
20362                        # All others
20363                        CUPS_STATEDIR="$localstatedir/run/cups"
20364                        ;;
20365        esac
20366fi
20367
20368
20369cat >>confdefs.h <<_ACEOF
20370#define CUPS_STATEDIR "$CUPS_STATEDIR"
20371_ACEOF
20372
20373
20374
20375# Domain socket of CUPS...
20376CUPS_DEFAULT_DOMAINSOCKET=""
20377
20378# Check whether --with-cups-domainsocket was given.
20379if test "${with_cups_domainsocket+set}" = set; then :
20380  withval=$with_cups_domainsocket; default_domainsocket="$withval"
20381else
20382  default_domainsocket=""
20383fi
20384
20385
20386if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
20387        if test "x$default_domainsocket" = x; then
20388                case "$uname" in
20389                        Darwin*)
20390                                # Darwin and MaxOS X do their own thing...
20391                                CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
20392                                ;;
20393                        *)
20394                                # All others use FHS standard...
20395                                CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
20396                                ;;
20397                esac
20398        else
20399                CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
20400        fi
20401fi
20402
20403cat >>confdefs.h <<_ACEOF
20404#define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
20405_ACEOF
20406
20407
20408
20409# ======================
20410# Check system functions
20411# ======================
20412for ac_func in strlcat
20413do :
20414  ac_fn_cxx_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20415if test "x$ac_cv_func_strlcat" = xyes; then :
20416  cat >>confdefs.h <<_ACEOF
20417#define HAVE_STRLCAT 1
20418_ACEOF
20419
20420fi
20421done
20422
20423for ac_func in strlcpy
20424do :
20425  ac_fn_cxx_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20426if test "x$ac_cv_func_strlcpy" = xyes; then :
20427  cat >>confdefs.h <<_ACEOF
20428#define HAVE_STRLCPY 1
20429_ACEOF
20430
20431fi
20432done
20433
20434for ac_func in sigaction
20435do :
20436  ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
20437if test "x$ac_cv_func_sigaction" = xyes; then :
20438  cat >>confdefs.h <<_ACEOF
20439#define HAVE_SIGACTION 1
20440_ACEOF
20441
20442fi
20443done
20444
20445for ac_func in waitpid wait3
20446do :
20447  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20448ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
20449if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20450  cat >>confdefs.h <<_ACEOF
20451#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20452_ACEOF
20453
20454fi
20455done
20456
20457for ac_func in strtoll
20458do :
20459  ac_fn_cxx_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
20460if test "x$ac_cv_func_strtoll" = xyes; then :
20461  cat >>confdefs.h <<_ACEOF
20462#define HAVE_STRTOLL 1
20463_ACEOF
20464
20465fi
20466done
20467
20468for ac_func in open_memstream
20469do :
20470  ac_fn_cxx_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
20471if test "x$ac_cv_func_open_memstream" = xyes; then :
20472  cat >>confdefs.h <<_ACEOF
20473#define HAVE_OPEN_MEMSTREAM 1
20474_ACEOF
20475
20476fi
20477done
20478
20479for ac_func in getline
20480do :
20481  ac_fn_cxx_check_func "$LINENO" "getline" "ac_cv_func_getline"
20482if test "x$ac_cv_func_getline" = xyes; then :
20483  cat >>confdefs.h <<_ACEOF
20484#define HAVE_GETLINE 1
20485_ACEOF
20486
20487else
20488  GETLINE='bannertopdf-getline.$(OBJEXT)'
20489
20490fi
20491done
20492
20493for ac_func in strcasestr
20494do :
20495  ac_fn_cxx_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
20496if test "x$ac_cv_func_strcasestr" = xyes; then :
20497  cat >>confdefs.h <<_ACEOF
20498#define HAVE_STRCASESTR 1
20499_ACEOF
20500
20501else
20502  STRCASESTR='pdftops-strcasestr.$(OBJEXT)'
20503
20504fi
20505done
20506
20507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
20508$as_echo_n "checking for library containing pow... " >&6; }
20509if ${ac_cv_search_pow+:} false; then :
20510  $as_echo_n "(cached) " >&6
20511else
20512  ac_func_search_save_LIBS=$LIBS
20513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514/* end confdefs.h.  */
20515
20516/* Override any GCC internal prototype to avoid an error.
20517   Use char because int might match the return type of a GCC
20518   builtin and then its argument prototype would still apply.  */
20519#ifdef __cplusplus
20520extern "C"
20521#endif
20522char pow ();
20523int
20524main ()
20525{
20526return pow ();
20527  ;
20528  return 0;
20529}
20530_ACEOF
20531for ac_lib in '' m; do
20532  if test -z "$ac_lib"; then
20533    ac_res="none required"
20534  else
20535    ac_res=-l$ac_lib
20536    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20537  fi
20538  if ac_fn_cxx_try_link "$LINENO"; then :
20539  ac_cv_search_pow=$ac_res
20540fi
20541rm -f core conftest.err conftest.$ac_objext \
20542    conftest$ac_exeext
20543  if ${ac_cv_search_pow+:} false; then :
20544  break
20545fi
20546done
20547if ${ac_cv_search_pow+:} false; then :
20548
20549else
20550  ac_cv_search_pow=no
20551fi
20552rm conftest.$ac_ext
20553LIBS=$ac_func_search_save_LIBS
20554fi
20555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
20556$as_echo "$ac_cv_search_pow" >&6; }
20557ac_res=$ac_cv_search_pow
20558if test "$ac_res" != no; then :
20559  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20560
20561fi
20562
20563
20564# ========================
20565# Check for system headers
20566# ========================
20567for ac_header in stdlib.h
20568do :
20569  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20570if test "x$ac_cv_header_stdlib_h" = xyes; then :
20571  cat >>confdefs.h <<_ACEOF
20572#define HAVE_STDLIB_H 1
20573_ACEOF
20574
20575fi
20576
20577done
20578
20579for ac_header in sys/stat.h
20580do :
20581  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
20582if test "x$ac_cv_header_sys_stat_h" = xyes; then :
20583  cat >>confdefs.h <<_ACEOF
20584#define HAVE_SYS_STAT_H 1
20585_ACEOF
20586
20587fi
20588
20589done
20590
20591for ac_header in sys/types.h
20592do :
20593  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20594if test "x$ac_cv_header_sys_types_h" = xyes; then :
20595  cat >>confdefs.h <<_ACEOF
20596#define HAVE_SYS_TYPES_H 1
20597_ACEOF
20598
20599fi
20600
20601done
20602
20603for ac_header in unistd.h
20604do :
20605  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20606if test "x$ac_cv_header_unistd_h" = xyes; then :
20607  cat >>confdefs.h <<_ACEOF
20608#define HAVE_UNISTD_H 1
20609_ACEOF
20610
20611fi
20612
20613done
20614
20615for ac_header in zlib.h
20616do :
20617  ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20618if test "x$ac_cv_header_zlib_h" = xyes; then :
20619  cat >>confdefs.h <<_ACEOF
20620#define HAVE_ZLIB_H 1
20621_ACEOF
20622
20623fi
20624
20625done
20626
20627for ac_header in endian.h
20628do :
20629  ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
20630if test "x$ac_cv_header_endian_h" = xyes; then :
20631  cat >>confdefs.h <<_ACEOF
20632#define HAVE_ENDIAN_H 1
20633_ACEOF
20634
20635fi
20636
20637done
20638
20639for ac_header in dirent.h
20640do :
20641  ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
20642if test "x$ac_cv_header_dirent_h" = xyes; then :
20643  cat >>confdefs.h <<_ACEOF
20644#define HAVE_DIRENT_H 1
20645_ACEOF
20646
20647fi
20648
20649done
20650
20651for ac_header in sys/ioctl.h
20652do :
20653  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
20654if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
20655  cat >>confdefs.h <<_ACEOF
20656#define HAVE_SYS_IOCTL_H 1
20657_ACEOF
20658
20659fi
20660
20661done
20662
20663
20664# =============
20665# Image options
20666# =============
20667# Check whether --enable-imagefilters was given.
20668if test "${enable_imagefilters+set}" = set; then :
20669  enableval=$enable_imagefilters; enable_imagefilters="$enableval"
20670else
20671  enable_imagefilters=yes
20672
20673fi
20674
20675 if test "x$enable_imagefilters" != "xno"; then
20676  ENABLE_IMAGEFILTERS_TRUE=
20677  ENABLE_IMAGEFILTERS_FALSE='#'
20678else
20679  ENABLE_IMAGEFILTERS_TRUE='#'
20680  ENABLE_IMAGEFILTERS_FALSE=
20681fi
20682
20683
20684# Libraries
20685
20686# Check whether --with-jpeg was given.
20687if test "${with_jpeg+set}" = set; then :
20688  withval=$with_jpeg; with_jpeg="$withval"
20689else
20690  with_jpeg=yes
20691
20692fi
20693
20694if test x"$with_jpeg" != "xno"; then :
20695
20696
20697$as_echo "#define HAVE_LIBJPEG /**/" >>confdefs.h
20698
20699	for ac_header in jpeglib.h
20700do :
20701  ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
20702if test "x$ac_cv_header_jpeglib_h" = xyes; then :
20703  cat >>confdefs.h <<_ACEOF
20704#define HAVE_JPEGLIB_H 1
20705_ACEOF
20706
20707fi
20708
20709done
20710
20711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_destroy_decompress" >&5
20712$as_echo_n "checking for library containing jpeg_destroy_decompress... " >&6; }
20713if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
20714  $as_echo_n "(cached) " >&6
20715else
20716  ac_func_search_save_LIBS=$LIBS
20717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718/* end confdefs.h.  */
20719
20720/* Override any GCC internal prototype to avoid an error.
20721   Use char because int might match the return type of a GCC
20722   builtin and then its argument prototype would still apply.  */
20723#ifdef __cplusplus
20724extern "C"
20725#endif
20726char jpeg_destroy_decompress ();
20727int
20728main ()
20729{
20730return jpeg_destroy_decompress ();
20731  ;
20732  return 0;
20733}
20734_ACEOF
20735for ac_lib in '' jpeg; do
20736  if test -z "$ac_lib"; then
20737    ac_res="none required"
20738  else
20739    ac_res=-l$ac_lib
20740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20741  fi
20742  if ac_fn_cxx_try_link "$LINENO"; then :
20743  ac_cv_search_jpeg_destroy_decompress=$ac_res
20744fi
20745rm -f core conftest.err conftest.$ac_objext \
20746    conftest$ac_exeext
20747  if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
20748  break
20749fi
20750done
20751if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
20752
20753else
20754  ac_cv_search_jpeg_destroy_decompress=no
20755fi
20756rm conftest.$ac_ext
20757LIBS=$ac_func_search_save_LIBS
20758fi
20759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_destroy_decompress" >&5
20760$as_echo "$ac_cv_search_jpeg_destroy_decompress" >&6; }
20761ac_res=$ac_cv_search_jpeg_destroy_decompress
20762if test "$ac_res" != no; then :
20763  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20764  LIBJPEG_LIBS="-ljpeg"
20765else
20766  as_fn_error $? "jpeg libraries not found." "$LINENO" 5
20767
20768fi
20769
20770
20771
20772fi
20773
20774
20775# Check whether --with-png was given.
20776if test "${with_png+set}" = set; then :
20777  withval=$with_png; with_png="$withval"
20778else
20779  with_png=yes
20780
20781fi
20782
20783if test x"$with_png" != "xno"; then :
20784
20785
20786pkg_failed=no
20787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5
20788$as_echo_n "checking for libpng... " >&6; }
20789
20790if test -n "$LIBPNG_CFLAGS"; then
20791    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
20792 elif test -n "$PKG_CONFIG"; then
20793    if test -n "$PKG_CONFIG" && \
20794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
20795  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
20796  ac_status=$?
20797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20798  test $ac_status = 0; }; then
20799  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
20800		      test "x$?" != "x0" && pkg_failed=yes
20801else
20802  pkg_failed=yes
20803fi
20804 else
20805    pkg_failed=untried
20806fi
20807if test -n "$LIBPNG_LIBS"; then
20808    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
20809 elif test -n "$PKG_CONFIG"; then
20810    if test -n "$PKG_CONFIG" && \
20811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
20812  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
20813  ac_status=$?
20814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20815  test $ac_status = 0; }; then
20816  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
20817		      test "x$?" != "x0" && pkg_failed=yes
20818else
20819  pkg_failed=yes
20820fi
20821 else
20822    pkg_failed=untried
20823fi
20824
20825
20826
20827if test $pkg_failed = yes; then
20828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20829$as_echo "no" >&6; }
20830
20831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20832        _pkg_short_errors_supported=yes
20833else
20834        _pkg_short_errors_supported=no
20835fi
20836        if test $_pkg_short_errors_supported = yes; then
20837	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
20838        else
20839	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
20840        fi
20841	# Put the nasty error message in config.log where it belongs
20842	echo "$LIBPNG_PKG_ERRORS" >&5
20843
20844	as_fn_error $? "Package requirements (libpng) were not met:
20845
20846$LIBPNG_PKG_ERRORS
20847
20848Consider adjusting the PKG_CONFIG_PATH environment variable if you
20849installed software in a non-standard prefix.
20850
20851Alternatively, you may set the environment variables LIBPNG_CFLAGS
20852and LIBPNG_LIBS to avoid the need to call pkg-config.
20853See the pkg-config man page for more details." "$LINENO" 5
20854elif test $pkg_failed = untried; then
20855        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20856$as_echo "no" >&6; }
20857	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20859as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20860is in your PATH or set the PKG_CONFIG environment variable to the full
20861path to pkg-config.
20862
20863Alternatively, you may set the environment variables LIBPNG_CFLAGS
20864and LIBPNG_LIBS to avoid the need to call pkg-config.
20865See the pkg-config man page for more details.
20866
20867To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20868See \`config.log' for more details" "$LINENO" 5; }
20869else
20870	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
20871	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
20872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20873$as_echo "yes" >&6; }
20874
20875fi
20876
20877$as_echo "#define HAVE_LIBPNG /**/" >>confdefs.h
20878
20879
20880fi
20881
20882
20883# Check whether --with-tiff was given.
20884if test "${with_tiff+set}" = set; then :
20885  withval=$with_tiff; with_tiff="$withval"
20886else
20887  with_tiff=yes
20888
20889fi
20890
20891if test x"$with_tiff" != "xno"; then :
20892
20893
20894$as_echo "#define HAVE_LIBTIFF /**/" >>confdefs.h
20895
20896	for ac_header in tiff.h
20897do :
20898  ac_fn_cxx_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
20899if test "x$ac_cv_header_tiff_h" = xyes; then :
20900  cat >>confdefs.h <<_ACEOF
20901#define HAVE_TIFF_H 1
20902_ACEOF
20903
20904fi
20905
20906done
20907
20908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TIFFReadScanline" >&5
20909$as_echo_n "checking for library containing TIFFReadScanline... " >&6; }
20910if ${ac_cv_search_TIFFReadScanline+:} false; then :
20911  $as_echo_n "(cached) " >&6
20912else
20913  ac_func_search_save_LIBS=$LIBS
20914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20915/* end confdefs.h.  */
20916
20917/* Override any GCC internal prototype to avoid an error.
20918   Use char because int might match the return type of a GCC
20919   builtin and then its argument prototype would still apply.  */
20920#ifdef __cplusplus
20921extern "C"
20922#endif
20923char TIFFReadScanline ();
20924int
20925main ()
20926{
20927return TIFFReadScanline ();
20928  ;
20929  return 0;
20930}
20931_ACEOF
20932for ac_lib in '' tiff; do
20933  if test -z "$ac_lib"; then
20934    ac_res="none required"
20935  else
20936    ac_res=-l$ac_lib
20937    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20938  fi
20939  if ac_fn_cxx_try_link "$LINENO"; then :
20940  ac_cv_search_TIFFReadScanline=$ac_res
20941fi
20942rm -f core conftest.err conftest.$ac_objext \
20943    conftest$ac_exeext
20944  if ${ac_cv_search_TIFFReadScanline+:} false; then :
20945  break
20946fi
20947done
20948if ${ac_cv_search_TIFFReadScanline+:} false; then :
20949
20950else
20951  ac_cv_search_TIFFReadScanline=no
20952fi
20953rm conftest.$ac_ext
20954LIBS=$ac_func_search_save_LIBS
20955fi
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TIFFReadScanline" >&5
20957$as_echo "$ac_cv_search_TIFFReadScanline" >&6; }
20958ac_res=$ac_cv_search_TIFFReadScanline
20959if test "$ac_res" != no; then :
20960  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20961  LIBJPEG_LIBS="-ltiff"
20962else
20963  as_fn_error $? "tiff libraries not found." "$LINENO" 5
20964
20965fi
20966
20967
20968
20969fi
20970
20971# ==================================
20972# Check for modules needed by utils/
20973# ==================================
20974
20975AVAHI_LIBS=""
20976AVAHI_CFLAGS=""
20977AVAHI_GLIB_CFLAGS=""
20978AVAHI_GLIB_LIBS=""
20979
20980# Check whether --enable-avahi was given.
20981if test "${enable_avahi+set}" = set; then :
20982  enableval=$enable_avahi; enable_avahi="$enableval"
20983else
20984  enable_avahi=yes
20985
20986fi
20987
20988 if test "x$enable_avahi" != "xno"; then
20989  ENABLE_AVAHI_TRUE=
20990  ENABLE_AVAHI_FALSE='#'
20991else
20992  ENABLE_AVAHI_TRUE='#'
20993  ENABLE_AVAHI_FALSE=
20994fi
20995
20996
20997
20998# Check whether --with-avahi-libs was given.
20999if test "${with_avahi_libs+set}" = set; then :
21000  withval=$with_avahi_libs; AVAHI_LIBS="-L$withval $AVAHI_LIBS"
21001fi
21002
21003
21004# Check whether --with-avahi-includes was given.
21005if test "${with_avahi_includes+set}" = set; then :
21006  withval=$with_avahi_includes; AVAHI_CFLAGS="-I$withval $AVAHI_CFLAGS"
21007fi
21008
21009
21010if test "x$enable_avahi" != xno; then
21011
21012pkg_failed=no
21013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi-client" >&5
21014$as_echo_n "checking for avahi-client... " >&6; }
21015
21016if test -n "$AVAHI_CFLAGS"; then
21017    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
21018 elif test -n "$PKG_CONFIG"; then
21019    if test -n "$PKG_CONFIG" && \
21020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
21021  ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
21022  ac_status=$?
21023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024  test $ac_status = 0; }; then
21025  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
21026		      test "x$?" != "x0" && pkg_failed=yes
21027else
21028  pkg_failed=yes
21029fi
21030 else
21031    pkg_failed=untried
21032fi
21033if test -n "$AVAHI_LIBS"; then
21034    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
21035 elif test -n "$PKG_CONFIG"; then
21036    if test -n "$PKG_CONFIG" && \
21037    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
21038  ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
21039  ac_status=$?
21040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21041  test $ac_status = 0; }; then
21042  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
21043		      test "x$?" != "x0" && pkg_failed=yes
21044else
21045  pkg_failed=yes
21046fi
21047 else
21048    pkg_failed=untried
21049fi
21050
21051
21052
21053if test $pkg_failed = yes; then
21054        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21055$as_echo "no" >&6; }
21056
21057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21058        _pkg_short_errors_supported=yes
21059else
21060        _pkg_short_errors_supported=no
21061fi
21062        if test $_pkg_short_errors_supported = yes; then
21063	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
21064        else
21065	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
21066        fi
21067	# Put the nasty error message in config.log where it belongs
21068	echo "$AVAHI_PKG_ERRORS" >&5
21069
21070	as_fn_error $? "Package requirements (avahi-client) were not met:
21071
21072$AVAHI_PKG_ERRORS
21073
21074Consider adjusting the PKG_CONFIG_PATH environment variable if you
21075installed software in a non-standard prefix.
21076
21077Alternatively, you may set the environment variables AVAHI_CFLAGS
21078and AVAHI_LIBS to avoid the need to call pkg-config.
21079See the pkg-config man page for more details." "$LINENO" 5
21080elif test $pkg_failed = untried; then
21081        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21082$as_echo "no" >&6; }
21083	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21085as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21086is in your PATH or set the PKG_CONFIG environment variable to the full
21087path to pkg-config.
21088
21089Alternatively, you may set the environment variables AVAHI_CFLAGS
21090and AVAHI_LIBS to avoid the need to call pkg-config.
21091See the pkg-config man page for more details.
21092
21093To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21094See \`config.log' for more details" "$LINENO" 5; }
21095else
21096	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
21097	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
21098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21099$as_echo "yes" >&6; }
21100
21101$as_echo "#define HAVE_AVAHI /**/" >>confdefs.h
21102
21103fi
21104fi
21105
21106
21107
21108
21109
21110# Check whether --enable-ldap was given.
21111if test "${enable_ldap+set}" = set; then :
21112  enableval=$enable_ldap; enable_ldap="$enableval"
21113else
21114  enable_ldap=yes
21115
21116fi
21117
21118
21119# Check whether --with-ldap-libs was given.
21120if test "${with_ldap_libs+set}" = set; then :
21121  withval=$with_ldap_libs; LDFLAGS="-L$withval $LDFLAGS"
21122    DSOFLAGS="-L$withval $DSOFLAGS"
21123fi
21124
21125
21126# Check whether --with-ldap-includes was given.
21127if test "${with_ldap_includes+set}" = set; then :
21128  withval=$with_ldap_includes; CFLAGS="-I$withval $CFLAGS"
21129    CPPFLAGS="-I$withval $CPPFLAGS"
21130fi
21131
21132
21133if test x$enable_ldap != xno; then
21134
21135    ac_fn_cxx_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
21136if test "x$ac_cv_header_ldap_h" = xyes; then :
21137
21138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
21139$as_echo_n "checking for library containing ldap_initialize... " >&6; }
21140if ${ac_cv_search_ldap_initialize+:} false; then :
21141  $as_echo_n "(cached) " >&6
21142else
21143  ac_func_search_save_LIBS=$LIBS
21144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145/* end confdefs.h.  */
21146
21147/* Override any GCC internal prototype to avoid an error.
21148   Use char because int might match the return type of a GCC
21149   builtin and then its argument prototype would still apply.  */
21150#ifdef __cplusplus
21151extern "C"
21152#endif
21153char ldap_initialize ();
21154int
21155main ()
21156{
21157return ldap_initialize ();
21158  ;
21159  return 0;
21160}
21161_ACEOF
21162for ac_lib in '' ldap; do
21163  if test -z "$ac_lib"; then
21164    ac_res="none required"
21165  else
21166    ac_res=-l$ac_lib
21167    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21168  fi
21169  if ac_fn_cxx_try_link "$LINENO"; then :
21170  ac_cv_search_ldap_initialize=$ac_res
21171fi
21172rm -f core conftest.err conftest.$ac_objext \
21173    conftest$ac_exeext
21174  if ${ac_cv_search_ldap_initialize+:} false; then :
21175  break
21176fi
21177done
21178if ${ac_cv_search_ldap_initialize+:} false; then :
21179
21180else
21181  ac_cv_search_ldap_initialize=no
21182fi
21183rm conftest.$ac_ext
21184LIBS=$ac_func_search_save_LIBS
21185fi
21186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
21187$as_echo "$ac_cv_search_ldap_initialize" >&6; }
21188ac_res=$ac_cv_search_ldap_initialize
21189if test "$ac_res" != no; then :
21190  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21191
21192
21193$as_echo "#define HAVE_LDAP /**/" >>confdefs.h
21194
21195
21196$as_echo "#define HAVE_OPENLDAP /**/" >>confdefs.h
21197
21198	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls in -lldap" >&5
21199$as_echo_n "checking for ldap_start_tls in -lldap... " >&6; }
21200if ${ac_cv_lib_ldap_ldap_start_tls+:} false; then :
21201  $as_echo_n "(cached) " >&6
21202else
21203  ac_check_lib_save_LIBS=$LIBS
21204LIBS="-lldap  $LIBS"
21205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21206/* end confdefs.h.  */
21207
21208/* Override any GCC internal prototype to avoid an error.
21209   Use char because int might match the return type of a GCC
21210   builtin and then its argument prototype would still apply.  */
21211#ifdef __cplusplus
21212extern "C"
21213#endif
21214char ldap_start_tls ();
21215int
21216main ()
21217{
21218return ldap_start_tls ();
21219  ;
21220  return 0;
21221}
21222_ACEOF
21223if ac_fn_cxx_try_link "$LINENO"; then :
21224  ac_cv_lib_ldap_ldap_start_tls=yes
21225else
21226  ac_cv_lib_ldap_ldap_start_tls=no
21227fi
21228rm -f core conftest.err conftest.$ac_objext \
21229    conftest$ac_exeext conftest.$ac_ext
21230LIBS=$ac_check_lib_save_LIBS
21231fi
21232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_start_tls" >&5
21233$as_echo "$ac_cv_lib_ldap_ldap_start_tls" >&6; }
21234if test "x$ac_cv_lib_ldap_ldap_start_tls" = xyes; then :
21235
21236$as_echo "#define HAVE_LDAP_SSL /**/" >>confdefs.h
21237
21238fi
21239
21240else
21241
21242
21243	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
21244$as_echo_n "checking for ldap_init in -lldap... " >&6; }
21245if ${ac_cv_lib_ldap_ldap_init+:} false; then :
21246  $as_echo_n "(cached) " >&6
21247else
21248  ac_check_lib_save_LIBS=$LIBS
21249LIBS="-lldap  $LIBS"
21250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251/* end confdefs.h.  */
21252
21253/* Override any GCC internal prototype to avoid an error.
21254   Use char because int might match the return type of a GCC
21255   builtin and then its argument prototype would still apply.  */
21256#ifdef __cplusplus
21257extern "C"
21258#endif
21259char ldap_init ();
21260int
21261main ()
21262{
21263return ldap_init ();
21264  ;
21265  return 0;
21266}
21267_ACEOF
21268if ac_fn_cxx_try_link "$LINENO"; then :
21269  ac_cv_lib_ldap_ldap_init=yes
21270else
21271  ac_cv_lib_ldap_ldap_init=no
21272fi
21273rm -f core conftest.err conftest.$ac_objext \
21274    conftest$ac_exeext conftest.$ac_ext
21275LIBS=$ac_check_lib_save_LIBS
21276fi
21277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
21278$as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
21279if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
21280
21281
21282$as_echo "#define HAVE_LDAP /**/" >>confdefs.h
21283
21284
21285$as_echo "#define HAVE_MOZILLA_LDAP /**/" >>confdefs.h
21286
21287		for ac_header in ldap_ssl.h
21288do :
21289  ac_fn_cxx_check_header_compile "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "#include <ldap.h>
21290"
21291if test "x$ac_cv_header_ldap_ssl_h" = xyes; then :
21292  cat >>confdefs.h <<_ACEOF
21293#define HAVE_LDAP_SSL_H 1
21294_ACEOF
21295
21296fi
21297
21298done
21299
21300		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -lldap" >&5
21301$as_echo_n "checking for ldapssl_init in -lldap... " >&6; }
21302if ${ac_cv_lib_ldap_ldapssl_init+:} false; then :
21303  $as_echo_n "(cached) " >&6
21304else
21305  ac_check_lib_save_LIBS=$LIBS
21306LIBS="-lldap  $LIBS"
21307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308/* end confdefs.h.  */
21309
21310/* Override any GCC internal prototype to avoid an error.
21311   Use char because int might match the return type of a GCC
21312   builtin and then its argument prototype would still apply.  */
21313#ifdef __cplusplus
21314extern "C"
21315#endif
21316char ldapssl_init ();
21317int
21318main ()
21319{
21320return ldapssl_init ();
21321  ;
21322  return 0;
21323}
21324_ACEOF
21325if ac_fn_cxx_try_link "$LINENO"; then :
21326  ac_cv_lib_ldap_ldapssl_init=yes
21327else
21328  ac_cv_lib_ldap_ldapssl_init=no
21329fi
21330rm -f core conftest.err conftest.$ac_objext \
21331    conftest$ac_exeext conftest.$ac_ext
21332LIBS=$ac_check_lib_save_LIBS
21333fi
21334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldapssl_init" >&5
21335$as_echo "$ac_cv_lib_ldap_ldapssl_init" >&6; }
21336if test "x$ac_cv_lib_ldap_ldapssl_init" = xyes; then :
21337
21338$as_echo "#define HAVE_LDAP_SSL /**/" >>confdefs.h
21339
21340fi
21341
21342fi
21343
21344
21345fi
21346
21347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_rebind_proc in -lldap" >&5
21348$as_echo_n "checking for ldap_set_rebind_proc in -lldap... " >&6; }
21349if ${ac_cv_lib_ldap_ldap_set_rebind_proc+:} false; then :
21350  $as_echo_n "(cached) " >&6
21351else
21352  ac_check_lib_save_LIBS=$LIBS
21353LIBS="-lldap  $LIBS"
21354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355/* end confdefs.h.  */
21356
21357/* Override any GCC internal prototype to avoid an error.
21358   Use char because int might match the return type of a GCC
21359   builtin and then its argument prototype would still apply.  */
21360#ifdef __cplusplus
21361extern "C"
21362#endif
21363char ldap_set_rebind_proc ();
21364int
21365main ()
21366{
21367return ldap_set_rebind_proc ();
21368  ;
21369  return 0;
21370}
21371_ACEOF
21372if ac_fn_cxx_try_link "$LINENO"; then :
21373  ac_cv_lib_ldap_ldap_set_rebind_proc=yes
21374else
21375  ac_cv_lib_ldap_ldap_set_rebind_proc=no
21376fi
21377rm -f core conftest.err conftest.$ac_objext \
21378    conftest$ac_exeext conftest.$ac_ext
21379LIBS=$ac_check_lib_save_LIBS
21380fi
21381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_rebind_proc" >&5
21382$as_echo "$ac_cv_lib_ldap_ldap_set_rebind_proc" >&6; }
21383if test "x$ac_cv_lib_ldap_ldap_set_rebind_proc" = xyes; then :
21384
21385$as_echo "#define HAVE_LDAP_REBIND_PROC /**/" >>confdefs.h
21386
21387fi
21388
21389
21390fi
21391
21392
21393
21394fi
21395
21396
21397pkg_failed=no
21398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.30.2" >&5
21399$as_echo_n "checking for glib-2.0 >= 2.30.2... " >&6; }
21400
21401if test -n "$GLIB_CFLAGS"; then
21402    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
21403 elif test -n "$PKG_CONFIG"; then
21404    if test -n "$PKG_CONFIG" && \
21405    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30.2\""; } >&5
21406  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30.2") 2>&5
21407  ac_status=$?
21408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21409  test $ac_status = 0; }; then
21410  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.30.2" 2>/dev/null`
21411		      test "x$?" != "x0" && pkg_failed=yes
21412else
21413  pkg_failed=yes
21414fi
21415 else
21416    pkg_failed=untried
21417fi
21418if test -n "$GLIB_LIBS"; then
21419    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
21420 elif test -n "$PKG_CONFIG"; then
21421    if test -n "$PKG_CONFIG" && \
21422    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30.2\""; } >&5
21423  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30.2") 2>&5
21424  ac_status=$?
21425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21426  test $ac_status = 0; }; then
21427  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.30.2" 2>/dev/null`
21428		      test "x$?" != "x0" && pkg_failed=yes
21429else
21430  pkg_failed=yes
21431fi
21432 else
21433    pkg_failed=untried
21434fi
21435
21436
21437
21438if test $pkg_failed = yes; then
21439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440$as_echo "no" >&6; }
21441
21442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21443        _pkg_short_errors_supported=yes
21444else
21445        _pkg_short_errors_supported=no
21446fi
21447        if test $_pkg_short_errors_supported = yes; then
21448	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.30.2" 2>&1`
21449        else
21450	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.30.2" 2>&1`
21451        fi
21452	# Put the nasty error message in config.log where it belongs
21453	echo "$GLIB_PKG_ERRORS" >&5
21454
21455	as_fn_error $? "Package requirements (glib-2.0 >= 2.30.2) were not met:
21456
21457$GLIB_PKG_ERRORS
21458
21459Consider adjusting the PKG_CONFIG_PATH environment variable if you
21460installed software in a non-standard prefix.
21461
21462Alternatively, you may set the environment variables GLIB_CFLAGS
21463and GLIB_LIBS to avoid the need to call pkg-config.
21464See the pkg-config man page for more details." "$LINENO" 5
21465elif test $pkg_failed = untried; then
21466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467$as_echo "no" >&6; }
21468	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21470as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21471is in your PATH or set the PKG_CONFIG environment variable to the full
21472path to pkg-config.
21473
21474Alternatively, you may set the environment variables GLIB_CFLAGS
21475and GLIB_LIBS to avoid the need to call pkg-config.
21476See the pkg-config man page for more details.
21477
21478To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21479See \`config.log' for more details" "$LINENO" 5; }
21480else
21481	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
21482	GLIB_LIBS=$pkg_cv_GLIB_LIBS
21483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21484$as_echo "yes" >&6; }
21485
21486fi
21487
21488
21489
21490if test x$enable_avahi != xno; then
21491
21492pkg_failed=no
21493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi-glib" >&5
21494$as_echo_n "checking for avahi-glib... " >&6; }
21495
21496if test -n "$AVAHI_GLIB_CFLAGS"; then
21497    pkg_cv_AVAHI_GLIB_CFLAGS="$AVAHI_GLIB_CFLAGS"
21498 elif test -n "$PKG_CONFIG"; then
21499    if test -n "$PKG_CONFIG" && \
21500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-glib\""; } >&5
21501  ($PKG_CONFIG --exists --print-errors "avahi-glib") 2>&5
21502  ac_status=$?
21503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21504  test $ac_status = 0; }; then
21505  pkg_cv_AVAHI_GLIB_CFLAGS=`$PKG_CONFIG --cflags "avahi-glib" 2>/dev/null`
21506		      test "x$?" != "x0" && pkg_failed=yes
21507else
21508  pkg_failed=yes
21509fi
21510 else
21511    pkg_failed=untried
21512fi
21513if test -n "$AVAHI_GLIB_LIBS"; then
21514    pkg_cv_AVAHI_GLIB_LIBS="$AVAHI_GLIB_LIBS"
21515 elif test -n "$PKG_CONFIG"; then
21516    if test -n "$PKG_CONFIG" && \
21517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-glib\""; } >&5
21518  ($PKG_CONFIG --exists --print-errors "avahi-glib") 2>&5
21519  ac_status=$?
21520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21521  test $ac_status = 0; }; then
21522  pkg_cv_AVAHI_GLIB_LIBS=`$PKG_CONFIG --libs "avahi-glib" 2>/dev/null`
21523		      test "x$?" != "x0" && pkg_failed=yes
21524else
21525  pkg_failed=yes
21526fi
21527 else
21528    pkg_failed=untried
21529fi
21530
21531
21532
21533if test $pkg_failed = yes; then
21534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21535$as_echo "no" >&6; }
21536
21537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21538        _pkg_short_errors_supported=yes
21539else
21540        _pkg_short_errors_supported=no
21541fi
21542        if test $_pkg_short_errors_supported = yes; then
21543	        AVAHI_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-glib" 2>&1`
21544        else
21545	        AVAHI_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-glib" 2>&1`
21546        fi
21547	# Put the nasty error message in config.log where it belongs
21548	echo "$AVAHI_GLIB_PKG_ERRORS" >&5
21549
21550	as_fn_error $? "Package requirements (avahi-glib) were not met:
21551
21552$AVAHI_GLIB_PKG_ERRORS
21553
21554Consider adjusting the PKG_CONFIG_PATH environment variable if you
21555installed software in a non-standard prefix.
21556
21557Alternatively, you may set the environment variables AVAHI_GLIB_CFLAGS
21558and AVAHI_GLIB_LIBS to avoid the need to call pkg-config.
21559See the pkg-config man page for more details." "$LINENO" 5
21560elif test $pkg_failed = untried; then
21561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562$as_echo "no" >&6; }
21563	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21565as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21566is in your PATH or set the PKG_CONFIG environment variable to the full
21567path to pkg-config.
21568
21569Alternatively, you may set the environment variables AVAHI_GLIB_CFLAGS
21570and AVAHI_GLIB_LIBS to avoid the need to call pkg-config.
21571See the pkg-config man page for more details.
21572
21573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21574See \`config.log' for more details" "$LINENO" 5; }
21575else
21576	AVAHI_GLIB_CFLAGS=$pkg_cv_AVAHI_GLIB_CFLAGS
21577	AVAHI_GLIB_LIBS=$pkg_cv_AVAHI_GLIB_LIBS
21578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579$as_echo "yes" >&6; }
21580
21581fi
21582fi
21583
21584
21585
21586
21587
21588pkg_failed=no
21589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0" >&5
21590$as_echo_n "checking for gio-2.0... " >&6; }
21591
21592if test -n "$GIO_CFLAGS"; then
21593    pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
21594 elif test -n "$PKG_CONFIG"; then
21595    if test -n "$PKG_CONFIG" && \
21596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
21597  ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
21598  ac_status=$?
21599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21600  test $ac_status = 0; }; then
21601  pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
21602		      test "x$?" != "x0" && pkg_failed=yes
21603else
21604  pkg_failed=yes
21605fi
21606 else
21607    pkg_failed=untried
21608fi
21609if test -n "$GIO_LIBS"; then
21610    pkg_cv_GIO_LIBS="$GIO_LIBS"
21611 elif test -n "$PKG_CONFIG"; then
21612    if test -n "$PKG_CONFIG" && \
21613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
21614  ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
21615  ac_status=$?
21616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21617  test $ac_status = 0; }; then
21618  pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
21619		      test "x$?" != "x0" && pkg_failed=yes
21620else
21621  pkg_failed=yes
21622fi
21623 else
21624    pkg_failed=untried
21625fi
21626
21627
21628
21629if test $pkg_failed = yes; then
21630        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21631$as_echo "no" >&6; }
21632
21633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21634        _pkg_short_errors_supported=yes
21635else
21636        _pkg_short_errors_supported=no
21637fi
21638        if test $_pkg_short_errors_supported = yes; then
21639	        GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
21640        else
21641	        GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
21642        fi
21643	# Put the nasty error message in config.log where it belongs
21644	echo "$GIO_PKG_ERRORS" >&5
21645
21646	as_fn_error $? "Package requirements (gio-2.0) were not met:
21647
21648$GIO_PKG_ERRORS
21649
21650Consider adjusting the PKG_CONFIG_PATH environment variable if you
21651installed software in a non-standard prefix.
21652
21653Alternatively, you may set the environment variables GIO_CFLAGS
21654and GIO_LIBS to avoid the need to call pkg-config.
21655See the pkg-config man page for more details." "$LINENO" 5
21656elif test $pkg_failed = untried; then
21657        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21658$as_echo "no" >&6; }
21659	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21661as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21662is in your PATH or set the PKG_CONFIG environment variable to the full
21663path to pkg-config.
21664
21665Alternatively, you may set the environment variables GIO_CFLAGS
21666and GIO_LIBS to avoid the need to call pkg-config.
21667See the pkg-config man page for more details.
21668
21669To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21670See \`config.log' for more details" "$LINENO" 5; }
21671else
21672	GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
21673	GIO_LIBS=$pkg_cv_GIO_LIBS
21674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675$as_echo "yes" >&6; }
21676
21677fi
21678
21679
21680
21681
21682pkg_failed=no
21683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-unix-2.0" >&5
21684$as_echo_n "checking for gio-unix-2.0... " >&6; }
21685
21686if test -n "$GIO_UNIX_CFLAGS"; then
21687    pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
21688 elif test -n "$PKG_CONFIG"; then
21689    if test -n "$PKG_CONFIG" && \
21690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
21691  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
21692  ac_status=$?
21693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21694  test $ac_status = 0; }; then
21695  pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
21696		      test "x$?" != "x0" && pkg_failed=yes
21697else
21698  pkg_failed=yes
21699fi
21700 else
21701    pkg_failed=untried
21702fi
21703if test -n "$GIO_UNIX_LIBS"; then
21704    pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
21705 elif test -n "$PKG_CONFIG"; then
21706    if test -n "$PKG_CONFIG" && \
21707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
21708  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
21709  ac_status=$?
21710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21711  test $ac_status = 0; }; then
21712  pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
21713		      test "x$?" != "x0" && pkg_failed=yes
21714else
21715  pkg_failed=yes
21716fi
21717 else
21718    pkg_failed=untried
21719fi
21720
21721
21722
21723if test $pkg_failed = yes; then
21724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21725$as_echo "no" >&6; }
21726
21727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21728        _pkg_short_errors_supported=yes
21729else
21730        _pkg_short_errors_supported=no
21731fi
21732        if test $_pkg_short_errors_supported = yes; then
21733	        GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
21734        else
21735	        GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
21736        fi
21737	# Put the nasty error message in config.log where it belongs
21738	echo "$GIO_UNIX_PKG_ERRORS" >&5
21739
21740	as_fn_error $? "Package requirements (gio-unix-2.0) were not met:
21741
21742$GIO_UNIX_PKG_ERRORS
21743
21744Consider adjusting the PKG_CONFIG_PATH environment variable if you
21745installed software in a non-standard prefix.
21746
21747Alternatively, you may set the environment variables GIO_UNIX_CFLAGS
21748and GIO_UNIX_LIBS to avoid the need to call pkg-config.
21749See the pkg-config man page for more details." "$LINENO" 5
21750elif test $pkg_failed = untried; then
21751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752$as_echo "no" >&6; }
21753	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21755as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21756is in your PATH or set the PKG_CONFIG environment variable to the full
21757path to pkg-config.
21758
21759Alternatively, you may set the environment variables GIO_UNIX_CFLAGS
21760and GIO_UNIX_LIBS to avoid the need to call pkg-config.
21761See the pkg-config man page for more details.
21762
21763To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21764See \`config.log' for more details" "$LINENO" 5; }
21765else
21766	GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
21767	GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
21768        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21769$as_echo "yes" >&6; }
21770
21771fi
21772
21773
21774
21775
21776# Check whether --with-browseremoteprotocols was given.
21777if test "${with_browseremoteprotocols+set}" = set; then :
21778  withval=$with_browseremoteprotocols; with_browseremoteprotocols="$withval"
21779else
21780  with_browseremoteprotocols="dnssd cups"
21781
21782fi
21783
21784BROWSEREMOTEPROTOCOLS="$with_browseremoteprotocols"
21785
21786
21787
21788# Check whether --with-rcdir was given.
21789if test "${with_rcdir+set}" = set; then :
21790  withval=$with_rcdir; rcdir="$withval"
21791else
21792  rcdir=""
21793fi
21794
21795
21796# Check whether --with-rclevels was given.
21797if test "${with_rclevels+set}" = set; then :
21798  withval=$with_rclevels; rclevels="$withval"
21799else
21800  rclevels="2 3 5"
21801fi
21802
21803
21804# Check whether --with-rcstart was given.
21805if test "${with_rcstart+set}" = set; then :
21806  withval=$with_rcstart; rcstart="$withval"
21807else
21808  rcstart="99"
21809fi
21810
21811
21812# Check whether --with-rcstop was given.
21813if test "${with_rcstop+set}" = set; then :
21814  withval=$with_rcstop; rcstop="$withval"
21815else
21816  rcstop="00"
21817fi
21818
21819
21820INITDIR=""
21821INITDDIR=""
21822RCLEVELS="$rclevels"
21823RCSTART="$rcstart"
21824RCSTOP="$rcstop"
21825
21826if test x$rcdir = x; then
21827	case "`uname`" in
21828		FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD* | DragonFly*)
21829			# FreeBSD and OpenBSD
21830			;;
21831
21832		Linux | GNU | GNU/k*BSD*)
21833			# Linux/HURD seems to choose an init.d directory at random...
21834			if test -d /sbin/init.d; then
21835				# SuSE
21836				INITDIR="/sbin/init.d"
21837			else
21838				if test -d /etc/init.d; then
21839					# Others
21840					INITDIR="/etc"
21841				else
21842					# RedHat
21843					INITDIR="/etc/rc.d"
21844				fi
21845			fi
21846			RCSTART="82"
21847			RCSTOP="35"
21848			;;
21849
21850		NetBSD*)
21851			# NetBSD
21852			INITDDIR="/etc/rc.d"
21853			;;
21854
21855		*)
21856			INITDIR="/etc"
21857			;;
21858
21859	esac
21860elif test "x$rcdir" != xno; then
21861	if test "x$rclevels" = x; then
21862		INITDDIR="$rcdir"
21863	else
21864		INITDIR="$rcdir"
21865	fi
21866fi
21867
21868 if test "x$INITDIR" != "x"; then
21869  RCLINKS_TRUE=
21870  RCLINKS_FALSE='#'
21871else
21872  RCLINKS_TRUE='#'
21873  RCLINKS_FALSE=
21874fi
21875
21876
21877if test "x${INITDIR}" != "x" -a "x${INITDDIR}" = "x"; then
21878   INITDDIR="${INITDIR}/init.d"
21879fi
21880
21881
21882
21883
21884
21885
21886
21887# ======================================
21888# Check for various pdf required modules
21889# ======================================
21890
21891pkg_failed=no
21892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcms2" >&5
21893$as_echo_n "checking for lcms2... " >&6; }
21894
21895if test -n "$LCMS_CFLAGS"; then
21896    pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
21897 elif test -n "$PKG_CONFIG"; then
21898    if test -n "$PKG_CONFIG" && \
21899    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
21900  ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
21901  ac_status=$?
21902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903  test $ac_status = 0; }; then
21904  pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
21905		      test "x$?" != "x0" && pkg_failed=yes
21906else
21907  pkg_failed=yes
21908fi
21909 else
21910    pkg_failed=untried
21911fi
21912if test -n "$LCMS_LIBS"; then
21913    pkg_cv_LCMS_LIBS="$LCMS_LIBS"
21914 elif test -n "$PKG_CONFIG"; then
21915    if test -n "$PKG_CONFIG" && \
21916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
21917  ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
21918  ac_status=$?
21919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21920  test $ac_status = 0; }; then
21921  pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
21922		      test "x$?" != "x0" && pkg_failed=yes
21923else
21924  pkg_failed=yes
21925fi
21926 else
21927    pkg_failed=untried
21928fi
21929
21930
21931
21932if test $pkg_failed = yes; then
21933        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934$as_echo "no" >&6; }
21935
21936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21937        _pkg_short_errors_supported=yes
21938else
21939        _pkg_short_errors_supported=no
21940fi
21941        if test $_pkg_short_errors_supported = yes; then
21942	        LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2" 2>&1`
21943        else
21944	        LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2" 2>&1`
21945        fi
21946	# Put the nasty error message in config.log where it belongs
21947	echo "$LCMS_PKG_ERRORS" >&5
21948
21949	lcms2=no
21950elif test $pkg_failed = untried; then
21951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21952$as_echo "no" >&6; }
21953	lcms2=no
21954else
21955	LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
21956	LCMS_LIBS=$pkg_cv_LCMS_LIBS
21957        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21958$as_echo "yes" >&6; }
21959	lcms2=yes
21960fi
21961if test x"$lcms2" = "xno"; then :
21962
21963
21964pkg_failed=no
21965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcms" >&5
21966$as_echo_n "checking for lcms... " >&6; }
21967
21968if test -n "$LCMS_CFLAGS"; then
21969    pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
21970 elif test -n "$PKG_CONFIG"; then
21971    if test -n "$PKG_CONFIG" && \
21972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
21973  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
21974  ac_status=$?
21975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21976  test $ac_status = 0; }; then
21977  pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
21978		      test "x$?" != "x0" && pkg_failed=yes
21979else
21980  pkg_failed=yes
21981fi
21982 else
21983    pkg_failed=untried
21984fi
21985if test -n "$LCMS_LIBS"; then
21986    pkg_cv_LCMS_LIBS="$LCMS_LIBS"
21987 elif test -n "$PKG_CONFIG"; then
21988    if test -n "$PKG_CONFIG" && \
21989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
21990  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
21991  ac_status=$?
21992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21993  test $ac_status = 0; }; then
21994  pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
21995		      test "x$?" != "x0" && pkg_failed=yes
21996else
21997  pkg_failed=yes
21998fi
21999 else
22000    pkg_failed=untried
22001fi
22002
22003
22004
22005if test $pkg_failed = yes; then
22006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007$as_echo "no" >&6; }
22008
22009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22010        _pkg_short_errors_supported=yes
22011else
22012        _pkg_short_errors_supported=no
22013fi
22014        if test $_pkg_short_errors_supported = yes; then
22015	        LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms" 2>&1`
22016        else
22017	        LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms" 2>&1`
22018        fi
22019	# Put the nasty error message in config.log where it belongs
22020	echo "$LCMS_PKG_ERRORS" >&5
22021
22022	as_fn_error $? "Package requirements (lcms) were not met:
22023
22024$LCMS_PKG_ERRORS
22025
22026Consider adjusting the PKG_CONFIG_PATH environment variable if you
22027installed software in a non-standard prefix.
22028
22029Alternatively, you may set the environment variables LCMS_CFLAGS
22030and LCMS_LIBS to avoid the need to call pkg-config.
22031See the pkg-config man page for more details." "$LINENO" 5
22032elif test $pkg_failed = untried; then
22033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034$as_echo "no" >&6; }
22035	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22037as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22038is in your PATH or set the PKG_CONFIG environment variable to the full
22039path to pkg-config.
22040
22041Alternatively, you may set the environment variables LCMS_CFLAGS
22042and LCMS_LIBS to avoid the need to call pkg-config.
22043See the pkg-config man page for more details.
22044
22045To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22046See \`config.log' for more details" "$LINENO" 5; }
22047else
22048	LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
22049	LCMS_LIBS=$pkg_cv_LCMS_LIBS
22050        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22051$as_echo "yes" >&6; }
22052
22053fi
22054
22055$as_echo "#define USE_LCMS1 1" >>confdefs.h
22056
22057
22058fi
22059
22060pkg_failed=no
22061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
22062$as_echo_n "checking for freetype2... " >&6; }
22063
22064if test -n "$FREETYPE_CFLAGS"; then
22065    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
22066 elif test -n "$PKG_CONFIG"; then
22067    if test -n "$PKG_CONFIG" && \
22068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
22069  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
22070  ac_status=$?
22071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22072  test $ac_status = 0; }; then
22073  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
22074		      test "x$?" != "x0" && pkg_failed=yes
22075else
22076  pkg_failed=yes
22077fi
22078 else
22079    pkg_failed=untried
22080fi
22081if test -n "$FREETYPE_LIBS"; then
22082    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
22083 elif test -n "$PKG_CONFIG"; then
22084    if test -n "$PKG_CONFIG" && \
22085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
22086  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
22087  ac_status=$?
22088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22089  test $ac_status = 0; }; then
22090  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
22091		      test "x$?" != "x0" && pkg_failed=yes
22092else
22093  pkg_failed=yes
22094fi
22095 else
22096    pkg_failed=untried
22097fi
22098
22099
22100
22101if test $pkg_failed = yes; then
22102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22103$as_echo "no" >&6; }
22104
22105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22106        _pkg_short_errors_supported=yes
22107else
22108        _pkg_short_errors_supported=no
22109fi
22110        if test $_pkg_short_errors_supported = yes; then
22111	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
22112        else
22113	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
22114        fi
22115	# Put the nasty error message in config.log where it belongs
22116	echo "$FREETYPE_PKG_ERRORS" >&5
22117
22118	as_fn_error $? "Package requirements (freetype2) were not met:
22119
22120$FREETYPE_PKG_ERRORS
22121
22122Consider adjusting the PKG_CONFIG_PATH environment variable if you
22123installed software in a non-standard prefix.
22124
22125Alternatively, you may set the environment variables FREETYPE_CFLAGS
22126and FREETYPE_LIBS to avoid the need to call pkg-config.
22127See the pkg-config man page for more details." "$LINENO" 5
22128elif test $pkg_failed = untried; then
22129        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22130$as_echo "no" >&6; }
22131	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22133as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22134is in your PATH or set the PKG_CONFIG environment variable to the full
22135path to pkg-config.
22136
22137Alternatively, you may set the environment variables FREETYPE_CFLAGS
22138and FREETYPE_LIBS to avoid the need to call pkg-config.
22139See the pkg-config man page for more details.
22140
22141To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22142See \`config.log' for more details" "$LINENO" 5; }
22143else
22144	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
22145	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
22146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22147$as_echo "yes" >&6; }
22148
22149$as_echo "#define HAVE_FREETYPE_H 1" >>confdefs.h
22150
22151fi
22152
22153pkg_failed=no
22154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.0.0" >&5
22155$as_echo_n "checking for fontconfig >= 2.0.0... " >&6; }
22156
22157if test -n "$FONTCONFIG_CFLAGS"; then
22158    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
22159 elif test -n "$PKG_CONFIG"; then
22160    if test -n "$PKG_CONFIG" && \
22161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
22162  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
22163  ac_status=$?
22164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22165  test $ac_status = 0; }; then
22166  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.0.0" 2>/dev/null`
22167		      test "x$?" != "x0" && pkg_failed=yes
22168else
22169  pkg_failed=yes
22170fi
22171 else
22172    pkg_failed=untried
22173fi
22174if test -n "$FONTCONFIG_LIBS"; then
22175    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
22176 elif test -n "$PKG_CONFIG"; then
22177    if test -n "$PKG_CONFIG" && \
22178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
22179  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
22180  ac_status=$?
22181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22182  test $ac_status = 0; }; then
22183  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.0.0" 2>/dev/null`
22184		      test "x$?" != "x0" && pkg_failed=yes
22185else
22186  pkg_failed=yes
22187fi
22188 else
22189    pkg_failed=untried
22190fi
22191
22192
22193
22194if test $pkg_failed = yes; then
22195        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22196$as_echo "no" >&6; }
22197
22198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22199        _pkg_short_errors_supported=yes
22200else
22201        _pkg_short_errors_supported=no
22202fi
22203        if test $_pkg_short_errors_supported = yes; then
22204	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.0.0" 2>&1`
22205        else
22206	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.0.0" 2>&1`
22207        fi
22208	# Put the nasty error message in config.log where it belongs
22209	echo "$FONTCONFIG_PKG_ERRORS" >&5
22210
22211	as_fn_error $? "Package requirements (fontconfig >= 2.0.0) were not met:
22212
22213$FONTCONFIG_PKG_ERRORS
22214
22215Consider adjusting the PKG_CONFIG_PATH environment variable if you
22216installed software in a non-standard prefix.
22217
22218Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
22219and FONTCONFIG_LIBS to avoid the need to call pkg-config.
22220See the pkg-config man page for more details." "$LINENO" 5
22221elif test $pkg_failed = untried; then
22222        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22223$as_echo "no" >&6; }
22224	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22226as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22227is in your PATH or set the PKG_CONFIG environment variable to the full
22228path to pkg-config.
22229
22230Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
22231and FONTCONFIG_LIBS to avoid the need to call pkg-config.
22232See the pkg-config man page for more details.
22233
22234To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22235See \`config.log' for more details" "$LINENO" 5; }
22236else
22237	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
22238	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
22239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22240$as_echo "yes" >&6; }
22241
22242fi
22243
22244pkg_failed=no
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
22246$as_echo_n "checking for zlib... " >&6; }
22247
22248if test -n "$ZLIB_CFLAGS"; then
22249    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
22250 elif test -n "$PKG_CONFIG"; then
22251    if test -n "$PKG_CONFIG" && \
22252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
22253  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
22254  ac_status=$?
22255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22256  test $ac_status = 0; }; then
22257  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
22258		      test "x$?" != "x0" && pkg_failed=yes
22259else
22260  pkg_failed=yes
22261fi
22262 else
22263    pkg_failed=untried
22264fi
22265if test -n "$ZLIB_LIBS"; then
22266    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
22267 elif test -n "$PKG_CONFIG"; then
22268    if test -n "$PKG_CONFIG" && \
22269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
22270  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
22271  ac_status=$?
22272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22273  test $ac_status = 0; }; then
22274  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
22275		      test "x$?" != "x0" && pkg_failed=yes
22276else
22277  pkg_failed=yes
22278fi
22279 else
22280    pkg_failed=untried
22281fi
22282
22283
22284
22285if test $pkg_failed = yes; then
22286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22287$as_echo "no" >&6; }
22288
22289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22290        _pkg_short_errors_supported=yes
22291else
22292        _pkg_short_errors_supported=no
22293fi
22294        if test $_pkg_short_errors_supported = yes; then
22295	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
22296        else
22297	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
22298        fi
22299	# Put the nasty error message in config.log where it belongs
22300	echo "$ZLIB_PKG_ERRORS" >&5
22301
22302	as_fn_error $? "Package requirements (zlib) were not met:
22303
22304$ZLIB_PKG_ERRORS
22305
22306Consider adjusting the PKG_CONFIG_PATH environment variable if you
22307installed software in a non-standard prefix.
22308
22309Alternatively, you may set the environment variables ZLIB_CFLAGS
22310and ZLIB_LIBS to avoid the need to call pkg-config.
22311See the pkg-config man page for more details." "$LINENO" 5
22312elif test $pkg_failed = untried; then
22313        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22314$as_echo "no" >&6; }
22315	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22317as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22318is in your PATH or set the PKG_CONFIG environment variable to the full
22319path to pkg-config.
22320
22321Alternatively, you may set the environment variables ZLIB_CFLAGS
22322and ZLIB_LIBS to avoid the need to call pkg-config.
22323See the pkg-config man page for more details.
22324
22325To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22326See \`config.log' for more details" "$LINENO" 5; }
22327else
22328	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
22329	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
22330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22331$as_echo "yes" >&6; }
22332
22333fi
22334
22335$as_echo "#define HAVE_LIBZ /**/" >>confdefs.h
22336
22337
22338pkg_failed=no
22339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libqpdf >= 8.3.0" >&5
22340$as_echo_n "checking for libqpdf >= 8.3.0... " >&6; }
22341
22342if test -n "$LIBQPDF_CFLAGS"; then
22343    pkg_cv_LIBQPDF_CFLAGS="$LIBQPDF_CFLAGS"
22344 elif test -n "$PKG_CONFIG"; then
22345    if test -n "$PKG_CONFIG" && \
22346    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 8.3.0\""; } >&5
22347  ($PKG_CONFIG --exists --print-errors "libqpdf >= 8.3.0") 2>&5
22348  ac_status=$?
22349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22350  test $ac_status = 0; }; then
22351  pkg_cv_LIBQPDF_CFLAGS=`$PKG_CONFIG --cflags "libqpdf >= 8.3.0" 2>/dev/null`
22352		      test "x$?" != "x0" && pkg_failed=yes
22353else
22354  pkg_failed=yes
22355fi
22356 else
22357    pkg_failed=untried
22358fi
22359if test -n "$LIBQPDF_LIBS"; then
22360    pkg_cv_LIBQPDF_LIBS="$LIBQPDF_LIBS"
22361 elif test -n "$PKG_CONFIG"; then
22362    if test -n "$PKG_CONFIG" && \
22363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 8.3.0\""; } >&5
22364  ($PKG_CONFIG --exists --print-errors "libqpdf >= 8.3.0") 2>&5
22365  ac_status=$?
22366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367  test $ac_status = 0; }; then
22368  pkg_cv_LIBQPDF_LIBS=`$PKG_CONFIG --libs "libqpdf >= 8.3.0" 2>/dev/null`
22369		      test "x$?" != "x0" && pkg_failed=yes
22370else
22371  pkg_failed=yes
22372fi
22373 else
22374    pkg_failed=untried
22375fi
22376
22377
22378
22379if test $pkg_failed = yes; then
22380        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22381$as_echo "no" >&6; }
22382
22383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22384        _pkg_short_errors_supported=yes
22385else
22386        _pkg_short_errors_supported=no
22387fi
22388        if test $_pkg_short_errors_supported = yes; then
22389	        LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqpdf >= 8.3.0" 2>&1`
22390        else
22391	        LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqpdf >= 8.3.0" 2>&1`
22392        fi
22393	# Put the nasty error message in config.log where it belongs
22394	echo "$LIBQPDF_PKG_ERRORS" >&5
22395
22396	as_fn_error $? "Package requirements (libqpdf >= 8.3.0) were not met:
22397
22398$LIBQPDF_PKG_ERRORS
22399
22400Consider adjusting the PKG_CONFIG_PATH environment variable if you
22401installed software in a non-standard prefix.
22402
22403Alternatively, you may set the environment variables LIBQPDF_CFLAGS
22404and LIBQPDF_LIBS to avoid the need to call pkg-config.
22405See the pkg-config man page for more details." "$LINENO" 5
22406elif test $pkg_failed = untried; then
22407        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408$as_echo "no" >&6; }
22409	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22411as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22412is in your PATH or set the PKG_CONFIG environment variable to the full
22413path to pkg-config.
22414
22415Alternatively, you may set the environment variables LIBQPDF_CFLAGS
22416and LIBQPDF_LIBS to avoid the need to call pkg-config.
22417See the pkg-config man page for more details.
22418
22419To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22420See \`config.log' for more details" "$LINENO" 5; }
22421else
22422	LIBQPDF_CFLAGS=$pkg_cv_LIBQPDF_CFLAGS
22423	LIBQPDF_LIBS=$pkg_cv_LIBQPDF_LIBS
22424        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22425$as_echo "yes" >&6; }
22426
22427fi
22428
22429# ===============================
22430# Check for PCLm printing support
22431# ===============================
22432# Check whether --enable-pclm was given.
22433if test "${enable_pclm+set}" = set; then :
22434  enableval=$enable_pclm; enable_pclm="$enableval"
22435else
22436  enable_pclm=yes
22437
22438fi
22439
22440if test "x$enable_pclm" != "xno"; then
22441
22442$as_echo "#define QPDF_HAVE_PCLM 1" >>confdefs.h
22443
22444	QPDF_NO_PCLM=
22445else
22446	QPDF_NO_PCLM=\#
22447fi
22448
22449
22450
22451
22452# =================
22453# Check for Poppler
22454# =================
22455# Check whether --enable-poppler was given.
22456if test "${enable_poppler+set}" = set; then :
22457  enableval=$enable_poppler; enable_poppler=$enableval
22458else
22459  enable_poppler=yes
22460fi
22461
22462 if test x$enable_poppler = xyes; then
22463  ENABLE_POPPLER_TRUE=
22464  ENABLE_POPPLER_FALSE='#'
22465else
22466  ENABLE_POPPLER_TRUE='#'
22467  ENABLE_POPPLER_FALSE=
22468fi
22469
22470if test x$enable_poppler = xyes; then
22471
22472pkg_failed=no
22473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poppler-cpp >= 0.19" >&5
22474$as_echo_n "checking for poppler-cpp >= 0.19... " >&6; }
22475
22476if test -n "$POPPLER_CFLAGS"; then
22477    pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
22478 elif test -n "$PKG_CONFIG"; then
22479    if test -n "$PKG_CONFIG" && \
22480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-cpp >= 0.19\""; } >&5
22481  ($PKG_CONFIG --exists --print-errors "poppler-cpp >= 0.19") 2>&5
22482  ac_status=$?
22483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22484  test $ac_status = 0; }; then
22485  pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler-cpp >= 0.19" 2>/dev/null`
22486		      test "x$?" != "x0" && pkg_failed=yes
22487else
22488  pkg_failed=yes
22489fi
22490 else
22491    pkg_failed=untried
22492fi
22493if test -n "$POPPLER_LIBS"; then
22494    pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
22495 elif test -n "$PKG_CONFIG"; then
22496    if test -n "$PKG_CONFIG" && \
22497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-cpp >= 0.19\""; } >&5
22498  ($PKG_CONFIG --exists --print-errors "poppler-cpp >= 0.19") 2>&5
22499  ac_status=$?
22500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22501  test $ac_status = 0; }; then
22502  pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler-cpp >= 0.19" 2>/dev/null`
22503		      test "x$?" != "x0" && pkg_failed=yes
22504else
22505  pkg_failed=yes
22506fi
22507 else
22508    pkg_failed=untried
22509fi
22510
22511
22512
22513if test $pkg_failed = yes; then
22514        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22515$as_echo "no" >&6; }
22516
22517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22518        _pkg_short_errors_supported=yes
22519else
22520        _pkg_short_errors_supported=no
22521fi
22522        if test $_pkg_short_errors_supported = yes; then
22523	        POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler-cpp >= 0.19" 2>&1`
22524        else
22525	        POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler-cpp >= 0.19" 2>&1`
22526        fi
22527	# Put the nasty error message in config.log where it belongs
22528	echo "$POPPLER_PKG_ERRORS" >&5
22529
22530	as_fn_error $? "Package requirements (poppler-cpp >= 0.19) were not met:
22531
22532$POPPLER_PKG_ERRORS
22533
22534Consider adjusting the PKG_CONFIG_PATH environment variable if you
22535installed software in a non-standard prefix.
22536
22537Alternatively, you may set the environment variables POPPLER_CFLAGS
22538and POPPLER_LIBS to avoid the need to call pkg-config.
22539See the pkg-config man page for more details." "$LINENO" 5
22540elif test $pkg_failed = untried; then
22541        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22542$as_echo "no" >&6; }
22543	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22545as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22546is in your PATH or set the PKG_CONFIG environment variable to the full
22547path to pkg-config.
22548
22549Alternatively, you may set the environment variables POPPLER_CFLAGS
22550and POPPLER_LIBS to avoid the need to call pkg-config.
22551See the pkg-config man page for more details.
22552
22553To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22554See \`config.log' for more details" "$LINENO" 5; }
22555else
22556	POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
22557	POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
22558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22559$as_echo "yes" >&6; }
22560
22561fi
22562	ac_fn_cxx_check_header_mongrel "$LINENO" "poppler/cpp/poppler-version.h" "ac_cv_header_poppler_cpp_poppler_version_h" "$ac_includes_default"
22563if test "x$ac_cv_header_poppler_cpp_poppler_version_h" = xyes; then :
22564
22565$as_echo "#define HAVE_CPP_POPPLER_VERSION_H /**/" >>confdefs.h
22566
22567fi
22568
22569
22570fi
22571
22572# ===============
22573# Check for D-Bus
22574# ===============
22575# Check whether --enable-dbus was given.
22576if test "${enable_dbus+set}" = set; then :
22577  enableval=$enable_dbus; enable_dbus=$enableval
22578else
22579  enable_dbus=yes
22580fi
22581
22582 if test x$enable_dbus = xyes; then
22583  BUILD_DBUS_TRUE=
22584  BUILD_DBUS_FALSE='#'
22585else
22586  BUILD_DBUS_TRUE='#'
22587  BUILD_DBUS_FALSE=
22588fi
22589
22590if test x$enable_dbus = xyes; then
22591
22592pkg_failed=no
22593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
22594$as_echo_n "checking for dbus-1... " >&6; }
22595
22596if test -n "$DBUS_CFLAGS"; then
22597    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22598 elif test -n "$PKG_CONFIG"; then
22599    if test -n "$PKG_CONFIG" && \
22600    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
22601  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
22602  ac_status=$?
22603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22604  test $ac_status = 0; }; then
22605  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
22606		      test "x$?" != "x0" && pkg_failed=yes
22607else
22608  pkg_failed=yes
22609fi
22610 else
22611    pkg_failed=untried
22612fi
22613if test -n "$DBUS_LIBS"; then
22614    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22615 elif test -n "$PKG_CONFIG"; then
22616    if test -n "$PKG_CONFIG" && \
22617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
22618  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
22619  ac_status=$?
22620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621  test $ac_status = 0; }; then
22622  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
22623		      test "x$?" != "x0" && pkg_failed=yes
22624else
22625  pkg_failed=yes
22626fi
22627 else
22628    pkg_failed=untried
22629fi
22630
22631
22632
22633if test $pkg_failed = yes; then
22634        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22635$as_echo "no" >&6; }
22636
22637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22638        _pkg_short_errors_supported=yes
22639else
22640        _pkg_short_errors_supported=no
22641fi
22642        if test $_pkg_short_errors_supported = yes; then
22643	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
22644        else
22645	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
22646        fi
22647	# Put the nasty error message in config.log where it belongs
22648	echo "$DBUS_PKG_ERRORS" >&5
22649
22650	as_fn_error $? "Package requirements (dbus-1) were not met:
22651
22652$DBUS_PKG_ERRORS
22653
22654Consider adjusting the PKG_CONFIG_PATH environment variable if you
22655installed software in a non-standard prefix.
22656
22657Alternatively, you may set the environment variables DBUS_CFLAGS
22658and DBUS_LIBS to avoid the need to call pkg-config.
22659See the pkg-config man page for more details." "$LINENO" 5
22660elif test $pkg_failed = untried; then
22661        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22662$as_echo "no" >&6; }
22663	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22665as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22666is in your PATH or set the PKG_CONFIG environment variable to the full
22667path to pkg-config.
22668
22669Alternatively, you may set the environment variables DBUS_CFLAGS
22670and DBUS_LIBS to avoid the need to call pkg-config.
22671See the pkg-config man page for more details.
22672
22673To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22674See \`config.log' for more details" "$LINENO" 5; }
22675else
22676	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22677	DBUS_LIBS=$pkg_cv_DBUS_LIBS
22678        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22679$as_echo "yes" >&6; }
22680
22681fi
22682fi
22683
22684# ===================================
22685# Check for large files and long long
22686# ===================================
22687# Check whether --enable-largefile was given.
22688if test "${enable_largefile+set}" = set; then :
22689  enableval=$enable_largefile;
22690fi
22691
22692if test "$enable_largefile" != no; then
22693
22694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
22695$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22696if ${ac_cv_sys_largefile_CC+:} false; then :
22697  $as_echo_n "(cached) " >&6
22698else
22699  ac_cv_sys_largefile_CC=no
22700     if test "$GCC" != yes; then
22701       ac_save_CC=$CC
22702       while :; do
22703	 # IRIX 6.2 and later do not support large files by default,
22704	 # so use the C compiler's -n32 option if that helps.
22705	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706/* end confdefs.h.  */
22707#include <sys/types.h>
22708 /* Check that off_t can represent 2**63 - 1 correctly.
22709    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22710    since some C++ compilers masquerading as C compilers
22711    incorrectly reject 9223372036854775807.  */
22712#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
22713  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22714		       && LARGE_OFF_T % 2147483647 == 1)
22715		      ? 1 : -1];
22716int
22717main ()
22718{
22719
22720  ;
22721  return 0;
22722}
22723_ACEOF
22724	 if ac_fn_cxx_try_compile "$LINENO"; then :
22725  break
22726fi
22727rm -f core conftest.err conftest.$ac_objext
22728	 CC="$CC -n32"
22729	 if ac_fn_cxx_try_compile "$LINENO"; then :
22730  ac_cv_sys_largefile_CC=' -n32'; break
22731fi
22732rm -f core conftest.err conftest.$ac_objext
22733	 break
22734       done
22735       CC=$ac_save_CC
22736       rm -f conftest.$ac_ext
22737    fi
22738fi
22739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
22740$as_echo "$ac_cv_sys_largefile_CC" >&6; }
22741  if test "$ac_cv_sys_largefile_CC" != no; then
22742    CC=$CC$ac_cv_sys_largefile_CC
22743  fi
22744
22745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22746$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22747if ${ac_cv_sys_file_offset_bits+:} false; then :
22748  $as_echo_n "(cached) " >&6
22749else
22750  while :; do
22751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752/* end confdefs.h.  */
22753#include <sys/types.h>
22754 /* Check that off_t can represent 2**63 - 1 correctly.
22755    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22756    since some C++ compilers masquerading as C compilers
22757    incorrectly reject 9223372036854775807.  */
22758#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
22759  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22760		       && LARGE_OFF_T % 2147483647 == 1)
22761		      ? 1 : -1];
22762int
22763main ()
22764{
22765
22766  ;
22767  return 0;
22768}
22769_ACEOF
22770if ac_fn_cxx_try_compile "$LINENO"; then :
22771  ac_cv_sys_file_offset_bits=no; break
22772fi
22773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775/* end confdefs.h.  */
22776#define _FILE_OFFSET_BITS 64
22777#include <sys/types.h>
22778 /* Check that off_t can represent 2**63 - 1 correctly.
22779    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22780    since some C++ compilers masquerading as C compilers
22781    incorrectly reject 9223372036854775807.  */
22782#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
22783  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22784		       && LARGE_OFF_T % 2147483647 == 1)
22785		      ? 1 : -1];
22786int
22787main ()
22788{
22789
22790  ;
22791  return 0;
22792}
22793_ACEOF
22794if ac_fn_cxx_try_compile "$LINENO"; then :
22795  ac_cv_sys_file_offset_bits=64; break
22796fi
22797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798  ac_cv_sys_file_offset_bits=unknown
22799  break
22800done
22801fi
22802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
22803$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
22804case $ac_cv_sys_file_offset_bits in #(
22805  no | unknown) ;;
22806  *)
22807cat >>confdefs.h <<_ACEOF
22808#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22809_ACEOF
22810;;
22811esac
22812rm -rf conftest*
22813  if test $ac_cv_sys_file_offset_bits = unknown; then
22814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
22815$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22816if ${ac_cv_sys_large_files+:} false; then :
22817  $as_echo_n "(cached) " >&6
22818else
22819  while :; do
22820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22821/* end confdefs.h.  */
22822#include <sys/types.h>
22823 /* Check that off_t can represent 2**63 - 1 correctly.
22824    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22825    since some C++ compilers masquerading as C compilers
22826    incorrectly reject 9223372036854775807.  */
22827#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
22828  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22829		       && LARGE_OFF_T % 2147483647 == 1)
22830		      ? 1 : -1];
22831int
22832main ()
22833{
22834
22835  ;
22836  return 0;
22837}
22838_ACEOF
22839if ac_fn_cxx_try_compile "$LINENO"; then :
22840  ac_cv_sys_large_files=no; break
22841fi
22842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22844/* end confdefs.h.  */
22845#define _LARGE_FILES 1
22846#include <sys/types.h>
22847 /* Check that off_t can represent 2**63 - 1 correctly.
22848    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22849    since some C++ compilers masquerading as C compilers
22850    incorrectly reject 9223372036854775807.  */
22851#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
22852  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22853		       && LARGE_OFF_T % 2147483647 == 1)
22854		      ? 1 : -1];
22855int
22856main ()
22857{
22858
22859  ;
22860  return 0;
22861}
22862_ACEOF
22863if ac_fn_cxx_try_compile "$LINENO"; then :
22864  ac_cv_sys_large_files=1; break
22865fi
22866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867  ac_cv_sys_large_files=unknown
22868  break
22869done
22870fi
22871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
22872$as_echo "$ac_cv_sys_large_files" >&6; }
22873case $ac_cv_sys_large_files in #(
22874  no | unknown) ;;
22875  *)
22876cat >>confdefs.h <<_ACEOF
22877#define _LARGE_FILES $ac_cv_sys_large_files
22878_ACEOF
22879;;
22880esac
22881rm -rf conftest*
22882  fi
22883
22884
22885fi
22886
22887LARGEFILE=""
22888if test x"$enable_largefile" != "xno"; then :
22889
22890	LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
22891	if test x"$ac_cv_sys_large_files" = "x1"; then :
22892  LARGEFILE="$LARGEFILE -D_LARGE_FILES"
22893fi
22894	if test x"$ac_cv_sys_file_offset_bits" = "x64"; then :
22895  LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
22896fi
22897
22898fi
22899
22900
22901ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22902if test "x$ac_cv_type_long_long" = xyes; then :
22903  long_long_found=yes
22904else
22905  long_long_found=no
22906fi
22907
22908if test x"$long_long_found" = "xyes"; then :
22909
22910
22911$as_echo "#define HAVE_LONG_LONG /**/" >>confdefs.h
22912
22913
22914fi
22915
22916# ================
22917# Check for Mutool
22918# ================
22919# Check whether --enable-mutool was given.
22920if test "${enable_mutool+set}" = set; then :
22921  enableval=$enable_mutool; enable_mutool="$enableval"
22922else
22923  enable_mutool=yes
22924
22925fi
22926
22927
22928
22929# Check whether --with-mutool-path was given.
22930if test "${with_mutool_path+set}" = set; then :
22931  withval=$with_mutool_path; with_mutool_path="$withval"
22932else
22933  with_mutool_path=system
22934
22935fi
22936
22937
22938# ================
22939# Check for pdf2ps
22940# ================
22941# Check whether --enable-ghostscript was given.
22942if test "${enable_ghostscript+set}" = set; then :
22943  enableval=$enable_ghostscript; enable_ghostscript="$enableval"
22944else
22945  enable_ghostscript=yes
22946
22947fi
22948
22949
22950# Check whether --with-pdftops was given.
22951if test "${with_pdftops+set}" = set; then :
22952  withval=$with_pdftops; with_pdftops="$withval"
22953else
22954  with_pdftops=hybrid
22955
22956fi
22957
22958case x$with_pdftops in #(
22959  xgs|xpdftops|xpdftocairo|xacroread|xmupdf|xhybrid) :
22960     ;; #(
22961  *) :
22962    as_fn_error $? "Unknown value of with-pdftops provided: $with_pdftops" "$LINENO" 5
22963 ;;
22964esac
22965
22966# Check whether --with-gs-path was given.
22967if test "${with_gs_path+set}" = set; then :
22968  withval=$with_gs_path; with_gs_path="$withval"
22969else
22970  with_gs_path=system
22971
22972fi
22973
22974
22975# Check whether --with-pdftops-path was given.
22976if test "${with_pdftops_path+set}" = set; then :
22977  withval=$with_pdftops_path; with_pdftops_path="$withval"
22978else
22979  with_pdftops_path=system
22980
22981fi
22982
22983
22984# Check whether --with-pdftocairo-path was given.
22985if test "${with_pdftocairo_path+set}" = set; then :
22986  withval=$with_pdftocairo_path; with_pdftocairo_path="$withval"
22987else
22988  with_pdftocairo_path=system
22989
22990fi
22991
22992
22993# Check whether --with-acroread-path was given.
22994if test "${with_acroread_path+set}" = set; then :
22995  withval=$with_acroread_path; with_acroread_path="$withval"
22996else
22997  with_acroread_path=system
22998
22999fi
23000
23001
23002# Check whether --with-ippfind-path was given.
23003if test "${with_ippfind_path+set}" = set; then :
23004  withval=$with_ippfind_path; with_ippfind_path="$withval"
23005else
23006  with_ippfind_path=system
23007
23008fi
23009
23010
23011# Check whether --with-pdftops-maxres was given.
23012if test "${with_pdftops_maxres+set}" = set; then :
23013  withval=$with_pdftops_maxres; with_pdftops_maxres="$withval"
23014else
23015  with_pdftops_maxres=1440
23016
23017fi
23018
23019case x$with_pdftops_maxres in #(
23020  x0|x75|x150|x300|x600|x1200|x2400|x4800|x90|x180|x360|x720|x1440|x2880|x5760) :
23021    CUPS_PDFTOPS_MAXRES=$with_pdftops_maxres ;; #(
23022  xunlimited) :
23023    CUPS_PDFTOPS_MAXRES=0 ;; #(
23024  *) :
23025    as_fn_error $? "Unknown value of with-pdftops-maxres provided: $with_pdftops" "$LINENO" 5
23026 ;;
23027esac
23028# Check whether --enable-gs-ps2write was given.
23029if test "${enable_gs_ps2write+set}" = set; then :
23030  enableval=$enable_gs_ps2write; enable_gs_ps2write="$enableval"
23031else
23032  enable_gs_ps2write=yes
23033
23034fi
23035
23036
23037CUPS_GHOSTSCRIPT=""
23038if test "x$enable_ghostscript" != "xyes"; then :
23039
23040       with_gs_path=""
23041
23042else
23043
23044	if test "x$with_gs_path" != "xsystem"; then :
23045
23046		CUPS_GHOSTSCRIPT="$with_gs_path"
23047
23048else
23049
23050		if test "x$cross_compiling" = "xyes"; then :
23051
23052			CUPS_GHOSTSCRIPT="gs"
23053
23054else
23055
23056			# Extract the first word of "gs", so it can be a program name with args.
23057set dummy gs; ac_word=$2
23058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23059$as_echo_n "checking for $ac_word... " >&6; }
23060if ${ac_cv_prog_CUPS_GHOSTSCRIPT+:} false; then :
23061  $as_echo_n "(cached) " >&6
23062else
23063  if test -n "$CUPS_GHOSTSCRIPT"; then
23064  ac_cv_prog_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test.
23065else
23066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23067for as_dir in $PATH
23068do
23069  IFS=$as_save_IFS
23070  test -z "$as_dir" && as_dir=.
23071    for ac_exec_ext in '' $ac_executable_extensions; do
23072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23073    ac_cv_prog_CUPS_GHOSTSCRIPT="gs"
23074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23075    break 2
23076  fi
23077done
23078  done
23079IFS=$as_save_IFS
23080
23081fi
23082fi
23083CUPS_GHOSTSCRIPT=$ac_cv_prog_CUPS_GHOSTSCRIPT
23084if test -n "$CUPS_GHOSTSCRIPT"; then
23085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
23086$as_echo "$CUPS_GHOSTSCRIPT" >&6; }
23087else
23088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23089$as_echo "no" >&6; }
23090fi
23091
23092
23093
23094fi
23095
23096fi
23097	if test "x$CUPS_GHOSTSCRIPT" = "x"; then :
23098
23099		as_fn_error $? "Required gs binary is missing. Please install ghostscript-gpl package." "$LINENO" 5
23100
23101fi
23102
23103$as_echo "#define HAVE_GHOSTSCRIPT /**/" >>confdefs.h
23104
23105	if test x"$with_pdftops" = xgs; then :
23106
23107cat >>confdefs.h <<_ACEOF
23108#define CUPS_PDFTOPS_RENDERER GS
23109_ACEOF
23110
23111fi
23112
23113	if test x"$enable_gs_ps2write" = "xyes"; then :
23114
23115
23116$as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE /**/" >>confdefs.h
23117
23118
23119fi
23120	if test "x$cross_compiling" != "xyes"; then :
23121
23122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
23123$as_echo_n "checking whether gs supports the ps2write device... " >&6; }
23124		if `$CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write`; then :
23125
23126			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23127$as_echo "yes" >&6; }
23128
23129$as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE /**/" >>confdefs.h
23130
23131
23132else
23133
23134			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23135$as_echo "no" >&6; }
23136
23137fi
23138
23139fi
23140
23141fi
23142 if test "x$enable_ghostscript" = xyes; then
23143  ENABLE_GHOSTSCRIPT_TRUE=
23144  ENABLE_GHOSTSCRIPT_FALSE='#'
23145else
23146  ENABLE_GHOSTSCRIPT_TRUE='#'
23147  ENABLE_GHOSTSCRIPT_FALSE=
23148fi
23149
23150
23151
23152CUPS_MUTOOL=""
23153if test "x$enable_mutool" != "xyes"; then :
23154
23155	with_mutool_path=""
23156
23157else
23158
23159	if test "x$with_mutool_path" != "xsystem"; then :
23160
23161		CUPS_MUTOOL="$with_mutool_path"
23162
23163else
23164
23165		if test "x$cross_compiling" = "xyes"; then :
23166
23167			CUPS_MUTOOL="mutool"
23168
23169else
23170
23171			# Extract the first word of "mutool", so it can be a program name with args.
23172set dummy mutool; ac_word=$2
23173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23174$as_echo_n "checking for $ac_word... " >&6; }
23175if ${ac_cv_prog_CUPS_MUTOOL+:} false; then :
23176  $as_echo_n "(cached) " >&6
23177else
23178  if test -n "$CUPS_MUTOOL"; then
23179  ac_cv_prog_CUPS_MUTOOL="$CUPS_MUTOOL" # Let the user override the test.
23180else
23181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23182for as_dir in $PATH
23183do
23184  IFS=$as_save_IFS
23185  test -z "$as_dir" && as_dir=.
23186    for ac_exec_ext in '' $ac_executable_extensions; do
23187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23188    ac_cv_prog_CUPS_MUTOOL="mutool"
23189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23190    break 2
23191  fi
23192done
23193  done
23194IFS=$as_save_IFS
23195
23196fi
23197fi
23198CUPS_MUTOOL=$ac_cv_prog_CUPS_MUTOOL
23199if test -n "$CUPS_MUTOOL"; then
23200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_MUTOOL" >&5
23201$as_echo "$CUPS_MUTOOL" >&6; }
23202else
23203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204$as_echo "no" >&6; }
23205fi
23206
23207
23208
23209fi
23210
23211fi
23212	if test "x$CUPS_MUTOOL" = "x"; then :
23213
23214		as_fn_error $? "Required mutool binary is missing. Please install mutool." "$LINENO" 5
23215
23216fi
23217	if test x"$with_pdftops" = xmupdf; then :
23218
23219cat >>confdefs.h <<_ACEOF
23220#define CUPS_PDFTOPS_RENDERER MUPDF
23221_ACEOF
23222
23223fi
23224
23225fi
23226 if test "x$enable_mutool" = xyes; then
23227  ENABLE_MUTOOL_TRUE=
23228  ENABLE_MUTOOL_FALSE='#'
23229else
23230  ENABLE_MUTOOL_TRUE='#'
23231  ENABLE_MUTOOL_FALSE=
23232fi
23233
23234
23235
23236if test "x$with_pdftops_path" != "xsystem"; then :
23237
23238	CUPS_PDFTOPS="$with_pdftops_path"
23239
23240else
23241
23242	if test "x$cross_compiling" = "xyes"; then :
23243
23244		CUPS_PDFTOPS="/usr/bin/pdftops"
23245
23246else
23247
23248		# Extract the first word of "pdftops", so it can be a program name with args.
23249set dummy pdftops; ac_word=$2
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23251$as_echo_n "checking for $ac_word... " >&6; }
23252if ${ac_cv_prog_CUPS_PDFTOPS+:} false; then :
23253  $as_echo_n "(cached) " >&6
23254else
23255  if test -n "$CUPS_PDFTOPS"; then
23256  ac_cv_prog_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test.
23257else
23258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23259for as_dir in $PATH
23260do
23261  IFS=$as_save_IFS
23262  test -z "$as_dir" && as_dir=.
23263    for ac_exec_ext in '' $ac_executable_extensions; do
23264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23265    ac_cv_prog_CUPS_PDFTOPS="/usr/bin/pdftops"
23266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23267    break 2
23268  fi
23269done
23270  done
23271IFS=$as_save_IFS
23272
23273fi
23274fi
23275CUPS_PDFTOPS=$ac_cv_prog_CUPS_PDFTOPS
23276if test -n "$CUPS_PDFTOPS"; then
23277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
23278$as_echo "$CUPS_PDFTOPS" >&6; }
23279else
23280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23281$as_echo "no" >&6; }
23282fi
23283
23284
23285
23286fi
23287	if test "x$CUPS_PDFTOPS" = "x"; then :
23288
23289		as_fn_error $? "Required pdftops is missing. Please install the pdftops utility of Poppler." "$LINENO" 5
23290
23291fi
23292
23293fi
23294if test "x$CUPS_PDFTOPS" != "x"; then :
23295
23296
23297$as_echo "#define HAVE_POPPLER_PDFTOPS /**/" >>confdefs.h
23298
23299	if test x"$with_pdftops" = xpdftops; then :
23300
23301cat >>confdefs.h <<_ACEOF
23302#define CUPS_PDFTOPS_RENDERER PDFTOPS
23303_ACEOF
23304
23305fi
23306
23307	if test "x$cross_compiling" != "xyes"; then :
23308
23309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
23310$as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
23311		if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes`; then :
23312
23313        		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23314$as_echo "yes" >&6; }
23315
23316$as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES  " >>confdefs.h
23317
23318
23319else
23320
23321	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23322$as_echo "no" >&6; }
23323
23324fi
23325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -r" >&5
23326$as_echo_n "checking whether pdftops supports -r... " >&6; }
23327		if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- '-r '`; then :
23328
23329	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23330$as_echo "yes" >&6; }
23331
23332$as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_RESOLUTION  " >>confdefs.h
23333
23334
23335else
23336
23337        		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23338$as_echo "no" >&6; }
23339
23340fi
23341
23342fi
23343
23344fi
23345if test "x$with_pdftocairo_path" != "xsystem"; then :
23346
23347	CUPS_PDFTOCAIRO="$with_pdftocairo_path"
23348
23349else
23350
23351	CUPS_PDFTOCAIRO="pdftocairo"
23352
23353fi
23354if test "x$CUPS_PDFTOCAIRO" != "x"; then :
23355
23356	if test x"$with_pdftops" = xpdftocairo; then :
23357
23358cat >>confdefs.h <<_ACEOF
23359#define CUPS_PDFTOPS_RENDERER PDFTOCAIRO
23360_ACEOF
23361
23362fi
23363
23364else
23365
23366	as_fn_error $? "Required pdftocairo is missing. Please install Poppler developer packages." "$LINENO" 5
23367
23368fi
23369if test "x$with_acroread_path" != "xsystem"; then :
23370
23371	CUPS_ACROREAD="$with_acroread_path"
23372
23373else
23374
23375	CUPS_ACROREAD="acroread"
23376
23377fi
23378if test "x$CUPS_ACROREAD" != "x"; then :
23379
23380	if test x"$with_pdftops" = xacroread; then :
23381
23382cat >>confdefs.h <<_ACEOF
23383#define CUPS_PDFTOPS_RENDERER ACROREAD
23384_ACEOF
23385
23386fi
23387
23388fi
23389if test "x$with_ippfind_path" != "xsystem"; then :
23390
23391	CUPS_IPPFIND="$with_ippfind_path"
23392
23393else
23394
23395	CUPS_IPPFIND="ippfind"
23396
23397fi
23398
23399if test "x$CUPS_GHOSTSCRIPT" != "x" -a "x$CUPS_PDFTOPS" != "x"; then :
23400
23401	if test x"$with_pdftops" = xhybrid; then :
23402
23403cat >>confdefs.h <<_ACEOF
23404#define CUPS_PDFTOPS_RENDERER HYBRID
23405_ACEOF
23406
23407fi
23408
23409fi
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
23414_ACEOF
23415
23416
23417cat >>confdefs.h <<_ACEOF
23418#define CUPS_MUTOOL "$CUPS_MUTOOL"
23419_ACEOF
23420
23421
23422cat >>confdefs.h <<_ACEOF
23423#define CUPS_POPPLER_PDFTOPS "$CUPS_PDFTOPS"
23424_ACEOF
23425
23426
23427cat >>confdefs.h <<_ACEOF
23428#define CUPS_POPPLER_PDFTOCAIRO "$CUPS_PDFTOCAIRO"
23429_ACEOF
23430
23431
23432cat >>confdefs.h <<_ACEOF
23433#define CUPS_ACROREAD "$CUPS_ACROREAD"
23434_ACEOF
23435
23436
23437cat >>confdefs.h <<_ACEOF
23438#define CUPS_IPPFIND "$CUPS_IPPFIND"
23439_ACEOF
23440
23441
23442cat >>confdefs.h <<_ACEOF
23443#define CUPS_PDFTOPS_MAX_RESOLUTION $CUPS_PDFTOPS_MAXRES
23444_ACEOF
23445
23446
23447# ==================
23448# Check for foomatic
23449# ==================
23450# Check whether --enable-foomatic was given.
23451if test "${enable_foomatic+set}" = set; then :
23452  enableval=$enable_foomatic; enable_foomatic="$enableval"
23453else
23454  enable_foomatic=yes
23455
23456fi
23457
23458 if test "x$enable_foomatic" = "xyes"; then
23459  ENABLE_FOOMATIC_TRUE=
23460  ENABLE_FOOMATIC_FALSE='#'
23461else
23462  ENABLE_FOOMATIC_TRUE='#'
23463  ENABLE_FOOMATIC_FALSE=
23464fi
23465
23466
23467# =============
23468# Check for php
23469# =============
23470# NOTE: This stuff is broken, requires internal cups headers.
23471
23472# Check whether --with-php was given.
23473if test "${with_php+set}" = set; then :
23474  withval=$with_php; with_php="$withval"
23475else
23476  with_php=no
23477
23478fi
23479
23480
23481# Check whether --with-php-config was given.
23482if test "${with_php_config+set}" = set; then :
23483  withval=$with_php_config; with_php_config="$withval"
23484else
23485  with_php_config=system
23486
23487fi
23488
23489 if test "x$with_php" = "xyes"; then
23490  WITH_PHP_TRUE=
23491  WITH_PHP_FALSE='#'
23492else
23493  WITH_PHP_TRUE='#'
23494  WITH_PHP_FALSE=
23495fi
23496
23497if test x"$with_php" = "xyes"; then :
23498
23499	if test "x$with_php_config" != "xsystem"; then :
23500
23501		PHPCONFIG=$with_php_config
23502
23503else
23504
23505		if test -n "$ac_tool_prefix"; then
23506  # Extract the first word of "${ac_tool_prefix}php-config", so it can be a program name with args.
23507set dummy ${ac_tool_prefix}php-config; ac_word=$2
23508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23509$as_echo_n "checking for $ac_word... " >&6; }
23510if ${ac_cv_path_PHPCONFIG+:} false; then :
23511  $as_echo_n "(cached) " >&6
23512else
23513  case $PHPCONFIG in
23514  [\\/]* | ?:[\\/]*)
23515  ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
23516  ;;
23517  *)
23518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23519for as_dir in $PATH
23520do
23521  IFS=$as_save_IFS
23522  test -z "$as_dir" && as_dir=.
23523    for ac_exec_ext in '' $ac_executable_extensions; do
23524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23525    ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
23526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23527    break 2
23528  fi
23529done
23530  done
23531IFS=$as_save_IFS
23532
23533  ;;
23534esac
23535fi
23536PHPCONFIG=$ac_cv_path_PHPCONFIG
23537if test -n "$PHPCONFIG"; then
23538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
23539$as_echo "$PHPCONFIG" >&6; }
23540else
23541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23542$as_echo "no" >&6; }
23543fi
23544
23545
23546fi
23547if test -z "$ac_cv_path_PHPCONFIG"; then
23548  ac_pt_PHPCONFIG=$PHPCONFIG
23549  # Extract the first word of "php-config", so it can be a program name with args.
23550set dummy php-config; ac_word=$2
23551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23552$as_echo_n "checking for $ac_word... " >&6; }
23553if ${ac_cv_path_ac_pt_PHPCONFIG+:} false; then :
23554  $as_echo_n "(cached) " >&6
23555else
23556  case $ac_pt_PHPCONFIG in
23557  [\\/]* | ?:[\\/]*)
23558  ac_cv_path_ac_pt_PHPCONFIG="$ac_pt_PHPCONFIG" # Let the user override the test with a path.
23559  ;;
23560  *)
23561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23562for as_dir in $PATH
23563do
23564  IFS=$as_save_IFS
23565  test -z "$as_dir" && as_dir=.
23566    for ac_exec_ext in '' $ac_executable_extensions; do
23567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23568    ac_cv_path_ac_pt_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
23569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23570    break 2
23571  fi
23572done
23573  done
23574IFS=$as_save_IFS
23575
23576  ;;
23577esac
23578fi
23579ac_pt_PHPCONFIG=$ac_cv_path_ac_pt_PHPCONFIG
23580if test -n "$ac_pt_PHPCONFIG"; then
23581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PHPCONFIG" >&5
23582$as_echo "$ac_pt_PHPCONFIG" >&6; }
23583else
23584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23585$as_echo "no" >&6; }
23586fi
23587
23588  if test "x$ac_pt_PHPCONFIG" = x; then
23589    PHPCONFIG=""
23590  else
23591    case $cross_compiling:$ac_tool_warned in
23592yes:)
23593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23595ac_tool_warned=yes ;;
23596esac
23597    PHPCONFIG=$ac_pt_PHPCONFIG
23598  fi
23599else
23600  PHPCONFIG="$ac_cv_path_PHPCONFIG"
23601fi
23602
23603		if test -z "$PHPCONFIG"; then :
23604
23605			as_fn_error $? "Required php-config is missing. Please install PHP developer packages." "$LINENO" 5
23606
23607fi
23608
23609fi
23610	PHPDIR="`$PHPCONFIG --extension-dir`"
23611
23612
23613fi
23614
23615# =========
23616# Test ARGS
23617# =========
23618
23619# Check whether --with-test-font-path was given.
23620if test "${with_test_font_path+set}" = set; then :
23621  withval=$with_test_font_path; with_test_font_path="$withval"
23622else
23623  with_test_font_path=`( find /usr/share/fonts -name DejaVuSans.ttf; echo /usr/share/fonts/dejavu/DejaVuSans.ttf ) | head -1`
23624
23625fi
23626
23627
23628if test "x$cross_compiling" != "xyes" && ! test -f "$with_test_font_path"; then :
23629  as_fn_error $? "DejaVuSans.ttf font file is missing. Please install a package providing it." "$LINENO" 5
23630
23631fi
23632
23633cat >>confdefs.h <<_ACEOF
23634#define TESTFONT "$with_test_font_path"
23635_ACEOF
23636
23637
23638# ================
23639# Check for cflags
23640# ================
23641# Check whether --enable-werror was given.
23642if test "${enable_werror+set}" = set; then :
23643  enableval=$enable_werror; enable_werror="$enableval"
23644else
23645  enable_werror=no
23646
23647fi
23648
23649if test x"$enable_werror" = "xyes"; then :
23650
23651	CFLAGS="$CFLAGS -Werror"
23652
23653fi
23654if test x"$GCC" = "xyes"; then :
23655
23656	# Be tough with warnings and produce less careless code
23657	CFLAGS="$CFLAGS -Wall -std=gnu11"
23658	CXXFLAGS="$CXXFLAGS -Wall " # -Weffc++" # TODO: enable when it does not print 1MB of warnings
23659
23660fi
23661CFLAGS="$CFLAGS -D_GNU_SOURCE"
23662CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
23663
23664# ==========================
23665# Braille embossing/liblouis
23666# ==========================
23667# Check whether --enable-braille was given.
23668if test "${enable_braille+set}" = set; then :
23669  enableval=$enable_braille; enable_braille=$enableval
23670else
23671  enable_braille=yes
23672fi
23673
23674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblouis" >&5
23675$as_echo_n "checking for liblouis... " >&6; }
23676if test -n "$PKG_CONFIG" && \
23677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblouis\""; } >&5
23678  ($PKG_CONFIG --exists --print-errors "liblouis") 2>&5
23679  ac_status=$?
23680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23681  test $ac_status = 0; }; then
23682
23683	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23684$as_echo "yes" >&6; }
23685	if test "x$enable_braille" = xyes; then
23686		TABLESDIR=`$PKG_CONFIG --variable=tablesdir liblouis`
23687	else
23688		TABLESDIR=/usr/share/liblouis/tables
23689	fi
23690
23691else
23692
23693	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23694$as_echo "no" >&6; }
23695	TABLESDIR=/usr/share/liblouis/tables
23696
23697fi
23698 if test "x$enable_braille" = xyes; then
23699  ENABLE_BRAILLE_TRUE=
23700  ENABLE_BRAILLE_FALSE='#'
23701else
23702  ENABLE_BRAILLE_TRUE='#'
23703  ENABLE_BRAILLE_FALSE=
23704fi
23705
23706
23707
23708# ===============================================
23709# Should we keep generated queues after shutdown?
23710# ===============================================
23711# Check whether --enable-saving-created-queues was given.
23712if test "${enable_saving_created_queues+set}" = set; then :
23713  enableval=$enable_saving_created_queues; SAVING_CREATED_QUEUES=$enableval
23714else
23715  SAVING_CREATED_QUEUES="no"
23716fi
23717
23718
23719if test "x$SAVING_CREATED_QUEUES" != "xno"; then :
23720
23721$as_echo "#define SAVING_CREATED_QUEUES 1" >>confdefs.h
23722
23723
23724fi
23725
23726# =========================================
23727# Local queue naming for remote CUPS queues
23728# =========================================
23729
23730# Check whether --with-remote-cups-local-queue-naming was given.
23731if test "${with_remote_cups_local_queue_naming+set}" = set; then :
23732  withval=$with_remote_cups_local_queue_naming; case "x$withval" in
23733		"xMakeModel")
23734			REMOTE_CUPS_LOCAL_QUEUE_NAMING="MakeModel"
23735
23736$as_echo "#define NAMING_MAKE_MODEL 1" >>confdefs.h
23737
23738			;;
23739		"xRemoteName")
23740			REMOTE_CUPS_LOCAL_QUEUE_NAMING="RemoteName"
23741
23742$as_echo "#define NAMING_REMOTE_NAME 1" >>confdefs.h
23743
23744			;;
23745		*)
23746			REMOTE_CUPS_LOCAL_QUEUE_NAMING="DNS-SD"
23747
23748$as_echo "#define NAMING_DNSSD 1" >>confdefs.h
23749
23750			;;
23751	esac
23752else
23753  REMOTE_CUPS_LOCAL_QUEUE_NAMING="DNS-SD"
23754
23755$as_echo "#define NAMING_DNSSD 1" >>confdefs.h
23756
23757
23758fi
23759
23760
23761# =========================================================
23762# Select a different shell instead of the default /bin/bash
23763# =========================================================
23764
23765# Check whether --with-shell was given.
23766if test "${with_shell+set}" = set; then :
23767  withval=$with_shell; with_shell="$withval"
23768else
23769  with_shell="/bin/bash"
23770
23771fi
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define SHELL "$with_shell"
23776_ACEOF
23777
23778
23779# =====================
23780# Prepare all .in files
23781# =====================
23782ac_config_files="$ac_config_files libcupsfilters.pc libfontembed.pc Makefile utils/cups-browsed utils/cups-browsed.conf filter/foomatic-rip/foomatic-rip.1 filter/braille/drivers/index/indexv4.sh filter/braille/drivers/index/indexv3.sh filter/braille/drivers/index/index.sh filter/braille/drivers/index/textbrftoindexv3 filter/braille/drivers/index/imageubrltoindexv3 filter/braille/drivers/index/imageubrltoindexv4 filter/braille/drivers/generic/brftoembosser filter/braille/filters/cups-braille.sh filter/braille/filters/imagetobrf filter/braille/filters/texttobrf filter/braille/filters/brftopagedbrf filter/braille/filters/vectortopdf filter/braille/filters/vectortobrf filter/braille/filters/musicxmltobrf filter/braille/filters/liblouis1.defs.gen mime/cupsfilters.convs"
23783
23784ac_config_commands="$ac_config_commands executable-scripts"
23785
23786cat >confcache <<\_ACEOF
23787# This file is a shell script that caches the results of configure
23788# tests run on this system so they can be shared between configure
23789# scripts and configure runs, see configure's option --config-cache.
23790# It is not useful on other systems.  If it contains results you don't
23791# want to keep, you may remove or edit it.
23792#
23793# config.status only pays attention to the cache file if you give it
23794# the --recheck option to rerun configure.
23795#
23796# `ac_cv_env_foo' variables (set or unset) will be overridden when
23797# loading this file, other *unset* `ac_cv_foo' will be assigned the
23798# following values.
23799
23800_ACEOF
23801
23802# The following way of writing the cache mishandles newlines in values,
23803# but we know of no workaround that is simple, portable, and efficient.
23804# So, we kill variables containing newlines.
23805# Ultrix sh set writes to stderr and can't be redirected directly,
23806# and sets the high bit in the cache file unless we assign to the vars.
23807(
23808  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23809    eval ac_val=\$$ac_var
23810    case $ac_val in #(
23811    *${as_nl}*)
23812      case $ac_var in #(
23813      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23814$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23815      esac
23816      case $ac_var in #(
23817      _ | IFS | as_nl) ;; #(
23818      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23819      *) { eval $ac_var=; unset $ac_var;} ;;
23820      esac ;;
23821    esac
23822  done
23823
23824  (set) 2>&1 |
23825    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23826    *${as_nl}ac_space=\ *)
23827      # `set' does not quote correctly, so add quotes: double-quote
23828      # substitution turns \\\\ into \\, and sed turns \\ into \.
23829      sed -n \
23830	"s/'/'\\\\''/g;
23831	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23832      ;; #(
23833    *)
23834      # `set' quotes correctly as required by POSIX, so do not add quotes.
23835      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23836      ;;
23837    esac |
23838    sort
23839) |
23840  sed '
23841     /^ac_cv_env_/b end
23842     t clear
23843     :clear
23844     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23845     t end
23846     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23847     :end' >>confcache
23848if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23849  if test -w "$cache_file"; then
23850    if test "x$cache_file" != "x/dev/null"; then
23851      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23852$as_echo "$as_me: updating cache $cache_file" >&6;}
23853      if test ! -f "$cache_file" || test -h "$cache_file"; then
23854	cat confcache >"$cache_file"
23855      else
23856        case $cache_file in #(
23857        */* | ?:*)
23858	  mv -f confcache "$cache_file"$$ &&
23859	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23860        *)
23861	  mv -f confcache "$cache_file" ;;
23862	esac
23863      fi
23864    fi
23865  else
23866    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23867$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23868  fi
23869fi
23870rm -f confcache
23871
23872test "x$prefix" = xNONE && prefix=$ac_default_prefix
23873# Let make expand exec_prefix.
23874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23875
23876DEFS=-DHAVE_CONFIG_H
23877
23878ac_libobjs=
23879ac_ltlibobjs=
23880U=
23881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23882  # 1. Remove the extension, and $U if already installed.
23883  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23884  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23885  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23886  #    will be set to the directory where LIBOBJS objects are built.
23887  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23888  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23889done
23890LIBOBJS=$ac_libobjs
23891
23892LTLIBOBJS=$ac_ltlibobjs
23893
23894
23895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23896$as_echo_n "checking that generated files are newer than configure... " >&6; }
23897   if test -n "$am_sleep_pid"; then
23898     # Hide warnings about reused PIDs.
23899     wait $am_sleep_pid 2>/dev/null
23900   fi
23901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23902$as_echo "done" >&6; }
23903 if test -n "$EXEEXT"; then
23904  am__EXEEXT_TRUE=
23905  am__EXEEXT_FALSE='#'
23906else
23907  am__EXEEXT_TRUE='#'
23908  am__EXEEXT_FALSE=
23909fi
23910
23911if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23912  as_fn_error $? "conditional \"AMDEP\" was never defined.
23913Usually this means the macro was only invoked conditionally." "$LINENO" 5
23914fi
23915if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23916  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23917Usually this means the macro was only invoked conditionally." "$LINENO" 5
23918fi
23919if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23920  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23921Usually this means the macro was only invoked conditionally." "$LINENO" 5
23922fi
23923if test -z "${ENABLE_DRIVERLESS_TRUE}" && test -z "${ENABLE_DRIVERLESS_FALSE}"; then
23924  as_fn_error $? "conditional \"ENABLE_DRIVERLESS\" was never defined.
23925Usually this means the macro was only invoked conditionally." "$LINENO" 5
23926fi
23927if test -z "${ENABLE_URFTOPDF_TRUE}" && test -z "${ENABLE_URFTOPDF_FALSE}"; then
23928  as_fn_error $? "conditional \"ENABLE_URFTOPDF\" was never defined.
23929Usually this means the macro was only invoked conditionally." "$LINENO" 5
23930fi
23931if test -z "${ENABLE_IMAGEFILTERS_TRUE}" && test -z "${ENABLE_IMAGEFILTERS_FALSE}"; then
23932  as_fn_error $? "conditional \"ENABLE_IMAGEFILTERS\" was never defined.
23933Usually this means the macro was only invoked conditionally." "$LINENO" 5
23934fi
23935if test -z "${ENABLE_AVAHI_TRUE}" && test -z "${ENABLE_AVAHI_FALSE}"; then
23936  as_fn_error $? "conditional \"ENABLE_AVAHI\" was never defined.
23937Usually this means the macro was only invoked conditionally." "$LINENO" 5
23938fi
23939if test -z "${RCLINKS_TRUE}" && test -z "${RCLINKS_FALSE}"; then
23940  as_fn_error $? "conditional \"RCLINKS\" was never defined.
23941Usually this means the macro was only invoked conditionally." "$LINENO" 5
23942fi
23943if test -z "${ENABLE_POPPLER_TRUE}" && test -z "${ENABLE_POPPLER_FALSE}"; then
23944  as_fn_error $? "conditional \"ENABLE_POPPLER\" was never defined.
23945Usually this means the macro was only invoked conditionally." "$LINENO" 5
23946fi
23947if test -z "${BUILD_DBUS_TRUE}" && test -z "${BUILD_DBUS_FALSE}"; then
23948  as_fn_error $? "conditional \"BUILD_DBUS\" was never defined.
23949Usually this means the macro was only invoked conditionally." "$LINENO" 5
23950fi
23951if test -z "${ENABLE_GHOSTSCRIPT_TRUE}" && test -z "${ENABLE_GHOSTSCRIPT_FALSE}"; then
23952  as_fn_error $? "conditional \"ENABLE_GHOSTSCRIPT\" was never defined.
23953Usually this means the macro was only invoked conditionally." "$LINENO" 5
23954fi
23955if test -z "${ENABLE_MUTOOL_TRUE}" && test -z "${ENABLE_MUTOOL_FALSE}"; then
23956  as_fn_error $? "conditional \"ENABLE_MUTOOL\" was never defined.
23957Usually this means the macro was only invoked conditionally." "$LINENO" 5
23958fi
23959if test -z "${ENABLE_FOOMATIC_TRUE}" && test -z "${ENABLE_FOOMATIC_FALSE}"; then
23960  as_fn_error $? "conditional \"ENABLE_FOOMATIC\" was never defined.
23961Usually this means the macro was only invoked conditionally." "$LINENO" 5
23962fi
23963if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
23964  as_fn_error $? "conditional \"WITH_PHP\" was never defined.
23965Usually this means the macro was only invoked conditionally." "$LINENO" 5
23966fi
23967if test -z "${ENABLE_BRAILLE_TRUE}" && test -z "${ENABLE_BRAILLE_FALSE}"; then
23968  as_fn_error $? "conditional \"ENABLE_BRAILLE\" was never defined.
23969Usually this means the macro was only invoked conditionally." "$LINENO" 5
23970fi
23971
23972: "${CONFIG_STATUS=./config.status}"
23973ac_write_fail=0
23974ac_clean_files_save=$ac_clean_files
23975ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23976{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23977$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23978as_write_fail=0
23979cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23980#! $SHELL
23981# Generated by $as_me.
23982# Run this file to recreate the current configuration.
23983# Compiler output produced by configure, useful for debugging
23984# configure, is in config.log if it exists.
23985
23986debug=false
23987ac_cs_recheck=false
23988ac_cs_silent=false
23989
23990SHELL=\${CONFIG_SHELL-$SHELL}
23991export SHELL
23992_ASEOF
23993cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23994## -------------------- ##
23995## M4sh Initialization. ##
23996## -------------------- ##
23997
23998# Be more Bourne compatible
23999DUALCASE=1; export DUALCASE # for MKS sh
24000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24001  emulate sh
24002  NULLCMD=:
24003  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24004  # is contrary to our usage.  Disable this feature.
24005  alias -g '${1+"$@"}'='"$@"'
24006  setopt NO_GLOB_SUBST
24007else
24008  case `(set -o) 2>/dev/null` in #(
24009  *posix*) :
24010    set -o posix ;; #(
24011  *) :
24012     ;;
24013esac
24014fi
24015
24016
24017as_nl='
24018'
24019export as_nl
24020# Printing a long string crashes Solaris 7 /usr/bin/printf.
24021as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24022as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24023as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24024# Prefer a ksh shell builtin over an external printf program on Solaris,
24025# but without wasting forks for bash or zsh.
24026if test -z "$BASH_VERSION$ZSH_VERSION" \
24027    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24028  as_echo='print -r --'
24029  as_echo_n='print -rn --'
24030elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24031  as_echo='printf %s\n'
24032  as_echo_n='printf %s'
24033else
24034  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24035    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24036    as_echo_n='/usr/ucb/echo -n'
24037  else
24038    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24039    as_echo_n_body='eval
24040      arg=$1;
24041      case $arg in #(
24042      *"$as_nl"*)
24043	expr "X$arg" : "X\\(.*\\)$as_nl";
24044	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24045      esac;
24046      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24047    '
24048    export as_echo_n_body
24049    as_echo_n='sh -c $as_echo_n_body as_echo'
24050  fi
24051  export as_echo_body
24052  as_echo='sh -c $as_echo_body as_echo'
24053fi
24054
24055# The user is always right.
24056if test "${PATH_SEPARATOR+set}" != set; then
24057  PATH_SEPARATOR=:
24058  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24059    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24060      PATH_SEPARATOR=';'
24061  }
24062fi
24063
24064
24065# IFS
24066# We need space, tab and new line, in precisely that order.  Quoting is
24067# there to prevent editors from complaining about space-tab.
24068# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24069# splitting by setting IFS to empty value.)
24070IFS=" ""	$as_nl"
24071
24072# Find who we are.  Look in the path if we contain no directory separator.
24073as_myself=
24074case $0 in #((
24075  *[\\/]* ) as_myself=$0 ;;
24076  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24077for as_dir in $PATH
24078do
24079  IFS=$as_save_IFS
24080  test -z "$as_dir" && as_dir=.
24081    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24082  done
24083IFS=$as_save_IFS
24084
24085     ;;
24086esac
24087# We did not find ourselves, most probably we were run as `sh COMMAND'
24088# in which case we are not to be found in the path.
24089if test "x$as_myself" = x; then
24090  as_myself=$0
24091fi
24092if test ! -f "$as_myself"; then
24093  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24094  exit 1
24095fi
24096
24097# Unset variables that we do not need and which cause bugs (e.g. in
24098# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24099# suppresses any "Segmentation fault" message there.  '((' could
24100# trigger a bug in pdksh 5.2.14.
24101for as_var in BASH_ENV ENV MAIL MAILPATH
24102do eval test x\${$as_var+set} = xset \
24103  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24104done
24105PS1='$ '
24106PS2='> '
24107PS4='+ '
24108
24109# NLS nuisances.
24110LC_ALL=C
24111export LC_ALL
24112LANGUAGE=C
24113export LANGUAGE
24114
24115# CDPATH.
24116(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24117
24118
24119# as_fn_error STATUS ERROR [LINENO LOG_FD]
24120# ----------------------------------------
24121# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24122# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24123# script with STATUS, using 1 if that was 0.
24124as_fn_error ()
24125{
24126  as_status=$1; test $as_status -eq 0 && as_status=1
24127  if test "$4"; then
24128    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24129    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24130  fi
24131  $as_echo "$as_me: error: $2" >&2
24132  as_fn_exit $as_status
24133} # as_fn_error
24134
24135
24136# as_fn_set_status STATUS
24137# -----------------------
24138# Set $? to STATUS, without forking.
24139as_fn_set_status ()
24140{
24141  return $1
24142} # as_fn_set_status
24143
24144# as_fn_exit STATUS
24145# -----------------
24146# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24147as_fn_exit ()
24148{
24149  set +e
24150  as_fn_set_status $1
24151  exit $1
24152} # as_fn_exit
24153
24154# as_fn_unset VAR
24155# ---------------
24156# Portably unset VAR.
24157as_fn_unset ()
24158{
24159  { eval $1=; unset $1;}
24160}
24161as_unset=as_fn_unset
24162# as_fn_append VAR VALUE
24163# ----------------------
24164# Append the text in VALUE to the end of the definition contained in VAR. Take
24165# advantage of any shell optimizations that allow amortized linear growth over
24166# repeated appends, instead of the typical quadratic growth present in naive
24167# implementations.
24168if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24169  eval 'as_fn_append ()
24170  {
24171    eval $1+=\$2
24172  }'
24173else
24174  as_fn_append ()
24175  {
24176    eval $1=\$$1\$2
24177  }
24178fi # as_fn_append
24179
24180# as_fn_arith ARG...
24181# ------------------
24182# Perform arithmetic evaluation on the ARGs, and store the result in the
24183# global $as_val. Take advantage of shells that can avoid forks. The arguments
24184# must be portable across $(()) and expr.
24185if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24186  eval 'as_fn_arith ()
24187  {
24188    as_val=$(( $* ))
24189  }'
24190else
24191  as_fn_arith ()
24192  {
24193    as_val=`expr "$@" || test $? -eq 1`
24194  }
24195fi # as_fn_arith
24196
24197
24198if expr a : '\(a\)' >/dev/null 2>&1 &&
24199   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24200  as_expr=expr
24201else
24202  as_expr=false
24203fi
24204
24205if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24206  as_basename=basename
24207else
24208  as_basename=false
24209fi
24210
24211if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24212  as_dirname=dirname
24213else
24214  as_dirname=false
24215fi
24216
24217as_me=`$as_basename -- "$0" ||
24218$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24219	 X"$0" : 'X\(//\)$' \| \
24220	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24221$as_echo X/"$0" |
24222    sed '/^.*\/\([^/][^/]*\)\/*$/{
24223	    s//\1/
24224	    q
24225	  }
24226	  /^X\/\(\/\/\)$/{
24227	    s//\1/
24228	    q
24229	  }
24230	  /^X\/\(\/\).*/{
24231	    s//\1/
24232	    q
24233	  }
24234	  s/.*/./; q'`
24235
24236# Avoid depending upon Character Ranges.
24237as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24238as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24239as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24240as_cr_digits='0123456789'
24241as_cr_alnum=$as_cr_Letters$as_cr_digits
24242
24243ECHO_C= ECHO_N= ECHO_T=
24244case `echo -n x` in #(((((
24245-n*)
24246  case `echo 'xy\c'` in
24247  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24248  xy)  ECHO_C='\c';;
24249  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24250       ECHO_T='	';;
24251  esac;;
24252*)
24253  ECHO_N='-n';;
24254esac
24255
24256rm -f conf$$ conf$$.exe conf$$.file
24257if test -d conf$$.dir; then
24258  rm -f conf$$.dir/conf$$.file
24259else
24260  rm -f conf$$.dir
24261  mkdir conf$$.dir 2>/dev/null
24262fi
24263if (echo >conf$$.file) 2>/dev/null; then
24264  if ln -s conf$$.file conf$$ 2>/dev/null; then
24265    as_ln_s='ln -s'
24266    # ... but there are two gotchas:
24267    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24268    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24269    # In both cases, we have to default to `cp -pR'.
24270    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24271      as_ln_s='cp -pR'
24272  elif ln conf$$.file conf$$ 2>/dev/null; then
24273    as_ln_s=ln
24274  else
24275    as_ln_s='cp -pR'
24276  fi
24277else
24278  as_ln_s='cp -pR'
24279fi
24280rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24281rmdir conf$$.dir 2>/dev/null
24282
24283
24284# as_fn_mkdir_p
24285# -------------
24286# Create "$as_dir" as a directory, including parents if necessary.
24287as_fn_mkdir_p ()
24288{
24289
24290  case $as_dir in #(
24291  -*) as_dir=./$as_dir;;
24292  esac
24293  test -d "$as_dir" || eval $as_mkdir_p || {
24294    as_dirs=
24295    while :; do
24296      case $as_dir in #(
24297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24298      *) as_qdir=$as_dir;;
24299      esac
24300      as_dirs="'$as_qdir' $as_dirs"
24301      as_dir=`$as_dirname -- "$as_dir" ||
24302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24303	 X"$as_dir" : 'X\(//\)[^/]' \| \
24304	 X"$as_dir" : 'X\(//\)$' \| \
24305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24306$as_echo X"$as_dir" |
24307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24308	    s//\1/
24309	    q
24310	  }
24311	  /^X\(\/\/\)[^/].*/{
24312	    s//\1/
24313	    q
24314	  }
24315	  /^X\(\/\/\)$/{
24316	    s//\1/
24317	    q
24318	  }
24319	  /^X\(\/\).*/{
24320	    s//\1/
24321	    q
24322	  }
24323	  s/.*/./; q'`
24324      test -d "$as_dir" && break
24325    done
24326    test -z "$as_dirs" || eval "mkdir $as_dirs"
24327  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24328
24329
24330} # as_fn_mkdir_p
24331if mkdir -p . 2>/dev/null; then
24332  as_mkdir_p='mkdir -p "$as_dir"'
24333else
24334  test -d ./-p && rmdir ./-p
24335  as_mkdir_p=false
24336fi
24337
24338
24339# as_fn_executable_p FILE
24340# -----------------------
24341# Test if FILE is an executable regular file.
24342as_fn_executable_p ()
24343{
24344  test -f "$1" && test -x "$1"
24345} # as_fn_executable_p
24346as_test_x='test -x'
24347as_executable_p=as_fn_executable_p
24348
24349# Sed expression to map a string onto a valid CPP name.
24350as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24351
24352# Sed expression to map a string onto a valid variable name.
24353as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24354
24355
24356exec 6>&1
24357## ----------------------------------- ##
24358## Main body of $CONFIG_STATUS script. ##
24359## ----------------------------------- ##
24360_ASEOF
24361test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24362
24363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24364# Save the log message, to keep $0 and so on meaningful, and to
24365# report actual input values of CONFIG_FILES etc. instead of their
24366# values after options handling.
24367ac_log="
24368This file was extended by cups-filters $as_me 1.28.10, which was
24369generated by GNU Autoconf 2.69.  Invocation command line was
24370
24371  CONFIG_FILES    = $CONFIG_FILES
24372  CONFIG_HEADERS  = $CONFIG_HEADERS
24373  CONFIG_LINKS    = $CONFIG_LINKS
24374  CONFIG_COMMANDS = $CONFIG_COMMANDS
24375  $ $0 $@
24376
24377on `(hostname || uname -n) 2>/dev/null | sed 1q`
24378"
24379
24380_ACEOF
24381
24382case $ac_config_files in *"
24383"*) set x $ac_config_files; shift; ac_config_files=$*;;
24384esac
24385
24386case $ac_config_headers in *"
24387"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24388esac
24389
24390
24391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24392# Files that config.status was made for.
24393config_files="$ac_config_files"
24394config_headers="$ac_config_headers"
24395config_commands="$ac_config_commands"
24396
24397_ACEOF
24398
24399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24400ac_cs_usage="\
24401\`$as_me' instantiates files and other configuration actions
24402from templates according to the current configuration.  Unless the files
24403and actions are specified as TAGs, all are instantiated by default.
24404
24405Usage: $0 [OPTION]... [TAG]...
24406
24407  -h, --help       print this help, then exit
24408  -V, --version    print version number and configuration settings, then exit
24409      --config     print configuration, then exit
24410  -q, --quiet, --silent
24411                   do not print progress messages
24412  -d, --debug      don't remove temporary files
24413      --recheck    update $as_me by reconfiguring in the same conditions
24414      --file=FILE[:TEMPLATE]
24415                   instantiate the configuration file FILE
24416      --header=FILE[:TEMPLATE]
24417                   instantiate the configuration header FILE
24418
24419Configuration files:
24420$config_files
24421
24422Configuration headers:
24423$config_headers
24424
24425Configuration commands:
24426$config_commands
24427
24428Report bugs to the package provider."
24429
24430_ACEOF
24431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24432ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24433ac_cs_version="\\
24434cups-filters config.status 1.28.10
24435configured by $0, generated by GNU Autoconf 2.69,
24436  with options \\"\$ac_cs_config\\"
24437
24438Copyright (C) 2012 Free Software Foundation, Inc.
24439This config.status script is free software; the Free Software Foundation
24440gives unlimited permission to copy, distribute and modify it."
24441
24442ac_pwd='$ac_pwd'
24443srcdir='$srcdir'
24444INSTALL='$INSTALL'
24445MKDIR_P='$MKDIR_P'
24446AWK='$AWK'
24447test -n "\$AWK" || AWK=awk
24448_ACEOF
24449
24450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24451# The default lists apply if the user does not specify any file.
24452ac_need_defaults=:
24453while test $# != 0
24454do
24455  case $1 in
24456  --*=?*)
24457    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24458    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24459    ac_shift=:
24460    ;;
24461  --*=)
24462    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24463    ac_optarg=
24464    ac_shift=:
24465    ;;
24466  *)
24467    ac_option=$1
24468    ac_optarg=$2
24469    ac_shift=shift
24470    ;;
24471  esac
24472
24473  case $ac_option in
24474  # Handling of the options.
24475  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24476    ac_cs_recheck=: ;;
24477  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24478    $as_echo "$ac_cs_version"; exit ;;
24479  --config | --confi | --conf | --con | --co | --c )
24480    $as_echo "$ac_cs_config"; exit ;;
24481  --debug | --debu | --deb | --de | --d | -d )
24482    debug=: ;;
24483  --file | --fil | --fi | --f )
24484    $ac_shift
24485    case $ac_optarg in
24486    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24487    '') as_fn_error $? "missing file argument" ;;
24488    esac
24489    as_fn_append CONFIG_FILES " '$ac_optarg'"
24490    ac_need_defaults=false;;
24491  --header | --heade | --head | --hea )
24492    $ac_shift
24493    case $ac_optarg in
24494    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24495    esac
24496    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24497    ac_need_defaults=false;;
24498  --he | --h)
24499    # Conflict between --help and --header
24500    as_fn_error $? "ambiguous option: \`$1'
24501Try \`$0 --help' for more information.";;
24502  --help | --hel | -h )
24503    $as_echo "$ac_cs_usage"; exit ;;
24504  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24505  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24506    ac_cs_silent=: ;;
24507
24508  # This is an error.
24509  -*) as_fn_error $? "unrecognized option: \`$1'
24510Try \`$0 --help' for more information." ;;
24511
24512  *) as_fn_append ac_config_targets " $1"
24513     ac_need_defaults=false ;;
24514
24515  esac
24516  shift
24517done
24518
24519ac_configure_extra_args=
24520
24521if $ac_cs_silent; then
24522  exec 6>/dev/null
24523  ac_configure_extra_args="$ac_configure_extra_args --silent"
24524fi
24525
24526_ACEOF
24527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24528if \$ac_cs_recheck; then
24529  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24530  shift
24531  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24532  CONFIG_SHELL='$SHELL'
24533  export CONFIG_SHELL
24534  exec "\$@"
24535fi
24536
24537_ACEOF
24538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24539exec 5>>config.log
24540{
24541  echo
24542  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24543## Running $as_me. ##
24544_ASBOX
24545  $as_echo "$ac_log"
24546} >&5
24547
24548_ACEOF
24549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24550#
24551# INIT-COMMANDS
24552#
24553AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24554
24555
24556# The HP-UX ksh and POSIX shell print the target directory to stdout
24557# if CDPATH is set.
24558(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24559
24560sed_quote_subst='$sed_quote_subst'
24561double_quote_subst='$double_quote_subst'
24562delay_variable_subst='$delay_variable_subst'
24563macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24564macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24565enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24566enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24567pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24568enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24569shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24570SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24571ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24572PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24573host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24574host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24575host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24576build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24577build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24578build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24579SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24580Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24581GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24582EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24583FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24584LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24585NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24586LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24587max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24588ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24589exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24590lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24591lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24592lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24593lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24594lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24595reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24596reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24597OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24598deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24599file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24600file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24601want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24602DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24603sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24604AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24605AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24606archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24607STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24608RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24609old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24610old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24611old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24612lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24613CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24614CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24615compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24616GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24617lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24618lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24619lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24620lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24621lt_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"`'
24622lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24623nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24624lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24625lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24626objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24627MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24628lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24629lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24630lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24631lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24632lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24633need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24634MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24635DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24636NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24637LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24638OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24639OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24640libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24641shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24642extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24643archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24644enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24645export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24646whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24647compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24648old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24649old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24650archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24651archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24652module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24653module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24654with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24655allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24656no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24657hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24658hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24659hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24660hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24661hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24662hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24663hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24664inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24665link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24666always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24667export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24668exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24669include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24670prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24671postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24672file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24673variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24674need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24675need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24676version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24677runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24678shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24679shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24680libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24681library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24682soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24683install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24684postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24685postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24686finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24687finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24688hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24689sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24690configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24691configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24692hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24693enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24694enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24695enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24696old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24697striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24698compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24699predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24700postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24701predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24702postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24703compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24704LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24705reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24706reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24707old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24708compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24709GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24710lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24711lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24712lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24713lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24714lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24715archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24716enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24717export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24718whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24719compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24720old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24721old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24722archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24723archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24724module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24725module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24726with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24727allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24728no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24729hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24730hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24731hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24732hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24733hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24734hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24735hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24736inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24737link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24738always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24739export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24740exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24741include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24742prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24743postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24744file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24745hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24746compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24747predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24748postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24749predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24750postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24751compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24752
24753LTCC='$LTCC'
24754LTCFLAGS='$LTCFLAGS'
24755compiler='$compiler_DEFAULT'
24756
24757# A function that is used when there is no print builtin or printf.
24758func_fallback_echo ()
24759{
24760  eval 'cat <<_LTECHO_EOF
24761\$1
24762_LTECHO_EOF'
24763}
24764
24765# Quote evaled strings.
24766for var in SHELL \
24767ECHO \
24768PATH_SEPARATOR \
24769SED \
24770GREP \
24771EGREP \
24772FGREP \
24773LD \
24774NM \
24775LN_S \
24776lt_SP2NL \
24777lt_NL2SP \
24778reload_flag \
24779OBJDUMP \
24780deplibs_check_method \
24781file_magic_cmd \
24782file_magic_glob \
24783want_nocaseglob \
24784DLLTOOL \
24785sharedlib_from_linklib_cmd \
24786AR \
24787AR_FLAGS \
24788archiver_list_spec \
24789STRIP \
24790RANLIB \
24791CC \
24792CFLAGS \
24793compiler \
24794lt_cv_sys_global_symbol_pipe \
24795lt_cv_sys_global_symbol_to_cdecl \
24796lt_cv_sys_global_symbol_to_import \
24797lt_cv_sys_global_symbol_to_c_name_address \
24798lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24799lt_cv_nm_interface \
24800nm_file_list_spec \
24801lt_cv_truncate_bin \
24802lt_prog_compiler_no_builtin_flag \
24803lt_prog_compiler_pic \
24804lt_prog_compiler_wl \
24805lt_prog_compiler_static \
24806lt_cv_prog_compiler_c_o \
24807need_locks \
24808MANIFEST_TOOL \
24809DSYMUTIL \
24810NMEDIT \
24811LIPO \
24812OTOOL \
24813OTOOL64 \
24814shrext_cmds \
24815export_dynamic_flag_spec \
24816whole_archive_flag_spec \
24817compiler_needs_object \
24818with_gnu_ld \
24819allow_undefined_flag \
24820no_undefined_flag \
24821hardcode_libdir_flag_spec \
24822hardcode_libdir_separator \
24823exclude_expsyms \
24824include_expsyms \
24825file_list_spec \
24826variables_saved_for_relink \
24827libname_spec \
24828library_names_spec \
24829soname_spec \
24830install_override_mode \
24831finish_eval \
24832old_striplib \
24833striplib \
24834compiler_lib_search_dirs \
24835predep_objects \
24836postdep_objects \
24837predeps \
24838postdeps \
24839compiler_lib_search_path \
24840LD_CXX \
24841reload_flag_CXX \
24842compiler_CXX \
24843lt_prog_compiler_no_builtin_flag_CXX \
24844lt_prog_compiler_pic_CXX \
24845lt_prog_compiler_wl_CXX \
24846lt_prog_compiler_static_CXX \
24847lt_cv_prog_compiler_c_o_CXX \
24848export_dynamic_flag_spec_CXX \
24849whole_archive_flag_spec_CXX \
24850compiler_needs_object_CXX \
24851with_gnu_ld_CXX \
24852allow_undefined_flag_CXX \
24853no_undefined_flag_CXX \
24854hardcode_libdir_flag_spec_CXX \
24855hardcode_libdir_separator_CXX \
24856exclude_expsyms_CXX \
24857include_expsyms_CXX \
24858file_list_spec_CXX \
24859compiler_lib_search_dirs_CXX \
24860predep_objects_CXX \
24861postdep_objects_CXX \
24862predeps_CXX \
24863postdeps_CXX \
24864compiler_lib_search_path_CXX; do
24865    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24866    *[\\\\\\\`\\"\\\$]*)
24867      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24868      ;;
24869    *)
24870      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24871      ;;
24872    esac
24873done
24874
24875# Double-quote double-evaled strings.
24876for var in reload_cmds \
24877old_postinstall_cmds \
24878old_postuninstall_cmds \
24879old_archive_cmds \
24880extract_expsyms_cmds \
24881old_archive_from_new_cmds \
24882old_archive_from_expsyms_cmds \
24883archive_cmds \
24884archive_expsym_cmds \
24885module_cmds \
24886module_expsym_cmds \
24887export_symbols_cmds \
24888prelink_cmds \
24889postlink_cmds \
24890postinstall_cmds \
24891postuninstall_cmds \
24892finish_cmds \
24893sys_lib_search_path_spec \
24894configure_time_dlsearch_path \
24895configure_time_lt_sys_library_path \
24896reload_cmds_CXX \
24897old_archive_cmds_CXX \
24898old_archive_from_new_cmds_CXX \
24899old_archive_from_expsyms_cmds_CXX \
24900archive_cmds_CXX \
24901archive_expsym_cmds_CXX \
24902module_cmds_CXX \
24903module_expsym_cmds_CXX \
24904export_symbols_cmds_CXX \
24905prelink_cmds_CXX \
24906postlink_cmds_CXX; do
24907    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24908    *[\\\\\\\`\\"\\\$]*)
24909      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24910      ;;
24911    *)
24912      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24913      ;;
24914    esac
24915done
24916
24917ac_aux_dir='$ac_aux_dir'
24918
24919# See if we are running on zsh, and set the options that allow our
24920# commands through without removal of \ escapes INIT.
24921if test -n "\${ZSH_VERSION+set}"; then
24922   setopt NO_GLOB_SUBST
24923fi
24924
24925
24926    PACKAGE='$PACKAGE'
24927    VERSION='$VERSION'
24928    RM='$RM'
24929    ofile='$ofile'
24930
24931
24932
24933
24934
24935# Capture the value of obsolete ALL_LINGUAS because we need it to compute
24936    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24937    # from automake < 1.5.
24938    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24939    # Capture the value of LINGUAS because we need it to compute CATALOGS.
24940    LINGUAS="${LINGUAS-%UNSET%}"
24941
24942
24943_ACEOF
24944
24945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24946
24947# Handling of arguments.
24948for ac_config_target in $ac_config_targets
24949do
24950  case $ac_config_target in
24951    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24952    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24953    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24954    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24955    "libcupsfilters.pc") CONFIG_FILES="$CONFIG_FILES libcupsfilters.pc" ;;
24956    "libfontembed.pc") CONFIG_FILES="$CONFIG_FILES libfontembed.pc" ;;
24957    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24958    "utils/cups-browsed") CONFIG_FILES="$CONFIG_FILES utils/cups-browsed" ;;
24959    "utils/cups-browsed.conf") CONFIG_FILES="$CONFIG_FILES utils/cups-browsed.conf" ;;
24960    "filter/foomatic-rip/foomatic-rip.1") CONFIG_FILES="$CONFIG_FILES filter/foomatic-rip/foomatic-rip.1" ;;
24961    "filter/braille/drivers/index/indexv4.sh") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/index/indexv4.sh" ;;
24962    "filter/braille/drivers/index/indexv3.sh") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/index/indexv3.sh" ;;
24963    "filter/braille/drivers/index/index.sh") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/index/index.sh" ;;
24964    "filter/braille/drivers/index/textbrftoindexv3") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/index/textbrftoindexv3" ;;
24965    "filter/braille/drivers/index/imageubrltoindexv3") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/index/imageubrltoindexv3" ;;
24966    "filter/braille/drivers/index/imageubrltoindexv4") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/index/imageubrltoindexv4" ;;
24967    "filter/braille/drivers/generic/brftoembosser") CONFIG_FILES="$CONFIG_FILES filter/braille/drivers/generic/brftoembosser" ;;
24968    "filter/braille/filters/cups-braille.sh") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/cups-braille.sh" ;;
24969    "filter/braille/filters/imagetobrf") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/imagetobrf" ;;
24970    "filter/braille/filters/texttobrf") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/texttobrf" ;;
24971    "filter/braille/filters/brftopagedbrf") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/brftopagedbrf" ;;
24972    "filter/braille/filters/vectortopdf") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/vectortopdf" ;;
24973    "filter/braille/filters/vectortobrf") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/vectortobrf" ;;
24974    "filter/braille/filters/musicxmltobrf") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/musicxmltobrf" ;;
24975    "filter/braille/filters/liblouis1.defs.gen") CONFIG_FILES="$CONFIG_FILES filter/braille/filters/liblouis1.defs.gen" ;;
24976    "mime/cupsfilters.convs") CONFIG_FILES="$CONFIG_FILES mime/cupsfilters.convs" ;;
24977    "executable-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS executable-scripts" ;;
24978
24979  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24980  esac
24981done
24982
24983
24984# If the user did not use the arguments to specify the items to instantiate,
24985# then the envvar interface is used.  Set only those that are not.
24986# We use the long form for the default assignment because of an extremely
24987# bizarre bug on SunOS 4.1.3.
24988if $ac_need_defaults; then
24989  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24990  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24991  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24992fi
24993
24994# Have a temporary directory for convenience.  Make it in the build tree
24995# simply because there is no reason against having it here, and in addition,
24996# creating and moving files from /tmp can sometimes cause problems.
24997# Hook for its removal unless debugging.
24998# Note that there is a small window in which the directory will not be cleaned:
24999# after its creation but before its name has been assigned to `$tmp'.
25000$debug ||
25001{
25002  tmp= ac_tmp=
25003  trap 'exit_status=$?
25004  : "${ac_tmp:=$tmp}"
25005  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25006' 0
25007  trap 'as_fn_exit 1' 1 2 13 15
25008}
25009# Create a (secure) tmp directory for tmp files.
25010
25011{
25012  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25013  test -d "$tmp"
25014}  ||
25015{
25016  tmp=./conf$$-$RANDOM
25017  (umask 077 && mkdir "$tmp")
25018} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25019ac_tmp=$tmp
25020
25021# Set up the scripts for CONFIG_FILES section.
25022# No need to generate them if there are no CONFIG_FILES.
25023# This happens for instance with `./config.status config.h'.
25024if test -n "$CONFIG_FILES"; then
25025
25026
25027ac_cr=`echo X | tr X '\015'`
25028# On cygwin, bash can eat \r inside `` if the user requested igncr.
25029# But we know of no other shell where ac_cr would be empty at this
25030# point, so we can use a bashism as a fallback.
25031if test "x$ac_cr" = x; then
25032  eval ac_cr=\$\'\\r\'
25033fi
25034ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25035if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25036  ac_cs_awk_cr='\\r'
25037else
25038  ac_cs_awk_cr=$ac_cr
25039fi
25040
25041echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25042_ACEOF
25043
25044
25045{
25046  echo "cat >conf$$subs.awk <<_ACEOF" &&
25047  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25048  echo "_ACEOF"
25049} >conf$$subs.sh ||
25050  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25051ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25052ac_delim='%!_!# '
25053for ac_last_try in false false false false false :; do
25054  . ./conf$$subs.sh ||
25055    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25056
25057  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25058  if test $ac_delim_n = $ac_delim_num; then
25059    break
25060  elif $ac_last_try; then
25061    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25062  else
25063    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25064  fi
25065done
25066rm -f conf$$subs.sh
25067
25068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25069cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25070_ACEOF
25071sed -n '
25072h
25073s/^/S["/; s/!.*/"]=/
25074p
25075g
25076s/^[^!]*!//
25077:repl
25078t repl
25079s/'"$ac_delim"'$//
25080t delim
25081:nl
25082h
25083s/\(.\{148\}\)..*/\1/
25084t more1
25085s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25086p
25087n
25088b repl
25089:more1
25090s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25091p
25092g
25093s/.\{148\}//
25094t nl
25095:delim
25096h
25097s/\(.\{148\}\)..*/\1/
25098t more2
25099s/["\\]/\\&/g; s/^/"/; s/$/"/
25100p
25101b
25102:more2
25103s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25104p
25105g
25106s/.\{148\}//
25107t delim
25108' <conf$$subs.awk | sed '
25109/^[^""]/{
25110  N
25111  s/\n//
25112}
25113' >>$CONFIG_STATUS || ac_write_fail=1
25114rm -f conf$$subs.awk
25115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25116_ACAWK
25117cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25118  for (key in S) S_is_set[key] = 1
25119  FS = ""
25120
25121}
25122{
25123  line = $ 0
25124  nfields = split(line, field, "@")
25125  substed = 0
25126  len = length(field[1])
25127  for (i = 2; i < nfields; i++) {
25128    key = field[i]
25129    keylen = length(key)
25130    if (S_is_set[key]) {
25131      value = S[key]
25132      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25133      len += length(value) + length(field[++i])
25134      substed = 1
25135    } else
25136      len += 1 + keylen
25137  }
25138
25139  print line
25140}
25141
25142_ACAWK
25143_ACEOF
25144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25145if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25146  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25147else
25148  cat
25149fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25150  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25151_ACEOF
25152
25153# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25154# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25155# trailing colons and then remove the whole line if VPATH becomes empty
25156# (actually we leave an empty line to preserve line numbers).
25157if test "x$srcdir" = x.; then
25158  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
25159h
25160s///
25161s/^/:/
25162s/[	 ]*$/:/
25163s/:\$(srcdir):/:/g
25164s/:\${srcdir}:/:/g
25165s/:@srcdir@:/:/g
25166s/^:*//
25167s/:*$//
25168x
25169s/\(=[	 ]*\).*/\1/
25170G
25171s/\n//
25172s/^[^=]*=[	 ]*$//
25173}'
25174fi
25175
25176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25177fi # test -n "$CONFIG_FILES"
25178
25179# Set up the scripts for CONFIG_HEADERS section.
25180# No need to generate them if there are no CONFIG_HEADERS.
25181# This happens for instance with `./config.status Makefile'.
25182if test -n "$CONFIG_HEADERS"; then
25183cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25184BEGIN {
25185_ACEOF
25186
25187# Transform confdefs.h into an awk script `defines.awk', embedded as
25188# here-document in config.status, that substitutes the proper values into
25189# config.h.in to produce config.h.
25190
25191# Create a delimiter string that does not exist in confdefs.h, to ease
25192# handling of long lines.
25193ac_delim='%!_!# '
25194for ac_last_try in false false :; do
25195  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25196  if test -z "$ac_tt"; then
25197    break
25198  elif $ac_last_try; then
25199    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25200  else
25201    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25202  fi
25203done
25204
25205# For the awk script, D is an array of macro values keyed by name,
25206# likewise P contains macro parameters if any.  Preserve backslash
25207# newline sequences.
25208
25209ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25210sed -n '
25211s/.\{148\}/&'"$ac_delim"'/g
25212t rset
25213:rset
25214s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
25215t def
25216d
25217:def
25218s/\\$//
25219t bsnl
25220s/["\\]/\\&/g
25221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25222D["\1"]=" \3"/p
25223s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25224d
25225:bsnl
25226s/["\\]/\\&/g
25227s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25228D["\1"]=" \3\\\\\\n"\\/p
25229t cont
25230s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25231t cont
25232d
25233:cont
25234n
25235s/.\{148\}/&'"$ac_delim"'/g
25236t clear
25237:clear
25238s/\\$//
25239t bsnlc
25240s/["\\]/\\&/g; s/^/"/; s/$/"/p
25241d
25242:bsnlc
25243s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25244b cont
25245' <confdefs.h | sed '
25246s/'"$ac_delim"'/"\\\
25247"/g' >>$CONFIG_STATUS || ac_write_fail=1
25248
25249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25250  for (key in D) D_is_set[key] = 1
25251  FS = ""
25252}
25253/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25254  line = \$ 0
25255  split(line, arg, " ")
25256  if (arg[1] == "#") {
25257    defundef = arg[2]
25258    mac1 = arg[3]
25259  } else {
25260    defundef = substr(arg[1], 2)
25261    mac1 = arg[2]
25262  }
25263  split(mac1, mac2, "(") #)
25264  macro = mac2[1]
25265  prefix = substr(line, 1, index(line, defundef) - 1)
25266  if (D_is_set[macro]) {
25267    # Preserve the white space surrounding the "#".
25268    print prefix "define", macro P[macro] D[macro]
25269    next
25270  } else {
25271    # Replace #undef with comments.  This is necessary, for example,
25272    # in the case of _POSIX_SOURCE, which is predefined and required
25273    # on some systems where configure will not decide to define it.
25274    if (defundef == "undef") {
25275      print "/*", prefix defundef, macro, "*/"
25276      next
25277    }
25278  }
25279}
25280{ print }
25281_ACAWK
25282_ACEOF
25283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25284  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25285fi # test -n "$CONFIG_HEADERS"
25286
25287
25288eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25289shift
25290for ac_tag
25291do
25292  case $ac_tag in
25293  :[FHLC]) ac_mode=$ac_tag; continue;;
25294  esac
25295  case $ac_mode$ac_tag in
25296  :[FHL]*:*);;
25297  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25298  :[FH]-) ac_tag=-:-;;
25299  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25300  esac
25301  ac_save_IFS=$IFS
25302  IFS=:
25303  set x $ac_tag
25304  IFS=$ac_save_IFS
25305  shift
25306  ac_file=$1
25307  shift
25308
25309  case $ac_mode in
25310  :L) ac_source=$1;;
25311  :[FH])
25312    ac_file_inputs=
25313    for ac_f
25314    do
25315      case $ac_f in
25316      -) ac_f="$ac_tmp/stdin";;
25317      *) # Look for the file first in the build tree, then in the source tree
25318	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25319	 # because $ac_f cannot contain `:'.
25320	 test -f "$ac_f" ||
25321	   case $ac_f in
25322	   [\\/$]*) false;;
25323	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25324	   esac ||
25325	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25326      esac
25327      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25328      as_fn_append ac_file_inputs " '$ac_f'"
25329    done
25330
25331    # Let's still pretend it is `configure' which instantiates (i.e., don't
25332    # use $as_me), people would be surprised to read:
25333    #    /* config.h.  Generated by config.status.  */
25334    configure_input='Generated from '`
25335	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25336	`' by configure.'
25337    if test x"$ac_file" != x-; then
25338      configure_input="$ac_file.  $configure_input"
25339      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25340$as_echo "$as_me: creating $ac_file" >&6;}
25341    fi
25342    # Neutralize special characters interpreted by sed in replacement strings.
25343    case $configure_input in #(
25344    *\&* | *\|* | *\\* )
25345       ac_sed_conf_input=`$as_echo "$configure_input" |
25346       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25347    *) ac_sed_conf_input=$configure_input;;
25348    esac
25349
25350    case $ac_tag in
25351    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25352      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25353    esac
25354    ;;
25355  esac
25356
25357  ac_dir=`$as_dirname -- "$ac_file" ||
25358$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25359	 X"$ac_file" : 'X\(//\)[^/]' \| \
25360	 X"$ac_file" : 'X\(//\)$' \| \
25361	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25362$as_echo X"$ac_file" |
25363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25364	    s//\1/
25365	    q
25366	  }
25367	  /^X\(\/\/\)[^/].*/{
25368	    s//\1/
25369	    q
25370	  }
25371	  /^X\(\/\/\)$/{
25372	    s//\1/
25373	    q
25374	  }
25375	  /^X\(\/\).*/{
25376	    s//\1/
25377	    q
25378	  }
25379	  s/.*/./; q'`
25380  as_dir="$ac_dir"; as_fn_mkdir_p
25381  ac_builddir=.
25382
25383case "$ac_dir" in
25384.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25385*)
25386  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25387  # A ".." for each directory in $ac_dir_suffix.
25388  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25389  case $ac_top_builddir_sub in
25390  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25391  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25392  esac ;;
25393esac
25394ac_abs_top_builddir=$ac_pwd
25395ac_abs_builddir=$ac_pwd$ac_dir_suffix
25396# for backward compatibility:
25397ac_top_builddir=$ac_top_build_prefix
25398
25399case $srcdir in
25400  .)  # We are building in place.
25401    ac_srcdir=.
25402    ac_top_srcdir=$ac_top_builddir_sub
25403    ac_abs_top_srcdir=$ac_pwd ;;
25404  [\\/]* | ?:[\\/]* )  # Absolute name.
25405    ac_srcdir=$srcdir$ac_dir_suffix;
25406    ac_top_srcdir=$srcdir
25407    ac_abs_top_srcdir=$srcdir ;;
25408  *) # Relative name.
25409    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25410    ac_top_srcdir=$ac_top_build_prefix$srcdir
25411    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25412esac
25413ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25414
25415
25416  case $ac_mode in
25417  :F)
25418  #
25419  # CONFIG_FILE
25420  #
25421
25422  case $INSTALL in
25423  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25424  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25425  esac
25426  ac_MKDIR_P=$MKDIR_P
25427  case $MKDIR_P in
25428  [\\/$]* | ?:[\\/]* ) ;;
25429  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25430  esac
25431_ACEOF
25432
25433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25434# If the template does not know about datarootdir, expand it.
25435# FIXME: This hack should be removed a few years after 2.60.
25436ac_datarootdir_hack=; ac_datarootdir_seen=
25437ac_sed_dataroot='
25438/datarootdir/ {
25439  p
25440  q
25441}
25442/@datadir@/p
25443/@docdir@/p
25444/@infodir@/p
25445/@localedir@/p
25446/@mandir@/p'
25447case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25448*datarootdir*) ac_datarootdir_seen=yes;;
25449*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25451$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25452_ACEOF
25453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25454  ac_datarootdir_hack='
25455  s&@datadir@&$datadir&g
25456  s&@docdir@&$docdir&g
25457  s&@infodir@&$infodir&g
25458  s&@localedir@&$localedir&g
25459  s&@mandir@&$mandir&g
25460  s&\\\${datarootdir}&$datarootdir&g' ;;
25461esac
25462_ACEOF
25463
25464# Neutralize VPATH when `$srcdir' = `.'.
25465# Shell code in configure.ac might set extrasub.
25466# FIXME: do we really want to maintain this feature?
25467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25468ac_sed_extra="$ac_vpsub
25469$extrasub
25470_ACEOF
25471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25472:t
25473/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25474s|@configure_input@|$ac_sed_conf_input|;t t
25475s&@top_builddir@&$ac_top_builddir_sub&;t t
25476s&@top_build_prefix@&$ac_top_build_prefix&;t t
25477s&@srcdir@&$ac_srcdir&;t t
25478s&@abs_srcdir@&$ac_abs_srcdir&;t t
25479s&@top_srcdir@&$ac_top_srcdir&;t t
25480s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25481s&@builddir@&$ac_builddir&;t t
25482s&@abs_builddir@&$ac_abs_builddir&;t t
25483s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25484s&@INSTALL@&$ac_INSTALL&;t t
25485s&@MKDIR_P@&$ac_MKDIR_P&;t t
25486$ac_datarootdir_hack
25487"
25488eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25489  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25490
25491test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25492  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25493  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25494      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25495  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25496which seems to be undefined.  Please make sure it is defined" >&5
25497$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25498which seems to be undefined.  Please make sure it is defined" >&2;}
25499
25500  rm -f "$ac_tmp/stdin"
25501  case $ac_file in
25502  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25503  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25504  esac \
25505  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25506 ;;
25507  :H)
25508  #
25509  # CONFIG_HEADER
25510  #
25511  if test x"$ac_file" != x-; then
25512    {
25513      $as_echo "/* $configure_input  */" \
25514      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25515    } >"$ac_tmp/config.h" \
25516      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25517    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25518      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25519$as_echo "$as_me: $ac_file is unchanged" >&6;}
25520    else
25521      rm -f "$ac_file"
25522      mv "$ac_tmp/config.h" "$ac_file" \
25523	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25524    fi
25525  else
25526    $as_echo "/* $configure_input  */" \
25527      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25528      || as_fn_error $? "could not create -" "$LINENO" 5
25529  fi
25530# Compute "$ac_file"'s index in $config_headers.
25531_am_arg="$ac_file"
25532_am_stamp_count=1
25533for _am_header in $config_headers :; do
25534  case $_am_header in
25535    $_am_arg | $_am_arg:* )
25536      break ;;
25537    * )
25538      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25539  esac
25540done
25541echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25542$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25543	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25544	 X"$_am_arg" : 'X\(//\)$' \| \
25545	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25546$as_echo X"$_am_arg" |
25547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25548	    s//\1/
25549	    q
25550	  }
25551	  /^X\(\/\/\)[^/].*/{
25552	    s//\1/
25553	    q
25554	  }
25555	  /^X\(\/\/\)$/{
25556	    s//\1/
25557	    q
25558	  }
25559	  /^X\(\/\).*/{
25560	    s//\1/
25561	    q
25562	  }
25563	  s/.*/./; q'`/stamp-h$_am_stamp_count
25564 ;;
25565
25566  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25567$as_echo "$as_me: executing $ac_file commands" >&6;}
25568 ;;
25569  esac
25570
25571
25572  case $ac_file$ac_mode in
25573    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25574  # Older Autoconf quotes --file arguments for eval, but not when files
25575  # are listed without --file.  Let's play safe and only enable the eval
25576  # if we detect the quoting.
25577  # TODO: see whether this extra hack can be removed once we start
25578  # requiring Autoconf 2.70 or later.
25579  case $CONFIG_FILES in #(
25580  *\'*) :
25581    eval set x "$CONFIG_FILES" ;; #(
25582  *) :
25583    set x $CONFIG_FILES ;; #(
25584  *) :
25585     ;;
25586esac
25587  shift
25588  # Used to flag and report bootstrapping failures.
25589  am_rc=0
25590  for am_mf
25591  do
25592    # Strip MF so we end up with the name of the file.
25593    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
25594    # Check whether this is an Automake generated Makefile which includes
25595    # dependency-tracking related rules and includes.
25596    # Grep'ing the whole file directly is not great: AIX grep has a line
25597    # limit of 2048, but all sed's we know have understand at least 4000.
25598    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25599      || continue
25600    am_dirpart=`$as_dirname -- "$am_mf" ||
25601$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25602	 X"$am_mf" : 'X\(//\)[^/]' \| \
25603	 X"$am_mf" : 'X\(//\)$' \| \
25604	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25605$as_echo X"$am_mf" |
25606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25607	    s//\1/
25608	    q
25609	  }
25610	  /^X\(\/\/\)[^/].*/{
25611	    s//\1/
25612	    q
25613	  }
25614	  /^X\(\/\/\)$/{
25615	    s//\1/
25616	    q
25617	  }
25618	  /^X\(\/\).*/{
25619	    s//\1/
25620	    q
25621	  }
25622	  s/.*/./; q'`
25623    am_filepart=`$as_basename -- "$am_mf" ||
25624$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25625	 X"$am_mf" : 'X\(//\)$' \| \
25626	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25627$as_echo X/"$am_mf" |
25628    sed '/^.*\/\([^/][^/]*\)\/*$/{
25629	    s//\1/
25630	    q
25631	  }
25632	  /^X\/\(\/\/\)$/{
25633	    s//\1/
25634	    q
25635	  }
25636	  /^X\/\(\/\).*/{
25637	    s//\1/
25638	    q
25639	  }
25640	  s/.*/./; q'`
25641    { echo "$as_me:$LINENO: cd "$am_dirpart" \
25642      && sed -e '/# am--include-marker/d' "$am_filepart" \
25643        | $MAKE -f - am--depfiles" >&5
25644   (cd "$am_dirpart" \
25645      && sed -e '/# am--include-marker/d' "$am_filepart" \
25646        | $MAKE -f - am--depfiles) >&5 2>&5
25647   ac_status=$?
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); } || am_rc=$?
25650  done
25651  if test $am_rc -ne 0; then
25652    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25654as_fn_error $? "Something went wrong bootstrapping makefile fragments
25655    for automatic dependency tracking.  If GNU make was not used, consider
25656    re-running the configure script with MAKE=\"gmake\" (or whatever is
25657    necessary).  You can also try re-running configure with the
25658    '--disable-dependency-tracking' option to at least be able to build
25659    the package (albeit without support for automatic dependency tracking).
25660See \`config.log' for more details" "$LINENO" 5; }
25661  fi
25662  { am_dirpart=; unset am_dirpart;}
25663  { am_filepart=; unset am_filepart;}
25664  { am_mf=; unset am_mf;}
25665  { am_rc=; unset am_rc;}
25666  rm -f conftest-deps.mk
25667}
25668 ;;
25669    "libtool":C)
25670
25671    # See if we are running on zsh, and set the options that allow our
25672    # commands through without removal of \ escapes.
25673    if test -n "${ZSH_VERSION+set}"; then
25674      setopt NO_GLOB_SUBST
25675    fi
25676
25677    cfgfile=${ofile}T
25678    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25679    $RM "$cfgfile"
25680
25681    cat <<_LT_EOF >> "$cfgfile"
25682#! $SHELL
25683# Generated automatically by $as_me ($PACKAGE) $VERSION
25684# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25685
25686# Provide generalized library-building support services.
25687# Written by Gordon Matzigkeit, 1996
25688
25689# Copyright (C) 2014 Free Software Foundation, Inc.
25690# This is free software; see the source for copying conditions.  There is NO
25691# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25692
25693# GNU Libtool is free software; you can redistribute it and/or modify
25694# it under the terms of the GNU General Public License as published by
25695# the Free Software Foundation; either version 2 of of the License, or
25696# (at your option) any later version.
25697#
25698# As a special exception to the GNU General Public License, if you
25699# distribute this file as part of a program or library that is built
25700# using GNU Libtool, you may include this file under the  same
25701# distribution terms that you use for the rest of that program.
25702#
25703# GNU Libtool is distributed in the hope that it will be useful, but
25704# WITHOUT ANY WARRANTY; without even the implied warranty of
25705# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25706# GNU General Public License for more details.
25707#
25708# You should have received a copy of the GNU General Public License
25709# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25710
25711
25712# The names of the tagged configurations supported by this script.
25713available_tags='CXX '
25714
25715# Configured defaults for sys_lib_dlsearch_path munging.
25716: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25717
25718# ### BEGIN LIBTOOL CONFIG
25719
25720# Which release of libtool.m4 was used?
25721macro_version=$macro_version
25722macro_revision=$macro_revision
25723
25724# Whether or not to build shared libraries.
25725build_libtool_libs=$enable_shared
25726
25727# Whether or not to build static libraries.
25728build_old_libs=$enable_static
25729
25730# What type of objects to build.
25731pic_mode=$pic_mode
25732
25733# Whether or not to optimize for fast installation.
25734fast_install=$enable_fast_install
25735
25736# Shared archive member basename,for filename based shared library versioning on AIX.
25737shared_archive_member_spec=$shared_archive_member_spec
25738
25739# Shell to use when invoking shell scripts.
25740SHELL=$lt_SHELL
25741
25742# An echo program that protects backslashes.
25743ECHO=$lt_ECHO
25744
25745# The PATH separator for the build system.
25746PATH_SEPARATOR=$lt_PATH_SEPARATOR
25747
25748# The host system.
25749host_alias=$host_alias
25750host=$host
25751host_os=$host_os
25752
25753# The build system.
25754build_alias=$build_alias
25755build=$build
25756build_os=$build_os
25757
25758# A sed program that does not truncate output.
25759SED=$lt_SED
25760
25761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25762Xsed="\$SED -e 1s/^X//"
25763
25764# A grep program that handles long lines.
25765GREP=$lt_GREP
25766
25767# An ERE matcher.
25768EGREP=$lt_EGREP
25769
25770# A literal string matcher.
25771FGREP=$lt_FGREP
25772
25773# A BSD- or MS-compatible name lister.
25774NM=$lt_NM
25775
25776# Whether we need soft or hard links.
25777LN_S=$lt_LN_S
25778
25779# What is the maximum length of a command?
25780max_cmd_len=$max_cmd_len
25781
25782# Object file suffix (normally "o").
25783objext=$ac_objext
25784
25785# Executable file suffix (normally "").
25786exeext=$exeext
25787
25788# whether the shell understands "unset".
25789lt_unset=$lt_unset
25790
25791# turn spaces into newlines.
25792SP2NL=$lt_lt_SP2NL
25793
25794# turn newlines into spaces.
25795NL2SP=$lt_lt_NL2SP
25796
25797# convert \$build file names to \$host format.
25798to_host_file_cmd=$lt_cv_to_host_file_cmd
25799
25800# convert \$build files to toolchain format.
25801to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25802
25803# An object symbol dumper.
25804OBJDUMP=$lt_OBJDUMP
25805
25806# Method to check whether dependent libraries are shared objects.
25807deplibs_check_method=$lt_deplibs_check_method
25808
25809# Command to use when deplibs_check_method = "file_magic".
25810file_magic_cmd=$lt_file_magic_cmd
25811
25812# How to find potential files when deplibs_check_method = "file_magic".
25813file_magic_glob=$lt_file_magic_glob
25814
25815# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25816want_nocaseglob=$lt_want_nocaseglob
25817
25818# DLL creation program.
25819DLLTOOL=$lt_DLLTOOL
25820
25821# Command to associate shared and link libraries.
25822sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25823
25824# The archiver.
25825AR=$lt_AR
25826
25827# Flags to create an archive.
25828AR_FLAGS=$lt_AR_FLAGS
25829
25830# How to feed a file listing to the archiver.
25831archiver_list_spec=$lt_archiver_list_spec
25832
25833# A symbol stripping program.
25834STRIP=$lt_STRIP
25835
25836# Commands used to install an old-style archive.
25837RANLIB=$lt_RANLIB
25838old_postinstall_cmds=$lt_old_postinstall_cmds
25839old_postuninstall_cmds=$lt_old_postuninstall_cmds
25840
25841# Whether to use a lock for old archive extraction.
25842lock_old_archive_extraction=$lock_old_archive_extraction
25843
25844# A C compiler.
25845LTCC=$lt_CC
25846
25847# LTCC compiler flags.
25848LTCFLAGS=$lt_CFLAGS
25849
25850# Take the output of nm and produce a listing of raw symbols and C names.
25851global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25852
25853# Transform the output of nm in a proper C declaration.
25854global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25855
25856# Transform the output of nm into a list of symbols to manually relocate.
25857global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25858
25859# Transform the output of nm in a C name address pair.
25860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25861
25862# Transform the output of nm in a C name address pair when lib prefix is needed.
25863global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25864
25865# The name lister interface.
25866nm_interface=$lt_lt_cv_nm_interface
25867
25868# Specify filename containing input files for \$NM.
25869nm_file_list_spec=$lt_nm_file_list_spec
25870
25871# The root where to search for dependent libraries,and where our libraries should be installed.
25872lt_sysroot=$lt_sysroot
25873
25874# Command to truncate a binary pipe.
25875lt_truncate_bin=$lt_lt_cv_truncate_bin
25876
25877# The name of the directory that contains temporary libtool files.
25878objdir=$objdir
25879
25880# Used to examine libraries when file_magic_cmd begins with "file".
25881MAGIC_CMD=$MAGIC_CMD
25882
25883# Must we lock files when doing compilation?
25884need_locks=$lt_need_locks
25885
25886# Manifest tool.
25887MANIFEST_TOOL=$lt_MANIFEST_TOOL
25888
25889# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25890DSYMUTIL=$lt_DSYMUTIL
25891
25892# Tool to change global to local symbols on Mac OS X.
25893NMEDIT=$lt_NMEDIT
25894
25895# Tool to manipulate fat objects and archives on Mac OS X.
25896LIPO=$lt_LIPO
25897
25898# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25899OTOOL=$lt_OTOOL
25900
25901# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25902OTOOL64=$lt_OTOOL64
25903
25904# Old archive suffix (normally "a").
25905libext=$libext
25906
25907# Shared library suffix (normally ".so").
25908shrext_cmds=$lt_shrext_cmds
25909
25910# The commands to extract the exported symbol list from a shared archive.
25911extract_expsyms_cmds=$lt_extract_expsyms_cmds
25912
25913# Variables whose values should be saved in libtool wrapper scripts and
25914# restored at link time.
25915variables_saved_for_relink=$lt_variables_saved_for_relink
25916
25917# Do we need the "lib" prefix for modules?
25918need_lib_prefix=$need_lib_prefix
25919
25920# Do we need a version for libraries?
25921need_version=$need_version
25922
25923# Library versioning type.
25924version_type=$version_type
25925
25926# Shared library runtime path variable.
25927runpath_var=$runpath_var
25928
25929# Shared library path variable.
25930shlibpath_var=$shlibpath_var
25931
25932# Is shlibpath searched before the hard-coded library search path?
25933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25934
25935# Format of library name prefix.
25936libname_spec=$lt_libname_spec
25937
25938# List of archive names.  First name is the real one, the rest are links.
25939# The last name is the one that the linker finds with -lNAME
25940library_names_spec=$lt_library_names_spec
25941
25942# The coded name of the library, if different from the real name.
25943soname_spec=$lt_soname_spec
25944
25945# Permission mode override for installation of shared libraries.
25946install_override_mode=$lt_install_override_mode
25947
25948# Command to use after installation of a shared archive.
25949postinstall_cmds=$lt_postinstall_cmds
25950
25951# Command to use after uninstallation of a shared archive.
25952postuninstall_cmds=$lt_postuninstall_cmds
25953
25954# Commands used to finish a libtool library installation in a directory.
25955finish_cmds=$lt_finish_cmds
25956
25957# As "finish_cmds", except a single script fragment to be evaled but
25958# not shown.
25959finish_eval=$lt_finish_eval
25960
25961# Whether we should hardcode library paths into libraries.
25962hardcode_into_libs=$hardcode_into_libs
25963
25964# Compile-time system search path for libraries.
25965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25966
25967# Detected run-time system search path for libraries.
25968sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25969
25970# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25971configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25972
25973# Whether dlopen is supported.
25974dlopen_support=$enable_dlopen
25975
25976# Whether dlopen of programs is supported.
25977dlopen_self=$enable_dlopen_self
25978
25979# Whether dlopen of statically linked programs is supported.
25980dlopen_self_static=$enable_dlopen_self_static
25981
25982# Commands to strip libraries.
25983old_striplib=$lt_old_striplib
25984striplib=$lt_striplib
25985
25986
25987# The linker used to build libraries.
25988LD=$lt_LD
25989
25990# How to create reloadable object files.
25991reload_flag=$lt_reload_flag
25992reload_cmds=$lt_reload_cmds
25993
25994# Commands used to build an old-style archive.
25995old_archive_cmds=$lt_old_archive_cmds
25996
25997# A language specific compiler.
25998CC=$lt_compiler
25999
26000# Is the compiler the GNU compiler?
26001with_gcc=$GCC
26002
26003# Compiler flag to turn off builtin functions.
26004no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26005
26006# Additional compiler flags for building library objects.
26007pic_flag=$lt_lt_prog_compiler_pic
26008
26009# How to pass a linker flag through the compiler.
26010wl=$lt_lt_prog_compiler_wl
26011
26012# Compiler flag to prevent dynamic linking.
26013link_static_flag=$lt_lt_prog_compiler_static
26014
26015# Does compiler simultaneously support -c and -o options?
26016compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26017
26018# Whether or not to add -lc for building shared libraries.
26019build_libtool_need_lc=$archive_cmds_need_lc
26020
26021# Whether or not to disallow shared libs when runtime libs are static.
26022allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26023
26024# Compiler flag to allow reflexive dlopens.
26025export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26026
26027# Compiler flag to generate shared objects directly from archives.
26028whole_archive_flag_spec=$lt_whole_archive_flag_spec
26029
26030# Whether the compiler copes with passing no objects directly.
26031compiler_needs_object=$lt_compiler_needs_object
26032
26033# Create an old-style archive from a shared archive.
26034old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26035
26036# Create a temporary old-style archive to link instead of a shared archive.
26037old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26038
26039# Commands used to build a shared archive.
26040archive_cmds=$lt_archive_cmds
26041archive_expsym_cmds=$lt_archive_expsym_cmds
26042
26043# Commands used to build a loadable module if different from building
26044# a shared archive.
26045module_cmds=$lt_module_cmds
26046module_expsym_cmds=$lt_module_expsym_cmds
26047
26048# Whether we are building with GNU ld or not.
26049with_gnu_ld=$lt_with_gnu_ld
26050
26051# Flag that allows shared libraries with undefined symbols to be built.
26052allow_undefined_flag=$lt_allow_undefined_flag
26053
26054# Flag that enforces no undefined symbols.
26055no_undefined_flag=$lt_no_undefined_flag
26056
26057# Flag to hardcode \$libdir into a binary during linking.
26058# This must work even if \$libdir does not exist
26059hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26060
26061# Whether we need a single "-rpath" flag with a separated argument.
26062hardcode_libdir_separator=$lt_hardcode_libdir_separator
26063
26064# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26065# DIR into the resulting binary.
26066hardcode_direct=$hardcode_direct
26067
26068# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26069# DIR into the resulting binary and the resulting library dependency is
26070# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26071# library is relocated.
26072hardcode_direct_absolute=$hardcode_direct_absolute
26073
26074# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26075# into the resulting binary.
26076hardcode_minus_L=$hardcode_minus_L
26077
26078# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26079# into the resulting binary.
26080hardcode_shlibpath_var=$hardcode_shlibpath_var
26081
26082# Set to "yes" if building a shared library automatically hardcodes DIR
26083# into the library and all subsequent libraries and executables linked
26084# against it.
26085hardcode_automatic=$hardcode_automatic
26086
26087# Set to yes if linker adds runtime paths of dependent libraries
26088# to runtime path list.
26089inherit_rpath=$inherit_rpath
26090
26091# Whether libtool must link a program against all its dependency libraries.
26092link_all_deplibs=$link_all_deplibs
26093
26094# Set to "yes" if exported symbols are required.
26095always_export_symbols=$always_export_symbols
26096
26097# The commands to list exported symbols.
26098export_symbols_cmds=$lt_export_symbols_cmds
26099
26100# Symbols that should not be listed in the preloaded symbols.
26101exclude_expsyms=$lt_exclude_expsyms
26102
26103# Symbols that must always be exported.
26104include_expsyms=$lt_include_expsyms
26105
26106# Commands necessary for linking programs (against libraries) with templates.
26107prelink_cmds=$lt_prelink_cmds
26108
26109# Commands necessary for finishing linking programs.
26110postlink_cmds=$lt_postlink_cmds
26111
26112# Specify filename containing input files.
26113file_list_spec=$lt_file_list_spec
26114
26115# How to hardcode a shared library path into an executable.
26116hardcode_action=$hardcode_action
26117
26118# The directories searched by this compiler when creating a shared library.
26119compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26120
26121# Dependencies to place before and after the objects being linked to
26122# create a shared library.
26123predep_objects=$lt_predep_objects
26124postdep_objects=$lt_postdep_objects
26125predeps=$lt_predeps
26126postdeps=$lt_postdeps
26127
26128# The library search path used internally by the compiler when linking
26129# a shared library.
26130compiler_lib_search_path=$lt_compiler_lib_search_path
26131
26132# ### END LIBTOOL CONFIG
26133
26134_LT_EOF
26135
26136    cat <<'_LT_EOF' >> "$cfgfile"
26137
26138# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26139
26140# func_munge_path_list VARIABLE PATH
26141# -----------------------------------
26142# VARIABLE is name of variable containing _space_ separated list of
26143# directories to be munged by the contents of PATH, which is string
26144# having a format:
26145# "DIR[:DIR]:"
26146#       string "DIR[ DIR]" will be prepended to VARIABLE
26147# ":DIR[:DIR]"
26148#       string "DIR[ DIR]" will be appended to VARIABLE
26149# "DIRP[:DIRP]::[DIRA:]DIRA"
26150#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26151#       "DIRA[ DIRA]" will be appended to VARIABLE
26152# "DIR[:DIR]"
26153#       VARIABLE will be replaced by "DIR[ DIR]"
26154func_munge_path_list ()
26155{
26156    case x$2 in
26157    x)
26158        ;;
26159    *:)
26160        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26161        ;;
26162    x:*)
26163        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26164        ;;
26165    *::*)
26166        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26167        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26168        ;;
26169    *)
26170        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26171        ;;
26172    esac
26173}
26174
26175
26176# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26177func_cc_basename ()
26178{
26179    for cc_temp in $*""; do
26180      case $cc_temp in
26181        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26182        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26183        \-*) ;;
26184        *) break;;
26185      esac
26186    done
26187    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26188}
26189
26190
26191# ### END FUNCTIONS SHARED WITH CONFIGURE
26192
26193_LT_EOF
26194
26195  case $host_os in
26196  aix3*)
26197    cat <<\_LT_EOF >> "$cfgfile"
26198# AIX sometimes has problems with the GCC collect2 program.  For some
26199# reason, if we set the COLLECT_NAMES environment variable, the problems
26200# vanish in a puff of smoke.
26201if test set != "${COLLECT_NAMES+set}"; then
26202  COLLECT_NAMES=
26203  export COLLECT_NAMES
26204fi
26205_LT_EOF
26206    ;;
26207  esac
26208
26209
26210ltmain=$ac_aux_dir/ltmain.sh
26211
26212
26213  # We use sed instead of cat because bash on DJGPP gets confused if
26214  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26215  # text mode, it properly converts lines to CR/LF.  This bash problem
26216  # is reportedly fixed, but why not run on old versions too?
26217  sed '$q' "$ltmain" >> "$cfgfile" \
26218     || (rm -f "$cfgfile"; exit 1)
26219
26220   mv -f "$cfgfile" "$ofile" ||
26221    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26222  chmod +x "$ofile"
26223
26224
26225    cat <<_LT_EOF >> "$ofile"
26226
26227# ### BEGIN LIBTOOL TAG CONFIG: CXX
26228
26229# The linker used to build libraries.
26230LD=$lt_LD_CXX
26231
26232# How to create reloadable object files.
26233reload_flag=$lt_reload_flag_CXX
26234reload_cmds=$lt_reload_cmds_CXX
26235
26236# Commands used to build an old-style archive.
26237old_archive_cmds=$lt_old_archive_cmds_CXX
26238
26239# A language specific compiler.
26240CC=$lt_compiler_CXX
26241
26242# Is the compiler the GNU compiler?
26243with_gcc=$GCC_CXX
26244
26245# Compiler flag to turn off builtin functions.
26246no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26247
26248# Additional compiler flags for building library objects.
26249pic_flag=$lt_lt_prog_compiler_pic_CXX
26250
26251# How to pass a linker flag through the compiler.
26252wl=$lt_lt_prog_compiler_wl_CXX
26253
26254# Compiler flag to prevent dynamic linking.
26255link_static_flag=$lt_lt_prog_compiler_static_CXX
26256
26257# Does compiler simultaneously support -c and -o options?
26258compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26259
26260# Whether or not to add -lc for building shared libraries.
26261build_libtool_need_lc=$archive_cmds_need_lc_CXX
26262
26263# Whether or not to disallow shared libs when runtime libs are static.
26264allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26265
26266# Compiler flag to allow reflexive dlopens.
26267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26268
26269# Compiler flag to generate shared objects directly from archives.
26270whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26271
26272# Whether the compiler copes with passing no objects directly.
26273compiler_needs_object=$lt_compiler_needs_object_CXX
26274
26275# Create an old-style archive from a shared archive.
26276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26277
26278# Create a temporary old-style archive to link instead of a shared archive.
26279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26280
26281# Commands used to build a shared archive.
26282archive_cmds=$lt_archive_cmds_CXX
26283archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26284
26285# Commands used to build a loadable module if different from building
26286# a shared archive.
26287module_cmds=$lt_module_cmds_CXX
26288module_expsym_cmds=$lt_module_expsym_cmds_CXX
26289
26290# Whether we are building with GNU ld or not.
26291with_gnu_ld=$lt_with_gnu_ld_CXX
26292
26293# Flag that allows shared libraries with undefined symbols to be built.
26294allow_undefined_flag=$lt_allow_undefined_flag_CXX
26295
26296# Flag that enforces no undefined symbols.
26297no_undefined_flag=$lt_no_undefined_flag_CXX
26298
26299# Flag to hardcode \$libdir into a binary during linking.
26300# This must work even if \$libdir does not exist
26301hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26302
26303# Whether we need a single "-rpath" flag with a separated argument.
26304hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26305
26306# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26307# DIR into the resulting binary.
26308hardcode_direct=$hardcode_direct_CXX
26309
26310# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26311# DIR into the resulting binary and the resulting library dependency is
26312# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26313# library is relocated.
26314hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26315
26316# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26317# into the resulting binary.
26318hardcode_minus_L=$hardcode_minus_L_CXX
26319
26320# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26321# into the resulting binary.
26322hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26323
26324# Set to "yes" if building a shared library automatically hardcodes DIR
26325# into the library and all subsequent libraries and executables linked
26326# against it.
26327hardcode_automatic=$hardcode_automatic_CXX
26328
26329# Set to yes if linker adds runtime paths of dependent libraries
26330# to runtime path list.
26331inherit_rpath=$inherit_rpath_CXX
26332
26333# Whether libtool must link a program against all its dependency libraries.
26334link_all_deplibs=$link_all_deplibs_CXX
26335
26336# Set to "yes" if exported symbols are required.
26337always_export_symbols=$always_export_symbols_CXX
26338
26339# The commands to list exported symbols.
26340export_symbols_cmds=$lt_export_symbols_cmds_CXX
26341
26342# Symbols that should not be listed in the preloaded symbols.
26343exclude_expsyms=$lt_exclude_expsyms_CXX
26344
26345# Symbols that must always be exported.
26346include_expsyms=$lt_include_expsyms_CXX
26347
26348# Commands necessary for linking programs (against libraries) with templates.
26349prelink_cmds=$lt_prelink_cmds_CXX
26350
26351# Commands necessary for finishing linking programs.
26352postlink_cmds=$lt_postlink_cmds_CXX
26353
26354# Specify filename containing input files.
26355file_list_spec=$lt_file_list_spec_CXX
26356
26357# How to hardcode a shared library path into an executable.
26358hardcode_action=$hardcode_action_CXX
26359
26360# The directories searched by this compiler when creating a shared library.
26361compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26362
26363# Dependencies to place before and after the objects being linked to
26364# create a shared library.
26365predep_objects=$lt_predep_objects_CXX
26366postdep_objects=$lt_postdep_objects_CXX
26367predeps=$lt_predeps_CXX
26368postdeps=$lt_postdeps_CXX
26369
26370# The library search path used internally by the compiler when linking
26371# a shared library.
26372compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26373
26374# ### END LIBTOOL TAG CONFIG: CXX
26375_LT_EOF
26376
26377 ;;
26378    "po-directories":C)
26379    for ac_file in $CONFIG_FILES; do
26380      # Support "outfile[:infile[:infile...]]"
26381      case "$ac_file" in
26382        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26383      esac
26384      # PO directories have a Makefile.in generated from Makefile.in.in.
26385      case "$ac_file" in */Makefile.in)
26386        # Adjust a relative srcdir.
26387        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
26388        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
26389        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
26390        # In autoconf-2.13 it is called $ac_given_srcdir.
26391        # In autoconf-2.50 it is called $srcdir.
26392        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
26393        case "$ac_given_srcdir" in
26394          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
26395          /*) top_srcdir="$ac_given_srcdir" ;;
26396          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
26397        esac
26398        # Treat a directory as a PO directory if and only if it has a
26399        # POTFILES.in file. This allows packages to have multiple PO
26400        # directories under different names or in different locations.
26401        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
26402          rm -f "$ac_dir/POTFILES"
26403          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
26404          gt_tab=`printf '\t'`
26405          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
26406          POMAKEFILEDEPS="POTFILES.in"
26407          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
26408          # on $ac_dir but don't depend on user-specified configuration
26409          # parameters.
26410          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
26411            # The LINGUAS file contains the set of available languages.
26412            if test -n "$OBSOLETE_ALL_LINGUAS"; then
26413              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
26414            fi
26415            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
26416            # Hide the ALL_LINGUAS assignment from automake < 1.5.
26417            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
26418            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
26419          else
26420            # The set of available languages was given in configure.in.
26421            # Hide the ALL_LINGUAS assignment from automake < 1.5.
26422            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
26423          fi
26424          # Compute POFILES
26425          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
26426          # Compute UPDATEPOFILES
26427          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
26428          # Compute DUMMYPOFILES
26429          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
26430          # Compute GMOFILES
26431          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
26432          case "$ac_given_srcdir" in
26433            .) srcdirpre= ;;
26434            *) srcdirpre='$(srcdir)/' ;;
26435          esac
26436          POFILES=
26437          UPDATEPOFILES=
26438          DUMMYPOFILES=
26439          GMOFILES=
26440          for lang in $ALL_LINGUAS; do
26441            POFILES="$POFILES $srcdirpre$lang.po"
26442            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
26443            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
26444            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
26445          done
26446          # CATALOGS depends on both $ac_dir and the user's LINGUAS
26447          # environment variable.
26448          INST_LINGUAS=
26449          if test -n "$ALL_LINGUAS"; then
26450            for presentlang in $ALL_LINGUAS; do
26451              useit=no
26452              if test "%UNSET%" != "$LINGUAS"; then
26453                desiredlanguages="$LINGUAS"
26454              else
26455                desiredlanguages="$ALL_LINGUAS"
26456              fi
26457              for desiredlang in $desiredlanguages; do
26458                # Use the presentlang catalog if desiredlang is
26459                #   a. equal to presentlang, or
26460                #   b. a variant of presentlang (because in this case,
26461                #      presentlang can be used as a fallback for messages
26462                #      which are not translated in the desiredlang catalog).
26463                case "$desiredlang" in
26464                  "$presentlang"*) useit=yes;;
26465                esac
26466              done
26467              if test $useit = yes; then
26468                INST_LINGUAS="$INST_LINGUAS $presentlang"
26469              fi
26470            done
26471          fi
26472          CATALOGS=
26473          if test -n "$INST_LINGUAS"; then
26474            for lang in $INST_LINGUAS; do
26475              CATALOGS="$CATALOGS $lang.gmo"
26476            done
26477          fi
26478          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26479          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
26480          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26481            if test -f "$f"; then
26482              case "$f" in
26483                *.orig | *.bak | *~) ;;
26484                *) cat "$f" >> "$ac_dir/Makefile" ;;
26485              esac
26486            fi
26487          done
26488        fi
26489        ;;
26490      esac
26491    done ;;
26492    "executable-scripts":C)
26493	chmod +x filter/braille/filters/liblouis1.defs.gen
26494 ;;
26495
26496  esac
26497done # for ac_tag
26498
26499
26500as_fn_exit 0
26501_ACEOF
26502ac_clean_files=$ac_clean_files_save
26503
26504test $ac_write_fail = 0 ||
26505  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26506
26507
26508# configure is writing to config.log, and then calls config.status.
26509# config.status does its own redirection, appending to config.log.
26510# Unfortunately, on DOS this fails, as config.log is still kept open
26511# by configure, so config.status won't be able to write to it; its
26512# output is simply discarded.  So we exec the FD to /dev/null,
26513# effectively closing config.log, so it can be properly (re)opened and
26514# appended to by config.status.  When coming back to configure, we
26515# need to make the FD available again.
26516if test "$no_create" != yes; then
26517  ac_cs_success=:
26518  ac_config_status_args=
26519  test "$silent" = yes &&
26520    ac_config_status_args="$ac_config_status_args --quiet"
26521  exec 5>/dev/null
26522  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26523  exec 5>>config.log
26524  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26525  # would make configure fail if this is the last instruction.
26526  $ac_cs_success || as_fn_exit 1
26527fi
26528if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26530$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26531fi
26532
26533
26534# ==============================================
26535# Display final informations about configuration
26536# ==============================================
26537{ $as_echo "$as_me:${as_lineno-$LINENO}:
26538==============================================================================
26539Environment settings:
26540	CFLAGS:                                    ${CFLAGS}
26541	CXXFLAGS:                                  ${CXXFLAGS}
26542	LDFLAGS:                                   ${LDFLAGS}
26543Build configuration:
26544	cups-config:     ${with_cups_config}
26545	font directory:  ${sysconfdir}/${FONTDIR}
26546	foomatic:        ${enable_foomatic}
26547	init directory:  ${INITDDIR}
26548	cups dom socket: ${CUPS_DEFAULT_DOMAINSOCKET}
26549	poppler:         ${enable_poppler}
26550	ghostscript:     ${enable_ghostscript}
26551	gs-path:         ${with_gs_path}
26552	mutool:          ${enable_mutool}
26553	mutool-path:     ${with_mutool_path}
26554	ippfind-path:    ${with_ippfind_path}
26555	imagefilters:    ${enable_imagefilters}
26556	jpeg:            ${with_jpeg}
26557	pdftocairo-path: ${with_pdftocairo_path}
26558	pdftops:         ${with_pdftops}
26559	pdftops-path:    ${with_pdftops_path}
26560	png:             ${with_png}
26561	php:             ${with_php}
26562	php-config:      ${with_php_config}
26563	shell:           ${with_shell}
26564	test-font:       ${with_test_font_path}
26565	tiff:            ${with_tiff}
26566	avahi:           ${enable_avahi}
26567	dbus:            ${enable_dbus}
26568	browsing:        ${with_browseremoteprotocols}
26569	werror:          ${enable_werror}
26570	braille:	 ${enable_braille}
26571	braille tables:  ${TABLESDIR}
26572	driverless:      ${enable_driverless}
26573	apple-raster:    ${APPLE_RASTER_FILTER}
26574	pclm:            ${enable_pclm}
26575	local queue naming for remote CUPS queues: ${REMOTE_CUPS_LOCAL_QUEUE_NAMING}
26576	keep generated queues during shutdown:     ${SAVING_CREATED_QUEUES}
26577	all ipp printer auto-setup: ${enable_auto_setup_all}
26578	only driverless auto-setup: ${enable_auto_setup_driverless_only}
26579	only local auto-setup: ${enable_auto_setup_local_only}
26580==============================================================================
26581" >&5
26582$as_echo "$as_me:
26583==============================================================================
26584Environment settings:
26585	CFLAGS:                                    ${CFLAGS}
26586	CXXFLAGS:                                  ${CXXFLAGS}
26587	LDFLAGS:                                   ${LDFLAGS}
26588Build configuration:
26589	cups-config:     ${with_cups_config}
26590	font directory:  ${sysconfdir}/${FONTDIR}
26591	foomatic:        ${enable_foomatic}
26592	init directory:  ${INITDDIR}
26593	cups dom socket: ${CUPS_DEFAULT_DOMAINSOCKET}
26594	poppler:         ${enable_poppler}
26595	ghostscript:     ${enable_ghostscript}
26596	gs-path:         ${with_gs_path}
26597	mutool:          ${enable_mutool}
26598	mutool-path:     ${with_mutool_path}
26599	ippfind-path:    ${with_ippfind_path}
26600	imagefilters:    ${enable_imagefilters}
26601	jpeg:            ${with_jpeg}
26602	pdftocairo-path: ${with_pdftocairo_path}
26603	pdftops:         ${with_pdftops}
26604	pdftops-path:    ${with_pdftops_path}
26605	png:             ${with_png}
26606	php:             ${with_php}
26607	php-config:      ${with_php_config}
26608	shell:           ${with_shell}
26609	test-font:       ${with_test_font_path}
26610	tiff:            ${with_tiff}
26611	avahi:           ${enable_avahi}
26612	dbus:            ${enable_dbus}
26613	browsing:        ${with_browseremoteprotocols}
26614	werror:          ${enable_werror}
26615	braille:	 ${enable_braille}
26616	braille tables:  ${TABLESDIR}
26617	driverless:      ${enable_driverless}
26618	apple-raster:    ${APPLE_RASTER_FILTER}
26619	pclm:            ${enable_pclm}
26620	local queue naming for remote CUPS queues: ${REMOTE_CUPS_LOCAL_QUEUE_NAMING}
26621	keep generated queues during shutdown:     ${SAVING_CREATED_QUEUES}
26622	all ipp printer auto-setup: ${enable_auto_setup_all}
26623	only driverless auto-setup: ${enable_auto_setup_driverless_only}
26624	only local auto-setup: ${enable_auto_setup_local_only}
26625==============================================================================
26626" >&6;}
26627