1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for p11-kit 0.24.0.
4#
5# Report bugs to <https://github.com/p11-glue/p11-kit/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/p11-glue/p11-kit/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='p11-kit'
592PACKAGE_TARNAME='p11-kit'
593PACKAGE_VERSION='0.24.0'
594PACKAGE_STRING='p11-kit 0.24.0'
595PACKAGE_BUGREPORT='https://github.com/p11-glue/p11-kit/issues'
596PACKAGE_URL='https://p11-glue.github.io/p11-glue/p11-kit.html'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634gt_needs=
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639WITH_BASH_COMPLETION_FALSE
640WITH_BASH_COMPLETION_TRUE
641bashcompdir
642WITH_SYSTEMD_FALSE
643WITH_SYSTEMD_TRUE
644systemduserunitdir
645LIBSYSTEMD_LIBS
646LIBSYSTEMD_CFLAGS
647privatedir
648SHLEXT
649P11KIT_LT_RELEASE
650WITH_COVERAGE_FALSE
651WITH_COVERAGE_TRUE
652GENHTML
653LCOV
654GCOV
655GTK_DOC_USE_REBASE_FALSE
656GTK_DOC_USE_REBASE_TRUE
657GTK_DOC_USE_LIBTOOL_FALSE
658GTK_DOC_USE_LIBTOOL_TRUE
659GTK_DOC_BUILD_PDF_FALSE
660GTK_DOC_BUILD_PDF_TRUE
661GTK_DOC_BUILD_HTML_FALSE
662GTK_DOC_BUILD_HTML_TRUE
663ENABLE_GTK_DOC_FALSE
664ENABLE_GTK_DOC_TRUE
665HTML_DIR
666XSLTPROC
667GTKDOC_SCAN
668GTKDOC_MKPDF
669GTKDOC_REBASE
670GTKDOC_CHECK
671with_trust_paths
672WITH_TRUST_MODULE_FALSE
673WITH_TRUST_MODULE_TRUE
674HASH_LIBS
675closures
676WITH_FFI_FALSE
677WITH_FFI_TRUE
678LIBFFI_LIBS
679LIBFFI_CFLAGS
680WITH_ASN1_FALSE
681WITH_ASN1_TRUE
682ASN1PARSER
683LIBTASN1_LIBS
684LIBTASN1_CFLAGS
685p11_module_path
686p11_user_config_modules
687p11_user_config_file
688p11_user_config
689p11_package_config_modules
690p11_system_config_modules
691p11_system_config_file
692p11_system_config
693OS_WIN32_FALSE
694OS_WIN32_TRUE
695POSUB
696LTLIBINTL
697LIBINTL
698INTLLIBS
699LTLIBICONV
700LIBICONV
701INTL_MACOSX_LIBS
702XGETTEXT_EXTRA_OPTIONS
703MSGMERGE_FOR_MSGFMT_OPTION
704MSGMERGE
705XGETTEXT_015
706XGETTEXT
707GMSGFMT_015
708GMSGFMT
709MSGFMT
710GETTEXT_MACRO_VERSION
711USE_NLS
712PKG_CONFIG_LIBDIR
713PKG_CONFIG_PATH
714PKG_CONFIG
715HAVE_LD_VERSION_SCRIPT_FALSE
716HAVE_LD_VERSION_SCRIPT_TRUE
717LT_SYS_LIBRARY_PATH
718OTOOL64
719OTOOL
720LIPO
721NMEDIT
722DSYMUTIL
723MANIFEST_TOOL
724RANLIB
725ac_ct_AR
726AR
727DLLTOOL
728OBJDUMP
729LN_S
730NM
731ac_ct_DUMPBIN
732DUMPBIN
733LD
734FGREP
735SED
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744LIBTOOL
745EGREP
746GREP
747CPP
748am__fastdepCC_FALSE
749am__fastdepCC_TRUE
750CCDEPMODE
751am__nodep
752AMDEPBACKSLASH
753AMDEP_FALSE
754AMDEP_TRUE
755am__include
756DEPDIR
757OBJEXT
758EXEEXT
759ac_ct_CC
760CPPFLAGS
761LDFLAGS
762CFLAGS
763CC
764MAINT
765MAINTAINER_MODE_FALSE
766MAINTAINER_MODE_TRUE
767AM_BACKSLASH
768AM_DEFAULT_VERBOSITY
769AM_DEFAULT_V
770AM_V
771am__untar
772am__tar
773AMTAR
774am__leading_dot
775SET_MAKE
776AWK
777mkdir_p
778MKDIR_P
779INSTALL_STRIP_PROGRAM
780STRIP
781install_sh
782MAKEINFO
783AUTOHEADER
784AUTOMAKE
785AUTOCONF
786ACLOCAL
787VERSION
788PACKAGE
789CYGPATH_W
790am__isrc
791INSTALL_DATA
792INSTALL_SCRIPT
793INSTALL_PROGRAM
794target_alias
795host_alias
796build_alias
797LIBS
798ECHO_T
799ECHO_N
800ECHO_C
801DEFS
802mandir
803localedir
804libdir
805psdir
806pdfdir
807dvidir
808htmldir
809infodir
810docdir
811oldincludedir
812includedir
813runstatedir
814localstatedir
815sharedstatedir
816sysconfdir
817datadir
818datarootdir
819libexecdir
820sbindir
821bindir
822program_transform_name
823prefix
824exec_prefix
825PACKAGE_URL
826PACKAGE_BUGREPORT
827PACKAGE_STRING
828PACKAGE_VERSION
829PACKAGE_TARNAME
830PACKAGE_NAME
831PATH_SEPARATOR
832SHELL
833am__quote'
834ac_subst_files=''
835ac_user_opts='
836enable_option_checking
837enable_silent_rules
838enable_maintainer_mode
839enable_dependency_tracking
840enable_static
841enable_shared
842with_pic
843enable_fast_install
844with_aix_soname
845with_gnu_ld
846with_sysroot
847enable_libtool_lock
848enable_ld_version_script
849enable_nls
850enable_rpath
851with_libiconv_prefix
852with_libintl_prefix
853with_module_config
854with_system_config
855with_user_config
856with_module_path
857with_libtasn1
858with_libffi
859with_closures
860with_hash_impl
861enable_trust_module
862with_trust_paths
863with_html_dir
864enable_doc
865enable_doc_html
866enable_doc_pdf
867enable_debug
868enable_strict
869enable_coverage
870with_systemd
871with_bash_completion
872'
873      ac_precious_vars='build_alias
874host_alias
875target_alias
876CC
877CFLAGS
878LDFLAGS
879LIBS
880CPPFLAGS
881CPP
882LT_SYS_LIBRARY_PATH
883PKG_CONFIG
884PKG_CONFIG_PATH
885PKG_CONFIG_LIBDIR
886LIBTASN1_CFLAGS
887LIBTASN1_LIBS
888LIBFFI_CFLAGS
889LIBFFI_LIBS
890LIBSYSTEMD_CFLAGS
891LIBSYSTEMD_LIBS
892systemduserunitdir
893bashcompdir'
894
895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899ac_unrecognized_opts=
900ac_unrecognized_sep=
901# The variables have the same names as the options, with
902# dashes changed to underlines.
903cache_file=/dev/null
904exec_prefix=NONE
905no_create=
906no_recursion=
907prefix=NONE
908program_prefix=NONE
909program_suffix=NONE
910program_transform_name=s,x,x,
911silent=
912site=
913srcdir=
914verbose=
915x_includes=NONE
916x_libraries=NONE
917
918# Installation directory options.
919# These are left unexpanded so users can "make install exec_prefix=/foo"
920# and all the variables that are supposed to be based on exec_prefix
921# by default will actually change.
922# Use braces instead of parens because sh, perl, etc. also accept them.
923# (The list follows the same order as the GNU Coding Standards.)
924bindir='${exec_prefix}/bin'
925sbindir='${exec_prefix}/sbin'
926libexecdir='${exec_prefix}/libexec'
927datarootdir='${prefix}/share'
928datadir='${datarootdir}'
929sysconfdir='${prefix}/etc'
930sharedstatedir='${prefix}/com'
931localstatedir='${prefix}/var'
932runstatedir='${localstatedir}/run'
933includedir='${prefix}/include'
934oldincludedir='/usr/include'
935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
944
945ac_prev=
946ac_dashdash=
947for ac_option
948do
949  # If the previous option needs an argument, assign it.
950  if test -n "$ac_prev"; then
951    eval $ac_prev=\$ac_option
952    ac_prev=
953    continue
954  fi
955
956  case $ac_option in
957  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958  *=)   ac_optarg= ;;
959  *)    ac_optarg=yes ;;
960  esac
961
962  # Accept the important Cygnus configure options, so we can diagnose typos.
963
964  case $ac_dashdash$ac_option in
965  --)
966    ac_dashdash=yes ;;
967
968  -bindir | --bindir | --bindi | --bind | --bin | --bi)
969    ac_prev=bindir ;;
970  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971    bindir=$ac_optarg ;;
972
973  -build | --build | --buil | --bui | --bu)
974    ac_prev=build_alias ;;
975  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976    build_alias=$ac_optarg ;;
977
978  -cache-file | --cache-file | --cache-fil | --cache-fi \
979  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980    ac_prev=cache_file ;;
981  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983    cache_file=$ac_optarg ;;
984
985  --config-cache | -C)
986    cache_file=config.cache ;;
987
988  -datadir | --datadir | --datadi | --datad)
989    ac_prev=datadir ;;
990  -datadir=* | --datadir=* | --datadi=* | --datad=*)
991    datadir=$ac_optarg ;;
992
993  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994  | --dataroo | --dataro | --datar)
995    ac_prev=datarootdir ;;
996  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998    datarootdir=$ac_optarg ;;
999
1000  -disable-* | --disable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: $ac_useropt"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012	 ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=no ;;
1015
1016  -docdir | --docdir | --docdi | --doc | --do)
1017    ac_prev=docdir ;;
1018  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019    docdir=$ac_optarg ;;
1020
1021  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022    ac_prev=dvidir ;;
1023  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024    dvidir=$ac_optarg ;;
1025
1026  -enable-* | --enable-*)
1027    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028    # Reject names that are not valid shell variable names.
1029    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030      as_fn_error $? "invalid feature name: $ac_useropt"
1031    ac_useropt_orig=$ac_useropt
1032    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033    case $ac_user_opts in
1034      *"
1035"enable_$ac_useropt"
1036"*) ;;
1037      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038	 ac_unrecognized_sep=', ';;
1039    esac
1040    eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044  | --exec | --exe | --ex)
1045    ac_prev=exec_prefix ;;
1046  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048  | --exec=* | --exe=* | --ex=*)
1049    exec_prefix=$ac_optarg ;;
1050
1051  -gas | --gas | --ga | --g)
1052    # Obsolete; use --with-gas.
1053    with_gas=yes ;;
1054
1055  -help | --help | --hel | --he | -h)
1056    ac_init_help=long ;;
1057  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058    ac_init_help=recursive ;;
1059  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060    ac_init_help=short ;;
1061
1062  -host | --host | --hos | --ho)
1063    ac_prev=host_alias ;;
1064  -host=* | --host=* | --hos=* | --ho=*)
1065    host_alias=$ac_optarg ;;
1066
1067  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068    ac_prev=htmldir ;;
1069  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070  | --ht=*)
1071    htmldir=$ac_optarg ;;
1072
1073  -includedir | --includedir | --includedi | --included | --include \
1074  | --includ | --inclu | --incl | --inc)
1075    ac_prev=includedir ;;
1076  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077  | --includ=* | --inclu=* | --incl=* | --inc=*)
1078    includedir=$ac_optarg ;;
1079
1080  -infodir | --infodir | --infodi | --infod | --info | --inf)
1081    ac_prev=infodir ;;
1082  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083    infodir=$ac_optarg ;;
1084
1085  -libdir | --libdir | --libdi | --libd)
1086    ac_prev=libdir ;;
1087  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088    libdir=$ac_optarg ;;
1089
1090  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091  | --libexe | --libex | --libe)
1092    ac_prev=libexecdir ;;
1093  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094  | --libexe=* | --libex=* | --libe=*)
1095    libexecdir=$ac_optarg ;;
1096
1097  -localedir | --localedir | --localedi | --localed | --locale)
1098    ac_prev=localedir ;;
1099  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100    localedir=$ac_optarg ;;
1101
1102  -localstatedir | --localstatedir | --localstatedi | --localstated \
1103  | --localstate | --localstat | --localsta | --localst | --locals)
1104    ac_prev=localstatedir ;;
1105  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107    localstatedir=$ac_optarg ;;
1108
1109  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110    ac_prev=mandir ;;
1111  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112    mandir=$ac_optarg ;;
1113
1114  -nfp | --nfp | --nf)
1115    # Obsolete; use --without-fp.
1116    with_fp=no ;;
1117
1118  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119  | --no-cr | --no-c | -n)
1120    no_create=yes ;;
1121
1122  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124    no_recursion=yes ;;
1125
1126  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128  | --oldin | --oldi | --old | --ol | --o)
1129    ac_prev=oldincludedir ;;
1130  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133    oldincludedir=$ac_optarg ;;
1134
1135  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136    ac_prev=prefix ;;
1137  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138    prefix=$ac_optarg ;;
1139
1140  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141  | --program-pre | --program-pr | --program-p)
1142    ac_prev=program_prefix ;;
1143  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145    program_prefix=$ac_optarg ;;
1146
1147  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148  | --program-suf | --program-su | --program-s)
1149    ac_prev=program_suffix ;;
1150  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152    program_suffix=$ac_optarg ;;
1153
1154  -program-transform-name | --program-transform-name \
1155  | --program-transform-nam | --program-transform-na \
1156  | --program-transform-n | --program-transform- \
1157  | --program-transform | --program-transfor \
1158  | --program-transfo | --program-transf \
1159  | --program-trans | --program-tran \
1160  | --progr-tra | --program-tr | --program-t)
1161    ac_prev=program_transform_name ;;
1162  -program-transform-name=* | --program-transform-name=* \
1163  | --program-transform-nam=* | --program-transform-na=* \
1164  | --program-transform-n=* | --program-transform-=* \
1165  | --program-transform=* | --program-transfor=* \
1166  | --program-transfo=* | --program-transf=* \
1167  | --program-trans=* | --program-tran=* \
1168  | --progr-tra=* | --program-tr=* | --program-t=*)
1169    program_transform_name=$ac_optarg ;;
1170
1171  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172    ac_prev=pdfdir ;;
1173  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174    pdfdir=$ac_optarg ;;
1175
1176  -psdir | --psdir | --psdi | --psd | --ps)
1177    ac_prev=psdir ;;
1178  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179    psdir=$ac_optarg ;;
1180
1181  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182  | -silent | --silent | --silen | --sile | --sil)
1183    silent=yes ;;
1184
1185  -runstatedir | --runstatedir | --runstatedi | --runstated \
1186  | --runstate | --runstat | --runsta | --runst | --runs \
1187  | --run | --ru | --r)
1188    ac_prev=runstatedir ;;
1189  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1190  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1191  | --run=* | --ru=* | --r=*)
1192    runstatedir=$ac_optarg ;;
1193
1194  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195    ac_prev=sbindir ;;
1196  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197  | --sbi=* | --sb=*)
1198    sbindir=$ac_optarg ;;
1199
1200  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202  | --sharedst | --shareds | --shared | --share | --shar \
1203  | --sha | --sh)
1204    ac_prev=sharedstatedir ;;
1205  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208  | --sha=* | --sh=*)
1209    sharedstatedir=$ac_optarg ;;
1210
1211  -site | --site | --sit)
1212    ac_prev=site ;;
1213  -site=* | --site=* | --sit=*)
1214    site=$ac_optarg ;;
1215
1216  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217    ac_prev=srcdir ;;
1218  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219    srcdir=$ac_optarg ;;
1220
1221  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222  | --syscon | --sysco | --sysc | --sys | --sy)
1223    ac_prev=sysconfdir ;;
1224  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226    sysconfdir=$ac_optarg ;;
1227
1228  -target | --target | --targe | --targ | --tar | --ta | --t)
1229    ac_prev=target_alias ;;
1230  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231    target_alias=$ac_optarg ;;
1232
1233  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234    verbose=yes ;;
1235
1236  -version | --version | --versio | --versi | --vers | -V)
1237    ac_init_version=: ;;
1238
1239  -with-* | --with-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error $? "invalid package name: $ac_useropt"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=\$ac_optarg ;;
1254
1255  -without-* | --without-*)
1256    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259      as_fn_error $? "invalid package name: $ac_useropt"
1260    ac_useropt_orig=$ac_useropt
1261    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262    case $ac_user_opts in
1263      *"
1264"with_$ac_useropt"
1265"*) ;;
1266      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267	 ac_unrecognized_sep=', ';;
1268    esac
1269    eval with_$ac_useropt=no ;;
1270
1271  --x)
1272    # Obsolete; use --with-x.
1273    with_x=yes ;;
1274
1275  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276  | --x-incl | --x-inc | --x-in | --x-i)
1277    ac_prev=x_includes ;;
1278  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280    x_includes=$ac_optarg ;;
1281
1282  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284    ac_prev=x_libraries ;;
1285  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287    x_libraries=$ac_optarg ;;
1288
1289  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information"
1291    ;;
1292
1293  *=*)
1294    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295    # Reject names that are not valid shell variable names.
1296    case $ac_envvar in #(
1297      '' | [0-9]* | *[!_$as_cr_alnum]* )
1298      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299    esac
1300    eval $ac_envvar=\$ac_optarg
1301    export $ac_envvar ;;
1302
1303  *)
1304    # FIXME: should be removed in autoconf 3.0.
1305    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309    ;;
1310
1311  esac
1312done
1313
1314if test -n "$ac_prev"; then
1315  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316  as_fn_error $? "missing argument to $ac_option"
1317fi
1318
1319if test -n "$ac_unrecognized_opts"; then
1320  case $enable_option_checking in
1321    no) ;;
1322    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324  esac
1325fi
1326
1327# Check all directory arguments for consistency.
1328for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329		datadir sysconfdir sharedstatedir localstatedir includedir \
1330		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331		libdir localedir mandir runstatedir
1332do
1333  eval ac_val=\$$ac_var
1334  # Remove trailing slashes.
1335  case $ac_val in
1336    */ )
1337      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338      eval $ac_var=\$ac_val;;
1339  esac
1340  # Be sure to have absolute directory names.
1341  case $ac_val in
1342    [\\/$]* | ?:[\\/]* )  continue;;
1343    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344  esac
1345  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357  if test "x$build_alias" = x; then
1358    cross_compiling=maybe
1359  elif test "x$build_alias" != "x$host_alias"; then
1360    cross_compiling=yes
1361  fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
1368
1369
1370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373  as_fn_error $? "working directory cannot be determined"
1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375  as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380  ac_srcdir_defaulted=yes
1381  # Try the directory containing this script, then the parent directory.
1382  ac_confdir=`$as_dirname -- "$as_myself" ||
1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384	 X"$as_myself" : 'X\(//\)[^/]' \| \
1385	 X"$as_myself" : 'X\(//\)$' \| \
1386	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387$as_echo X"$as_myself" |
1388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389	    s//\1/
1390	    q
1391	  }
1392	  /^X\(\/\/\)[^/].*/{
1393	    s//\1/
1394	    q
1395	  }
1396	  /^X\(\/\/\)$/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\).*/{
1401	    s//\1/
1402	    q
1403	  }
1404	  s/.*/./; q'`
1405  srcdir=$ac_confdir
1406  if test ! -r "$srcdir/$ac_unique_file"; then
1407    srcdir=..
1408  fi
1409else
1410  ac_srcdir_defaulted=no
1411fi
1412if test ! -r "$srcdir/$ac_unique_file"; then
1413  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
1418	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419	pwd)`
1420# When building in place, set srcdir=.
1421if test "$ac_abs_confdir" = "$ac_pwd"; then
1422  srcdir=.
1423fi
1424# Remove unnecessary trailing slashes from srcdir.
1425# Double slashes in file names in object file debugging info
1426# mess up M-x gdb in Emacs.
1427case $srcdir in
1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429esac
1430for ac_var in $ac_precious_vars; do
1431  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432  eval ac_env_${ac_var}_value=\$${ac_var}
1433  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435done
1436
1437#
1438# Report the --help message.
1439#
1440if test "$ac_init_help" = "long"; then
1441  # Omit some internal or obsolete options to make the list less imposing.
1442  # This message is too long to be a string in the A/UX 3.1 sh.
1443  cat <<_ACEOF
1444\`configure' configures p11-kit 0.24.0 to adapt to many kinds of systems.
1445
1446Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
1451Defaults for the options are specified in brackets.
1452
1453Configuration:
1454  -h, --help              display this help and exit
1455      --help=short        display options specific to this package
1456      --help=recursive    display the short help of all the included packages
1457  -V, --version           display version information and exit
1458  -q, --quiet, --silent   do not print \`checking ...' messages
1459      --cache-file=FILE   cache test results in FILE [disabled]
1460  -C, --config-cache      alias for \`--cache-file=config.cache'
1461  -n, --no-create         do not create output files
1462      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
1464Installation directories:
1465  --prefix=PREFIX         install architecture-independent files in PREFIX
1466                          [$ac_default_prefix]
1467  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468                          [PREFIX]
1469
1470By default, \`make install' will install all the files in
1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473for instance \`--prefix=\$HOME'.
1474
1475For better control, use the options below.
1476
1477Fine tuning of the installation directories:
1478  --bindir=DIR            user executables [EPREFIX/bin]
1479  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1480  --libexecdir=DIR        program executables [EPREFIX/libexec]
1481  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1482  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1483  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1484  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1485  --libdir=DIR            object code libraries [EPREFIX/lib]
1486  --includedir=DIR        C header files [PREFIX/include]
1487  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1488  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1489  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1490  --infodir=DIR           info documentation [DATAROOTDIR/info]
1491  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1492  --mandir=DIR            man documentation [DATAROOTDIR/man]
1493  --docdir=DIR            documentation root [DATAROOTDIR/doc/p11-kit]
1494  --htmldir=DIR           html documentation [DOCDIR]
1495  --dvidir=DIR            dvi documentation [DOCDIR]
1496  --pdfdir=DIR            pdf documentation [DOCDIR]
1497  --psdir=DIR             ps documentation [DOCDIR]
1498_ACEOF
1499
1500  cat <<\_ACEOF
1501
1502Program names:
1503  --program-prefix=PREFIX            prepend PREFIX to installed program names
1504  --program-suffix=SUFFIX            append SUFFIX to installed program names
1505  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507System types:
1508  --build=BUILD     configure for building on BUILD [guessed]
1509  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514  case $ac_init_help in
1515     short | recursive ) echo "Configuration of p11-kit 0.24.0:";;
1516   esac
1517  cat <<\_ACEOF
1518
1519Optional Features:
1520  --disable-option-checking  ignore unrecognized --enable/--with options
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --enable-silent-rules   less verbose build output (undo: "make V=1")
1524  --disable-silent-rules  verbose build output (undo: "make V=0")
1525  --disable-maintainer-mode
1526                          disable make rules and dependencies not useful (and
1527                          sometimes confusing) to the casual installer
1528  --enable-dependency-tracking
1529                          do not reject slow dependency extractors
1530  --disable-dependency-tracking
1531                          speeds up one-time build
1532  --enable-static[=PKGS]  build static libraries [default=no]
1533  --enable-shared[=PKGS]  build shared libraries [default=yes]
1534  --enable-fast-install[=PKGS]
1535                          optimize for fast installation [default=yes]
1536  --disable-libtool-lock  avoid locking (might break parallel builds)
1537  --enable-ld-version-script
1538                          enable linker version script (default is enabled
1539                          when possible)
1540  --disable-nls           do not use Native Language Support
1541  --disable-rpath         do not hardcode runtime library paths
1542  --disable-trust-module  Disable building the trust module
1543
1544  --enable-doc            build documentation using gtk-doc [[default=no]]
1545  --enable-doc-html       build documentation in html format [[default=yes]]
1546  --enable-doc-pdf        build documentation in pdf format [[default=no]]
1547  --enable-debug=no/default/yes
1548                          Turn on or off debugging
1549  --enable-strict         Strict code compilation
1550
1551  --enable-coverage       Whether to enable coverage testing
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-aix-soname=aix|svr4|both
1559                          shared library versioning (aka "SONAME") variant to
1560                          provide on AIX, [default=aix].
1561  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1563                          compiler's sysroot if not specified).
1564  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1566  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1567  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1568  --without-libintl-prefix     don't search for libintl in includedir and libdir
1569  --with-module-config    Module configuration files shipped by packages
1570  --with-system-config    Change PKCS#11 system config directory
1571  --with-user-config      Change PKCS#11 user config directory
1572  --with-module-path      Load modules with relative path names from here
1573  --without-libtasn1      Disable dependency on libtasn1
1574
1575  --without-libffi        Don't use libffi for building closures
1576  --with-closures=NUM     the number of precompiled closures, used when libffi
1577                          is unavailable
1578  --with-hash-impl=[freebl/internal]
1579                          Choose the hash implementation to use
1580
1581  --with-trust-paths=[path]:
1582                           input paths for trust module
1583
1584
1585  --with-html-dir=PATH    path to installed docs
1586  --without-systemd       Disable systemd socket activation
1587  --without-bash-completion
1588                          Don't install bash completion files
1589
1590Some influential environment variables:
1591  CC          C compiler command
1592  CFLAGS      C compiler flags
1593  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594              nonstandard directory <lib dir>
1595  LIBS        libraries to pass to the linker, e.g. -l<library>
1596  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597              you have headers in a nonstandard directory <include dir>
1598  CPP         C preprocessor
1599  LT_SYS_LIBRARY_PATH
1600              User-defined run-time library search path.
1601  PKG_CONFIG  path to pkg-config utility
1602  PKG_CONFIG_PATH
1603              directories to add to pkg-config's search path
1604  PKG_CONFIG_LIBDIR
1605              path overriding pkg-config's built-in search path
1606  LIBTASN1_CFLAGS
1607              C compiler flags for LIBTASN1, overriding pkg-config
1608  LIBTASN1_LIBS
1609              linker flags for LIBTASN1, overriding pkg-config
1610  LIBFFI_CFLAGS
1611              C compiler flags for LIBFFI, overriding pkg-config
1612  LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1613  LIBSYSTEMD_CFLAGS
1614              C compiler flags for LIBSYSTEMD, overriding pkg-config
1615  LIBSYSTEMD_LIBS
1616              linker flags for LIBSYSTEMD, overriding pkg-config
1617  systemduserunitdir
1618              value of systemduserunitdir for systemd, overriding pkg-config
1619  bashcompdir value of completionsdir for bash-completion, overriding
1620              pkg-config
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
1625Report bugs to <https://github.com/p11-glue/p11-kit/issues>.
1626p11-kit home page: <https://p11-glue.github.io/p11-glue/p11-kit.html>.
1627_ACEOF
1628ac_status=$?
1629fi
1630
1631if test "$ac_init_help" = "recursive"; then
1632  # If there are subdirs, report their specific --help.
1633  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634    test -d "$ac_dir" ||
1635      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636      continue
1637    ac_builddir=.
1638
1639case "$ac_dir" in
1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641*)
1642  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643  # A ".." for each directory in $ac_dir_suffix.
1644  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645  case $ac_top_builddir_sub in
1646  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648  esac ;;
1649esac
1650ac_abs_top_builddir=$ac_pwd
1651ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652# for backward compatibility:
1653ac_top_builddir=$ac_top_build_prefix
1654
1655case $srcdir in
1656  .)  # We are building in place.
1657    ac_srcdir=.
1658    ac_top_srcdir=$ac_top_builddir_sub
1659    ac_abs_top_srcdir=$ac_pwd ;;
1660  [\\/]* | ?:[\\/]* )  # Absolute name.
1661    ac_srcdir=$srcdir$ac_dir_suffix;
1662    ac_top_srcdir=$srcdir
1663    ac_abs_top_srcdir=$srcdir ;;
1664  *) # Relative name.
1665    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666    ac_top_srcdir=$ac_top_build_prefix$srcdir
1667    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668esac
1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671    cd "$ac_dir" || { ac_status=$?; continue; }
1672    # Check for guested configure.
1673    if test -f "$ac_srcdir/configure.gnu"; then
1674      echo &&
1675      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676    elif test -f "$ac_srcdir/configure"; then
1677      echo &&
1678      $SHELL "$ac_srcdir/configure" --help=recursive
1679    else
1680      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681    fi || ac_status=$?
1682    cd "$ac_pwd" || { ac_status=$?; break; }
1683  done
1684fi
1685
1686test -n "$ac_init_help" && exit $ac_status
1687if $ac_init_version; then
1688  cat <<\_ACEOF
1689p11-kit configure 0.24.0
1690generated by GNU Autoconf 2.69
1691
1692Copyright (C) 2012 Free Software Foundation, Inc.
1693This configure script is free software; the Free Software Foundation
1694gives unlimited permission to copy, distribute and modify it.
1695_ACEOF
1696  exit
1697fi
1698
1699## ------------------------ ##
1700## Autoconf initialization. ##
1701## ------------------------ ##
1702
1703# ac_fn_c_try_compile LINENO
1704# --------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_compile ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  rm -f conftest.$ac_objext
1710  if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_compile") 2>conftest.err
1718  ac_status=$?
1719  if test -s conftest.err; then
1720    grep -v '^ *+' conftest.err >conftest.er1
1721    cat conftest.er1 >&5
1722    mv -f conftest.er1 conftest.err
1723  fi
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } && {
1726	 test -z "$ac_c_werror_flag" ||
1727	 test ! -s conftest.err
1728       } && test -s conftest.$ac_objext; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734	ac_retval=1
1735fi
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_compile
1740
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } > conftest.i && {
1763	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       }; then :
1766  ac_retval=0
1767else
1768  $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771    ac_retval=1
1772fi
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_cpp
1777
1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781# the include files in INCLUDES and setting the cache variable VAR
1782# accordingly.
1783ac_fn_c_check_header_mongrel ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  if eval \${$3+:} false; then :
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795else
1796  # Is the header compilable?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798$as_echo_n "checking $2 usability... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805  ac_header_compiler=yes
1806else
1807  ac_header_compiler=no
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811$as_echo "$ac_header_compiler" >&6; }
1812
1813# Is the header present?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815$as_echo_n "checking $2 presence... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_cpp "$LINENO"; then :
1821  ac_header_preproc=yes
1822else
1823  ac_header_preproc=no
1824fi
1825rm -f conftest.err conftest.i conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827$as_echo "$ac_header_preproc" >&6; }
1828
1829# So?  What about this header?
1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831  yes:no: )
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836    ;;
1837  no:yes:* )
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1841$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1845$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848( $as_echo "## --------------------------------------------------------- ##
1849## Report this to https://github.com/p11-glue/p11-kit/issues ##
1850## --------------------------------------------------------- ##"
1851     ) | sed "s/^/$as_me: WARNING:     /" >&2
1852    ;;
1853esac
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  eval "$3=\$ac_header_compiler"
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864fi
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_header_mongrel
1868
1869# ac_fn_c_try_run LINENO
1870# ----------------------
1871# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872# that executables *can* be run.
1873ac_fn_c_try_run ()
1874{
1875  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876  if { { ac_try="$ac_link"
1877case "(($ac_try" in
1878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879  *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883  (eval "$ac_link") 2>&5
1884  ac_status=$?
1885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887  { { case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_try") 2>&5
1894  ac_status=$?
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; }; }; then :
1897  ac_retval=0
1898else
1899  $as_echo "$as_me: program exited with status $ac_status" >&5
1900       $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903       ac_retval=$ac_status
1904fi
1905  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907  as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_run
1910
1911# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912# -------------------------------------------------------
1913# Tests whether HEADER exists and can be compiled using the include files in
1914# INCLUDES, setting the cache variable VAR accordingly.
1915ac_fn_c_check_header_compile ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929  eval "$3=yes"
1930else
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_header_compile
1941
1942# ac_fn_c_try_link LINENO
1943# -----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_c_try_link ()
1946{
1947  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948  rm -f conftest.$ac_objext conftest$ac_exeext
1949  if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952  *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956  (eval "$ac_link") 2>conftest.err
1957  ac_status=$?
1958  if test -s conftest.err; then
1959    grep -v '^ *+' conftest.err >conftest.er1
1960    cat conftest.er1 >&5
1961    mv -f conftest.er1 conftest.err
1962  fi
1963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964  test $ac_status = 0; } && {
1965	 test -z "$ac_c_werror_flag" ||
1966	 test ! -s conftest.err
1967       } && test -s conftest$ac_exeext && {
1968	 test "$cross_compiling" = yes ||
1969	 test -x conftest$ac_exeext
1970       }; then :
1971  ac_retval=0
1972else
1973  $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976	ac_retval=1
1977fi
1978  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980  # interfere with the next link command; also delete a directory that is
1981  # left behind by Apple's compiler.  We do this before executing the actions.
1982  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984  as_fn_set_status $ac_retval
1985
1986} # ac_fn_c_try_link
1987
1988# ac_fn_c_check_func LINENO FUNC VAR
1989# ----------------------------------
1990# Tests whether FUNC exists, setting the cache variable VAR accordingly
1991ac_fn_c_check_func ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995$as_echo_n "checking for $2... " >&6; }
1996if eval \${$3+:} false; then :
1997  $as_echo_n "(cached) " >&6
1998else
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2002   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2003#define $2 innocuous_$2
2004
2005/* System header to define __stub macros and hopefully few prototypes,
2006    which can conflict with char $2 (); below.
2007    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2008    <limits.h> exists even on freestanding compilers.  */
2009
2010#ifdef __STDC__
2011# include <limits.h>
2012#else
2013# include <assert.h>
2014#endif
2015
2016#undef $2
2017
2018/* Override any GCC internal prototype to avoid an error.
2019   Use char because int might match the return type of a GCC
2020   builtin and then its argument prototype would still apply.  */
2021#ifdef __cplusplus
2022extern "C"
2023#endif
2024char $2 ();
2025/* The GNU C library defines this for functions which it implements
2026    to always fail with ENOSYS.  Some functions are actually named
2027    something starting with __ and the normal name is an alias.  */
2028#if defined __stub_$2 || defined __stub___$2
2029choke me
2030#endif
2031
2032int
2033main ()
2034{
2035return $2 ();
2036  ;
2037  return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_link "$LINENO"; then :
2041  eval "$3=yes"
2042else
2043  eval "$3=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext \
2046    conftest$ac_exeext conftest.$ac_ext
2047fi
2048eval ac_res=\$$3
2049	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053} # ac_fn_c_check_func
2054
2055# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056# -------------------------------------------
2057# Tests whether TYPE exists after having included INCLUDES, setting cache
2058# variable VAR accordingly.
2059ac_fn_c_check_type ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if eval \${$3+:} false; then :
2065  $as_echo_n "(cached) " >&6
2066else
2067  eval "$3=no"
2068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h.  */
2070$4
2071int
2072main ()
2073{
2074if (sizeof ($2))
2075	 return 0;
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087if (sizeof (($2)))
2088	    return 0;
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094
2095else
2096  eval "$3=yes"
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102eval ac_res=\$$3
2103	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104$as_echo "$ac_res" >&6; }
2105  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107} # ac_fn_c_check_type
2108
2109# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2110# --------------------------------------------
2111# Tries to find the compile-time value of EXPR in a program that includes
2112# INCLUDES, setting VAR accordingly. Returns whether the value could be
2113# computed
2114ac_fn_c_compute_int ()
2115{
2116  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117  if test "$cross_compiling" = yes; then
2118    # Depending upon the size, compute the lo and hi bounds.
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h.  */
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) >= 0)];
2126test_array [0] = 0;
2127return test_array [0];
2128
2129  ;
2130  return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134  ac_lo=0 ac_mid=0
2135  while :; do
2136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143test_array [0] = 0;
2144return test_array [0];
2145
2146  ;
2147  return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151  ac_hi=$ac_mid; break
2152else
2153  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154			if test $ac_lo -le $ac_mid; then
2155			  ac_lo= ac_hi=
2156			  break
2157			fi
2158			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161  done
2162else
2163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) < 0)];
2170test_array [0] = 0;
2171return test_array [0];
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178  ac_hi=-1 ac_mid=-1
2179  while :; do
2180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main ()
2185{
2186static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2187test_array [0] = 0;
2188return test_array [0];
2189
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195  ac_lo=$ac_mid; break
2196else
2197  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198			if test $ac_mid -le $ac_hi; then
2199			  ac_lo= ac_hi=
2200			  break
2201			fi
2202			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205  done
2206else
2207  ac_lo= ac_hi=
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212# Binary search between lo and hi bounds.
2213while test "x$ac_lo" != "x$ac_hi"; do
2214  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h.  */
2217$4
2218int
2219main ()
2220{
2221static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222test_array [0] = 0;
2223return test_array [0];
2224
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230  ac_hi=$ac_mid
2231else
2232  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235done
2236case $ac_lo in #((
2237?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2238'') ac_retval=1 ;;
2239esac
2240  else
2241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h.  */
2243$4
2244static long int longval () { return $2; }
2245static unsigned long int ulongval () { return $2; }
2246#include <stdio.h>
2247#include <stdlib.h>
2248int
2249main ()
2250{
2251
2252  FILE *f = fopen ("conftest.val", "w");
2253  if (! f)
2254    return 1;
2255  if (($2) < 0)
2256    {
2257      long int i = longval ();
2258      if (i != ($2))
2259	return 1;
2260      fprintf (f, "%ld", i);
2261    }
2262  else
2263    {
2264      unsigned long int i = ulongval ();
2265      if (i != ($2))
2266	return 1;
2267      fprintf (f, "%lu", i);
2268    }
2269  /* Do not output a trailing newline, as this causes \r\n confusion
2270     on some platforms.  */
2271  return ferror (f) || fclose (f) != 0;
2272
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277if ac_fn_c_try_run "$LINENO"; then :
2278  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2279else
2280  ac_retval=1
2281fi
2282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2283  conftest.$ac_objext conftest.beam conftest.$ac_ext
2284rm -f conftest.val
2285
2286  fi
2287  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288  as_fn_set_status $ac_retval
2289
2290} # ac_fn_c_compute_int
2291
2292# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2293# ----------------------------------------------------
2294# Tries to find if the field MEMBER exists in type AGGR, after including
2295# INCLUDES, setting cache variable VAR accordingly.
2296ac_fn_c_check_member ()
2297{
2298  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2300$as_echo_n "checking for $2.$3... " >&6; }
2301if eval \${$4+:} false; then :
2302  $as_echo_n "(cached) " >&6
2303else
2304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$5
2307int
2308main ()
2309{
2310static $2 ac_aggr;
2311if (ac_aggr.$3)
2312return 0;
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318  eval "$4=yes"
2319else
2320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h.  */
2322$5
2323int
2324main ()
2325{
2326static $2 ac_aggr;
2327if (sizeof ac_aggr.$3)
2328return 0;
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"; then :
2334  eval "$4=yes"
2335else
2336  eval "$4=no"
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341fi
2342eval ac_res=\$$4
2343	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344$as_echo "$ac_res" >&6; }
2345  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346
2347} # ac_fn_c_check_member
2348
2349# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2350# ---------------------------------------------
2351# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2352# accordingly.
2353ac_fn_c_check_decl ()
2354{
2355  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356  as_decl_name=`echo $2|sed 's/ *(.*//'`
2357  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2359$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2360if eval \${$3+:} false; then :
2361  $as_echo_n "(cached) " >&6
2362else
2363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h.  */
2365$4
2366int
2367main ()
2368{
2369#ifndef $as_decl_name
2370#ifdef __cplusplus
2371  (void) $as_decl_use;
2372#else
2373  (void) $as_decl_name;
2374#endif
2375#endif
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_compile "$LINENO"; then :
2382  eval "$3=yes"
2383else
2384  eval "$3=no"
2385fi
2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387fi
2388eval ac_res=\$$3
2389	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390$as_echo "$ac_res" >&6; }
2391  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392
2393} # ac_fn_c_check_decl
2394cat >config.log <<_ACEOF
2395This file contains any messages produced by compilers while
2396running configure, to aid debugging if configure makes a mistake.
2397
2398It was created by p11-kit $as_me 0.24.0, which was
2399generated by GNU Autoconf 2.69.  Invocation command line was
2400
2401  $ $0 $@
2402
2403_ACEOF
2404exec 5>>config.log
2405{
2406cat <<_ASUNAME
2407## --------- ##
2408## Platform. ##
2409## --------- ##
2410
2411hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2412uname -m = `(uname -m) 2>/dev/null || echo unknown`
2413uname -r = `(uname -r) 2>/dev/null || echo unknown`
2414uname -s = `(uname -s) 2>/dev/null || echo unknown`
2415uname -v = `(uname -v) 2>/dev/null || echo unknown`
2416
2417/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2418/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2419
2420/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2421/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2422/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2423/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2424/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2425/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2426/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2427
2428_ASUNAME
2429
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433  IFS=$as_save_IFS
2434  test -z "$as_dir" && as_dir=.
2435    $as_echo "PATH: $as_dir"
2436  done
2437IFS=$as_save_IFS
2438
2439} >&5
2440
2441cat >&5 <<_ACEOF
2442
2443
2444## ----------- ##
2445## Core tests. ##
2446## ----------- ##
2447
2448_ACEOF
2449
2450
2451# Keep a trace of the command line.
2452# Strip out --no-create and --no-recursion so they do not pile up.
2453# Strip out --silent because we don't want to record it for future runs.
2454# Also quote any args containing shell meta-characters.
2455# Make two passes to allow for proper duplicate-argument suppression.
2456ac_configure_args=
2457ac_configure_args0=
2458ac_configure_args1=
2459ac_must_keep_next=false
2460for ac_pass in 1 2
2461do
2462  for ac_arg
2463  do
2464    case $ac_arg in
2465    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2466    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2467    | -silent | --silent | --silen | --sile | --sil)
2468      continue ;;
2469    *\'*)
2470      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2471    esac
2472    case $ac_pass in
2473    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2474    2)
2475      as_fn_append ac_configure_args1 " '$ac_arg'"
2476      if test $ac_must_keep_next = true; then
2477	ac_must_keep_next=false # Got value, back to normal.
2478      else
2479	case $ac_arg in
2480	  *=* | --config-cache | -C | -disable-* | --disable-* \
2481	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2482	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2483	  | -with-* | --with-* | -without-* | --without-* | --x)
2484	    case "$ac_configure_args0 " in
2485	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2486	    esac
2487	    ;;
2488	  -* ) ac_must_keep_next=true ;;
2489	esac
2490      fi
2491      as_fn_append ac_configure_args " '$ac_arg'"
2492      ;;
2493    esac
2494  done
2495done
2496{ ac_configure_args0=; unset ac_configure_args0;}
2497{ ac_configure_args1=; unset ac_configure_args1;}
2498
2499# When interrupted or exit'd, cleanup temporary files, and complete
2500# config.log.  We remove comments because anyway the quotes in there
2501# would cause problems or look ugly.
2502# WARNING: Use '\'' to represent an apostrophe within the trap.
2503# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2504trap 'exit_status=$?
2505  # Save into config.log some information that might help in debugging.
2506  {
2507    echo
2508
2509    $as_echo "## ---------------- ##
2510## Cache variables. ##
2511## ---------------- ##"
2512    echo
2513    # The following way of writing the cache mishandles newlines in values,
2514(
2515  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2516    eval ac_val=\$$ac_var
2517    case $ac_val in #(
2518    *${as_nl}*)
2519      case $ac_var in #(
2520      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2521$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2522      esac
2523      case $ac_var in #(
2524      _ | IFS | as_nl) ;; #(
2525      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2526      *) { eval $ac_var=; unset $ac_var;} ;;
2527      esac ;;
2528    esac
2529  done
2530  (set) 2>&1 |
2531    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2532    *${as_nl}ac_space=\ *)
2533      sed -n \
2534	"s/'\''/'\''\\\\'\'''\''/g;
2535	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2536      ;; #(
2537    *)
2538      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2539      ;;
2540    esac |
2541    sort
2542)
2543    echo
2544
2545    $as_echo "## ----------------- ##
2546## Output variables. ##
2547## ----------------- ##"
2548    echo
2549    for ac_var in $ac_subst_vars
2550    do
2551      eval ac_val=\$$ac_var
2552      case $ac_val in
2553      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2554      esac
2555      $as_echo "$ac_var='\''$ac_val'\''"
2556    done | sort
2557    echo
2558
2559    if test -n "$ac_subst_files"; then
2560      $as_echo "## ------------------- ##
2561## File substitutions. ##
2562## ------------------- ##"
2563      echo
2564      for ac_var in $ac_subst_files
2565      do
2566	eval ac_val=\$$ac_var
2567	case $ac_val in
2568	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569	esac
2570	$as_echo "$ac_var='\''$ac_val'\''"
2571      done | sort
2572      echo
2573    fi
2574
2575    if test -s confdefs.h; then
2576      $as_echo "## ----------- ##
2577## confdefs.h. ##
2578## ----------- ##"
2579      echo
2580      cat confdefs.h
2581      echo
2582    fi
2583    test "$ac_signal" != 0 &&
2584      $as_echo "$as_me: caught signal $ac_signal"
2585    $as_echo "$as_me: exit $exit_status"
2586  } >&5
2587  rm -f core *.core core.conftest.* &&
2588    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2589    exit $exit_status
2590' 0
2591for ac_signal in 1 2 13 15; do
2592  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2593done
2594ac_signal=0
2595
2596# confdefs.h avoids OS command line length limits that DEFS can exceed.
2597rm -f -r conftest* confdefs.h
2598
2599$as_echo "/* confdefs.h */" > confdefs.h
2600
2601# Predefined preprocessor variables.
2602
2603cat >>confdefs.h <<_ACEOF
2604#define PACKAGE_NAME "$PACKAGE_NAME"
2605_ACEOF
2606
2607cat >>confdefs.h <<_ACEOF
2608#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2609_ACEOF
2610
2611cat >>confdefs.h <<_ACEOF
2612#define PACKAGE_VERSION "$PACKAGE_VERSION"
2613_ACEOF
2614
2615cat >>confdefs.h <<_ACEOF
2616#define PACKAGE_STRING "$PACKAGE_STRING"
2617_ACEOF
2618
2619cat >>confdefs.h <<_ACEOF
2620#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2621_ACEOF
2622
2623cat >>confdefs.h <<_ACEOF
2624#define PACKAGE_URL "$PACKAGE_URL"
2625_ACEOF
2626
2627
2628# Let the site file select an alternate cache file if it wants to.
2629# Prefer an explicitly selected file to automatically selected ones.
2630ac_site_file1=NONE
2631ac_site_file2=NONE
2632if test -n "$CONFIG_SITE"; then
2633  # We do not want a PATH search for config.site.
2634  case $CONFIG_SITE in #((
2635    -*)  ac_site_file1=./$CONFIG_SITE;;
2636    */*) ac_site_file1=$CONFIG_SITE;;
2637    *)   ac_site_file1=./$CONFIG_SITE;;
2638  esac
2639elif test "x$prefix" != xNONE; then
2640  ac_site_file1=$prefix/share/config.site
2641  ac_site_file2=$prefix/etc/config.site
2642else
2643  ac_site_file1=$ac_default_prefix/share/config.site
2644  ac_site_file2=$ac_default_prefix/etc/config.site
2645fi
2646for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2647do
2648  test "x$ac_site_file" = xNONE && continue
2649  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2650    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2651$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2652    sed 's/^/| /' "$ac_site_file" >&5
2653    . "$ac_site_file" \
2654      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656as_fn_error $? "failed to load site script $ac_site_file
2657See \`config.log' for more details" "$LINENO" 5; }
2658  fi
2659done
2660
2661if test -r "$cache_file"; then
2662  # Some versions of bash will fail to source /dev/null (special files
2663  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2664  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2665    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2666$as_echo "$as_me: loading cache $cache_file" >&6;}
2667    case $cache_file in
2668      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2669      *)                      . "./$cache_file";;
2670    esac
2671  fi
2672else
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2674$as_echo "$as_me: creating cache $cache_file" >&6;}
2675  >$cache_file
2676fi
2677
2678gt_needs="$gt_needs need-ngettext"
2679# Check that the precious variables saved in the cache have kept the same
2680# value.
2681ac_cache_corrupted=false
2682for ac_var in $ac_precious_vars; do
2683  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2684  eval ac_new_set=\$ac_env_${ac_var}_set
2685  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2686  eval ac_new_val=\$ac_env_${ac_var}_value
2687  case $ac_old_set,$ac_new_set in
2688    set,)
2689      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2690$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2691      ac_cache_corrupted=: ;;
2692    ,set)
2693      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2694$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2695      ac_cache_corrupted=: ;;
2696    ,);;
2697    *)
2698      if test "x$ac_old_val" != "x$ac_new_val"; then
2699	# differences in whitespace do not lead to failure.
2700	ac_old_val_w=`echo x $ac_old_val`
2701	ac_new_val_w=`echo x $ac_new_val`
2702	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2703	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2704$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2705	  ac_cache_corrupted=:
2706	else
2707	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2708$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2709	  eval $ac_var=\$ac_old_val
2710	fi
2711	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2712$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2713	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2714$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2715      fi;;
2716  esac
2717  # Pass precious variables to config.status.
2718  if test "$ac_new_set" = set; then
2719    case $ac_new_val in
2720    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2721    *) ac_arg=$ac_var=$ac_new_val ;;
2722    esac
2723    case " $ac_configure_args " in
2724      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2725      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2726    esac
2727  fi
2728done
2729if $ac_cache_corrupted; then
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2733$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2734  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2735fi
2736## -------------------- ##
2737## Main body of script. ##
2738## -------------------- ##
2739
2740ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746
2747
2748# ------------------------------------------------------------------------------
2749# p11-kit libtool versioning
2750# CURRENT : REVISION : AGE
2751#   +1    :     0    : +1   == new interface that does not break old one.
2752#   +1    :     0    :  0   == removed an interface. Breaks old apps.
2753#    ?    :    +1    :  ?   == internal changes that doesn't break anything.
2754
2755P11KIT_CURRENT=3
2756P11KIT_REVISION=0
2757P11KIT_AGE=3
2758
2759# ------------------------------------------------------------------------------
2760
2761ac_config_headers="$ac_config_headers config.h"
2762
2763
2764ac_aux_dir=
2765for ac_dir in build/litter "$srcdir"/build/litter; do
2766  if test -f "$ac_dir/install-sh"; then
2767    ac_aux_dir=$ac_dir
2768    ac_install_sh="$ac_aux_dir/install-sh -c"
2769    break
2770  elif test -f "$ac_dir/install.sh"; then
2771    ac_aux_dir=$ac_dir
2772    ac_install_sh="$ac_aux_dir/install.sh -c"
2773    break
2774  elif test -f "$ac_dir/shtool"; then
2775    ac_aux_dir=$ac_dir
2776    ac_install_sh="$ac_aux_dir/shtool install -c"
2777    break
2778  fi
2779done
2780if test -z "$ac_aux_dir"; then
2781  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/litter \"$srcdir\"/build/litter" "$LINENO" 5
2782fi
2783
2784# These three variables are undocumented and unsupported,
2785# and are intended to be withdrawn in a future Autoconf release.
2786# They can cause serious problems if a builder's source tree is in a directory
2787# whose full name contains unusual characters.
2788ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2789ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2790ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2791
2792
2793
2794am__api_version='1.16'
2795
2796# Find a good install program.  We prefer a C program (faster),
2797# so one script is as good as another.  But avoid the broken or
2798# incompatible versions:
2799# SysV /etc/install, /usr/sbin/install
2800# SunOS /usr/etc/install
2801# IRIX /sbin/install
2802# AIX /bin/install
2803# AmigaOS /C/install, which installs bootblocks on floppy discs
2804# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2805# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2806# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2807# OS/2's system install, which has a completely different semantic
2808# ./install, which can be erroneously created by make from ./install.sh.
2809# Reject install programs that cannot install multiple files.
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2811$as_echo_n "checking for a BSD-compatible install... " >&6; }
2812if test -z "$INSTALL"; then
2813if ${ac_cv_path_install+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819  IFS=$as_save_IFS
2820  test -z "$as_dir" && as_dir=.
2821    # Account for people who put trailing slashes in PATH elements.
2822case $as_dir/ in #((
2823  ./ | .// | /[cC]/* | \
2824  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2825  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2826  /usr/ucb/* ) ;;
2827  *)
2828    # OSF1 and SCO ODT 3.0 have their own names for install.
2829    # Don't use installbsd from OSF since it installs stuff as root
2830    # by default.
2831    for ac_prog in ginstall scoinst install; do
2832      for ac_exec_ext in '' $ac_executable_extensions; do
2833	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2834	  if test $ac_prog = install &&
2835	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2836	    # AIX install.  It has an incompatible calling convention.
2837	    :
2838	  elif test $ac_prog = install &&
2839	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840	    # program-specific install script used by HP pwplus--don't use.
2841	    :
2842	  else
2843	    rm -rf conftest.one conftest.two conftest.dir
2844	    echo one > conftest.one
2845	    echo two > conftest.two
2846	    mkdir conftest.dir
2847	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2848	      test -s conftest.one && test -s conftest.two &&
2849	      test -s conftest.dir/conftest.one &&
2850	      test -s conftest.dir/conftest.two
2851	    then
2852	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2853	      break 3
2854	    fi
2855	  fi
2856	fi
2857      done
2858    done
2859    ;;
2860esac
2861
2862  done
2863IFS=$as_save_IFS
2864
2865rm -rf conftest.one conftest.two conftest.dir
2866
2867fi
2868  if test "${ac_cv_path_install+set}" = set; then
2869    INSTALL=$ac_cv_path_install
2870  else
2871    # As a last resort, use the slow shell script.  Don't cache a
2872    # value for INSTALL within a source directory, because that will
2873    # break other packages using the cache if that directory is
2874    # removed, or if the value is a relative name.
2875    INSTALL=$ac_install_sh
2876  fi
2877fi
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2879$as_echo "$INSTALL" >&6; }
2880
2881# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2882# It thinks the first close brace ends the variable substitution.
2883test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2884
2885test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2886
2887test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2888
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2890$as_echo_n "checking whether build environment is sane... " >&6; }
2891# Reject unsafe characters in $srcdir or the absolute working directory
2892# name.  Accept space and tab only in the latter.
2893am_lf='
2894'
2895case `pwd` in
2896  *[\\\"\#\$\&\'\`$am_lf]*)
2897    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2898esac
2899case $srcdir in
2900  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2901    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2902esac
2903
2904# Do 'set' in a subshell so we don't clobber the current shell's
2905# arguments.  Must try -L first in case configure is actually a
2906# symlink; some systems play weird games with the mod time of symlinks
2907# (eg FreeBSD returns the mod time of the symlink's containing
2908# directory).
2909if (
2910   am_has_slept=no
2911   for am_try in 1 2; do
2912     echo "timestamp, slept: $am_has_slept" > conftest.file
2913     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2914     if test "$*" = "X"; then
2915	# -L didn't work.
2916	set X `ls -t "$srcdir/configure" conftest.file`
2917     fi
2918     if test "$*" != "X $srcdir/configure conftest.file" \
2919	&& test "$*" != "X conftest.file $srcdir/configure"; then
2920
2921	# If neither matched, then we have a broken ls.  This can happen
2922	# if, for instance, CONFIG_SHELL is bash and it inherits a
2923	# broken ls alias from the environment.  This has actually
2924	# happened.  Such a system could not be considered "sane".
2925	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2926  alias in your environment" "$LINENO" 5
2927     fi
2928     if test "$2" = conftest.file || test $am_try -eq 2; then
2929       break
2930     fi
2931     # Just in case.
2932     sleep 1
2933     am_has_slept=yes
2934   done
2935   test "$2" = conftest.file
2936   )
2937then
2938   # Ok.
2939   :
2940else
2941   as_fn_error $? "newly created file is older than distributed files!
2942Check your system clock" "$LINENO" 5
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945$as_echo "yes" >&6; }
2946# If we didn't sleep, we still need to ensure time stamps of config.status and
2947# generated files are strictly newer.
2948am_sleep_pid=
2949if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2950  ( sleep 1 ) &
2951  am_sleep_pid=$!
2952fi
2953
2954rm -f conftest.file
2955
2956test "$program_prefix" != NONE &&
2957  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2958# Use a double $ so make ignores it.
2959test "$program_suffix" != NONE &&
2960  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2961# Double any \ or $.
2962# By default was `s,x,x', remove it if useless.
2963ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2964program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2965
2966# Expand $ac_aux_dir to an absolute path.
2967am_aux_dir=`cd "$ac_aux_dir" && pwd`
2968
2969if test x"${MISSING+set}" != xset; then
2970  case $am_aux_dir in
2971  *\ * | *\	*)
2972    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2973  *)
2974    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2975  esac
2976fi
2977# Use eval to expand $SHELL
2978if eval "$MISSING --is-lightweight"; then
2979  am_missing_run="$MISSING "
2980else
2981  am_missing_run=
2982  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2983$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2984fi
2985
2986if test x"${install_sh+set}" != xset; then
2987  case $am_aux_dir in
2988  *\ * | *\	*)
2989    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2990  *)
2991    install_sh="\${SHELL} $am_aux_dir/install-sh"
2992  esac
2993fi
2994
2995# Installed binaries are usually stripped using 'strip' when the user
2996# run "make install-strip".  However 'strip' might not be the right
2997# tool to use in cross-compilation environments, therefore Automake
2998# will honor the 'STRIP' environment variable to overrule this program.
2999if test "$cross_compiling" != no; then
3000  if test -n "$ac_tool_prefix"; then
3001  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3002set dummy ${ac_tool_prefix}strip; ac_word=$2
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if ${ac_cv_prog_STRIP+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  if test -n "$STRIP"; then
3009  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    for ac_exec_ext in '' $ac_executable_extensions; do
3017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028STRIP=$ac_cv_prog_STRIP
3029if test -n "$STRIP"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3031$as_echo "$STRIP" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037
3038fi
3039if test -z "$ac_cv_prog_STRIP"; then
3040  ac_ct_STRIP=$STRIP
3041  # Extract the first word of "strip", so it can be a program name with args.
3042set dummy strip; ac_word=$2
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$ac_ct_STRIP"; then
3049  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056    for ac_exec_ext in '' $ac_executable_extensions; do
3057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058    ac_cv_prog_ac_ct_STRIP="strip"
3059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063  done
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3069if test -n "$ac_ct_STRIP"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3071$as_echo "$ac_ct_STRIP" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077  if test "x$ac_ct_STRIP" = x; then
3078    STRIP=":"
3079  else
3080    case $cross_compiling:$ac_tool_warned in
3081yes:)
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084ac_tool_warned=yes ;;
3085esac
3086    STRIP=$ac_ct_STRIP
3087  fi
3088else
3089  STRIP="$ac_cv_prog_STRIP"
3090fi
3091
3092fi
3093INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3094
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3096$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3097if test -z "$MKDIR_P"; then
3098  if ${ac_cv_path_mkdir+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3103do
3104  IFS=$as_save_IFS
3105  test -z "$as_dir" && as_dir=.
3106    for ac_prog in mkdir gmkdir; do
3107	 for ac_exec_ext in '' $ac_executable_extensions; do
3108	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3109	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3110	     'mkdir (GNU coreutils) '* | \
3111	     'mkdir (coreutils) '* | \
3112	     'mkdir (fileutils) '4.1*)
3113	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3114	       break 3;;
3115	   esac
3116	 done
3117       done
3118  done
3119IFS=$as_save_IFS
3120
3121fi
3122
3123  test -d ./--version && rmdir ./--version
3124  if test "${ac_cv_path_mkdir+set}" = set; then
3125    MKDIR_P="$ac_cv_path_mkdir -p"
3126  else
3127    # As a last resort, use the slow shell script.  Don't cache a
3128    # value for MKDIR_P within a source directory, because that will
3129    # break other packages using the cache if that directory is
3130    # removed, or if the value is a relative name.
3131    MKDIR_P="$ac_install_sh -d"
3132  fi
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3135$as_echo "$MKDIR_P" >&6; }
3136
3137for ac_prog in gawk mawk nawk awk
3138do
3139  # Extract the first word of "$ac_prog", so it can be a program name with args.
3140set dummy $ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_AWK+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$AWK"; then
3147  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156    ac_cv_prog_AWK="$ac_prog"
3157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158    break 2
3159  fi
3160done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166AWK=$ac_cv_prog_AWK
3167if test -n "$AWK"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3169$as_echo "$AWK" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176  test -n "$AWK" && break
3177done
3178
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3181set x ${MAKE-make}
3182ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3183if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3184  $as_echo_n "(cached) " >&6
3185else
3186  cat >conftest.make <<\_ACEOF
3187SHELL = /bin/sh
3188all:
3189	@echo '@@@%%%=$(MAKE)=@@@%%%'
3190_ACEOF
3191# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3192case `${MAKE-make} -f conftest.make 2>/dev/null` in
3193  *@@@%%%=?*=@@@%%%*)
3194    eval ac_cv_prog_make_${ac_make}_set=yes;;
3195  *)
3196    eval ac_cv_prog_make_${ac_make}_set=no;;
3197esac
3198rm -f conftest.make
3199fi
3200if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202$as_echo "yes" >&6; }
3203  SET_MAKE=
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207  SET_MAKE="MAKE=${MAKE-make}"
3208fi
3209
3210rm -rf .tst 2>/dev/null
3211mkdir .tst 2>/dev/null
3212if test -d .tst; then
3213  am__leading_dot=.
3214else
3215  am__leading_dot=_
3216fi
3217rmdir .tst 2>/dev/null
3218
3219# Check whether --enable-silent-rules was given.
3220if test "${enable_silent_rules+set}" = set; then :
3221  enableval=$enable_silent_rules;
3222fi
3223
3224case $enable_silent_rules in # (((
3225  yes) AM_DEFAULT_VERBOSITY=0;;
3226   no) AM_DEFAULT_VERBOSITY=1;;
3227    *) AM_DEFAULT_VERBOSITY=1;;
3228esac
3229am_make=${MAKE-make}
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3231$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3232if ${am_cv_make_support_nested_variables+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if $as_echo 'TRUE=$(BAR$(V))
3236BAR0=false
3237BAR1=true
3238V=1
3239am__doit:
3240	@$(TRUE)
3241.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3242  am_cv_make_support_nested_variables=yes
3243else
3244  am_cv_make_support_nested_variables=no
3245fi
3246fi
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3248$as_echo "$am_cv_make_support_nested_variables" >&6; }
3249if test $am_cv_make_support_nested_variables = yes; then
3250    AM_V='$(V)'
3251  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3252else
3253  AM_V=$AM_DEFAULT_VERBOSITY
3254  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3255fi
3256AM_BACKSLASH='\'
3257
3258if test "`cd $srcdir && pwd`" != "`pwd`"; then
3259  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3260  # is not polluted with repeated "-I."
3261  am__isrc=' -I$(srcdir)'
3262  # test to see if srcdir already configured
3263  if test -f $srcdir/config.status; then
3264    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3265  fi
3266fi
3267
3268# test whether we have cygpath
3269if test -z "$CYGPATH_W"; then
3270  if (cygpath --version) >/dev/null 2>/dev/null; then
3271    CYGPATH_W='cygpath -w'
3272  else
3273    CYGPATH_W=echo
3274  fi
3275fi
3276
3277
3278# Define the identity of the package.
3279 PACKAGE='p11-kit'
3280 VERSION='0.24.0'
3281
3282
3283cat >>confdefs.h <<_ACEOF
3284#define PACKAGE "$PACKAGE"
3285_ACEOF
3286
3287
3288cat >>confdefs.h <<_ACEOF
3289#define VERSION "$VERSION"
3290_ACEOF
3291
3292# Some tools Automake needs.
3293
3294ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3295
3296
3297AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3298
3299
3300AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3301
3302
3303AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3304
3305
3306MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3307
3308# For better backward compatibility.  To be removed once Automake 1.9.x
3309# dies out for good.  For more background, see:
3310# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3311# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3312mkdir_p='$(MKDIR_P)'
3313
3314# We need awk for the "check" target (and possibly the TAP driver).  The
3315# system "awk" is bad on some platforms.
3316# Always define AMTAR for backward compatibility.  Yes, it's still used
3317# in the wild :-(  We should find a proper way to deprecate it ...
3318AMTAR='$${TAR-tar}'
3319
3320
3321# We'll loop over all known methods to create a tar archive until one works.
3322_am_tools='gnutar  pax cpio none'
3323
3324am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3325
3326
3327
3328
3329
3330
3331# POSIX will say in a future version that running "rm -f" with no argument
3332# is OK; and we want to be able to make that assumption in our Makefile
3333# recipes.  So use an aggressive probe to check that the usage we want is
3334# actually supported "in the wild" to an acceptable degree.
3335# See automake bug#10828.
3336# To make any issue more visible, cause the running configure to be aborted
3337# by default if the 'rm' program in use doesn't match our expectations; the
3338# user can still override this though.
3339if rm -f && rm -fr && rm -rf; then : OK; else
3340  cat >&2 <<'END'
3341Oops!
3342
3343Your 'rm' program seems unable to run without file operands specified
3344on the command line, even when the '-f' option is present.  This is contrary
3345to the behaviour of most rm programs out there, and not conforming with
3346the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3347
3348Please tell bug-automake@gnu.org about your system, including the value
3349of your $PATH and any error possibly output before this message.  This
3350can help us improve future automake versions.
3351
3352END
3353  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3354    echo 'Configuration will proceed anyway, since you have set the' >&2
3355    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3356    echo >&2
3357  else
3358    cat >&2 <<'END'
3359Aborting the configuration process, to ensure you take notice of the issue.
3360
3361You can download and install GNU coreutils to get an 'rm' implementation
3362that behaves properly: <https://www.gnu.org/software/coreutils/>.
3363
3364If you want to complete the configuration process using your problematic
3365'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3366to "yes", and re-run configure.
3367
3368END
3369    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3370  fi
3371fi
3372
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3374$as_echo_n "checking whether build environment is sane... " >&6; }
3375# Reject unsafe characters in $srcdir or the absolute working directory
3376# name.  Accept space and tab only in the latter.
3377am_lf='
3378'
3379case `pwd` in
3380  *[\\\"\#\$\&\'\`$am_lf]*)
3381    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3382esac
3383case $srcdir in
3384  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3385    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3386esac
3387
3388# Do 'set' in a subshell so we don't clobber the current shell's
3389# arguments.  Must try -L first in case configure is actually a
3390# symlink; some systems play weird games with the mod time of symlinks
3391# (eg FreeBSD returns the mod time of the symlink's containing
3392# directory).
3393if (
3394   am_has_slept=no
3395   for am_try in 1 2; do
3396     echo "timestamp, slept: $am_has_slept" > conftest.file
3397     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3398     if test "$*" = "X"; then
3399	# -L didn't work.
3400	set X `ls -t "$srcdir/configure" conftest.file`
3401     fi
3402     if test "$*" != "X $srcdir/configure conftest.file" \
3403	&& test "$*" != "X conftest.file $srcdir/configure"; then
3404
3405	# If neither matched, then we have a broken ls.  This can happen
3406	# if, for instance, CONFIG_SHELL is bash and it inherits a
3407	# broken ls alias from the environment.  This has actually
3408	# happened.  Such a system could not be considered "sane".
3409	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3410  alias in your environment" "$LINENO" 5
3411     fi
3412     if test "$2" = conftest.file || test $am_try -eq 2; then
3413       break
3414     fi
3415     # Just in case.
3416     sleep 1
3417     am_has_slept=yes
3418   done
3419   test "$2" = conftest.file
3420   )
3421then
3422   # Ok.
3423   :
3424else
3425   as_fn_error $? "newly created file is older than distributed files!
3426Check your system clock" "$LINENO" 5
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429$as_echo "yes" >&6; }
3430# If we didn't sleep, we still need to ensure time stamps of config.status and
3431# generated files are strictly newer.
3432am_sleep_pid=
3433if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3434  ( sleep 1 ) &
3435  am_sleep_pid=$!
3436fi
3437
3438rm -f conftest.file
3439
3440
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3442$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3443    # Check whether --enable-maintainer-mode was given.
3444if test "${enable_maintainer_mode+set}" = set; then :
3445  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3446else
3447  USE_MAINTAINER_MODE=yes
3448fi
3449
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3451$as_echo "$USE_MAINTAINER_MODE" >&6; }
3452   if test $USE_MAINTAINER_MODE = yes; then
3453  MAINTAINER_MODE_TRUE=
3454  MAINTAINER_MODE_FALSE='#'
3455else
3456  MAINTAINER_MODE_TRUE='#'
3457  MAINTAINER_MODE_FALSE=
3458fi
3459
3460  MAINT=$MAINTAINER_MODE_TRUE
3461
3462
3463# Check whether --enable-silent-rules was given.
3464if test "${enable_silent_rules+set}" = set; then :
3465  enableval=$enable_silent_rules;
3466fi
3467
3468case $enable_silent_rules in # (((
3469  yes) AM_DEFAULT_VERBOSITY=0;;
3470   no) AM_DEFAULT_VERBOSITY=1;;
3471    *) AM_DEFAULT_VERBOSITY=0;;
3472esac
3473am_make=${MAKE-make}
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3475$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3476if ${am_cv_make_support_nested_variables+:} false; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  if $as_echo 'TRUE=$(BAR$(V))
3480BAR0=false
3481BAR1=true
3482V=1
3483am__doit:
3484	@$(TRUE)
3485.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3486  am_cv_make_support_nested_variables=yes
3487else
3488  am_cv_make_support_nested_variables=no
3489fi
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3492$as_echo "$am_cv_make_support_nested_variables" >&6; }
3493if test $am_cv_make_support_nested_variables = yes; then
3494    AM_V='$(V)'
3495  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3496else
3497  AM_V=$AM_DEFAULT_VERBOSITY
3498  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3499fi
3500AM_BACKSLASH='\'
3501
3502
3503
3504
3505
3506DEPDIR="${am__leading_dot}deps"
3507
3508ac_config_commands="$ac_config_commands depfiles"
3509
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3511$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3512cat > confinc.mk << 'END'
3513am__doit:
3514	@echo this is the am__doit target >confinc.out
3515.PHONY: am__doit
3516END
3517am__include="#"
3518am__quote=
3519# BSD make does it like this.
3520echo '.include "confinc.mk" # ignored' > confmf.BSD
3521# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3522echo 'include confinc.mk # ignored' > confmf.GNU
3523_am_result=no
3524for s in GNU BSD; do
3525  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3526   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }
3530  case $?:`cat confinc.out 2>/dev/null` in #(
3531  '0:this is the am__doit target') :
3532    case $s in #(
3533  BSD) :
3534    am__include='.include' am__quote='"' ;; #(
3535  *) :
3536    am__include='include' am__quote='' ;;
3537esac ;; #(
3538  *) :
3539     ;;
3540esac
3541  if test "$am__include" != "#"; then
3542    _am_result="yes ($s style)"
3543    break
3544  fi
3545done
3546rm -f confinc.* confmf.*
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3548$as_echo "${_am_result}" >&6; }
3549
3550# Check whether --enable-dependency-tracking was given.
3551if test "${enable_dependency_tracking+set}" = set; then :
3552  enableval=$enable_dependency_tracking;
3553fi
3554
3555if test "x$enable_dependency_tracking" != xno; then
3556  am_depcomp="$ac_aux_dir/depcomp"
3557  AMDEPBACKSLASH='\'
3558  am__nodep='_no'
3559fi
3560 if test "x$enable_dependency_tracking" != xno; then
3561  AMDEP_TRUE=
3562  AMDEP_FALSE='#'
3563else
3564  AMDEP_TRUE='#'
3565  AMDEP_FALSE=
3566fi
3567
3568
3569ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574if test -n "$ac_tool_prefix"; then
3575  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if ${ac_cv_prog_CC+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  if test -n "$CC"; then
3583  ac_cv_prog_CC="$CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  test -z "$as_dir" && as_dir=.
3590    for ac_exec_ext in '' $ac_executable_extensions; do
3591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597  done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605$as_echo "$CC" >&6; }
3606else
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611
3612fi
3613if test -z "$ac_cv_prog_CC"; then
3614  ac_ct_CC=$CC
3615  # Extract the first word of "gcc", so it can be a program name with args.
3616set dummy gcc; ac_word=$2
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618$as_echo_n "checking for $ac_word... " >&6; }
3619if ${ac_cv_prog_ac_ct_CC+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if test -n "$ac_ct_CC"; then
3623  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624else
3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626for as_dir in $PATH
3627do
3628  IFS=$as_save_IFS
3629  test -z "$as_dir" && as_dir=.
3630    for ac_exec_ext in '' $ac_executable_extensions; do
3631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632    ac_cv_prog_ac_ct_CC="gcc"
3633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634    break 2
3635  fi
3636done
3637  done
3638IFS=$as_save_IFS
3639
3640fi
3641fi
3642ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643if test -n "$ac_ct_CC"; then
3644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645$as_echo "$ac_ct_CC" >&6; }
3646else
3647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648$as_echo "no" >&6; }
3649fi
3650
3651  if test "x$ac_ct_CC" = x; then
3652    CC=""
3653  else
3654    case $cross_compiling:$ac_tool_warned in
3655yes:)
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658ac_tool_warned=yes ;;
3659esac
3660    CC=$ac_ct_CC
3661  fi
3662else
3663  CC="$ac_cv_prog_CC"
3664fi
3665
3666if test -z "$CC"; then
3667          if test -n "$ac_tool_prefix"; then
3668    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}cc; ac_word=$2
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671$as_echo_n "checking for $ac_word... " >&6; }
3672if ${ac_cv_prog_CC+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  if test -n "$CC"; then
3676  ac_cv_prog_CC="$CC" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681  IFS=$as_save_IFS
3682  test -z "$as_dir" && as_dir=.
3683    for ac_exec_ext in '' $ac_executable_extensions; do
3684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685    ac_cv_prog_CC="${ac_tool_prefix}cc"
3686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687    break 2
3688  fi
3689done
3690  done
3691IFS=$as_save_IFS
3692
3693fi
3694fi
3695CC=$ac_cv_prog_CC
3696if test -n "$CC"; then
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698$as_echo "$CC" >&6; }
3699else
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701$as_echo "no" >&6; }
3702fi
3703
3704
3705  fi
3706fi
3707if test -z "$CC"; then
3708  # Extract the first word of "cc", so it can be a program name with args.
3709set dummy cc; ac_word=$2
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711$as_echo_n "checking for $ac_word... " >&6; }
3712if ${ac_cv_prog_CC+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  if test -n "$CC"; then
3716  ac_cv_prog_CC="$CC" # Let the user override the test.
3717else
3718  ac_prog_rejected=no
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722  IFS=$as_save_IFS
3723  test -z "$as_dir" && as_dir=.
3724    for ac_exec_ext in '' $ac_executable_extensions; do
3725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727       ac_prog_rejected=yes
3728       continue
3729     fi
3730    ac_cv_prog_CC="cc"
3731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732    break 2
3733  fi
3734done
3735  done
3736IFS=$as_save_IFS
3737
3738if test $ac_prog_rejected = yes; then
3739  # We found a bogon in the path, so make sure we never use it.
3740  set dummy $ac_cv_prog_CC
3741  shift
3742  if test $# != 0; then
3743    # We chose a different compiler from the bogus one.
3744    # However, it has the same basename, so the bogon will be chosen
3745    # first if we set CC to just the basename; use the full file name.
3746    shift
3747    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748  fi
3749fi
3750fi
3751fi
3752CC=$ac_cv_prog_CC
3753if test -n "$CC"; then
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755$as_echo "$CC" >&6; }
3756else
3757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759fi
3760
3761
3762fi
3763if test -z "$CC"; then
3764  if test -n "$ac_tool_prefix"; then
3765  for ac_prog in cl.exe
3766  do
3767    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770$as_echo_n "checking for $ac_word... " >&6; }
3771if ${ac_cv_prog_CC+:} false; then :
3772  $as_echo_n "(cached) " >&6
3773else
3774  if test -n "$CC"; then
3775  ac_cv_prog_CC="$CC" # Let the user override the test.
3776else
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780  IFS=$as_save_IFS
3781  test -z "$as_dir" && as_dir=.
3782    for ac_exec_ext in '' $ac_executable_extensions; do
3783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786    break 2
3787  fi
3788done
3789  done
3790IFS=$as_save_IFS
3791
3792fi
3793fi
3794CC=$ac_cv_prog_CC
3795if test -n "$CC"; then
3796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797$as_echo "$CC" >&6; }
3798else
3799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800$as_echo "no" >&6; }
3801fi
3802
3803
3804    test -n "$CC" && break
3805  done
3806fi
3807if test -z "$CC"; then
3808  ac_ct_CC=$CC
3809  for ac_prog in cl.exe
3810do
3811  # Extract the first word of "$ac_prog", so it can be a program name with args.
3812set dummy $ac_prog; ac_word=$2
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814$as_echo_n "checking for $ac_word... " >&6; }
3815if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816  $as_echo_n "(cached) " >&6
3817else
3818  if test -n "$ac_ct_CC"; then
3819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824  IFS=$as_save_IFS
3825  test -z "$as_dir" && as_dir=.
3826    for ac_exec_ext in '' $ac_executable_extensions; do
3827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828    ac_cv_prog_ac_ct_CC="$ac_prog"
3829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830    break 2
3831  fi
3832done
3833  done
3834IFS=$as_save_IFS
3835
3836fi
3837fi
3838ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839if test -n "$ac_ct_CC"; then
3840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841$as_echo "$ac_ct_CC" >&6; }
3842else
3843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844$as_echo "no" >&6; }
3845fi
3846
3847
3848  test -n "$ac_ct_CC" && break
3849done
3850
3851  if test "x$ac_ct_CC" = x; then
3852    CC=""
3853  else
3854    case $cross_compiling:$ac_tool_warned in
3855yes:)
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858ac_tool_warned=yes ;;
3859esac
3860    CC=$ac_ct_CC
3861  fi
3862fi
3863
3864fi
3865
3866
3867test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869as_fn_error $? "no acceptable C compiler found in \$PATH
3870See \`config.log' for more details" "$LINENO" 5; }
3871
3872# Provide some information about the compiler.
3873$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874set X $ac_compile
3875ac_compiler=$2
3876for ac_option in --version -v -V -qversion; do
3877  { { ac_try="$ac_compiler $ac_option >&5"
3878case "(($ac_try" in
3879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880  *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883$as_echo "$ac_try_echo"; } >&5
3884  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885  ac_status=$?
3886  if test -s conftest.err; then
3887    sed '10a\
3888... rest of stderr output deleted ...
3889         10q' conftest.err >conftest.er1
3890    cat conftest.er1 >&5
3891  fi
3892  rm -f conftest.er1 conftest.err
3893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894  test $ac_status = 0; }
3895done
3896
3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899
3900int
3901main ()
3902{
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908ac_clean_files_save=$ac_clean_files
3909ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3910# Try to create an executable without -o first, disregard a.out.
3911# It will help us diagnose broken compilers, and finding out an intuition
3912# of exeext.
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914$as_echo_n "checking whether the C compiler works... " >&6; }
3915ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916
3917# The possible output files:
3918ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919
3920ac_rmfiles=
3921for ac_file in $ac_files
3922do
3923  case $ac_file in
3924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926  esac
3927done
3928rm -f $ac_rmfiles
3929
3930if { { ac_try="$ac_link_default"
3931case "(($ac_try" in
3932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933  *) ac_try_echo=$ac_try;;
3934esac
3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936$as_echo "$ac_try_echo"; } >&5
3937  (eval "$ac_link_default") 2>&5
3938  ac_status=$?
3939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940  test $ac_status = 0; }; then :
3941  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3944# so that the user can short-circuit this test for compilers unknown to
3945# Autoconf.
3946for ac_file in $ac_files ''
3947do
3948  test -f "$ac_file" || continue
3949  case $ac_file in
3950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951	;;
3952    [ab].out )
3953	# We found the default executable, but exeext='' is most
3954	# certainly right.
3955	break;;
3956    *.* )
3957	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3958	then :; else
3959	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960	fi
3961	# We set ac_cv_exeext here because the later test for it is not
3962	# safe: cross compilers may not add the suffix if given an `-o'
3963	# argument, so we may need to know it at that point already.
3964	# Even if this section looks crufty: it has the advantage of
3965	# actually working.
3966	break;;
3967    * )
3968	break;;
3969  esac
3970done
3971test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973else
3974  ac_file=''
3975fi
3976if test -z "$ac_file"; then :
3977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979$as_echo "$as_me: failed program was:" >&5
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
3982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984as_fn_error 77 "C compiler cannot create executables
3985See \`config.log' for more details" "$LINENO" 5; }
3986else
3987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988$as_echo "yes" >&6; }
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3991$as_echo_n "checking for C compiler default output file name... " >&6; }
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3993$as_echo "$ac_file" >&6; }
3994ac_exeext=$ac_cv_exeext
3995
3996rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3997ac_clean_files=$ac_clean_files_save
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3999$as_echo_n "checking for suffix of executables... " >&6; }
4000if { { ac_try="$ac_link"
4001case "(($ac_try" in
4002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003  *) ac_try_echo=$ac_try;;
4004esac
4005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006$as_echo "$ac_try_echo"; } >&5
4007  (eval "$ac_link") 2>&5
4008  ac_status=$?
4009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010  test $ac_status = 0; }; then :
4011  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4013# work properly (i.e., refer to `conftest.exe'), while it won't with
4014# `rm'.
4015for ac_file in conftest.exe conftest conftest.*; do
4016  test -f "$ac_file" || continue
4017  case $ac_file in
4018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020	  break;;
4021    * ) break;;
4022  esac
4023done
4024else
4025  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028See \`config.log' for more details" "$LINENO" 5; }
4029fi
4030rm -f conftest conftest$ac_cv_exeext
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032$as_echo "$ac_cv_exeext" >&6; }
4033
4034rm -f conftest.$ac_ext
4035EXEEXT=$ac_cv_exeext
4036ac_exeext=$EXEEXT
4037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#include <stdio.h>
4040int
4041main ()
4042{
4043FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050ac_clean_files="$ac_clean_files conftest.out"
4051# Check that the compiler produces executables we can run.  If not, either
4052# the compiler is broken, or we cross compile.
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054$as_echo_n "checking whether we are cross compiling... " >&6; }
4055if test "$cross_compiling" != yes; then
4056  { { ac_try="$ac_link"
4057case "(($ac_try" in
4058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059  *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062$as_echo "$ac_try_echo"; } >&5
4063  (eval "$ac_link") 2>&5
4064  ac_status=$?
4065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }
4067  if { ac_try='./conftest$ac_cv_exeext'
4068  { { case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073$as_echo "$ac_try_echo"; } >&5
4074  (eval "$ac_try") 2>&5
4075  ac_status=$?
4076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }; }; then
4078    cross_compiling=no
4079  else
4080    if test "$cross_compiling" = maybe; then
4081	cross_compiling=yes
4082    else
4083	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error $? "cannot run C compiled programs.
4086If you meant to cross compile, use \`--host'.
4087See \`config.log' for more details" "$LINENO" 5; }
4088    fi
4089  fi
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092$as_echo "$cross_compiling" >&6; }
4093
4094rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095ac_clean_files=$ac_clean_files_save
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097$as_echo_n "checking for suffix of object files... " >&6; }
4098if ${ac_cv_objext+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112rm -f conftest.o conftest.obj
4113if { { ac_try="$ac_compile"
4114case "(($ac_try" in
4115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116  *) ac_try_echo=$ac_try;;
4117esac
4118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119$as_echo "$ac_try_echo"; } >&5
4120  (eval "$ac_compile") 2>&5
4121  ac_status=$?
4122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123  test $ac_status = 0; }; then :
4124  for ac_file in conftest.o conftest.obj conftest.*; do
4125  test -f "$ac_file" || continue;
4126  case $ac_file in
4127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129       break;;
4130  esac
4131done
4132else
4133  $as_echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138as_fn_error $? "cannot compute suffix of object files: cannot compile
4139See \`config.log' for more details" "$LINENO" 5; }
4140fi
4141rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144$as_echo "$ac_cv_objext" >&6; }
4145OBJEXT=$ac_cv_objext
4146ac_objext=$OBJEXT
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4148$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4149if ${ac_cv_c_compiler_gnu+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h.  */
4154
4155int
4156main ()
4157{
4158#ifndef __GNUC__
4159       choke me
4160#endif
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166if ac_fn_c_try_compile "$LINENO"; then :
4167  ac_compiler_gnu=yes
4168else
4169  ac_compiler_gnu=no
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174fi
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4177if test $ac_compiler_gnu = yes; then
4178  GCC=yes
4179else
4180  GCC=
4181fi
4182ac_test_CFLAGS=${CFLAGS+set}
4183ac_save_CFLAGS=$CFLAGS
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185$as_echo_n "checking whether $CC accepts -g... " >&6; }
4186if ${ac_cv_prog_cc_g+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  ac_save_c_werror_flag=$ac_c_werror_flag
4190   ac_c_werror_flag=yes
4191   ac_cv_prog_cc_g=no
4192   CFLAGS="-g"
4193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195
4196int
4197main ()
4198{
4199
4200  ;
4201  return 0;
4202}
4203_ACEOF
4204if ac_fn_c_try_compile "$LINENO"; then :
4205  ac_cv_prog_cc_g=yes
4206else
4207  CFLAGS=""
4208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210
4211int
4212main ()
4213{
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219if ac_fn_c_try_compile "$LINENO"; then :
4220
4221else
4222  ac_c_werror_flag=$ac_save_c_werror_flag
4223	 CFLAGS="-g"
4224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236  ac_cv_prog_cc_g=yes
4237fi
4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243   ac_c_werror_flag=$ac_save_c_werror_flag
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4246$as_echo "$ac_cv_prog_cc_g" >&6; }
4247if test "$ac_test_CFLAGS" = set; then
4248  CFLAGS=$ac_save_CFLAGS
4249elif test $ac_cv_prog_cc_g = yes; then
4250  if test "$GCC" = yes; then
4251    CFLAGS="-g -O2"
4252  else
4253    CFLAGS="-g"
4254  fi
4255else
4256  if test "$GCC" = yes; then
4257    CFLAGS="-O2"
4258  else
4259    CFLAGS=
4260  fi
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4264if ${ac_cv_prog_cc_c89+:} false; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  ac_cv_prog_cc_c89=no
4268ac_save_CC=$CC
4269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#include <stdarg.h>
4272#include <stdio.h>
4273struct stat;
4274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4275struct buf { int x; };
4276FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277static char *e (p, i)
4278     char **p;
4279     int i;
4280{
4281  return p[i];
4282}
4283static char *f (char * (*g) (char **, int), char **p, ...)
4284{
4285  char *s;
4286  va_list v;
4287  va_start (v,p);
4288  s = g (p, va_arg (v,int));
4289  va_end (v);
4290  return s;
4291}
4292
4293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4294   function prototypes and stuff, but not '\xHH' hex character constants.
4295   These don't provoke an error unfortunately, instead are silently treated
4296   as 'x'.  The following induces an error, until -std is added to get
4297   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4298   array size at least.  It's necessary to write '\x00'==0 to get something
4299   that's true only with -std.  */
4300int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301
4302/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303   inside strings and character constants.  */
4304#define FOO(x) 'x'
4305int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306
4307int test (int i, double x);
4308struct s1 {int (*f) (int a);};
4309struct s2 {int (*f) (double a);};
4310int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311int argc;
4312char **argv;
4313int
4314main ()
4315{
4316return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4317  ;
4318  return 0;
4319}
4320_ACEOF
4321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323do
4324  CC="$ac_save_CC $ac_arg"
4325  if ac_fn_c_try_compile "$LINENO"; then :
4326  ac_cv_prog_cc_c89=$ac_arg
4327fi
4328rm -f core conftest.err conftest.$ac_objext
4329  test "x$ac_cv_prog_cc_c89" != "xno" && break
4330done
4331rm -f conftest.$ac_ext
4332CC=$ac_save_CC
4333
4334fi
4335# AC_CACHE_VAL
4336case "x$ac_cv_prog_cc_c89" in
4337  x)
4338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339$as_echo "none needed" >&6; } ;;
4340  xno)
4341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342$as_echo "unsupported" >&6; } ;;
4343  *)
4344    CC="$CC $ac_cv_prog_cc_c89"
4345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347esac
4348if test "x$ac_cv_prog_cc_c89" != xno; then :
4349
4350fi
4351
4352ac_ext=c
4353ac_cpp='$CPP $CPPFLAGS'
4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358ac_ext=c
4359ac_cpp='$CPP $CPPFLAGS'
4360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4364$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4365if ${am_cv_prog_cc_c_o+:} false; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370
4371int
4372main ()
4373{
4374
4375  ;
4376  return 0;
4377}
4378_ACEOF
4379  # Make sure it works both with $CC and with simple cc.
4380  # Following AC_PROG_CC_C_O, we do the test twice because some
4381  # compilers refuse to overwrite an existing .o file with -o,
4382  # though they will create one.
4383  am_cv_prog_cc_c_o=yes
4384  for am_i in 1 2; do
4385    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4386   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } \
4390         && test -f conftest2.$ac_objext; then
4391      : OK
4392    else
4393      am_cv_prog_cc_c_o=no
4394      break
4395    fi
4396  done
4397  rm -f core conftest*
4398  unset am_i
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4401$as_echo "$am_cv_prog_cc_c_o" >&6; }
4402if test "$am_cv_prog_cc_c_o" != yes; then
4403   # Losing compiler, so override with the script.
4404   # FIXME: It is wrong to rewrite CC.
4405   # But if we don't then we get into trouble of one sort or another.
4406   # A longer-term fix would be to have automake use am__CC in this case,
4407   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4408   CC="$am_aux_dir/compile $CC"
4409fi
4410ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416
4417depcc="$CC"   am_compiler_list=
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4420$as_echo_n "checking dependency style of $depcc... " >&6; }
4421if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4425  # We make a subdir and do the tests there.  Otherwise we can end up
4426  # making bogus files that we don't know about and never remove.  For
4427  # instance it was reported that on HP-UX the gcc test will end up
4428  # making a dummy file named 'D' -- because '-MD' means "put the output
4429  # in D".
4430  rm -rf conftest.dir
4431  mkdir conftest.dir
4432  # Copy depcomp to subdir because otherwise we won't find it if we're
4433  # using a relative directory.
4434  cp "$am_depcomp" conftest.dir
4435  cd conftest.dir
4436  # We will build objects and dependencies in a subdirectory because
4437  # it helps to detect inapplicable dependency modes.  For instance
4438  # both Tru64's cc and ICC support -MD to output dependencies as a
4439  # side effect of compilation, but ICC will put the dependencies in
4440  # the current directory while Tru64 will put them in the object
4441  # directory.
4442  mkdir sub
4443
4444  am_cv_CC_dependencies_compiler_type=none
4445  if test "$am_compiler_list" = ""; then
4446     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447  fi
4448  am__universal=false
4449  case " $depcc " in #(
4450     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4451     esac
4452
4453  for depmode in $am_compiler_list; do
4454    # Setup a source with many dependencies, because some compilers
4455    # like to wrap large dependency lists on column 80 (with \), and
4456    # we should not choose a depcomp mode which is confused by this.
4457    #
4458    # We need to recreate these files for each test, as the compiler may
4459    # overwrite some of them when testing with obscure command lines.
4460    # This happens at least with the AIX C compiler.
4461    : > sub/conftest.c
4462    for i in 1 2 3 4 5 6; do
4463      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4464      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4465      # Solaris 10 /bin/sh.
4466      echo '/* dummy */' > sub/conftst$i.h
4467    done
4468    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469
4470    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4471    # mode.  It turns out that the SunPro C++ compiler does not properly
4472    # handle '-M -o', and we need to detect this.  Also, some Intel
4473    # versions had trouble with output in subdirs.
4474    am__obj=sub/conftest.${OBJEXT-o}
4475    am__minus_obj="-o $am__obj"
4476    case $depmode in
4477    gcc)
4478      # This depmode causes a compiler race in universal mode.
4479      test "$am__universal" = false || continue
4480      ;;
4481    nosideeffect)
4482      # After this tag, mechanisms are not by side-effect, so they'll
4483      # only be used when explicitly requested.
4484      if test "x$enable_dependency_tracking" = xyes; then
4485	continue
4486      else
4487	break
4488      fi
4489      ;;
4490    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4491      # This compiler won't grok '-c -o', but also, the minuso test has
4492      # not run yet.  These depmodes are late enough in the game, and
4493      # so weak that their functioning should not be impacted.
4494      am__obj=conftest.${OBJEXT-o}
4495      am__minus_obj=
4496      ;;
4497    none) break ;;
4498    esac
4499    if depmode=$depmode \
4500       source=sub/conftest.c object=$am__obj \
4501       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4502       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4503         >/dev/null 2>conftest.err &&
4504       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4505       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4506       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4507       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4508      # icc doesn't choke on unknown options, it will just issue warnings
4509      # or remarks (even with -Werror).  So we grep stderr for any message
4510      # that says an option was ignored or not supported.
4511      # When given -MP, icc 7.0 and 7.1 complain thusly:
4512      #   icc: Command line warning: ignoring option '-M'; no argument required
4513      # The diagnosis changed in icc 8.0:
4514      #   icc: Command line remark: option '-MP' not supported
4515      if (grep 'ignoring option' conftest.err ||
4516          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4517        am_cv_CC_dependencies_compiler_type=$depmode
4518        break
4519      fi
4520    fi
4521  done
4522
4523  cd ..
4524  rm -rf conftest.dir
4525else
4526  am_cv_CC_dependencies_compiler_type=none
4527fi
4528
4529fi
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4531$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4532CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4533
4534 if
4535  test "x$enable_dependency_tracking" != xno \
4536  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4537  am__fastdepCC_TRUE=
4538  am__fastdepCC_FALSE='#'
4539else
4540  am__fastdepCC_TRUE='#'
4541  am__fastdepCC_FALSE=
4542fi
4543
4544
4545
4546ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4552$as_echo_n "checking how to run the C preprocessor... " >&6; }
4553# On Suns, sometimes $CPP names a directory.
4554if test -n "$CPP" && test -d "$CPP"; then
4555  CPP=
4556fi
4557if test -z "$CPP"; then
4558  if ${ac_cv_prog_CPP+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561      # Double quotes because CPP needs to be expanded
4562    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563    do
4564      ac_preproc_ok=false
4565for ac_c_preproc_warn_flag in '' yes
4566do
4567  # Use a header file that comes with gcc, so configuring glibc
4568  # with a fresh cross-compiler works.
4569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570  # <limits.h> exists even on freestanding compilers.
4571  # On the NeXT, cc -E runs the code through the compiler's parser,
4572  # not just through cpp. "Syntax error" is here to catch this case.
4573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h.  */
4575#ifdef __STDC__
4576# include <limits.h>
4577#else
4578# include <assert.h>
4579#endif
4580		     Syntax error
4581_ACEOF
4582if ac_fn_c_try_cpp "$LINENO"; then :
4583
4584else
4585  # Broken: fails on valid input.
4586continue
4587fi
4588rm -f conftest.err conftest.i conftest.$ac_ext
4589
4590  # OK, works on sane cases.  Now check whether nonexistent headers
4591  # can be detected and how.
4592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h.  */
4594#include <ac_nonexistent.h>
4595_ACEOF
4596if ac_fn_c_try_cpp "$LINENO"; then :
4597  # Broken: success on invalid input.
4598continue
4599else
4600  # Passes both tests.
4601ac_preproc_ok=:
4602break
4603fi
4604rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606done
4607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608rm -f conftest.i conftest.err conftest.$ac_ext
4609if $ac_preproc_ok; then :
4610  break
4611fi
4612
4613    done
4614    ac_cv_prog_CPP=$CPP
4615
4616fi
4617  CPP=$ac_cv_prog_CPP
4618else
4619  ac_cv_prog_CPP=$CPP
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4622$as_echo "$CPP" >&6; }
4623ac_preproc_ok=false
4624for ac_c_preproc_warn_flag in '' yes
4625do
4626  # Use a header file that comes with gcc, so configuring glibc
4627  # with a fresh cross-compiler works.
4628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4629  # <limits.h> exists even on freestanding compilers.
4630  # On the NeXT, cc -E runs the code through the compiler's parser,
4631  # not just through cpp. "Syntax error" is here to catch this case.
4632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634#ifdef __STDC__
4635# include <limits.h>
4636#else
4637# include <assert.h>
4638#endif
4639		     Syntax error
4640_ACEOF
4641if ac_fn_c_try_cpp "$LINENO"; then :
4642
4643else
4644  # Broken: fails on valid input.
4645continue
4646fi
4647rm -f conftest.err conftest.i conftest.$ac_ext
4648
4649  # OK, works on sane cases.  Now check whether nonexistent headers
4650  # can be detected and how.
4651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h.  */
4653#include <ac_nonexistent.h>
4654_ACEOF
4655if ac_fn_c_try_cpp "$LINENO"; then :
4656  # Broken: success on invalid input.
4657continue
4658else
4659  # Passes both tests.
4660ac_preproc_ok=:
4661break
4662fi
4663rm -f conftest.err conftest.i conftest.$ac_ext
4664
4665done
4666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667rm -f conftest.i conftest.err conftest.$ac_ext
4668if $ac_preproc_ok; then :
4669
4670else
4671  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4673as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4674See \`config.log' for more details" "$LINENO" 5; }
4675fi
4676
4677ac_ext=c
4678ac_cpp='$CPP $CPPFLAGS'
4679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4685$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4686if ${ac_cv_path_GREP+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if test -z "$GREP"; then
4690  ac_path_GREP_found=false
4691  # Loop through the user's path and test for each of PROGNAME-LIST
4692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_prog in grep ggrep; do
4698    for ac_exec_ext in '' $ac_executable_extensions; do
4699      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4700      as_fn_executable_p "$ac_path_GREP" || continue
4701# Check for GNU ac_path_GREP and select it if it is found.
4702  # Check for GNU $ac_path_GREP
4703case `"$ac_path_GREP" --version 2>&1` in
4704*GNU*)
4705  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706*)
4707  ac_count=0
4708  $as_echo_n 0123456789 >"conftest.in"
4709  while :
4710  do
4711    cat "conftest.in" "conftest.in" >"conftest.tmp"
4712    mv "conftest.tmp" "conftest.in"
4713    cp "conftest.in" "conftest.nl"
4714    $as_echo 'GREP' >> "conftest.nl"
4715    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717    as_fn_arith $ac_count + 1 && ac_count=$as_val
4718    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4719      # Best one so far, save it but keep looking for a better one
4720      ac_cv_path_GREP="$ac_path_GREP"
4721      ac_path_GREP_max=$ac_count
4722    fi
4723    # 10*(2^10) chars as input seems more than enough
4724    test $ac_count -gt 10 && break
4725  done
4726  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727esac
4728
4729      $ac_path_GREP_found && break 3
4730    done
4731  done
4732  done
4733IFS=$as_save_IFS
4734  if test -z "$ac_cv_path_GREP"; then
4735    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736  fi
4737else
4738  ac_cv_path_GREP=$GREP
4739fi
4740
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4743$as_echo "$ac_cv_path_GREP" >&6; }
4744 GREP="$ac_cv_path_GREP"
4745
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4748$as_echo_n "checking for egrep... " >&6; }
4749if ${ac_cv_path_EGREP+:} false; then :
4750  $as_echo_n "(cached) " >&6
4751else
4752  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4753   then ac_cv_path_EGREP="$GREP -E"
4754   else
4755     if test -z "$EGREP"; then
4756  ac_path_EGREP_found=false
4757  # Loop through the user's path and test for each of PROGNAME-LIST
4758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760do
4761  IFS=$as_save_IFS
4762  test -z "$as_dir" && as_dir=.
4763    for ac_prog in egrep; do
4764    for ac_exec_ext in '' $ac_executable_extensions; do
4765      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4766      as_fn_executable_p "$ac_path_EGREP" || continue
4767# Check for GNU ac_path_EGREP and select it if it is found.
4768  # Check for GNU $ac_path_EGREP
4769case `"$ac_path_EGREP" --version 2>&1` in
4770*GNU*)
4771  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772*)
4773  ac_count=0
4774  $as_echo_n 0123456789 >"conftest.in"
4775  while :
4776  do
4777    cat "conftest.in" "conftest.in" >"conftest.tmp"
4778    mv "conftest.tmp" "conftest.in"
4779    cp "conftest.in" "conftest.nl"
4780    $as_echo 'EGREP' >> "conftest.nl"
4781    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783    as_fn_arith $ac_count + 1 && ac_count=$as_val
4784    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4785      # Best one so far, save it but keep looking for a better one
4786      ac_cv_path_EGREP="$ac_path_EGREP"
4787      ac_path_EGREP_max=$ac_count
4788    fi
4789    # 10*(2^10) chars as input seems more than enough
4790    test $ac_count -gt 10 && break
4791  done
4792  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793esac
4794
4795      $ac_path_EGREP_found && break 3
4796    done
4797  done
4798  done
4799IFS=$as_save_IFS
4800  if test -z "$ac_cv_path_EGREP"; then
4801    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802  fi
4803else
4804  ac_cv_path_EGREP=$EGREP
4805fi
4806
4807   fi
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4810$as_echo "$ac_cv_path_EGREP" >&6; }
4811 EGREP="$ac_cv_path_EGREP"
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4815$as_echo_n "checking for ANSI C header files... " >&6; }
4816if ${ac_cv_header_stdc+:} false; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821#include <stdlib.h>
4822#include <stdarg.h>
4823#include <string.h>
4824#include <float.h>
4825
4826int
4827main ()
4828{
4829
4830  ;
4831  return 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_compile "$LINENO"; then :
4835  ac_cv_header_stdc=yes
4836else
4837  ac_cv_header_stdc=no
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840
4841if test $ac_cv_header_stdc = yes; then
4842  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h.  */
4845#include <string.h>
4846
4847_ACEOF
4848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849  $EGREP "memchr" >/dev/null 2>&1; then :
4850
4851else
4852  ac_cv_header_stdc=no
4853fi
4854rm -f conftest*
4855
4856fi
4857
4858if test $ac_cv_header_stdc = yes; then
4859  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861/* end confdefs.h.  */
4862#include <stdlib.h>
4863
4864_ACEOF
4865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866  $EGREP "free" >/dev/null 2>&1; then :
4867
4868else
4869  ac_cv_header_stdc=no
4870fi
4871rm -f conftest*
4872
4873fi
4874
4875if test $ac_cv_header_stdc = yes; then
4876  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4877  if test "$cross_compiling" = yes; then :
4878  :
4879else
4880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882#include <ctype.h>
4883#include <stdlib.h>
4884#if ((' ' & 0x0FF) == 0x020)
4885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887#else
4888# define ISLOWER(c) \
4889		   (('a' <= (c) && (c) <= 'i') \
4890		     || ('j' <= (c) && (c) <= 'r') \
4891		     || ('s' <= (c) && (c) <= 'z'))
4892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4893#endif
4894
4895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4896int
4897main ()
4898{
4899  int i;
4900  for (i = 0; i < 256; i++)
4901    if (XOR (islower (i), ISLOWER (i))
4902	|| toupper (i) != TOUPPER (i))
4903      return 2;
4904  return 0;
4905}
4906_ACEOF
4907if ac_fn_c_try_run "$LINENO"; then :
4908
4909else
4910  ac_cv_header_stdc=no
4911fi
4912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4913  conftest.$ac_objext conftest.beam conftest.$ac_ext
4914fi
4915
4916fi
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4919$as_echo "$ac_cv_header_stdc" >&6; }
4920if test $ac_cv_header_stdc = yes; then
4921
4922$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4923
4924fi
4925
4926# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4927for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4928		  inttypes.h stdint.h unistd.h
4929do :
4930  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4931ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932"
4933if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4934  cat >>confdefs.h <<_ACEOF
4935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4936_ACEOF
4937
4938fi
4939
4940done
4941
4942
4943
4944  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4945if test "x$ac_cv_header_minix_config_h" = xyes; then :
4946  MINIX=yes
4947else
4948  MINIX=
4949fi
4950
4951
4952  if test "$MINIX" = yes; then
4953
4954$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4955
4956
4957$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4958
4959
4960$as_echo "#define _MINIX 1" >>confdefs.h
4961
4962  fi
4963
4964
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4966$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4967if ${ac_cv_safe_to_define___extensions__+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h.  */
4972
4973#         define __EXTENSIONS__ 1
4974          $ac_includes_default
4975int
4976main ()
4977{
4978
4979  ;
4980  return 0;
4981}
4982_ACEOF
4983if ac_fn_c_try_compile "$LINENO"; then :
4984  ac_cv_safe_to_define___extensions__=yes
4985else
4986  ac_cv_safe_to_define___extensions__=no
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4991$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4992  test $ac_cv_safe_to_define___extensions__ = yes &&
4993    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4994
4995  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4996
4997  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4998
4999  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5000
5001  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5002
5003
5004
5005
5006case `pwd` in
5007  *\ * | *\	*)
5008    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5009$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5010esac
5011
5012
5013
5014macro_version='2.4.6'
5015macro_revision='2.4.6'
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029ltmain=$ac_aux_dir/ltmain.sh
5030
5031# Make sure we can run config.sub.
5032$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5033  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5036$as_echo_n "checking build system type... " >&6; }
5037if ${ac_cv_build+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  ac_build_alias=$build_alias
5041test "x$ac_build_alias" = x &&
5042  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5043test "x$ac_build_alias" = x &&
5044  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5045ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5046  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5047
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5050$as_echo "$ac_cv_build" >&6; }
5051case $ac_cv_build in
5052*-*-*) ;;
5053*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5054esac
5055build=$ac_cv_build
5056ac_save_IFS=$IFS; IFS='-'
5057set x $ac_cv_build
5058shift
5059build_cpu=$1
5060build_vendor=$2
5061shift; shift
5062# Remember, the first character of IFS is used to create $*,
5063# except with old shells:
5064build_os=$*
5065IFS=$ac_save_IFS
5066case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5067
5068
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5070$as_echo_n "checking host system type... " >&6; }
5071if ${ac_cv_host+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  if test "x$host_alias" = x; then
5075  ac_cv_host=$ac_cv_build
5076else
5077  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5078    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5079fi
5080
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5083$as_echo "$ac_cv_host" >&6; }
5084case $ac_cv_host in
5085*-*-*) ;;
5086*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5087esac
5088host=$ac_cv_host
5089ac_save_IFS=$IFS; IFS='-'
5090set x $ac_cv_host
5091shift
5092host_cpu=$1
5093host_vendor=$2
5094shift; shift
5095# Remember, the first character of IFS is used to create $*,
5096# except with old shells:
5097host_os=$*
5098IFS=$ac_save_IFS
5099case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5100
5101
5102# Backslashify metacharacters that are still active within
5103# double-quoted strings.
5104sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5105
5106# Same as above, but do not quote variable references.
5107double_quote_subst='s/\(["`\\]\)/\\\1/g'
5108
5109# Sed substitution to delay expansion of an escaped shell variable in a
5110# double_quote_subst'ed string.
5111delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5112
5113# Sed substitution to delay expansion of an escaped single quote.
5114delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5115
5116# Sed substitution to avoid accidental globbing in evaled expressions
5117no_glob_subst='s/\*/\\\*/g'
5118
5119ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5124$as_echo_n "checking how to print strings... " >&6; }
5125# Test print first, because it will be a builtin if present.
5126if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5127   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5128  ECHO='print -r --'
5129elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5130  ECHO='printf %s\n'
5131else
5132  # Use this function as a fallback that always works.
5133  func_fallback_echo ()
5134  {
5135    eval 'cat <<_LTECHO_EOF
5136$1
5137_LTECHO_EOF'
5138  }
5139  ECHO='func_fallback_echo'
5140fi
5141
5142# func_echo_all arg...
5143# Invoke $ECHO with all args, space-separated.
5144func_echo_all ()
5145{
5146    $ECHO ""
5147}
5148
5149case $ECHO in
5150  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5151$as_echo "printf" >&6; } ;;
5152  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5153$as_echo "print -r" >&6; } ;;
5154  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5155$as_echo "cat" >&6; } ;;
5156esac
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5172$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5173if ${ac_cv_path_SED+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5177     for ac_i in 1 2 3 4 5 6 7; do
5178       ac_script="$ac_script$as_nl$ac_script"
5179     done
5180     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5181     { ac_script=; unset ac_script;}
5182     if test -z "$SED"; then
5183  ac_path_SED_found=false
5184  # Loop through the user's path and test for each of PROGNAME-LIST
5185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_prog in sed gsed; do
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5193      as_fn_executable_p "$ac_path_SED" || continue
5194# Check for GNU ac_path_SED and select it if it is found.
5195  # Check for GNU $ac_path_SED
5196case `"$ac_path_SED" --version 2>&1` in
5197*GNU*)
5198  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5199*)
5200  ac_count=0
5201  $as_echo_n 0123456789 >"conftest.in"
5202  while :
5203  do
5204    cat "conftest.in" "conftest.in" >"conftest.tmp"
5205    mv "conftest.tmp" "conftest.in"
5206    cp "conftest.in" "conftest.nl"
5207    $as_echo '' >> "conftest.nl"
5208    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210    as_fn_arith $ac_count + 1 && ac_count=$as_val
5211    if test $ac_count -gt ${ac_path_SED_max-0}; then
5212      # Best one so far, save it but keep looking for a better one
5213      ac_cv_path_SED="$ac_path_SED"
5214      ac_path_SED_max=$ac_count
5215    fi
5216    # 10*(2^10) chars as input seems more than enough
5217    test $ac_count -gt 10 && break
5218  done
5219  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220esac
5221
5222      $ac_path_SED_found && break 3
5223    done
5224  done
5225  done
5226IFS=$as_save_IFS
5227  if test -z "$ac_cv_path_SED"; then
5228    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5229  fi
5230else
5231  ac_cv_path_SED=$SED
5232fi
5233
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5236$as_echo "$ac_cv_path_SED" >&6; }
5237 SED="$ac_cv_path_SED"
5238  rm -f conftest.sed
5239
5240test -z "$SED" && SED=sed
5241Xsed="$SED -e 1s/^X//"
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5254$as_echo_n "checking for fgrep... " >&6; }
5255if ${ac_cv_path_FGREP+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5259   then ac_cv_path_FGREP="$GREP -F"
5260   else
5261     if test -z "$FGREP"; then
5262  ac_path_FGREP_found=false
5263  # Loop through the user's path and test for each of PROGNAME-LIST
5264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267  IFS=$as_save_IFS
5268  test -z "$as_dir" && as_dir=.
5269    for ac_prog in fgrep; do
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5272      as_fn_executable_p "$ac_path_FGREP" || continue
5273# Check for GNU ac_path_FGREP and select it if it is found.
5274  # Check for GNU $ac_path_FGREP
5275case `"$ac_path_FGREP" --version 2>&1` in
5276*GNU*)
5277  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5278*)
5279  ac_count=0
5280  $as_echo_n 0123456789 >"conftest.in"
5281  while :
5282  do
5283    cat "conftest.in" "conftest.in" >"conftest.tmp"
5284    mv "conftest.tmp" "conftest.in"
5285    cp "conftest.in" "conftest.nl"
5286    $as_echo 'FGREP' >> "conftest.nl"
5287    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289    as_fn_arith $ac_count + 1 && ac_count=$as_val
5290    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5291      # Best one so far, save it but keep looking for a better one
5292      ac_cv_path_FGREP="$ac_path_FGREP"
5293      ac_path_FGREP_max=$ac_count
5294    fi
5295    # 10*(2^10) chars as input seems more than enough
5296    test $ac_count -gt 10 && break
5297  done
5298  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301      $ac_path_FGREP_found && break 3
5302    done
5303  done
5304  done
5305IFS=$as_save_IFS
5306  if test -z "$ac_cv_path_FGREP"; then
5307    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5308  fi
5309else
5310  ac_cv_path_FGREP=$FGREP
5311fi
5312
5313   fi
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5316$as_echo "$ac_cv_path_FGREP" >&6; }
5317 FGREP="$ac_cv_path_FGREP"
5318
5319
5320test -z "$GREP" && GREP=grep
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340# Check whether --with-gnu-ld was given.
5341if test "${with_gnu_ld+set}" = set; then :
5342  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5343else
5344  with_gnu_ld=no
5345fi
5346
5347ac_prog=ld
5348if test yes = "$GCC"; then
5349  # Check if gcc -print-prog-name=ld gives a path.
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5351$as_echo_n "checking for ld used by $CC... " >&6; }
5352  case $host in
5353  *-*-mingw*)
5354    # gcc leaves a trailing carriage return, which upsets mingw
5355    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5356  *)
5357    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5358  esac
5359  case $ac_prog in
5360    # Accept absolute paths.
5361    [\\/]* | ?:[\\/]*)
5362      re_direlt='/[^/][^/]*/\.\./'
5363      # Canonicalize the pathname of ld
5364      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5365      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5366	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5367      done
5368      test -z "$LD" && LD=$ac_prog
5369      ;;
5370  "")
5371    # If it fails, then pretend we aren't using GCC.
5372    ac_prog=ld
5373    ;;
5374  *)
5375    # If it is relative, then search for the first ld in PATH.
5376    with_gnu_ld=unknown
5377    ;;
5378  esac
5379elif test yes = "$with_gnu_ld"; then
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5381$as_echo_n "checking for GNU ld... " >&6; }
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5384$as_echo_n "checking for non-GNU ld... " >&6; }
5385fi
5386if ${lt_cv_path_LD+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  if test -z "$LD"; then
5390  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5391  for ac_dir in $PATH; do
5392    IFS=$lt_save_ifs
5393    test -z "$ac_dir" && ac_dir=.
5394    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5395      lt_cv_path_LD=$ac_dir/$ac_prog
5396      # Check to see if the program is GNU ld.  I'd rather use --version,
5397      # but apparently some variants of GNU ld only accept -v.
5398      # Break only if it was the GNU/non-GNU ld that we prefer.
5399      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5400      *GNU* | *'with BFD'*)
5401	test no != "$with_gnu_ld" && break
5402	;;
5403      *)
5404	test yes != "$with_gnu_ld" && break
5405	;;
5406      esac
5407    fi
5408  done
5409  IFS=$lt_save_ifs
5410else
5411  lt_cv_path_LD=$LD # Let the user override the test with a path.
5412fi
5413fi
5414
5415LD=$lt_cv_path_LD
5416if test -n "$LD"; then
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5418$as_echo "$LD" >&6; }
5419else
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5425$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5426if ${lt_cv_prog_gnu_ld+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5430case `$LD -v 2>&1 </dev/null` in
5431*GNU* | *'with BFD'*)
5432  lt_cv_prog_gnu_ld=yes
5433  ;;
5434*)
5435  lt_cv_prog_gnu_ld=no
5436  ;;
5437esac
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5440$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5441with_gnu_ld=$lt_cv_prog_gnu_ld
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5452$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5453if ${lt_cv_path_NM+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  if test -n "$NM"; then
5457  # Let the user override the test.
5458  lt_cv_path_NM=$NM
5459else
5460  lt_nm_to_check=${ac_tool_prefix}nm
5461  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5462    lt_nm_to_check="$lt_nm_to_check nm"
5463  fi
5464  for lt_tmp_nm in $lt_nm_to_check; do
5465    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5466    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5467      IFS=$lt_save_ifs
5468      test -z "$ac_dir" && ac_dir=.
5469      tmp_nm=$ac_dir/$lt_tmp_nm
5470      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5471	# Check to see if the nm accepts a BSD-compat flag.
5472	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5473	#   nm: unknown option "B" ignored
5474	# Tru64's nm complains that /dev/null is an invalid object file
5475	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5476	case $build_os in
5477	mingw*) lt_bad_file=conftest.nm/nofile ;;
5478	*) lt_bad_file=/dev/null ;;
5479	esac
5480	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5481	*$lt_bad_file* | *'Invalid file or object type'*)
5482	  lt_cv_path_NM="$tmp_nm -B"
5483	  break 2
5484	  ;;
5485	*)
5486	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5487	  */dev/null*)
5488	    lt_cv_path_NM="$tmp_nm -p"
5489	    break 2
5490	    ;;
5491	  *)
5492	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5493	    continue # so that we can try to find one that supports BSD flags
5494	    ;;
5495	  esac
5496	  ;;
5497	esac
5498      fi
5499    done
5500    IFS=$lt_save_ifs
5501  done
5502  : ${lt_cv_path_NM=no}
5503fi
5504fi
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5506$as_echo "$lt_cv_path_NM" >&6; }
5507if test no != "$lt_cv_path_NM"; then
5508  NM=$lt_cv_path_NM
5509else
5510  # Didn't find any BSD compatible name lister, look for dumpbin.
5511  if test -n "$DUMPBIN"; then :
5512    # Let the user override the test.
5513  else
5514    if test -n "$ac_tool_prefix"; then
5515  for ac_prog in dumpbin "link -dump"
5516  do
5517    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if ${ac_cv_prog_DUMPBIN+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if test -n "$DUMPBIN"; then
5525  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530  IFS=$as_save_IFS
5531  test -z "$as_dir" && as_dir=.
5532    for ac_exec_ext in '' $ac_executable_extensions; do
5533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536    break 2
5537  fi
5538done
5539  done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544DUMPBIN=$ac_cv_prog_DUMPBIN
5545if test -n "$DUMPBIN"; then
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5547$as_echo "$DUMPBIN" >&6; }
5548else
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553
5554    test -n "$DUMPBIN" && break
5555  done
5556fi
5557if test -z "$DUMPBIN"; then
5558  ac_ct_DUMPBIN=$DUMPBIN
5559  for ac_prog in dumpbin "link -dump"
5560do
5561  # Extract the first word of "$ac_prog", so it can be a program name with args.
5562set dummy $ac_prog; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  if test -n "$ac_ct_DUMPBIN"; then
5569  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576    for ac_exec_ext in '' $ac_executable_extensions; do
5577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5589if test -n "$ac_ct_DUMPBIN"; then
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5591$as_echo "$ac_ct_DUMPBIN" >&6; }
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597
5598  test -n "$ac_ct_DUMPBIN" && break
5599done
5600
5601  if test "x$ac_ct_DUMPBIN" = x; then
5602    DUMPBIN=":"
5603  else
5604    case $cross_compiling:$ac_tool_warned in
5605yes:)
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608ac_tool_warned=yes ;;
5609esac
5610    DUMPBIN=$ac_ct_DUMPBIN
5611  fi
5612fi
5613
5614    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5615    *COFF*)
5616      DUMPBIN="$DUMPBIN -symbols -headers"
5617      ;;
5618    *)
5619      DUMPBIN=:
5620      ;;
5621    esac
5622  fi
5623
5624  if test : != "$DUMPBIN"; then
5625    NM=$DUMPBIN
5626  fi
5627fi
5628test -z "$NM" && NM=nm
5629
5630
5631
5632
5633
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5636$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5637if ${lt_cv_nm_interface+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  lt_cv_nm_interface="BSD nm"
5641  echo "int some_variable = 0;" > conftest.$ac_ext
5642  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5643  (eval "$ac_compile" 2>conftest.err)
5644  cat conftest.err >&5
5645  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5646  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5647  cat conftest.err >&5
5648  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5649  cat conftest.out >&5
5650  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5651    lt_cv_nm_interface="MS dumpbin"
5652  fi
5653  rm -f conftest*
5654fi
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5656$as_echo "$lt_cv_nm_interface" >&6; }
5657
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5659$as_echo_n "checking whether ln -s works... " >&6; }
5660LN_S=$as_ln_s
5661if test "$LN_S" = "ln -s"; then
5662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5663$as_echo "yes" >&6; }
5664else
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5666$as_echo "no, using $LN_S" >&6; }
5667fi
5668
5669# find the maximum length of command line arguments
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5671$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5672if ${lt_cv_sys_max_cmd_len+:} false; then :
5673  $as_echo_n "(cached) " >&6
5674else
5675    i=0
5676  teststring=ABCD
5677
5678  case $build_os in
5679  msdosdjgpp*)
5680    # On DJGPP, this test can blow up pretty badly due to problems in libc
5681    # (any single argument exceeding 2000 bytes causes a buffer overrun
5682    # during glob expansion).  Even if it were fixed, the result of this
5683    # check would be larger than it should be.
5684    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5685    ;;
5686
5687  gnu*)
5688    # Under GNU Hurd, this test is not required because there is
5689    # no limit to the length of command line arguments.
5690    # Libtool will interpret -1 as no limit whatsoever
5691    lt_cv_sys_max_cmd_len=-1;
5692    ;;
5693
5694  cygwin* | mingw* | cegcc*)
5695    # On Win9x/ME, this test blows up -- it succeeds, but takes
5696    # about 5 minutes as the teststring grows exponentially.
5697    # Worse, since 9x/ME are not pre-emptively multitasking,
5698    # you end up with a "frozen" computer, even though with patience
5699    # the test eventually succeeds (with a max line length of 256k).
5700    # Instead, let's just punt: use the minimum linelength reported by
5701    # all of the supported platforms: 8192 (on NT/2K/XP).
5702    lt_cv_sys_max_cmd_len=8192;
5703    ;;
5704
5705  mint*)
5706    # On MiNT this can take a long time and run out of memory.
5707    lt_cv_sys_max_cmd_len=8192;
5708    ;;
5709
5710  amigaos*)
5711    # On AmigaOS with pdksh, this test takes hours, literally.
5712    # So we just punt and use a minimum line length of 8192.
5713    lt_cv_sys_max_cmd_len=8192;
5714    ;;
5715
5716  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5717    # This has been around since 386BSD, at least.  Likely further.
5718    if test -x /sbin/sysctl; then
5719      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5720    elif test -x /usr/sbin/sysctl; then
5721      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5722    else
5723      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5724    fi
5725    # And add a safety zone
5726    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5727    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5728    ;;
5729
5730  interix*)
5731    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5732    lt_cv_sys_max_cmd_len=196608
5733    ;;
5734
5735  os2*)
5736    # The test takes a long time on OS/2.
5737    lt_cv_sys_max_cmd_len=8192
5738    ;;
5739
5740  osf*)
5741    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5742    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5743    # nice to cause kernel panics so lets avoid the loop below.
5744    # First set a reasonable default.
5745    lt_cv_sys_max_cmd_len=16384
5746    #
5747    if test -x /sbin/sysconfig; then
5748      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5749        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5750      esac
5751    fi
5752    ;;
5753  sco3.2v5*)
5754    lt_cv_sys_max_cmd_len=102400
5755    ;;
5756  sysv5* | sco5v6* | sysv4.2uw2*)
5757    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5758    if test -n "$kargmax"; then
5759      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5760    else
5761      lt_cv_sys_max_cmd_len=32768
5762    fi
5763    ;;
5764  *)
5765    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5766    if test -n "$lt_cv_sys_max_cmd_len" && \
5767       test undefined != "$lt_cv_sys_max_cmd_len"; then
5768      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770    else
5771      # Make teststring a little bigger before we do anything with it.
5772      # a 1K string should be a reasonable start.
5773      for i in 1 2 3 4 5 6 7 8; do
5774        teststring=$teststring$teststring
5775      done
5776      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5777      # If test is not a shell built-in, we'll probably end up computing a
5778      # maximum length that is only half of the actual maximum length, but
5779      # we can't tell.
5780      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5781	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5782	      test 17 != "$i" # 1/2 MB should be enough
5783      do
5784        i=`expr $i + 1`
5785        teststring=$teststring$teststring
5786      done
5787      # Only check the string length outside the loop.
5788      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5789      teststring=
5790      # Add a significant safety factor because C++ compilers can tack on
5791      # massive amounts of additional arguments before passing them to the
5792      # linker.  It appears as though 1/2 is a usable value.
5793      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5794    fi
5795    ;;
5796  esac
5797
5798fi
5799
5800if test -n "$lt_cv_sys_max_cmd_len"; then
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5802$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5803else
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5805$as_echo "none" >&6; }
5806fi
5807max_cmd_len=$lt_cv_sys_max_cmd_len
5808
5809
5810
5811
5812
5813
5814: ${CP="cp -f"}
5815: ${MV="mv -f"}
5816: ${RM="rm -f"}
5817
5818if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5819  lt_unset=unset
5820else
5821  lt_unset=false
5822fi
5823
5824
5825
5826
5827
5828# test EBCDIC or ASCII
5829case `echo X|tr X '\101'` in
5830 A) # ASCII based system
5831    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5832  lt_SP2NL='tr \040 \012'
5833  lt_NL2SP='tr \015\012 \040\040'
5834  ;;
5835 *) # EBCDIC based system
5836  lt_SP2NL='tr \100 \n'
5837  lt_NL2SP='tr \r\n \100\100'
5838  ;;
5839esac
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5850$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5851if ${lt_cv_to_host_file_cmd+:} false; then :
5852  $as_echo_n "(cached) " >&6
5853else
5854  case $host in
5855  *-*-mingw* )
5856    case $build in
5857      *-*-mingw* ) # actually msys
5858        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5859        ;;
5860      *-*-cygwin* )
5861        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5862        ;;
5863      * ) # otherwise, assume *nix
5864        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5865        ;;
5866    esac
5867    ;;
5868  *-*-cygwin* )
5869    case $build in
5870      *-*-mingw* ) # actually msys
5871        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5872        ;;
5873      *-*-cygwin* )
5874        lt_cv_to_host_file_cmd=func_convert_file_noop
5875        ;;
5876      * ) # otherwise, assume *nix
5877        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5878        ;;
5879    esac
5880    ;;
5881  * ) # unhandled hosts (and "normal" native builds)
5882    lt_cv_to_host_file_cmd=func_convert_file_noop
5883    ;;
5884esac
5885
5886fi
5887
5888to_host_file_cmd=$lt_cv_to_host_file_cmd
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5890$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5891
5892
5893
5894
5895
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5897$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5898if ${lt_cv_to_tool_file_cmd+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  #assume ordinary cross tools, or native build.
5902lt_cv_to_tool_file_cmd=func_convert_file_noop
5903case $host in
5904  *-*-mingw* )
5905    case $build in
5906      *-*-mingw* ) # actually msys
5907        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5908        ;;
5909    esac
5910    ;;
5911esac
5912
5913fi
5914
5915to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5917$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5918
5919
5920
5921
5922
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5924$as_echo_n "checking for $LD option to reload object files... " >&6; }
5925if ${lt_cv_ld_reload_flag+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  lt_cv_ld_reload_flag='-r'
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5931$as_echo "$lt_cv_ld_reload_flag" >&6; }
5932reload_flag=$lt_cv_ld_reload_flag
5933case $reload_flag in
5934"" | " "*) ;;
5935*) reload_flag=" $reload_flag" ;;
5936esac
5937reload_cmds='$LD$reload_flag -o $output$reload_objs'
5938case $host_os in
5939  cygwin* | mingw* | pw32* | cegcc*)
5940    if test yes != "$GCC"; then
5941      reload_cmds=false
5942    fi
5943    ;;
5944  darwin*)
5945    if test yes = "$GCC"; then
5946      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5947    else
5948      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5949    fi
5950    ;;
5951esac
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961if test -n "$ac_tool_prefix"; then
5962  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5963set dummy ${ac_tool_prefix}objdump; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if ${ac_cv_prog_OBJDUMP+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  if test -n "$OBJDUMP"; then
5970  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975  IFS=$as_save_IFS
5976  test -z "$as_dir" && as_dir=.
5977    for ac_exec_ext in '' $ac_executable_extensions; do
5978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981    break 2
5982  fi
5983done
5984  done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989OBJDUMP=$ac_cv_prog_OBJDUMP
5990if test -n "$OBJDUMP"; then
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5992$as_echo "$OBJDUMP" >&6; }
5993else
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998
5999fi
6000if test -z "$ac_cv_prog_OBJDUMP"; then
6001  ac_ct_OBJDUMP=$OBJDUMP
6002  # Extract the first word of "objdump", so it can be a program name with args.
6003set dummy objdump; ac_word=$2
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
6006if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  if test -n "$ac_ct_OBJDUMP"; then
6010  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6011else
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015  IFS=$as_save_IFS
6016  test -z "$as_dir" && as_dir=.
6017    for ac_exec_ext in '' $ac_executable_extensions; do
6018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021    break 2
6022  fi
6023done
6024  done
6025IFS=$as_save_IFS
6026
6027fi
6028fi
6029ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6030if test -n "$ac_ct_OBJDUMP"; then
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6032$as_echo "$ac_ct_OBJDUMP" >&6; }
6033else
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035$as_echo "no" >&6; }
6036fi
6037
6038  if test "x$ac_ct_OBJDUMP" = x; then
6039    OBJDUMP="false"
6040  else
6041    case $cross_compiling:$ac_tool_warned in
6042yes:)
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6045ac_tool_warned=yes ;;
6046esac
6047    OBJDUMP=$ac_ct_OBJDUMP
6048  fi
6049else
6050  OBJDUMP="$ac_cv_prog_OBJDUMP"
6051fi
6052
6053test -z "$OBJDUMP" && OBJDUMP=objdump
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6064$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6065if ${lt_cv_deplibs_check_method+:} false; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  lt_cv_file_magic_cmd='$MAGIC_CMD'
6069lt_cv_file_magic_test_file=
6070lt_cv_deplibs_check_method='unknown'
6071# Need to set the preceding variable on all platforms that support
6072# interlibrary dependencies.
6073# 'none' -- dependencies not supported.
6074# 'unknown' -- same as none, but documents that we really don't know.
6075# 'pass_all' -- all dependencies passed with no checks.
6076# 'test_compile' -- check by making test program.
6077# 'file_magic [[regex]]' -- check by looking for files in library path
6078# that responds to the $file_magic_cmd with a given extended regex.
6079# If you have 'file' or equivalent on your system and you're not sure
6080# whether 'pass_all' will *always* work, you probably want this one.
6081
6082case $host_os in
6083aix[4-9]*)
6084  lt_cv_deplibs_check_method=pass_all
6085  ;;
6086
6087beos*)
6088  lt_cv_deplibs_check_method=pass_all
6089  ;;
6090
6091bsdi[45]*)
6092  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6093  lt_cv_file_magic_cmd='/usr/bin/file -L'
6094  lt_cv_file_magic_test_file=/shlib/libc.so
6095  ;;
6096
6097cygwin*)
6098  # func_win32_libid is a shell function defined in ltmain.sh
6099  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6100  lt_cv_file_magic_cmd='func_win32_libid'
6101  ;;
6102
6103mingw* | pw32*)
6104  # Base MSYS/MinGW do not provide the 'file' command needed by
6105  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6106  # unless we find 'file', for example because we are cross-compiling.
6107  if ( file / ) >/dev/null 2>&1; then
6108    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6109    lt_cv_file_magic_cmd='func_win32_libid'
6110  else
6111    # Keep this pattern in sync with the one in func_win32_libid.
6112    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6113    lt_cv_file_magic_cmd='$OBJDUMP -f'
6114  fi
6115  ;;
6116
6117cegcc*)
6118  # use the weaker test based on 'objdump'. See mingw*.
6119  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6120  lt_cv_file_magic_cmd='$OBJDUMP -f'
6121  ;;
6122
6123darwin* | rhapsody*)
6124  lt_cv_deplibs_check_method=pass_all
6125  ;;
6126
6127freebsd* | dragonfly*)
6128  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6129    case $host_cpu in
6130    i*86 )
6131      # Not sure whether the presence of OpenBSD here was a mistake.
6132      # Let's accept both of them until this is cleared up.
6133      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6134      lt_cv_file_magic_cmd=/usr/bin/file
6135      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6136      ;;
6137    esac
6138  else
6139    lt_cv_deplibs_check_method=pass_all
6140  fi
6141  ;;
6142
6143haiku*)
6144  lt_cv_deplibs_check_method=pass_all
6145  ;;
6146
6147hpux10.20* | hpux11*)
6148  lt_cv_file_magic_cmd=/usr/bin/file
6149  case $host_cpu in
6150  ia64*)
6151    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6152    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6153    ;;
6154  hppa*64*)
6155    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]'
6156    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6157    ;;
6158  *)
6159    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6160    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6161    ;;
6162  esac
6163  ;;
6164
6165interix[3-9]*)
6166  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6167  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6168  ;;
6169
6170irix5* | irix6* | nonstopux*)
6171  case $LD in
6172  *-32|*"-32 ") libmagic=32-bit;;
6173  *-n32|*"-n32 ") libmagic=N32;;
6174  *-64|*"-64 ") libmagic=64-bit;;
6175  *) libmagic=never-match;;
6176  esac
6177  lt_cv_deplibs_check_method=pass_all
6178  ;;
6179
6180# This must be glibc/ELF.
6181linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185netbsd*)
6186  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6187    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6188  else
6189    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6190  fi
6191  ;;
6192
6193newos6*)
6194  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6195  lt_cv_file_magic_cmd=/usr/bin/file
6196  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6197  ;;
6198
6199*nto* | *qnx*)
6200  lt_cv_deplibs_check_method=pass_all
6201  ;;
6202
6203openbsd* | bitrig*)
6204  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6205    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6206  else
6207    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6208  fi
6209  ;;
6210
6211osf3* | osf4* | osf5*)
6212  lt_cv_deplibs_check_method=pass_all
6213  ;;
6214
6215rdos*)
6216  lt_cv_deplibs_check_method=pass_all
6217  ;;
6218
6219solaris*)
6220  lt_cv_deplibs_check_method=pass_all
6221  ;;
6222
6223sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6224  lt_cv_deplibs_check_method=pass_all
6225  ;;
6226
6227sysv4 | sysv4.3*)
6228  case $host_vendor in
6229  motorola)
6230    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]'
6231    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6232    ;;
6233  ncr)
6234    lt_cv_deplibs_check_method=pass_all
6235    ;;
6236  sequent)
6237    lt_cv_file_magic_cmd='/bin/file'
6238    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6239    ;;
6240  sni)
6241    lt_cv_file_magic_cmd='/bin/file'
6242    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6243    lt_cv_file_magic_test_file=/lib/libc.so
6244    ;;
6245  siemens)
6246    lt_cv_deplibs_check_method=pass_all
6247    ;;
6248  pc)
6249    lt_cv_deplibs_check_method=pass_all
6250    ;;
6251  esac
6252  ;;
6253
6254tpf*)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257os2*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260esac
6261
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6264$as_echo "$lt_cv_deplibs_check_method" >&6; }
6265
6266file_magic_glob=
6267want_nocaseglob=no
6268if test "$build" = "$host"; then
6269  case $host_os in
6270  mingw* | pw32*)
6271    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6272      want_nocaseglob=yes
6273    else
6274      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6275    fi
6276    ;;
6277  esac
6278fi
6279
6280file_magic_cmd=$lt_cv_file_magic_cmd
6281deplibs_check_method=$lt_cv_deplibs_check_method
6282test -z "$deplibs_check_method" && deplibs_check_method=unknown
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305if test -n "$ac_tool_prefix"; then
6306  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6307set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_DLLTOOL+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -n "$DLLTOOL"; then
6314  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333DLLTOOL=$ac_cv_prog_DLLTOOL
6334if test -n "$DLLTOOL"; then
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6336$as_echo "$DLLTOOL" >&6; }
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342
6343fi
6344if test -z "$ac_cv_prog_DLLTOOL"; then
6345  ac_ct_DLLTOOL=$DLLTOOL
6346  # Extract the first word of "dlltool", so it can be a program name with args.
6347set dummy dlltool; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  if test -n "$ac_ct_DLLTOOL"; then
6354  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368  done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6374if test -n "$ac_ct_DLLTOOL"; then
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6376$as_echo "$ac_ct_DLLTOOL" >&6; }
6377else
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382  if test "x$ac_ct_DLLTOOL" = x; then
6383    DLLTOOL="false"
6384  else
6385    case $cross_compiling:$ac_tool_warned in
6386yes:)
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389ac_tool_warned=yes ;;
6390esac
6391    DLLTOOL=$ac_ct_DLLTOOL
6392  fi
6393else
6394  DLLTOOL="$ac_cv_prog_DLLTOOL"
6395fi
6396
6397test -z "$DLLTOOL" && DLLTOOL=dlltool
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6409$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6410if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  lt_cv_sharedlib_from_linklib_cmd='unknown'
6414
6415case $host_os in
6416cygwin* | mingw* | pw32* | cegcc*)
6417  # two different shell functions defined in ltmain.sh;
6418  # decide which one to use based on capabilities of $DLLTOOL
6419  case `$DLLTOOL --help 2>&1` in
6420  *--identify-strict*)
6421    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6422    ;;
6423  *)
6424    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6425    ;;
6426  esac
6427  ;;
6428*)
6429  # fallback: assume linklib IS sharedlib
6430  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6431  ;;
6432esac
6433
6434fi
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6436$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6437sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6438test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6439
6440
6441
6442
6443
6444
6445
6446if test -n "$ac_tool_prefix"; then
6447  for ac_prog in ar
6448  do
6449    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6450set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
6453if ${ac_cv_prog_AR+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  if test -n "$AR"; then
6457  ac_cv_prog_AR="$AR" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  test -z "$as_dir" && as_dir=.
6464    for ac_exec_ext in '' $ac_executable_extensions; do
6465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468    break 2
6469  fi
6470done
6471  done
6472IFS=$as_save_IFS
6473
6474fi
6475fi
6476AR=$ac_cv_prog_AR
6477if test -n "$AR"; then
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6479$as_echo "$AR" >&6; }
6480else
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
6483fi
6484
6485
6486    test -n "$AR" && break
6487  done
6488fi
6489if test -z "$AR"; then
6490  ac_ct_AR=$AR
6491  for ac_prog in ar
6492do
6493  # Extract the first word of "$ac_prog", so it can be a program name with args.
6494set dummy $ac_prog; ac_word=$2
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496$as_echo_n "checking for $ac_word... " >&6; }
6497if ${ac_cv_prog_ac_ct_AR+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  if test -n "$ac_ct_AR"; then
6501  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506  IFS=$as_save_IFS
6507  test -z "$as_dir" && as_dir=.
6508    for ac_exec_ext in '' $ac_executable_extensions; do
6509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510    ac_cv_prog_ac_ct_AR="$ac_prog"
6511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512    break 2
6513  fi
6514done
6515  done
6516IFS=$as_save_IFS
6517
6518fi
6519fi
6520ac_ct_AR=$ac_cv_prog_ac_ct_AR
6521if test -n "$ac_ct_AR"; then
6522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6523$as_echo "$ac_ct_AR" >&6; }
6524else
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
6527fi
6528
6529
6530  test -n "$ac_ct_AR" && break
6531done
6532
6533  if test "x$ac_ct_AR" = x; then
6534    AR="false"
6535  else
6536    case $cross_compiling:$ac_tool_warned in
6537yes:)
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540ac_tool_warned=yes ;;
6541esac
6542    AR=$ac_ct_AR
6543  fi
6544fi
6545
6546: ${AR=ar}
6547: ${AR_FLAGS=cru}
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6560$as_echo_n "checking for archiver @FILE support... " >&6; }
6561if ${lt_cv_ar_at_file+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  lt_cv_ar_at_file=no
6565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h.  */
6567
6568int
6569main ()
6570{
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  echo conftest.$ac_objext > conftest.lst
6578      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6579      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6580  (eval $lt_ar_try) 2>&5
6581  ac_status=$?
6582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583  test $ac_status = 0; }
6584      if test 0 -eq "$ac_status"; then
6585	# Ensure the archiver fails upon bogus file names.
6586	rm -f conftest.$ac_objext libconftest.a
6587	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6588  (eval $lt_ar_try) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591  test $ac_status = 0; }
6592	if test 0 -ne "$ac_status"; then
6593          lt_cv_ar_at_file=@
6594        fi
6595      fi
6596      rm -f conftest.* libconftest.a
6597
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6603$as_echo "$lt_cv_ar_at_file" >&6; }
6604
6605if test no = "$lt_cv_ar_at_file"; then
6606  archiver_list_spec=
6607else
6608  archiver_list_spec=$lt_cv_ar_at_file
6609fi
6610
6611
6612
6613
6614
6615
6616
6617if test -n "$ac_tool_prefix"; then
6618  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6619set dummy ${ac_tool_prefix}strip; ac_word=$2
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
6622if ${ac_cv_prog_STRIP+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  if test -n "$STRIP"; then
6626  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631  IFS=$as_save_IFS
6632  test -z "$as_dir" && as_dir=.
6633    for ac_exec_ext in '' $ac_executable_extensions; do
6634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637    break 2
6638  fi
6639done
6640  done
6641IFS=$as_save_IFS
6642
6643fi
6644fi
6645STRIP=$ac_cv_prog_STRIP
6646if test -n "$STRIP"; then
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6648$as_echo "$STRIP" >&6; }
6649else
6650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
6652fi
6653
6654
6655fi
6656if test -z "$ac_cv_prog_STRIP"; then
6657  ac_ct_STRIP=$STRIP
6658  # Extract the first word of "strip", so it can be a program name with args.
6659set dummy strip; ac_word=$2
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661$as_echo_n "checking for $ac_word... " >&6; }
6662if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  if test -n "$ac_ct_STRIP"; then
6666  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6667else
6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671  IFS=$as_save_IFS
6672  test -z "$as_dir" && as_dir=.
6673    for ac_exec_ext in '' $ac_executable_extensions; do
6674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675    ac_cv_prog_ac_ct_STRIP="strip"
6676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677    break 2
6678  fi
6679done
6680  done
6681IFS=$as_save_IFS
6682
6683fi
6684fi
6685ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6686if test -n "$ac_ct_STRIP"; then
6687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6688$as_echo "$ac_ct_STRIP" >&6; }
6689else
6690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691$as_echo "no" >&6; }
6692fi
6693
6694  if test "x$ac_ct_STRIP" = x; then
6695    STRIP=":"
6696  else
6697    case $cross_compiling:$ac_tool_warned in
6698yes:)
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701ac_tool_warned=yes ;;
6702esac
6703    STRIP=$ac_ct_STRIP
6704  fi
6705else
6706  STRIP="$ac_cv_prog_STRIP"
6707fi
6708
6709test -z "$STRIP" && STRIP=:
6710
6711
6712
6713
6714
6715
6716if test -n "$ac_tool_prefix"; then
6717  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6718set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_RANLIB+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  if test -n "$RANLIB"; then
6725  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732    for ac_exec_ext in '' $ac_executable_extensions; do
6733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739  done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744RANLIB=$ac_cv_prog_RANLIB
6745if test -n "$RANLIB"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6747$as_echo "$RANLIB" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754fi
6755if test -z "$ac_cv_prog_RANLIB"; then
6756  ac_ct_RANLIB=$RANLIB
6757  # Extract the first word of "ranlib", so it can be a program name with args.
6758set dummy ranlib; ac_word=$2
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  if test -n "$ac_ct_RANLIB"; then
6765  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  test -z "$as_dir" && as_dir=.
6772    for ac_exec_ext in '' $ac_executable_extensions; do
6773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774    ac_cv_prog_ac_ct_RANLIB="ranlib"
6775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776    break 2
6777  fi
6778done
6779  done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6785if test -n "$ac_ct_RANLIB"; then
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6787$as_echo "$ac_ct_RANLIB" >&6; }
6788else
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793  if test "x$ac_ct_RANLIB" = x; then
6794    RANLIB=":"
6795  else
6796    case $cross_compiling:$ac_tool_warned in
6797yes:)
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800ac_tool_warned=yes ;;
6801esac
6802    RANLIB=$ac_ct_RANLIB
6803  fi
6804else
6805  RANLIB="$ac_cv_prog_RANLIB"
6806fi
6807
6808test -z "$RANLIB" && RANLIB=:
6809
6810
6811
6812
6813
6814
6815# Determine commands to create old-style static archives.
6816old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6817old_postinstall_cmds='chmod 644 $oldlib'
6818old_postuninstall_cmds=
6819
6820if test -n "$RANLIB"; then
6821  case $host_os in
6822  bitrig* | openbsd*)
6823    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6824    ;;
6825  *)
6826    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6827    ;;
6828  esac
6829  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6830fi
6831
6832case $host_os in
6833  darwin*)
6834    lock_old_archive_extraction=yes ;;
6835  *)
6836    lock_old_archive_extraction=no ;;
6837esac
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877# If no C compiler was specified, use CC.
6878LTCC=${LTCC-"$CC"}
6879
6880# If no C compiler flags were specified, use CFLAGS.
6881LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6882
6883# Allow CC to be a program name with arguments.
6884compiler=$CC
6885
6886
6887# Check for command to grab the raw symbol name followed by C symbol from nm.
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6889$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6890if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893
6894# These are sane defaults that work on at least a few old systems.
6895# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6896
6897# Character class describing NM global symbol codes.
6898symcode='[BCDEGRST]'
6899
6900# Regexp to match symbols that can be accessed directly from C.
6901sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6902
6903# Define system-specific variables.
6904case $host_os in
6905aix*)
6906  symcode='[BCDT]'
6907  ;;
6908cygwin* | mingw* | pw32* | cegcc*)
6909  symcode='[ABCDGISTW]'
6910  ;;
6911hpux*)
6912  if test ia64 = "$host_cpu"; then
6913    symcode='[ABCDEGRST]'
6914  fi
6915  ;;
6916irix* | nonstopux*)
6917  symcode='[BCDEGRST]'
6918  ;;
6919osf*)
6920  symcode='[BCDEGQRST]'
6921  ;;
6922solaris*)
6923  symcode='[BDRT]'
6924  ;;
6925sco3.2v5*)
6926  symcode='[DT]'
6927  ;;
6928sysv4.2uw2*)
6929  symcode='[DT]'
6930  ;;
6931sysv5* | sco5v6* | unixware* | OpenUNIX*)
6932  symcode='[ABDT]'
6933  ;;
6934sysv4)
6935  symcode='[DFNSTU]'
6936  ;;
6937esac
6938
6939# If we're using GNU nm, then use its standard symbol codes.
6940case `$NM -V 2>&1` in
6941*GNU* | *'with BFD'*)
6942  symcode='[ABCDGIRSTW]' ;;
6943esac
6944
6945if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6946  # Gets list of data symbols to import.
6947  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6948  # Adjust the below global symbol transforms to fixup imported variables.
6949  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6950  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6951  lt_c_name_lib_hook="\
6952  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6953  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6954else
6955  # Disable hooks by default.
6956  lt_cv_sys_global_symbol_to_import=
6957  lt_cdecl_hook=
6958  lt_c_name_hook=
6959  lt_c_name_lib_hook=
6960fi
6961
6962# Transform an extracted symbol line into a proper C declaration.
6963# Some systems (esp. on ia64) link data and code symbols differently,
6964# so use this general approach.
6965lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6966$lt_cdecl_hook\
6967" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6968" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6969
6970# Transform an extracted symbol line into symbol name and symbol address
6971lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6972$lt_c_name_hook\
6973" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6974" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6975
6976# Transform an extracted symbol line into symbol name with lib prefix and
6977# symbol address.
6978lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6979$lt_c_name_lib_hook\
6980" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6981" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6982" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6983
6984# Handle CRLF in mingw tool chain
6985opt_cr=
6986case $build_os in
6987mingw*)
6988  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6989  ;;
6990esac
6991
6992# Try without a prefix underscore, then with it.
6993for ac_symprfx in "" "_"; do
6994
6995  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6996  symxfrm="\\1 $ac_symprfx\\2 \\2"
6997
6998  # Write the raw and C identifiers.
6999  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7000    # Fake it for dumpbin and say T for any non-static function,
7001    # D for any global variable and I for any imported variable.
7002    # Also find C++ and __fastcall symbols from MSVC++,
7003    # which start with @ or ?.
7004    lt_cv_sys_global_symbol_pipe="$AWK '"\
7005"     {last_section=section; section=\$ 3};"\
7006"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7007"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7008"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7009"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7010"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7011"     \$ 0!~/External *\|/{next};"\
7012"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7013"     {if(hide[section]) next};"\
7014"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7015"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7016"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7017"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7018"     ' prfx=^$ac_symprfx"
7019  else
7020    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7021  fi
7022  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7023
7024  # Check to see that the pipe works correctly.
7025  pipe_works=no
7026
7027  rm -f conftest*
7028  cat > conftest.$ac_ext <<_LT_EOF
7029#ifdef __cplusplus
7030extern "C" {
7031#endif
7032char nm_test_var;
7033void nm_test_func(void);
7034void nm_test_func(void){}
7035#ifdef __cplusplus
7036}
7037#endif
7038int main(){nm_test_var='a';nm_test_func();return(0);}
7039_LT_EOF
7040
7041  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042  (eval $ac_compile) 2>&5
7043  ac_status=$?
7044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045  test $ac_status = 0; }; then
7046    # Now try to grab the symbols.
7047    nlist=conftest.nm
7048    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7049  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7050  ac_status=$?
7051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052  test $ac_status = 0; } && test -s "$nlist"; then
7053      # Try sorting and uniquifying the output.
7054      if sort "$nlist" | uniq > "$nlist"T; then
7055	mv -f "$nlist"T "$nlist"
7056      else
7057	rm -f "$nlist"T
7058      fi
7059
7060      # Make sure that we snagged all the symbols we need.
7061      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7062	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7063	  cat <<_LT_EOF > conftest.$ac_ext
7064/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7065#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7066/* DATA imports from DLLs on WIN32 can't be const, because runtime
7067   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7068# define LT_DLSYM_CONST
7069#elif defined __osf__
7070/* This system does not cope well with relocations in const data.  */
7071# define LT_DLSYM_CONST
7072#else
7073# define LT_DLSYM_CONST const
7074#endif
7075
7076#ifdef __cplusplus
7077extern "C" {
7078#endif
7079
7080_LT_EOF
7081	  # Now generate the symbol file.
7082	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7083
7084	  cat <<_LT_EOF >> conftest.$ac_ext
7085
7086/* The mapping between symbol names and symbols.  */
7087LT_DLSYM_CONST struct {
7088  const char *name;
7089  void       *address;
7090}
7091lt__PROGRAM__LTX_preloaded_symbols[] =
7092{
7093  { "@PROGRAM@", (void *) 0 },
7094_LT_EOF
7095	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7096	  cat <<\_LT_EOF >> conftest.$ac_ext
7097  {0, (void *) 0}
7098};
7099
7100/* This works around a problem in FreeBSD linker */
7101#ifdef FREEBSD_WORKAROUND
7102static const void *lt_preloaded_setup() {
7103  return lt__PROGRAM__LTX_preloaded_symbols;
7104}
7105#endif
7106
7107#ifdef __cplusplus
7108}
7109#endif
7110_LT_EOF
7111	  # Now try linking the two files.
7112	  mv conftest.$ac_objext conftstm.$ac_objext
7113	  lt_globsym_save_LIBS=$LIBS
7114	  lt_globsym_save_CFLAGS=$CFLAGS
7115	  LIBS=conftstm.$ac_objext
7116	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7117	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7118  (eval $ac_link) 2>&5
7119  ac_status=$?
7120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7122	    pipe_works=yes
7123	  fi
7124	  LIBS=$lt_globsym_save_LIBS
7125	  CFLAGS=$lt_globsym_save_CFLAGS
7126	else
7127	  echo "cannot find nm_test_func in $nlist" >&5
7128	fi
7129      else
7130	echo "cannot find nm_test_var in $nlist" >&5
7131      fi
7132    else
7133      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7134    fi
7135  else
7136    echo "$progname: failed program was:" >&5
7137    cat conftest.$ac_ext >&5
7138  fi
7139  rm -rf conftest* conftst*
7140
7141  # Do not use the global_symbol_pipe unless it works.
7142  if test yes = "$pipe_works"; then
7143    break
7144  else
7145    lt_cv_sys_global_symbol_pipe=
7146  fi
7147done
7148
7149fi
7150
7151if test -z "$lt_cv_sys_global_symbol_pipe"; then
7152  lt_cv_sys_global_symbol_to_cdecl=
7153fi
7154if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7156$as_echo "failed" >&6; }
7157else
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7159$as_echo "ok" >&6; }
7160fi
7161
7162# Response file support.
7163if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7164  nm_file_list_spec='@'
7165elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7166  nm_file_list_spec='@'
7167fi
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7206$as_echo_n "checking for sysroot... " >&6; }
7207
7208# Check whether --with-sysroot was given.
7209if test "${with_sysroot+set}" = set; then :
7210  withval=$with_sysroot;
7211else
7212  with_sysroot=no
7213fi
7214
7215
7216lt_sysroot=
7217case $with_sysroot in #(
7218 yes)
7219   if test yes = "$GCC"; then
7220     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7221   fi
7222   ;; #(
7223 /*)
7224   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7225   ;; #(
7226 no|'')
7227   ;; #(
7228 *)
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7230$as_echo "$with_sysroot" >&6; }
7231   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7232   ;;
7233esac
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7236$as_echo "${lt_sysroot:-no}" >&6; }
7237
7238
7239
7240
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7243$as_echo_n "checking for a working dd... " >&6; }
7244if ${ac_cv_path_lt_DD+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  printf 0123456789abcdef0123456789abcdef >conftest.i
7248cat conftest.i conftest.i >conftest2.i
7249: ${lt_DD:=$DD}
7250if test -z "$lt_DD"; then
7251  ac_path_lt_DD_found=false
7252  # Loop through the user's path and test for each of PROGNAME-LIST
7253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256  IFS=$as_save_IFS
7257  test -z "$as_dir" && as_dir=.
7258    for ac_prog in dd; do
7259    for ac_exec_ext in '' $ac_executable_extensions; do
7260      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7261      as_fn_executable_p "$ac_path_lt_DD" || continue
7262if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7263  cmp -s conftest.i conftest.out \
7264  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7265fi
7266      $ac_path_lt_DD_found && break 3
7267    done
7268  done
7269  done
7270IFS=$as_save_IFS
7271  if test -z "$ac_cv_path_lt_DD"; then
7272    :
7273  fi
7274else
7275  ac_cv_path_lt_DD=$lt_DD
7276fi
7277
7278rm -f conftest.i conftest2.i conftest.out
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7281$as_echo "$ac_cv_path_lt_DD" >&6; }
7282
7283
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7285$as_echo_n "checking how to truncate binary pipes... " >&6; }
7286if ${lt_cv_truncate_bin+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  printf 0123456789abcdef0123456789abcdef >conftest.i
7290cat conftest.i conftest.i >conftest2.i
7291lt_cv_truncate_bin=
7292if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7293  cmp -s conftest.i conftest.out \
7294  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7295fi
7296rm -f conftest.i conftest2.i conftest.out
7297test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7300$as_echo "$lt_cv_truncate_bin" >&6; }
7301
7302
7303
7304
7305
7306
7307
7308# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7309func_cc_basename ()
7310{
7311    for cc_temp in $*""; do
7312      case $cc_temp in
7313        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7314        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7315        \-*) ;;
7316        *) break;;
7317      esac
7318    done
7319    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7320}
7321
7322# Check whether --enable-libtool-lock was given.
7323if test "${enable_libtool_lock+set}" = set; then :
7324  enableval=$enable_libtool_lock;
7325fi
7326
7327test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7328
7329# Some flags need to be propagated to the compiler or linker for good
7330# libtool support.
7331case $host in
7332ia64-*-hpux*)
7333  # Find out what ABI is being produced by ac_compile, and set mode
7334  # options accordingly.
7335  echo 'int i;' > conftest.$ac_ext
7336  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337  (eval $ac_compile) 2>&5
7338  ac_status=$?
7339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340  test $ac_status = 0; }; then
7341    case `/usr/bin/file conftest.$ac_objext` in
7342      *ELF-32*)
7343	HPUX_IA64_MODE=32
7344	;;
7345      *ELF-64*)
7346	HPUX_IA64_MODE=64
7347	;;
7348    esac
7349  fi
7350  rm -rf conftest*
7351  ;;
7352*-*-irix6*)
7353  # Find out what ABI is being produced by ac_compile, and set linker
7354  # options accordingly.
7355  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7356  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357  (eval $ac_compile) 2>&5
7358  ac_status=$?
7359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360  test $ac_status = 0; }; then
7361    if test yes = "$lt_cv_prog_gnu_ld"; then
7362      case `/usr/bin/file conftest.$ac_objext` in
7363	*32-bit*)
7364	  LD="${LD-ld} -melf32bsmip"
7365	  ;;
7366	*N32*)
7367	  LD="${LD-ld} -melf32bmipn32"
7368	  ;;
7369	*64-bit*)
7370	  LD="${LD-ld} -melf64bmip"
7371	;;
7372      esac
7373    else
7374      case `/usr/bin/file conftest.$ac_objext` in
7375	*32-bit*)
7376	  LD="${LD-ld} -32"
7377	  ;;
7378	*N32*)
7379	  LD="${LD-ld} -n32"
7380	  ;;
7381	*64-bit*)
7382	  LD="${LD-ld} -64"
7383	  ;;
7384      esac
7385    fi
7386  fi
7387  rm -rf conftest*
7388  ;;
7389
7390mips64*-*linux*)
7391  # Find out what ABI is being produced by ac_compile, and set linker
7392  # options accordingly.
7393  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7394  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7395  (eval $ac_compile) 2>&5
7396  ac_status=$?
7397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398  test $ac_status = 0; }; then
7399    emul=elf
7400    case `/usr/bin/file conftest.$ac_objext` in
7401      *32-bit*)
7402	emul="${emul}32"
7403	;;
7404      *64-bit*)
7405	emul="${emul}64"
7406	;;
7407    esac
7408    case `/usr/bin/file conftest.$ac_objext` in
7409      *MSB*)
7410	emul="${emul}btsmip"
7411	;;
7412      *LSB*)
7413	emul="${emul}ltsmip"
7414	;;
7415    esac
7416    case `/usr/bin/file conftest.$ac_objext` in
7417      *N32*)
7418	emul="${emul}n32"
7419	;;
7420    esac
7421    LD="${LD-ld} -m $emul"
7422  fi
7423  rm -rf conftest*
7424  ;;
7425
7426x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7427s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7428  # Find out what ABI is being produced by ac_compile, and set linker
7429  # options accordingly.  Note that the listed cases only cover the
7430  # situations where additional linker options are needed (such as when
7431  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7432  # vice versa); the common cases where no linker options are needed do
7433  # not appear in the list.
7434  echo 'int i;' > conftest.$ac_ext
7435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436  (eval $ac_compile) 2>&5
7437  ac_status=$?
7438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439  test $ac_status = 0; }; then
7440    case `/usr/bin/file conftest.o` in
7441      *32-bit*)
7442	case $host in
7443	  x86_64-*kfreebsd*-gnu)
7444	    LD="${LD-ld} -m elf_i386_fbsd"
7445	    ;;
7446	  x86_64-*linux*)
7447	    case `/usr/bin/file conftest.o` in
7448	      *x86-64*)
7449		LD="${LD-ld} -m elf32_x86_64"
7450		;;
7451	      *)
7452		LD="${LD-ld} -m elf_i386"
7453		;;
7454	    esac
7455	    ;;
7456	  powerpc64le-*linux*)
7457	    LD="${LD-ld} -m elf32lppclinux"
7458	    ;;
7459	  powerpc64-*linux*)
7460	    LD="${LD-ld} -m elf32ppclinux"
7461	    ;;
7462	  s390x-*linux*)
7463	    LD="${LD-ld} -m elf_s390"
7464	    ;;
7465	  sparc64-*linux*)
7466	    LD="${LD-ld} -m elf32_sparc"
7467	    ;;
7468	esac
7469	;;
7470      *64-bit*)
7471	case $host in
7472	  x86_64-*kfreebsd*-gnu)
7473	    LD="${LD-ld} -m elf_x86_64_fbsd"
7474	    ;;
7475	  x86_64-*linux*)
7476	    LD="${LD-ld} -m elf_x86_64"
7477	    ;;
7478	  powerpcle-*linux*)
7479	    LD="${LD-ld} -m elf64lppc"
7480	    ;;
7481	  powerpc-*linux*)
7482	    LD="${LD-ld} -m elf64ppc"
7483	    ;;
7484	  s390*-*linux*|s390*-*tpf*)
7485	    LD="${LD-ld} -m elf64_s390"
7486	    ;;
7487	  sparc*-*linux*)
7488	    LD="${LD-ld} -m elf64_sparc"
7489	    ;;
7490	esac
7491	;;
7492    esac
7493  fi
7494  rm -rf conftest*
7495  ;;
7496
7497*-*-sco3.2v5*)
7498  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7499  SAVE_CFLAGS=$CFLAGS
7500  CFLAGS="$CFLAGS -belf"
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7502$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7503if ${lt_cv_cc_needs_belf+:} false; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514
7515int
7516main ()
7517{
7518
7519  ;
7520  return 0;
7521}
7522_ACEOF
7523if ac_fn_c_try_link "$LINENO"; then :
7524  lt_cv_cc_needs_belf=yes
7525else
7526  lt_cv_cc_needs_belf=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext \
7529    conftest$ac_exeext conftest.$ac_ext
7530     ac_ext=c
7531ac_cpp='$CPP $CPPFLAGS'
7532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7538$as_echo "$lt_cv_cc_needs_belf" >&6; }
7539  if test yes != "$lt_cv_cc_needs_belf"; then
7540    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7541    CFLAGS=$SAVE_CFLAGS
7542  fi
7543  ;;
7544*-*solaris*)
7545  # Find out what ABI is being produced by ac_compile, and set linker
7546  # options accordingly.
7547  echo 'int i;' > conftest.$ac_ext
7548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549  (eval $ac_compile) 2>&5
7550  ac_status=$?
7551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552  test $ac_status = 0; }; then
7553    case `/usr/bin/file conftest.o` in
7554    *64-bit*)
7555      case $lt_cv_prog_gnu_ld in
7556      yes*)
7557        case $host in
7558        i?86-*-solaris*|x86_64-*-solaris*)
7559          LD="${LD-ld} -m elf_x86_64"
7560          ;;
7561        sparc*-*-solaris*)
7562          LD="${LD-ld} -m elf64_sparc"
7563          ;;
7564        esac
7565        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7566        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7567          LD=${LD-ld}_sol2
7568        fi
7569        ;;
7570      *)
7571	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7572	  LD="${LD-ld} -64"
7573	fi
7574	;;
7575      esac
7576      ;;
7577    esac
7578  fi
7579  rm -rf conftest*
7580  ;;
7581esac
7582
7583need_locks=$enable_libtool_lock
7584
7585if test -n "$ac_tool_prefix"; then
7586  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7587set dummy ${ac_tool_prefix}mt; ac_word=$2
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  if test -n "$MANIFEST_TOOL"; then
7594  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599  IFS=$as_save_IFS
7600  test -z "$as_dir" && as_dir=.
7601    for ac_exec_ext in '' $ac_executable_extensions; do
7602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605    break 2
7606  fi
7607done
7608  done
7609IFS=$as_save_IFS
7610
7611fi
7612fi
7613MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7614if test -n "$MANIFEST_TOOL"; then
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7616$as_echo "$MANIFEST_TOOL" >&6; }
7617else
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
7620fi
7621
7622
7623fi
7624if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7625  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7626  # Extract the first word of "mt", so it can be a program name with args.
7627set dummy mt; ac_word=$2
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7631  $as_echo_n "(cached) " >&6
7632else
7633  if test -n "$ac_ct_MANIFEST_TOOL"; then
7634  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7635else
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639  IFS=$as_save_IFS
7640  test -z "$as_dir" && as_dir=.
7641    for ac_exec_ext in '' $ac_executable_extensions; do
7642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645    break 2
7646  fi
7647done
7648  done
7649IFS=$as_save_IFS
7650
7651fi
7652fi
7653ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7654if test -n "$ac_ct_MANIFEST_TOOL"; then
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7656$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7657else
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
7660fi
7661
7662  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7663    MANIFEST_TOOL=":"
7664  else
7665    case $cross_compiling:$ac_tool_warned in
7666yes:)
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669ac_tool_warned=yes ;;
7670esac
7671    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7672  fi
7673else
7674  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7675fi
7676
7677test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7679$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7680if ${lt_cv_path_mainfest_tool+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  lt_cv_path_mainfest_tool=no
7684  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7685  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7686  cat conftest.err >&5
7687  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7688    lt_cv_path_mainfest_tool=yes
7689  fi
7690  rm -f conftest*
7691fi
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7693$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7694if test yes != "$lt_cv_path_mainfest_tool"; then
7695  MANIFEST_TOOL=:
7696fi
7697
7698
7699
7700
7701
7702
7703  case $host_os in
7704    rhapsody* | darwin*)
7705    if test -n "$ac_tool_prefix"; then
7706  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7707set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if ${ac_cv_prog_DSYMUTIL+:} false; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  if test -n "$DSYMUTIL"; then
7714  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7715else
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  test -z "$as_dir" && as_dir=.
7721    for ac_exec_ext in '' $ac_executable_extensions; do
7722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728  done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733DSYMUTIL=$ac_cv_prog_DSYMUTIL
7734if test -n "$DSYMUTIL"; then
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7736$as_echo "$DSYMUTIL" >&6; }
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742
7743fi
7744if test -z "$ac_cv_prog_DSYMUTIL"; then
7745  ac_ct_DSYMUTIL=$DSYMUTIL
7746  # Extract the first word of "dsymutil", so it can be a program name with args.
7747set dummy dsymutil; ac_word=$2
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749$as_echo_n "checking for $ac_word... " >&6; }
7750if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  if test -n "$ac_ct_DSYMUTIL"; then
7754  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7755else
7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759  IFS=$as_save_IFS
7760  test -z "$as_dir" && as_dir=.
7761    for ac_exec_ext in '' $ac_executable_extensions; do
7762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765    break 2
7766  fi
7767done
7768  done
7769IFS=$as_save_IFS
7770
7771fi
7772fi
7773ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7774if test -n "$ac_ct_DSYMUTIL"; then
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7776$as_echo "$ac_ct_DSYMUTIL" >&6; }
7777else
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779$as_echo "no" >&6; }
7780fi
7781
7782  if test "x$ac_ct_DSYMUTIL" = x; then
7783    DSYMUTIL=":"
7784  else
7785    case $cross_compiling:$ac_tool_warned in
7786yes:)
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7789ac_tool_warned=yes ;;
7790esac
7791    DSYMUTIL=$ac_ct_DSYMUTIL
7792  fi
7793else
7794  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7795fi
7796
7797    if test -n "$ac_tool_prefix"; then
7798  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7799set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if ${ac_cv_prog_NMEDIT+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  if test -n "$NMEDIT"; then
7806  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813    for ac_exec_ext in '' $ac_executable_extensions; do
7814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820  done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825NMEDIT=$ac_cv_prog_NMEDIT
7826if test -n "$NMEDIT"; then
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7828$as_echo "$NMEDIT" >&6; }
7829else
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834
7835fi
7836if test -z "$ac_cv_prog_NMEDIT"; then
7837  ac_ct_NMEDIT=$NMEDIT
7838  # Extract the first word of "nmedit", so it can be a program name with args.
7839set dummy nmedit; ac_word=$2
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  if test -n "$ac_ct_NMEDIT"; then
7846  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853    for ac_exec_ext in '' $ac_executable_extensions; do
7854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860  done
7861IFS=$as_save_IFS
7862
7863fi
7864fi
7865ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7866if test -n "$ac_ct_NMEDIT"; then
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7868$as_echo "$ac_ct_NMEDIT" >&6; }
7869else
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
7872fi
7873
7874  if test "x$ac_ct_NMEDIT" = x; then
7875    NMEDIT=":"
7876  else
7877    case $cross_compiling:$ac_tool_warned in
7878yes:)
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7881ac_tool_warned=yes ;;
7882esac
7883    NMEDIT=$ac_ct_NMEDIT
7884  fi
7885else
7886  NMEDIT="$ac_cv_prog_NMEDIT"
7887fi
7888
7889    if test -n "$ac_tool_prefix"; then
7890  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7891set dummy ${ac_tool_prefix}lipo; ac_word=$2
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893$as_echo_n "checking for $ac_word... " >&6; }
7894if ${ac_cv_prog_LIPO+:} false; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  if test -n "$LIPO"; then
7898  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7899else
7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903  IFS=$as_save_IFS
7904  test -z "$as_dir" && as_dir=.
7905    for ac_exec_ext in '' $ac_executable_extensions; do
7906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912  done
7913IFS=$as_save_IFS
7914
7915fi
7916fi
7917LIPO=$ac_cv_prog_LIPO
7918if test -n "$LIPO"; then
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7920$as_echo "$LIPO" >&6; }
7921else
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924fi
7925
7926
7927fi
7928if test -z "$ac_cv_prog_LIPO"; then
7929  ac_ct_LIPO=$LIPO
7930  # Extract the first word of "lipo", so it can be a program name with args.
7931set dummy lipo; ac_word=$2
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933$as_echo_n "checking for $ac_word... " >&6; }
7934if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  if test -n "$ac_ct_LIPO"; then
7938  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7939else
7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943  IFS=$as_save_IFS
7944  test -z "$as_dir" && as_dir=.
7945    for ac_exec_ext in '' $ac_executable_extensions; do
7946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947    ac_cv_prog_ac_ct_LIPO="lipo"
7948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949    break 2
7950  fi
7951done
7952  done
7953IFS=$as_save_IFS
7954
7955fi
7956fi
7957ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7958if test -n "$ac_ct_LIPO"; then
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7960$as_echo "$ac_ct_LIPO" >&6; }
7961else
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964fi
7965
7966  if test "x$ac_ct_LIPO" = x; then
7967    LIPO=":"
7968  else
7969    case $cross_compiling:$ac_tool_warned in
7970yes:)
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973ac_tool_warned=yes ;;
7974esac
7975    LIPO=$ac_ct_LIPO
7976  fi
7977else
7978  LIPO="$ac_cv_prog_LIPO"
7979fi
7980
7981    if test -n "$ac_tool_prefix"; then
7982  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7983set dummy ${ac_tool_prefix}otool; ac_word=$2
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
7986if ${ac_cv_prog_OTOOL+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  if test -n "$OTOOL"; then
7990  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997    for ac_exec_ext in '' $ac_executable_extensions; do
7998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004  done
8005IFS=$as_save_IFS
8006
8007fi
8008fi
8009OTOOL=$ac_cv_prog_OTOOL
8010if test -n "$OTOOL"; then
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8012$as_echo "$OTOOL" >&6; }
8013else
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
8016fi
8017
8018
8019fi
8020if test -z "$ac_cv_prog_OTOOL"; then
8021  ac_ct_OTOOL=$OTOOL
8022  # Extract the first word of "otool", so it can be a program name with args.
8023set dummy otool; ac_word=$2
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  if test -n "$ac_ct_OTOOL"; then
8030  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  test -z "$as_dir" && as_dir=.
8037    for ac_exec_ext in '' $ac_executable_extensions; do
8038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039    ac_cv_prog_ac_ct_OTOOL="otool"
8040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041    break 2
8042  fi
8043done
8044  done
8045IFS=$as_save_IFS
8046
8047fi
8048fi
8049ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8050if test -n "$ac_ct_OTOOL"; then
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8052$as_echo "$ac_ct_OTOOL" >&6; }
8053else
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
8056fi
8057
8058  if test "x$ac_ct_OTOOL" = x; then
8059    OTOOL=":"
8060  else
8061    case $cross_compiling:$ac_tool_warned in
8062yes:)
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065ac_tool_warned=yes ;;
8066esac
8067    OTOOL=$ac_ct_OTOOL
8068  fi
8069else
8070  OTOOL="$ac_cv_prog_OTOOL"
8071fi
8072
8073    if test -n "$ac_tool_prefix"; then
8074  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8075set dummy ${ac_tool_prefix}otool64; ac_word=$2
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if ${ac_cv_prog_OTOOL64+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  if test -n "$OTOOL64"; then
8082  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087  IFS=$as_save_IFS
8088  test -z "$as_dir" && as_dir=.
8089    for ac_exec_ext in '' $ac_executable_extensions; do
8090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093    break 2
8094  fi
8095done
8096  done
8097IFS=$as_save_IFS
8098
8099fi
8100fi
8101OTOOL64=$ac_cv_prog_OTOOL64
8102if test -n "$OTOOL64"; then
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8104$as_echo "$OTOOL64" >&6; }
8105else
8106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
8108fi
8109
8110
8111fi
8112if test -z "$ac_cv_prog_OTOOL64"; then
8113  ac_ct_OTOOL64=$OTOOL64
8114  # Extract the first word of "otool64", so it can be a program name with args.
8115set dummy otool64; ac_word=$2
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117$as_echo_n "checking for $ac_word... " >&6; }
8118if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  if test -n "$ac_ct_OTOOL64"; then
8122  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127  IFS=$as_save_IFS
8128  test -z "$as_dir" && as_dir=.
8129    for ac_exec_ext in '' $ac_executable_extensions; do
8130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131    ac_cv_prog_ac_ct_OTOOL64="otool64"
8132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133    break 2
8134  fi
8135done
8136  done
8137IFS=$as_save_IFS
8138
8139fi
8140fi
8141ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8142if test -n "$ac_ct_OTOOL64"; then
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8144$as_echo "$ac_ct_OTOOL64" >&6; }
8145else
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
8149
8150  if test "x$ac_ct_OTOOL64" = x; then
8151    OTOOL64=":"
8152  else
8153    case $cross_compiling:$ac_tool_warned in
8154yes:)
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157ac_tool_warned=yes ;;
8158esac
8159    OTOOL64=$ac_ct_OTOOL64
8160  fi
8161else
8162  OTOOL64="$ac_cv_prog_OTOOL64"
8163fi
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8192$as_echo_n "checking for -single_module linker flag... " >&6; }
8193if ${lt_cv_apple_cc_single_mod+:} false; then :
8194  $as_echo_n "(cached) " >&6
8195else
8196  lt_cv_apple_cc_single_mod=no
8197      if test -z "$LT_MULTI_MODULE"; then
8198	# By default we will add the -single_module flag. You can override
8199	# by either setting the environment variable LT_MULTI_MODULE
8200	# non-empty at configure time, or by adding -multi_module to the
8201	# link flags.
8202	rm -rf libconftest.dylib*
8203	echo "int foo(void){return 1;}" > conftest.c
8204	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205-dynamiclib -Wl,-single_module conftest.c" >&5
8206	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8207	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8208        _lt_result=$?
8209	# If there is a non-empty error log, and "single_module"
8210	# appears in it, assume the flag caused a linker warning
8211        if test -s conftest.err && $GREP single_module conftest.err; then
8212	  cat conftest.err >&5
8213	# Otherwise, if the output was created with a 0 exit code from
8214	# the compiler, it worked.
8215	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8216	  lt_cv_apple_cc_single_mod=yes
8217	else
8218	  cat conftest.err >&5
8219	fi
8220	rm -rf libconftest.dylib*
8221	rm -f conftest.*
8222      fi
8223fi
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8225$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8226
8227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8228$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8229if ${lt_cv_ld_exported_symbols_list+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  lt_cv_ld_exported_symbols_list=no
8233      save_LDFLAGS=$LDFLAGS
8234      echo "_main" > conftest.sym
8235      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8236      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h.  */
8238
8239int
8240main ()
8241{
8242
8243  ;
8244  return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_link "$LINENO"; then :
8248  lt_cv_ld_exported_symbols_list=yes
8249else
8250  lt_cv_ld_exported_symbols_list=no
8251fi
8252rm -f core conftest.err conftest.$ac_objext \
8253    conftest$ac_exeext conftest.$ac_ext
8254	LDFLAGS=$save_LDFLAGS
8255
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8258$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8259
8260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8261$as_echo_n "checking for -force_load linker flag... " >&6; }
8262if ${lt_cv_ld_force_load+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  lt_cv_ld_force_load=no
8266      cat > conftest.c << _LT_EOF
8267int forced_loaded() { return 2;}
8268_LT_EOF
8269      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8270      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8271      echo "$AR cru libconftest.a conftest.o" >&5
8272      $AR cru libconftest.a conftest.o 2>&5
8273      echo "$RANLIB libconftest.a" >&5
8274      $RANLIB libconftest.a 2>&5
8275      cat > conftest.c << _LT_EOF
8276int main() { return 0;}
8277_LT_EOF
8278      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8279      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8280      _lt_result=$?
8281      if test -s conftest.err && $GREP force_load conftest.err; then
8282	cat conftest.err >&5
8283      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8284	lt_cv_ld_force_load=yes
8285      else
8286	cat conftest.err >&5
8287      fi
8288        rm -f conftest.err libconftest.a conftest conftest.c
8289        rm -rf conftest.dSYM
8290
8291fi
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8293$as_echo "$lt_cv_ld_force_load" >&6; }
8294    case $host_os in
8295    rhapsody* | darwin1.[012])
8296      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8297    darwin1.*)
8298      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8299    darwin*) # darwin 5.x on
8300      # if running on 10.5 or later, the deployment target defaults
8301      # to the OS version, if on x86, and 10.4, the deployment
8302      # target defaults to 10.4. Don't you love it?
8303      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8304	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8305	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8306	10.[012][,.]*)
8307	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8308	10.*)
8309	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8310      esac
8311    ;;
8312  esac
8313    if test yes = "$lt_cv_apple_cc_single_mod"; then
8314      _lt_dar_single_mod='$single_module'
8315    fi
8316    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8317      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8318    else
8319      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8320    fi
8321    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8322      _lt_dsymutil='~$DSYMUTIL $lib || :'
8323    else
8324      _lt_dsymutil=
8325    fi
8326    ;;
8327  esac
8328
8329# func_munge_path_list VARIABLE PATH
8330# -----------------------------------
8331# VARIABLE is name of variable containing _space_ separated list of
8332# directories to be munged by the contents of PATH, which is string
8333# having a format:
8334# "DIR[:DIR]:"
8335#       string "DIR[ DIR]" will be prepended to VARIABLE
8336# ":DIR[:DIR]"
8337#       string "DIR[ DIR]" will be appended to VARIABLE
8338# "DIRP[:DIRP]::[DIRA:]DIRA"
8339#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8340#       "DIRA[ DIRA]" will be appended to VARIABLE
8341# "DIR[:DIR]"
8342#       VARIABLE will be replaced by "DIR[ DIR]"
8343func_munge_path_list ()
8344{
8345    case x$2 in
8346    x)
8347        ;;
8348    *:)
8349        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8350        ;;
8351    x:*)
8352        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8353        ;;
8354    *::*)
8355        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8356        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8357        ;;
8358    *)
8359        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8360        ;;
8361    esac
8362}
8363
8364for ac_header in dlfcn.h
8365do :
8366  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8367"
8368if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8369  cat >>confdefs.h <<_ACEOF
8370#define HAVE_DLFCN_H 1
8371_ACEOF
8372
8373fi
8374
8375done
8376
8377
8378
8379
8380
8381# Set options
8382enable_dlopen=yes
8383# Check whether --enable-static was given.
8384if test "${enable_static+set}" = set; then :
8385  enableval=$enable_static; p=${PACKAGE-default}
8386    case $enableval in
8387    yes) enable_static=yes ;;
8388    no) enable_static=no ;;
8389    *)
8390     enable_static=no
8391      # Look at the argument we got.  We use all the common list separators.
8392      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8393      for pkg in $enableval; do
8394	IFS=$lt_save_ifs
8395	if test "X$pkg" = "X$p"; then
8396	  enable_static=yes
8397	fi
8398      done
8399      IFS=$lt_save_ifs
8400      ;;
8401    esac
8402else
8403  enable_static=no
8404fi
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416  enable_win32_dll=no
8417
8418
8419            # Check whether --enable-shared was given.
8420if test "${enable_shared+set}" = set; then :
8421  enableval=$enable_shared; p=${PACKAGE-default}
8422    case $enableval in
8423    yes) enable_shared=yes ;;
8424    no) enable_shared=no ;;
8425    *)
8426      enable_shared=no
8427      # Look at the argument we got.  We use all the common list separators.
8428      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8429      for pkg in $enableval; do
8430	IFS=$lt_save_ifs
8431	if test "X$pkg" = "X$p"; then
8432	  enable_shared=yes
8433	fi
8434      done
8435      IFS=$lt_save_ifs
8436      ;;
8437    esac
8438else
8439  enable_shared=yes
8440fi
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452# Check whether --with-pic was given.
8453if test "${with_pic+set}" = set; then :
8454  withval=$with_pic; lt_p=${PACKAGE-default}
8455    case $withval in
8456    yes|no) pic_mode=$withval ;;
8457    *)
8458      pic_mode=default
8459      # Look at the argument we got.  We use all the common list separators.
8460      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8461      for lt_pkg in $withval; do
8462	IFS=$lt_save_ifs
8463	if test "X$lt_pkg" = "X$lt_p"; then
8464	  pic_mode=yes
8465	fi
8466      done
8467      IFS=$lt_save_ifs
8468      ;;
8469    esac
8470else
8471  pic_mode=default
8472fi
8473
8474
8475
8476
8477
8478
8479
8480
8481  # Check whether --enable-fast-install was given.
8482if test "${enable_fast_install+set}" = set; then :
8483  enableval=$enable_fast_install; p=${PACKAGE-default}
8484    case $enableval in
8485    yes) enable_fast_install=yes ;;
8486    no) enable_fast_install=no ;;
8487    *)
8488      enable_fast_install=no
8489      # Look at the argument we got.  We use all the common list separators.
8490      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8491      for pkg in $enableval; do
8492	IFS=$lt_save_ifs
8493	if test "X$pkg" = "X$p"; then
8494	  enable_fast_install=yes
8495	fi
8496      done
8497      IFS=$lt_save_ifs
8498      ;;
8499    esac
8500else
8501  enable_fast_install=yes
8502fi
8503
8504
8505
8506
8507
8508
8509
8510
8511  shared_archive_member_spec=
8512case $host,$enable_shared in
8513power*-*-aix[5-9]*,yes)
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8515$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8516
8517# Check whether --with-aix-soname was given.
8518if test "${with_aix_soname+set}" = set; then :
8519  withval=$with_aix_soname; case $withval in
8520    aix|svr4|both)
8521      ;;
8522    *)
8523      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8524      ;;
8525    esac
8526    lt_cv_with_aix_soname=$with_aix_soname
8527else
8528  if ${lt_cv_with_aix_soname+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  lt_cv_with_aix_soname=aix
8532fi
8533
8534    with_aix_soname=$lt_cv_with_aix_soname
8535fi
8536
8537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8538$as_echo "$with_aix_soname" >&6; }
8539  if test aix != "$with_aix_soname"; then
8540    # For the AIX way of multilib, we name the shared archive member
8541    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8542    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8543    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8544    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8545    if test 64 = "${OBJECT_MODE-32}"; then
8546      shared_archive_member_spec=shr_64
8547    else
8548      shared_archive_member_spec=shr
8549    fi
8550  fi
8551  ;;
8552*)
8553  with_aix_soname=aix
8554  ;;
8555esac
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566# This can be used to rebuild libtool when needed
8567LIBTOOL_DEPS=$ltmain
8568
8569# Always use our own libtool.
8570LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601test -z "$LN_S" && LN_S="ln -s"
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616if test -n "${ZSH_VERSION+set}"; then
8617   setopt NO_GLOB_SUBST
8618fi
8619
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8621$as_echo_n "checking for objdir... " >&6; }
8622if ${lt_cv_objdir+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  rm -f .libs 2>/dev/null
8626mkdir .libs 2>/dev/null
8627if test -d .libs; then
8628  lt_cv_objdir=.libs
8629else
8630  # MS-DOS does not allow filenames that begin with a dot.
8631  lt_cv_objdir=_libs
8632fi
8633rmdir .libs 2>/dev/null
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8636$as_echo "$lt_cv_objdir" >&6; }
8637objdir=$lt_cv_objdir
8638
8639
8640
8641
8642
8643cat >>confdefs.h <<_ACEOF
8644#define LT_OBJDIR "$lt_cv_objdir/"
8645_ACEOF
8646
8647
8648
8649
8650case $host_os in
8651aix3*)
8652  # AIX sometimes has problems with the GCC collect2 program.  For some
8653  # reason, if we set the COLLECT_NAMES environment variable, the problems
8654  # vanish in a puff of smoke.
8655  if test set != "${COLLECT_NAMES+set}"; then
8656    COLLECT_NAMES=
8657    export COLLECT_NAMES
8658  fi
8659  ;;
8660esac
8661
8662# Global variables:
8663ofile=libtool
8664can_build_shared=yes
8665
8666# All known linkers require a '.a' archive for static linking (except MSVC,
8667# which needs '.lib').
8668libext=a
8669
8670with_gnu_ld=$lt_cv_prog_gnu_ld
8671
8672old_CC=$CC
8673old_CFLAGS=$CFLAGS
8674
8675# Set sane defaults for various variables
8676test -z "$CC" && CC=cc
8677test -z "$LTCC" && LTCC=$CC
8678test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8679test -z "$LD" && LD=ld
8680test -z "$ac_objext" && ac_objext=o
8681
8682func_cc_basename $compiler
8683cc_basename=$func_cc_basename_result
8684
8685
8686# Only perform the check for file, if the check method requires it
8687test -z "$MAGIC_CMD" && MAGIC_CMD=file
8688case $deplibs_check_method in
8689file_magic*)
8690  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8692$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8693if ${lt_cv_path_MAGIC_CMD+:} false; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696  case $MAGIC_CMD in
8697[\\/*] |  ?:[\\/]*)
8698  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8699  ;;
8700*)
8701  lt_save_MAGIC_CMD=$MAGIC_CMD
8702  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8703  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8704  for ac_dir in $ac_dummy; do
8705    IFS=$lt_save_ifs
8706    test -z "$ac_dir" && ac_dir=.
8707    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8708      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8709      if test -n "$file_magic_test_file"; then
8710	case $deplibs_check_method in
8711	"file_magic "*)
8712	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8713	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8714	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8715	    $EGREP "$file_magic_regex" > /dev/null; then
8716	    :
8717	  else
8718	    cat <<_LT_EOF 1>&2
8719
8720*** Warning: the command libtool uses to detect shared libraries,
8721*** $file_magic_cmd, produces output that libtool cannot recognize.
8722*** The result is that libtool may fail to recognize shared libraries
8723*** as such.  This will affect the creation of libtool libraries that
8724*** depend on shared libraries, but programs linked with such libtool
8725*** libraries will work regardless of this problem.  Nevertheless, you
8726*** may want to report the problem to your system manager and/or to
8727*** bug-libtool@gnu.org
8728
8729_LT_EOF
8730	  fi ;;
8731	esac
8732      fi
8733      break
8734    fi
8735  done
8736  IFS=$lt_save_ifs
8737  MAGIC_CMD=$lt_save_MAGIC_CMD
8738  ;;
8739esac
8740fi
8741
8742MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8743if test -n "$MAGIC_CMD"; then
8744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8745$as_echo "$MAGIC_CMD" >&6; }
8746else
8747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
8749fi
8750
8751
8752
8753
8754
8755if test -z "$lt_cv_path_MAGIC_CMD"; then
8756  if test -n "$ac_tool_prefix"; then
8757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8758$as_echo_n "checking for file... " >&6; }
8759if ${lt_cv_path_MAGIC_CMD+:} false; then :
8760  $as_echo_n "(cached) " >&6
8761else
8762  case $MAGIC_CMD in
8763[\\/*] |  ?:[\\/]*)
8764  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8765  ;;
8766*)
8767  lt_save_MAGIC_CMD=$MAGIC_CMD
8768  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8769  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8770  for ac_dir in $ac_dummy; do
8771    IFS=$lt_save_ifs
8772    test -z "$ac_dir" && ac_dir=.
8773    if test -f "$ac_dir/file"; then
8774      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8775      if test -n "$file_magic_test_file"; then
8776	case $deplibs_check_method in
8777	"file_magic "*)
8778	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8779	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8780	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8781	    $EGREP "$file_magic_regex" > /dev/null; then
8782	    :
8783	  else
8784	    cat <<_LT_EOF 1>&2
8785
8786*** Warning: the command libtool uses to detect shared libraries,
8787*** $file_magic_cmd, produces output that libtool cannot recognize.
8788*** The result is that libtool may fail to recognize shared libraries
8789*** as such.  This will affect the creation of libtool libraries that
8790*** depend on shared libraries, but programs linked with such libtool
8791*** libraries will work regardless of this problem.  Nevertheless, you
8792*** may want to report the problem to your system manager and/or to
8793*** bug-libtool@gnu.org
8794
8795_LT_EOF
8796	  fi ;;
8797	esac
8798      fi
8799      break
8800    fi
8801  done
8802  IFS=$lt_save_ifs
8803  MAGIC_CMD=$lt_save_MAGIC_CMD
8804  ;;
8805esac
8806fi
8807
8808MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8809if test -n "$MAGIC_CMD"; then
8810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8811$as_echo "$MAGIC_CMD" >&6; }
8812else
8813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814$as_echo "no" >&6; }
8815fi
8816
8817
8818  else
8819    MAGIC_CMD=:
8820  fi
8821fi
8822
8823  fi
8824  ;;
8825esac
8826
8827# Use C for the default configuration in the libtool script
8828
8829lt_save_CC=$CC
8830ac_ext=c
8831ac_cpp='$CPP $CPPFLAGS'
8832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8834ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835
8836
8837# Source file extension for C test sources.
8838ac_ext=c
8839
8840# Object file extension for compiled C test sources.
8841objext=o
8842objext=$objext
8843
8844# Code to be used in simple compile tests
8845lt_simple_compile_test_code="int some_variable = 0;"
8846
8847# Code to be used in simple link tests
8848lt_simple_link_test_code='int main(){return(0);}'
8849
8850
8851
8852
8853
8854
8855
8856# If no C compiler was specified, use CC.
8857LTCC=${LTCC-"$CC"}
8858
8859# If no C compiler flags were specified, use CFLAGS.
8860LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8861
8862# Allow CC to be a program name with arguments.
8863compiler=$CC
8864
8865# Save the default compiler, since it gets overwritten when the other
8866# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8867compiler_DEFAULT=$CC
8868
8869# save warnings/boilerplate of simple test code
8870ac_outfile=conftest.$ac_objext
8871echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8872eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8873_lt_compiler_boilerplate=`cat conftest.err`
8874$RM conftest*
8875
8876ac_outfile=conftest.$ac_objext
8877echo "$lt_simple_link_test_code" >conftest.$ac_ext
8878eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8879_lt_linker_boilerplate=`cat conftest.err`
8880$RM -r conftest*
8881
8882
8883## CAVEAT EMPTOR:
8884## There is no encapsulation within the following macros, do not change
8885## the running order or otherwise move them around unless you know exactly
8886## what you are doing...
8887if test -n "$compiler"; then
8888
8889lt_prog_compiler_no_builtin_flag=
8890
8891if test yes = "$GCC"; then
8892  case $cc_basename in
8893  nvcc*)
8894    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8895  *)
8896    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8897  esac
8898
8899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8900$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8901if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  lt_cv_prog_compiler_rtti_exceptions=no
8905   ac_outfile=conftest.$ac_objext
8906   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8908   # Insert the option either (1) after the last *FLAGS variable, or
8909   # (2) before a word containing "conftest.", or (3) at the end.
8910   # Note that $ac_compile itself does not contain backslashes and begins
8911   # with a dollar sign (not a hyphen), so the echo should work correctly.
8912   # The option is referenced via a variable to avoid confusing sed.
8913   lt_compile=`echo "$ac_compile" | $SED \
8914   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8915   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8916   -e 's:$: $lt_compiler_flag:'`
8917   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8918   (eval "$lt_compile" 2>conftest.err)
8919   ac_status=$?
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   if (exit $ac_status) && test -s "$ac_outfile"; then
8923     # The compiler can only warn and ignore the option if not recognized
8924     # So say no if there are warnings other than the usual output.
8925     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8926     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8927     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8928       lt_cv_prog_compiler_rtti_exceptions=yes
8929     fi
8930   fi
8931   $RM conftest*
8932
8933fi
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8935$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8936
8937if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8938    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8939else
8940    :
8941fi
8942
8943fi
8944
8945
8946
8947
8948
8949
8950  lt_prog_compiler_wl=
8951lt_prog_compiler_pic=
8952lt_prog_compiler_static=
8953
8954
8955  if test yes = "$GCC"; then
8956    lt_prog_compiler_wl='-Wl,'
8957    lt_prog_compiler_static='-static'
8958
8959    case $host_os in
8960      aix*)
8961      # All AIX code is PIC.
8962      if test ia64 = "$host_cpu"; then
8963	# AIX 5 now supports IA64 processor
8964	lt_prog_compiler_static='-Bstatic'
8965      fi
8966      lt_prog_compiler_pic='-fPIC'
8967      ;;
8968
8969    amigaos*)
8970      case $host_cpu in
8971      powerpc)
8972            # see comment about AmigaOS4 .so support
8973            lt_prog_compiler_pic='-fPIC'
8974        ;;
8975      m68k)
8976            # FIXME: we need at least 68020 code to build shared libraries, but
8977            # adding the '-m68020' flag to GCC prevents building anything better,
8978            # like '-m68040'.
8979            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8980        ;;
8981      esac
8982      ;;
8983
8984    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8985      # PIC is the default for these OSes.
8986      ;;
8987
8988    mingw* | cygwin* | pw32* | os2* | cegcc*)
8989      # This hack is so that the source file can tell whether it is being
8990      # built for inclusion in a dll (and should export symbols for example).
8991      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8992      # (--disable-auto-import) libraries
8993      lt_prog_compiler_pic='-DDLL_EXPORT'
8994      case $host_os in
8995      os2*)
8996	lt_prog_compiler_static='$wl-static'
8997	;;
8998      esac
8999      ;;
9000
9001    darwin* | rhapsody*)
9002      # PIC is the default on this platform
9003      # Common symbols not allowed in MH_DYLIB files
9004      lt_prog_compiler_pic='-fno-common'
9005      ;;
9006
9007    haiku*)
9008      # PIC is the default for Haiku.
9009      # The "-static" flag exists, but is broken.
9010      lt_prog_compiler_static=
9011      ;;
9012
9013    hpux*)
9014      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9015      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9016      # sets the default TLS model and affects inlining.
9017      case $host_cpu in
9018      hppa*64*)
9019	# +Z the default
9020	;;
9021      *)
9022	lt_prog_compiler_pic='-fPIC'
9023	;;
9024      esac
9025      ;;
9026
9027    interix[3-9]*)
9028      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9029      # Instead, we relocate shared libraries at runtime.
9030      ;;
9031
9032    msdosdjgpp*)
9033      # Just because we use GCC doesn't mean we suddenly get shared libraries
9034      # on systems that don't support them.
9035      lt_prog_compiler_can_build_shared=no
9036      enable_shared=no
9037      ;;
9038
9039    *nto* | *qnx*)
9040      # QNX uses GNU C++, but need to define -shared option too, otherwise
9041      # it will coredump.
9042      lt_prog_compiler_pic='-fPIC -shared'
9043      ;;
9044
9045    sysv4*MP*)
9046      if test -d /usr/nec; then
9047	lt_prog_compiler_pic=-Kconform_pic
9048      fi
9049      ;;
9050
9051    *)
9052      lt_prog_compiler_pic='-fPIC'
9053      ;;
9054    esac
9055
9056    case $cc_basename in
9057    nvcc*) # Cuda Compiler Driver 2.2
9058      lt_prog_compiler_wl='-Xlinker '
9059      if test -n "$lt_prog_compiler_pic"; then
9060        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9061      fi
9062      ;;
9063    esac
9064  else
9065    # PORTME Check for flag to pass linker flags through the system compiler.
9066    case $host_os in
9067    aix*)
9068      lt_prog_compiler_wl='-Wl,'
9069      if test ia64 = "$host_cpu"; then
9070	# AIX 5 now supports IA64 processor
9071	lt_prog_compiler_static='-Bstatic'
9072      else
9073	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9074      fi
9075      ;;
9076
9077    darwin* | rhapsody*)
9078      # PIC is the default on this platform
9079      # Common symbols not allowed in MH_DYLIB files
9080      lt_prog_compiler_pic='-fno-common'
9081      case $cc_basename in
9082      nagfor*)
9083        # NAG Fortran compiler
9084        lt_prog_compiler_wl='-Wl,-Wl,,'
9085        lt_prog_compiler_pic='-PIC'
9086        lt_prog_compiler_static='-Bstatic'
9087        ;;
9088      esac
9089      ;;
9090
9091    mingw* | cygwin* | pw32* | os2* | cegcc*)
9092      # This hack is so that the source file can tell whether it is being
9093      # built for inclusion in a dll (and should export symbols for example).
9094      lt_prog_compiler_pic='-DDLL_EXPORT'
9095      case $host_os in
9096      os2*)
9097	lt_prog_compiler_static='$wl-static'
9098	;;
9099      esac
9100      ;;
9101
9102    hpux9* | hpux10* | hpux11*)
9103      lt_prog_compiler_wl='-Wl,'
9104      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9105      # not for PA HP-UX.
9106      case $host_cpu in
9107      hppa*64*|ia64*)
9108	# +Z the default
9109	;;
9110      *)
9111	lt_prog_compiler_pic='+Z'
9112	;;
9113      esac
9114      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9115      lt_prog_compiler_static='$wl-a ${wl}archive'
9116      ;;
9117
9118    irix5* | irix6* | nonstopux*)
9119      lt_prog_compiler_wl='-Wl,'
9120      # PIC (with -KPIC) is the default.
9121      lt_prog_compiler_static='-non_shared'
9122      ;;
9123
9124    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9125      case $cc_basename in
9126      # old Intel for x86_64, which still supported -KPIC.
9127      ecc*)
9128	lt_prog_compiler_wl='-Wl,'
9129	lt_prog_compiler_pic='-KPIC'
9130	lt_prog_compiler_static='-static'
9131        ;;
9132      # icc used to be incompatible with GCC.
9133      # ICC 10 doesn't accept -KPIC any more.
9134      icc* | ifort*)
9135	lt_prog_compiler_wl='-Wl,'
9136	lt_prog_compiler_pic='-fPIC'
9137	lt_prog_compiler_static='-static'
9138        ;;
9139      # Lahey Fortran 8.1.
9140      lf95*)
9141	lt_prog_compiler_wl='-Wl,'
9142	lt_prog_compiler_pic='--shared'
9143	lt_prog_compiler_static='--static'
9144	;;
9145      nagfor*)
9146	# NAG Fortran compiler
9147	lt_prog_compiler_wl='-Wl,-Wl,,'
9148	lt_prog_compiler_pic='-PIC'
9149	lt_prog_compiler_static='-Bstatic'
9150	;;
9151      tcc*)
9152	# Fabrice Bellard et al's Tiny C Compiler
9153	lt_prog_compiler_wl='-Wl,'
9154	lt_prog_compiler_pic='-fPIC'
9155	lt_prog_compiler_static='-static'
9156	;;
9157      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9158        # Portland Group compilers (*not* the Pentium gcc compiler,
9159	# which looks to be a dead project)
9160	lt_prog_compiler_wl='-Wl,'
9161	lt_prog_compiler_pic='-fpic'
9162	lt_prog_compiler_static='-Bstatic'
9163        ;;
9164      ccc*)
9165        lt_prog_compiler_wl='-Wl,'
9166        # All Alpha code is PIC.
9167        lt_prog_compiler_static='-non_shared'
9168        ;;
9169      xl* | bgxl* | bgf* | mpixl*)
9170	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9171	lt_prog_compiler_wl='-Wl,'
9172	lt_prog_compiler_pic='-qpic'
9173	lt_prog_compiler_static='-qstaticlink'
9174	;;
9175      *)
9176	case `$CC -V 2>&1 | sed 5q` in
9177	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9178	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9179	  lt_prog_compiler_pic='-KPIC'
9180	  lt_prog_compiler_static='-Bstatic'
9181	  lt_prog_compiler_wl=''
9182	  ;;
9183	*Sun\ F* | *Sun*Fortran*)
9184	  lt_prog_compiler_pic='-KPIC'
9185	  lt_prog_compiler_static='-Bstatic'
9186	  lt_prog_compiler_wl='-Qoption ld '
9187	  ;;
9188	*Sun\ C*)
9189	  # Sun C 5.9
9190	  lt_prog_compiler_pic='-KPIC'
9191	  lt_prog_compiler_static='-Bstatic'
9192	  lt_prog_compiler_wl='-Wl,'
9193	  ;;
9194        *Intel*\ [CF]*Compiler*)
9195	  lt_prog_compiler_wl='-Wl,'
9196	  lt_prog_compiler_pic='-fPIC'
9197	  lt_prog_compiler_static='-static'
9198	  ;;
9199	*Portland\ Group*)
9200	  lt_prog_compiler_wl='-Wl,'
9201	  lt_prog_compiler_pic='-fpic'
9202	  lt_prog_compiler_static='-Bstatic'
9203	  ;;
9204	esac
9205	;;
9206      esac
9207      ;;
9208
9209    newsos6)
9210      lt_prog_compiler_pic='-KPIC'
9211      lt_prog_compiler_static='-Bstatic'
9212      ;;
9213
9214    *nto* | *qnx*)
9215      # QNX uses GNU C++, but need to define -shared option too, otherwise
9216      # it will coredump.
9217      lt_prog_compiler_pic='-fPIC -shared'
9218      ;;
9219
9220    osf3* | osf4* | osf5*)
9221      lt_prog_compiler_wl='-Wl,'
9222      # All OSF/1 code is PIC.
9223      lt_prog_compiler_static='-non_shared'
9224      ;;
9225
9226    rdos*)
9227      lt_prog_compiler_static='-non_shared'
9228      ;;
9229
9230    solaris*)
9231      lt_prog_compiler_pic='-KPIC'
9232      lt_prog_compiler_static='-Bstatic'
9233      case $cc_basename in
9234      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9235	lt_prog_compiler_wl='-Qoption ld ';;
9236      *)
9237	lt_prog_compiler_wl='-Wl,';;
9238      esac
9239      ;;
9240
9241    sunos4*)
9242      lt_prog_compiler_wl='-Qoption ld '
9243      lt_prog_compiler_pic='-PIC'
9244      lt_prog_compiler_static='-Bstatic'
9245      ;;
9246
9247    sysv4 | sysv4.2uw2* | sysv4.3*)
9248      lt_prog_compiler_wl='-Wl,'
9249      lt_prog_compiler_pic='-KPIC'
9250      lt_prog_compiler_static='-Bstatic'
9251      ;;
9252
9253    sysv4*MP*)
9254      if test -d /usr/nec; then
9255	lt_prog_compiler_pic='-Kconform_pic'
9256	lt_prog_compiler_static='-Bstatic'
9257      fi
9258      ;;
9259
9260    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9261      lt_prog_compiler_wl='-Wl,'
9262      lt_prog_compiler_pic='-KPIC'
9263      lt_prog_compiler_static='-Bstatic'
9264      ;;
9265
9266    unicos*)
9267      lt_prog_compiler_wl='-Wl,'
9268      lt_prog_compiler_can_build_shared=no
9269      ;;
9270
9271    uts4*)
9272      lt_prog_compiler_pic='-pic'
9273      lt_prog_compiler_static='-Bstatic'
9274      ;;
9275
9276    *)
9277      lt_prog_compiler_can_build_shared=no
9278      ;;
9279    esac
9280  fi
9281
9282case $host_os in
9283  # For platforms that do not support PIC, -DPIC is meaningless:
9284  *djgpp*)
9285    lt_prog_compiler_pic=
9286    ;;
9287  *)
9288    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9289    ;;
9290esac
9291
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9293$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9294if ${lt_cv_prog_compiler_pic+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9298fi
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9300$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9301lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9302
9303#
9304# Check to make sure the PIC flag actually works.
9305#
9306if test -n "$lt_prog_compiler_pic"; then
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9308$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9309if ${lt_cv_prog_compiler_pic_works+:} false; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312  lt_cv_prog_compiler_pic_works=no
9313   ac_outfile=conftest.$ac_objext
9314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9316   # Insert the option either (1) after the last *FLAGS variable, or
9317   # (2) before a word containing "conftest.", or (3) at the end.
9318   # Note that $ac_compile itself does not contain backslashes and begins
9319   # with a dollar sign (not a hyphen), so the echo should work correctly.
9320   # The option is referenced via a variable to avoid confusing sed.
9321   lt_compile=`echo "$ac_compile" | $SED \
9322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324   -e 's:$: $lt_compiler_flag:'`
9325   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9326   (eval "$lt_compile" 2>conftest.err)
9327   ac_status=$?
9328   cat conftest.err >&5
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   if (exit $ac_status) && test -s "$ac_outfile"; then
9331     # The compiler can only warn and ignore the option if not recognized
9332     # So say no if there are warnings other than the usual output.
9333     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9334     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9336       lt_cv_prog_compiler_pic_works=yes
9337     fi
9338   fi
9339   $RM conftest*
9340
9341fi
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9343$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9344
9345if test yes = "$lt_cv_prog_compiler_pic_works"; then
9346    case $lt_prog_compiler_pic in
9347     "" | " "*) ;;
9348     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9349     esac
9350else
9351    lt_prog_compiler_pic=
9352     lt_prog_compiler_can_build_shared=no
9353fi
9354
9355fi
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367#
9368# Check to make sure the static flag actually works.
9369#
9370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9373if ${lt_cv_prog_compiler_static_works+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  lt_cv_prog_compiler_static_works=no
9377   save_LDFLAGS=$LDFLAGS
9378   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9379   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9380   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9381     # The linker can only warn and ignore the option if not recognized
9382     # So say no if there are warnings
9383     if test -s conftest.err; then
9384       # Append any errors to the config.log.
9385       cat conftest.err 1>&5
9386       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9387       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388       if diff conftest.exp conftest.er2 >/dev/null; then
9389         lt_cv_prog_compiler_static_works=yes
9390       fi
9391     else
9392       lt_cv_prog_compiler_static_works=yes
9393     fi
9394   fi
9395   $RM -r conftest*
9396   LDFLAGS=$save_LDFLAGS
9397
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9400$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9401
9402if test yes = "$lt_cv_prog_compiler_static_works"; then
9403    :
9404else
9405    lt_prog_compiler_static=
9406fi
9407
9408
9409
9410
9411
9412
9413
9414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9416if ${lt_cv_prog_compiler_c_o+:} false; then :
9417  $as_echo_n "(cached) " >&6
9418else
9419  lt_cv_prog_compiler_c_o=no
9420   $RM -r conftest 2>/dev/null
9421   mkdir conftest
9422   cd conftest
9423   mkdir out
9424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
9426   lt_compiler_flag="-o out/conftest2.$ac_objext"
9427   # Insert the option either (1) after the last *FLAGS variable, or
9428   # (2) before a word containing "conftest.", or (3) at the end.
9429   # Note that $ac_compile itself does not contain backslashes and begins
9430   # with a dollar sign (not a hyphen), so the echo should work correctly.
9431   lt_compile=`echo "$ac_compile" | $SED \
9432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434   -e 's:$: $lt_compiler_flag:'`
9435   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9436   (eval "$lt_compile" 2>out/conftest.err)
9437   ac_status=$?
9438   cat out/conftest.err >&5
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9441   then
9442     # The compiler can only warn and ignore the option if not recognized
9443     # So say no if there are warnings
9444     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9445     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447       lt_cv_prog_compiler_c_o=yes
9448     fi
9449   fi
9450   chmod u+w . 2>&5
9451   $RM conftest*
9452   # SGI C++ compiler will create directory out/ii_files/ for
9453   # template instantiation
9454   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455   $RM out/* && rmdir out
9456   cd ..
9457   $RM -r conftest
9458   $RM conftest*
9459
9460fi
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9462$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9463
9464
9465
9466
9467
9468
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9471if ${lt_cv_prog_compiler_c_o+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  lt_cv_prog_compiler_c_o=no
9475   $RM -r conftest 2>/dev/null
9476   mkdir conftest
9477   cd conftest
9478   mkdir out
9479   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480
9481   lt_compiler_flag="-o out/conftest2.$ac_objext"
9482   # Insert the option either (1) after the last *FLAGS variable, or
9483   # (2) before a word containing "conftest.", or (3) at the end.
9484   # Note that $ac_compile itself does not contain backslashes and begins
9485   # with a dollar sign (not a hyphen), so the echo should work correctly.
9486   lt_compile=`echo "$ac_compile" | $SED \
9487   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489   -e 's:$: $lt_compiler_flag:'`
9490   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9491   (eval "$lt_compile" 2>out/conftest.err)
9492   ac_status=$?
9493   cat out/conftest.err >&5
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9496   then
9497     # The compiler can only warn and ignore the option if not recognized
9498     # So say no if there are warnings
9499     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9500     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9501     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9502       lt_cv_prog_compiler_c_o=yes
9503     fi
9504   fi
9505   chmod u+w . 2>&5
9506   $RM conftest*
9507   # SGI C++ compiler will create directory out/ii_files/ for
9508   # template instantiation
9509   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9510   $RM out/* && rmdir out
9511   cd ..
9512   $RM -r conftest
9513   $RM conftest*
9514
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9517$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9518
9519
9520
9521
9522hard_links=nottested
9523if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9524  # do not overwrite the value of need_locks provided by the user
9525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9526$as_echo_n "checking if we can lock with hard links... " >&6; }
9527  hard_links=yes
9528  $RM conftest*
9529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9530  touch conftest.a
9531  ln conftest.a conftest.b 2>&5 || hard_links=no
9532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9534$as_echo "$hard_links" >&6; }
9535  if test no = "$hard_links"; then
9536    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9537$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9538    need_locks=warn
9539  fi
9540else
9541  need_locks=no
9542fi
9543
9544
9545
9546
9547
9548
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9551
9552  runpath_var=
9553  allow_undefined_flag=
9554  always_export_symbols=no
9555  archive_cmds=
9556  archive_expsym_cmds=
9557  compiler_needs_object=no
9558  enable_shared_with_static_runtimes=no
9559  export_dynamic_flag_spec=
9560  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9561  hardcode_automatic=no
9562  hardcode_direct=no
9563  hardcode_direct_absolute=no
9564  hardcode_libdir_flag_spec=
9565  hardcode_libdir_separator=
9566  hardcode_minus_L=no
9567  hardcode_shlibpath_var=unsupported
9568  inherit_rpath=no
9569  link_all_deplibs=unknown
9570  module_cmds=
9571  module_expsym_cmds=
9572  old_archive_from_new_cmds=
9573  old_archive_from_expsyms_cmds=
9574  thread_safe_flag_spec=
9575  whole_archive_flag_spec=
9576  # include_expsyms should be a list of space-separated symbols to be *always*
9577  # included in the symbol list
9578  include_expsyms=
9579  # exclude_expsyms can be an extended regexp of symbols to exclude
9580  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9581  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9582  # as well as any symbol that contains 'd'.
9583  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9584  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9585  # platforms (ab)use it in PIC code, but their linkers get confused if
9586  # the symbol is explicitly referenced.  Since portable code cannot
9587  # rely on this symbol name, it's probably fine to never include it in
9588  # preloaded symbol tables.
9589  # Exclude shared library initialization/finalization symbols.
9590  extract_expsyms_cmds=
9591
9592  case $host_os in
9593  cygwin* | mingw* | pw32* | cegcc*)
9594    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9595    # When not using gcc, we currently assume that we are using
9596    # Microsoft Visual C++.
9597    if test yes != "$GCC"; then
9598      with_gnu_ld=no
9599    fi
9600    ;;
9601  interix*)
9602    # we just hope/assume this is gcc and not c89 (= MSVC++)
9603    with_gnu_ld=yes
9604    ;;
9605  openbsd* | bitrig*)
9606    with_gnu_ld=no
9607    ;;
9608  esac
9609
9610  ld_shlibs=yes
9611
9612  # On some targets, GNU ld is compatible enough with the native linker
9613  # that we're better off using the native interface for both.
9614  lt_use_gnu_ld_interface=no
9615  if test yes = "$with_gnu_ld"; then
9616    case $host_os in
9617      aix*)
9618	# The AIX port of GNU ld has always aspired to compatibility
9619	# with the native linker.  However, as the warning in the GNU ld
9620	# block says, versions before 2.19.5* couldn't really create working
9621	# shared libraries, regardless of the interface used.
9622	case `$LD -v 2>&1` in
9623	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9624	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9625	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9626	  *)
9627	    lt_use_gnu_ld_interface=yes
9628	    ;;
9629	esac
9630	;;
9631      *)
9632	lt_use_gnu_ld_interface=yes
9633	;;
9634    esac
9635  fi
9636
9637  if test yes = "$lt_use_gnu_ld_interface"; then
9638    # If archive_cmds runs LD, not CC, wlarc should be empty
9639    wlarc='$wl'
9640
9641    # Set some defaults for GNU ld with shared library support. These
9642    # are reset later if shared libraries are not supported. Putting them
9643    # here allows them to be overridden if necessary.
9644    runpath_var=LD_RUN_PATH
9645    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9646    export_dynamic_flag_spec='$wl--export-dynamic'
9647    # ancient GNU ld didn't support --whole-archive et. al.
9648    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9649      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9650    else
9651      whole_archive_flag_spec=
9652    fi
9653    supports_anon_versioning=no
9654    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9655      *GNU\ gold*) supports_anon_versioning=yes ;;
9656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9659      *\ 2.11.*) ;; # other 2.11 versions
9660      *) supports_anon_versioning=yes ;;
9661    esac
9662
9663    # See if GNU ld supports shared libraries.
9664    case $host_os in
9665    aix[3-9]*)
9666      # On AIX/PPC, the GNU linker is very broken
9667      if test ia64 != "$host_cpu"; then
9668	ld_shlibs=no
9669	cat <<_LT_EOF 1>&2
9670
9671*** Warning: the GNU linker, at least up to release 2.19, is reported
9672*** to be unable to reliably create shared libraries on AIX.
9673*** Therefore, libtool is disabling shared libraries support.  If you
9674*** really care for shared libraries, you may want to install binutils
9675*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9676*** You will then need to restart the configuration process.
9677
9678_LT_EOF
9679      fi
9680      ;;
9681
9682    amigaos*)
9683      case $host_cpu in
9684      powerpc)
9685            # see comment about AmigaOS4 .so support
9686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9687            archive_expsym_cmds=''
9688        ;;
9689      m68k)
9690            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)'
9691            hardcode_libdir_flag_spec='-L$libdir'
9692            hardcode_minus_L=yes
9693        ;;
9694      esac
9695      ;;
9696
9697    beos*)
9698      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9699	allow_undefined_flag=unsupported
9700	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9701	# support --undefined.  This deserves some investigation.  FIXME
9702	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9703      else
9704	ld_shlibs=no
9705      fi
9706      ;;
9707
9708    cygwin* | mingw* | pw32* | cegcc*)
9709      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9710      # as there is no search path for DLLs.
9711      hardcode_libdir_flag_spec='-L$libdir'
9712      export_dynamic_flag_spec='$wl--export-all-symbols'
9713      allow_undefined_flag=unsupported
9714      always_export_symbols=no
9715      enable_shared_with_static_runtimes=yes
9716      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'
9717      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9718
9719      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9720        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9721	# If the export-symbols file already is a .def file, use it as
9722	# is; otherwise, prepend EXPORTS...
9723	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9724          cp $export_symbols $output_objdir/$soname.def;
9725        else
9726          echo EXPORTS > $output_objdir/$soname.def;
9727          cat $export_symbols >> $output_objdir/$soname.def;
9728        fi~
9729        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9730      else
9731	ld_shlibs=no
9732      fi
9733      ;;
9734
9735    haiku*)
9736      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9737      link_all_deplibs=yes
9738      ;;
9739
9740    os2*)
9741      hardcode_libdir_flag_spec='-L$libdir'
9742      hardcode_minus_L=yes
9743      allow_undefined_flag=unsupported
9744      shrext_cmds=.dll
9745      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9746	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9747	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9748	$ECHO EXPORTS >> $output_objdir/$libname.def~
9749	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9750	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9751	emximp -o $lib $output_objdir/$libname.def'
9752      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9753	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9754	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9755	$ECHO EXPORTS >> $output_objdir/$libname.def~
9756	prefix_cmds="$SED"~
9757	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9758	  prefix_cmds="$prefix_cmds -e 1d";
9759	fi~
9760	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9761	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9762	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9763	emximp -o $lib $output_objdir/$libname.def'
9764      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9765      enable_shared_with_static_runtimes=yes
9766      ;;
9767
9768    interix[3-9]*)
9769      hardcode_direct=no
9770      hardcode_shlibpath_var=no
9771      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9772      export_dynamic_flag_spec='$wl-E'
9773      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9774      # Instead, shared libraries are loaded at an image base (0x10000000 by
9775      # default) and relocated if they conflict, which is a slow very memory
9776      # consuming and fragmenting process.  To avoid this, we pick a random,
9777      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9778      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9779      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9780      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'
9781      ;;
9782
9783    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9784      tmp_diet=no
9785      if test linux-dietlibc = "$host_os"; then
9786	case $cc_basename in
9787	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9788	esac
9789      fi
9790      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9791	 && test no = "$tmp_diet"
9792      then
9793	tmp_addflag=' $pic_flag'
9794	tmp_sharedflag='-shared'
9795	case $cc_basename,$host_cpu in
9796        pgcc*)				# Portland Group C compiler
9797	  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'
9798	  tmp_addflag=' $pic_flag'
9799	  ;;
9800	pgf77* | pgf90* | pgf95* | pgfortran*)
9801					# Portland Group f77 and f90 compilers
9802	  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'
9803	  tmp_addflag=' $pic_flag -Mnomain' ;;
9804	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9805	  tmp_addflag=' -i_dynamic' ;;
9806	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9807	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9808	ifc* | ifort*)			# Intel Fortran compiler
9809	  tmp_addflag=' -nofor_main' ;;
9810	lf95*)				# Lahey Fortran 8.1
9811	  whole_archive_flag_spec=
9812	  tmp_sharedflag='--shared' ;;
9813        nagfor*)                        # NAGFOR 5.3
9814          tmp_sharedflag='-Wl,-shared' ;;
9815	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9816	  tmp_sharedflag='-qmkshrobj'
9817	  tmp_addflag= ;;
9818	nvcc*)	# Cuda Compiler Driver 2.2
9819	  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'
9820	  compiler_needs_object=yes
9821	  ;;
9822	esac
9823	case `$CC -V 2>&1 | sed 5q` in
9824	*Sun\ C*)			# Sun C 5.9
9825	  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'
9826	  compiler_needs_object=yes
9827	  tmp_sharedflag='-G' ;;
9828	*Sun\ F*)			# Sun Fortran 8.3
9829	  tmp_sharedflag='-G' ;;
9830	esac
9831	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9832
9833        if test yes = "$supports_anon_versioning"; then
9834          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9835            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9836            echo "local: *; };" >> $output_objdir/$libname.ver~
9837            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9838        fi
9839
9840	case $cc_basename in
9841	tcc*)
9842	  export_dynamic_flag_spec='-rdynamic'
9843	  ;;
9844	xlf* | bgf* | bgxlf* | mpixlf*)
9845	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9846	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9847	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9848	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9849	  if test yes = "$supports_anon_versioning"; then
9850	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9851              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9852              echo "local: *; };" >> $output_objdir/$libname.ver~
9853              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9854	  fi
9855	  ;;
9856	esac
9857      else
9858        ld_shlibs=no
9859      fi
9860      ;;
9861
9862    netbsd*)
9863      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9864	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9865	wlarc=
9866      else
9867	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9868	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9869      fi
9870      ;;
9871
9872    solaris*)
9873      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9874	ld_shlibs=no
9875	cat <<_LT_EOF 1>&2
9876
9877*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9878*** create shared libraries on Solaris systems.  Therefore, libtool
9879*** is disabling shared libraries support.  We urge you to upgrade GNU
9880*** binutils to release 2.9.1 or newer.  Another option is to modify
9881*** your PATH or compiler configuration so that the native linker is
9882*** used, and then restart.
9883
9884_LT_EOF
9885      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9886	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9887	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9888      else
9889	ld_shlibs=no
9890      fi
9891      ;;
9892
9893    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9894      case `$LD -v 2>&1` in
9895        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9896	ld_shlibs=no
9897	cat <<_LT_EOF 1>&2
9898
9899*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9900*** reliably create shared libraries on SCO systems.  Therefore, libtool
9901*** is disabling shared libraries support.  We urge you to upgrade GNU
9902*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9903*** your PATH or compiler configuration so that the native linker is
9904*** used, and then restart.
9905
9906_LT_EOF
9907	;;
9908	*)
9909	  # For security reasons, it is highly recommended that you always
9910	  # use absolute paths for naming shared libraries, and exclude the
9911	  # DT_RUNPATH tag from executables and libraries.  But doing so
9912	  # requires that you compile everything twice, which is a pain.
9913	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9914	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9915	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9916	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9917	  else
9918	    ld_shlibs=no
9919	  fi
9920	;;
9921      esac
9922      ;;
9923
9924    sunos4*)
9925      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926      wlarc=
9927      hardcode_direct=yes
9928      hardcode_shlibpath_var=no
9929      ;;
9930
9931    *)
9932      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9933	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9935      else
9936	ld_shlibs=no
9937      fi
9938      ;;
9939    esac
9940
9941    if test no = "$ld_shlibs"; then
9942      runpath_var=
9943      hardcode_libdir_flag_spec=
9944      export_dynamic_flag_spec=
9945      whole_archive_flag_spec=
9946    fi
9947  else
9948    # PORTME fill in a description of your system's linker (not GNU ld)
9949    case $host_os in
9950    aix3*)
9951      allow_undefined_flag=unsupported
9952      always_export_symbols=yes
9953      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'
9954      # Note: this linker hardcodes the directories in LIBPATH if there
9955      # are no directories specified by -L.
9956      hardcode_minus_L=yes
9957      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9958	# Neither direct hardcoding nor static linking is supported with a
9959	# broken collect2.
9960	hardcode_direct=unsupported
9961      fi
9962      ;;
9963
9964    aix[4-9]*)
9965      if test ia64 = "$host_cpu"; then
9966	# On IA64, the linker does run time linking by default, so we don't
9967	# have to do anything special.
9968	aix_use_runtimelinking=no
9969	exp_sym_flag='-Bexport'
9970	no_entry_flag=
9971      else
9972	# If we're using GNU nm, then we don't want the "-C" option.
9973	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9974	# Without the "-l" option, or with the "-B" option, AIX nm treats
9975	# weak defined symbols like other global defined symbols, whereas
9976	# GNU nm marks them as "W".
9977	# While the 'weak' keyword is ignored in the Export File, we need
9978	# it in the Import File for the 'aix-soname' feature, so we have
9979	# to replace the "-B" option with "-P" for AIX nm.
9980	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9981	  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'
9982	else
9983	  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'
9984	fi
9985	aix_use_runtimelinking=no
9986
9987	# Test if we are trying to use run time linking or normal
9988	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9989	# have runtime linking enabled, and use it for executables.
9990	# For shared libraries, we enable/disable runtime linking
9991	# depending on the kind of the shared library created -
9992	# when "with_aix_soname,aix_use_runtimelinking" is:
9993	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9994	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9995	#            lib.a           static archive
9996	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9997	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9998	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9999	#            lib.a(lib.so.V) shared, rtl:no
10000	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10001	#            lib.a           static archive
10002	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10003	  for ld_flag in $LDFLAGS; do
10004	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10005	    aix_use_runtimelinking=yes
10006	    break
10007	  fi
10008	  done
10009	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10010	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10011	    # so we don't have lib.a shared libs to link our executables.
10012	    # We have to force runtime linking in this case.
10013	    aix_use_runtimelinking=yes
10014	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10015	  fi
10016	  ;;
10017	esac
10018
10019	exp_sym_flag='-bexport'
10020	no_entry_flag='-bnoentry'
10021      fi
10022
10023      # When large executables or shared objects are built, AIX ld can
10024      # have problems creating the table of contents.  If linking a library
10025      # or program results in "error TOC overflow" add -mminimal-toc to
10026      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10027      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10028
10029      archive_cmds=''
10030      hardcode_direct=yes
10031      hardcode_direct_absolute=yes
10032      hardcode_libdir_separator=':'
10033      link_all_deplibs=yes
10034      file_list_spec='$wl-f,'
10035      case $with_aix_soname,$aix_use_runtimelinking in
10036      aix,*) ;; # traditional, no import file
10037      svr4,* | *,yes) # use import file
10038	# The Import File defines what to hardcode.
10039	hardcode_direct=no
10040	hardcode_direct_absolute=no
10041	;;
10042      esac
10043
10044      if test yes = "$GCC"; then
10045	case $host_os in aix4.[012]|aix4.[012].*)
10046	# We only want to do this on AIX 4.2 and lower, the check
10047	# below for broken collect2 doesn't work under 4.3+
10048	  collect2name=`$CC -print-prog-name=collect2`
10049	  if test -f "$collect2name" &&
10050	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10051	  then
10052	  # We have reworked collect2
10053	  :
10054	  else
10055	  # We have old collect2
10056	  hardcode_direct=unsupported
10057	  # It fails to find uninstalled libraries when the uninstalled
10058	  # path is not listed in the libpath.  Setting hardcode_minus_L
10059	  # to unsupported forces relinking
10060	  hardcode_minus_L=yes
10061	  hardcode_libdir_flag_spec='-L$libdir'
10062	  hardcode_libdir_separator=
10063	  fi
10064	  ;;
10065	esac
10066	shared_flag='-shared'
10067	if test yes = "$aix_use_runtimelinking"; then
10068	  shared_flag="$shared_flag "'$wl-G'
10069	fi
10070	# Need to ensure runtime linking is disabled for the traditional
10071	# shared library, or the linker may eventually find shared libraries
10072	# /with/ Import File - we do not want to mix them.
10073	shared_flag_aix='-shared'
10074	shared_flag_svr4='-shared $wl-G'
10075      else
10076	# not using gcc
10077	if test ia64 = "$host_cpu"; then
10078	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10079	# chokes on -Wl,-G. The following line is correct:
10080	  shared_flag='-G'
10081	else
10082	  if test yes = "$aix_use_runtimelinking"; then
10083	    shared_flag='$wl-G'
10084	  else
10085	    shared_flag='$wl-bM:SRE'
10086	  fi
10087	  shared_flag_aix='$wl-bM:SRE'
10088	  shared_flag_svr4='$wl-G'
10089	fi
10090      fi
10091
10092      export_dynamic_flag_spec='$wl-bexpall'
10093      # It seems that -bexpall does not export symbols beginning with
10094      # underscore (_), so it is better to generate a list of symbols to export.
10095      always_export_symbols=yes
10096      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10097	# Warning - without using the other runtime loading flags (-brtl),
10098	# -berok will link without error, but may produce a broken library.
10099	allow_undefined_flag='-berok'
10100        # Determine the default libpath from the value encoded in an
10101        # empty executable.
10102        if test set = "${lt_cv_aix_libpath+set}"; then
10103  aix_libpath=$lt_cv_aix_libpath
10104else
10105  if ${lt_cv_aix_libpath_+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110
10111int
10112main ()
10113{
10114
10115  ;
10116  return 0;
10117}
10118_ACEOF
10119if ac_fn_c_try_link "$LINENO"; then :
10120
10121  lt_aix_libpath_sed='
10122      /Import File Strings/,/^$/ {
10123	  /^0/ {
10124	      s/^0  *\([^ ]*\) *$/\1/
10125	      p
10126	  }
10127      }'
10128  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10129  # Check for a 64-bit object if we didn't find anything.
10130  if test -z "$lt_cv_aix_libpath_"; then
10131    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10132  fi
10133fi
10134rm -f core conftest.err conftest.$ac_objext \
10135    conftest$ac_exeext conftest.$ac_ext
10136  if test -z "$lt_cv_aix_libpath_"; then
10137    lt_cv_aix_libpath_=/usr/lib:/lib
10138  fi
10139
10140fi
10141
10142  aix_libpath=$lt_cv_aix_libpath_
10143fi
10144
10145        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10146        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
10147      else
10148	if test ia64 = "$host_cpu"; then
10149	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10150	  allow_undefined_flag="-z nodefs"
10151	  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"
10152	else
10153	 # Determine the default libpath from the value encoded in an
10154	 # empty executable.
10155	 if test set = "${lt_cv_aix_libpath+set}"; then
10156  aix_libpath=$lt_cv_aix_libpath
10157else
10158  if ${lt_cv_aix_libpath_+:} false; then :
10159  $as_echo_n "(cached) " >&6
10160else
10161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162/* end confdefs.h.  */
10163
10164int
10165main ()
10166{
10167
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172if ac_fn_c_try_link "$LINENO"; then :
10173
10174  lt_aix_libpath_sed='
10175      /Import File Strings/,/^$/ {
10176	  /^0/ {
10177	      s/^0  *\([^ ]*\) *$/\1/
10178	      p
10179	  }
10180      }'
10181  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10182  # Check for a 64-bit object if we didn't find anything.
10183  if test -z "$lt_cv_aix_libpath_"; then
10184    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185  fi
10186fi
10187rm -f core conftest.err conftest.$ac_objext \
10188    conftest$ac_exeext conftest.$ac_ext
10189  if test -z "$lt_cv_aix_libpath_"; then
10190    lt_cv_aix_libpath_=/usr/lib:/lib
10191  fi
10192
10193fi
10194
10195  aix_libpath=$lt_cv_aix_libpath_
10196fi
10197
10198	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10199	  # Warning - without using the other run time loading flags,
10200	  # -berok will link without error, but may produce a broken library.
10201	  no_undefined_flag=' $wl-bernotok'
10202	  allow_undefined_flag=' $wl-berok'
10203	  if test yes = "$with_gnu_ld"; then
10204	    # We only use this code for GNU lds that support --whole-archive.
10205	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10206	  else
10207	    # Exported symbols can be pulled into shared objects from archives
10208	    whole_archive_flag_spec='$convenience'
10209	  fi
10210	  archive_cmds_need_lc=yes
10211	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10212	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10213	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10214	  if test svr4 != "$with_aix_soname"; then
10215	    # This is similar to how AIX traditionally builds its shared libraries.
10216	    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'
10217	  fi
10218	  if test aix != "$with_aix_soname"; then
10219	    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'
10220	  else
10221	    # used by -dlpreopen to get the symbols
10222	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10223	  fi
10224	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10225	fi
10226      fi
10227      ;;
10228
10229    amigaos*)
10230      case $host_cpu in
10231      powerpc)
10232            # see comment about AmigaOS4 .so support
10233            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10234            archive_expsym_cmds=''
10235        ;;
10236      m68k)
10237            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)'
10238            hardcode_libdir_flag_spec='-L$libdir'
10239            hardcode_minus_L=yes
10240        ;;
10241      esac
10242      ;;
10243
10244    bsdi[45]*)
10245      export_dynamic_flag_spec=-rdynamic
10246      ;;
10247
10248    cygwin* | mingw* | pw32* | cegcc*)
10249      # When not using gcc, we currently assume that we are using
10250      # Microsoft Visual C++.
10251      # hardcode_libdir_flag_spec is actually meaningless, as there is
10252      # no search path for DLLs.
10253      case $cc_basename in
10254      cl*)
10255	# Native MSVC
10256	hardcode_libdir_flag_spec=' '
10257	allow_undefined_flag=unsupported
10258	always_export_symbols=yes
10259	file_list_spec='@'
10260	# Tell ltmain to make .lib files, not .a files.
10261	libext=lib
10262	# Tell ltmain to make .dll files, not .so files.
10263	shrext_cmds=.dll
10264	# FIXME: Setting linknames here is a bad hack.
10265	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10266	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10267            cp "$export_symbols" "$output_objdir/$soname.def";
10268            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10269          else
10270            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10271          fi~
10272          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10273          linknames='
10274	# The linker will not automatically build a static lib if we build a DLL.
10275	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10276	enable_shared_with_static_runtimes=yes
10277	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10278	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10279	# Don't use ranlib
10280	old_postinstall_cmds='chmod 644 $oldlib'
10281	postlink_cmds='lt_outputfile="@OUTPUT@"~
10282          lt_tool_outputfile="@TOOL_OUTPUT@"~
10283          case $lt_outputfile in
10284            *.exe|*.EXE) ;;
10285            *)
10286              lt_outputfile=$lt_outputfile.exe
10287              lt_tool_outputfile=$lt_tool_outputfile.exe
10288              ;;
10289          esac~
10290          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10291            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10292            $RM "$lt_outputfile.manifest";
10293          fi'
10294	;;
10295      *)
10296	# Assume MSVC wrapper
10297	hardcode_libdir_flag_spec=' '
10298	allow_undefined_flag=unsupported
10299	# Tell ltmain to make .lib files, not .a files.
10300	libext=lib
10301	# Tell ltmain to make .dll files, not .so files.
10302	shrext_cmds=.dll
10303	# FIXME: Setting linknames here is a bad hack.
10304	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10305	# The linker will automatically build a .lib file if we build a DLL.
10306	old_archive_from_new_cmds='true'
10307	# FIXME: Should let the user specify the lib program.
10308	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10309	enable_shared_with_static_runtimes=yes
10310	;;
10311      esac
10312      ;;
10313
10314    darwin* | rhapsody*)
10315
10316
10317  archive_cmds_need_lc=no
10318  hardcode_direct=no
10319  hardcode_automatic=yes
10320  hardcode_shlibpath_var=unsupported
10321  if test yes = "$lt_cv_ld_force_load"; then
10322    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\"`'
10323
10324  else
10325    whole_archive_flag_spec=''
10326  fi
10327  link_all_deplibs=yes
10328  allow_undefined_flag=$_lt_dar_allow_undefined
10329  case $cc_basename in
10330     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10331     *) _lt_dar_can_shared=$GCC ;;
10332  esac
10333  if test yes = "$_lt_dar_can_shared"; then
10334    output_verbose_link_cmd=func_echo_all
10335    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10336    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10337    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"
10338    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"
10339
10340  else
10341  ld_shlibs=no
10342  fi
10343
10344      ;;
10345
10346    dgux*)
10347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10348      hardcode_libdir_flag_spec='-L$libdir'
10349      hardcode_shlibpath_var=no
10350      ;;
10351
10352    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10353    # support.  Future versions do this automatically, but an explicit c++rt0.o
10354    # does not break anything, and helps significantly (at the cost of a little
10355    # extra space).
10356    freebsd2.2*)
10357      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10358      hardcode_libdir_flag_spec='-R$libdir'
10359      hardcode_direct=yes
10360      hardcode_shlibpath_var=no
10361      ;;
10362
10363    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10364    freebsd2.*)
10365      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10366      hardcode_direct=yes
10367      hardcode_minus_L=yes
10368      hardcode_shlibpath_var=no
10369      ;;
10370
10371    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10372    freebsd* | dragonfly*)
10373      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10374      hardcode_libdir_flag_spec='-R$libdir'
10375      hardcode_direct=yes
10376      hardcode_shlibpath_var=no
10377      ;;
10378
10379    hpux9*)
10380      if test yes = "$GCC"; then
10381	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'
10382      else
10383	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'
10384      fi
10385      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10386      hardcode_libdir_separator=:
10387      hardcode_direct=yes
10388
10389      # hardcode_minus_L: Not really in the search PATH,
10390      # but as the default location of the library.
10391      hardcode_minus_L=yes
10392      export_dynamic_flag_spec='$wl-E'
10393      ;;
10394
10395    hpux10*)
10396      if test yes,no = "$GCC,$with_gnu_ld"; then
10397	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10398      else
10399	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10400      fi
10401      if test no = "$with_gnu_ld"; then
10402	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10403	hardcode_libdir_separator=:
10404	hardcode_direct=yes
10405	hardcode_direct_absolute=yes
10406	export_dynamic_flag_spec='$wl-E'
10407	# hardcode_minus_L: Not really in the search PATH,
10408	# but as the default location of the library.
10409	hardcode_minus_L=yes
10410      fi
10411      ;;
10412
10413    hpux11*)
10414      if test yes,no = "$GCC,$with_gnu_ld"; then
10415	case $host_cpu in
10416	hppa*64*)
10417	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10418	  ;;
10419	ia64*)
10420	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10421	  ;;
10422	*)
10423	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10424	  ;;
10425	esac
10426      else
10427	case $host_cpu in
10428	hppa*64*)
10429	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10430	  ;;
10431	ia64*)
10432	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10433	  ;;
10434	*)
10435
10436	  # Older versions of the 11.00 compiler do not understand -b yet
10437	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10438	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10439$as_echo_n "checking if $CC understands -b... " >&6; }
10440if ${lt_cv_prog_compiler__b+:} false; then :
10441  $as_echo_n "(cached) " >&6
10442else
10443  lt_cv_prog_compiler__b=no
10444   save_LDFLAGS=$LDFLAGS
10445   LDFLAGS="$LDFLAGS -b"
10446   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10447   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10448     # The linker can only warn and ignore the option if not recognized
10449     # So say no if there are warnings
10450     if test -s conftest.err; then
10451       # Append any errors to the config.log.
10452       cat conftest.err 1>&5
10453       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10454       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10455       if diff conftest.exp conftest.er2 >/dev/null; then
10456         lt_cv_prog_compiler__b=yes
10457       fi
10458     else
10459       lt_cv_prog_compiler__b=yes
10460     fi
10461   fi
10462   $RM -r conftest*
10463   LDFLAGS=$save_LDFLAGS
10464
10465fi
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10467$as_echo "$lt_cv_prog_compiler__b" >&6; }
10468
10469if test yes = "$lt_cv_prog_compiler__b"; then
10470    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10471else
10472    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10473fi
10474
10475	  ;;
10476	esac
10477      fi
10478      if test no = "$with_gnu_ld"; then
10479	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10480	hardcode_libdir_separator=:
10481
10482	case $host_cpu in
10483	hppa*64*|ia64*)
10484	  hardcode_direct=no
10485	  hardcode_shlibpath_var=no
10486	  ;;
10487	*)
10488	  hardcode_direct=yes
10489	  hardcode_direct_absolute=yes
10490	  export_dynamic_flag_spec='$wl-E'
10491
10492	  # hardcode_minus_L: Not really in the search PATH,
10493	  # but as the default location of the library.
10494	  hardcode_minus_L=yes
10495	  ;;
10496	esac
10497      fi
10498      ;;
10499
10500    irix5* | irix6* | nonstopux*)
10501      if test yes = "$GCC"; then
10502	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'
10503	# Try to use the -exported_symbol ld option, if it does not
10504	# work, assume that -exports_file does not work either and
10505	# implicitly export all symbols.
10506	# This should be the same for all languages, so no per-tag cache variable.
10507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10508$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10509if ${lt_cv_irix_exported_symbol+:} false; then :
10510  $as_echo_n "(cached) " >&6
10511else
10512  save_LDFLAGS=$LDFLAGS
10513	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10514	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515/* end confdefs.h.  */
10516int foo (void) { return 0; }
10517_ACEOF
10518if ac_fn_c_try_link "$LINENO"; then :
10519  lt_cv_irix_exported_symbol=yes
10520else
10521  lt_cv_irix_exported_symbol=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext \
10524    conftest$ac_exeext conftest.$ac_ext
10525           LDFLAGS=$save_LDFLAGS
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10528$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10529	if test yes = "$lt_cv_irix_exported_symbol"; then
10530          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'
10531	fi
10532      else
10533	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'
10534	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'
10535      fi
10536      archive_cmds_need_lc='no'
10537      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10538      hardcode_libdir_separator=:
10539      inherit_rpath=yes
10540      link_all_deplibs=yes
10541      ;;
10542
10543    linux*)
10544      case $cc_basename in
10545      tcc*)
10546	# Fabrice Bellard et al's Tiny C Compiler
10547	ld_shlibs=yes
10548	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10549	;;
10550      esac
10551      ;;
10552
10553    netbsd*)
10554      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10556      else
10557	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10558      fi
10559      hardcode_libdir_flag_spec='-R$libdir'
10560      hardcode_direct=yes
10561      hardcode_shlibpath_var=no
10562      ;;
10563
10564    newsos6)
10565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566      hardcode_direct=yes
10567      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10568      hardcode_libdir_separator=:
10569      hardcode_shlibpath_var=no
10570      ;;
10571
10572    *nto* | *qnx*)
10573      ;;
10574
10575    openbsd* | bitrig*)
10576      if test -f /usr/libexec/ld.so; then
10577	hardcode_direct=yes
10578	hardcode_shlibpath_var=no
10579	hardcode_direct_absolute=yes
10580	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10581	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10583	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10584	  export_dynamic_flag_spec='$wl-E'
10585	else
10586	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10587	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10588	fi
10589      else
10590	ld_shlibs=no
10591      fi
10592      ;;
10593
10594    os2*)
10595      hardcode_libdir_flag_spec='-L$libdir'
10596      hardcode_minus_L=yes
10597      allow_undefined_flag=unsupported
10598      shrext_cmds=.dll
10599      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10600	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10601	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10602	$ECHO EXPORTS >> $output_objdir/$libname.def~
10603	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10604	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10605	emximp -o $lib $output_objdir/$libname.def'
10606      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10607	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10608	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10609	$ECHO EXPORTS >> $output_objdir/$libname.def~
10610	prefix_cmds="$SED"~
10611	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10612	  prefix_cmds="$prefix_cmds -e 1d";
10613	fi~
10614	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10615	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10616	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10617	emximp -o $lib $output_objdir/$libname.def'
10618      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10619      enable_shared_with_static_runtimes=yes
10620      ;;
10621
10622    osf3*)
10623      if test yes = "$GCC"; then
10624	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10625	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'
10626      else
10627	allow_undefined_flag=' -expect_unresolved \*'
10628	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'
10629      fi
10630      archive_cmds_need_lc='no'
10631      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10632      hardcode_libdir_separator=:
10633      ;;
10634
10635    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10636      if test yes = "$GCC"; then
10637	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10638	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'
10639	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640      else
10641	allow_undefined_flag=' -expect_unresolved \*'
10642	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'
10643	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~
10644          $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'
10645
10646	# Both c and cxx compiler support -rpath directly
10647	hardcode_libdir_flag_spec='-rpath $libdir'
10648      fi
10649      archive_cmds_need_lc='no'
10650      hardcode_libdir_separator=:
10651      ;;
10652
10653    solaris*)
10654      no_undefined_flag=' -z defs'
10655      if test yes = "$GCC"; then
10656	wlarc='$wl'
10657	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10658	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10659          $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'
10660      else
10661	case `$CC -V 2>&1` in
10662	*"Compilers 5.0"*)
10663	  wlarc=''
10664	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10667	  ;;
10668	*)
10669	  wlarc='$wl'
10670	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10671	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10672            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10673	  ;;
10674	esac
10675      fi
10676      hardcode_libdir_flag_spec='-R$libdir'
10677      hardcode_shlibpath_var=no
10678      case $host_os in
10679      solaris2.[0-5] | solaris2.[0-5].*) ;;
10680      *)
10681	# The compiler driver will combine and reorder linker options,
10682	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10683	# but is careful enough not to reorder.
10684	# Supported since Solaris 2.6 (maybe 2.5.1?)
10685	if test yes = "$GCC"; then
10686	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10687	else
10688	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10689	fi
10690	;;
10691      esac
10692      link_all_deplibs=yes
10693      ;;
10694
10695    sunos4*)
10696      if test sequent = "$host_vendor"; then
10697	# Use $CC to link under sequent, because it throws in some extra .o
10698	# files that make .init and .fini sections work.
10699	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10700      else
10701	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10702      fi
10703      hardcode_libdir_flag_spec='-L$libdir'
10704      hardcode_direct=yes
10705      hardcode_minus_L=yes
10706      hardcode_shlibpath_var=no
10707      ;;
10708
10709    sysv4)
10710      case $host_vendor in
10711	sni)
10712	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713	  hardcode_direct=yes # is this really true???
10714	;;
10715	siemens)
10716	  ## LD is ld it makes a PLAMLIB
10717	  ## CC just makes a GrossModule.
10718	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10719	  reload_cmds='$CC -r -o $output$reload_objs'
10720	  hardcode_direct=no
10721        ;;
10722	motorola)
10723	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10724	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10725	;;
10726      esac
10727      runpath_var='LD_RUN_PATH'
10728      hardcode_shlibpath_var=no
10729      ;;
10730
10731    sysv4.3*)
10732      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733      hardcode_shlibpath_var=no
10734      export_dynamic_flag_spec='-Bexport'
10735      ;;
10736
10737    sysv4*MP*)
10738      if test -d /usr/nec; then
10739	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740	hardcode_shlibpath_var=no
10741	runpath_var=LD_RUN_PATH
10742	hardcode_runpath_var=yes
10743	ld_shlibs=yes
10744      fi
10745      ;;
10746
10747    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10748      no_undefined_flag='$wl-z,text'
10749      archive_cmds_need_lc=no
10750      hardcode_shlibpath_var=no
10751      runpath_var='LD_RUN_PATH'
10752
10753      if test yes = "$GCC"; then
10754	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756      else
10757	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759      fi
10760      ;;
10761
10762    sysv5* | sco3.2v5* | sco5v6*)
10763      # Note: We CANNOT use -z defs as we might desire, because we do not
10764      # link with -lc, and that would cause any symbols used from libc to
10765      # always be unresolved, which means just about no library would
10766      # ever link correctly.  If we're not using GNU ld we use -z text
10767      # though, which does catch some bad symbols but isn't as heavy-handed
10768      # as -z defs.
10769      no_undefined_flag='$wl-z,text'
10770      allow_undefined_flag='$wl-z,nodefs'
10771      archive_cmds_need_lc=no
10772      hardcode_shlibpath_var=no
10773      hardcode_libdir_flag_spec='$wl-R,$libdir'
10774      hardcode_libdir_separator=':'
10775      link_all_deplibs=yes
10776      export_dynamic_flag_spec='$wl-Bexport'
10777      runpath_var='LD_RUN_PATH'
10778
10779      if test yes = "$GCC"; then
10780	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782      else
10783	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785      fi
10786      ;;
10787
10788    uts4*)
10789      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10790      hardcode_libdir_flag_spec='-L$libdir'
10791      hardcode_shlibpath_var=no
10792      ;;
10793
10794    *)
10795      ld_shlibs=no
10796      ;;
10797    esac
10798
10799    if test sni = "$host_vendor"; then
10800      case $host in
10801      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10802	export_dynamic_flag_spec='$wl-Blargedynsym'
10803	;;
10804      esac
10805    fi
10806  fi
10807
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10809$as_echo "$ld_shlibs" >&6; }
10810test no = "$ld_shlibs" && can_build_shared=no
10811
10812with_gnu_ld=$with_gnu_ld
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828#
10829# Do we need to explicitly link libc?
10830#
10831case "x$archive_cmds_need_lc" in
10832x|xyes)
10833  # Assume -lc should be added
10834  archive_cmds_need_lc=yes
10835
10836  if test yes,yes = "$GCC,$enable_shared"; then
10837    case $archive_cmds in
10838    *'~'*)
10839      # FIXME: we may have to deal with multi-command sequences.
10840      ;;
10841    '$CC '*)
10842      # Test whether the compiler implicitly links with -lc since on some
10843      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10844      # to ld, don't add -lc before -lgcc.
10845      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10846$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10847if ${lt_cv_archive_cmds_need_lc+:} false; then :
10848  $as_echo_n "(cached) " >&6
10849else
10850  $RM conftest*
10851	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10852
10853	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10854  (eval $ac_compile) 2>&5
10855  ac_status=$?
10856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10857  test $ac_status = 0; } 2>conftest.err; then
10858	  soname=conftest
10859	  lib=conftest
10860	  libobjs=conftest.$ac_objext
10861	  deplibs=
10862	  wl=$lt_prog_compiler_wl
10863	  pic_flag=$lt_prog_compiler_pic
10864	  compiler_flags=-v
10865	  linker_flags=-v
10866	  verstring=
10867	  output_objdir=.
10868	  libname=conftest
10869	  lt_save_allow_undefined_flag=$allow_undefined_flag
10870	  allow_undefined_flag=
10871	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10872  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10873  ac_status=$?
10874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10875  test $ac_status = 0; }
10876	  then
10877	    lt_cv_archive_cmds_need_lc=no
10878	  else
10879	    lt_cv_archive_cmds_need_lc=yes
10880	  fi
10881	  allow_undefined_flag=$lt_save_allow_undefined_flag
10882	else
10883	  cat conftest.err 1>&5
10884	fi
10885	$RM conftest*
10886
10887fi
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10889$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10890      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10891      ;;
10892    esac
10893  fi
10894  ;;
10895esac
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
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
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11049$as_echo_n "checking dynamic linker characteristics... " >&6; }
11050
11051if test yes = "$GCC"; then
11052  case $host_os in
11053    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11054    *) lt_awk_arg='/^libraries:/' ;;
11055  esac
11056  case $host_os in
11057    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11058    *) lt_sed_strip_eq='s|=/|/|g' ;;
11059  esac
11060  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11061  case $lt_search_path_spec in
11062  *\;*)
11063    # if the path contains ";" then we assume it to be the separator
11064    # otherwise default to the standard path separator (i.e. ":") - it is
11065    # assumed that no part of a normal pathname contains ";" but that should
11066    # okay in the real world where ";" in dirpaths is itself problematic.
11067    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11068    ;;
11069  *)
11070    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11071    ;;
11072  esac
11073  # Ok, now we have the path, separated by spaces, we can step through it
11074  # and add multilib dir if necessary...
11075  lt_tmp_lt_search_path_spec=
11076  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11077  # ...but if some path component already ends with the multilib dir we assume
11078  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11079  case "$lt_multi_os_dir; $lt_search_path_spec " in
11080  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11081    lt_multi_os_dir=
11082    ;;
11083  esac
11084  for lt_sys_path in $lt_search_path_spec; do
11085    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11086      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11087    elif test -n "$lt_multi_os_dir"; then
11088      test -d "$lt_sys_path" && \
11089	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11090    fi
11091  done
11092  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11093BEGIN {RS = " "; FS = "/|\n";} {
11094  lt_foo = "";
11095  lt_count = 0;
11096  for (lt_i = NF; lt_i > 0; lt_i--) {
11097    if ($lt_i != "" && $lt_i != ".") {
11098      if ($lt_i == "..") {
11099        lt_count++;
11100      } else {
11101        if (lt_count == 0) {
11102          lt_foo = "/" $lt_i lt_foo;
11103        } else {
11104          lt_count--;
11105        }
11106      }
11107    }
11108  }
11109  if (lt_foo != "") { lt_freq[lt_foo]++; }
11110  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11111}'`
11112  # AWK program above erroneously prepends '/' to C:/dos/paths
11113  # for these hosts.
11114  case $host_os in
11115    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11116      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11117  esac
11118  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11119else
11120  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11121fi
11122library_names_spec=
11123libname_spec='lib$name'
11124soname_spec=
11125shrext_cmds=.so
11126postinstall_cmds=
11127postuninstall_cmds=
11128finish_cmds=
11129finish_eval=
11130shlibpath_var=
11131shlibpath_overrides_runpath=unknown
11132version_type=none
11133dynamic_linker="$host_os ld.so"
11134sys_lib_dlsearch_path_spec="/lib /usr/lib"
11135need_lib_prefix=unknown
11136hardcode_into_libs=no
11137
11138# when you set need_version to no, make sure it does not cause -set_version
11139# flags to be left without arguments
11140need_version=unknown
11141
11142
11143
11144case $host_os in
11145aix3*)
11146  version_type=linux # correct to gnu/linux during the next big refactor
11147  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11148  shlibpath_var=LIBPATH
11149
11150  # AIX 3 has no versioning support, so we append a major version to the name.
11151  soname_spec='$libname$release$shared_ext$major'
11152  ;;
11153
11154aix[4-9]*)
11155  version_type=linux # correct to gnu/linux during the next big refactor
11156  need_lib_prefix=no
11157  need_version=no
11158  hardcode_into_libs=yes
11159  if test ia64 = "$host_cpu"; then
11160    # AIX 5 supports IA64
11161    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11162    shlibpath_var=LD_LIBRARY_PATH
11163  else
11164    # With GCC up to 2.95.x, collect2 would create an import file
11165    # for dependence libraries.  The import file would start with
11166    # the line '#! .'.  This would cause the generated library to
11167    # depend on '.', always an invalid library.  This was fixed in
11168    # development snapshots of GCC prior to 3.0.
11169    case $host_os in
11170      aix4 | aix4.[01] | aix4.[01].*)
11171      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11172	   echo ' yes '
11173	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11174	:
11175      else
11176	can_build_shared=no
11177      fi
11178      ;;
11179    esac
11180    # Using Import Files as archive members, it is possible to support
11181    # filename-based versioning of shared library archives on AIX. While
11182    # this would work for both with and without runtime linking, it will
11183    # prevent static linking of such archives. So we do filename-based
11184    # shared library versioning with .so extension only, which is used
11185    # when both runtime linking and shared linking is enabled.
11186    # Unfortunately, runtime linking may impact performance, so we do
11187    # not want this to be the default eventually. Also, we use the
11188    # versioned .so libs for executables only if there is the -brtl
11189    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11190    # To allow for filename-based versioning support, we need to create
11191    # libNAME.so.V as an archive file, containing:
11192    # *) an Import File, referring to the versioned filename of the
11193    #    archive as well as the shared archive member, telling the
11194    #    bitwidth (32 or 64) of that shared object, and providing the
11195    #    list of exported symbols of that shared object, eventually
11196    #    decorated with the 'weak' keyword
11197    # *) the shared object with the F_LOADONLY flag set, to really avoid
11198    #    it being seen by the linker.
11199    # At run time we better use the real file rather than another symlink,
11200    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11201
11202    case $with_aix_soname,$aix_use_runtimelinking in
11203    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11204    # soname into executable. Probably we can add versioning support to
11205    # collect2, so additional links can be useful in future.
11206    aix,yes) # traditional libtool
11207      dynamic_linker='AIX unversionable lib.so'
11208      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11209      # instead of lib<name>.a to let people know that these are not
11210      # typical AIX shared libraries.
11211      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11212      ;;
11213    aix,no) # traditional AIX only
11214      dynamic_linker='AIX lib.a(lib.so.V)'
11215      # We preserve .a as extension for shared libraries through AIX4.2
11216      # and later when we are not doing run time linking.
11217      library_names_spec='$libname$release.a $libname.a'
11218      soname_spec='$libname$release$shared_ext$major'
11219      ;;
11220    svr4,*) # full svr4 only
11221      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11222      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11223      # We do not specify a path in Import Files, so LIBPATH fires.
11224      shlibpath_overrides_runpath=yes
11225      ;;
11226    *,yes) # both, prefer svr4
11227      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11228      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11229      # unpreferred sharedlib libNAME.a needs extra handling
11230      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"'
11231      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"'
11232      # We do not specify a path in Import Files, so LIBPATH fires.
11233      shlibpath_overrides_runpath=yes
11234      ;;
11235    *,no) # both, prefer aix
11236      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11237      library_names_spec='$libname$release.a $libname.a'
11238      soname_spec='$libname$release$shared_ext$major'
11239      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11240      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)'
11241      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"'
11242      ;;
11243    esac
11244    shlibpath_var=LIBPATH
11245  fi
11246  ;;
11247
11248amigaos*)
11249  case $host_cpu in
11250  powerpc)
11251    # Since July 2007 AmigaOS4 officially supports .so libraries.
11252    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11253    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254    ;;
11255  m68k)
11256    library_names_spec='$libname.ixlibrary $libname.a'
11257    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11258    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'
11259    ;;
11260  esac
11261  ;;
11262
11263beos*)
11264  library_names_spec='$libname$shared_ext'
11265  dynamic_linker="$host_os ld.so"
11266  shlibpath_var=LIBRARY_PATH
11267  ;;
11268
11269bsdi[45]*)
11270  version_type=linux # correct to gnu/linux during the next big refactor
11271  need_version=no
11272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273  soname_spec='$libname$release$shared_ext$major'
11274  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11275  shlibpath_var=LD_LIBRARY_PATH
11276  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11277  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11278  # the default ld.so.conf also contains /usr/contrib/lib and
11279  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11280  # libtool to hard-code these into programs
11281  ;;
11282
11283cygwin* | mingw* | pw32* | cegcc*)
11284  version_type=windows
11285  shrext_cmds=.dll
11286  need_version=no
11287  need_lib_prefix=no
11288
11289  case $GCC,$cc_basename in
11290  yes,*)
11291    # gcc
11292    library_names_spec='$libname.dll.a'
11293    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11294    postinstall_cmds='base_file=`basename \$file`~
11295      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11296      dldir=$destdir/`dirname \$dlpath`~
11297      test -d \$dldir || mkdir -p \$dldir~
11298      $install_prog $dir/$dlname \$dldir/$dlname~
11299      chmod a+x \$dldir/$dlname~
11300      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11301        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11302      fi'
11303    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11304      dlpath=$dir/\$dldll~
11305       $RM \$dlpath'
11306    shlibpath_overrides_runpath=yes
11307
11308    case $host_os in
11309    cygwin*)
11310      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11311      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11312
11313      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11314      ;;
11315    mingw* | cegcc*)
11316      # MinGW DLLs use traditional 'lib' prefix
11317      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11318      ;;
11319    pw32*)
11320      # pw32 DLLs use 'pw' prefix rather than 'lib'
11321      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11322      ;;
11323    esac
11324    dynamic_linker='Win32 ld.exe'
11325    ;;
11326
11327  *,cl*)
11328    # Native MSVC
11329    libname_spec='$name'
11330    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11331    library_names_spec='$libname.dll.lib'
11332
11333    case $build_os in
11334    mingw*)
11335      sys_lib_search_path_spec=
11336      lt_save_ifs=$IFS
11337      IFS=';'
11338      for lt_path in $LIB
11339      do
11340        IFS=$lt_save_ifs
11341        # Let DOS variable expansion print the short 8.3 style file name.
11342        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11343        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11344      done
11345      IFS=$lt_save_ifs
11346      # Convert to MSYS style.
11347      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11348      ;;
11349    cygwin*)
11350      # Convert to unix form, then to dos form, then back to unix form
11351      # but this time dos style (no spaces!) so that the unix form looks
11352      # like /cygdrive/c/PROGRA~1:/cygdr...
11353      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11354      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11355      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11356      ;;
11357    *)
11358      sys_lib_search_path_spec=$LIB
11359      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11360        # It is most probably a Windows format PATH.
11361        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11362      else
11363        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11364      fi
11365      # FIXME: find the short name or the path components, as spaces are
11366      # common. (e.g. "Program Files" -> "PROGRA~1")
11367      ;;
11368    esac
11369
11370    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11371    postinstall_cmds='base_file=`basename \$file`~
11372      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11373      dldir=$destdir/`dirname \$dlpath`~
11374      test -d \$dldir || mkdir -p \$dldir~
11375      $install_prog $dir/$dlname \$dldir/$dlname'
11376    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11377      dlpath=$dir/\$dldll~
11378       $RM \$dlpath'
11379    shlibpath_overrides_runpath=yes
11380    dynamic_linker='Win32 link.exe'
11381    ;;
11382
11383  *)
11384    # Assume MSVC wrapper
11385    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11386    dynamic_linker='Win32 ld.exe'
11387    ;;
11388  esac
11389  # FIXME: first we should search . and the directory the executable is in
11390  shlibpath_var=PATH
11391  ;;
11392
11393darwin* | rhapsody*)
11394  dynamic_linker="$host_os dyld"
11395  version_type=darwin
11396  need_lib_prefix=no
11397  need_version=no
11398  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11399  soname_spec='$libname$release$major$shared_ext'
11400  shlibpath_overrides_runpath=yes
11401  shlibpath_var=DYLD_LIBRARY_PATH
11402  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11403
11404  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11405  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11406  ;;
11407
11408dgux*)
11409  version_type=linux # correct to gnu/linux during the next big refactor
11410  need_lib_prefix=no
11411  need_version=no
11412  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11413  soname_spec='$libname$release$shared_ext$major'
11414  shlibpath_var=LD_LIBRARY_PATH
11415  ;;
11416
11417freebsd* | dragonfly*)
11418  # DragonFly does not have aout.  When/if they implement a new
11419  # versioning mechanism, adjust this.
11420  if test -x /usr/bin/objformat; then
11421    objformat=`/usr/bin/objformat`
11422  else
11423    case $host_os in
11424    freebsd[23].*) objformat=aout ;;
11425    *) objformat=elf ;;
11426    esac
11427  fi
11428  version_type=freebsd-$objformat
11429  case $version_type in
11430    freebsd-elf*)
11431      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11432      soname_spec='$libname$release$shared_ext$major'
11433      need_version=no
11434      need_lib_prefix=no
11435      ;;
11436    freebsd-*)
11437      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11438      need_version=yes
11439      ;;
11440  esac
11441  shlibpath_var=LD_LIBRARY_PATH
11442  case $host_os in
11443  freebsd2.*)
11444    shlibpath_overrides_runpath=yes
11445    ;;
11446  freebsd3.[01]* | freebsdelf3.[01]*)
11447    shlibpath_overrides_runpath=yes
11448    hardcode_into_libs=yes
11449    ;;
11450  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11451  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11452    shlibpath_overrides_runpath=no
11453    hardcode_into_libs=yes
11454    ;;
11455  *) # from 4.6 on, and DragonFly
11456    shlibpath_overrides_runpath=yes
11457    hardcode_into_libs=yes
11458    ;;
11459  esac
11460  ;;
11461
11462haiku*)
11463  version_type=linux # correct to gnu/linux during the next big refactor
11464  need_lib_prefix=no
11465  need_version=no
11466  dynamic_linker="$host_os runtime_loader"
11467  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468  soname_spec='$libname$release$shared_ext$major'
11469  shlibpath_var=LIBRARY_PATH
11470  shlibpath_overrides_runpath=no
11471  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11472  hardcode_into_libs=yes
11473  ;;
11474
11475hpux9* | hpux10* | hpux11*)
11476  # Give a soname corresponding to the major version so that dld.sl refuses to
11477  # link against other versions.
11478  version_type=sunos
11479  need_lib_prefix=no
11480  need_version=no
11481  case $host_cpu in
11482  ia64*)
11483    shrext_cmds='.so'
11484    hardcode_into_libs=yes
11485    dynamic_linker="$host_os dld.so"
11486    shlibpath_var=LD_LIBRARY_PATH
11487    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11488    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489    soname_spec='$libname$release$shared_ext$major'
11490    if test 32 = "$HPUX_IA64_MODE"; then
11491      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11492      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11493    else
11494      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11495      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11496    fi
11497    ;;
11498  hppa*64*)
11499    shrext_cmds='.sl'
11500    hardcode_into_libs=yes
11501    dynamic_linker="$host_os dld.sl"
11502    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11503    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11504    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505    soname_spec='$libname$release$shared_ext$major'
11506    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11507    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11508    ;;
11509  *)
11510    shrext_cmds='.sl'
11511    dynamic_linker="$host_os dld.sl"
11512    shlibpath_var=SHLIB_PATH
11513    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11514    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515    soname_spec='$libname$release$shared_ext$major'
11516    ;;
11517  esac
11518  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11519  postinstall_cmds='chmod 555 $lib'
11520  # or fails outright, so override atomically:
11521  install_override_mode=555
11522  ;;
11523
11524interix[3-9]*)
11525  version_type=linux # correct to gnu/linux during the next big refactor
11526  need_lib_prefix=no
11527  need_version=no
11528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11529  soname_spec='$libname$release$shared_ext$major'
11530  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11531  shlibpath_var=LD_LIBRARY_PATH
11532  shlibpath_overrides_runpath=no
11533  hardcode_into_libs=yes
11534  ;;
11535
11536irix5* | irix6* | nonstopux*)
11537  case $host_os in
11538    nonstopux*) version_type=nonstopux ;;
11539    *)
11540	if test yes = "$lt_cv_prog_gnu_ld"; then
11541		version_type=linux # correct to gnu/linux during the next big refactor
11542	else
11543		version_type=irix
11544	fi ;;
11545  esac
11546  need_lib_prefix=no
11547  need_version=no
11548  soname_spec='$libname$release$shared_ext$major'
11549  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11550  case $host_os in
11551  irix5* | nonstopux*)
11552    libsuff= shlibsuff=
11553    ;;
11554  *)
11555    case $LD in # libtool.m4 will add one of these switches to LD
11556    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11557      libsuff= shlibsuff= libmagic=32-bit;;
11558    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11559      libsuff=32 shlibsuff=N32 libmagic=N32;;
11560    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11561      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11562    *) libsuff= shlibsuff= libmagic=never-match;;
11563    esac
11564    ;;
11565  esac
11566  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11567  shlibpath_overrides_runpath=no
11568  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11569  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11570  hardcode_into_libs=yes
11571  ;;
11572
11573# No shared lib support for Linux oldld, aout, or coff.
11574linux*oldld* | linux*aout* | linux*coff*)
11575  dynamic_linker=no
11576  ;;
11577
11578linux*android*)
11579  version_type=none # Android doesn't support versioned libraries.
11580  need_lib_prefix=no
11581  need_version=no
11582  library_names_spec='$libname$release$shared_ext'
11583  soname_spec='$libname$release$shared_ext'
11584  finish_cmds=
11585  shlibpath_var=LD_LIBRARY_PATH
11586  shlibpath_overrides_runpath=yes
11587
11588  # This implies no fast_install, which is unacceptable.
11589  # Some rework will be needed to allow for fast_install
11590  # before this can be enabled.
11591  hardcode_into_libs=yes
11592
11593  dynamic_linker='Android linker'
11594  # Don't embed -rpath directories since the linker doesn't support them.
11595  hardcode_libdir_flag_spec='-L$libdir'
11596  ;;
11597
11598# This must be glibc/ELF.
11599linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11600  version_type=linux # correct to gnu/linux during the next big refactor
11601  need_lib_prefix=no
11602  need_version=no
11603  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604  soname_spec='$libname$release$shared_ext$major'
11605  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11606  shlibpath_var=LD_LIBRARY_PATH
11607  shlibpath_overrides_runpath=no
11608
11609  # Some binutils ld are patched to set DT_RUNPATH
11610  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11611  $as_echo_n "(cached) " >&6
11612else
11613  lt_cv_shlibpath_overrides_runpath=no
11614    save_LDFLAGS=$LDFLAGS
11615    save_libdir=$libdir
11616    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11617	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11618    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h.  */
11620
11621int
11622main ()
11623{
11624
11625  ;
11626  return 0;
11627}
11628_ACEOF
11629if ac_fn_c_try_link "$LINENO"; then :
11630  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11631  lt_cv_shlibpath_overrides_runpath=yes
11632fi
11633fi
11634rm -f core conftest.err conftest.$ac_objext \
11635    conftest$ac_exeext conftest.$ac_ext
11636    LDFLAGS=$save_LDFLAGS
11637    libdir=$save_libdir
11638
11639fi
11640
11641  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11642
11643  # This implies no fast_install, which is unacceptable.
11644  # Some rework will be needed to allow for fast_install
11645  # before this can be enabled.
11646  hardcode_into_libs=yes
11647
11648  # Add ABI-specific directories to the system library path.
11649  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11650
11651  # Ideally, we could use ldconfig to report *all* directores which are
11652  # searched for libraries, however this is still not possible.  Aside from not
11653  # being certain /sbin/ldconfig is available, command
11654  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11655  # even though it is searched at run-time.  Try to do the best guess by
11656  # appending ld.so.conf contents (and includes) to the search path.
11657  if test -f /etc/ld.so.conf; then
11658    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' ' '`
11659    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11660  fi
11661
11662  # We used to test for /lib/ld.so.1 and disable shared libraries on
11663  # powerpc, because MkLinux only supported shared libraries with the
11664  # GNU dynamic linker.  Since this was broken with cross compilers,
11665  # most powerpc-linux boxes support dynamic linking these days and
11666  # people can always --disable-shared, the test was removed, and we
11667  # assume the GNU/Linux dynamic linker is in use.
11668  dynamic_linker='GNU/Linux ld.so'
11669  ;;
11670
11671netbsd*)
11672  version_type=sunos
11673  need_lib_prefix=no
11674  need_version=no
11675  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11676    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11677    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11678    dynamic_linker='NetBSD (a.out) ld.so'
11679  else
11680    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681    soname_spec='$libname$release$shared_ext$major'
11682    dynamic_linker='NetBSD ld.elf_so'
11683  fi
11684  shlibpath_var=LD_LIBRARY_PATH
11685  shlibpath_overrides_runpath=yes
11686  hardcode_into_libs=yes
11687  ;;
11688
11689newsos6)
11690  version_type=linux # correct to gnu/linux during the next big refactor
11691  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692  shlibpath_var=LD_LIBRARY_PATH
11693  shlibpath_overrides_runpath=yes
11694  ;;
11695
11696*nto* | *qnx*)
11697  version_type=qnx
11698  need_lib_prefix=no
11699  need_version=no
11700  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11701  soname_spec='$libname$release$shared_ext$major'
11702  shlibpath_var=LD_LIBRARY_PATH
11703  shlibpath_overrides_runpath=no
11704  hardcode_into_libs=yes
11705  dynamic_linker='ldqnx.so'
11706  ;;
11707
11708openbsd* | bitrig*)
11709  version_type=sunos
11710  sys_lib_dlsearch_path_spec=/usr/lib
11711  need_lib_prefix=no
11712  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11713    need_version=no
11714  else
11715    need_version=yes
11716  fi
11717  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11719  shlibpath_var=LD_LIBRARY_PATH
11720  shlibpath_overrides_runpath=yes
11721  ;;
11722
11723os2*)
11724  libname_spec='$name'
11725  version_type=windows
11726  shrext_cmds=.dll
11727  need_version=no
11728  need_lib_prefix=no
11729  # OS/2 can only load a DLL with a base name of 8 characters or less.
11730  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11731    v=$($ECHO $release$versuffix | tr -d .-);
11732    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11733    $ECHO $n$v`$shared_ext'
11734  library_names_spec='${libname}_dll.$libext'
11735  dynamic_linker='OS/2 ld.exe'
11736  shlibpath_var=BEGINLIBPATH
11737  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11738  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11739  postinstall_cmds='base_file=`basename \$file`~
11740    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11741    dldir=$destdir/`dirname \$dlpath`~
11742    test -d \$dldir || mkdir -p \$dldir~
11743    $install_prog $dir/$dlname \$dldir/$dlname~
11744    chmod a+x \$dldir/$dlname~
11745    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11746      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11747    fi'
11748  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11749    dlpath=$dir/\$dldll~
11750    $RM \$dlpath'
11751  ;;
11752
11753osf3* | osf4* | osf5*)
11754  version_type=osf
11755  need_lib_prefix=no
11756  need_version=no
11757  soname_spec='$libname$release$shared_ext$major'
11758  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11759  shlibpath_var=LD_LIBRARY_PATH
11760  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11761  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11762  ;;
11763
11764rdos*)
11765  dynamic_linker=no
11766  ;;
11767
11768solaris*)
11769  version_type=linux # correct to gnu/linux during the next big refactor
11770  need_lib_prefix=no
11771  need_version=no
11772  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773  soname_spec='$libname$release$shared_ext$major'
11774  shlibpath_var=LD_LIBRARY_PATH
11775  shlibpath_overrides_runpath=yes
11776  hardcode_into_libs=yes
11777  # ldd complains unless libraries are executable
11778  postinstall_cmds='chmod +x $lib'
11779  ;;
11780
11781sunos4*)
11782  version_type=sunos
11783  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11784  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  shlibpath_overrides_runpath=yes
11787  if test yes = "$with_gnu_ld"; then
11788    need_lib_prefix=no
11789  fi
11790  need_version=yes
11791  ;;
11792
11793sysv4 | sysv4.3*)
11794  version_type=linux # correct to gnu/linux during the next big refactor
11795  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11796  soname_spec='$libname$release$shared_ext$major'
11797  shlibpath_var=LD_LIBRARY_PATH
11798  case $host_vendor in
11799    sni)
11800      shlibpath_overrides_runpath=no
11801      need_lib_prefix=no
11802      runpath_var=LD_RUN_PATH
11803      ;;
11804    siemens)
11805      need_lib_prefix=no
11806      ;;
11807    motorola)
11808      need_lib_prefix=no
11809      need_version=no
11810      shlibpath_overrides_runpath=no
11811      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11812      ;;
11813  esac
11814  ;;
11815
11816sysv4*MP*)
11817  if test -d /usr/nec; then
11818    version_type=linux # correct to gnu/linux during the next big refactor
11819    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11820    soname_spec='$libname$shared_ext.$major'
11821    shlibpath_var=LD_LIBRARY_PATH
11822  fi
11823  ;;
11824
11825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11826  version_type=sco
11827  need_lib_prefix=no
11828  need_version=no
11829  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11830  soname_spec='$libname$release$shared_ext$major'
11831  shlibpath_var=LD_LIBRARY_PATH
11832  shlibpath_overrides_runpath=yes
11833  hardcode_into_libs=yes
11834  if test yes = "$with_gnu_ld"; then
11835    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11836  else
11837    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11838    case $host_os in
11839      sco3.2v5*)
11840        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11841	;;
11842    esac
11843  fi
11844  sys_lib_dlsearch_path_spec='/usr/lib'
11845  ;;
11846
11847tpf*)
11848  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11849  version_type=linux # correct to gnu/linux during the next big refactor
11850  need_lib_prefix=no
11851  need_version=no
11852  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11853  shlibpath_var=LD_LIBRARY_PATH
11854  shlibpath_overrides_runpath=no
11855  hardcode_into_libs=yes
11856  ;;
11857
11858uts4*)
11859  version_type=linux # correct to gnu/linux during the next big refactor
11860  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861  soname_spec='$libname$release$shared_ext$major'
11862  shlibpath_var=LD_LIBRARY_PATH
11863  ;;
11864
11865*)
11866  dynamic_linker=no
11867  ;;
11868esac
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11870$as_echo "$dynamic_linker" >&6; }
11871test no = "$dynamic_linker" && can_build_shared=no
11872
11873variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11874if test yes = "$GCC"; then
11875  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11876fi
11877
11878if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11879  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11880fi
11881
11882if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11883  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11884fi
11885
11886# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11887configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11888
11889# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11890func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11891
11892# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11893configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11992$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11993hardcode_action=
11994if test -n "$hardcode_libdir_flag_spec" ||
11995   test -n "$runpath_var" ||
11996   test yes = "$hardcode_automatic"; then
11997
11998  # We can hardcode non-existent directories.
11999  if test no != "$hardcode_direct" &&
12000     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12001     # have to relink, otherwise we might link with an installed library
12002     # when we should be linking with a yet-to-be-installed one
12003     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12004     test no != "$hardcode_minus_L"; then
12005    # Linking always hardcodes the temporary library directory.
12006    hardcode_action=relink
12007  else
12008    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12009    hardcode_action=immediate
12010  fi
12011else
12012  # We cannot hardcode anything, or else we can only hardcode existing
12013  # directories.
12014  hardcode_action=unsupported
12015fi
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12017$as_echo "$hardcode_action" >&6; }
12018
12019if test relink = "$hardcode_action" ||
12020   test yes = "$inherit_rpath"; then
12021  # Fast installation is not supported
12022  enable_fast_install=no
12023elif test yes = "$shlibpath_overrides_runpath" ||
12024     test no = "$enable_shared"; then
12025  # Fast installation is not necessary
12026  enable_fast_install=needless
12027fi
12028
12029
12030
12031
12032
12033
12034  if test yes != "$enable_dlopen"; then
12035  enable_dlopen=unknown
12036  enable_dlopen_self=unknown
12037  enable_dlopen_self_static=unknown
12038else
12039  lt_cv_dlopen=no
12040  lt_cv_dlopen_libs=
12041
12042  case $host_os in
12043  beos*)
12044    lt_cv_dlopen=load_add_on
12045    lt_cv_dlopen_libs=
12046    lt_cv_dlopen_self=yes
12047    ;;
12048
12049  mingw* | pw32* | cegcc*)
12050    lt_cv_dlopen=LoadLibrary
12051    lt_cv_dlopen_libs=
12052    ;;
12053
12054  cygwin*)
12055    lt_cv_dlopen=dlopen
12056    lt_cv_dlopen_libs=
12057    ;;
12058
12059  darwin*)
12060    # if libdl is installed we need to link against it
12061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12062$as_echo_n "checking for dlopen in -ldl... " >&6; }
12063if ${ac_cv_lib_dl_dlopen+:} false; then :
12064  $as_echo_n "(cached) " >&6
12065else
12066  ac_check_lib_save_LIBS=$LIBS
12067LIBS="-ldl  $LIBS"
12068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h.  */
12070
12071/* Override any GCC internal prototype to avoid an error.
12072   Use char because int might match the return type of a GCC
12073   builtin and then its argument prototype would still apply.  */
12074#ifdef __cplusplus
12075extern "C"
12076#endif
12077char dlopen ();
12078int
12079main ()
12080{
12081return dlopen ();
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_link "$LINENO"; then :
12087  ac_cv_lib_dl_dlopen=yes
12088else
12089  ac_cv_lib_dl_dlopen=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext \
12092    conftest$ac_exeext conftest.$ac_ext
12093LIBS=$ac_check_lib_save_LIBS
12094fi
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12097if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12098  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12099else
12100
12101    lt_cv_dlopen=dyld
12102    lt_cv_dlopen_libs=
12103    lt_cv_dlopen_self=yes
12104
12105fi
12106
12107    ;;
12108
12109  tpf*)
12110    # Don't try to run any link tests for TPF.  We know it's impossible
12111    # because TPF is a cross-compiler, and we know how we open DSOs.
12112    lt_cv_dlopen=dlopen
12113    lt_cv_dlopen_libs=
12114    lt_cv_dlopen_self=no
12115    ;;
12116
12117  *)
12118    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12119if test "x$ac_cv_func_shl_load" = xyes; then :
12120  lt_cv_dlopen=shl_load
12121else
12122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12123$as_echo_n "checking for shl_load in -ldld... " >&6; }
12124if ${ac_cv_lib_dld_shl_load+:} false; then :
12125  $as_echo_n "(cached) " >&6
12126else
12127  ac_check_lib_save_LIBS=$LIBS
12128LIBS="-ldld  $LIBS"
12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h.  */
12131
12132/* Override any GCC internal prototype to avoid an error.
12133   Use char because int might match the return type of a GCC
12134   builtin and then its argument prototype would still apply.  */
12135#ifdef __cplusplus
12136extern "C"
12137#endif
12138char shl_load ();
12139int
12140main ()
12141{
12142return shl_load ();
12143  ;
12144  return 0;
12145}
12146_ACEOF
12147if ac_fn_c_try_link "$LINENO"; then :
12148  ac_cv_lib_dld_shl_load=yes
12149else
12150  ac_cv_lib_dld_shl_load=no
12151fi
12152rm -f core conftest.err conftest.$ac_objext \
12153    conftest$ac_exeext conftest.$ac_ext
12154LIBS=$ac_check_lib_save_LIBS
12155fi
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12157$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12158if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12159  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12160else
12161  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12162if test "x$ac_cv_func_dlopen" = xyes; then :
12163  lt_cv_dlopen=dlopen
12164else
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12166$as_echo_n "checking for dlopen in -ldl... " >&6; }
12167if ${ac_cv_lib_dl_dlopen+:} false; then :
12168  $as_echo_n "(cached) " >&6
12169else
12170  ac_check_lib_save_LIBS=$LIBS
12171LIBS="-ldl  $LIBS"
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h.  */
12174
12175/* Override any GCC internal prototype to avoid an error.
12176   Use char because int might match the return type of a GCC
12177   builtin and then its argument prototype would still apply.  */
12178#ifdef __cplusplus
12179extern "C"
12180#endif
12181char dlopen ();
12182int
12183main ()
12184{
12185return dlopen ();
12186  ;
12187  return 0;
12188}
12189_ACEOF
12190if ac_fn_c_try_link "$LINENO"; then :
12191  ac_cv_lib_dl_dlopen=yes
12192else
12193  ac_cv_lib_dl_dlopen=no
12194fi
12195rm -f core conftest.err conftest.$ac_objext \
12196    conftest$ac_exeext conftest.$ac_ext
12197LIBS=$ac_check_lib_save_LIBS
12198fi
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12200$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12201if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12202  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12203else
12204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12205$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12206if ${ac_cv_lib_svld_dlopen+:} false; then :
12207  $as_echo_n "(cached) " >&6
12208else
12209  ac_check_lib_save_LIBS=$LIBS
12210LIBS="-lsvld  $LIBS"
12211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212/* end confdefs.h.  */
12213
12214/* Override any GCC internal prototype to avoid an error.
12215   Use char because int might match the return type of a GCC
12216   builtin and then its argument prototype would still apply.  */
12217#ifdef __cplusplus
12218extern "C"
12219#endif
12220char dlopen ();
12221int
12222main ()
12223{
12224return dlopen ();
12225  ;
12226  return 0;
12227}
12228_ACEOF
12229if ac_fn_c_try_link "$LINENO"; then :
12230  ac_cv_lib_svld_dlopen=yes
12231else
12232  ac_cv_lib_svld_dlopen=no
12233fi
12234rm -f core conftest.err conftest.$ac_objext \
12235    conftest$ac_exeext conftest.$ac_ext
12236LIBS=$ac_check_lib_save_LIBS
12237fi
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12239$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12240if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12241  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12242else
12243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12244$as_echo_n "checking for dld_link in -ldld... " >&6; }
12245if ${ac_cv_lib_dld_dld_link+:} false; then :
12246  $as_echo_n "(cached) " >&6
12247else
12248  ac_check_lib_save_LIBS=$LIBS
12249LIBS="-ldld  $LIBS"
12250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251/* end confdefs.h.  */
12252
12253/* Override any GCC internal prototype to avoid an error.
12254   Use char because int might match the return type of a GCC
12255   builtin and then its argument prototype would still apply.  */
12256#ifdef __cplusplus
12257extern "C"
12258#endif
12259char dld_link ();
12260int
12261main ()
12262{
12263return dld_link ();
12264  ;
12265  return 0;
12266}
12267_ACEOF
12268if ac_fn_c_try_link "$LINENO"; then :
12269  ac_cv_lib_dld_dld_link=yes
12270else
12271  ac_cv_lib_dld_dld_link=no
12272fi
12273rm -f core conftest.err conftest.$ac_objext \
12274    conftest$ac_exeext conftest.$ac_ext
12275LIBS=$ac_check_lib_save_LIBS
12276fi
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12278$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12279if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12280  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12281fi
12282
12283
12284fi
12285
12286
12287fi
12288
12289
12290fi
12291
12292
12293fi
12294
12295
12296fi
12297
12298    ;;
12299  esac
12300
12301  if test no = "$lt_cv_dlopen"; then
12302    enable_dlopen=no
12303  else
12304    enable_dlopen=yes
12305  fi
12306
12307  case $lt_cv_dlopen in
12308  dlopen)
12309    save_CPPFLAGS=$CPPFLAGS
12310    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12311
12312    save_LDFLAGS=$LDFLAGS
12313    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12314
12315    save_LIBS=$LIBS
12316    LIBS="$lt_cv_dlopen_libs $LIBS"
12317
12318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12319$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12320if ${lt_cv_dlopen_self+:} false; then :
12321  $as_echo_n "(cached) " >&6
12322else
12323  	  if test yes = "$cross_compiling"; then :
12324  lt_cv_dlopen_self=cross
12325else
12326  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12327  lt_status=$lt_dlunknown
12328  cat > conftest.$ac_ext <<_LT_EOF
12329#line $LINENO "configure"
12330#include "confdefs.h"
12331
12332#if HAVE_DLFCN_H
12333#include <dlfcn.h>
12334#endif
12335
12336#include <stdio.h>
12337
12338#ifdef RTLD_GLOBAL
12339#  define LT_DLGLOBAL		RTLD_GLOBAL
12340#else
12341#  ifdef DL_GLOBAL
12342#    define LT_DLGLOBAL		DL_GLOBAL
12343#  else
12344#    define LT_DLGLOBAL		0
12345#  endif
12346#endif
12347
12348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12349   find out it does not work in some platform. */
12350#ifndef LT_DLLAZY_OR_NOW
12351#  ifdef RTLD_LAZY
12352#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12353#  else
12354#    ifdef DL_LAZY
12355#      define LT_DLLAZY_OR_NOW		DL_LAZY
12356#    else
12357#      ifdef RTLD_NOW
12358#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12359#      else
12360#        ifdef DL_NOW
12361#          define LT_DLLAZY_OR_NOW	DL_NOW
12362#        else
12363#          define LT_DLLAZY_OR_NOW	0
12364#        endif
12365#      endif
12366#    endif
12367#  endif
12368#endif
12369
12370/* When -fvisibility=hidden is used, assume the code has been annotated
12371   correspondingly for the symbols needed.  */
12372#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12373int fnord () __attribute__((visibility("default")));
12374#endif
12375
12376int fnord () { return 42; }
12377int main ()
12378{
12379  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12380  int status = $lt_dlunknown;
12381
12382  if (self)
12383    {
12384      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12385      else
12386        {
12387	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12388          else puts (dlerror ());
12389	}
12390      /* dlclose (self); */
12391    }
12392  else
12393    puts (dlerror ());
12394
12395  return status;
12396}
12397_LT_EOF
12398  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12399  (eval $ac_link) 2>&5
12400  ac_status=$?
12401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12403    (./conftest; exit; ) >&5 2>/dev/null
12404    lt_status=$?
12405    case x$lt_status in
12406      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12407      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12408      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12409    esac
12410  else :
12411    # compilation failed
12412    lt_cv_dlopen_self=no
12413  fi
12414fi
12415rm -fr conftest*
12416
12417
12418fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12420$as_echo "$lt_cv_dlopen_self" >&6; }
12421
12422    if test yes = "$lt_cv_dlopen_self"; then
12423      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12424      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12425$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12426if ${lt_cv_dlopen_self_static+:} false; then :
12427  $as_echo_n "(cached) " >&6
12428else
12429  	  if test yes = "$cross_compiling"; then :
12430  lt_cv_dlopen_self_static=cross
12431else
12432  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12433  lt_status=$lt_dlunknown
12434  cat > conftest.$ac_ext <<_LT_EOF
12435#line $LINENO "configure"
12436#include "confdefs.h"
12437
12438#if HAVE_DLFCN_H
12439#include <dlfcn.h>
12440#endif
12441
12442#include <stdio.h>
12443
12444#ifdef RTLD_GLOBAL
12445#  define LT_DLGLOBAL		RTLD_GLOBAL
12446#else
12447#  ifdef DL_GLOBAL
12448#    define LT_DLGLOBAL		DL_GLOBAL
12449#  else
12450#    define LT_DLGLOBAL		0
12451#  endif
12452#endif
12453
12454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12455   find out it does not work in some platform. */
12456#ifndef LT_DLLAZY_OR_NOW
12457#  ifdef RTLD_LAZY
12458#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12459#  else
12460#    ifdef DL_LAZY
12461#      define LT_DLLAZY_OR_NOW		DL_LAZY
12462#    else
12463#      ifdef RTLD_NOW
12464#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12465#      else
12466#        ifdef DL_NOW
12467#          define LT_DLLAZY_OR_NOW	DL_NOW
12468#        else
12469#          define LT_DLLAZY_OR_NOW	0
12470#        endif
12471#      endif
12472#    endif
12473#  endif
12474#endif
12475
12476/* When -fvisibility=hidden is used, assume the code has been annotated
12477   correspondingly for the symbols needed.  */
12478#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12479int fnord () __attribute__((visibility("default")));
12480#endif
12481
12482int fnord () { return 42; }
12483int main ()
12484{
12485  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12486  int status = $lt_dlunknown;
12487
12488  if (self)
12489    {
12490      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12491      else
12492        {
12493	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12494          else puts (dlerror ());
12495	}
12496      /* dlclose (self); */
12497    }
12498  else
12499    puts (dlerror ());
12500
12501  return status;
12502}
12503_LT_EOF
12504  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12505  (eval $ac_link) 2>&5
12506  ac_status=$?
12507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12509    (./conftest; exit; ) >&5 2>/dev/null
12510    lt_status=$?
12511    case x$lt_status in
12512      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12513      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12514      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12515    esac
12516  else :
12517    # compilation failed
12518    lt_cv_dlopen_self_static=no
12519  fi
12520fi
12521rm -fr conftest*
12522
12523
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12526$as_echo "$lt_cv_dlopen_self_static" >&6; }
12527    fi
12528
12529    CPPFLAGS=$save_CPPFLAGS
12530    LDFLAGS=$save_LDFLAGS
12531    LIBS=$save_LIBS
12532    ;;
12533  esac
12534
12535  case $lt_cv_dlopen_self in
12536  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12537  *) enable_dlopen_self=unknown ;;
12538  esac
12539
12540  case $lt_cv_dlopen_self_static in
12541  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12542  *) enable_dlopen_self_static=unknown ;;
12543  esac
12544fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562striplib=
12563old_striplib=
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12565$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12566if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12567  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12568  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12570$as_echo "yes" >&6; }
12571else
12572# FIXME - insert some real tests, host_os isn't really good enough
12573  case $host_os in
12574  darwin*)
12575    if test -n "$STRIP"; then
12576      striplib="$STRIP -x"
12577      old_striplib="$STRIP -S"
12578      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579$as_echo "yes" >&6; }
12580    else
12581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
12583    fi
12584    ;;
12585  *)
12586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588    ;;
12589  esac
12590fi
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603  # Report what library types will actually be built
12604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12605$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12607$as_echo "$can_build_shared" >&6; }
12608
12609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12610$as_echo_n "checking whether to build shared libraries... " >&6; }
12611  test no = "$can_build_shared" && enable_shared=no
12612
12613  # On AIX, shared libraries and static libraries use the same namespace, and
12614  # are all built from PIC.
12615  case $host_os in
12616  aix3*)
12617    test yes = "$enable_shared" && enable_static=no
12618    if test -n "$RANLIB"; then
12619      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12620      postinstall_cmds='$RANLIB $lib'
12621    fi
12622    ;;
12623
12624  aix[4-9]*)
12625    if test ia64 != "$host_cpu"; then
12626      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12627      yes,aix,yes) ;;			# shared object as lib.so file only
12628      yes,svr4,*) ;;			# shared object as lib.so archive member only
12629      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12630      esac
12631    fi
12632    ;;
12633  esac
12634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12635$as_echo "$enable_shared" >&6; }
12636
12637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12638$as_echo_n "checking whether to build static libraries... " >&6; }
12639  # Make sure either enable_shared or enable_static is yes.
12640  test yes = "$enable_shared" || enable_static=yes
12641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12642$as_echo "$enable_static" >&6; }
12643
12644
12645
12646
12647fi
12648ac_ext=c
12649ac_cpp='$CPP $CPPFLAGS'
12650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652ac_compiler_gnu=$ac_cv_c_compiler_gnu
12653
12654CC=$lt_save_CC
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670        ac_config_commands="$ac_config_commands libtool"
12671
12672
12673
12674
12675# Only expand once:
12676
12677
12678
12679
12680  # Check whether --enable-ld-version-script was given.
12681if test "${enable_ld_version_script+set}" = set; then :
12682  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
12683else
12684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
12685$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
12686if ${gl_cv_sys_ld_version_script+:} false; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  gl_cv_sys_ld_version_script=no
12690        save_LDFLAGS=$LDFLAGS
12691        LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
12692        echo foo >conftest.map
12693        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695
12696int
12697main ()
12698{
12699
12700  ;
12701  return 0;
12702}
12703_ACEOF
12704if ac_fn_c_try_link "$LINENO"; then :
12705
12706else
12707  cat > conftest.map <<EOF
12708VERS_1 {
12709        global: sym;
12710};
12711
12712VERS_2 {
12713        global: sym;
12714} VERS_1;
12715EOF
12716           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717/* end confdefs.h.  */
12718
12719int
12720main ()
12721{
12722
12723  ;
12724  return 0;
12725}
12726_ACEOF
12727if ac_fn_c_try_link "$LINENO"; then :
12728  gl_cv_sys_ld_version_script=yes
12729fi
12730rm -f core conftest.err conftest.$ac_objext \
12731    conftest$ac_exeext conftest.$ac_ext
12732fi
12733rm -f core conftest.err conftest.$ac_objext \
12734    conftest$ac_exeext conftest.$ac_ext
12735        rm -f conftest.map
12736        LDFLAGS=$save_LDFLAGS
12737fi
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
12739$as_echo "$gl_cv_sys_ld_version_script" >&6; }
12740     have_ld_version_script=$gl_cv_sys_ld_version_script
12741fi
12742
12743   if test "$have_ld_version_script" = yes; then
12744  HAVE_LD_VERSION_SCRIPT_TRUE=
12745  HAVE_LD_VERSION_SCRIPT_FALSE='#'
12746else
12747  HAVE_LD_VERSION_SCRIPT_TRUE='#'
12748  HAVE_LD_VERSION_SCRIPT_FALSE=
12749fi
12750
12751
12752
12753ac_ext=c
12754ac_cpp='$CPP $CPPFLAGS'
12755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12757ac_compiler_gnu=$ac_cv_c_compiler_gnu
12758if test -n "$ac_tool_prefix"; then
12759  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12760set dummy ${ac_tool_prefix}gcc; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if ${ac_cv_prog_CC+:} false; then :
12764  $as_echo_n "(cached) " >&6
12765else
12766  if test -n "$CC"; then
12767  ac_cv_prog_CC="$CC" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772  IFS=$as_save_IFS
12773  test -z "$as_dir" && as_dir=.
12774    for ac_exec_ext in '' $ac_executable_extensions; do
12775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778    break 2
12779  fi
12780done
12781  done
12782IFS=$as_save_IFS
12783
12784fi
12785fi
12786CC=$ac_cv_prog_CC
12787if test -n "$CC"; then
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12789$as_echo "$CC" >&6; }
12790else
12791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792$as_echo "no" >&6; }
12793fi
12794
12795
12796fi
12797if test -z "$ac_cv_prog_CC"; then
12798  ac_ct_CC=$CC
12799  # Extract the first word of "gcc", so it can be a program name with args.
12800set dummy gcc; ac_word=$2
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
12803if ${ac_cv_prog_ac_ct_CC+:} false; then :
12804  $as_echo_n "(cached) " >&6
12805else
12806  if test -n "$ac_ct_CC"; then
12807  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12808else
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812  IFS=$as_save_IFS
12813  test -z "$as_dir" && as_dir=.
12814    for ac_exec_ext in '' $ac_executable_extensions; do
12815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816    ac_cv_prog_ac_ct_CC="gcc"
12817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818    break 2
12819  fi
12820done
12821  done
12822IFS=$as_save_IFS
12823
12824fi
12825fi
12826ac_ct_CC=$ac_cv_prog_ac_ct_CC
12827if test -n "$ac_ct_CC"; then
12828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12829$as_echo "$ac_ct_CC" >&6; }
12830else
12831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835  if test "x$ac_ct_CC" = x; then
12836    CC=""
12837  else
12838    case $cross_compiling:$ac_tool_warned in
12839yes:)
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12842ac_tool_warned=yes ;;
12843esac
12844    CC=$ac_ct_CC
12845  fi
12846else
12847  CC="$ac_cv_prog_CC"
12848fi
12849
12850if test -z "$CC"; then
12851          if test -n "$ac_tool_prefix"; then
12852    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12853set dummy ${ac_tool_prefix}cc; ac_word=$2
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855$as_echo_n "checking for $ac_word... " >&6; }
12856if ${ac_cv_prog_CC+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  if test -n "$CC"; then
12860  ac_cv_prog_CC="$CC" # Let the user override the test.
12861else
12862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863for as_dir in $PATH
12864do
12865  IFS=$as_save_IFS
12866  test -z "$as_dir" && as_dir=.
12867    for ac_exec_ext in '' $ac_executable_extensions; do
12868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869    ac_cv_prog_CC="${ac_tool_prefix}cc"
12870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871    break 2
12872  fi
12873done
12874  done
12875IFS=$as_save_IFS
12876
12877fi
12878fi
12879CC=$ac_cv_prog_CC
12880if test -n "$CC"; then
12881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12882$as_echo "$CC" >&6; }
12883else
12884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885$as_echo "no" >&6; }
12886fi
12887
12888
12889  fi
12890fi
12891if test -z "$CC"; then
12892  # Extract the first word of "cc", so it can be a program name with args.
12893set dummy cc; ac_word=$2
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895$as_echo_n "checking for $ac_word... " >&6; }
12896if ${ac_cv_prog_CC+:} false; then :
12897  $as_echo_n "(cached) " >&6
12898else
12899  if test -n "$CC"; then
12900  ac_cv_prog_CC="$CC" # Let the user override the test.
12901else
12902  ac_prog_rejected=no
12903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904for as_dir in $PATH
12905do
12906  IFS=$as_save_IFS
12907  test -z "$as_dir" && as_dir=.
12908    for ac_exec_ext in '' $ac_executable_extensions; do
12909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12911       ac_prog_rejected=yes
12912       continue
12913     fi
12914    ac_cv_prog_CC="cc"
12915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916    break 2
12917  fi
12918done
12919  done
12920IFS=$as_save_IFS
12921
12922if test $ac_prog_rejected = yes; then
12923  # We found a bogon in the path, so make sure we never use it.
12924  set dummy $ac_cv_prog_CC
12925  shift
12926  if test $# != 0; then
12927    # We chose a different compiler from the bogus one.
12928    # However, it has the same basename, so the bogon will be chosen
12929    # first if we set CC to just the basename; use the full file name.
12930    shift
12931    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12932  fi
12933fi
12934fi
12935fi
12936CC=$ac_cv_prog_CC
12937if test -n "$CC"; then
12938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12939$as_echo "$CC" >&6; }
12940else
12941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
12943fi
12944
12945
12946fi
12947if test -z "$CC"; then
12948  if test -n "$ac_tool_prefix"; then
12949  for ac_prog in cl.exe
12950  do
12951    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954$as_echo_n "checking for $ac_word... " >&6; }
12955if ${ac_cv_prog_CC+:} false; then :
12956  $as_echo_n "(cached) " >&6
12957else
12958  if test -n "$CC"; then
12959  ac_cv_prog_CC="$CC" # Let the user override the test.
12960else
12961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $PATH
12963do
12964  IFS=$as_save_IFS
12965  test -z "$as_dir" && as_dir=.
12966    for ac_exec_ext in '' $ac_executable_extensions; do
12967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970    break 2
12971  fi
12972done
12973  done
12974IFS=$as_save_IFS
12975
12976fi
12977fi
12978CC=$ac_cv_prog_CC
12979if test -n "$CC"; then
12980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12981$as_echo "$CC" >&6; }
12982else
12983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984$as_echo "no" >&6; }
12985fi
12986
12987
12988    test -n "$CC" && break
12989  done
12990fi
12991if test -z "$CC"; then
12992  ac_ct_CC=$CC
12993  for ac_prog in cl.exe
12994do
12995  # Extract the first word of "$ac_prog", so it can be a program name with args.
12996set dummy $ac_prog; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if ${ac_cv_prog_ac_ct_CC+:} false; then :
13000  $as_echo_n "(cached) " >&6
13001else
13002  if test -n "$ac_ct_CC"; then
13003  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008  IFS=$as_save_IFS
13009  test -z "$as_dir" && as_dir=.
13010    for ac_exec_ext in '' $ac_executable_extensions; do
13011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012    ac_cv_prog_ac_ct_CC="$ac_prog"
13013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014    break 2
13015  fi
13016done
13017  done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022ac_ct_CC=$ac_cv_prog_ac_ct_CC
13023if test -n "$ac_ct_CC"; then
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13025$as_echo "$ac_ct_CC" >&6; }
13026else
13027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
13029fi
13030
13031
13032  test -n "$ac_ct_CC" && break
13033done
13034
13035  if test "x$ac_ct_CC" = x; then
13036    CC=""
13037  else
13038    case $cross_compiling:$ac_tool_warned in
13039yes:)
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13042ac_tool_warned=yes ;;
13043esac
13044    CC=$ac_ct_CC
13045  fi
13046fi
13047
13048fi
13049
13050
13051test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13053as_fn_error $? "no acceptable C compiler found in \$PATH
13054See \`config.log' for more details" "$LINENO" 5; }
13055
13056# Provide some information about the compiler.
13057$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13058set X $ac_compile
13059ac_compiler=$2
13060for ac_option in --version -v -V -qversion; do
13061  { { ac_try="$ac_compiler $ac_option >&5"
13062case "(($ac_try" in
13063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064  *) ac_try_echo=$ac_try;;
13065esac
13066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13067$as_echo "$ac_try_echo"; } >&5
13068  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13069  ac_status=$?
13070  if test -s conftest.err; then
13071    sed '10a\
13072... rest of stderr output deleted ...
13073         10q' conftest.err >conftest.er1
13074    cat conftest.er1 >&5
13075  fi
13076  rm -f conftest.er1 conftest.err
13077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078  test $ac_status = 0; }
13079done
13080
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13082$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13083if ${ac_cv_c_compiler_gnu+:} false; then :
13084  $as_echo_n "(cached) " >&6
13085else
13086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h.  */
13088
13089int
13090main ()
13091{
13092#ifndef __GNUC__
13093       choke me
13094#endif
13095
13096  ;
13097  return 0;
13098}
13099_ACEOF
13100if ac_fn_c_try_compile "$LINENO"; then :
13101  ac_compiler_gnu=yes
13102else
13103  ac_compiler_gnu=no
13104fi
13105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106ac_cv_c_compiler_gnu=$ac_compiler_gnu
13107
13108fi
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13110$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13111if test $ac_compiler_gnu = yes; then
13112  GCC=yes
13113else
13114  GCC=
13115fi
13116ac_test_CFLAGS=${CFLAGS+set}
13117ac_save_CFLAGS=$CFLAGS
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13119$as_echo_n "checking whether $CC accepts -g... " >&6; }
13120if ${ac_cv_prog_cc_g+:} false; then :
13121  $as_echo_n "(cached) " >&6
13122else
13123  ac_save_c_werror_flag=$ac_c_werror_flag
13124   ac_c_werror_flag=yes
13125   ac_cv_prog_cc_g=no
13126   CFLAGS="-g"
13127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h.  */
13129
13130int
13131main ()
13132{
13133
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138if ac_fn_c_try_compile "$LINENO"; then :
13139  ac_cv_prog_cc_g=yes
13140else
13141  CFLAGS=""
13142      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143/* end confdefs.h.  */
13144
13145int
13146main ()
13147{
13148
13149  ;
13150  return 0;
13151}
13152_ACEOF
13153if ac_fn_c_try_compile "$LINENO"; then :
13154
13155else
13156  ac_c_werror_flag=$ac_save_c_werror_flag
13157	 CFLAGS="-g"
13158	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160
13161int
13162main ()
13163{
13164
13165  ;
13166  return 0;
13167}
13168_ACEOF
13169if ac_fn_c_try_compile "$LINENO"; then :
13170  ac_cv_prog_cc_g=yes
13171fi
13172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13173fi
13174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175fi
13176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177   ac_c_werror_flag=$ac_save_c_werror_flag
13178fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13180$as_echo "$ac_cv_prog_cc_g" >&6; }
13181if test "$ac_test_CFLAGS" = set; then
13182  CFLAGS=$ac_save_CFLAGS
13183elif test $ac_cv_prog_cc_g = yes; then
13184  if test "$GCC" = yes; then
13185    CFLAGS="-g -O2"
13186  else
13187    CFLAGS="-g"
13188  fi
13189else
13190  if test "$GCC" = yes; then
13191    CFLAGS="-O2"
13192  else
13193    CFLAGS=
13194  fi
13195fi
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13197$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13198if ${ac_cv_prog_cc_c89+:} false; then :
13199  $as_echo_n "(cached) " >&6
13200else
13201  ac_cv_prog_cc_c89=no
13202ac_save_CC=$CC
13203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204/* end confdefs.h.  */
13205#include <stdarg.h>
13206#include <stdio.h>
13207struct stat;
13208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13209struct buf { int x; };
13210FILE * (*rcsopen) (struct buf *, struct stat *, int);
13211static char *e (p, i)
13212     char **p;
13213     int i;
13214{
13215  return p[i];
13216}
13217static char *f (char * (*g) (char **, int), char **p, ...)
13218{
13219  char *s;
13220  va_list v;
13221  va_start (v,p);
13222  s = g (p, va_arg (v,int));
13223  va_end (v);
13224  return s;
13225}
13226
13227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13228   function prototypes and stuff, but not '\xHH' hex character constants.
13229   These don't provoke an error unfortunately, instead are silently treated
13230   as 'x'.  The following induces an error, until -std is added to get
13231   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13232   array size at least.  It's necessary to write '\x00'==0 to get something
13233   that's true only with -std.  */
13234int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13235
13236/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13237   inside strings and character constants.  */
13238#define FOO(x) 'x'
13239int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13240
13241int test (int i, double x);
13242struct s1 {int (*f) (int a);};
13243struct s2 {int (*f) (double a);};
13244int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13245int argc;
13246char **argv;
13247int
13248main ()
13249{
13250return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13251  ;
13252  return 0;
13253}
13254_ACEOF
13255for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13256	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13257do
13258  CC="$ac_save_CC $ac_arg"
13259  if ac_fn_c_try_compile "$LINENO"; then :
13260  ac_cv_prog_cc_c89=$ac_arg
13261fi
13262rm -f core conftest.err conftest.$ac_objext
13263  test "x$ac_cv_prog_cc_c89" != "xno" && break
13264done
13265rm -f conftest.$ac_ext
13266CC=$ac_save_CC
13267
13268fi
13269# AC_CACHE_VAL
13270case "x$ac_cv_prog_cc_c89" in
13271  x)
13272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13273$as_echo "none needed" >&6; } ;;
13274  xno)
13275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13276$as_echo "unsupported" >&6; } ;;
13277  *)
13278    CC="$CC $ac_cv_prog_cc_c89"
13279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13280$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13281esac
13282if test "x$ac_cv_prog_cc_c89" != xno; then :
13283
13284fi
13285
13286ac_ext=c
13287ac_cpp='$CPP $CPPFLAGS'
13288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290ac_compiler_gnu=$ac_cv_c_compiler_gnu
13291
13292ac_ext=c
13293ac_cpp='$CPP $CPPFLAGS'
13294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13298$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13299if ${am_cv_prog_cc_c_o+:} false; then :
13300  $as_echo_n "(cached) " >&6
13301else
13302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303/* end confdefs.h.  */
13304
13305int
13306main ()
13307{
13308
13309  ;
13310  return 0;
13311}
13312_ACEOF
13313  # Make sure it works both with $CC and with simple cc.
13314  # Following AC_PROG_CC_C_O, we do the test twice because some
13315  # compilers refuse to overwrite an existing .o file with -o,
13316  # though they will create one.
13317  am_cv_prog_cc_c_o=yes
13318  for am_i in 1 2; do
13319    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13320   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } \
13324         && test -f conftest2.$ac_objext; then
13325      : OK
13326    else
13327      am_cv_prog_cc_c_o=no
13328      break
13329    fi
13330  done
13331  rm -f core conftest*
13332  unset am_i
13333fi
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13335$as_echo "$am_cv_prog_cc_c_o" >&6; }
13336if test "$am_cv_prog_cc_c_o" != yes; then
13337   # Losing compiler, so override with the script.
13338   # FIXME: It is wrong to rewrite CC.
13339   # But if we don't then we get into trouble of one sort or another.
13340   # A longer-term fix would be to have automake use am__CC in this case,
13341   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13342   CC="$am_aux_dir/compile $CC"
13343fi
13344ac_ext=c
13345ac_cpp='$CPP $CPPFLAGS'
13346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348ac_compiler_gnu=$ac_cv_c_compiler_gnu
13349
13350
13351depcc="$CC"   am_compiler_list=
13352
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13354$as_echo_n "checking dependency style of $depcc... " >&6; }
13355if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13359  # We make a subdir and do the tests there.  Otherwise we can end up
13360  # making bogus files that we don't know about and never remove.  For
13361  # instance it was reported that on HP-UX the gcc test will end up
13362  # making a dummy file named 'D' -- because '-MD' means "put the output
13363  # in D".
13364  rm -rf conftest.dir
13365  mkdir conftest.dir
13366  # Copy depcomp to subdir because otherwise we won't find it if we're
13367  # using a relative directory.
13368  cp "$am_depcomp" conftest.dir
13369  cd conftest.dir
13370  # We will build objects and dependencies in a subdirectory because
13371  # it helps to detect inapplicable dependency modes.  For instance
13372  # both Tru64's cc and ICC support -MD to output dependencies as a
13373  # side effect of compilation, but ICC will put the dependencies in
13374  # the current directory while Tru64 will put them in the object
13375  # directory.
13376  mkdir sub
13377
13378  am_cv_CC_dependencies_compiler_type=none
13379  if test "$am_compiler_list" = ""; then
13380     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13381  fi
13382  am__universal=false
13383  case " $depcc " in #(
13384     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13385     esac
13386
13387  for depmode in $am_compiler_list; do
13388    # Setup a source with many dependencies, because some compilers
13389    # like to wrap large dependency lists on column 80 (with \), and
13390    # we should not choose a depcomp mode which is confused by this.
13391    #
13392    # We need to recreate these files for each test, as the compiler may
13393    # overwrite some of them when testing with obscure command lines.
13394    # This happens at least with the AIX C compiler.
13395    : > sub/conftest.c
13396    for i in 1 2 3 4 5 6; do
13397      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13398      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13399      # Solaris 10 /bin/sh.
13400      echo '/* dummy */' > sub/conftst$i.h
13401    done
13402    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13403
13404    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13405    # mode.  It turns out that the SunPro C++ compiler does not properly
13406    # handle '-M -o', and we need to detect this.  Also, some Intel
13407    # versions had trouble with output in subdirs.
13408    am__obj=sub/conftest.${OBJEXT-o}
13409    am__minus_obj="-o $am__obj"
13410    case $depmode in
13411    gcc)
13412      # This depmode causes a compiler race in universal mode.
13413      test "$am__universal" = false || continue
13414      ;;
13415    nosideeffect)
13416      # After this tag, mechanisms are not by side-effect, so they'll
13417      # only be used when explicitly requested.
13418      if test "x$enable_dependency_tracking" = xyes; then
13419	continue
13420      else
13421	break
13422      fi
13423      ;;
13424    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13425      # This compiler won't grok '-c -o', but also, the minuso test has
13426      # not run yet.  These depmodes are late enough in the game, and
13427      # so weak that their functioning should not be impacted.
13428      am__obj=conftest.${OBJEXT-o}
13429      am__minus_obj=
13430      ;;
13431    none) break ;;
13432    esac
13433    if depmode=$depmode \
13434       source=sub/conftest.c object=$am__obj \
13435       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13436       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13437         >/dev/null 2>conftest.err &&
13438       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13439       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13440       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13441       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13442      # icc doesn't choke on unknown options, it will just issue warnings
13443      # or remarks (even with -Werror).  So we grep stderr for any message
13444      # that says an option was ignored or not supported.
13445      # When given -MP, icc 7.0 and 7.1 complain thusly:
13446      #   icc: Command line warning: ignoring option '-M'; no argument required
13447      # The diagnosis changed in icc 8.0:
13448      #   icc: Command line remark: option '-MP' not supported
13449      if (grep 'ignoring option' conftest.err ||
13450          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13451        am_cv_CC_dependencies_compiler_type=$depmode
13452        break
13453      fi
13454    fi
13455  done
13456
13457  cd ..
13458  rm -rf conftest.dir
13459else
13460  am_cv_CC_dependencies_compiler_type=none
13461fi
13462
13463fi
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13465$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13466CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13467
13468 if
13469  test "x$enable_dependency_tracking" != xno \
13470  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13471  am__fastdepCC_TRUE=
13472  am__fastdepCC_FALSE='#'
13473else
13474  am__fastdepCC_TRUE='#'
13475  am__fastdepCC_FALSE=
13476fi
13477
13478
13479ac_ext=c
13480ac_cpp='$CPP $CPPFLAGS'
13481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13483ac_compiler_gnu=$ac_cv_c_compiler_gnu
13484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13485$as_echo_n "checking how to run the C preprocessor... " >&6; }
13486# On Suns, sometimes $CPP names a directory.
13487if test -n "$CPP" && test -d "$CPP"; then
13488  CPP=
13489fi
13490if test -z "$CPP"; then
13491  if ${ac_cv_prog_CPP+:} false; then :
13492  $as_echo_n "(cached) " >&6
13493else
13494      # Double quotes because CPP needs to be expanded
13495    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13496    do
13497      ac_preproc_ok=false
13498for ac_c_preproc_warn_flag in '' yes
13499do
13500  # Use a header file that comes with gcc, so configuring glibc
13501  # with a fresh cross-compiler works.
13502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13503  # <limits.h> exists even on freestanding compilers.
13504  # On the NeXT, cc -E runs the code through the compiler's parser,
13505  # not just through cpp. "Syntax error" is here to catch this case.
13506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h.  */
13508#ifdef __STDC__
13509# include <limits.h>
13510#else
13511# include <assert.h>
13512#endif
13513		     Syntax error
13514_ACEOF
13515if ac_fn_c_try_cpp "$LINENO"; then :
13516
13517else
13518  # Broken: fails on valid input.
13519continue
13520fi
13521rm -f conftest.err conftest.i conftest.$ac_ext
13522
13523  # OK, works on sane cases.  Now check whether nonexistent headers
13524  # can be detected and how.
13525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526/* end confdefs.h.  */
13527#include <ac_nonexistent.h>
13528_ACEOF
13529if ac_fn_c_try_cpp "$LINENO"; then :
13530  # Broken: success on invalid input.
13531continue
13532else
13533  # Passes both tests.
13534ac_preproc_ok=:
13535break
13536fi
13537rm -f conftest.err conftest.i conftest.$ac_ext
13538
13539done
13540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13541rm -f conftest.i conftest.err conftest.$ac_ext
13542if $ac_preproc_ok; then :
13543  break
13544fi
13545
13546    done
13547    ac_cv_prog_CPP=$CPP
13548
13549fi
13550  CPP=$ac_cv_prog_CPP
13551else
13552  ac_cv_prog_CPP=$CPP
13553fi
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13555$as_echo "$CPP" >&6; }
13556ac_preproc_ok=false
13557for ac_c_preproc_warn_flag in '' yes
13558do
13559  # Use a header file that comes with gcc, so configuring glibc
13560  # with a fresh cross-compiler works.
13561  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13562  # <limits.h> exists even on freestanding compilers.
13563  # On the NeXT, cc -E runs the code through the compiler's parser,
13564  # not just through cpp. "Syntax error" is here to catch this case.
13565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566/* end confdefs.h.  */
13567#ifdef __STDC__
13568# include <limits.h>
13569#else
13570# include <assert.h>
13571#endif
13572		     Syntax error
13573_ACEOF
13574if ac_fn_c_try_cpp "$LINENO"; then :
13575
13576else
13577  # Broken: fails on valid input.
13578continue
13579fi
13580rm -f conftest.err conftest.i conftest.$ac_ext
13581
13582  # OK, works on sane cases.  Now check whether nonexistent headers
13583  # can be detected and how.
13584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h.  */
13586#include <ac_nonexistent.h>
13587_ACEOF
13588if ac_fn_c_try_cpp "$LINENO"; then :
13589  # Broken: success on invalid input.
13590continue
13591else
13592  # Passes both tests.
13593ac_preproc_ok=:
13594break
13595fi
13596rm -f conftest.err conftest.i conftest.$ac_ext
13597
13598done
13599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13600rm -f conftest.i conftest.err conftest.$ac_ext
13601if $ac_preproc_ok; then :
13602
13603else
13604  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13606as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13607See \`config.log' for more details" "$LINENO" 5; }
13608fi
13609
13610ac_ext=c
13611ac_cpp='$CPP $CPPFLAGS'
13612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614ac_compiler_gnu=$ac_cv_c_compiler_gnu
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13625	if test -n "$ac_tool_prefix"; then
13626  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13627set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629$as_echo_n "checking for $ac_word... " >&6; }
13630if ${ac_cv_path_PKG_CONFIG+:} false; then :
13631  $as_echo_n "(cached) " >&6
13632else
13633  case $PKG_CONFIG in
13634  [\\/]* | ?:[\\/]*)
13635  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13636  ;;
13637  *)
13638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639for as_dir in $PATH
13640do
13641  IFS=$as_save_IFS
13642  test -z "$as_dir" && as_dir=.
13643    for ac_exec_ext in '' $ac_executable_extensions; do
13644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647    break 2
13648  fi
13649done
13650  done
13651IFS=$as_save_IFS
13652
13653  ;;
13654esac
13655fi
13656PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13657if test -n "$PKG_CONFIG"; then
13658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13659$as_echo "$PKG_CONFIG" >&6; }
13660else
13661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662$as_echo "no" >&6; }
13663fi
13664
13665
13666fi
13667if test -z "$ac_cv_path_PKG_CONFIG"; then
13668  ac_pt_PKG_CONFIG=$PKG_CONFIG
13669  # Extract the first word of "pkg-config", so it can be a program name with args.
13670set dummy pkg-config; ac_word=$2
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672$as_echo_n "checking for $ac_word... " >&6; }
13673if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13674  $as_echo_n "(cached) " >&6
13675else
13676  case $ac_pt_PKG_CONFIG in
13677  [\\/]* | ?:[\\/]*)
13678  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13679  ;;
13680  *)
13681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682for as_dir in $PATH
13683do
13684  IFS=$as_save_IFS
13685  test -z "$as_dir" && as_dir=.
13686    for ac_exec_ext in '' $ac_executable_extensions; do
13687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690    break 2
13691  fi
13692done
13693  done
13694IFS=$as_save_IFS
13695
13696  ;;
13697esac
13698fi
13699ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13700if test -n "$ac_pt_PKG_CONFIG"; then
13701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13702$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13703else
13704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705$as_echo "no" >&6; }
13706fi
13707
13708  if test "x$ac_pt_PKG_CONFIG" = x; then
13709    PKG_CONFIG=""
13710  else
13711    case $cross_compiling:$ac_tool_warned in
13712yes:)
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13715ac_tool_warned=yes ;;
13716esac
13717    PKG_CONFIG=$ac_pt_PKG_CONFIG
13718  fi
13719else
13720  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13721fi
13722
13723fi
13724if test -n "$PKG_CONFIG"; then
13725	_pkg_min_version=0.9.0
13726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13727$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13728	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13730$as_echo "yes" >&6; }
13731	else
13732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733$as_echo "no" >&6; }
13734		PKG_CONFIG=""
13735	fi
13736fi
13737
13738LINGUAS=""
13739
13740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13741$as_echo_n "checking whether NLS is requested... " >&6; }
13742    # Check whether --enable-nls was given.
13743if test "${enable_nls+set}" = set; then :
13744  enableval=$enable_nls; USE_NLS=$enableval
13745else
13746  USE_NLS=yes
13747fi
13748
13749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13750$as_echo "$USE_NLS" >&6; }
13751
13752
13753
13754
13755      GETTEXT_MACRO_VERSION=0.20
13756
13757
13758
13759
13760# Prepare PATH_SEPARATOR.
13761# The user is always right.
13762if test "${PATH_SEPARATOR+set}" != set; then
13763  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13764  # contains only /bin. Note that ksh looks also at the FPATH variable,
13765  # so we have to set that as well for the test.
13766  PATH_SEPARATOR=:
13767  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13768    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13769           || PATH_SEPARATOR=';'
13770       }
13771fi
13772
13773# Find out how to test for executable files. Don't use a zero-byte file,
13774# as systems may use methods other than mode bits to determine executability.
13775cat >conf$$.file <<_ASEOF
13776#! /bin/sh
13777exit 0
13778_ASEOF
13779chmod +x conf$$.file
13780if test -x conf$$.file >/dev/null 2>&1; then
13781  ac_executable_p="test -x"
13782else
13783  ac_executable_p="test -f"
13784fi
13785rm -f conf$$.file
13786
13787# Extract the first word of "msgfmt", so it can be a program name with args.
13788set dummy msgfmt; ac_word=$2
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
13791if ${ac_cv_path_MSGFMT+:} false; then :
13792  $as_echo_n "(cached) " >&6
13793else
13794  case "$MSGFMT" in
13795  [\\/]* | ?:[\\/]*)
13796    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13797    ;;
13798  *)
13799    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13800    for ac_dir in $PATH; do
13801      IFS="$ac_save_IFS"
13802      test -z "$ac_dir" && ac_dir=.
13803      for ac_exec_ext in '' $ac_executable_extensions; do
13804        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13805          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13806          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13807     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13808            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13809            break 2
13810          fi
13811        fi
13812      done
13813    done
13814    IFS="$ac_save_IFS"
13815  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13816    ;;
13817esac
13818fi
13819MSGFMT="$ac_cv_path_MSGFMT"
13820if test "$MSGFMT" != ":"; then
13821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13822$as_echo "$MSGFMT" >&6; }
13823else
13824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825$as_echo "no" >&6; }
13826fi
13827
13828  # Extract the first word of "gmsgfmt", so it can be a program name with args.
13829set dummy gmsgfmt; ac_word=$2
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13831$as_echo_n "checking for $ac_word... " >&6; }
13832if ${ac_cv_path_GMSGFMT+:} false; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835  case $GMSGFMT in
13836  [\\/]* | ?:[\\/]*)
13837  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13838  ;;
13839  *)
13840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in $PATH
13842do
13843  IFS=$as_save_IFS
13844  test -z "$as_dir" && as_dir=.
13845    for ac_exec_ext in '' $ac_executable_extensions; do
13846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13847    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849    break 2
13850  fi
13851done
13852  done
13853IFS=$as_save_IFS
13854
13855  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13856  ;;
13857esac
13858fi
13859GMSGFMT=$ac_cv_path_GMSGFMT
13860if test -n "$GMSGFMT"; then
13861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13862$as_echo "$GMSGFMT" >&6; }
13863else
13864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865$as_echo "no" >&6; }
13866fi
13867
13868
13869
13870    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13871    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13872    *) GMSGFMT_015=$GMSGFMT ;;
13873  esac
13874
13875
13876
13877# Prepare PATH_SEPARATOR.
13878# The user is always right.
13879if test "${PATH_SEPARATOR+set}" != set; then
13880  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13881  # contains only /bin. Note that ksh looks also at the FPATH variable,
13882  # so we have to set that as well for the test.
13883  PATH_SEPARATOR=:
13884  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13885    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13886           || PATH_SEPARATOR=';'
13887       }
13888fi
13889
13890# Find out how to test for executable files. Don't use a zero-byte file,
13891# as systems may use methods other than mode bits to determine executability.
13892cat >conf$$.file <<_ASEOF
13893#! /bin/sh
13894exit 0
13895_ASEOF
13896chmod +x conf$$.file
13897if test -x conf$$.file >/dev/null 2>&1; then
13898  ac_executable_p="test -x"
13899else
13900  ac_executable_p="test -f"
13901fi
13902rm -f conf$$.file
13903
13904# Extract the first word of "xgettext", so it can be a program name with args.
13905set dummy xgettext; ac_word=$2
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907$as_echo_n "checking for $ac_word... " >&6; }
13908if ${ac_cv_path_XGETTEXT+:} false; then :
13909  $as_echo_n "(cached) " >&6
13910else
13911  case "$XGETTEXT" in
13912  [\\/]* | ?:[\\/]*)
13913    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13914    ;;
13915  *)
13916    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13917    for ac_dir in $PATH; do
13918      IFS="$ac_save_IFS"
13919      test -z "$ac_dir" && ac_dir=.
13920      for ac_exec_ext in '' $ac_executable_extensions; do
13921        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13922          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13923          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13924     (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
13925            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13926            break 2
13927          fi
13928        fi
13929      done
13930    done
13931    IFS="$ac_save_IFS"
13932  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13933    ;;
13934esac
13935fi
13936XGETTEXT="$ac_cv_path_XGETTEXT"
13937if test "$XGETTEXT" != ":"; then
13938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13939$as_echo "$XGETTEXT" >&6; }
13940else
13941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942$as_echo "no" >&6; }
13943fi
13944
13945    rm -f messages.po
13946
13947    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13948    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13949    *) XGETTEXT_015=$XGETTEXT ;;
13950  esac
13951
13952
13953
13954# Prepare PATH_SEPARATOR.
13955# The user is always right.
13956if test "${PATH_SEPARATOR+set}" != set; then
13957  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13958  # contains only /bin. Note that ksh looks also at the FPATH variable,
13959  # so we have to set that as well for the test.
13960  PATH_SEPARATOR=:
13961  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13962    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13963           || PATH_SEPARATOR=';'
13964       }
13965fi
13966
13967# Find out how to test for executable files. Don't use a zero-byte file,
13968# as systems may use methods other than mode bits to determine executability.
13969cat >conf$$.file <<_ASEOF
13970#! /bin/sh
13971exit 0
13972_ASEOF
13973chmod +x conf$$.file
13974if test -x conf$$.file >/dev/null 2>&1; then
13975  ac_executable_p="test -x"
13976else
13977  ac_executable_p="test -f"
13978fi
13979rm -f conf$$.file
13980
13981# Extract the first word of "msgmerge", so it can be a program name with args.
13982set dummy msgmerge; ac_word=$2
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984$as_echo_n "checking for $ac_word... " >&6; }
13985if ${ac_cv_path_MSGMERGE+:} false; then :
13986  $as_echo_n "(cached) " >&6
13987else
13988  case "$MSGMERGE" in
13989  [\\/]* | ?:[\\/]*)
13990    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13991    ;;
13992  *)
13993    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13994    for ac_dir in $PATH; do
13995      IFS="$ac_save_IFS"
13996      test -z "$ac_dir" && ac_dir=.
13997      for ac_exec_ext in '' $ac_executable_extensions; do
13998        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13999          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14000          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14001            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14002            break 2
14003          fi
14004        fi
14005      done
14006    done
14007    IFS="$ac_save_IFS"
14008  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14009    ;;
14010esac
14011fi
14012MSGMERGE="$ac_cv_path_MSGMERGE"
14013if test "$MSGMERGE" != ":"; then
14014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14015$as_echo "$MSGMERGE" >&6; }
14016else
14017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
14019fi
14020
14021
14022    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
14023    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
14024  else
14025        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
14026      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
14027    else
14028                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
14029    fi
14030  fi
14031
14032
14033    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14034
14035
14036  ac_config_commands="$ac_config_commands po-directories"
14037
14038
14039
14040      if test "X$prefix" = "XNONE"; then
14041    acl_final_prefix="$ac_default_prefix"
14042  else
14043    acl_final_prefix="$prefix"
14044  fi
14045  if test "X$exec_prefix" = "XNONE"; then
14046    acl_final_exec_prefix='${prefix}'
14047  else
14048    acl_final_exec_prefix="$exec_prefix"
14049  fi
14050  acl_save_prefix="$prefix"
14051  prefix="$acl_final_prefix"
14052  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14053  prefix="$acl_save_prefix"
14054
14055
14056
14057# Check whether --with-gnu-ld was given.
14058if test "${with_gnu_ld+set}" = set; then :
14059  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14060else
14061  with_gnu_ld=no
14062fi
14063
14064# Prepare PATH_SEPARATOR.
14065# The user is always right.
14066if test "${PATH_SEPARATOR+set}" != set; then
14067  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14068  # contains only /bin. Note that ksh looks also at the FPATH variable,
14069  # so we have to set that as well for the test.
14070  PATH_SEPARATOR=:
14071  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14072    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14073           || PATH_SEPARATOR=';'
14074       }
14075fi
14076
14077if test -n "$LD"; then
14078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
14079$as_echo_n "checking for ld... " >&6; }
14080elif test "$GCC" = yes; then
14081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14082$as_echo_n "checking for ld used by $CC... " >&6; }
14083elif test "$with_gnu_ld" = yes; then
14084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14085$as_echo_n "checking for GNU ld... " >&6; }
14086else
14087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14088$as_echo_n "checking for non-GNU ld... " >&6; }
14089fi
14090if test -n "$LD"; then
14091  # Let the user override the test with a path.
14092  :
14093else
14094  if ${acl_cv_path_LD+:} false; then :
14095  $as_echo_n "(cached) " >&6
14096else
14097
14098    acl_cv_path_LD= # Final result of this test
14099    ac_prog=ld # Program to search in $PATH
14100    if test "$GCC" = yes; then
14101      # Check if gcc -print-prog-name=ld gives a path.
14102      case $host in
14103        *-*-mingw*)
14104          # gcc leaves a trailing carriage return which upsets mingw
14105          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14106        *)
14107          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
14108      esac
14109      case $acl_output in
14110        # Accept absolute paths.
14111        [\\/]* | ?:[\\/]*)
14112          re_direlt='/[^/][^/]*/\.\./'
14113          # Canonicalize the pathname of ld
14114          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
14115          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
14116            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
14117          done
14118          # Got the pathname. No search in PATH is needed.
14119          acl_cv_path_LD="$acl_output"
14120          ac_prog=
14121          ;;
14122        "")
14123          # If it fails, then pretend we aren't using GCC.
14124          ;;
14125        *)
14126          # If it is relative, then search for the first ld in PATH.
14127          with_gnu_ld=unknown
14128          ;;
14129      esac
14130    fi
14131    if test -n "$ac_prog"; then
14132      # Search for $ac_prog in $PATH.
14133      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14134      for ac_dir in $PATH; do
14135        IFS="$acl_save_ifs"
14136        test -z "$ac_dir" && ac_dir=.
14137        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14138          acl_cv_path_LD="$ac_dir/$ac_prog"
14139          # Check to see if the program is GNU ld.  I'd rather use --version,
14140          # but apparently some variants of GNU ld only accept -v.
14141          # Break only if it was the GNU/non-GNU ld that we prefer.
14142          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14143            *GNU* | *'with BFD'*)
14144              test "$with_gnu_ld" != no && break
14145              ;;
14146            *)
14147              test "$with_gnu_ld" != yes && break
14148              ;;
14149          esac
14150        fi
14151      done
14152      IFS="$acl_save_ifs"
14153    fi
14154    case $host in
14155      *-*-aix*)
14156        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157/* end confdefs.h.  */
14158#if defined __powerpc64__ || defined _ARCH_PPC64
14159                int ok;
14160               #else
14161                error fail
14162               #endif
14163
14164_ACEOF
14165if ac_fn_c_try_compile "$LINENO"; then :
14166  # The compiler produces 64-bit code. Add option '-b64' so that the
14167           # linker groks 64-bit object files.
14168           case "$acl_cv_path_LD " in
14169             *" -b64 "*) ;;
14170             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
14171           esac
14172
14173fi
14174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175        ;;
14176      sparc64-*-netbsd*)
14177        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178/* end confdefs.h.  */
14179#if defined __sparcv9 || defined __arch64__
14180                int ok;
14181               #else
14182                error fail
14183               #endif
14184
14185_ACEOF
14186if ac_fn_c_try_compile "$LINENO"; then :
14187
14188else
14189  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
14190           # so that the linker groks 32-bit object files.
14191           case "$acl_cv_path_LD " in
14192             *" -m elf32_sparc "*) ;;
14193             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
14194           esac
14195
14196fi
14197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198        ;;
14199    esac
14200
14201fi
14202
14203  LD="$acl_cv_path_LD"
14204fi
14205if test -n "$LD"; then
14206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14207$as_echo "$LD" >&6; }
14208else
14209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210$as_echo "no" >&6; }
14211  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14212fi
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14214$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14215if ${acl_cv_prog_gnu_ld+:} false; then :
14216  $as_echo_n "(cached) " >&6
14217else
14218  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14219case `$LD -v 2>&1 </dev/null` in
14220*GNU* | *'with BFD'*)
14221  acl_cv_prog_gnu_ld=yes
14222  ;;
14223*)
14224  acl_cv_prog_gnu_ld=no
14225  ;;
14226esac
14227fi
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14229$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14230with_gnu_ld=$acl_cv_prog_gnu_ld
14231
14232
14233
14234
14235                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14236$as_echo_n "checking for shared library run path origin... " >&6; }
14237if ${acl_cv_rpath+:} false; then :
14238  $as_echo_n "(cached) " >&6
14239else
14240
14241    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14242    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14243    . ./conftest.sh
14244    rm -f ./conftest.sh
14245    acl_cv_rpath=done
14246
14247fi
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14249$as_echo "$acl_cv_rpath" >&6; }
14250  wl="$acl_cv_wl"
14251  acl_libext="$acl_cv_libext"
14252  acl_shlibext="$acl_cv_shlibext"
14253  acl_libname_spec="$acl_cv_libname_spec"
14254  acl_library_names_spec="$acl_cv_library_names_spec"
14255  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14256  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14257  acl_hardcode_direct="$acl_cv_hardcode_direct"
14258  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14259    # Check whether --enable-rpath was given.
14260if test "${enable_rpath+set}" = set; then :
14261  enableval=$enable_rpath; :
14262else
14263  enable_rpath=yes
14264fi
14265
14266
14267
14268
14269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
14270$as_echo_n "checking 32-bit host C ABI... " >&6; }
14271if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274  if test -n "$gl_cv_host_cpu_c_abi"; then
14275       case "$gl_cv_host_cpu_c_abi" in
14276         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
14277           gl_cv_host_cpu_c_abi_32bit=yes ;;
14278         *)
14279           gl_cv_host_cpu_c_abi_32bit=no ;;
14280       esac
14281     else
14282       case "$host_cpu" in
14283
14284         i[4567]86 )
14285           gl_cv_host_cpu_c_abi_32bit=yes
14286           ;;
14287
14288         x86_64 )
14289           # On x86_64 systems, the C compiler may be generating code in one of
14290           # these ABIs:
14291           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
14292           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
14293           #   with native Windows (mingw, MSVC).
14294           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
14295           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
14296           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h.  */
14298#if (defined __x86_64__ || defined __amd64__ \
14299                       || defined _M_X64 || defined _M_AMD64) \
14300                      && !(defined __ILP32__ || defined _ILP32)
14301                   int ok;
14302                  #else
14303                   error fail
14304                  #endif
14305
14306_ACEOF
14307if ac_fn_c_try_compile "$LINENO"; then :
14308  gl_cv_host_cpu_c_abi_32bit=no
14309else
14310  gl_cv_host_cpu_c_abi_32bit=yes
14311fi
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313           ;;
14314
14315         arm* | aarch64 )
14316           # Assume arm with EABI.
14317           # On arm64 systems, the C compiler may be generating code in one of
14318           # these ABIs:
14319           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
14320           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
14321           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
14322           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323/* end confdefs.h.  */
14324#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
14325                   int ok;
14326                  #else
14327                   error fail
14328                  #endif
14329
14330_ACEOF
14331if ac_fn_c_try_compile "$LINENO"; then :
14332  gl_cv_host_cpu_c_abi_32bit=no
14333else
14334  gl_cv_host_cpu_c_abi_32bit=yes
14335fi
14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337           ;;
14338
14339         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
14340           # On hppa, the C compiler may be generating 32-bit code or 64-bit
14341           # code. In the latter case, it defines _LP64 and __LP64__.
14342           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343/* end confdefs.h.  */
14344#ifdef __LP64__
14345                   int ok;
14346                  #else
14347                   error fail
14348                  #endif
14349
14350_ACEOF
14351if ac_fn_c_try_compile "$LINENO"; then :
14352  gl_cv_host_cpu_c_abi_32bit=no
14353else
14354  gl_cv_host_cpu_c_abi_32bit=yes
14355fi
14356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357           ;;
14358
14359         ia64* )
14360           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
14361           # 32-bit code. In the latter case, it defines _ILP32.
14362           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363/* end confdefs.h.  */
14364#ifdef _ILP32
14365                   int ok;
14366                  #else
14367                   error fail
14368                  #endif
14369
14370_ACEOF
14371if ac_fn_c_try_compile "$LINENO"; then :
14372  gl_cv_host_cpu_c_abi_32bit=yes
14373else
14374  gl_cv_host_cpu_c_abi_32bit=no
14375fi
14376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377           ;;
14378
14379         mips* )
14380           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
14381           # at 32.
14382           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383/* end confdefs.h.  */
14384#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
14385                   int ok;
14386                  #else
14387                   error fail
14388                  #endif
14389
14390_ACEOF
14391if ac_fn_c_try_compile "$LINENO"; then :
14392  gl_cv_host_cpu_c_abi_32bit=no
14393else
14394  gl_cv_host_cpu_c_abi_32bit=yes
14395fi
14396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397           ;;
14398
14399         powerpc* )
14400           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
14401           # No need to distinguish them here; the caller may distinguish
14402           # them based on the OS.
14403           # On powerpc64 systems, the C compiler may still be generating
14404           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
14405           # be generating 64-bit code.
14406           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408#if defined __powerpc64__ || defined _ARCH_PPC64
14409                   int ok;
14410                  #else
14411                   error fail
14412                  #endif
14413
14414_ACEOF
14415if ac_fn_c_try_compile "$LINENO"; then :
14416  gl_cv_host_cpu_c_abi_32bit=no
14417else
14418  gl_cv_host_cpu_c_abi_32bit=yes
14419fi
14420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421           ;;
14422
14423         rs6000 )
14424           gl_cv_host_cpu_c_abi_32bit=yes
14425           ;;
14426
14427         riscv32 | riscv64 )
14428           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
14429           # Size of 'long' and 'void *':
14430           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431/* end confdefs.h.  */
14432#if defined __LP64__
14433                    int ok;
14434                  #else
14435                    error fail
14436                  #endif
14437
14438_ACEOF
14439if ac_fn_c_try_compile "$LINENO"; then :
14440  gl_cv_host_cpu_c_abi_32bit=no
14441else
14442  gl_cv_host_cpu_c_abi_32bit=yes
14443fi
14444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14445           ;;
14446
14447         s390* )
14448           # On s390x, the C compiler may be generating 64-bit (= s390x) code
14449           # or 31-bit (= s390) code.
14450           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452#if defined __LP64__ || defined __s390x__
14453                    int ok;
14454                  #else
14455                    error fail
14456                  #endif
14457
14458_ACEOF
14459if ac_fn_c_try_compile "$LINENO"; then :
14460  gl_cv_host_cpu_c_abi_32bit=no
14461else
14462  gl_cv_host_cpu_c_abi_32bit=yes
14463fi
14464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465           ;;
14466
14467         sparc | sparc64 )
14468           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
14469           # C compiler still generates 32-bit code.
14470           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h.  */
14472#if defined __sparcv9 || defined __arch64__
14473                   int ok;
14474                  #else
14475                   error fail
14476                  #endif
14477
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"; then :
14480  gl_cv_host_cpu_c_abi_32bit=no
14481else
14482  gl_cv_host_cpu_c_abi_32bit=yes
14483fi
14484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485           ;;
14486
14487         *)
14488           gl_cv_host_cpu_c_abi_32bit=no
14489           ;;
14490       esac
14491     fi
14492
14493fi
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
14495$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
14496
14497  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
14498
14499
14500
14501
14502
14503  case "$host_os" in
14504    solaris*)
14505      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14506$as_echo_n "checking for 64-bit host... " >&6; }
14507if ${gl_cv_solaris_64bit+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511/* end confdefs.h.  */
14512#ifdef _LP64
14513                 int ok;
14514                #else
14515                 error fail
14516                #endif
14517
14518_ACEOF
14519if ac_fn_c_try_compile "$LINENO"; then :
14520  gl_cv_solaris_64bit=yes
14521else
14522  gl_cv_solaris_64bit=no
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525
14526fi
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14528$as_echo "$gl_cv_solaris_64bit" >&6; };;
14529  esac
14530
14531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
14532$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
14533if ${acl_cv_libdirstems+:} false; then :
14534  $as_echo_n "(cached) " >&6
14535else
14536  acl_libdirstem=lib
14537     acl_libdirstem2=
14538     case "$host_os" in
14539       solaris*)
14540                                                      if test $gl_cv_solaris_64bit = yes; then
14541           acl_libdirstem=lib/64
14542           case "$host_cpu" in
14543             sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14544             i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14545           esac
14546         fi
14547         ;;
14548       *)
14549                           if test "$HOST_CPU_C_ABI_32BIT" != yes; then
14550                                            searchpath=`(if test -f /usr/bin/gcc \
14551                           && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
14552                          LC_ALL=C /usr/bin/gcc -print-search-dirs; \
14553                        else \
14554                          LC_ALL=C $CC -print-search-dirs; \
14555                        fi) 2>/dev/null \
14556                       | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14557           if test -n "$searchpath"; then
14558             acl_save_IFS="${IFS= 	}"; IFS=":"
14559             for searchdir in $searchpath; do
14560               if test -d "$searchdir"; then
14561                 case "$searchdir" in
14562                   */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14563                   */../ | */.. )
14564                     # Better ignore directories of this form. They are misleading.
14565                     ;;
14566                   *) searchdir=`cd "$searchdir" && pwd`
14567                      case "$searchdir" in
14568                        */lib64 ) acl_libdirstem=lib64 ;;
14569                      esac ;;
14570                 esac
14571               fi
14572             done
14573             IFS="$acl_save_IFS"
14574           fi
14575         fi
14576         ;;
14577     esac
14578     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14579     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
14580
14581fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
14583$as_echo "$acl_cv_libdirstems" >&6; }
14584  # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
14585  acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
14586  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598    use_additional=yes
14599
14600  acl_save_prefix="$prefix"
14601  prefix="$acl_final_prefix"
14602  acl_save_exec_prefix="$exec_prefix"
14603  exec_prefix="$acl_final_exec_prefix"
14604
14605    eval additional_includedir=\"$includedir\"
14606    eval additional_libdir=\"$libdir\"
14607
14608  exec_prefix="$acl_save_exec_prefix"
14609  prefix="$acl_save_prefix"
14610
14611
14612# Check whether --with-libiconv-prefix was given.
14613if test "${with_libiconv_prefix+set}" = set; then :
14614  withval=$with_libiconv_prefix;
14615    if test "X$withval" = "Xno"; then
14616      use_additional=no
14617    else
14618      if test "X$withval" = "X"; then
14619
14620  acl_save_prefix="$prefix"
14621  prefix="$acl_final_prefix"
14622  acl_save_exec_prefix="$exec_prefix"
14623  exec_prefix="$acl_final_exec_prefix"
14624
14625          eval additional_includedir=\"$includedir\"
14626          eval additional_libdir=\"$libdir\"
14627
14628  exec_prefix="$acl_save_exec_prefix"
14629  prefix="$acl_save_prefix"
14630
14631      else
14632        additional_includedir="$withval/include"
14633        additional_libdir="$withval/$acl_libdirstem"
14634        if test "$acl_libdirstem2" != "$acl_libdirstem" \
14635           && test ! -d "$withval/$acl_libdirstem"; then
14636          additional_libdir="$withval/$acl_libdirstem2"
14637        fi
14638      fi
14639    fi
14640
14641fi
14642
14643      LIBICONV=
14644  LTLIBICONV=
14645  INCICONV=
14646  LIBICONV_PREFIX=
14647      HAVE_LIBICONV=
14648  rpathdirs=
14649  ltrpathdirs=
14650  names_already_handled=
14651  names_next_round='iconv '
14652  while test -n "$names_next_round"; do
14653    names_this_round="$names_next_round"
14654    names_next_round=
14655    for name in $names_this_round; do
14656      already_handled=
14657      for n in $names_already_handled; do
14658        if test "$n" = "$name"; then
14659          already_handled=yes
14660          break
14661        fi
14662      done
14663      if test -z "$already_handled"; then
14664        names_already_handled="$names_already_handled $name"
14665                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14666        eval value=\"\$HAVE_LIB$uppername\"
14667        if test -n "$value"; then
14668          if test "$value" = yes; then
14669            eval value=\"\$LIB$uppername\"
14670            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14671            eval value=\"\$LTLIB$uppername\"
14672            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14673          else
14674                                    :
14675          fi
14676        else
14677                              found_dir=
14678          found_la=
14679          found_so=
14680          found_a=
14681          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14682          if test -n "$acl_shlibext"; then
14683            shrext=".$acl_shlibext"             # typically: shrext=.so
14684          else
14685            shrext=
14686          fi
14687          if test $use_additional = yes; then
14688            dir="$additional_libdir"
14689                                    if test -n "$acl_shlibext"; then
14690              if test -f "$dir/$libname$shrext"; then
14691                found_dir="$dir"
14692                found_so="$dir/$libname$shrext"
14693              else
14694                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14695                  ver=`(cd "$dir" && \
14696                        for f in "$libname$shrext".*; do echo "$f"; done \
14697                        | sed -e "s,^$libname$shrext\\\\.,," \
14698                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14699                        | sed 1q ) 2>/dev/null`
14700                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14701                    found_dir="$dir"
14702                    found_so="$dir/$libname$shrext.$ver"
14703                  fi
14704                else
14705                  eval library_names=\"$acl_library_names_spec\"
14706                  for f in $library_names; do
14707                    if test -f "$dir/$f"; then
14708                      found_dir="$dir"
14709                      found_so="$dir/$f"
14710                      break
14711                    fi
14712                  done
14713                fi
14714              fi
14715            fi
14716                        if test "X$found_dir" = "X"; then
14717              if test -f "$dir/$libname.$acl_libext"; then
14718                found_dir="$dir"
14719                found_a="$dir/$libname.$acl_libext"
14720              fi
14721            fi
14722            if test "X$found_dir" != "X"; then
14723              if test -f "$dir/$libname.la"; then
14724                found_la="$dir/$libname.la"
14725              fi
14726            fi
14727          fi
14728          if test "X$found_dir" = "X"; then
14729            for x in $LDFLAGS $LTLIBICONV; do
14730
14731  acl_save_prefix="$prefix"
14732  prefix="$acl_final_prefix"
14733  acl_save_exec_prefix="$exec_prefix"
14734  exec_prefix="$acl_final_exec_prefix"
14735  eval x=\"$x\"
14736  exec_prefix="$acl_save_exec_prefix"
14737  prefix="$acl_save_prefix"
14738
14739              case "$x" in
14740                -L*)
14741                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14742                                    if test -n "$acl_shlibext"; then
14743                    if test -f "$dir/$libname$shrext"; then
14744                      found_dir="$dir"
14745                      found_so="$dir/$libname$shrext"
14746                    else
14747                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14748                        ver=`(cd "$dir" && \
14749                              for f in "$libname$shrext".*; do echo "$f"; done \
14750                              | sed -e "s,^$libname$shrext\\\\.,," \
14751                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14752                              | sed 1q ) 2>/dev/null`
14753                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14754                          found_dir="$dir"
14755                          found_so="$dir/$libname$shrext.$ver"
14756                        fi
14757                      else
14758                        eval library_names=\"$acl_library_names_spec\"
14759                        for f in $library_names; do
14760                          if test -f "$dir/$f"; then
14761                            found_dir="$dir"
14762                            found_so="$dir/$f"
14763                            break
14764                          fi
14765                        done
14766                      fi
14767                    fi
14768                  fi
14769                                    if test "X$found_dir" = "X"; then
14770                    if test -f "$dir/$libname.$acl_libext"; then
14771                      found_dir="$dir"
14772                      found_a="$dir/$libname.$acl_libext"
14773                    fi
14774                  fi
14775                  if test "X$found_dir" != "X"; then
14776                    if test -f "$dir/$libname.la"; then
14777                      found_la="$dir/$libname.la"
14778                    fi
14779                  fi
14780                  ;;
14781              esac
14782              if test "X$found_dir" != "X"; then
14783                break
14784              fi
14785            done
14786          fi
14787          if test "X$found_dir" != "X"; then
14788                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14789            if test "X$found_so" != "X"; then
14790                                                        if test "$enable_rpath" = no \
14791                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14792                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14793                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14794              else
14795                                                                                haveit=
14796                for x in $ltrpathdirs; do
14797                  if test "X$x" = "X$found_dir"; then
14798                    haveit=yes
14799                    break
14800                  fi
14801                done
14802                if test -z "$haveit"; then
14803                  ltrpathdirs="$ltrpathdirs $found_dir"
14804                fi
14805                                if test "$acl_hardcode_direct" = yes; then
14806                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14807                else
14808                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14809                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14810                                                            haveit=
14811                    for x in $rpathdirs; do
14812                      if test "X$x" = "X$found_dir"; then
14813                        haveit=yes
14814                        break
14815                      fi
14816                    done
14817                    if test -z "$haveit"; then
14818                      rpathdirs="$rpathdirs $found_dir"
14819                    fi
14820                  else
14821                                                                                haveit=
14822                    for x in $LDFLAGS $LIBICONV; do
14823
14824  acl_save_prefix="$prefix"
14825  prefix="$acl_final_prefix"
14826  acl_save_exec_prefix="$exec_prefix"
14827  exec_prefix="$acl_final_exec_prefix"
14828  eval x=\"$x\"
14829  exec_prefix="$acl_save_exec_prefix"
14830  prefix="$acl_save_prefix"
14831
14832                      if test "X$x" = "X-L$found_dir"; then
14833                        haveit=yes
14834                        break
14835                      fi
14836                    done
14837                    if test -z "$haveit"; then
14838                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14839                    fi
14840                    if test "$acl_hardcode_minus_L" != no; then
14841                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14842                    else
14843                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14844                    fi
14845                  fi
14846                fi
14847              fi
14848            else
14849              if test "X$found_a" != "X"; then
14850                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14851              else
14852                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14853              fi
14854            fi
14855                        additional_includedir=
14856            case "$found_dir" in
14857              */$acl_libdirstem | */$acl_libdirstem/)
14858                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14859                if test "$name" = 'iconv'; then
14860                  LIBICONV_PREFIX="$basedir"
14861                fi
14862                additional_includedir="$basedir/include"
14863                ;;
14864              */$acl_libdirstem2 | */$acl_libdirstem2/)
14865                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14866                if test "$name" = 'iconv'; then
14867                  LIBICONV_PREFIX="$basedir"
14868                fi
14869                additional_includedir="$basedir/include"
14870                ;;
14871            esac
14872            if test "X$additional_includedir" != "X"; then
14873                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14874                haveit=
14875                if test "X$additional_includedir" = "X/usr/local/include"; then
14876                  if test -n "$GCC"; then
14877                    case $host_os in
14878                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14879                    esac
14880                  fi
14881                fi
14882                if test -z "$haveit"; then
14883                  for x in $CPPFLAGS $INCICONV; do
14884
14885  acl_save_prefix="$prefix"
14886  prefix="$acl_final_prefix"
14887  acl_save_exec_prefix="$exec_prefix"
14888  exec_prefix="$acl_final_exec_prefix"
14889  eval x=\"$x\"
14890  exec_prefix="$acl_save_exec_prefix"
14891  prefix="$acl_save_prefix"
14892
14893                    if test "X$x" = "X-I$additional_includedir"; then
14894                      haveit=yes
14895                      break
14896                    fi
14897                  done
14898                  if test -z "$haveit"; then
14899                    if test -d "$additional_includedir"; then
14900                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14901                    fi
14902                  fi
14903                fi
14904              fi
14905            fi
14906                        if test -n "$found_la"; then
14907                                                        save_libdir="$libdir"
14908              case "$found_la" in
14909                */* | *\\*) . "$found_la" ;;
14910                *) . "./$found_la" ;;
14911              esac
14912              libdir="$save_libdir"
14913                            for dep in $dependency_libs; do
14914                case "$dep" in
14915                  -L*)
14916                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14917                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14918                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14919                      haveit=
14920                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14921                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14922                        if test -n "$GCC"; then
14923                          case $host_os in
14924                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14925                          esac
14926                        fi
14927                      fi
14928                      if test -z "$haveit"; then
14929                        haveit=
14930                        for x in $LDFLAGS $LIBICONV; do
14931
14932  acl_save_prefix="$prefix"
14933  prefix="$acl_final_prefix"
14934  acl_save_exec_prefix="$exec_prefix"
14935  exec_prefix="$acl_final_exec_prefix"
14936  eval x=\"$x\"
14937  exec_prefix="$acl_save_exec_prefix"
14938  prefix="$acl_save_prefix"
14939
14940                          if test "X$x" = "X-L$additional_libdir"; then
14941                            haveit=yes
14942                            break
14943                          fi
14944                        done
14945                        if test -z "$haveit"; then
14946                          if test -d "$additional_libdir"; then
14947                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14948                          fi
14949                        fi
14950                        haveit=
14951                        for x in $LDFLAGS $LTLIBICONV; do
14952
14953  acl_save_prefix="$prefix"
14954  prefix="$acl_final_prefix"
14955  acl_save_exec_prefix="$exec_prefix"
14956  exec_prefix="$acl_final_exec_prefix"
14957  eval x=\"$x\"
14958  exec_prefix="$acl_save_exec_prefix"
14959  prefix="$acl_save_prefix"
14960
14961                          if test "X$x" = "X-L$additional_libdir"; then
14962                            haveit=yes
14963                            break
14964                          fi
14965                        done
14966                        if test -z "$haveit"; then
14967                          if test -d "$additional_libdir"; then
14968                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14969                          fi
14970                        fi
14971                      fi
14972                    fi
14973                    ;;
14974                  -R*)
14975                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14976                    if test "$enable_rpath" != no; then
14977                                                                  haveit=
14978                      for x in $rpathdirs; do
14979                        if test "X$x" = "X$dir"; then
14980                          haveit=yes
14981                          break
14982                        fi
14983                      done
14984                      if test -z "$haveit"; then
14985                        rpathdirs="$rpathdirs $dir"
14986                      fi
14987                                                                  haveit=
14988                      for x in $ltrpathdirs; do
14989                        if test "X$x" = "X$dir"; then
14990                          haveit=yes
14991                          break
14992                        fi
14993                      done
14994                      if test -z "$haveit"; then
14995                        ltrpathdirs="$ltrpathdirs $dir"
14996                      fi
14997                    fi
14998                    ;;
14999                  -l*)
15000                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15001                    ;;
15002                  *.la)
15003                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15004                    ;;
15005                  *)
15006                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15007                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15008                    ;;
15009                esac
15010              done
15011            fi
15012          else
15013                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15014            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15015          fi
15016        fi
15017      fi
15018    done
15019  done
15020  if test "X$rpathdirs" != "X"; then
15021    if test -n "$acl_hardcode_libdir_separator"; then
15022                        alldirs=
15023      for found_dir in $rpathdirs; do
15024        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15025      done
15026            acl_save_libdir="$libdir"
15027      libdir="$alldirs"
15028      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15029      libdir="$acl_save_libdir"
15030      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15031    else
15032            for found_dir in $rpathdirs; do
15033        acl_save_libdir="$libdir"
15034        libdir="$found_dir"
15035        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15036        libdir="$acl_save_libdir"
15037        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15038      done
15039    fi
15040  fi
15041  if test "X$ltrpathdirs" != "X"; then
15042            for found_dir in $ltrpathdirs; do
15043      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15044    done
15045  fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15076$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15077if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15078  $as_echo_n "(cached) " >&6
15079else
15080  gt_save_LIBS="$LIBS"
15081     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h.  */
15084#include <CoreFoundation/CFPreferences.h>
15085int
15086main ()
15087{
15088CFPreferencesCopyAppValue(NULL, NULL)
15089  ;
15090  return 0;
15091}
15092_ACEOF
15093if ac_fn_c_try_link "$LINENO"; then :
15094  gt_cv_func_CFPreferencesCopyAppValue=yes
15095else
15096  gt_cv_func_CFPreferencesCopyAppValue=no
15097fi
15098rm -f core conftest.err conftest.$ac_objext \
15099    conftest$ac_exeext conftest.$ac_ext
15100     LIBS="$gt_save_LIBS"
15101fi
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15103$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15104  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15105
15106$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15107
15108  fi
15109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15110$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15111if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15112  $as_echo_n "(cached) " >&6
15113else
15114  gt_save_LIBS="$LIBS"
15115     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117/* end confdefs.h.  */
15118#include <CoreFoundation/CFLocale.h>
15119int
15120main ()
15121{
15122CFLocaleCopyCurrent();
15123  ;
15124  return 0;
15125}
15126_ACEOF
15127if ac_fn_c_try_link "$LINENO"; then :
15128  gt_cv_func_CFLocaleCopyCurrent=yes
15129else
15130  gt_cv_func_CFLocaleCopyCurrent=no
15131fi
15132rm -f core conftest.err conftest.$ac_objext \
15133    conftest$ac_exeext conftest.$ac_ext
15134     LIBS="$gt_save_LIBS"
15135fi
15136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15137$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15138  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15139
15140$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15141
15142  fi
15143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
15144$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
15145if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
15146  $as_echo_n "(cached) " >&6
15147else
15148  gt_save_LIBS="$LIBS"
15149     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151/* end confdefs.h.  */
15152#include <CoreFoundation/CFLocale.h>
15153int
15154main ()
15155{
15156CFLocaleCopyPreferredLanguages();
15157  ;
15158  return 0;
15159}
15160_ACEOF
15161if ac_fn_c_try_link "$LINENO"; then :
15162  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
15163else
15164  gt_cv_func_CFLocaleCopyPreferredLanguages=no
15165fi
15166rm -f core conftest.err conftest.$ac_objext \
15167    conftest$ac_exeext conftest.$ac_ext
15168     LIBS="$gt_save_LIBS"
15169fi
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
15171$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
15172  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
15173
15174$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
15175
15176  fi
15177  INTL_MACOSX_LIBS=
15178  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
15179     || test $gt_cv_func_CFLocaleCopyCurrent = yes \
15180     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
15181    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15182  fi
15183
15184
15185
15186
15187
15188
15189  LIBINTL=
15190  LTLIBINTL=
15191  POSUB=
15192
15193    case " $gt_needs " in
15194    *" need-formatstring-macros "*) gt_api_version=3 ;;
15195    *" need-ngettext "*) gt_api_version=2 ;;
15196    *) gt_api_version=1 ;;
15197  esac
15198  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15199  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15200
15201    if test "$USE_NLS" = "yes"; then
15202    gt_use_preinstalled_gnugettext=no
15203
15204
15205        if test $gt_api_version -ge 3; then
15206          gt_revision_test_code='
15207#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15208#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15209#endif
15210typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15211'
15212        else
15213          gt_revision_test_code=
15214        fi
15215        if test $gt_api_version -ge 2; then
15216          gt_expression_test_code=' + * ngettext ("", "", 0)'
15217        else
15218          gt_expression_test_code=
15219        fi
15220
15221        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15222$as_echo_n "checking for GNU gettext in libc... " >&6; }
15223if eval \${$gt_func_gnugettext_libc+:} false; then :
15224  $as_echo_n "(cached) " >&6
15225else
15226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h.  */
15228
15229#include <libintl.h>
15230#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15231extern int _nl_msg_cat_cntr;
15232extern int *_nl_domain_bindings;
15233#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15234#else
15235#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15236#endif
15237$gt_revision_test_code
15238
15239int
15240main ()
15241{
15242
15243bindtextdomain ("", "");
15244return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15245
15246  ;
15247  return 0;
15248}
15249_ACEOF
15250if ac_fn_c_try_link "$LINENO"; then :
15251  eval "$gt_func_gnugettext_libc=yes"
15252else
15253  eval "$gt_func_gnugettext_libc=no"
15254fi
15255rm -f core conftest.err conftest.$ac_objext \
15256    conftest$ac_exeext conftest.$ac_ext
15257fi
15258eval ac_res=\$$gt_func_gnugettext_libc
15259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15260$as_echo "$ac_res" >&6; }
15261
15262        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15263
15264
15265
15266
15267
15268          am_save_CPPFLAGS="$CPPFLAGS"
15269
15270  for element in $INCICONV; do
15271    haveit=
15272    for x in $CPPFLAGS; do
15273
15274  acl_save_prefix="$prefix"
15275  prefix="$acl_final_prefix"
15276  acl_save_exec_prefix="$exec_prefix"
15277  exec_prefix="$acl_final_exec_prefix"
15278  eval x=\"$x\"
15279  exec_prefix="$acl_save_exec_prefix"
15280  prefix="$acl_save_prefix"
15281
15282      if test "X$x" = "X$element"; then
15283        haveit=yes
15284        break
15285      fi
15286    done
15287    if test -z "$haveit"; then
15288      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15289    fi
15290  done
15291
15292
15293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15294$as_echo_n "checking for iconv... " >&6; }
15295if ${am_cv_func_iconv+:} false; then :
15296  $as_echo_n "(cached) " >&6
15297else
15298
15299    am_cv_func_iconv="no, consider installing GNU libiconv"
15300    am_cv_lib_iconv=no
15301    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h.  */
15303
15304#include <stdlib.h>
15305#include <iconv.h>
15306
15307int
15308main ()
15309{
15310iconv_t cd = iconv_open("","");
15311           iconv(cd,NULL,NULL,NULL,NULL);
15312           iconv_close(cd);
15313  ;
15314  return 0;
15315}
15316_ACEOF
15317if ac_fn_c_try_link "$LINENO"; then :
15318  am_cv_func_iconv=yes
15319fi
15320rm -f core conftest.err conftest.$ac_objext \
15321    conftest$ac_exeext conftest.$ac_ext
15322    if test "$am_cv_func_iconv" != yes; then
15323      am_save_LIBS="$LIBS"
15324      LIBS="$LIBS $LIBICONV"
15325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327
15328#include <stdlib.h>
15329#include <iconv.h>
15330
15331int
15332main ()
15333{
15334iconv_t cd = iconv_open("","");
15335             iconv(cd,NULL,NULL,NULL,NULL);
15336             iconv_close(cd);
15337  ;
15338  return 0;
15339}
15340_ACEOF
15341if ac_fn_c_try_link "$LINENO"; then :
15342  am_cv_lib_iconv=yes
15343        am_cv_func_iconv=yes
15344fi
15345rm -f core conftest.err conftest.$ac_objext \
15346    conftest$ac_exeext conftest.$ac_ext
15347      LIBS="$am_save_LIBS"
15348    fi
15349
15350fi
15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15352$as_echo "$am_cv_func_iconv" >&6; }
15353  if test "$am_cv_func_iconv" = yes; then
15354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15355$as_echo_n "checking for working iconv... " >&6; }
15356if ${am_cv_func_iconv_works+:} false; then :
15357  $as_echo_n "(cached) " >&6
15358else
15359
15360                  am_save_LIBS="$LIBS"
15361      if test $am_cv_lib_iconv = yes; then
15362        LIBS="$LIBS $LIBICONV"
15363      fi
15364      am_cv_func_iconv_works=no
15365      for ac_iconv_const in '' 'const'; do
15366        if test "$cross_compiling" = yes; then :
15367  case "$host_os" in
15368             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15369             *)            am_cv_func_iconv_works="guessing yes" ;;
15370           esac
15371else
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374
15375#include <iconv.h>
15376#include <string.h>
15377
15378#ifndef ICONV_CONST
15379# define ICONV_CONST $ac_iconv_const
15380#endif
15381
15382int
15383main ()
15384{
15385int result = 0;
15386  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15387     returns.  */
15388  {
15389    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15390    if (cd_utf8_to_88591 != (iconv_t)(-1))
15391      {
15392        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15393        char buf[10];
15394        ICONV_CONST char *inptr = input;
15395        size_t inbytesleft = strlen (input);
15396        char *outptr = buf;
15397        size_t outbytesleft = sizeof (buf);
15398        size_t res = iconv (cd_utf8_to_88591,
15399                            &inptr, &inbytesleft,
15400                            &outptr, &outbytesleft);
15401        if (res == 0)
15402          result |= 1;
15403        iconv_close (cd_utf8_to_88591);
15404      }
15405  }
15406  /* Test against Solaris 10 bug: Failures are not distinguishable from
15407     successful returns.  */
15408  {
15409    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15410    if (cd_ascii_to_88591 != (iconv_t)(-1))
15411      {
15412        static ICONV_CONST char input[] = "\263";
15413        char buf[10];
15414        ICONV_CONST char *inptr = input;
15415        size_t inbytesleft = strlen (input);
15416        char *outptr = buf;
15417        size_t outbytesleft = sizeof (buf);
15418        size_t res = iconv (cd_ascii_to_88591,
15419                            &inptr, &inbytesleft,
15420                            &outptr, &outbytesleft);
15421        if (res == 0)
15422          result |= 2;
15423        iconv_close (cd_ascii_to_88591);
15424      }
15425  }
15426  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
15427  {
15428    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15429    if (cd_88591_to_utf8 != (iconv_t)(-1))
15430      {
15431        static ICONV_CONST char input[] = "\304";
15432        static char buf[2] = { (char)0xDE, (char)0xAD };
15433        ICONV_CONST char *inptr = input;
15434        size_t inbytesleft = 1;
15435        char *outptr = buf;
15436        size_t outbytesleft = 1;
15437        size_t res = iconv (cd_88591_to_utf8,
15438                            &inptr, &inbytesleft,
15439                            &outptr, &outbytesleft);
15440        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15441          result |= 4;
15442        iconv_close (cd_88591_to_utf8);
15443      }
15444  }
15445#if 0 /* This bug could be worked around by the caller.  */
15446  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15447  {
15448    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15449    if (cd_88591_to_utf8 != (iconv_t)(-1))
15450      {
15451        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15452        char buf[50];
15453        ICONV_CONST char *inptr = input;
15454        size_t inbytesleft = strlen (input);
15455        char *outptr = buf;
15456        size_t outbytesleft = sizeof (buf);
15457        size_t res = iconv (cd_88591_to_utf8,
15458                            &inptr, &inbytesleft,
15459                            &outptr, &outbytesleft);
15460        if ((int)res > 0)
15461          result |= 8;
15462        iconv_close (cd_88591_to_utf8);
15463      }
15464  }
15465#endif
15466  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15467     provided.  */
15468  {
15469    /* Try standardized names.  */
15470    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
15471    /* Try IRIX, OSF/1 names.  */
15472    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
15473    /* Try AIX names.  */
15474    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
15475    /* Try HP-UX names.  */
15476    iconv_t cd4 = iconv_open ("utf8", "eucJP");
15477    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
15478        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
15479      result |= 16;
15480    if (cd1 != (iconv_t)(-1))
15481      iconv_close (cd1);
15482    if (cd2 != (iconv_t)(-1))
15483      iconv_close (cd2);
15484    if (cd3 != (iconv_t)(-1))
15485      iconv_close (cd3);
15486    if (cd4 != (iconv_t)(-1))
15487      iconv_close (cd4);
15488  }
15489  return result;
15490
15491  ;
15492  return 0;
15493}
15494_ACEOF
15495if ac_fn_c_try_run "$LINENO"; then :
15496  am_cv_func_iconv_works=yes
15497fi
15498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15499  conftest.$ac_objext conftest.beam conftest.$ac_ext
15500fi
15501
15502        test "$am_cv_func_iconv_works" = no || break
15503      done
15504      LIBS="$am_save_LIBS"
15505
15506fi
15507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15508$as_echo "$am_cv_func_iconv_works" >&6; }
15509    case "$am_cv_func_iconv_works" in
15510      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15511      *)   am_func_iconv=yes ;;
15512    esac
15513  else
15514    am_func_iconv=no am_cv_lib_iconv=no
15515  fi
15516  if test "$am_func_iconv" = yes; then
15517
15518$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15519
15520  fi
15521  if test "$am_cv_lib_iconv" = yes; then
15522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15523$as_echo_n "checking how to link with libiconv... " >&6; }
15524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15525$as_echo "$LIBICONV" >&6; }
15526  else
15527            CPPFLAGS="$am_save_CPPFLAGS"
15528    LIBICONV=
15529    LTLIBICONV=
15530  fi
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541    use_additional=yes
15542
15543  acl_save_prefix="$prefix"
15544  prefix="$acl_final_prefix"
15545  acl_save_exec_prefix="$exec_prefix"
15546  exec_prefix="$acl_final_exec_prefix"
15547
15548    eval additional_includedir=\"$includedir\"
15549    eval additional_libdir=\"$libdir\"
15550
15551  exec_prefix="$acl_save_exec_prefix"
15552  prefix="$acl_save_prefix"
15553
15554
15555# Check whether --with-libintl-prefix was given.
15556if test "${with_libintl_prefix+set}" = set; then :
15557  withval=$with_libintl_prefix;
15558    if test "X$withval" = "Xno"; then
15559      use_additional=no
15560    else
15561      if test "X$withval" = "X"; then
15562
15563  acl_save_prefix="$prefix"
15564  prefix="$acl_final_prefix"
15565  acl_save_exec_prefix="$exec_prefix"
15566  exec_prefix="$acl_final_exec_prefix"
15567
15568          eval additional_includedir=\"$includedir\"
15569          eval additional_libdir=\"$libdir\"
15570
15571  exec_prefix="$acl_save_exec_prefix"
15572  prefix="$acl_save_prefix"
15573
15574      else
15575        additional_includedir="$withval/include"
15576        additional_libdir="$withval/$acl_libdirstem"
15577        if test "$acl_libdirstem2" != "$acl_libdirstem" \
15578           && test ! -d "$withval/$acl_libdirstem"; then
15579          additional_libdir="$withval/$acl_libdirstem2"
15580        fi
15581      fi
15582    fi
15583
15584fi
15585
15586      LIBINTL=
15587  LTLIBINTL=
15588  INCINTL=
15589  LIBINTL_PREFIX=
15590      HAVE_LIBINTL=
15591  rpathdirs=
15592  ltrpathdirs=
15593  names_already_handled=
15594  names_next_round='intl '
15595  while test -n "$names_next_round"; do
15596    names_this_round="$names_next_round"
15597    names_next_round=
15598    for name in $names_this_round; do
15599      already_handled=
15600      for n in $names_already_handled; do
15601        if test "$n" = "$name"; then
15602          already_handled=yes
15603          break
15604        fi
15605      done
15606      if test -z "$already_handled"; then
15607        names_already_handled="$names_already_handled $name"
15608                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15609        eval value=\"\$HAVE_LIB$uppername\"
15610        if test -n "$value"; then
15611          if test "$value" = yes; then
15612            eval value=\"\$LIB$uppername\"
15613            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15614            eval value=\"\$LTLIB$uppername\"
15615            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15616          else
15617                                    :
15618          fi
15619        else
15620                              found_dir=
15621          found_la=
15622          found_so=
15623          found_a=
15624          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15625          if test -n "$acl_shlibext"; then
15626            shrext=".$acl_shlibext"             # typically: shrext=.so
15627          else
15628            shrext=
15629          fi
15630          if test $use_additional = yes; then
15631            dir="$additional_libdir"
15632                                    if test -n "$acl_shlibext"; then
15633              if test -f "$dir/$libname$shrext"; then
15634                found_dir="$dir"
15635                found_so="$dir/$libname$shrext"
15636              else
15637                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15638                  ver=`(cd "$dir" && \
15639                        for f in "$libname$shrext".*; do echo "$f"; done \
15640                        | sed -e "s,^$libname$shrext\\\\.,," \
15641                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15642                        | sed 1q ) 2>/dev/null`
15643                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15644                    found_dir="$dir"
15645                    found_so="$dir/$libname$shrext.$ver"
15646                  fi
15647                else
15648                  eval library_names=\"$acl_library_names_spec\"
15649                  for f in $library_names; do
15650                    if test -f "$dir/$f"; then
15651                      found_dir="$dir"
15652                      found_so="$dir/$f"
15653                      break
15654                    fi
15655                  done
15656                fi
15657              fi
15658            fi
15659                        if test "X$found_dir" = "X"; then
15660              if test -f "$dir/$libname.$acl_libext"; then
15661                found_dir="$dir"
15662                found_a="$dir/$libname.$acl_libext"
15663              fi
15664            fi
15665            if test "X$found_dir" != "X"; then
15666              if test -f "$dir/$libname.la"; then
15667                found_la="$dir/$libname.la"
15668              fi
15669            fi
15670          fi
15671          if test "X$found_dir" = "X"; then
15672            for x in $LDFLAGS $LTLIBINTL; do
15673
15674  acl_save_prefix="$prefix"
15675  prefix="$acl_final_prefix"
15676  acl_save_exec_prefix="$exec_prefix"
15677  exec_prefix="$acl_final_exec_prefix"
15678  eval x=\"$x\"
15679  exec_prefix="$acl_save_exec_prefix"
15680  prefix="$acl_save_prefix"
15681
15682              case "$x" in
15683                -L*)
15684                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15685                                    if test -n "$acl_shlibext"; then
15686                    if test -f "$dir/$libname$shrext"; then
15687                      found_dir="$dir"
15688                      found_so="$dir/$libname$shrext"
15689                    else
15690                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15691                        ver=`(cd "$dir" && \
15692                              for f in "$libname$shrext".*; do echo "$f"; done \
15693                              | sed -e "s,^$libname$shrext\\\\.,," \
15694                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15695                              | sed 1q ) 2>/dev/null`
15696                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15697                          found_dir="$dir"
15698                          found_so="$dir/$libname$shrext.$ver"
15699                        fi
15700                      else
15701                        eval library_names=\"$acl_library_names_spec\"
15702                        for f in $library_names; do
15703                          if test -f "$dir/$f"; then
15704                            found_dir="$dir"
15705                            found_so="$dir/$f"
15706                            break
15707                          fi
15708                        done
15709                      fi
15710                    fi
15711                  fi
15712                                    if test "X$found_dir" = "X"; then
15713                    if test -f "$dir/$libname.$acl_libext"; then
15714                      found_dir="$dir"
15715                      found_a="$dir/$libname.$acl_libext"
15716                    fi
15717                  fi
15718                  if test "X$found_dir" != "X"; then
15719                    if test -f "$dir/$libname.la"; then
15720                      found_la="$dir/$libname.la"
15721                    fi
15722                  fi
15723                  ;;
15724              esac
15725              if test "X$found_dir" != "X"; then
15726                break
15727              fi
15728            done
15729          fi
15730          if test "X$found_dir" != "X"; then
15731                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15732            if test "X$found_so" != "X"; then
15733                                                        if test "$enable_rpath" = no \
15734                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15735                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15736                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15737              else
15738                                                                                haveit=
15739                for x in $ltrpathdirs; do
15740                  if test "X$x" = "X$found_dir"; then
15741                    haveit=yes
15742                    break
15743                  fi
15744                done
15745                if test -z "$haveit"; then
15746                  ltrpathdirs="$ltrpathdirs $found_dir"
15747                fi
15748                                if test "$acl_hardcode_direct" = yes; then
15749                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15750                else
15751                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15752                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15753                                                            haveit=
15754                    for x in $rpathdirs; do
15755                      if test "X$x" = "X$found_dir"; then
15756                        haveit=yes
15757                        break
15758                      fi
15759                    done
15760                    if test -z "$haveit"; then
15761                      rpathdirs="$rpathdirs $found_dir"
15762                    fi
15763                  else
15764                                                                                haveit=
15765                    for x in $LDFLAGS $LIBINTL; do
15766
15767  acl_save_prefix="$prefix"
15768  prefix="$acl_final_prefix"
15769  acl_save_exec_prefix="$exec_prefix"
15770  exec_prefix="$acl_final_exec_prefix"
15771  eval x=\"$x\"
15772  exec_prefix="$acl_save_exec_prefix"
15773  prefix="$acl_save_prefix"
15774
15775                      if test "X$x" = "X-L$found_dir"; then
15776                        haveit=yes
15777                        break
15778                      fi
15779                    done
15780                    if test -z "$haveit"; then
15781                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15782                    fi
15783                    if test "$acl_hardcode_minus_L" != no; then
15784                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15785                    else
15786                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15787                    fi
15788                  fi
15789                fi
15790              fi
15791            else
15792              if test "X$found_a" != "X"; then
15793                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15794              else
15795                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15796              fi
15797            fi
15798                        additional_includedir=
15799            case "$found_dir" in
15800              */$acl_libdirstem | */$acl_libdirstem/)
15801                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15802                if test "$name" = 'intl'; then
15803                  LIBINTL_PREFIX="$basedir"
15804                fi
15805                additional_includedir="$basedir/include"
15806                ;;
15807              */$acl_libdirstem2 | */$acl_libdirstem2/)
15808                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15809                if test "$name" = 'intl'; then
15810                  LIBINTL_PREFIX="$basedir"
15811                fi
15812                additional_includedir="$basedir/include"
15813                ;;
15814            esac
15815            if test "X$additional_includedir" != "X"; then
15816                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15817                haveit=
15818                if test "X$additional_includedir" = "X/usr/local/include"; then
15819                  if test -n "$GCC"; then
15820                    case $host_os in
15821                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15822                    esac
15823                  fi
15824                fi
15825                if test -z "$haveit"; then
15826                  for x in $CPPFLAGS $INCINTL; do
15827
15828  acl_save_prefix="$prefix"
15829  prefix="$acl_final_prefix"
15830  acl_save_exec_prefix="$exec_prefix"
15831  exec_prefix="$acl_final_exec_prefix"
15832  eval x=\"$x\"
15833  exec_prefix="$acl_save_exec_prefix"
15834  prefix="$acl_save_prefix"
15835
15836                    if test "X$x" = "X-I$additional_includedir"; then
15837                      haveit=yes
15838                      break
15839                    fi
15840                  done
15841                  if test -z "$haveit"; then
15842                    if test -d "$additional_includedir"; then
15843                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15844                    fi
15845                  fi
15846                fi
15847              fi
15848            fi
15849                        if test -n "$found_la"; then
15850                                                        save_libdir="$libdir"
15851              case "$found_la" in
15852                */* | *\\*) . "$found_la" ;;
15853                *) . "./$found_la" ;;
15854              esac
15855              libdir="$save_libdir"
15856                            for dep in $dependency_libs; do
15857                case "$dep" in
15858                  -L*)
15859                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15860                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15861                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15862                      haveit=
15863                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15864                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15865                        if test -n "$GCC"; then
15866                          case $host_os in
15867                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15868                          esac
15869                        fi
15870                      fi
15871                      if test -z "$haveit"; then
15872                        haveit=
15873                        for x in $LDFLAGS $LIBINTL; do
15874
15875  acl_save_prefix="$prefix"
15876  prefix="$acl_final_prefix"
15877  acl_save_exec_prefix="$exec_prefix"
15878  exec_prefix="$acl_final_exec_prefix"
15879  eval x=\"$x\"
15880  exec_prefix="$acl_save_exec_prefix"
15881  prefix="$acl_save_prefix"
15882
15883                          if test "X$x" = "X-L$additional_libdir"; then
15884                            haveit=yes
15885                            break
15886                          fi
15887                        done
15888                        if test -z "$haveit"; then
15889                          if test -d "$additional_libdir"; then
15890                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15891                          fi
15892                        fi
15893                        haveit=
15894                        for x in $LDFLAGS $LTLIBINTL; do
15895
15896  acl_save_prefix="$prefix"
15897  prefix="$acl_final_prefix"
15898  acl_save_exec_prefix="$exec_prefix"
15899  exec_prefix="$acl_final_exec_prefix"
15900  eval x=\"$x\"
15901  exec_prefix="$acl_save_exec_prefix"
15902  prefix="$acl_save_prefix"
15903
15904                          if test "X$x" = "X-L$additional_libdir"; then
15905                            haveit=yes
15906                            break
15907                          fi
15908                        done
15909                        if test -z "$haveit"; then
15910                          if test -d "$additional_libdir"; then
15911                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15912                          fi
15913                        fi
15914                      fi
15915                    fi
15916                    ;;
15917                  -R*)
15918                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15919                    if test "$enable_rpath" != no; then
15920                                                                  haveit=
15921                      for x in $rpathdirs; do
15922                        if test "X$x" = "X$dir"; then
15923                          haveit=yes
15924                          break
15925                        fi
15926                      done
15927                      if test -z "$haveit"; then
15928                        rpathdirs="$rpathdirs $dir"
15929                      fi
15930                                                                  haveit=
15931                      for x in $ltrpathdirs; do
15932                        if test "X$x" = "X$dir"; then
15933                          haveit=yes
15934                          break
15935                        fi
15936                      done
15937                      if test -z "$haveit"; then
15938                        ltrpathdirs="$ltrpathdirs $dir"
15939                      fi
15940                    fi
15941                    ;;
15942                  -l*)
15943                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15944                    ;;
15945                  *.la)
15946                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15947                    ;;
15948                  *)
15949                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15950                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15951                    ;;
15952                esac
15953              done
15954            fi
15955          else
15956                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15957            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15958          fi
15959        fi
15960      fi
15961    done
15962  done
15963  if test "X$rpathdirs" != "X"; then
15964    if test -n "$acl_hardcode_libdir_separator"; then
15965                        alldirs=
15966      for found_dir in $rpathdirs; do
15967        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15968      done
15969            acl_save_libdir="$libdir"
15970      libdir="$alldirs"
15971      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15972      libdir="$acl_save_libdir"
15973      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15974    else
15975            for found_dir in $rpathdirs; do
15976        acl_save_libdir="$libdir"
15977        libdir="$found_dir"
15978        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15979        libdir="$acl_save_libdir"
15980        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15981      done
15982    fi
15983  fi
15984  if test "X$ltrpathdirs" != "X"; then
15985            for found_dir in $ltrpathdirs; do
15986      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15987    done
15988  fi
15989
15990
15991
15992
15993
15994          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15995$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15996if eval \${$gt_func_gnugettext_libintl+:} false; then :
15997  $as_echo_n "(cached) " >&6
15998else
15999  gt_save_CPPFLAGS="$CPPFLAGS"
16000            CPPFLAGS="$CPPFLAGS $INCINTL"
16001            gt_save_LIBS="$LIBS"
16002            LIBS="$LIBS $LIBINTL"
16003                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004/* end confdefs.h.  */
16005
16006#include <libintl.h>
16007#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16008extern int _nl_msg_cat_cntr;
16009extern
16010#ifdef __cplusplus
16011"C"
16012#endif
16013const char *_nl_expand_alias (const char *);
16014#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16015#else
16016#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16017#endif
16018$gt_revision_test_code
16019
16020int
16021main ()
16022{
16023
16024bindtextdomain ("", "");
16025return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16026
16027  ;
16028  return 0;
16029}
16030_ACEOF
16031if ac_fn_c_try_link "$LINENO"; then :
16032  eval "$gt_func_gnugettext_libintl=yes"
16033else
16034  eval "$gt_func_gnugettext_libintl=no"
16035fi
16036rm -f core conftest.err conftest.$ac_objext \
16037    conftest$ac_exeext conftest.$ac_ext
16038                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16039              LIBS="$LIBS $LIBICONV"
16040              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042
16043#include <libintl.h>
16044#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16045extern int _nl_msg_cat_cntr;
16046extern
16047#ifdef __cplusplus
16048"C"
16049#endif
16050const char *_nl_expand_alias (const char *);
16051#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16052#else
16053#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16054#endif
16055$gt_revision_test_code
16056
16057int
16058main ()
16059{
16060
16061bindtextdomain ("", "");
16062return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16063
16064  ;
16065  return 0;
16066}
16067_ACEOF
16068if ac_fn_c_try_link "$LINENO"; then :
16069  LIBINTL="$LIBINTL $LIBICONV"
16070                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16071                 eval "$gt_func_gnugettext_libintl=yes"
16072
16073fi
16074rm -f core conftest.err conftest.$ac_objext \
16075    conftest$ac_exeext conftest.$ac_ext
16076            fi
16077            CPPFLAGS="$gt_save_CPPFLAGS"
16078            LIBS="$gt_save_LIBS"
16079fi
16080eval ac_res=\$$gt_func_gnugettext_libintl
16081	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16082$as_echo "$ac_res" >&6; }
16083        fi
16084
16085                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16086           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16087                && test "$PACKAGE" != gettext-runtime \
16088                && test "$PACKAGE" != gettext-tools; }; then
16089          gt_use_preinstalled_gnugettext=yes
16090        else
16091                    LIBINTL=
16092          LTLIBINTL=
16093          INCINTL=
16094        fi
16095
16096
16097
16098    if test -n "$INTL_MACOSX_LIBS"; then
16099      if test "$gt_use_preinstalled_gnugettext" = "yes" \
16100         || test "$nls_cv_use_gnu_gettext" = "yes"; then
16101                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16102        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16103      fi
16104    fi
16105
16106    if test "$gt_use_preinstalled_gnugettext" = "yes" \
16107       || test "$nls_cv_use_gnu_gettext" = "yes"; then
16108
16109$as_echo "#define ENABLE_NLS 1" >>confdefs.h
16110
16111    else
16112      USE_NLS=no
16113    fi
16114  fi
16115
16116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16117$as_echo_n "checking whether to use NLS... " >&6; }
16118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16119$as_echo "$USE_NLS" >&6; }
16120  if test "$USE_NLS" = "yes"; then
16121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16122$as_echo_n "checking where the gettext function comes from... " >&6; }
16123    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16124      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16125        gt_source="external libintl"
16126      else
16127        gt_source="libc"
16128      fi
16129    else
16130      gt_source="included intl directory"
16131    fi
16132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16133$as_echo "$gt_source" >&6; }
16134  fi
16135
16136  if test "$USE_NLS" = "yes"; then
16137
16138    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16139      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16140        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16141$as_echo_n "checking how to link with libintl... " >&6; }
16142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16143$as_echo "$LIBINTL" >&6; }
16144
16145  for element in $INCINTL; do
16146    haveit=
16147    for x in $CPPFLAGS; do
16148
16149  acl_save_prefix="$prefix"
16150  prefix="$acl_final_prefix"
16151  acl_save_exec_prefix="$exec_prefix"
16152  exec_prefix="$acl_final_exec_prefix"
16153  eval x=\"$x\"
16154  exec_prefix="$acl_save_exec_prefix"
16155  prefix="$acl_save_prefix"
16156
16157      if test "X$x" = "X$element"; then
16158        haveit=yes
16159        break
16160      fi
16161    done
16162    if test -z "$haveit"; then
16163      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16164    fi
16165  done
16166
16167      fi
16168
16169
16170$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16171
16172
16173$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16174
16175    fi
16176
16177        POSUB=po
16178  fi
16179
16180
16181
16182    INTLLIBS="$LIBINTL"
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194if test "$enable_static" = "yes"; then
16195	as_fn_error $? "p11-kit cannot be used as a static library" "$LINENO" 5
16196fi
16197
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32" >&5
16199$as_echo_n "checking for win32... " >&6; }
16200case "$host" in
16201	*-*-mingw*)
16202
16203cat >>confdefs.h <<_ACEOF
16204#define OS_WIN32 1
16205_ACEOF
16206
16207		os_win32=yes
16208		os_unix=no
16209		;;
16210	*)
16211
16212cat >>confdefs.h <<_ACEOF
16213#define OS_UNIX 1
16214_ACEOF
16215
16216		os_win32=no
16217		os_unix=yes
16218		;;
16219esac
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
16221$as_echo "$os_win32" >&6; }
16222 if test "$os_win32" = "yes"; then
16223  OS_WIN32_TRUE=
16224  OS_WIN32_FALSE='#'
16225else
16226  OS_WIN32_TRUE='#'
16227  OS_WIN32_FALSE=
16228fi
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16232$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16233if ${ac_cv_c_bigendian+:} false; then :
16234  $as_echo_n "(cached) " >&6
16235else
16236  ac_cv_c_bigendian=unknown
16237    # See if we're dealing with a universal compiler.
16238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239/* end confdefs.h.  */
16240#ifndef __APPLE_CC__
16241	       not a universal capable compiler
16242	     #endif
16243	     typedef int dummy;
16244
16245_ACEOF
16246if ac_fn_c_try_compile "$LINENO"; then :
16247
16248	# Check for potential -arch flags.  It is not universal unless
16249	# there are at least two -arch flags with different values.
16250	ac_arch=
16251	ac_prev=
16252	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16253	 if test -n "$ac_prev"; then
16254	   case $ac_word in
16255	     i?86 | x86_64 | ppc | ppc64)
16256	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16257		 ac_arch=$ac_word
16258	       else
16259		 ac_cv_c_bigendian=universal
16260		 break
16261	       fi
16262	       ;;
16263	   esac
16264	   ac_prev=
16265	 elif test "x$ac_word" = "x-arch"; then
16266	   ac_prev=arch
16267	 fi
16268       done
16269fi
16270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271    if test $ac_cv_c_bigendian = unknown; then
16272      # See if sys/param.h defines the BYTE_ORDER macro.
16273      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h.  */
16275#include <sys/types.h>
16276	     #include <sys/param.h>
16277
16278int
16279main ()
16280{
16281#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16282		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16283		     && LITTLE_ENDIAN)
16284	      bogus endian macros
16285	     #endif
16286
16287  ;
16288  return 0;
16289}
16290_ACEOF
16291if ac_fn_c_try_compile "$LINENO"; then :
16292  # It does; now see whether it defined to BIG_ENDIAN or not.
16293	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294/* end confdefs.h.  */
16295#include <sys/types.h>
16296		#include <sys/param.h>
16297
16298int
16299main ()
16300{
16301#if BYTE_ORDER != BIG_ENDIAN
16302		 not big endian
16303		#endif
16304
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_compile "$LINENO"; then :
16310  ac_cv_c_bigendian=yes
16311else
16312  ac_cv_c_bigendian=no
16313fi
16314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315fi
16316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317    fi
16318    if test $ac_cv_c_bigendian = unknown; then
16319      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16320      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h.  */
16322#include <limits.h>
16323
16324int
16325main ()
16326{
16327#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16328	      bogus endian macros
16329	     #endif
16330
16331  ;
16332  return 0;
16333}
16334_ACEOF
16335if ac_fn_c_try_compile "$LINENO"; then :
16336  # It does; now see whether it defined to _BIG_ENDIAN or not.
16337	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338/* end confdefs.h.  */
16339#include <limits.h>
16340
16341int
16342main ()
16343{
16344#ifndef _BIG_ENDIAN
16345		 not big endian
16346		#endif
16347
16348  ;
16349  return 0;
16350}
16351_ACEOF
16352if ac_fn_c_try_compile "$LINENO"; then :
16353  ac_cv_c_bigendian=yes
16354else
16355  ac_cv_c_bigendian=no
16356fi
16357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358fi
16359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360    fi
16361    if test $ac_cv_c_bigendian = unknown; then
16362      # Compile a test program.
16363      if test "$cross_compiling" = yes; then :
16364  # Try to guess by grepping values from an object file.
16365	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366/* end confdefs.h.  */
16367short int ascii_mm[] =
16368		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16369		short int ascii_ii[] =
16370		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16371		int use_ascii (int i) {
16372		  return ascii_mm[i] + ascii_ii[i];
16373		}
16374		short int ebcdic_ii[] =
16375		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16376		short int ebcdic_mm[] =
16377		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16378		int use_ebcdic (int i) {
16379		  return ebcdic_mm[i] + ebcdic_ii[i];
16380		}
16381		extern int foo;
16382
16383int
16384main ()
16385{
16386return use_ascii (foo) == use_ebcdic (foo);
16387  ;
16388  return 0;
16389}
16390_ACEOF
16391if ac_fn_c_try_compile "$LINENO"; then :
16392  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16393	      ac_cv_c_bigendian=yes
16394	    fi
16395	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16396	      if test "$ac_cv_c_bigendian" = unknown; then
16397		ac_cv_c_bigendian=no
16398	      else
16399		# finding both strings is unlikely to happen, but who knows?
16400		ac_cv_c_bigendian=unknown
16401	      fi
16402	    fi
16403fi
16404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405else
16406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407/* end confdefs.h.  */
16408$ac_includes_default
16409int
16410main ()
16411{
16412
16413	     /* Are we little or big endian?  From Harbison&Steele.  */
16414	     union
16415	     {
16416	       long int l;
16417	       char c[sizeof (long int)];
16418	     } u;
16419	     u.l = 1;
16420	     return u.c[sizeof (long int) - 1] == 1;
16421
16422  ;
16423  return 0;
16424}
16425_ACEOF
16426if ac_fn_c_try_run "$LINENO"; then :
16427  ac_cv_c_bigendian=no
16428else
16429  ac_cv_c_bigendian=yes
16430fi
16431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16432  conftest.$ac_objext conftest.beam conftest.$ac_ext
16433fi
16434
16435    fi
16436fi
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16438$as_echo "$ac_cv_c_bigendian" >&6; }
16439 case $ac_cv_c_bigendian in #(
16440   yes)
16441     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16442;; #(
16443   no)
16444      ;; #(
16445   universal)
16446
16447$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16448
16449     ;; #(
16450   *)
16451     as_fn_error $? "unknown endianness
16452 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16453 esac
16454
16455
16456# ------------------------------------------------------------------------------
16457# Checks for libraries and headers
16458
16459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16460$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16461if ${ac_cv_header_stdbool_h+:} false; then :
16462  $as_echo_n "(cached) " >&6
16463else
16464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465/* end confdefs.h.  */
16466
16467             #include <stdbool.h>
16468             #ifndef bool
16469              "error: bool is not defined"
16470             #endif
16471             #ifndef false
16472              "error: false is not defined"
16473             #endif
16474             #if false
16475              "error: false is not 0"
16476             #endif
16477             #ifndef true
16478              "error: true is not defined"
16479             #endif
16480             #if true != 1
16481              "error: true is not 1"
16482             #endif
16483             #ifndef __bool_true_false_are_defined
16484              "error: __bool_true_false_are_defined is not defined"
16485             #endif
16486
16487             struct s { _Bool s: 1; _Bool t; } s;
16488
16489             char a[true == 1 ? 1 : -1];
16490             char b[false == 0 ? 1 : -1];
16491             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16492             char d[(bool) 0.5 == true ? 1 : -1];
16493             /* See body of main program for 'e'.  */
16494             char f[(_Bool) 0.0 == false ? 1 : -1];
16495             char g[true];
16496             char h[sizeof (_Bool)];
16497             char i[sizeof s.t];
16498             enum { j = false, k = true, l = false * true, m = true * 256 };
16499             /* The following fails for
16500                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16501             _Bool n[m];
16502             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16503             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16504             /* Catch a bug in an HP-UX C compiler.  See
16505                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16506                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16507              */
16508             _Bool q = true;
16509             _Bool *pq = &q;
16510
16511int
16512main ()
16513{
16514
16515             bool e = &s;
16516             *pq |= q;
16517             *pq |= ! q;
16518             /* Refer to every declared value, to avoid compiler optimizations.  */
16519             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16520                     + !m + !n + !o + !p + !q + !pq);
16521
16522  ;
16523  return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_compile "$LINENO"; then :
16527  ac_cv_header_stdbool_h=yes
16528else
16529  ac_cv_header_stdbool_h=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532fi
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16534$as_echo "$ac_cv_header_stdbool_h" >&6; }
16535   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16536if test "x$ac_cv_type__Bool" = xyes; then :
16537
16538cat >>confdefs.h <<_ACEOF
16539#define HAVE__BOOL 1
16540_ACEOF
16541
16542
16543fi
16544
16545
16546if test $ac_cv_header_stdbool_h = yes; then
16547
16548$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16549
16550fi
16551
16552
16553# The cast to long int works around a bug in the HP C Compiler
16554# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16555# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16556# This bug is HP SR number 8606223364.
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16558$as_echo_n "checking size of unsigned long... " >&6; }
16559if ${ac_cv_sizeof_unsigned_long+:} false; then :
16560  $as_echo_n "(cached) " >&6
16561else
16562  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16563
16564else
16565  if test "$ac_cv_type_unsigned_long" = yes; then
16566     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16568as_fn_error 77 "cannot compute sizeof (unsigned long)
16569See \`config.log' for more details" "$LINENO" 5; }
16570   else
16571     ac_cv_sizeof_unsigned_long=0
16572   fi
16573fi
16574
16575fi
16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16577$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16578
16579
16580
16581cat >>confdefs.h <<_ACEOF
16582#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16583_ACEOF
16584
16585
16586
16587if test "$os_unix" = "yes"; then
16588	ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
16589if test "x$ac_cv_func_pthread_create" = xyes; then :
16590
16591else
16592
16593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16594$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16595if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16596  $as_echo_n "(cached) " >&6
16597else
16598  ac_check_lib_save_LIBS=$LIBS
16599LIBS="-lpthread  $LIBS"
16600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h.  */
16602
16603/* Override any GCC internal prototype to avoid an error.
16604   Use char because int might match the return type of a GCC
16605   builtin and then its argument prototype would still apply.  */
16606#ifdef __cplusplus
16607extern "C"
16608#endif
16609char pthread_create ();
16610int
16611main ()
16612{
16613return pthread_create ();
16614  ;
16615  return 0;
16616}
16617_ACEOF
16618if ac_fn_c_try_link "$LINENO"; then :
16619  ac_cv_lib_pthread_pthread_create=yes
16620else
16621  ac_cv_lib_pthread_pthread_create=no
16622fi
16623rm -f core conftest.err conftest.$ac_objext \
16624    conftest$ac_exeext conftest.$ac_ext
16625LIBS=$ac_check_lib_save_LIBS
16626fi
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16628$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16629if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16630  cat >>confdefs.h <<_ACEOF
16631#define HAVE_LIBPTHREAD 1
16632_ACEOF
16633
16634  LIBS="-lpthread $LIBS"
16635
16636else
16637
16638			as_fn_error $? "could not find pthread_create" "$LINENO" 5
16639
16640fi
16641
16642
16643fi
16644
16645
16646	ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16647if test "x$ac_cv_func_nanosleep" = xyes; then :
16648
16649else
16650
16651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
16652$as_echo_n "checking for library containing nanosleep... " >&6; }
16653if ${ac_cv_search_nanosleep+:} false; then :
16654  $as_echo_n "(cached) " >&6
16655else
16656  ac_func_search_save_LIBS=$LIBS
16657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658/* end confdefs.h.  */
16659
16660/* Override any GCC internal prototype to avoid an error.
16661   Use char because int might match the return type of a GCC
16662   builtin and then its argument prototype would still apply.  */
16663#ifdef __cplusplus
16664extern "C"
16665#endif
16666char nanosleep ();
16667int
16668main ()
16669{
16670return nanosleep ();
16671  ;
16672  return 0;
16673}
16674_ACEOF
16675for ac_lib in '' rt; do
16676  if test -z "$ac_lib"; then
16677    ac_res="none required"
16678  else
16679    ac_res=-l$ac_lib
16680    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16681  fi
16682  if ac_fn_c_try_link "$LINENO"; then :
16683  ac_cv_search_nanosleep=$ac_res
16684fi
16685rm -f core conftest.err conftest.$ac_objext \
16686    conftest$ac_exeext
16687  if ${ac_cv_search_nanosleep+:} false; then :
16688  break
16689fi
16690done
16691if ${ac_cv_search_nanosleep+:} false; then :
16692
16693else
16694  ac_cv_search_nanosleep=no
16695fi
16696rm conftest.$ac_ext
16697LIBS=$ac_func_search_save_LIBS
16698fi
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
16700$as_echo "$ac_cv_search_nanosleep" >&6; }
16701ac_res=$ac_cv_search_nanosleep
16702if test "$ac_res" != no; then :
16703  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16704
16705else
16706
16707			as_fn_error $? "could not find nanosleep" "$LINENO" 5
16708
16709fi
16710
16711
16712fi
16713
16714
16715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16716$as_echo_n "checking for library containing dlopen... " >&6; }
16717if ${ac_cv_search_dlopen+:} false; then :
16718  $as_echo_n "(cached) " >&6
16719else
16720  ac_func_search_save_LIBS=$LIBS
16721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722/* end confdefs.h.  */
16723
16724/* Override any GCC internal prototype to avoid an error.
16725   Use char because int might match the return type of a GCC
16726   builtin and then its argument prototype would still apply.  */
16727#ifdef __cplusplus
16728extern "C"
16729#endif
16730char dlopen ();
16731int
16732main ()
16733{
16734return dlopen ();
16735  ;
16736  return 0;
16737}
16738_ACEOF
16739for ac_lib in '' dl dld; do
16740  if test -z "$ac_lib"; then
16741    ac_res="none required"
16742  else
16743    ac_res=-l$ac_lib
16744    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16745  fi
16746  if ac_fn_c_try_link "$LINENO"; then :
16747  ac_cv_search_dlopen=$ac_res
16748fi
16749rm -f core conftest.err conftest.$ac_objext \
16750    conftest$ac_exeext
16751  if ${ac_cv_search_dlopen+:} false; then :
16752  break
16753fi
16754done
16755if ${ac_cv_search_dlopen+:} false; then :
16756
16757else
16758  ac_cv_search_dlopen=no
16759fi
16760rm conftest.$ac_ext
16761LIBS=$ac_func_search_save_LIBS
16762fi
16763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16764$as_echo "$ac_cv_search_dlopen" >&6; }
16765ac_res=$ac_cv_search_dlopen
16766if test "$ac_res" != no; then :
16767  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16768
16769else
16770
16771		as_fn_error $? "could not find dlopen" "$LINENO" 5
16772
16773fi
16774
16775
16776	# for Solaris we need -lsocket -lnsl for socket stuff, gethostbyname
16777	# is just a dummy to find -lnsl
16778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16779$as_echo_n "checking for library containing gethostbyname... " >&6; }
16780if ${ac_cv_search_gethostbyname+:} false; then :
16781  $as_echo_n "(cached) " >&6
16782else
16783  ac_func_search_save_LIBS=$LIBS
16784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785/* end confdefs.h.  */
16786
16787/* Override any GCC internal prototype to avoid an error.
16788   Use char because int might match the return type of a GCC
16789   builtin and then its argument prototype would still apply.  */
16790#ifdef __cplusplus
16791extern "C"
16792#endif
16793char gethostbyname ();
16794int
16795main ()
16796{
16797return gethostbyname ();
16798  ;
16799  return 0;
16800}
16801_ACEOF
16802for ac_lib in '' nsl; do
16803  if test -z "$ac_lib"; then
16804    ac_res="none required"
16805  else
16806    ac_res=-l$ac_lib
16807    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16808  fi
16809  if ac_fn_c_try_link "$LINENO"; then :
16810  ac_cv_search_gethostbyname=$ac_res
16811fi
16812rm -f core conftest.err conftest.$ac_objext \
16813    conftest$ac_exeext
16814  if ${ac_cv_search_gethostbyname+:} false; then :
16815  break
16816fi
16817done
16818if ${ac_cv_search_gethostbyname+:} false; then :
16819
16820else
16821  ac_cv_search_gethostbyname=no
16822fi
16823rm conftest.$ac_ext
16824LIBS=$ac_func_search_save_LIBS
16825fi
16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16827$as_echo "$ac_cv_search_gethostbyname" >&6; }
16828ac_res=$ac_cv_search_gethostbyname
16829if test "$ac_res" != no; then :
16830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16831
16832fi
16833
16834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
16835$as_echo_n "checking for library containing connect... " >&6; }
16836if ${ac_cv_search_connect+:} false; then :
16837  $as_echo_n "(cached) " >&6
16838else
16839  ac_func_search_save_LIBS=$LIBS
16840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841/* end confdefs.h.  */
16842
16843/* Override any GCC internal prototype to avoid an error.
16844   Use char because int might match the return type of a GCC
16845   builtin and then its argument prototype would still apply.  */
16846#ifdef __cplusplus
16847extern "C"
16848#endif
16849char connect ();
16850int
16851main ()
16852{
16853return connect ();
16854  ;
16855  return 0;
16856}
16857_ACEOF
16858for ac_lib in '' socket; do
16859  if test -z "$ac_lib"; then
16860    ac_res="none required"
16861  else
16862    ac_res=-l$ac_lib
16863    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16864  fi
16865  if ac_fn_c_try_link "$LINENO"; then :
16866  ac_cv_search_connect=$ac_res
16867fi
16868rm -f core conftest.err conftest.$ac_objext \
16869    conftest$ac_exeext
16870  if ${ac_cv_search_connect+:} false; then :
16871  break
16872fi
16873done
16874if ${ac_cv_search_connect+:} false; then :
16875
16876else
16877  ac_cv_search_connect=no
16878fi
16879rm conftest.$ac_ext
16880LIBS=$ac_func_search_save_LIBS
16881fi
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
16883$as_echo "$ac_cv_search_connect" >&6; }
16884ac_res=$ac_cv_search_connect
16885if test "$ac_res" != no; then :
16886  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16887
16888else
16889
16890		as_fn_error $? "could not find socket" "$LINENO" 5
16891
16892fi
16893
16894
16895	for ac_header in locale.h
16896do :
16897  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16898if test "x$ac_cv_header_locale_h" = xyes; then :
16899  cat >>confdefs.h <<_ACEOF
16900#define HAVE_LOCALE_H 1
16901_ACEOF
16902
16903		ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <locale.h>
16904"
16905if test "x$ac_cv_type_locale_t" = xyes; then :
16906
16907cat >>confdefs.h <<_ACEOF
16908#define HAVE_LOCALE_T 1
16909_ACEOF
16910
16911
16912fi
16913
16914		for ac_func in newlocale strerror_l
16915do :
16916  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16918if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16919  cat >>confdefs.h <<_ACEOF
16920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16921_ACEOF
16922
16923fi
16924done
16925
16926
16927fi
16928
16929done
16930
16931
16932	# These are things we can work around
16933	for ac_header in sys/resource.h sys/un.h ucred.h
16934do :
16935  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16938  cat >>confdefs.h <<_ACEOF
16939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940_ACEOF
16941
16942fi
16943
16944done
16945
16946	ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
16947"
16948if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
16949
16950cat >>confdefs.h <<_ACEOF
16951#define HAVE_STRUCT_DIRENT_D_TYPE 1
16952_ACEOF
16953
16954
16955fi
16956
16957	for ac_func in getprogname getexecname basename mkstemp mkdtemp
16958do :
16959  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16961if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16962  cat >>confdefs.h <<_ACEOF
16963#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964_ACEOF
16965
16966fi
16967done
16968
16969	for ac_func in getauxval getresuid secure_getenv
16970do :
16971  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16974  cat >>confdefs.h <<_ACEOF
16975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16976_ACEOF
16977
16978fi
16979done
16980
16981	for ac_func in strnstr memdup strndup strerror_r
16982do :
16983  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16984ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16985if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16986  cat >>confdefs.h <<_ACEOF
16987#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16988_ACEOF
16989
16990fi
16991done
16992
16993	for ac_func in reallocarray
16994do :
16995  ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
16996if test "x$ac_cv_func_reallocarray" = xyes; then :
16997  cat >>confdefs.h <<_ACEOF
16998#define HAVE_REALLOCARRAY 1
16999_ACEOF
17000
17001fi
17002done
17003
17004	ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "#include <stdlib.h>
17005"
17006if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17007  ac_have_decl=1
17008else
17009  ac_have_decl=0
17010fi
17011
17012cat >>confdefs.h <<_ACEOF
17013#define HAVE_DECL_REALLOCARRAY $ac_have_decl
17014_ACEOF
17015
17016	for ac_func in fdwalk
17017do :
17018  ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk"
17019if test "x$ac_cv_func_fdwalk" = xyes; then :
17020  cat >>confdefs.h <<_ACEOF
17021#define HAVE_FDWALK 1
17022_ACEOF
17023
17024fi
17025done
17026
17027	for ac_func in setenv
17028do :
17029  ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
17030if test "x$ac_cv_func_setenv" = xyes; then :
17031  cat >>confdefs.h <<_ACEOF
17032#define HAVE_SETENV 1
17033_ACEOF
17034
17035fi
17036done
17037
17038	for ac_func in getpeereid
17039do :
17040  ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
17041if test "x$ac_cv_func_getpeereid" = xyes; then :
17042  cat >>confdefs.h <<_ACEOF
17043#define HAVE_GETPEEREID 1
17044_ACEOF
17045
17046fi
17047done
17048
17049	for ac_func in getpeerucred
17050do :
17051  ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
17052if test "x$ac_cv_func_getpeerucred" = xyes; then :
17053  cat >>confdefs.h <<_ACEOF
17054#define HAVE_GETPEERUCRED 1
17055_ACEOF
17056
17057fi
17058done
17059
17060	for ac_func in issetugid
17061do :
17062  ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
17063if test "x$ac_cv_func_issetugid" = xyes; then :
17064  cat >>confdefs.h <<_ACEOF
17065#define HAVE_ISSETUGID 1
17066_ACEOF
17067
17068fi
17069done
17070
17071
17072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread-local storage class" >&5
17073$as_echo_n "checking for thread-local storage class... " >&6; }
17074if ${ac_cv_tls_keyword+:} false; then :
17075  $as_echo_n "(cached) " >&6
17076else
17077  ac_cv_tls_keyword=
17078		for keyword in _Thread_local __thread; do
17079		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080/* end confdefs.h.  */
17081#include <stdlib.h>
17082int
17083main ()
17084{
17085static $keyword foo;
17086  ;
17087  return 0;
17088}
17089_ACEOF
17090if ac_fn_c_try_compile "$LINENO"; then :
17091  ac_cv_tls_keyword=$keyword
17092fi
17093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17094		done
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls_keyword" >&5
17097$as_echo "$ac_cv_tls_keyword" >&6; }
17098	if test -n "$ac_cv_tls_keyword"; then
17099
17100cat >>confdefs.h <<_ACEOF
17101#define P11_TLS_KEYWORD $ac_cv_tls_keyword
17102_ACEOF
17103
17104	fi
17105
17106	# Required functions
17107	for ac_func in gmtime_r
17108do :
17109  ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17110if test "x$ac_cv_func_gmtime_r" = xyes; then :
17111  cat >>confdefs.h <<_ACEOF
17112#define HAVE_GMTIME_R 1
17113_ACEOF
17114
17115$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17116
17117else
17118  as_fn_error $? "could not find required gmtime_r() function" "$LINENO" 5
17119fi
17120done
17121
17122
17123	# Check if these are declared and/or available to link against
17124	ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17125"
17126if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
17127  ac_have_decl=1
17128else
17129  ac_have_decl=0
17130fi
17131
17132cat >>confdefs.h <<_ACEOF
17133#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17134_ACEOF
17135
17136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is available" >&5
17137$as_echo_n "checking whether program_invocation_short_name is available... " >&6; }
17138	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139/* end confdefs.h.  */
17140#include <errno.h>
17141int
17142main ()
17143{
17144program_invocation_short_name = "test";
17145  ;
17146  return 0;
17147}
17148_ACEOF
17149if ac_fn_c_try_link "$LINENO"; then :
17150
17151$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17152
17153	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17154$as_echo "yes" >&6; }
17155else
17156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17157$as_echo "no" >&6; }
17158fi
17159rm -f core conftest.err conftest.$ac_objext \
17160    conftest$ac_exeext conftest.$ac_ext
17161	ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "$ac_includes_default"
17162if test "x$ac_cv_have_decl___progname" = xyes; then :
17163  ac_have_decl=1
17164else
17165  ac_have_decl=0
17166fi
17167
17168cat >>confdefs.h <<_ACEOF
17169#define HAVE_DECL___PROGNAME $ac_have_decl
17170_ACEOF
17171
17172	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173/* end confdefs.h.  */
17174extern char *__progname;
17175int
17176main ()
17177{
17178__progname=(char*)0;
17179  ;
17180  return 0;
17181}
17182_ACEOF
17183if ac_fn_c_try_link "$LINENO"; then :
17184
17185$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17186
17187fi
17188rm -f core conftest.err conftest.$ac_objext \
17189    conftest$ac_exeext conftest.$ac_ext
17190	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191/* end confdefs.h.  */
17192extern int __libc_enable_secure;
17193int
17194main ()
17195{
17196__libc_enable_secure = 0;
17197  ;
17198  return 0;
17199}
17200_ACEOF
17201if ac_fn_c_try_link "$LINENO"; then :
17202
17203$as_echo "#define HAVE___LIBC_ENABLE_SECURE 1" >>confdefs.h
17204
17205fi
17206rm -f core conftest.err conftest.$ac_objext \
17207    conftest$ac_exeext conftest.$ac_ext
17208	ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "#include <sys/types.h>
17209		  #include <signal.h>
17210"
17211if test "x$ac_cv_type_sighandler_t" = xyes; then :
17212
17213cat >>confdefs.h <<_ACEOF
17214#define HAVE_SIGHANDLER_T 1
17215_ACEOF
17216
17217
17218fi
17219ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <sys/types.h>
17220		  #include <signal.h>
17221"
17222if test "x$ac_cv_type_sig_t" = xyes; then :
17223
17224cat >>confdefs.h <<_ACEOF
17225#define HAVE_SIG_T 1
17226_ACEOF
17227
17228
17229fi
17230ac_fn_c_check_type "$LINENO" "__sighandler_t" "ac_cv_type___sighandler_t" "#include <sys/types.h>
17231		  #include <signal.h>
17232"
17233if test "x$ac_cv_type___sighandler_t" = xyes; then :
17234
17235cat >>confdefs.h <<_ACEOF
17236#define HAVE___SIGHANDLER_T 1
17237_ACEOF
17238
17239
17240fi
17241
17242
17243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsock support is available" >&5
17244$as_echo_n "checking whether vsock support is available... " >&6; }
17245	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h.  */
17247#include <sys/socket.h>
17248					  #include <linux/vm_sockets.h>
17249int
17250main ()
17251{
17252struct sockaddr_vm sa = {
17253					  .svm_family = AF_VSOCK,
17254					  .svm_cid = VMADDR_CID_ANY,
17255					  };
17256					  (void)&sa;
17257					  return 0;
17258  ;
17259  return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_link "$LINENO"; then :
17263
17264$as_echo "#define HAVE_VSOCK 1" >>confdefs.h
17265
17266	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17267$as_echo "yes" >&6; }
17268else
17269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270$as_echo "no" >&6; }
17271fi
17272rm -f core conftest.err conftest.$ac_objext \
17273    conftest$ac_exeext conftest.$ac_ext
17274
17275fi
17276
17277# These are thngs we can work around
17278for ac_func in asprintf vasprintf vsnprintf
17279do :
17280  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17283  cat >>confdefs.h <<_ACEOF
17284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17285_ACEOF
17286
17287fi
17288done
17289
17290ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "#include <stdio.h>
17291"
17292if test "x$ac_cv_have_decl_asprintf" = xyes; then :
17293  ac_have_decl=1
17294else
17295  ac_have_decl=0
17296fi
17297
17298cat >>confdefs.h <<_ACEOF
17299#define HAVE_DECL_ASPRINTF $ac_have_decl
17300_ACEOF
17301ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "#include <stdio.h>
17302"
17303if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
17304  ac_have_decl=1
17305else
17306  ac_have_decl=0
17307fi
17308
17309cat >>confdefs.h <<_ACEOF
17310#define HAVE_DECL_VASPRINTF $ac_have_decl
17311_ACEOF
17312
17313
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
17315$as_echo_n "checking for dgettext in -lintl... " >&6; }
17316if ${ac_cv_lib_intl_dgettext+:} false; then :
17317  $as_echo_n "(cached) " >&6
17318else
17319  ac_check_lib_save_LIBS=$LIBS
17320LIBS="-lintl  $LIBS"
17321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322/* end confdefs.h.  */
17323
17324/* Override any GCC internal prototype to avoid an error.
17325   Use char because int might match the return type of a GCC
17326   builtin and then its argument prototype would still apply.  */
17327#ifdef __cplusplus
17328extern "C"
17329#endif
17330char dgettext ();
17331int
17332main ()
17333{
17334return dgettext ();
17335  ;
17336  return 0;
17337}
17338_ACEOF
17339if ac_fn_c_try_link "$LINENO"; then :
17340  ac_cv_lib_intl_dgettext=yes
17341else
17342  ac_cv_lib_intl_dgettext=no
17343fi
17344rm -f core conftest.err conftest.$ac_objext \
17345    conftest$ac_exeext conftest.$ac_ext
17346LIBS=$ac_check_lib_save_LIBS
17347fi
17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17349$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17350if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
17351  cat >>confdefs.h <<_ACEOF
17352#define HAVE_LIBINTL 1
17353_ACEOF
17354
17355  LIBS="-lintl $LIBS"
17356
17357fi
17358
17359
17360# ------------------------------------------------------------------------------
17361# PKCS#11 Directories
17362
17363
17364# Check whether --with-module-config was given.
17365if test "${with_module_config+set}" = set; then :
17366  withval=$with_module_config; module_config=$withval
17367else
17368  module_config='${pkgdatadir}/modules'
17369fi
17370
17371
17372
17373# Check whether --with-system-config was given.
17374if test "${with_system_config+set}" = set; then :
17375  withval=$with_system_config; system_config_dir=$withval
17376else
17377  system_config_dir=$sysconfdir/pkcs11
17378fi
17379
17380
17381
17382# Check whether --with-user-config was given.
17383if test "${with_user_config+set}" = set; then :
17384  withval=$with_user_config; user_config_dir=$withval
17385else
17386  user_config_dir="~/.config/pkcs11"
17387fi
17388
17389
17390
17391# Check whether --with-module-path was given.
17392if test "${with_module_path+set}" = set; then :
17393  withval=$with_module_path; module_path=$withval
17394else
17395  module_path=$libdir/pkcs11
17396fi
17397
17398
17399# We expand these so we have concrete paths
17400p11_system_config=$system_config_dir
17401p11_system_config_file=$p11_system_config/pkcs11.conf
17402p11_system_config_modules=$p11_system_config/modules
17403p11_package_config_modules=$module_config
17404p11_user_config=$user_config_dir
17405p11_user_config_file="$p11_user_config/pkcs11.conf"
17406p11_user_config_modules="$p11_user_config/modules"
17407p11_module_path="$module_path"
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418# --------------------------------------------------------------------
17419# libtasn1 support
17420
17421
17422# Check whether --with-libtasn1 was given.
17423if test "${with_libtasn1+set}" = set; then :
17424  withval=$with_libtasn1;
17425fi
17426
17427
17428if test "$with_libtasn1" != "no"; then :
17429
17430
17431pkg_failed=no
17432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
17433$as_echo_n "checking for LIBTASN1... " >&6; }
17434
17435if test -n "$LIBTASN1_CFLAGS"; then
17436    pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
17437 elif test -n "$PKG_CONFIG"; then
17438    if test -n "$PKG_CONFIG" && \
17439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 2.3\""; } >&5
17440  ($PKG_CONFIG --exists --print-errors "libtasn1 >= 2.3") 2>&5
17441  ac_status=$?
17442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17443  test $ac_status = 0; }; then
17444  pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= 2.3" 2>/dev/null`
17445		      test "x$?" != "x0" && pkg_failed=yes
17446else
17447  pkg_failed=yes
17448fi
17449 else
17450    pkg_failed=untried
17451fi
17452if test -n "$LIBTASN1_LIBS"; then
17453    pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
17454 elif test -n "$PKG_CONFIG"; then
17455    if test -n "$PKG_CONFIG" && \
17456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 2.3\""; } >&5
17457  ($PKG_CONFIG --exists --print-errors "libtasn1 >= 2.3") 2>&5
17458  ac_status=$?
17459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17460  test $ac_status = 0; }; then
17461  pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= 2.3" 2>/dev/null`
17462		      test "x$?" != "x0" && pkg_failed=yes
17463else
17464  pkg_failed=yes
17465fi
17466 else
17467    pkg_failed=untried
17468fi
17469
17470
17471
17472if test $pkg_failed = yes; then
17473   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474$as_echo "no" >&6; }
17475
17476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17477        _pkg_short_errors_supported=yes
17478else
17479        _pkg_short_errors_supported=no
17480fi
17481        if test $_pkg_short_errors_supported = yes; then
17482	        LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtasn1 >= 2.3" 2>&1`
17483        else
17484	        LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtasn1 >= 2.3" 2>&1`
17485        fi
17486	# Put the nasty error message in config.log where it belongs
17487	echo "$LIBTASN1_PKG_ERRORS" >&5
17488
17489	as_fn_error $? "libtasn1 not found. Building without it results in significant loss of functionality. To proceed use --without-libtasn1" "$LINENO" 5
17490
17491elif test $pkg_failed = untried; then
17492     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17493$as_echo "no" >&6; }
17494	as_fn_error $? "libtasn1 not found. Building without it results in significant loss of functionality. To proceed use --without-libtasn1" "$LINENO" 5
17495
17496else
17497	LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
17498	LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
17499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17500$as_echo "yes" >&6; }
17501
17502fi
17503
17504
17505	# Extract the first word of "asn1Parser", so it can be a program name with args.
17506set dummy asn1Parser; ac_word=$2
17507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17508$as_echo_n "checking for $ac_word... " >&6; }
17509if ${ac_cv_path_ASN1PARSER+:} false; then :
17510  $as_echo_n "(cached) " >&6
17511else
17512  case $ASN1PARSER in
17513  [\\/]* | ?:[\\/]*)
17514  ac_cv_path_ASN1PARSER="$ASN1PARSER" # Let the user override the test with a path.
17515  ;;
17516  *)
17517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17518for as_dir in $PATH
17519do
17520  IFS=$as_save_IFS
17521  test -z "$as_dir" && as_dir=.
17522    for ac_exec_ext in '' $ac_executable_extensions; do
17523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17524    ac_cv_path_ASN1PARSER="$as_dir/$ac_word$ac_exec_ext"
17525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17526    break 2
17527  fi
17528done
17529  done
17530IFS=$as_save_IFS
17531
17532  ;;
17533esac
17534fi
17535ASN1PARSER=$ac_cv_path_ASN1PARSER
17536if test -n "$ASN1PARSER"; then
17537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASN1PARSER" >&5
17538$as_echo "$ASN1PARSER" >&6; }
17539else
17540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541$as_echo "no" >&6; }
17542fi
17543
17544
17545	with_libtasn1="yes"
17546
17547cat >>confdefs.h <<_ACEOF
17548#define WITH_ASN1 1
17549_ACEOF
17550
17551
17552fi
17553
17554 if test "$with_libtasn1" = "yes"; then
17555  WITH_ASN1_TRUE=
17556  WITH_ASN1_FALSE='#'
17557else
17558  WITH_ASN1_TRUE='#'
17559  WITH_ASN1_FALSE=
17560fi
17561
17562
17563# --------------------------------------------------------------------
17564# libffi
17565
17566
17567# Check whether --with-libffi was given.
17568if test "${with_libffi+set}" = set; then :
17569  withval=$with_libffi;
17570fi
17571
17572
17573if test "$with_libffi" != "no"; then
17574
17575pkg_failed=no
17576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17577$as_echo_n "checking for LIBFFI... " >&6; }
17578
17579if test -n "$LIBFFI_CFLAGS"; then
17580    pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17581 elif test -n "$PKG_CONFIG"; then
17582    if test -n "$PKG_CONFIG" && \
17583    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
17584  ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
17585  ac_status=$?
17586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17587  test $ac_status = 0; }; then
17588  pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0" 2>/dev/null`
17589		      test "x$?" != "x0" && pkg_failed=yes
17590else
17591  pkg_failed=yes
17592fi
17593 else
17594    pkg_failed=untried
17595fi
17596if test -n "$LIBFFI_LIBS"; then
17597    pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17598 elif test -n "$PKG_CONFIG"; then
17599    if test -n "$PKG_CONFIG" && \
17600    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
17601  ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
17602  ac_status=$?
17603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17604  test $ac_status = 0; }; then
17605  pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0" 2>/dev/null`
17606		      test "x$?" != "x0" && pkg_failed=yes
17607else
17608  pkg_failed=yes
17609fi
17610 else
17611    pkg_failed=untried
17612fi
17613
17614
17615
17616if test $pkg_failed = yes; then
17617   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17618$as_echo "no" >&6; }
17619
17620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17621        _pkg_short_errors_supported=yes
17622else
17623        _pkg_short_errors_supported=no
17624fi
17625        if test $_pkg_short_errors_supported = yes; then
17626	        LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.0" 2>&1`
17627        else
17628	        LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.0" 2>&1`
17629        fi
17630	# Put the nasty error message in config.log where it belongs
17631	echo "$LIBFFI_PKG_ERRORS" >&5
17632
17633	as_fn_error $? "Package requirements (libffi >= 3.0.0) were not met:
17634
17635$LIBFFI_PKG_ERRORS
17636
17637Consider adjusting the PKG_CONFIG_PATH environment variable if you
17638installed software in a non-standard prefix.
17639
17640Alternatively, you may set the environment variables LIBFFI_CFLAGS
17641and LIBFFI_LIBS to avoid the need to call pkg-config.
17642See the pkg-config man page for more details." "$LINENO" 5
17643elif test $pkg_failed = untried; then
17644     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645$as_echo "no" >&6; }
17646	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17648as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17649is in your PATH or set the PKG_CONFIG environment variable to the full
17650path to pkg-config.
17651
17652Alternatively, you may set the environment variables LIBFFI_CFLAGS
17653and LIBFFI_LIBS to avoid the need to call pkg-config.
17654See the pkg-config man page for more details.
17655
17656To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17657See \`config.log' for more details" "$LINENO" 5; }
17658else
17659	LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17660	LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17661        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662$as_echo "yes" >&6; }
17663
17664fi
17665
17666cat >>confdefs.h <<_ACEOF
17667#define WITH_FFI 1
17668_ACEOF
17669
17670
17671
17672
17673	with_libffi="yes"
17674fi
17675
17676 if test "$with_libffi" = "yes"; then
17677  WITH_FFI_TRUE=
17678  WITH_FFI_FALSE='#'
17679else
17680  WITH_FFI_TRUE='#'
17681  WITH_FFI_FALSE=
17682fi
17683
17684
17685
17686# Check whether --with-closures was given.
17687if test "${with_closures+set}" = set; then :
17688  withval=$with_closures; closures=$withval
17689else
17690  closures=64
17691fi
17692
17693
17694if test "$closures" -lt 1; then
17695	as_fn_error $? "at least one closure must be compiled in" "$LINENO" 5
17696fi
17697
17698
17699cat >>confdefs.h <<_ACEOF
17700#define P11_VIRTUAL_MAX_FIXED $closures
17701_ACEOF
17702
17703
17704
17705# --------------------------------------------------------------------
17706# Hash implementation
17707
17708
17709# Check whether --with-hash-impl was given.
17710if test "${with_hash_impl+set}" = set; then :
17711  withval=$with_hash_impl;
17712fi
17713
17714
17715if test "$with_hash_impl" = ""; then :
17716  with_hash_impl=internal
17717fi
17718
17719case $with_hash_impl in #(
17720  freebl) :
17721
17722		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSSLOW_Init in -lfreebl3" >&5
17723$as_echo_n "checking for NSSLOW_Init in -lfreebl3... " >&6; }
17724if ${ac_cv_lib_freebl3_NSSLOW_Init+:} false; then :
17725  $as_echo_n "(cached) " >&6
17726else
17727  ac_check_lib_save_LIBS=$LIBS
17728LIBS="-lfreebl3  $LIBS"
17729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730/* end confdefs.h.  */
17731
17732/* Override any GCC internal prototype to avoid an error.
17733   Use char because int might match the return type of a GCC
17734   builtin and then its argument prototype would still apply.  */
17735#ifdef __cplusplus
17736extern "C"
17737#endif
17738char NSSLOW_Init ();
17739int
17740main ()
17741{
17742return NSSLOW_Init ();
17743  ;
17744  return 0;
17745}
17746_ACEOF
17747if ac_fn_c_try_link "$LINENO"; then :
17748  ac_cv_lib_freebl3_NSSLOW_Init=yes
17749else
17750  ac_cv_lib_freebl3_NSSLOW_Init=no
17751fi
17752rm -f core conftest.err conftest.$ac_objext \
17753    conftest$ac_exeext conftest.$ac_ext
17754LIBS=$ac_check_lib_save_LIBS
17755fi
17756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freebl3_NSSLOW_Init" >&5
17757$as_echo "$ac_cv_lib_freebl3_NSSLOW_Init" >&6; }
17758if test "x$ac_cv_lib_freebl3_NSSLOW_Init" = xyes; then :
17759
17760				HASH_LIBS=-lfreebl3
17761
17762cat >>confdefs.h <<_ACEOF
17763#define WITH_FREEBL 1
17764_ACEOF
17765
17766
17767else
17768  as_fn_error $? "could not find the freebl3 library" "$LINENO" 5
17769
17770fi
17771
17772	 ;; #(
17773  internal) :
17774
17775		HASH_LIBS=
17776	 ;; #(
17777  *) :
17778
17779		as_fn_error $? "unsupported hash impl: $with_hash_impl" "$LINENO" 5
17780
17781 ;;
17782esac
17783
17784
17785
17786# --------------------------------------------------------------------
17787# Trust Module
17788
17789# Check whether --enable-trust-module was given.
17790if test "${enable_trust_module+set}" = set; then :
17791  enableval=$enable_trust_module;
17792fi
17793
17794
17795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if trust module is enabled" >&5
17796$as_echo_n "checking if trust module is enabled... " >&6; }
17797if test "$with_libtasn1" != "yes"; then :
17798
17799	if test "$enable_trust_module" = "yes"; then :
17800
17801		as_fn_error $? "--with-libtasn1 is needed in order to build the trust module" "$LINENO" 5
17802
17803fi
17804	if test "$enable_trust_module" != "no"; then :
17805
17806		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libtasn1 is needed in order to build the trust module, disabling" >&5
17807$as_echo "$as_me: WARNING: --with-libtasn1 is needed in order to build the trust module, disabling" >&2;}
17808
17809fi
17810	enable_trust_module="no"
17811
17812fi
17813
17814if test "$enable_trust_module" != "no"; then :
17815  enable_trust_module="yes"
17816fi
17817 if test "$enable_trust_module" = "yes"; then
17818  WITH_TRUST_MODULE_TRUE=
17819  WITH_TRUST_MODULE_FALSE='#'
17820else
17821  WITH_TRUST_MODULE_TRUE='#'
17822  WITH_TRUST_MODULE_FALSE=
17823fi
17824
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_trust_module" >&5
17826$as_echo "$enable_trust_module" >&6; }
17827
17828
17829# Check whether --with-trust-paths was given.
17830if test "${with_trust_paths+set}" = set; then :
17831  withval=$with_trust_paths;
17832fi
17833
17834
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for trust module paths" >&5
17836$as_echo_n "checking for trust module paths... " >&6; }
17837
17838# This option was disabled, no anchors
17839if test "$with_trust_paths" = "no"; then
17840	with_trust_paths=""
17841	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17842$as_echo "disabled" >&6; }
17843
17844elif test "$enable_trust_module" != "yes"; then
17845	if test "$with_trust_paths" != ""; then
17846		as_fn_error $? "need --enable-trust-module in order to specify trust module paths." "$LINENO" 5
17847	fi
17848	with_trust_paths=""
17849	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17850$as_echo "disabled" >&6; }
17851
17852# Option was not set, try to detect
17853elif test "$with_trust_paths" = "" -o "$with_trust_paths" = "yes"; then
17854	with_trust_paths=""
17855	for f in /etc/pki/tls/certs/ca-bundle.crt \
17856		/etc/ssl/certs/ca-certificates.crt \
17857		/etc/ssl/ca-bundle.pem \
17858		/etc/ssl/ca-bundle.crt; do
17859		if test -f "$f"; then
17860			with_trust_paths="$f"
17861			break
17862		fi
17863	done
17864
17865	if test "$with_trust_paths" = ""; then
17866		as_fn_error $? "could not find. Use --with-trust-paths=/path to set, or --without-trust-paths to disable" "$LINENO" 5
17867	fi
17868
17869	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trust_paths" >&5
17870$as_echo "$with_trust_paths" >&6; }
17871
17872else
17873	# Anchors explicitly set
17874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trust_paths" >&5
17875$as_echo "$with_trust_paths" >&6; }
17876fi
17877
17878
17879cat >>confdefs.h <<_ACEOF
17880#define TRUST_PATHS "$with_trust_paths"
17881_ACEOF
17882
17883
17884
17885# --------------------------------------------------------------------
17886# GTK Doc
17887
17888# Extract the first word of "gtkdoc-check", so it can be a program name with args.
17889set dummy gtkdoc-check; ac_word=$2
17890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17891$as_echo_n "checking for $ac_word... " >&6; }
17892if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
17893  $as_echo_n "(cached) " >&6
17894else
17895  case $GTKDOC_CHECK in
17896  [\\/]* | ?:[\\/]*)
17897  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
17898  ;;
17899  *)
17900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17901for as_dir in $PATH
17902do
17903  IFS=$as_save_IFS
17904  test -z "$as_dir" && as_dir=.
17905    for ac_exec_ext in '' $ac_executable_extensions; do
17906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17907    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
17908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17909    break 2
17910  fi
17911done
17912  done
17913IFS=$as_save_IFS
17914
17915  ;;
17916esac
17917fi
17918GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
17919if test -n "$GTKDOC_CHECK"; then
17920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
17921$as_echo "$GTKDOC_CHECK" >&6; }
17922else
17923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17924$as_echo "no" >&6; }
17925fi
17926
17927
17928for ac_prog in gtkdoc-rebase
17929do
17930  # Extract the first word of "$ac_prog", so it can be a program name with args.
17931set dummy $ac_prog; ac_word=$2
17932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17933$as_echo_n "checking for $ac_word... " >&6; }
17934if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17935  $as_echo_n "(cached) " >&6
17936else
17937  case $GTKDOC_REBASE in
17938  [\\/]* | ?:[\\/]*)
17939  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17940  ;;
17941  *)
17942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17943for as_dir in $PATH
17944do
17945  IFS=$as_save_IFS
17946  test -z "$as_dir" && as_dir=.
17947    for ac_exec_ext in '' $ac_executable_extensions; do
17948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17949    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17951    break 2
17952  fi
17953done
17954  done
17955IFS=$as_save_IFS
17956
17957  ;;
17958esac
17959fi
17960GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17961if test -n "$GTKDOC_REBASE"; then
17962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17963$as_echo "$GTKDOC_REBASE" >&6; }
17964else
17965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17966$as_echo "no" >&6; }
17967fi
17968
17969
17970  test -n "$GTKDOC_REBASE" && break
17971done
17972test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17973
17974# Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17975set dummy gtkdoc-mkpdf; ac_word=$2
17976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17977$as_echo_n "checking for $ac_word... " >&6; }
17978if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17979  $as_echo_n "(cached) " >&6
17980else
17981  case $GTKDOC_MKPDF in
17982  [\\/]* | ?:[\\/]*)
17983  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17984  ;;
17985  *)
17986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17987for as_dir in $PATH
17988do
17989  IFS=$as_save_IFS
17990  test -z "$as_dir" && as_dir=.
17991    for ac_exec_ext in '' $ac_executable_extensions; do
17992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17993    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17995    break 2
17996  fi
17997done
17998  done
17999IFS=$as_save_IFS
18000
18001  ;;
18002esac
18003fi
18004GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18005if test -n "$GTKDOC_MKPDF"; then
18006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18007$as_echo "$GTKDOC_MKPDF" >&6; }
18008else
18009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18010$as_echo "no" >&6; }
18011fi
18012
18013
18014# Extract the first word of "gtkdoc-scan", so it can be a program name with args.
18015set dummy gtkdoc-scan; ac_word=$2
18016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18017$as_echo_n "checking for $ac_word... " >&6; }
18018if ${ac_cv_path_GTKDOC_SCAN+:} false; then :
18019  $as_echo_n "(cached) " >&6
18020else
18021  case $GTKDOC_SCAN in
18022  [\\/]* | ?:[\\/]*)
18023  ac_cv_path_GTKDOC_SCAN="$GTKDOC_SCAN" # Let the user override the test with a path.
18024  ;;
18025  *)
18026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18027for as_dir in $PATH
18028do
18029  IFS=$as_save_IFS
18030  test -z "$as_dir" && as_dir=.
18031    for ac_exec_ext in '' $ac_executable_extensions; do
18032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18033    ac_cv_path_GTKDOC_SCAN="$as_dir/$ac_word$ac_exec_ext"
18034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18035    break 2
18036  fi
18037done
18038  done
18039IFS=$as_save_IFS
18040
18041  ;;
18042esac
18043fi
18044GTKDOC_SCAN=$ac_cv_path_GTKDOC_SCAN
18045if test -n "$GTKDOC_SCAN"; then
18046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_SCAN" >&5
18047$as_echo "$GTKDOC_SCAN" >&6; }
18048else
18049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18050$as_echo "no" >&6; }
18051fi
18052
18053
18054# Extract the first word of "xsltproc", so it can be a program name with args.
18055set dummy xsltproc; ac_word=$2
18056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18057$as_echo_n "checking for $ac_word... " >&6; }
18058if ${ac_cv_path_XSLTPROC+:} false; then :
18059  $as_echo_n "(cached) " >&6
18060else
18061  case $XSLTPROC in
18062  [\\/]* | ?:[\\/]*)
18063  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18064  ;;
18065  *)
18066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18067for as_dir in $PATH
18068do
18069  IFS=$as_save_IFS
18070  test -z "$as_dir" && as_dir=.
18071    for ac_exec_ext in '' $ac_executable_extensions; do
18072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18073    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18075    break 2
18076  fi
18077done
18078  done
18079IFS=$as_save_IFS
18080
18081  ;;
18082esac
18083fi
18084XSLTPROC=$ac_cv_path_XSLTPROC
18085if test -n "$XSLTPROC"; then
18086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18087$as_echo "$XSLTPROC" >&6; }
18088else
18089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18090$as_echo "no" >&6; }
18091fi
18092
18093
18094
18095
18096# Check whether --with-html-dir was given.
18097if test "${with_html_dir+set}" = set; then :
18098  withval=$with_html_dir;
18099else
18100  with_html_dir='${datadir}/gtk-doc/html'
18101fi
18102
18103HTML_DIR="$with_html_dir"
18104
18105
18106# Check whether --enable-doc was given.
18107if test "${enable_doc+set}" = set; then :
18108  enableval=$enable_doc;
18109else
18110  enable_doc=no
18111fi
18112
18113
18114if test x$enable_doc = xyes; then
18115	if test -z "$GTKDOC_SCAN"; then
18116		as_fn_error $? "gtk-doc not installed and --enable-doc requested" "$LINENO" 5
18117	fi
18118	if test -z "$XSLTPROC"; then
18119		as_fn_error $? "the xsltproc command was not found and --enable-doc requested" "$LINENO" 5
18120	fi
18121	doc_status="yes (manual, reference)"
18122else
18123	enable_doc=no
18124	doc_status="no (no manual or reference)"
18125fi
18126
18127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18128$as_echo_n "checking whether to build documentation... " >&6; }
18129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_doc" >&5
18130$as_echo "$enable_doc" >&6; }
18131
18132# Check whether --enable-doc-html was given.
18133if test "${enable_doc_html+set}" = set; then :
18134  enableval=$enable_doc_html;
18135else
18136  enable_doc_html=yes
18137fi
18138
18139# Check whether --enable-doc-pdf was given.
18140if test "${enable_doc_pdf+set}" = set; then :
18141  enableval=$enable_doc_pdf;
18142else
18143  enable_doc_pdf=no
18144fi
18145
18146
18147if test -z "$GTKDOC_MKPDF"; then
18148	enable_doc_pdf=no
18149fi
18150
18151 if test x$enable_doc = xyes; then
18152  ENABLE_GTK_DOC_TRUE=
18153  ENABLE_GTK_DOC_FALSE='#'
18154else
18155  ENABLE_GTK_DOC_TRUE='#'
18156  ENABLE_GTK_DOC_FALSE=
18157fi
18158
18159 if test x$enable_doc_html = xyes; then
18160  GTK_DOC_BUILD_HTML_TRUE=
18161  GTK_DOC_BUILD_HTML_FALSE='#'
18162else
18163  GTK_DOC_BUILD_HTML_TRUE='#'
18164  GTK_DOC_BUILD_HTML_FALSE=
18165fi
18166
18167 if test x$enable_doc_pdf = xyes; then
18168  GTK_DOC_BUILD_PDF_TRUE=
18169  GTK_DOC_BUILD_PDF_FALSE='#'
18170else
18171  GTK_DOC_BUILD_PDF_TRUE='#'
18172  GTK_DOC_BUILD_PDF_FALSE=
18173fi
18174
18175 if test -n "$LIBTOOL"; then
18176  GTK_DOC_USE_LIBTOOL_TRUE=
18177  GTK_DOC_USE_LIBTOOL_FALSE='#'
18178else
18179  GTK_DOC_USE_LIBTOOL_TRUE='#'
18180  GTK_DOC_USE_LIBTOOL_FALSE=
18181fi
18182
18183 if test -n "$GTKDOC_REBASE"; then
18184  GTK_DOC_USE_REBASE_TRUE=
18185  GTK_DOC_USE_REBASE_FALSE='#'
18186else
18187  GTK_DOC_USE_REBASE_TRUE='#'
18188  GTK_DOC_USE_REBASE_FALSE=
18189fi
18190
18191
18192# --------------------------------------------------------------------
18193# Compilation and linking options
18194
18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug mode" >&5
18196$as_echo_n "checking for debug mode... " >&6; }
18197# Check whether --enable-debug was given.
18198if test "${enable_debug+set}" = set; then :
18199  enableval=$enable_debug;
18200fi
18201
18202
18203if test "$enable_debug" != "no"; then
18204
18205cat >>confdefs.h <<_ACEOF
18206#define WITH_DEBUG 1
18207_ACEOF
18208
18209
18210cat >>confdefs.h <<_ACEOF
18211#define _DEBUG 1
18212_ACEOF
18213
18214	CFLAGS="$CFLAGS -g"
18215fi
18216
18217if test "$enable_debug" = "yes"; then
18218	debug_status="yes (-g, -O0, debug output)"
18219	CFLAGS="$CFLAGS -O0"
18220elif test "$enable_debug" = "no"; then
18221	debug_status="no (no debug output, NDEBUG)"
18222
18223cat >>confdefs.h <<_ACEOF
18224#define NDEBUG 1
18225_ACEOF
18226
18227else
18228	debug_status="default (-g, debug output)"
18229fi
18230
18231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_status" >&5
18232$as_echo "$debug_status" >&6; }
18233
18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for more warnings" >&5
18235$as_echo_n "checking for more warnings... " >&6; }
18236if test "$GCC" = "yes"; then
18237	CFLAGS="$CFLAGS \
18238		-Wall -Wstrict-prototypes -Wmissing-declarations \
18239		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
18240		-Wdeclaration-after-statement -Wformat=2 -Winit-self \
18241		-Waggregate-return -Wno-missing-format-attribute \
18242		-fno-strict-aliasing -fno-common"
18243
18244	for option in -Wmissing-include-dirs -Wundef; do
18245		SAVE_CFLAGS="$CFLAGS"
18246		CFLAGS="$CFLAGS $option"
18247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
18248$as_echo_n "checking whether gcc understands $option... " >&6; }
18249		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250/* end confdefs.h.  */
18251
18252int
18253main ()
18254{
18255
18256  ;
18257  return 0;
18258}
18259_ACEOF
18260if ac_fn_c_try_compile "$LINENO"; then :
18261  has_option=yes
18262else
18263  has_option=no
18264fi
18265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
18267$as_echo "$has_option" >&6; }
18268		if test $has_option = no; then
18269			CFLAGS="$SAVE_CFLAGS"
18270		fi
18271	done
18272else
18273	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274$as_echo "no" >&6; }
18275fi
18276
18277# Check whether --enable-strict was given.
18278if test "${enable_strict+set}" = set; then :
18279  enableval=$enable_strict;
18280fi
18281
18282
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build strict" >&5
18284$as_echo_n "checking build strict... " >&6; }
18285
18286if test "$enable_strict" = "yes"; then
18287	CFLAGS="$CFLAGS -Werror"
18288
18289cat >>confdefs.h <<_ACEOF
18290#define WITH_STRICT 1
18291_ACEOF
18292
18293	strict_status="yes (-Werror, fatals)"
18294else
18295	strict_status="no"
18296fi
18297
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $strict_status" >&5
18299$as_echo "$strict_status" >&6; }
18300
18301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov testing" >&5
18302$as_echo_n "checking whether to build with gcov testing... " >&6; }
18303# Check whether --enable-coverage was given.
18304if test "${enable_coverage+set}" = set; then :
18305  enableval=$enable_coverage;
18306else
18307  enable_coverage=no
18308fi
18309
18310
18311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
18312$as_echo "$enable_coverage" >&6; }
18313
18314if test "$enable_coverage" = "yes"; then
18315	if test "$GCC" != "yes"; then
18316		as_fn_error $? "Coverage testing requires GCC" "$LINENO" 5
18317	fi
18318
18319	# Extract the first word of "gcov", so it can be a program name with args.
18320set dummy gcov; ac_word=$2
18321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18322$as_echo_n "checking for $ac_word... " >&6; }
18323if ${ac_cv_path_GCOV+:} false; then :
18324  $as_echo_n "(cached) " >&6
18325else
18326  case $GCOV in
18327  [\\/]* | ?:[\\/]*)
18328  ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
18329  ;;
18330  *)
18331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18332for as_dir in $PATH
18333do
18334  IFS=$as_save_IFS
18335  test -z "$as_dir" && as_dir=.
18336    for ac_exec_ext in '' $ac_executable_extensions; do
18337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18338    ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
18339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18340    break 2
18341  fi
18342done
18343  done
18344IFS=$as_save_IFS
18345
18346  test -z "$ac_cv_path_GCOV" && ac_cv_path_GCOV="no"
18347  ;;
18348esac
18349fi
18350GCOV=$ac_cv_path_GCOV
18351if test -n "$GCOV"; then
18352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
18353$as_echo "$GCOV" >&6; }
18354else
18355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356$as_echo "no" >&6; }
18357fi
18358
18359
18360	if test "$GCOV" = "no" ; then
18361		as_fn_error $? "gcov tool is not available" "$LINENO" 5
18362	fi
18363
18364	# Extract the first word of "lcov", so it can be a program name with args.
18365set dummy lcov; ac_word=$2
18366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18367$as_echo_n "checking for $ac_word... " >&6; }
18368if ${ac_cv_path_LCOV+:} false; then :
18369  $as_echo_n "(cached) " >&6
18370else
18371  case $LCOV in
18372  [\\/]* | ?:[\\/]*)
18373  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
18374  ;;
18375  *)
18376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18377for as_dir in $PATH
18378do
18379  IFS=$as_save_IFS
18380  test -z "$as_dir" && as_dir=.
18381    for ac_exec_ext in '' $ac_executable_extensions; do
18382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18383    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
18384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18385    break 2
18386  fi
18387done
18388  done
18389IFS=$as_save_IFS
18390
18391  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
18392  ;;
18393esac
18394fi
18395LCOV=$ac_cv_path_LCOV
18396if test -n "$LCOV"; then
18397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
18398$as_echo "$LCOV" >&6; }
18399else
18400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401$as_echo "no" >&6; }
18402fi
18403
18404
18405	if test "$LCOV" = "no" ; then
18406		as_fn_error $? "lcov tool is not installed" "$LINENO" 5
18407	fi
18408
18409	# Extract the first word of "genhtml", so it can be a program name with args.
18410set dummy genhtml; ac_word=$2
18411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18412$as_echo_n "checking for $ac_word... " >&6; }
18413if ${ac_cv_path_GENHTML+:} false; then :
18414  $as_echo_n "(cached) " >&6
18415else
18416  case $GENHTML in
18417  [\\/]* | ?:[\\/]*)
18418  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
18419  ;;
18420  *)
18421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18422for as_dir in $PATH
18423do
18424  IFS=$as_save_IFS
18425  test -z "$as_dir" && as_dir=.
18426    for ac_exec_ext in '' $ac_executable_extensions; do
18427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18428    ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
18429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18430    break 2
18431  fi
18432done
18433  done
18434IFS=$as_save_IFS
18435
18436  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
18437  ;;
18438esac
18439fi
18440GENHTML=$ac_cv_path_GENHTML
18441if test -n "$GENHTML"; then
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
18443$as_echo "$GENHTML" >&6; }
18444else
18445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446$as_echo "no" >&6; }
18447fi
18448
18449
18450	if test "$GENHTML" = "no" ; then
18451		as_fn_error $? "lcov's genhtml tool is not installed" "$LINENO" 5
18452	fi
18453
18454	CFLAGS="$CFLAGS -O0 -g --coverage"
18455	LDFLAGS="$LDFLAGS --coverage"
18456fi
18457
18458 if test "$enable_coverage" = "yes"; then
18459  WITH_COVERAGE_TRUE=
18460  WITH_COVERAGE_FALSE='#'
18461else
18462  WITH_COVERAGE_TRUE='#'
18463  WITH_COVERAGE_FALSE=
18464fi
18465
18466
18467
18468
18469
18470# ---------------------------------------------------------------------
18471
18472P11KIT_LT_RELEASE=$P11KIT_CURRENT:$P11KIT_REVISION:$P11KIT_AGE
18473
18474
18475echo $PACKAGE_VERSION | tr '.' ' ' | while read major minor unused; do
18476
18477cat >>confdefs.h <<_ACEOF
18478#define PACKAGE_MAJOR $major
18479_ACEOF
18480
18481
18482cat >>confdefs.h <<_ACEOF
18483#define PACKAGE_MINOR $minor
18484_ACEOF
18485
18486	break
18487done
18488
18489case "$host" in
18490*-*-darwin*)
18491	# It seems like libtool lies about this see:
18492	# https://bugs.freedesktop.org/show_bug.cgi?id=57714
18493	SHLEXT='.so'
18494	;;
18495*)
18496	eval SHLEXT=$shrext_cmds
18497	;;
18498esac
18499
18500
18501cat >>confdefs.h <<_ACEOF
18502#define SHLEXT "$SHLEXT"
18503_ACEOF
18504
18505
18506
18507
18508cat >>confdefs.h <<_ACEOF
18509#define EXEEXT "$EXEEXT"
18510_ACEOF
18511
18512
18513privatedir='${libexecdir}/p11-kit'
18514
18515
18516# --------------------------------------------------------------------
18517# systemd
18518
18519
18520# Check whether --with-systemd was given.
18521if test "${with_systemd+set}" = set; then :
18522  withval=$with_systemd;
18523fi
18524
18525
18526if test "$with_systemd" != "no"; then :
18527
18528
18529pkg_failed=no
18530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD" >&5
18531$as_echo_n "checking for LIBSYSTEMD... " >&6; }
18532
18533if test -n "$LIBSYSTEMD_CFLAGS"; then
18534    pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
18535 elif test -n "$PKG_CONFIG"; then
18536    if test -n "$PKG_CONFIG" && \
18537    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18538  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18539  ac_status=$?
18540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18541  test $ac_status = 0; }; then
18542  pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18543		      test "x$?" != "x0" && pkg_failed=yes
18544else
18545  pkg_failed=yes
18546fi
18547 else
18548    pkg_failed=untried
18549fi
18550if test -n "$LIBSYSTEMD_LIBS"; then
18551    pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
18552 elif test -n "$PKG_CONFIG"; then
18553    if test -n "$PKG_CONFIG" && \
18554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18555  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18556  ac_status=$?
18557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18558  test $ac_status = 0; }; then
18559  pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
18560		      test "x$?" != "x0" && pkg_failed=yes
18561else
18562  pkg_failed=yes
18563fi
18564 else
18565    pkg_failed=untried
18566fi
18567
18568
18569
18570if test $pkg_failed = yes; then
18571   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18572$as_echo "no" >&6; }
18573
18574if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18575        _pkg_short_errors_supported=yes
18576else
18577        _pkg_short_errors_supported=no
18578fi
18579        if test $_pkg_short_errors_supported = yes; then
18580	        LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
18581        else
18582	        LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
18583        fi
18584	# Put the nasty error message in config.log where it belongs
18585	echo "$LIBSYSTEMD_PKG_ERRORS" >&5
18586
18587	with_systemd=no
18588elif test $pkg_failed = untried; then
18589     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18590$as_echo "no" >&6; }
18591	with_systemd=no
18592else
18593	LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
18594	LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
18595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18596$as_echo "yes" >&6; }
18597
18598fi
18599
18600
18601if test -n "$systemduserunitdir"; then
18602    pkg_cv_systemduserunitdir="$systemduserunitdir"
18603 elif test -n "$PKG_CONFIG"; then
18604    if test -n "$PKG_CONFIG" && \
18605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
18606  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
18607  ac_status=$?
18608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18609  test $ac_status = 0; }; then
18610  pkg_cv_systemduserunitdir=`$PKG_CONFIG --variable="systemduserunitdir" "systemd" 2>/dev/null`
18611		      test "x$?" != "x0" && pkg_failed=yes
18612else
18613  pkg_failed=yes
18614fi
18615 else
18616    pkg_failed=untried
18617fi
18618systemduserunitdir=$pkg_cv_systemduserunitdir
18619
18620if test "x$systemduserunitdir" = x""; then :
18621  with_systemd=no
18622fi
18623
18624	if test "$with_systemd" != "no"; then :
18625
18626		with_systemd=yes
18627
18628cat >>confdefs.h <<_ACEOF
18629#define WITH_SYSTEMD 1
18630_ACEOF
18631
18632
18633fi
18634
18635fi
18636
18637 if test "$with_systemd" = "yes"; then
18638  WITH_SYSTEMD_TRUE=
18639  WITH_SYSTEMD_FALSE='#'
18640else
18641  WITH_SYSTEMD_TRUE='#'
18642  WITH_SYSTEMD_FALSE=
18643fi
18644
18645
18646# --------------------------------------------------------------------
18647# bash completion
18648
18649
18650# Check whether --with-bash-completion was given.
18651if test "${with_bash_completion+set}" = set; then :
18652  withval=$with_bash_completion;
18653fi
18654
18655
18656if test "$with_bash_completion" != "no"; then :
18657
18658
18659if test -n "$bashcompdir"; then
18660    pkg_cv_bashcompdir="$bashcompdir"
18661 elif test -n "$PKG_CONFIG"; then
18662    if test -n "$PKG_CONFIG" && \
18663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion\""; } >&5
18664  ($PKG_CONFIG --exists --print-errors "bash-completion") 2>&5
18665  ac_status=$?
18666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18667  test $ac_status = 0; }; then
18668  pkg_cv_bashcompdir=`$PKG_CONFIG --variable="completionsdir" "bash-completion" 2>/dev/null`
18669		      test "x$?" != "x0" && pkg_failed=yes
18670else
18671  pkg_failed=yes
18672fi
18673 else
18674    pkg_failed=untried
18675fi
18676bashcompdir=$pkg_cv_bashcompdir
18677
18678if test "x$bashcompdir" = x""; then :
18679
18680else
18681  with_bash_completion=yes
18682fi
18683
18684
18685fi
18686
18687 if test "$with_bash_completion" = "yes"; then
18688  WITH_BASH_COMPLETION_TRUE=
18689  WITH_BASH_COMPLETION_FALSE='#'
18690else
18691  WITH_BASH_COMPLETION_TRUE='#'
18692  WITH_BASH_COMPLETION_FALSE=
18693fi
18694
18695
18696
18697ac_config_files="$ac_config_files Makefile doc/Makefile doc/manual/Makefile po/Makefile.in p11-kit/p11-kit-1.pc p11-kit/pkcs11.conf.example trust/test-init.sh"
18698
18699cat >confcache <<\_ACEOF
18700# This file is a shell script that caches the results of configure
18701# tests run on this system so they can be shared between configure
18702# scripts and configure runs, see configure's option --config-cache.
18703# It is not useful on other systems.  If it contains results you don't
18704# want to keep, you may remove or edit it.
18705#
18706# config.status only pays attention to the cache file if you give it
18707# the --recheck option to rerun configure.
18708#
18709# `ac_cv_env_foo' variables (set or unset) will be overridden when
18710# loading this file, other *unset* `ac_cv_foo' will be assigned the
18711# following values.
18712
18713_ACEOF
18714
18715# The following way of writing the cache mishandles newlines in values,
18716# but we know of no workaround that is simple, portable, and efficient.
18717# So, we kill variables containing newlines.
18718# Ultrix sh set writes to stderr and can't be redirected directly,
18719# and sets the high bit in the cache file unless we assign to the vars.
18720(
18721  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18722    eval ac_val=\$$ac_var
18723    case $ac_val in #(
18724    *${as_nl}*)
18725      case $ac_var in #(
18726      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18727$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18728      esac
18729      case $ac_var in #(
18730      _ | IFS | as_nl) ;; #(
18731      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18732      *) { eval $ac_var=; unset $ac_var;} ;;
18733      esac ;;
18734    esac
18735  done
18736
18737  (set) 2>&1 |
18738    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18739    *${as_nl}ac_space=\ *)
18740      # `set' does not quote correctly, so add quotes: double-quote
18741      # substitution turns \\\\ into \\, and sed turns \\ into \.
18742      sed -n \
18743	"s/'/'\\\\''/g;
18744	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18745      ;; #(
18746    *)
18747      # `set' quotes correctly as required by POSIX, so do not add quotes.
18748      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18749      ;;
18750    esac |
18751    sort
18752) |
18753  sed '
18754     /^ac_cv_env_/b end
18755     t clear
18756     :clear
18757     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18758     t end
18759     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18760     :end' >>confcache
18761if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18762  if test -w "$cache_file"; then
18763    if test "x$cache_file" != "x/dev/null"; then
18764      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18765$as_echo "$as_me: updating cache $cache_file" >&6;}
18766      if test ! -f "$cache_file" || test -h "$cache_file"; then
18767	cat confcache >"$cache_file"
18768      else
18769        case $cache_file in #(
18770        */* | ?:*)
18771	  mv -f confcache "$cache_file"$$ &&
18772	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18773        *)
18774	  mv -f confcache "$cache_file" ;;
18775	esac
18776      fi
18777    fi
18778  else
18779    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18780$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18781  fi
18782fi
18783rm -f confcache
18784
18785test "x$prefix" = xNONE && prefix=$ac_default_prefix
18786# Let make expand exec_prefix.
18787test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18788
18789DEFS=-DHAVE_CONFIG_H
18790
18791ac_libobjs=
18792ac_ltlibobjs=
18793U=
18794for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18795  # 1. Remove the extension, and $U if already installed.
18796  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18797  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18798  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18799  #    will be set to the directory where LIBOBJS objects are built.
18800  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18801  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18802done
18803LIBOBJS=$ac_libobjs
18804
18805LTLIBOBJS=$ac_ltlibobjs
18806
18807
18808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18809$as_echo_n "checking that generated files are newer than configure... " >&6; }
18810   if test -n "$am_sleep_pid"; then
18811     # Hide warnings about reused PIDs.
18812     wait $am_sleep_pid 2>/dev/null
18813   fi
18814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18815$as_echo "done" >&6; }
18816 if test -n "$EXEEXT"; then
18817  am__EXEEXT_TRUE=
18818  am__EXEEXT_FALSE='#'
18819else
18820  am__EXEEXT_TRUE='#'
18821  am__EXEEXT_FALSE=
18822fi
18823
18824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18825$as_echo_n "checking that generated files are newer than configure... " >&6; }
18826   if test -n "$am_sleep_pid"; then
18827     # Hide warnings about reused PIDs.
18828     wait $am_sleep_pid 2>/dev/null
18829   fi
18830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18831$as_echo "done" >&6; }
18832if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18833  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18834Usually this means the macro was only invoked conditionally." "$LINENO" 5
18835fi
18836if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18837  as_fn_error $? "conditional \"AMDEP\" was never defined.
18838Usually this means the macro was only invoked conditionally." "$LINENO" 5
18839fi
18840if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18841  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18842Usually this means the macro was only invoked conditionally." "$LINENO" 5
18843fi
18844if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
18845  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
18846Usually this means the macro was only invoked conditionally." "$LINENO" 5
18847fi
18848if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18849  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18850Usually this means the macro was only invoked conditionally." "$LINENO" 5
18851fi
18852if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
18853  as_fn_error $? "conditional \"OS_WIN32\" was never defined.
18854Usually this means the macro was only invoked conditionally." "$LINENO" 5
18855fi
18856
18857if test -z "${WITH_ASN1_TRUE}" && test -z "${WITH_ASN1_FALSE}"; then
18858  as_fn_error $? "conditional \"WITH_ASN1\" was never defined.
18859Usually this means the macro was only invoked conditionally." "$LINENO" 5
18860fi
18861if test -z "${WITH_FFI_TRUE}" && test -z "${WITH_FFI_FALSE}"; then
18862  as_fn_error $? "conditional \"WITH_FFI\" was never defined.
18863Usually this means the macro was only invoked conditionally." "$LINENO" 5
18864fi
18865if test -z "${WITH_TRUST_MODULE_TRUE}" && test -z "${WITH_TRUST_MODULE_FALSE}"; then
18866  as_fn_error $? "conditional \"WITH_TRUST_MODULE\" was never defined.
18867Usually this means the macro was only invoked conditionally." "$LINENO" 5
18868fi
18869if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18870  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18871Usually this means the macro was only invoked conditionally." "$LINENO" 5
18872fi
18873if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
18874  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
18875Usually this means the macro was only invoked conditionally." "$LINENO" 5
18876fi
18877if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
18878  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
18879Usually this means the macro was only invoked conditionally." "$LINENO" 5
18880fi
18881if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18882  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18883Usually this means the macro was only invoked conditionally." "$LINENO" 5
18884fi
18885if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
18886  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
18887Usually this means the macro was only invoked conditionally." "$LINENO" 5
18888fi
18889if test -z "${WITH_COVERAGE_TRUE}" && test -z "${WITH_COVERAGE_FALSE}"; then
18890  as_fn_error $? "conditional \"WITH_COVERAGE\" was never defined.
18891Usually this means the macro was only invoked conditionally." "$LINENO" 5
18892fi
18893if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
18894  as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
18895Usually this means the macro was only invoked conditionally." "$LINENO" 5
18896fi
18897if test -z "${WITH_BASH_COMPLETION_TRUE}" && test -z "${WITH_BASH_COMPLETION_FALSE}"; then
18898  as_fn_error $? "conditional \"WITH_BASH_COMPLETION\" was never defined.
18899Usually this means the macro was only invoked conditionally." "$LINENO" 5
18900fi
18901
18902: "${CONFIG_STATUS=./config.status}"
18903ac_write_fail=0
18904ac_clean_files_save=$ac_clean_files
18905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18907$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18908as_write_fail=0
18909cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18910#! $SHELL
18911# Generated by $as_me.
18912# Run this file to recreate the current configuration.
18913# Compiler output produced by configure, useful for debugging
18914# configure, is in config.log if it exists.
18915
18916debug=false
18917ac_cs_recheck=false
18918ac_cs_silent=false
18919
18920SHELL=\${CONFIG_SHELL-$SHELL}
18921export SHELL
18922_ASEOF
18923cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18924## -------------------- ##
18925## M4sh Initialization. ##
18926## -------------------- ##
18927
18928# Be more Bourne compatible
18929DUALCASE=1; export DUALCASE # for MKS sh
18930if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18931  emulate sh
18932  NULLCMD=:
18933  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18934  # is contrary to our usage.  Disable this feature.
18935  alias -g '${1+"$@"}'='"$@"'
18936  setopt NO_GLOB_SUBST
18937else
18938  case `(set -o) 2>/dev/null` in #(
18939  *posix*) :
18940    set -o posix ;; #(
18941  *) :
18942     ;;
18943esac
18944fi
18945
18946
18947as_nl='
18948'
18949export as_nl
18950# Printing a long string crashes Solaris 7 /usr/bin/printf.
18951as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18954# Prefer a ksh shell builtin over an external printf program on Solaris,
18955# but without wasting forks for bash or zsh.
18956if test -z "$BASH_VERSION$ZSH_VERSION" \
18957    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18958  as_echo='print -r --'
18959  as_echo_n='print -rn --'
18960elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18961  as_echo='printf %s\n'
18962  as_echo_n='printf %s'
18963else
18964  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18965    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18966    as_echo_n='/usr/ucb/echo -n'
18967  else
18968    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18969    as_echo_n_body='eval
18970      arg=$1;
18971      case $arg in #(
18972      *"$as_nl"*)
18973	expr "X$arg" : "X\\(.*\\)$as_nl";
18974	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18975      esac;
18976      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18977    '
18978    export as_echo_n_body
18979    as_echo_n='sh -c $as_echo_n_body as_echo'
18980  fi
18981  export as_echo_body
18982  as_echo='sh -c $as_echo_body as_echo'
18983fi
18984
18985# The user is always right.
18986if test "${PATH_SEPARATOR+set}" != set; then
18987  PATH_SEPARATOR=:
18988  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18989    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18990      PATH_SEPARATOR=';'
18991  }
18992fi
18993
18994
18995# IFS
18996# We need space, tab and new line, in precisely that order.  Quoting is
18997# there to prevent editors from complaining about space-tab.
18998# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18999# splitting by setting IFS to empty value.)
19000IFS=" ""	$as_nl"
19001
19002# Find who we are.  Look in the path if we contain no directory separator.
19003as_myself=
19004case $0 in #((
19005  *[\\/]* ) as_myself=$0 ;;
19006  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19007for as_dir in $PATH
19008do
19009  IFS=$as_save_IFS
19010  test -z "$as_dir" && as_dir=.
19011    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19012  done
19013IFS=$as_save_IFS
19014
19015     ;;
19016esac
19017# We did not find ourselves, most probably we were run as `sh COMMAND'
19018# in which case we are not to be found in the path.
19019if test "x$as_myself" = x; then
19020  as_myself=$0
19021fi
19022if test ! -f "$as_myself"; then
19023  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19024  exit 1
19025fi
19026
19027# Unset variables that we do not need and which cause bugs (e.g. in
19028# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19029# suppresses any "Segmentation fault" message there.  '((' could
19030# trigger a bug in pdksh 5.2.14.
19031for as_var in BASH_ENV ENV MAIL MAILPATH
19032do eval test x\${$as_var+set} = xset \
19033  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19034done
19035PS1='$ '
19036PS2='> '
19037PS4='+ '
19038
19039# NLS nuisances.
19040LC_ALL=C
19041export LC_ALL
19042LANGUAGE=C
19043export LANGUAGE
19044
19045# CDPATH.
19046(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19047
19048
19049# as_fn_error STATUS ERROR [LINENO LOG_FD]
19050# ----------------------------------------
19051# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19052# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19053# script with STATUS, using 1 if that was 0.
19054as_fn_error ()
19055{
19056  as_status=$1; test $as_status -eq 0 && as_status=1
19057  if test "$4"; then
19058    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19059    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19060  fi
19061  $as_echo "$as_me: error: $2" >&2
19062  as_fn_exit $as_status
19063} # as_fn_error
19064
19065
19066# as_fn_set_status STATUS
19067# -----------------------
19068# Set $? to STATUS, without forking.
19069as_fn_set_status ()
19070{
19071  return $1
19072} # as_fn_set_status
19073
19074# as_fn_exit STATUS
19075# -----------------
19076# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19077as_fn_exit ()
19078{
19079  set +e
19080  as_fn_set_status $1
19081  exit $1
19082} # as_fn_exit
19083
19084# as_fn_unset VAR
19085# ---------------
19086# Portably unset VAR.
19087as_fn_unset ()
19088{
19089  { eval $1=; unset $1;}
19090}
19091as_unset=as_fn_unset
19092# as_fn_append VAR VALUE
19093# ----------------------
19094# Append the text in VALUE to the end of the definition contained in VAR. Take
19095# advantage of any shell optimizations that allow amortized linear growth over
19096# repeated appends, instead of the typical quadratic growth present in naive
19097# implementations.
19098if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19099  eval 'as_fn_append ()
19100  {
19101    eval $1+=\$2
19102  }'
19103else
19104  as_fn_append ()
19105  {
19106    eval $1=\$$1\$2
19107  }
19108fi # as_fn_append
19109
19110# as_fn_arith ARG...
19111# ------------------
19112# Perform arithmetic evaluation on the ARGs, and store the result in the
19113# global $as_val. Take advantage of shells that can avoid forks. The arguments
19114# must be portable across $(()) and expr.
19115if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19116  eval 'as_fn_arith ()
19117  {
19118    as_val=$(( $* ))
19119  }'
19120else
19121  as_fn_arith ()
19122  {
19123    as_val=`expr "$@" || test $? -eq 1`
19124  }
19125fi # as_fn_arith
19126
19127
19128if expr a : '\(a\)' >/dev/null 2>&1 &&
19129   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19130  as_expr=expr
19131else
19132  as_expr=false
19133fi
19134
19135if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19136  as_basename=basename
19137else
19138  as_basename=false
19139fi
19140
19141if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19142  as_dirname=dirname
19143else
19144  as_dirname=false
19145fi
19146
19147as_me=`$as_basename -- "$0" ||
19148$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19149	 X"$0" : 'X\(//\)$' \| \
19150	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19151$as_echo X/"$0" |
19152    sed '/^.*\/\([^/][^/]*\)\/*$/{
19153	    s//\1/
19154	    q
19155	  }
19156	  /^X\/\(\/\/\)$/{
19157	    s//\1/
19158	    q
19159	  }
19160	  /^X\/\(\/\).*/{
19161	    s//\1/
19162	    q
19163	  }
19164	  s/.*/./; q'`
19165
19166# Avoid depending upon Character Ranges.
19167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19170as_cr_digits='0123456789'
19171as_cr_alnum=$as_cr_Letters$as_cr_digits
19172
19173ECHO_C= ECHO_N= ECHO_T=
19174case `echo -n x` in #(((((
19175-n*)
19176  case `echo 'xy\c'` in
19177  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19178  xy)  ECHO_C='\c';;
19179  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19180       ECHO_T='	';;
19181  esac;;
19182*)
19183  ECHO_N='-n';;
19184esac
19185
19186rm -f conf$$ conf$$.exe conf$$.file
19187if test -d conf$$.dir; then
19188  rm -f conf$$.dir/conf$$.file
19189else
19190  rm -f conf$$.dir
19191  mkdir conf$$.dir 2>/dev/null
19192fi
19193if (echo >conf$$.file) 2>/dev/null; then
19194  if ln -s conf$$.file conf$$ 2>/dev/null; then
19195    as_ln_s='ln -s'
19196    # ... but there are two gotchas:
19197    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19198    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19199    # In both cases, we have to default to `cp -pR'.
19200    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19201      as_ln_s='cp -pR'
19202  elif ln conf$$.file conf$$ 2>/dev/null; then
19203    as_ln_s=ln
19204  else
19205    as_ln_s='cp -pR'
19206  fi
19207else
19208  as_ln_s='cp -pR'
19209fi
19210rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19211rmdir conf$$.dir 2>/dev/null
19212
19213
19214# as_fn_mkdir_p
19215# -------------
19216# Create "$as_dir" as a directory, including parents if necessary.
19217as_fn_mkdir_p ()
19218{
19219
19220  case $as_dir in #(
19221  -*) as_dir=./$as_dir;;
19222  esac
19223  test -d "$as_dir" || eval $as_mkdir_p || {
19224    as_dirs=
19225    while :; do
19226      case $as_dir in #(
19227      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19228      *) as_qdir=$as_dir;;
19229      esac
19230      as_dirs="'$as_qdir' $as_dirs"
19231      as_dir=`$as_dirname -- "$as_dir" ||
19232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19233	 X"$as_dir" : 'X\(//\)[^/]' \| \
19234	 X"$as_dir" : 'X\(//\)$' \| \
19235	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19236$as_echo X"$as_dir" |
19237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19238	    s//\1/
19239	    q
19240	  }
19241	  /^X\(\/\/\)[^/].*/{
19242	    s//\1/
19243	    q
19244	  }
19245	  /^X\(\/\/\)$/{
19246	    s//\1/
19247	    q
19248	  }
19249	  /^X\(\/\).*/{
19250	    s//\1/
19251	    q
19252	  }
19253	  s/.*/./; q'`
19254      test -d "$as_dir" && break
19255    done
19256    test -z "$as_dirs" || eval "mkdir $as_dirs"
19257  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19258
19259
19260} # as_fn_mkdir_p
19261if mkdir -p . 2>/dev/null; then
19262  as_mkdir_p='mkdir -p "$as_dir"'
19263else
19264  test -d ./-p && rmdir ./-p
19265  as_mkdir_p=false
19266fi
19267
19268
19269# as_fn_executable_p FILE
19270# -----------------------
19271# Test if FILE is an executable regular file.
19272as_fn_executable_p ()
19273{
19274  test -f "$1" && test -x "$1"
19275} # as_fn_executable_p
19276as_test_x='test -x'
19277as_executable_p=as_fn_executable_p
19278
19279# Sed expression to map a string onto a valid CPP name.
19280as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19281
19282# Sed expression to map a string onto a valid variable name.
19283as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19284
19285
19286exec 6>&1
19287## ----------------------------------- ##
19288## Main body of $CONFIG_STATUS script. ##
19289## ----------------------------------- ##
19290_ASEOF
19291test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19292
19293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19294# Save the log message, to keep $0 and so on meaningful, and to
19295# report actual input values of CONFIG_FILES etc. instead of their
19296# values after options handling.
19297ac_log="
19298This file was extended by p11-kit $as_me 0.24.0, which was
19299generated by GNU Autoconf 2.69.  Invocation command line was
19300
19301  CONFIG_FILES    = $CONFIG_FILES
19302  CONFIG_HEADERS  = $CONFIG_HEADERS
19303  CONFIG_LINKS    = $CONFIG_LINKS
19304  CONFIG_COMMANDS = $CONFIG_COMMANDS
19305  $ $0 $@
19306
19307on `(hostname || uname -n) 2>/dev/null | sed 1q`
19308"
19309
19310_ACEOF
19311
19312case $ac_config_files in *"
19313"*) set x $ac_config_files; shift; ac_config_files=$*;;
19314esac
19315
19316case $ac_config_headers in *"
19317"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19318esac
19319
19320
19321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19322# Files that config.status was made for.
19323config_files="$ac_config_files"
19324config_headers="$ac_config_headers"
19325config_commands="$ac_config_commands"
19326
19327_ACEOF
19328
19329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19330ac_cs_usage="\
19331\`$as_me' instantiates files and other configuration actions
19332from templates according to the current configuration.  Unless the files
19333and actions are specified as TAGs, all are instantiated by default.
19334
19335Usage: $0 [OPTION]... [TAG]...
19336
19337  -h, --help       print this help, then exit
19338  -V, --version    print version number and configuration settings, then exit
19339      --config     print configuration, then exit
19340  -q, --quiet, --silent
19341                   do not print progress messages
19342  -d, --debug      don't remove temporary files
19343      --recheck    update $as_me by reconfiguring in the same conditions
19344      --file=FILE[:TEMPLATE]
19345                   instantiate the configuration file FILE
19346      --header=FILE[:TEMPLATE]
19347                   instantiate the configuration header FILE
19348
19349Configuration files:
19350$config_files
19351
19352Configuration headers:
19353$config_headers
19354
19355Configuration commands:
19356$config_commands
19357
19358Report bugs to <https://github.com/p11-glue/p11-kit/issues>.
19359p11-kit home page: <https://p11-glue.github.io/p11-glue/p11-kit.html>."
19360
19361_ACEOF
19362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19363ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19364ac_cs_version="\\
19365p11-kit config.status 0.24.0
19366configured by $0, generated by GNU Autoconf 2.69,
19367  with options \\"\$ac_cs_config\\"
19368
19369Copyright (C) 2012 Free Software Foundation, Inc.
19370This config.status script is free software; the Free Software Foundation
19371gives unlimited permission to copy, distribute and modify it."
19372
19373ac_pwd='$ac_pwd'
19374srcdir='$srcdir'
19375INSTALL='$INSTALL'
19376MKDIR_P='$MKDIR_P'
19377AWK='$AWK'
19378test -n "\$AWK" || AWK=awk
19379_ACEOF
19380
19381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19382# The default lists apply if the user does not specify any file.
19383ac_need_defaults=:
19384while test $# != 0
19385do
19386  case $1 in
19387  --*=?*)
19388    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19389    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19390    ac_shift=:
19391    ;;
19392  --*=)
19393    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19394    ac_optarg=
19395    ac_shift=:
19396    ;;
19397  *)
19398    ac_option=$1
19399    ac_optarg=$2
19400    ac_shift=shift
19401    ;;
19402  esac
19403
19404  case $ac_option in
19405  # Handling of the options.
19406  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19407    ac_cs_recheck=: ;;
19408  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19409    $as_echo "$ac_cs_version"; exit ;;
19410  --config | --confi | --conf | --con | --co | --c )
19411    $as_echo "$ac_cs_config"; exit ;;
19412  --debug | --debu | --deb | --de | --d | -d )
19413    debug=: ;;
19414  --file | --fil | --fi | --f )
19415    $ac_shift
19416    case $ac_optarg in
19417    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19418    '') as_fn_error $? "missing file argument" ;;
19419    esac
19420    as_fn_append CONFIG_FILES " '$ac_optarg'"
19421    ac_need_defaults=false;;
19422  --header | --heade | --head | --hea )
19423    $ac_shift
19424    case $ac_optarg in
19425    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19426    esac
19427    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19428    ac_need_defaults=false;;
19429  --he | --h)
19430    # Conflict between --help and --header
19431    as_fn_error $? "ambiguous option: \`$1'
19432Try \`$0 --help' for more information.";;
19433  --help | --hel | -h )
19434    $as_echo "$ac_cs_usage"; exit ;;
19435  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19436  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19437    ac_cs_silent=: ;;
19438
19439  # This is an error.
19440  -*) as_fn_error $? "unrecognized option: \`$1'
19441Try \`$0 --help' for more information." ;;
19442
19443  *) as_fn_append ac_config_targets " $1"
19444     ac_need_defaults=false ;;
19445
19446  esac
19447  shift
19448done
19449
19450ac_configure_extra_args=
19451
19452if $ac_cs_silent; then
19453  exec 6>/dev/null
19454  ac_configure_extra_args="$ac_configure_extra_args --silent"
19455fi
19456
19457_ACEOF
19458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19459if \$ac_cs_recheck; then
19460  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19461  shift
19462  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19463  CONFIG_SHELL='$SHELL'
19464  export CONFIG_SHELL
19465  exec "\$@"
19466fi
19467
19468_ACEOF
19469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19470exec 5>>config.log
19471{
19472  echo
19473  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19474## Running $as_me. ##
19475_ASBOX
19476  $as_echo "$ac_log"
19477} >&5
19478
19479_ACEOF
19480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19481#
19482# INIT-COMMANDS
19483#
19484AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19485
19486
19487# The HP-UX ksh and POSIX shell print the target directory to stdout
19488# if CDPATH is set.
19489(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19490
19491sed_quote_subst='$sed_quote_subst'
19492double_quote_subst='$double_quote_subst'
19493delay_variable_subst='$delay_variable_subst'
19494macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19495macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19496enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19497enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19498pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19499enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19500shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19501SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19502ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19503PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19504host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19505host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19506host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19507build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19508build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19509build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19510SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19511Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19512GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19513EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19514FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19515LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19516NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19517LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19518max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19519ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19520exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19521lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19522lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19523lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19524lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19525lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19526reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19527reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19528OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19529deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19530file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19531file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19532want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19533DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19534sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19535AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19536AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19537archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19538STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19539RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19540old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19541old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19542old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19543lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19544CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19545CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19546compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19547GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19548lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19549lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19550lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19551lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19552lt_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"`'
19553lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19554nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19555lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19556lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19557objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19558MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19559lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19560lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19561lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19562lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19563lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19564need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19565MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19566DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19567NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19568LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19569OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19570OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19571libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19572shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19573extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19574archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19575enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19576export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19577whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19578compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19579old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19580old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19581archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19582archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19583module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19584module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19585with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19586allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19587no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19588hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19589hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19590hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19591hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19592hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19593hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19594hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19595inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19596link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19597always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19598export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19599exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19600include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19601prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19602postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19603file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19604variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19605need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19606need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19607version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19608runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19609shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19610shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19611libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19612library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19613soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19614install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19615postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19616postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19617finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19618finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19619hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19620sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19621configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19622configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19623hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19624enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19625enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19626enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19627old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19628striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19629
19630LTCC='$LTCC'
19631LTCFLAGS='$LTCFLAGS'
19632compiler='$compiler_DEFAULT'
19633
19634# A function that is used when there is no print builtin or printf.
19635func_fallback_echo ()
19636{
19637  eval 'cat <<_LTECHO_EOF
19638\$1
19639_LTECHO_EOF'
19640}
19641
19642# Quote evaled strings.
19643for var in SHELL \
19644ECHO \
19645PATH_SEPARATOR \
19646SED \
19647GREP \
19648EGREP \
19649FGREP \
19650LD \
19651NM \
19652LN_S \
19653lt_SP2NL \
19654lt_NL2SP \
19655reload_flag \
19656OBJDUMP \
19657deplibs_check_method \
19658file_magic_cmd \
19659file_magic_glob \
19660want_nocaseglob \
19661DLLTOOL \
19662sharedlib_from_linklib_cmd \
19663AR \
19664AR_FLAGS \
19665archiver_list_spec \
19666STRIP \
19667RANLIB \
19668CC \
19669CFLAGS \
19670compiler \
19671lt_cv_sys_global_symbol_pipe \
19672lt_cv_sys_global_symbol_to_cdecl \
19673lt_cv_sys_global_symbol_to_import \
19674lt_cv_sys_global_symbol_to_c_name_address \
19675lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19676lt_cv_nm_interface \
19677nm_file_list_spec \
19678lt_cv_truncate_bin \
19679lt_prog_compiler_no_builtin_flag \
19680lt_prog_compiler_pic \
19681lt_prog_compiler_wl \
19682lt_prog_compiler_static \
19683lt_cv_prog_compiler_c_o \
19684need_locks \
19685MANIFEST_TOOL \
19686DSYMUTIL \
19687NMEDIT \
19688LIPO \
19689OTOOL \
19690OTOOL64 \
19691shrext_cmds \
19692export_dynamic_flag_spec \
19693whole_archive_flag_spec \
19694compiler_needs_object \
19695with_gnu_ld \
19696allow_undefined_flag \
19697no_undefined_flag \
19698hardcode_libdir_flag_spec \
19699hardcode_libdir_separator \
19700exclude_expsyms \
19701include_expsyms \
19702file_list_spec \
19703variables_saved_for_relink \
19704libname_spec \
19705library_names_spec \
19706soname_spec \
19707install_override_mode \
19708finish_eval \
19709old_striplib \
19710striplib; do
19711    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19712    *[\\\\\\\`\\"\\\$]*)
19713      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19714      ;;
19715    *)
19716      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19717      ;;
19718    esac
19719done
19720
19721# Double-quote double-evaled strings.
19722for var in reload_cmds \
19723old_postinstall_cmds \
19724old_postuninstall_cmds \
19725old_archive_cmds \
19726extract_expsyms_cmds \
19727old_archive_from_new_cmds \
19728old_archive_from_expsyms_cmds \
19729archive_cmds \
19730archive_expsym_cmds \
19731module_cmds \
19732module_expsym_cmds \
19733export_symbols_cmds \
19734prelink_cmds \
19735postlink_cmds \
19736postinstall_cmds \
19737postuninstall_cmds \
19738finish_cmds \
19739sys_lib_search_path_spec \
19740configure_time_dlsearch_path \
19741configure_time_lt_sys_library_path; do
19742    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19743    *[\\\\\\\`\\"\\\$]*)
19744      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19745      ;;
19746    *)
19747      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19748      ;;
19749    esac
19750done
19751
19752ac_aux_dir='$ac_aux_dir'
19753
19754# See if we are running on zsh, and set the options that allow our
19755# commands through without removal of \ escapes INIT.
19756if test -n "\${ZSH_VERSION+set}"; then
19757   setopt NO_GLOB_SUBST
19758fi
19759
19760
19761    PACKAGE='$PACKAGE'
19762    VERSION='$VERSION'
19763    RM='$RM'
19764    ofile='$ofile'
19765
19766
19767
19768# Capture the value of obsolete ALL_LINGUAS because we need it to compute
19769    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
19770    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
19771    # Capture the value of LINGUAS because we need it to compute CATALOGS.
19772    LINGUAS="${LINGUAS-%UNSET%}"
19773
19774
19775_ACEOF
19776
19777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19778
19779# Handling of arguments.
19780for ac_config_target in $ac_config_targets
19781do
19782  case $ac_config_target in
19783    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19784    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19785    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19786    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19787    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19788    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19789    "doc/manual/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manual/Makefile" ;;
19790    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19791    "p11-kit/p11-kit-1.pc") CONFIG_FILES="$CONFIG_FILES p11-kit/p11-kit-1.pc" ;;
19792    "p11-kit/pkcs11.conf.example") CONFIG_FILES="$CONFIG_FILES p11-kit/pkcs11.conf.example" ;;
19793    "trust/test-init.sh") CONFIG_FILES="$CONFIG_FILES trust/test-init.sh" ;;
19794
19795  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19796  esac
19797done
19798
19799
19800# If the user did not use the arguments to specify the items to instantiate,
19801# then the envvar interface is used.  Set only those that are not.
19802# We use the long form for the default assignment because of an extremely
19803# bizarre bug on SunOS 4.1.3.
19804if $ac_need_defaults; then
19805  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19806  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19807  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19808fi
19809
19810# Have a temporary directory for convenience.  Make it in the build tree
19811# simply because there is no reason against having it here, and in addition,
19812# creating and moving files from /tmp can sometimes cause problems.
19813# Hook for its removal unless debugging.
19814# Note that there is a small window in which the directory will not be cleaned:
19815# after its creation but before its name has been assigned to `$tmp'.
19816$debug ||
19817{
19818  tmp= ac_tmp=
19819  trap 'exit_status=$?
19820  : "${ac_tmp:=$tmp}"
19821  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19822' 0
19823  trap 'as_fn_exit 1' 1 2 13 15
19824}
19825# Create a (secure) tmp directory for tmp files.
19826
19827{
19828  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19829  test -d "$tmp"
19830}  ||
19831{
19832  tmp=./conf$$-$RANDOM
19833  (umask 077 && mkdir "$tmp")
19834} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19835ac_tmp=$tmp
19836
19837# Set up the scripts for CONFIG_FILES section.
19838# No need to generate them if there are no CONFIG_FILES.
19839# This happens for instance with `./config.status config.h'.
19840if test -n "$CONFIG_FILES"; then
19841
19842
19843ac_cr=`echo X | tr X '\015'`
19844# On cygwin, bash can eat \r inside `` if the user requested igncr.
19845# But we know of no other shell where ac_cr would be empty at this
19846# point, so we can use a bashism as a fallback.
19847if test "x$ac_cr" = x; then
19848  eval ac_cr=\$\'\\r\'
19849fi
19850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19852  ac_cs_awk_cr='\\r'
19853else
19854  ac_cs_awk_cr=$ac_cr
19855fi
19856
19857echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19858_ACEOF
19859
19860
19861{
19862  echo "cat >conf$$subs.awk <<_ACEOF" &&
19863  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19864  echo "_ACEOF"
19865} >conf$$subs.sh ||
19866  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19867ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19868ac_delim='%!_!# '
19869for ac_last_try in false false false false false :; do
19870  . ./conf$$subs.sh ||
19871    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19872
19873  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19874  if test $ac_delim_n = $ac_delim_num; then
19875    break
19876  elif $ac_last_try; then
19877    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19878  else
19879    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19880  fi
19881done
19882rm -f conf$$subs.sh
19883
19884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19885cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19886_ACEOF
19887sed -n '
19888h
19889s/^/S["/; s/!.*/"]=/
19890p
19891g
19892s/^[^!]*!//
19893:repl
19894t repl
19895s/'"$ac_delim"'$//
19896t delim
19897:nl
19898h
19899s/\(.\{148\}\)..*/\1/
19900t more1
19901s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19902p
19903n
19904b repl
19905:more1
19906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19907p
19908g
19909s/.\{148\}//
19910t nl
19911:delim
19912h
19913s/\(.\{148\}\)..*/\1/
19914t more2
19915s/["\\]/\\&/g; s/^/"/; s/$/"/
19916p
19917b
19918:more2
19919s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19920p
19921g
19922s/.\{148\}//
19923t delim
19924' <conf$$subs.awk | sed '
19925/^[^""]/{
19926  N
19927  s/\n//
19928}
19929' >>$CONFIG_STATUS || ac_write_fail=1
19930rm -f conf$$subs.awk
19931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19932_ACAWK
19933cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19934  for (key in S) S_is_set[key] = 1
19935  FS = ""
19936
19937}
19938{
19939  line = $ 0
19940  nfields = split(line, field, "@")
19941  substed = 0
19942  len = length(field[1])
19943  for (i = 2; i < nfields; i++) {
19944    key = field[i]
19945    keylen = length(key)
19946    if (S_is_set[key]) {
19947      value = S[key]
19948      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19949      len += length(value) + length(field[++i])
19950      substed = 1
19951    } else
19952      len += 1 + keylen
19953  }
19954
19955  print line
19956}
19957
19958_ACAWK
19959_ACEOF
19960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19961if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19962  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19963else
19964  cat
19965fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19966  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19967_ACEOF
19968
19969# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19970# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19971# trailing colons and then remove the whole line if VPATH becomes empty
19972# (actually we leave an empty line to preserve line numbers).
19973if test "x$srcdir" = x.; then
19974  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19975h
19976s///
19977s/^/:/
19978s/[	 ]*$/:/
19979s/:\$(srcdir):/:/g
19980s/:\${srcdir}:/:/g
19981s/:@srcdir@:/:/g
19982s/^:*//
19983s/:*$//
19984x
19985s/\(=[	 ]*\).*/\1/
19986G
19987s/\n//
19988s/^[^=]*=[	 ]*$//
19989}'
19990fi
19991
19992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19993fi # test -n "$CONFIG_FILES"
19994
19995# Set up the scripts for CONFIG_HEADERS section.
19996# No need to generate them if there are no CONFIG_HEADERS.
19997# This happens for instance with `./config.status Makefile'.
19998if test -n "$CONFIG_HEADERS"; then
19999cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20000BEGIN {
20001_ACEOF
20002
20003# Transform confdefs.h into an awk script `defines.awk', embedded as
20004# here-document in config.status, that substitutes the proper values into
20005# config.h.in to produce config.h.
20006
20007# Create a delimiter string that does not exist in confdefs.h, to ease
20008# handling of long lines.
20009ac_delim='%!_!# '
20010for ac_last_try in false false :; do
20011  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20012  if test -z "$ac_tt"; then
20013    break
20014  elif $ac_last_try; then
20015    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20016  else
20017    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20018  fi
20019done
20020
20021# For the awk script, D is an array of macro values keyed by name,
20022# likewise P contains macro parameters if any.  Preserve backslash
20023# newline sequences.
20024
20025ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20026sed -n '
20027s/.\{148\}/&'"$ac_delim"'/g
20028t rset
20029:rset
20030s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20031t def
20032d
20033:def
20034s/\\$//
20035t bsnl
20036s/["\\]/\\&/g
20037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20038D["\1"]=" \3"/p
20039s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20040d
20041:bsnl
20042s/["\\]/\\&/g
20043s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20044D["\1"]=" \3\\\\\\n"\\/p
20045t cont
20046s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20047t cont
20048d
20049:cont
20050n
20051s/.\{148\}/&'"$ac_delim"'/g
20052t clear
20053:clear
20054s/\\$//
20055t bsnlc
20056s/["\\]/\\&/g; s/^/"/; s/$/"/p
20057d
20058:bsnlc
20059s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20060b cont
20061' <confdefs.h | sed '
20062s/'"$ac_delim"'/"\\\
20063"/g' >>$CONFIG_STATUS || ac_write_fail=1
20064
20065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20066  for (key in D) D_is_set[key] = 1
20067  FS = ""
20068}
20069/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20070  line = \$ 0
20071  split(line, arg, " ")
20072  if (arg[1] == "#") {
20073    defundef = arg[2]
20074    mac1 = arg[3]
20075  } else {
20076    defundef = substr(arg[1], 2)
20077    mac1 = arg[2]
20078  }
20079  split(mac1, mac2, "(") #)
20080  macro = mac2[1]
20081  prefix = substr(line, 1, index(line, defundef) - 1)
20082  if (D_is_set[macro]) {
20083    # Preserve the white space surrounding the "#".
20084    print prefix "define", macro P[macro] D[macro]
20085    next
20086  } else {
20087    # Replace #undef with comments.  This is necessary, for example,
20088    # in the case of _POSIX_SOURCE, which is predefined and required
20089    # on some systems where configure will not decide to define it.
20090    if (defundef == "undef") {
20091      print "/*", prefix defundef, macro, "*/"
20092      next
20093    }
20094  }
20095}
20096{ print }
20097_ACAWK
20098_ACEOF
20099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20100  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20101fi # test -n "$CONFIG_HEADERS"
20102
20103
20104eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20105shift
20106for ac_tag
20107do
20108  case $ac_tag in
20109  :[FHLC]) ac_mode=$ac_tag; continue;;
20110  esac
20111  case $ac_mode$ac_tag in
20112  :[FHL]*:*);;
20113  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20114  :[FH]-) ac_tag=-:-;;
20115  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20116  esac
20117  ac_save_IFS=$IFS
20118  IFS=:
20119  set x $ac_tag
20120  IFS=$ac_save_IFS
20121  shift
20122  ac_file=$1
20123  shift
20124
20125  case $ac_mode in
20126  :L) ac_source=$1;;
20127  :[FH])
20128    ac_file_inputs=
20129    for ac_f
20130    do
20131      case $ac_f in
20132      -) ac_f="$ac_tmp/stdin";;
20133      *) # Look for the file first in the build tree, then in the source tree
20134	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20135	 # because $ac_f cannot contain `:'.
20136	 test -f "$ac_f" ||
20137	   case $ac_f in
20138	   [\\/$]*) false;;
20139	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20140	   esac ||
20141	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20142      esac
20143      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20144      as_fn_append ac_file_inputs " '$ac_f'"
20145    done
20146
20147    # Let's still pretend it is `configure' which instantiates (i.e., don't
20148    # use $as_me), people would be surprised to read:
20149    #    /* config.h.  Generated by config.status.  */
20150    configure_input='Generated from '`
20151	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20152	`' by configure.'
20153    if test x"$ac_file" != x-; then
20154      configure_input="$ac_file.  $configure_input"
20155      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20156$as_echo "$as_me: creating $ac_file" >&6;}
20157    fi
20158    # Neutralize special characters interpreted by sed in replacement strings.
20159    case $configure_input in #(
20160    *\&* | *\|* | *\\* )
20161       ac_sed_conf_input=`$as_echo "$configure_input" |
20162       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20163    *) ac_sed_conf_input=$configure_input;;
20164    esac
20165
20166    case $ac_tag in
20167    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20168      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20169    esac
20170    ;;
20171  esac
20172
20173  ac_dir=`$as_dirname -- "$ac_file" ||
20174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20175	 X"$ac_file" : 'X\(//\)[^/]' \| \
20176	 X"$ac_file" : 'X\(//\)$' \| \
20177	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20178$as_echo X"$ac_file" |
20179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20180	    s//\1/
20181	    q
20182	  }
20183	  /^X\(\/\/\)[^/].*/{
20184	    s//\1/
20185	    q
20186	  }
20187	  /^X\(\/\/\)$/{
20188	    s//\1/
20189	    q
20190	  }
20191	  /^X\(\/\).*/{
20192	    s//\1/
20193	    q
20194	  }
20195	  s/.*/./; q'`
20196  as_dir="$ac_dir"; as_fn_mkdir_p
20197  ac_builddir=.
20198
20199case "$ac_dir" in
20200.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20201*)
20202  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20203  # A ".." for each directory in $ac_dir_suffix.
20204  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20205  case $ac_top_builddir_sub in
20206  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20207  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20208  esac ;;
20209esac
20210ac_abs_top_builddir=$ac_pwd
20211ac_abs_builddir=$ac_pwd$ac_dir_suffix
20212# for backward compatibility:
20213ac_top_builddir=$ac_top_build_prefix
20214
20215case $srcdir in
20216  .)  # We are building in place.
20217    ac_srcdir=.
20218    ac_top_srcdir=$ac_top_builddir_sub
20219    ac_abs_top_srcdir=$ac_pwd ;;
20220  [\\/]* | ?:[\\/]* )  # Absolute name.
20221    ac_srcdir=$srcdir$ac_dir_suffix;
20222    ac_top_srcdir=$srcdir
20223    ac_abs_top_srcdir=$srcdir ;;
20224  *) # Relative name.
20225    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20226    ac_top_srcdir=$ac_top_build_prefix$srcdir
20227    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20228esac
20229ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20230
20231
20232  case $ac_mode in
20233  :F)
20234  #
20235  # CONFIG_FILE
20236  #
20237
20238  case $INSTALL in
20239  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20240  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20241  esac
20242  ac_MKDIR_P=$MKDIR_P
20243  case $MKDIR_P in
20244  [\\/$]* | ?:[\\/]* ) ;;
20245  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20246  esac
20247_ACEOF
20248
20249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20250# If the template does not know about datarootdir, expand it.
20251# FIXME: This hack should be removed a few years after 2.60.
20252ac_datarootdir_hack=; ac_datarootdir_seen=
20253ac_sed_dataroot='
20254/datarootdir/ {
20255  p
20256  q
20257}
20258/@datadir@/p
20259/@docdir@/p
20260/@infodir@/p
20261/@localedir@/p
20262/@mandir@/p'
20263case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20264*datarootdir*) ac_datarootdir_seen=yes;;
20265*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20266  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20267$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20268_ACEOF
20269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270  ac_datarootdir_hack='
20271  s&@datadir@&$datadir&g
20272  s&@docdir@&$docdir&g
20273  s&@infodir@&$infodir&g
20274  s&@localedir@&$localedir&g
20275  s&@mandir@&$mandir&g
20276  s&\\\${datarootdir}&$datarootdir&g' ;;
20277esac
20278_ACEOF
20279
20280# Neutralize VPATH when `$srcdir' = `.'.
20281# Shell code in configure.ac might set extrasub.
20282# FIXME: do we really want to maintain this feature?
20283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284ac_sed_extra="$ac_vpsub
20285$extrasub
20286_ACEOF
20287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20288:t
20289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20290s|@configure_input@|$ac_sed_conf_input|;t t
20291s&@top_builddir@&$ac_top_builddir_sub&;t t
20292s&@top_build_prefix@&$ac_top_build_prefix&;t t
20293s&@srcdir@&$ac_srcdir&;t t
20294s&@abs_srcdir@&$ac_abs_srcdir&;t t
20295s&@top_srcdir@&$ac_top_srcdir&;t t
20296s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20297s&@builddir@&$ac_builddir&;t t
20298s&@abs_builddir@&$ac_abs_builddir&;t t
20299s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20300s&@INSTALL@&$ac_INSTALL&;t t
20301s&@MKDIR_P@&$ac_MKDIR_P&;t t
20302$ac_datarootdir_hack
20303"
20304eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20305  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20306
20307test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20308  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20309  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20310      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20312which seems to be undefined.  Please make sure it is defined" >&5
20313$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20314which seems to be undefined.  Please make sure it is defined" >&2;}
20315
20316  rm -f "$ac_tmp/stdin"
20317  case $ac_file in
20318  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20319  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20320  esac \
20321  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20322 ;;
20323  :H)
20324  #
20325  # CONFIG_HEADER
20326  #
20327  if test x"$ac_file" != x-; then
20328    {
20329      $as_echo "/* $configure_input  */" \
20330      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20331    } >"$ac_tmp/config.h" \
20332      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20333    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20334      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20335$as_echo "$as_me: $ac_file is unchanged" >&6;}
20336    else
20337      rm -f "$ac_file"
20338      mv "$ac_tmp/config.h" "$ac_file" \
20339	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20340    fi
20341  else
20342    $as_echo "/* $configure_input  */" \
20343      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20344      || as_fn_error $? "could not create -" "$LINENO" 5
20345  fi
20346# Compute "$ac_file"'s index in $config_headers.
20347_am_arg="$ac_file"
20348_am_stamp_count=1
20349for _am_header in $config_headers :; do
20350  case $_am_header in
20351    $_am_arg | $_am_arg:* )
20352      break ;;
20353    * )
20354      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20355  esac
20356done
20357echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20358$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20359	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20360	 X"$_am_arg" : 'X\(//\)$' \| \
20361	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20362$as_echo X"$_am_arg" |
20363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20364	    s//\1/
20365	    q
20366	  }
20367	  /^X\(\/\/\)[^/].*/{
20368	    s//\1/
20369	    q
20370	  }
20371	  /^X\(\/\/\)$/{
20372	    s//\1/
20373	    q
20374	  }
20375	  /^X\(\/\).*/{
20376	    s//\1/
20377	    q
20378	  }
20379	  s/.*/./; q'`/stamp-h$_am_stamp_count
20380 ;;
20381
20382  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20383$as_echo "$as_me: executing $ac_file commands" >&6;}
20384 ;;
20385  esac
20386
20387
20388  case $ac_file$ac_mode in
20389    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20390  # Older Autoconf quotes --file arguments for eval, but not when files
20391  # are listed without --file.  Let's play safe and only enable the eval
20392  # if we detect the quoting.
20393  # TODO: see whether this extra hack can be removed once we start
20394  # requiring Autoconf 2.70 or later.
20395  case $CONFIG_FILES in #(
20396  *\'*) :
20397    eval set x "$CONFIG_FILES" ;; #(
20398  *) :
20399    set x $CONFIG_FILES ;; #(
20400  *) :
20401     ;;
20402esac
20403  shift
20404  # Used to flag and report bootstrapping failures.
20405  am_rc=0
20406  for am_mf
20407  do
20408    # Strip MF so we end up with the name of the file.
20409    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20410    # Check whether this is an Automake generated Makefile which includes
20411    # dependency-tracking related rules and includes.
20412    # Grep'ing the whole file directly is not great: AIX grep has a line
20413    # limit of 2048, but all sed's we know have understand at least 4000.
20414    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20415      || continue
20416    am_dirpart=`$as_dirname -- "$am_mf" ||
20417$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20418	 X"$am_mf" : 'X\(//\)[^/]' \| \
20419	 X"$am_mf" : 'X\(//\)$' \| \
20420	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20421$as_echo X"$am_mf" |
20422    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20423	    s//\1/
20424	    q
20425	  }
20426	  /^X\(\/\/\)[^/].*/{
20427	    s//\1/
20428	    q
20429	  }
20430	  /^X\(\/\/\)$/{
20431	    s//\1/
20432	    q
20433	  }
20434	  /^X\(\/\).*/{
20435	    s//\1/
20436	    q
20437	  }
20438	  s/.*/./; q'`
20439    am_filepart=`$as_basename -- "$am_mf" ||
20440$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20441	 X"$am_mf" : 'X\(//\)$' \| \
20442	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20443$as_echo X/"$am_mf" |
20444    sed '/^.*\/\([^/][^/]*\)\/*$/{
20445	    s//\1/
20446	    q
20447	  }
20448	  /^X\/\(\/\/\)$/{
20449	    s//\1/
20450	    q
20451	  }
20452	  /^X\/\(\/\).*/{
20453	    s//\1/
20454	    q
20455	  }
20456	  s/.*/./; q'`
20457    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20458      && sed -e '/# am--include-marker/d' "$am_filepart" \
20459        | $MAKE -f - am--depfiles" >&5
20460   (cd "$am_dirpart" \
20461      && sed -e '/# am--include-marker/d' "$am_filepart" \
20462        | $MAKE -f - am--depfiles) >&5 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } || am_rc=$?
20466  done
20467  if test $am_rc -ne 0; then
20468    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20470as_fn_error $? "Something went wrong bootstrapping makefile fragments
20471    for automatic dependency tracking.  If GNU make was not used, consider
20472    re-running the configure script with MAKE=\"gmake\" (or whatever is
20473    necessary).  You can also try re-running configure with the
20474    '--disable-dependency-tracking' option to at least be able to build
20475    the package (albeit without support for automatic dependency tracking).
20476See \`config.log' for more details" "$LINENO" 5; }
20477  fi
20478  { am_dirpart=; unset am_dirpart;}
20479  { am_filepart=; unset am_filepart;}
20480  { am_mf=; unset am_mf;}
20481  { am_rc=; unset am_rc;}
20482  rm -f conftest-deps.mk
20483}
20484 ;;
20485    "libtool":C)
20486
20487    # See if we are running on zsh, and set the options that allow our
20488    # commands through without removal of \ escapes.
20489    if test -n "${ZSH_VERSION+set}"; then
20490      setopt NO_GLOB_SUBST
20491    fi
20492
20493    cfgfile=${ofile}T
20494    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20495    $RM "$cfgfile"
20496
20497    cat <<_LT_EOF >> "$cfgfile"
20498#! $SHELL
20499# Generated automatically by $as_me ($PACKAGE) $VERSION
20500# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20501# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20502
20503# Provide generalized library-building support services.
20504# Written by Gordon Matzigkeit, 1996
20505
20506# Copyright (C) 2014 Free Software Foundation, Inc.
20507# This is free software; see the source for copying conditions.  There is NO
20508# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20509
20510# GNU Libtool is free software; you can redistribute it and/or modify
20511# it under the terms of the GNU General Public License as published by
20512# the Free Software Foundation; either version 2 of of the License, or
20513# (at your option) any later version.
20514#
20515# As a special exception to the GNU General Public License, if you
20516# distribute this file as part of a program or library that is built
20517# using GNU Libtool, you may include this file under the  same
20518# distribution terms that you use for the rest of that program.
20519#
20520# GNU Libtool is distributed in the hope that it will be useful, but
20521# WITHOUT ANY WARRANTY; without even the implied warranty of
20522# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20523# GNU General Public License for more details.
20524#
20525# You should have received a copy of the GNU General Public License
20526# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20527
20528
20529# The names of the tagged configurations supported by this script.
20530available_tags=''
20531
20532# Configured defaults for sys_lib_dlsearch_path munging.
20533: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20534
20535# ### BEGIN LIBTOOL CONFIG
20536
20537# Which release of libtool.m4 was used?
20538macro_version=$macro_version
20539macro_revision=$macro_revision
20540
20541# Whether or not to build static libraries.
20542build_old_libs=$enable_static
20543
20544# Whether or not to build shared libraries.
20545build_libtool_libs=$enable_shared
20546
20547# What type of objects to build.
20548pic_mode=$pic_mode
20549
20550# Whether or not to optimize for fast installation.
20551fast_install=$enable_fast_install
20552
20553# Shared archive member basename,for filename based shared library versioning on AIX.
20554shared_archive_member_spec=$shared_archive_member_spec
20555
20556# Shell to use when invoking shell scripts.
20557SHELL=$lt_SHELL
20558
20559# An echo program that protects backslashes.
20560ECHO=$lt_ECHO
20561
20562# The PATH separator for the build system.
20563PATH_SEPARATOR=$lt_PATH_SEPARATOR
20564
20565# The host system.
20566host_alias=$host_alias
20567host=$host
20568host_os=$host_os
20569
20570# The build system.
20571build_alias=$build_alias
20572build=$build
20573build_os=$build_os
20574
20575# A sed program that does not truncate output.
20576SED=$lt_SED
20577
20578# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20579Xsed="\$SED -e 1s/^X//"
20580
20581# A grep program that handles long lines.
20582GREP=$lt_GREP
20583
20584# An ERE matcher.
20585EGREP=$lt_EGREP
20586
20587# A literal string matcher.
20588FGREP=$lt_FGREP
20589
20590# A BSD- or MS-compatible name lister.
20591NM=$lt_NM
20592
20593# Whether we need soft or hard links.
20594LN_S=$lt_LN_S
20595
20596# What is the maximum length of a command?
20597max_cmd_len=$max_cmd_len
20598
20599# Object file suffix (normally "o").
20600objext=$ac_objext
20601
20602# Executable file suffix (normally "").
20603exeext=$exeext
20604
20605# whether the shell understands "unset".
20606lt_unset=$lt_unset
20607
20608# turn spaces into newlines.
20609SP2NL=$lt_lt_SP2NL
20610
20611# turn newlines into spaces.
20612NL2SP=$lt_lt_NL2SP
20613
20614# convert \$build file names to \$host format.
20615to_host_file_cmd=$lt_cv_to_host_file_cmd
20616
20617# convert \$build files to toolchain format.
20618to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20619
20620# An object symbol dumper.
20621OBJDUMP=$lt_OBJDUMP
20622
20623# Method to check whether dependent libraries are shared objects.
20624deplibs_check_method=$lt_deplibs_check_method
20625
20626# Command to use when deplibs_check_method = "file_magic".
20627file_magic_cmd=$lt_file_magic_cmd
20628
20629# How to find potential files when deplibs_check_method = "file_magic".
20630file_magic_glob=$lt_file_magic_glob
20631
20632# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20633want_nocaseglob=$lt_want_nocaseglob
20634
20635# DLL creation program.
20636DLLTOOL=$lt_DLLTOOL
20637
20638# Command to associate shared and link libraries.
20639sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20640
20641# The archiver.
20642AR=$lt_AR
20643
20644# Flags to create an archive.
20645AR_FLAGS=$lt_AR_FLAGS
20646
20647# How to feed a file listing to the archiver.
20648archiver_list_spec=$lt_archiver_list_spec
20649
20650# A symbol stripping program.
20651STRIP=$lt_STRIP
20652
20653# Commands used to install an old-style archive.
20654RANLIB=$lt_RANLIB
20655old_postinstall_cmds=$lt_old_postinstall_cmds
20656old_postuninstall_cmds=$lt_old_postuninstall_cmds
20657
20658# Whether to use a lock for old archive extraction.
20659lock_old_archive_extraction=$lock_old_archive_extraction
20660
20661# A C compiler.
20662LTCC=$lt_CC
20663
20664# LTCC compiler flags.
20665LTCFLAGS=$lt_CFLAGS
20666
20667# Take the output of nm and produce a listing of raw symbols and C names.
20668global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20669
20670# Transform the output of nm in a proper C declaration.
20671global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20672
20673# Transform the output of nm into a list of symbols to manually relocate.
20674global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20675
20676# Transform the output of nm in a C name address pair.
20677global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20678
20679# Transform the output of nm in a C name address pair when lib prefix is needed.
20680global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20681
20682# The name lister interface.
20683nm_interface=$lt_lt_cv_nm_interface
20684
20685# Specify filename containing input files for \$NM.
20686nm_file_list_spec=$lt_nm_file_list_spec
20687
20688# The root where to search for dependent libraries,and where our libraries should be installed.
20689lt_sysroot=$lt_sysroot
20690
20691# Command to truncate a binary pipe.
20692lt_truncate_bin=$lt_lt_cv_truncate_bin
20693
20694# The name of the directory that contains temporary libtool files.
20695objdir=$objdir
20696
20697# Used to examine libraries when file_magic_cmd begins with "file".
20698MAGIC_CMD=$MAGIC_CMD
20699
20700# Must we lock files when doing compilation?
20701need_locks=$lt_need_locks
20702
20703# Manifest tool.
20704MANIFEST_TOOL=$lt_MANIFEST_TOOL
20705
20706# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20707DSYMUTIL=$lt_DSYMUTIL
20708
20709# Tool to change global to local symbols on Mac OS X.
20710NMEDIT=$lt_NMEDIT
20711
20712# Tool to manipulate fat objects and archives on Mac OS X.
20713LIPO=$lt_LIPO
20714
20715# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20716OTOOL=$lt_OTOOL
20717
20718# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20719OTOOL64=$lt_OTOOL64
20720
20721# Old archive suffix (normally "a").
20722libext=$libext
20723
20724# Shared library suffix (normally ".so").
20725shrext_cmds=$lt_shrext_cmds
20726
20727# The commands to extract the exported symbol list from a shared archive.
20728extract_expsyms_cmds=$lt_extract_expsyms_cmds
20729
20730# Variables whose values should be saved in libtool wrapper scripts and
20731# restored at link time.
20732variables_saved_for_relink=$lt_variables_saved_for_relink
20733
20734# Do we need the "lib" prefix for modules?
20735need_lib_prefix=$need_lib_prefix
20736
20737# Do we need a version for libraries?
20738need_version=$need_version
20739
20740# Library versioning type.
20741version_type=$version_type
20742
20743# Shared library runtime path variable.
20744runpath_var=$runpath_var
20745
20746# Shared library path variable.
20747shlibpath_var=$shlibpath_var
20748
20749# Is shlibpath searched before the hard-coded library search path?
20750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20751
20752# Format of library name prefix.
20753libname_spec=$lt_libname_spec
20754
20755# List of archive names.  First name is the real one, the rest are links.
20756# The last name is the one that the linker finds with -lNAME
20757library_names_spec=$lt_library_names_spec
20758
20759# The coded name of the library, if different from the real name.
20760soname_spec=$lt_soname_spec
20761
20762# Permission mode override for installation of shared libraries.
20763install_override_mode=$lt_install_override_mode
20764
20765# Command to use after installation of a shared archive.
20766postinstall_cmds=$lt_postinstall_cmds
20767
20768# Command to use after uninstallation of a shared archive.
20769postuninstall_cmds=$lt_postuninstall_cmds
20770
20771# Commands used to finish a libtool library installation in a directory.
20772finish_cmds=$lt_finish_cmds
20773
20774# As "finish_cmds", except a single script fragment to be evaled but
20775# not shown.
20776finish_eval=$lt_finish_eval
20777
20778# Whether we should hardcode library paths into libraries.
20779hardcode_into_libs=$hardcode_into_libs
20780
20781# Compile-time system search path for libraries.
20782sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20783
20784# Detected run-time system search path for libraries.
20785sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20786
20787# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20788configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20789
20790# Whether dlopen is supported.
20791dlopen_support=$enable_dlopen
20792
20793# Whether dlopen of programs is supported.
20794dlopen_self=$enable_dlopen_self
20795
20796# Whether dlopen of statically linked programs is supported.
20797dlopen_self_static=$enable_dlopen_self_static
20798
20799# Commands to strip libraries.
20800old_striplib=$lt_old_striplib
20801striplib=$lt_striplib
20802
20803
20804# The linker used to build libraries.
20805LD=$lt_LD
20806
20807# How to create reloadable object files.
20808reload_flag=$lt_reload_flag
20809reload_cmds=$lt_reload_cmds
20810
20811# Commands used to build an old-style archive.
20812old_archive_cmds=$lt_old_archive_cmds
20813
20814# A language specific compiler.
20815CC=$lt_compiler
20816
20817# Is the compiler the GNU compiler?
20818with_gcc=$GCC
20819
20820# Compiler flag to turn off builtin functions.
20821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20822
20823# Additional compiler flags for building library objects.
20824pic_flag=$lt_lt_prog_compiler_pic
20825
20826# How to pass a linker flag through the compiler.
20827wl=$lt_lt_prog_compiler_wl
20828
20829# Compiler flag to prevent dynamic linking.
20830link_static_flag=$lt_lt_prog_compiler_static
20831
20832# Does compiler simultaneously support -c and -o options?
20833compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20834
20835# Whether or not to add -lc for building shared libraries.
20836build_libtool_need_lc=$archive_cmds_need_lc
20837
20838# Whether or not to disallow shared libs when runtime libs are static.
20839allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20840
20841# Compiler flag to allow reflexive dlopens.
20842export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20843
20844# Compiler flag to generate shared objects directly from archives.
20845whole_archive_flag_spec=$lt_whole_archive_flag_spec
20846
20847# Whether the compiler copes with passing no objects directly.
20848compiler_needs_object=$lt_compiler_needs_object
20849
20850# Create an old-style archive from a shared archive.
20851old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20852
20853# Create a temporary old-style archive to link instead of a shared archive.
20854old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20855
20856# Commands used to build a shared archive.
20857archive_cmds=$lt_archive_cmds
20858archive_expsym_cmds=$lt_archive_expsym_cmds
20859
20860# Commands used to build a loadable module if different from building
20861# a shared archive.
20862module_cmds=$lt_module_cmds
20863module_expsym_cmds=$lt_module_expsym_cmds
20864
20865# Whether we are building with GNU ld or not.
20866with_gnu_ld=$lt_with_gnu_ld
20867
20868# Flag that allows shared libraries with undefined symbols to be built.
20869allow_undefined_flag=$lt_allow_undefined_flag
20870
20871# Flag that enforces no undefined symbols.
20872no_undefined_flag=$lt_no_undefined_flag
20873
20874# Flag to hardcode \$libdir into a binary during linking.
20875# This must work even if \$libdir does not exist
20876hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20877
20878# Whether we need a single "-rpath" flag with a separated argument.
20879hardcode_libdir_separator=$lt_hardcode_libdir_separator
20880
20881# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20882# DIR into the resulting binary.
20883hardcode_direct=$hardcode_direct
20884
20885# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20886# DIR into the resulting binary and the resulting library dependency is
20887# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20888# library is relocated.
20889hardcode_direct_absolute=$hardcode_direct_absolute
20890
20891# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20892# into the resulting binary.
20893hardcode_minus_L=$hardcode_minus_L
20894
20895# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20896# into the resulting binary.
20897hardcode_shlibpath_var=$hardcode_shlibpath_var
20898
20899# Set to "yes" if building a shared library automatically hardcodes DIR
20900# into the library and all subsequent libraries and executables linked
20901# against it.
20902hardcode_automatic=$hardcode_automatic
20903
20904# Set to yes if linker adds runtime paths of dependent libraries
20905# to runtime path list.
20906inherit_rpath=$inherit_rpath
20907
20908# Whether libtool must link a program against all its dependency libraries.
20909link_all_deplibs=$link_all_deplibs
20910
20911# Set to "yes" if exported symbols are required.
20912always_export_symbols=$always_export_symbols
20913
20914# The commands to list exported symbols.
20915export_symbols_cmds=$lt_export_symbols_cmds
20916
20917# Symbols that should not be listed in the preloaded symbols.
20918exclude_expsyms=$lt_exclude_expsyms
20919
20920# Symbols that must always be exported.
20921include_expsyms=$lt_include_expsyms
20922
20923# Commands necessary for linking programs (against libraries) with templates.
20924prelink_cmds=$lt_prelink_cmds
20925
20926# Commands necessary for finishing linking programs.
20927postlink_cmds=$lt_postlink_cmds
20928
20929# Specify filename containing input files.
20930file_list_spec=$lt_file_list_spec
20931
20932# How to hardcode a shared library path into an executable.
20933hardcode_action=$hardcode_action
20934
20935# ### END LIBTOOL CONFIG
20936
20937_LT_EOF
20938
20939    cat <<'_LT_EOF' >> "$cfgfile"
20940
20941# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20942
20943# func_munge_path_list VARIABLE PATH
20944# -----------------------------------
20945# VARIABLE is name of variable containing _space_ separated list of
20946# directories to be munged by the contents of PATH, which is string
20947# having a format:
20948# "DIR[:DIR]:"
20949#       string "DIR[ DIR]" will be prepended to VARIABLE
20950# ":DIR[:DIR]"
20951#       string "DIR[ DIR]" will be appended to VARIABLE
20952# "DIRP[:DIRP]::[DIRA:]DIRA"
20953#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20954#       "DIRA[ DIRA]" will be appended to VARIABLE
20955# "DIR[:DIR]"
20956#       VARIABLE will be replaced by "DIR[ DIR]"
20957func_munge_path_list ()
20958{
20959    case x$2 in
20960    x)
20961        ;;
20962    *:)
20963        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20964        ;;
20965    x:*)
20966        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20967        ;;
20968    *::*)
20969        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20970        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20971        ;;
20972    *)
20973        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20974        ;;
20975    esac
20976}
20977
20978
20979# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20980func_cc_basename ()
20981{
20982    for cc_temp in $*""; do
20983      case $cc_temp in
20984        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20985        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20986        \-*) ;;
20987        *) break;;
20988      esac
20989    done
20990    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20991}
20992
20993
20994# ### END FUNCTIONS SHARED WITH CONFIGURE
20995
20996_LT_EOF
20997
20998  case $host_os in
20999  aix3*)
21000    cat <<\_LT_EOF >> "$cfgfile"
21001# AIX sometimes has problems with the GCC collect2 program.  For some
21002# reason, if we set the COLLECT_NAMES environment variable, the problems
21003# vanish in a puff of smoke.
21004if test set != "${COLLECT_NAMES+set}"; then
21005  COLLECT_NAMES=
21006  export COLLECT_NAMES
21007fi
21008_LT_EOF
21009    ;;
21010  esac
21011
21012
21013ltmain=$ac_aux_dir/ltmain.sh
21014
21015
21016  # We use sed instead of cat because bash on DJGPP gets confused if
21017  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21018  # text mode, it properly converts lines to CR/LF.  This bash problem
21019  # is reportedly fixed, but why not run on old versions too?
21020  sed '$q' "$ltmain" >> "$cfgfile" \
21021     || (rm -f "$cfgfile"; exit 1)
21022
21023   mv -f "$cfgfile" "$ofile" ||
21024    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21025  chmod +x "$ofile"
21026
21027 ;;
21028    "po-directories":C)
21029    for ac_file in $CONFIG_FILES; do
21030      # Support "outfile[:infile[:infile...]]"
21031      case "$ac_file" in
21032        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21033      esac
21034      # PO directories have a Makefile.in generated from Makefile.in.in.
21035      case "$ac_file" in */Makefile.in)
21036        # Adjust a relative srcdir.
21037        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21038        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21039        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21040        # In autoconf-2.13 it is called $ac_given_srcdir.
21041        # In autoconf-2.50 it is called $srcdir.
21042        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21043        case "$ac_given_srcdir" in
21044          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21045          /*) top_srcdir="$ac_given_srcdir" ;;
21046          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21047        esac
21048        # Treat a directory as a PO directory if and only if it has a
21049        # POTFILES.in file. This allows packages to have multiple PO
21050        # directories under different names or in different locations.
21051        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21052          rm -f "$ac_dir/POTFILES"
21053          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21054          gt_tab=`printf '\t'`
21055          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"
21056          POMAKEFILEDEPS="POTFILES.in"
21057          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21058          # on $ac_dir but don't depend on user-specified configuration
21059          # parameters.
21060          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21061            # The LINGUAS file contains the set of available languages.
21062            if test -n "$OBSOLETE_ALL_LINGUAS"; then
21063              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21064            fi
21065            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21066            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21067          else
21068            # The set of available languages was given in configure.in.
21069            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
21070          fi
21071          # Compute POFILES
21072          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21073          # Compute UPDATEPOFILES
21074          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21075          # Compute DUMMYPOFILES
21076          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21077          # Compute GMOFILES
21078          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21079          case "$ac_given_srcdir" in
21080            .) srcdirpre= ;;
21081            *) srcdirpre='$(srcdir)/' ;;
21082          esac
21083          POFILES=
21084          UPDATEPOFILES=
21085          DUMMYPOFILES=
21086          GMOFILES=
21087          for lang in $ALL_LINGUAS; do
21088            POFILES="$POFILES $srcdirpre$lang.po"
21089            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21090            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21091            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21092          done
21093          # CATALOGS depends on both $ac_dir and the user's LINGUAS
21094          # environment variable.
21095          INST_LINGUAS=
21096          if test -n "$ALL_LINGUAS"; then
21097            for presentlang in $ALL_LINGUAS; do
21098              useit=no
21099              if test "%UNSET%" != "$LINGUAS"; then
21100                desiredlanguages="$LINGUAS"
21101              else
21102                desiredlanguages="$ALL_LINGUAS"
21103              fi
21104              for desiredlang in $desiredlanguages; do
21105                # Use the presentlang catalog if desiredlang is
21106                #   a. equal to presentlang, or
21107                #   b. a variant of presentlang (because in this case,
21108                #      presentlang can be used as a fallback for messages
21109                #      which are not translated in the desiredlang catalog).
21110                case "$desiredlang" in
21111                  "$presentlang"*) useit=yes;;
21112                esac
21113              done
21114              if test $useit = yes; then
21115                INST_LINGUAS="$INST_LINGUAS $presentlang"
21116              fi
21117            done
21118          fi
21119          CATALOGS=
21120          if test -n "$INST_LINGUAS"; then
21121            for lang in $INST_LINGUAS; do
21122              CATALOGS="$CATALOGS $lang.gmo"
21123            done
21124          fi
21125          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21126          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"
21127          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21128            if test -f "$f"; then
21129              case "$f" in
21130                *.orig | *.bak | *~) ;;
21131                *) cat "$f" >> "$ac_dir/Makefile" ;;
21132              esac
21133            fi
21134          done
21135        fi
21136        ;;
21137      esac
21138    done ;;
21139
21140  esac
21141done # for ac_tag
21142
21143
21144as_fn_exit 0
21145_ACEOF
21146ac_clean_files=$ac_clean_files_save
21147
21148test $ac_write_fail = 0 ||
21149  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21150
21151
21152# configure is writing to config.log, and then calls config.status.
21153# config.status does its own redirection, appending to config.log.
21154# Unfortunately, on DOS this fails, as config.log is still kept open
21155# by configure, so config.status won't be able to write to it; its
21156# output is simply discarded.  So we exec the FD to /dev/null,
21157# effectively closing config.log, so it can be properly (re)opened and
21158# appended to by config.status.  When coming back to configure, we
21159# need to make the FD available again.
21160if test "$no_create" != yes; then
21161  ac_cs_success=:
21162  ac_config_status_args=
21163  test "$silent" = yes &&
21164    ac_config_status_args="$ac_config_status_args --quiet"
21165  exec 5>/dev/null
21166  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21167  exec 5>>config.log
21168  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21169  # would make configure fail if this is the last instruction.
21170  $ac_cs_success || as_fn_exit 1
21171fi
21172if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21173  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21174$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21175fi
21176
21177
21178# Format paths arguments which should wrap correctly in the output
21179indent='\n                                     '
21180trust_status=$(echo "$with_trust_paths" | sed -e "s/:/$indent/g")
21181
21182{ $as_echo "$as_me:${as_lineno-$LINENO}: build options:
21183
21184    Host:                            $host
21185    Debug build:                     $debug_status
21186    Strict build:                    $strict_status
21187    Build documentation:             $doc_status
21188    System global config:            $p11_system_config_file
21189    System module config directory:  $p11_system_config_modules
21190    Package module config directory: $p11_package_config_modules
21191    User global config:              $p11_user_config_file
21192    User module config directory:    $p11_user_config_modules
21193    Load relative module paths from: $p11_module_path
21194
21195    With libtasn1 dependency:        $with_libtasn1
21196    With libffi:                     $with_libffi
21197    With hash implementation:        $with_hash_impl
21198    With systemd:                    $with_systemd
21199
21200    Build trust module:              $enable_trust_module
21201    Trust module paths:              $trust_status
21202
21203" >&5
21204$as_echo "$as_me: build options:
21205
21206    Host:                            $host
21207    Debug build:                     $debug_status
21208    Strict build:                    $strict_status
21209    Build documentation:             $doc_status
21210    System global config:            $p11_system_config_file
21211    System module config directory:  $p11_system_config_modules
21212    Package module config directory: $p11_package_config_modules
21213    User global config:              $p11_user_config_file
21214    User module config directory:    $p11_user_config_modules
21215    Load relative module paths from: $p11_module_path
21216
21217    With libtasn1 dependency:        $with_libtasn1
21218    With libffi:                     $with_libffi
21219    With hash implementation:        $with_hash_impl
21220    With systemd:                    $with_systemd
21221
21222    Build trust module:              $enable_trust_module
21223    Trust module paths:              $trust_status
21224
21225" >&6;}
21226