1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pam_p11 0.3.1.
4#
5# Report bugs to <https://github.com/OpenSC/pam_p11/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 https://github.com/OpenSC/pam_p11/issues
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: 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='pam_p11'
592PACKAGE_TARNAME='pam_p11'
593PACKAGE_VERSION='0.3.1'
594PACKAGE_STRING='pam_p11 0.3.1'
595PACKAGE_BUGREPORT='https://github.com/OpenSC/pam_p11/issues'
596PACKAGE_URL=''
597
598ac_unique_file="src/pam_p11.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635gt_needs=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639pamdir
640HAVE_PAM_MISC_FALSE
641HAVE_PAM_MISC_TRUE
642LIBOBJS
643PAM_LIBS
644PAM_CFLAGS
645OPENSSL_LIBS
646OPENSSL_CFLAGS
647LIBP11_LIBS
648LIBP11_CFLAGS
649LT_SYS_LIBRARY_PATH
650OTOOL64
651OTOOL
652LIPO
653NMEDIT
654DSYMUTIL
655MANIFEST_TOOL
656RANLIB
657ac_ct_AR
658AR
659DLLTOOL
660OBJDUMP
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666LIBTOOL
667LN_S
668POSUB
669LTLIBINTL
670LIBINTL
671INTLLIBS
672LTLIBICONV
673LIBICONV
674INTL_MACOSX_LIBS
675XGETTEXT_EXTRA_OPTIONS
676MSGMERGE
677XGETTEXT_015
678XGETTEXT
679GMSGFMT_015
680MSGFMT_015
681GMSGFMT
682MSGFMT
683GETTEXT_MACRO_VERSION
684USE_NLS
685SED
686EGREP
687GREP
688CPP
689PKG_CONFIG_LIBDIR
690PKG_CONFIG_PATH
691PKG_CONFIG
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__quote
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763runstatedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_silent_rules
787enable_dependency_tracking
788enable_strict
789enable_pedantic
790with_pamdir
791enable_nls
792with_gnu_ld
793enable_rpath
794with_libiconv_prefix
795with_libintl_prefix
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_aix_soname
801with_sysroot
802enable_libtool_lock
803'
804      ac_precious_vars='build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810LIBS
811CPPFLAGS
812PKG_CONFIG
813PKG_CONFIG_PATH
814PKG_CONFIG_LIBDIR
815CPP
816LT_SYS_LIBRARY_PATH
817LIBP11_CFLAGS
818LIBP11_LIBS
819OPENSSL_CFLAGS
820OPENSSL_LIBS
821PAM_CFLAGS
822PAM_LIBS'
823
824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828ac_unrecognized_opts=
829ac_unrecognized_sep=
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_libraries=NONE
846
847# Installation directory options.
848# These are left unexpanded so users can "make install exec_prefix=/foo"
849# and all the variables that are supposed to be based on exec_prefix
850# by default will actually change.
851# Use braces instead of parens because sh, perl, etc. also accept them.
852# (The list follows the same order as the GNU Coding Standards.)
853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
861runstatedir='${localstatedir}/run'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878  # If the previous option needs an argument, assign it.
879  if test -n "$ac_prev"; then
880    eval $ac_prev=\$ac_option
881    ac_prev=
882    continue
883  fi
884
885  case $ac_option in
886  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887  *=)   ac_optarg= ;;
888  *)    ac_optarg=yes ;;
889  esac
890
891  # Accept the important Cygnus configure options, so we can diagnose typos.
892
893  case $ac_dashdash$ac_option in
894  --)
895    ac_dashdash=yes ;;
896
897  -bindir | --bindir | --bindi | --bind | --bin | --bi)
898    ac_prev=bindir ;;
899  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900    bindir=$ac_optarg ;;
901
902  -build | --build | --buil | --bui | --bu)
903    ac_prev=build_alias ;;
904  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905    build_alias=$ac_optarg ;;
906
907  -cache-file | --cache-file | --cache-fil | --cache-fi \
908  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909    ac_prev=cache_file ;;
910  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912    cache_file=$ac_optarg ;;
913
914  --config-cache | -C)
915    cache_file=config.cache ;;
916
917  -datadir | --datadir | --datadi | --datad)
918    ac_prev=datadir ;;
919  -datadir=* | --datadir=* | --datadi=* | --datad=*)
920    datadir=$ac_optarg ;;
921
922  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923  | --dataroo | --dataro | --datar)
924    ac_prev=datarootdir ;;
925  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927    datarootdir=$ac_optarg ;;
928
929  -disable-* | --disable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=no ;;
944
945  -docdir | --docdir | --docdi | --doc | --do)
946    ac_prev=docdir ;;
947  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948    docdir=$ac_optarg ;;
949
950  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951    ac_prev=dvidir ;;
952  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953    dvidir=$ac_optarg ;;
954
955  -enable-* | --enable-*)
956    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959      as_fn_error $? "invalid feature name: $ac_useropt"
960    ac_useropt_orig=$ac_useropt
961    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962    case $ac_user_opts in
963      *"
964"enable_$ac_useropt"
965"*) ;;
966      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967	 ac_unrecognized_sep=', ';;
968    esac
969    eval enable_$ac_useropt=\$ac_optarg ;;
970
971  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973  | --exec | --exe | --ex)
974    ac_prev=exec_prefix ;;
975  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977  | --exec=* | --exe=* | --ex=*)
978    exec_prefix=$ac_optarg ;;
979
980  -gas | --gas | --ga | --g)
981    # Obsolete; use --with-gas.
982    with_gas=yes ;;
983
984  -help | --help | --hel | --he | -h)
985    ac_init_help=long ;;
986  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987    ac_init_help=recursive ;;
988  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989    ac_init_help=short ;;
990
991  -host | --host | --hos | --ho)
992    ac_prev=host_alias ;;
993  -host=* | --host=* | --hos=* | --ho=*)
994    host_alias=$ac_optarg ;;
995
996  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997    ac_prev=htmldir ;;
998  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999  | --ht=*)
1000    htmldir=$ac_optarg ;;
1001
1002  -includedir | --includedir | --includedi | --included | --include \
1003  | --includ | --inclu | --incl | --inc)
1004    ac_prev=includedir ;;
1005  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006  | --includ=* | --inclu=* | --incl=* | --inc=*)
1007    includedir=$ac_optarg ;;
1008
1009  -infodir | --infodir | --infodi | --infod | --info | --inf)
1010    ac_prev=infodir ;;
1011  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012    infodir=$ac_optarg ;;
1013
1014  -libdir | --libdir | --libdi | --libd)
1015    ac_prev=libdir ;;
1016  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017    libdir=$ac_optarg ;;
1018
1019  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020  | --libexe | --libex | --libe)
1021    ac_prev=libexecdir ;;
1022  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023  | --libexe=* | --libex=* | --libe=*)
1024    libexecdir=$ac_optarg ;;
1025
1026  -localedir | --localedir | --localedi | --localed | --locale)
1027    ac_prev=localedir ;;
1028  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029    localedir=$ac_optarg ;;
1030
1031  -localstatedir | --localstatedir | --localstatedi | --localstated \
1032  | --localstate | --localstat | --localsta | --localst | --locals)
1033    ac_prev=localstatedir ;;
1034  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036    localstatedir=$ac_optarg ;;
1037
1038  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039    ac_prev=mandir ;;
1040  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041    mandir=$ac_optarg ;;
1042
1043  -nfp | --nfp | --nf)
1044    # Obsolete; use --without-fp.
1045    with_fp=no ;;
1046
1047  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048  | --no-cr | --no-c | -n)
1049    no_create=yes ;;
1050
1051  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053    no_recursion=yes ;;
1054
1055  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057  | --oldin | --oldi | --old | --ol | --o)
1058    ac_prev=oldincludedir ;;
1059  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062    oldincludedir=$ac_optarg ;;
1063
1064  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065    ac_prev=prefix ;;
1066  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067    prefix=$ac_optarg ;;
1068
1069  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070  | --program-pre | --program-pr | --program-p)
1071    ac_prev=program_prefix ;;
1072  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074    program_prefix=$ac_optarg ;;
1075
1076  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077  | --program-suf | --program-su | --program-s)
1078    ac_prev=program_suffix ;;
1079  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081    program_suffix=$ac_optarg ;;
1082
1083  -program-transform-name | --program-transform-name \
1084  | --program-transform-nam | --program-transform-na \
1085  | --program-transform-n | --program-transform- \
1086  | --program-transform | --program-transfor \
1087  | --program-transfo | --program-transf \
1088  | --program-trans | --program-tran \
1089  | --progr-tra | --program-tr | --program-t)
1090    ac_prev=program_transform_name ;;
1091  -program-transform-name=* | --program-transform-name=* \
1092  | --program-transform-nam=* | --program-transform-na=* \
1093  | --program-transform-n=* | --program-transform-=* \
1094  | --program-transform=* | --program-transfor=* \
1095  | --program-transfo=* | --program-transf=* \
1096  | --program-trans=* | --program-tran=* \
1097  | --progr-tra=* | --program-tr=* | --program-t=*)
1098    program_transform_name=$ac_optarg ;;
1099
1100  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101    ac_prev=pdfdir ;;
1102  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103    pdfdir=$ac_optarg ;;
1104
1105  -psdir | --psdir | --psdi | --psd | --ps)
1106    ac_prev=psdir ;;
1107  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108    psdir=$ac_optarg ;;
1109
1110  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111  | -silent | --silent | --silen | --sile | --sil)
1112    silent=yes ;;
1113
1114  -runstatedir | --runstatedir | --runstatedi | --runstated \
1115  | --runstate | --runstat | --runsta | --runst | --runs \
1116  | --run | --ru | --r)
1117    ac_prev=runstatedir ;;
1118  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1119  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1120  | --run=* | --ru=* | --r=*)
1121    runstatedir=$ac_optarg ;;
1122
1123  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124    ac_prev=sbindir ;;
1125  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126  | --sbi=* | --sb=*)
1127    sbindir=$ac_optarg ;;
1128
1129  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131  | --sharedst | --shareds | --shared | --share | --shar \
1132  | --sha | --sh)
1133    ac_prev=sharedstatedir ;;
1134  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137  | --sha=* | --sh=*)
1138    sharedstatedir=$ac_optarg ;;
1139
1140  -site | --site | --sit)
1141    ac_prev=site ;;
1142  -site=* | --site=* | --sit=*)
1143    site=$ac_optarg ;;
1144
1145  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146    ac_prev=srcdir ;;
1147  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148    srcdir=$ac_optarg ;;
1149
1150  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151  | --syscon | --sysco | --sysc | --sys | --sy)
1152    ac_prev=sysconfdir ;;
1153  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155    sysconfdir=$ac_optarg ;;
1156
1157  -target | --target | --targe | --targ | --tar | --ta | --t)
1158    ac_prev=target_alias ;;
1159  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160    target_alias=$ac_optarg ;;
1161
1162  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163    verbose=yes ;;
1164
1165  -version | --version | --versio | --versi | --vers | -V)
1166    ac_init_version=: ;;
1167
1168  -with-* | --with-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=\$ac_optarg ;;
1183
1184  -without-* | --without-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid package name: $ac_useropt"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"with_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval with_$ac_useropt=no ;;
1199
1200  --x)
1201    # Obsolete; use --with-x.
1202    with_x=yes ;;
1203
1204  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205  | --x-incl | --x-inc | --x-in | --x-i)
1206    ac_prev=x_includes ;;
1207  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209    x_includes=$ac_optarg ;;
1210
1211  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213    ac_prev=x_libraries ;;
1214  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216    x_libraries=$ac_optarg ;;
1217
1218  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219Try \`$0 --help' for more information"
1220    ;;
1221
1222  *=*)
1223    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224    # Reject names that are not valid shell variable names.
1225    case $ac_envvar in #(
1226      '' | [0-9]* | *[!_$as_cr_alnum]* )
1227      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228    esac
1229    eval $ac_envvar=\$ac_optarg
1230    export $ac_envvar ;;
1231
1232  *)
1233    # FIXME: should be removed in autoconf 3.0.
1234    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238    ;;
1239
1240  esac
1241done
1242
1243if test -n "$ac_prev"; then
1244  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245  as_fn_error $? "missing argument to $ac_option"
1246fi
1247
1248if test -n "$ac_unrecognized_opts"; then
1249  case $enable_option_checking in
1250    no) ;;
1251    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253  esac
1254fi
1255
1256# Check all directory arguments for consistency.
1257for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258		datadir sysconfdir sharedstatedir localstatedir includedir \
1259		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260		libdir localedir mandir runstatedir
1261do
1262  eval ac_val=\$$ac_var
1263  # Remove trailing slashes.
1264  case $ac_val in
1265    */ )
1266      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267      eval $ac_var=\$ac_val;;
1268  esac
1269  # Be sure to have absolute directory names.
1270  case $ac_val in
1271    [\\/$]* | ?:[\\/]* )  continue;;
1272    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273  esac
1274  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275done
1276
1277# There might be people who depend on the old broken behavior: `$host'
1278# used to hold the argument of --host etc.
1279# FIXME: To remove some day.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if test "x$host_alias" != x; then
1286  if test "x$build_alias" = x; then
1287    cross_compiling=maybe
1288  elif test "x$build_alias" != "x$host_alias"; then
1289    cross_compiling=yes
1290  fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302  as_fn_error $? "working directory cannot be determined"
1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304  as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307# Find the source files, if location was not specified.
1308if test -z "$srcdir"; then
1309  ac_srcdir_defaulted=yes
1310  # Try the directory containing this script, then the parent directory.
1311  ac_confdir=`$as_dirname -- "$as_myself" ||
1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313	 X"$as_myself" : 'X\(//\)[^/]' \| \
1314	 X"$as_myself" : 'X\(//\)$' \| \
1315	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316$as_echo X"$as_myself" |
1317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\/\)[^/].*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\/\)$/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\).*/{
1330	    s//\1/
1331	    q
1332	  }
1333	  s/.*/./; q'`
1334  srcdir=$ac_confdir
1335  if test ! -r "$srcdir/$ac_unique_file"; then
1336    srcdir=..
1337  fi
1338else
1339  ac_srcdir_defaulted=no
1340fi
1341if test ! -r "$srcdir/$ac_unique_file"; then
1342  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344fi
1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346ac_abs_confdir=`(
1347	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348	pwd)`
1349# When building in place, set srcdir=.
1350if test "$ac_abs_confdir" = "$ac_pwd"; then
1351  srcdir=.
1352fi
1353# Remove unnecessary trailing slashes from srcdir.
1354# Double slashes in file names in object file debugging info
1355# mess up M-x gdb in Emacs.
1356case $srcdir in
1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358esac
1359for ac_var in $ac_precious_vars; do
1360  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361  eval ac_env_${ac_var}_value=\$${ac_var}
1362  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364done
1365
1366#
1367# Report the --help message.
1368#
1369if test "$ac_init_help" = "long"; then
1370  # Omit some internal or obsolete options to make the list less imposing.
1371  # This message is too long to be a string in the A/UX 3.1 sh.
1372  cat <<_ACEOF
1373\`configure' configures pam_p11 0.3.1 to adapt to many kinds of systems.
1374
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
1383  -h, --help              display this help and exit
1384      --help=short        display options specific to this package
1385      --help=recursive    display the short help of all the included packages
1386  -V, --version           display version information and exit
1387  -q, --quiet, --silent   do not print \`checking ...' messages
1388      --cache-file=FILE   cache test results in FILE [disabled]
1389  -C, --config-cache      alias for \`--cache-file=config.cache'
1390  -n, --no-create         do not create output files
1391      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393Installation directories:
1394  --prefix=PREFIX         install architecture-independent files in PREFIX
1395                          [$ac_default_prefix]
1396  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                          [PREFIX]
1398
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine tuning of the installation directories:
1407  --bindir=DIR            user executables [EPREFIX/bin]
1408  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409  --libexecdir=DIR        program executables [EPREFIX/libexec]
1410  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1414  --libdir=DIR            object code libraries [EPREFIX/lib]
1415  --includedir=DIR        C header files [PREFIX/include]
1416  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419  --infodir=DIR           info documentation [DATAROOTDIR/info]
1420  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421  --mandir=DIR            man documentation [DATAROOTDIR/man]
1422  --docdir=DIR            documentation root [DATAROOTDIR/doc/pam_p11]
1423  --htmldir=DIR           html documentation [DOCDIR]
1424  --dvidir=DIR            dvi documentation [DOCDIR]
1425  --pdfdir=DIR            pdf documentation [DOCDIR]
1426  --psdir=DIR             ps documentation [DOCDIR]
1427_ACEOF
1428
1429  cat <<\_ACEOF
1430
1431Program names:
1432  --program-prefix=PREFIX            prepend PREFIX to installed program names
1433  --program-suffix=SUFFIX            append SUFFIX to installed program names
1434  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436System types:
1437  --build=BUILD     configure for building on BUILD [guessed]
1438  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439_ACEOF
1440fi
1441
1442if test -n "$ac_init_help"; then
1443  case $ac_init_help in
1444     short | recursive ) echo "Configuration of pam_p11 0.3.1:";;
1445   esac
1446  cat <<\_ACEOF
1447
1448Optional Features:
1449  --disable-option-checking  ignore unrecognized --enable/--with options
1450  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452  --enable-silent-rules   less verbose build output (undo: "make V=1")
1453  --disable-silent-rules  verbose build output (undo: "make V=0")
1454  --enable-dependency-tracking
1455                          do not reject slow dependency extractors
1456  --disable-dependency-tracking
1457                          speeds up one-time build
1458  --disable-strict        disable strict compile mode [enabled]
1459  --enable-pedantic       enable pedantic compile mode [disabled]
1460  --disable-nls           do not use Native Language Support
1461  --disable-rpath         do not hardcode runtime library paths
1462  --enable-shared[=PKGS]  build shared libraries [default=yes]
1463  --enable-static[=PKGS]  build static libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-pamdir=PATH      Specify the directory where PAM modules are stored
1472  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1473  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1474  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1475  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1476  --without-libintl-prefix     don't search for libintl in includedir and libdir
1477  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1478                          both]
1479  --with-aix-soname=aix|svr4|both
1480                          shared library versioning (aka "SONAME") variant to
1481                          provide on AIX, [default=aix].
1482  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1484                          compiler's sysroot if not specified).
1485
1486Some influential environment variables:
1487  CC          C compiler command
1488  CFLAGS      C compiler flags
1489  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490              nonstandard directory <lib dir>
1491  LIBS        libraries to pass to the linker, e.g. -l<library>
1492  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493              you have headers in a nonstandard directory <include dir>
1494  PKG_CONFIG  path to pkg-config utility
1495  PKG_CONFIG_PATH
1496              directories to add to pkg-config's search path
1497  PKG_CONFIG_LIBDIR
1498              path overriding pkg-config's built-in search path
1499  CPP         C preprocessor
1500  LT_SYS_LIBRARY_PATH
1501              User-defined run-time library search path.
1502  LIBP11_CFLAGS
1503              C compiler flags for LIBP11, overriding pkg-config
1504  LIBP11_LIBS linker flags for LIBP11, overriding pkg-config
1505  OPENSSL_CFLAGS
1506              C compiler flags for OPENSSL, overriding pkg-config
1507  OPENSSL_LIBS
1508              linker flags for OPENSSL, overriding pkg-config
1509  PAM_CFLAGS  C compiler flags for pam
1510  PAM_LIBS    linker flags for pam
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
1515Report bugs to <https://github.com/OpenSC/pam_p11/issues>.
1516_ACEOF
1517ac_status=$?
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521  # If there are subdirs, report their specific --help.
1522  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523    test -d "$ac_dir" ||
1524      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525      continue
1526    ac_builddir=.
1527
1528case "$ac_dir" in
1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530*)
1531  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532  # A ".." for each directory in $ac_dir_suffix.
1533  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534  case $ac_top_builddir_sub in
1535  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537  esac ;;
1538esac
1539ac_abs_top_builddir=$ac_pwd
1540ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541# for backward compatibility:
1542ac_top_builddir=$ac_top_build_prefix
1543
1544case $srcdir in
1545  .)  # We are building in place.
1546    ac_srcdir=.
1547    ac_top_srcdir=$ac_top_builddir_sub
1548    ac_abs_top_srcdir=$ac_pwd ;;
1549  [\\/]* | ?:[\\/]* )  # Absolute name.
1550    ac_srcdir=$srcdir$ac_dir_suffix;
1551    ac_top_srcdir=$srcdir
1552    ac_abs_top_srcdir=$srcdir ;;
1553  *) # Relative name.
1554    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555    ac_top_srcdir=$ac_top_build_prefix$srcdir
1556    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557esac
1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560    cd "$ac_dir" || { ac_status=$?; continue; }
1561    # Check for guested configure.
1562    if test -f "$ac_srcdir/configure.gnu"; then
1563      echo &&
1564      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565    elif test -f "$ac_srcdir/configure"; then
1566      echo &&
1567      $SHELL "$ac_srcdir/configure" --help=recursive
1568    else
1569      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570    fi || ac_status=$?
1571    cd "$ac_pwd" || { ac_status=$?; break; }
1572  done
1573fi
1574
1575test -n "$ac_init_help" && exit $ac_status
1576if $ac_init_version; then
1577  cat <<\_ACEOF
1578pam_p11 configure 0.3.1
1579generated by GNU Autoconf 2.69
1580
1581Copyright (C) 2012 Free Software Foundation, Inc.
1582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
1584_ACEOF
1585  exit
1586fi
1587
1588## ------------------------ ##
1589## Autoconf initialization. ##
1590## ------------------------ ##
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  rm -f conftest.$ac_objext
1599  if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_compile") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } && {
1615	 test -z "$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       } && test -s conftest.$ac_objext; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_try_run LINENO
1631# ----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633# that executables *can* be run.
1634ac_fn_c_try_run ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640  *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644  (eval "$ac_link") 2>&5
1645  ac_status=$?
1646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648  { { case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_try") 2>&5
1655  ac_status=$?
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; }; }; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: program exited with status $ac_status" >&5
1661       $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664       ac_retval=$ac_status
1665fi
1666  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668  as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_run
1671
1672# ac_fn_c_try_cpp LINENO
1673# ----------------------
1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  if { { ac_try="$ac_cpp conftest.$ac_ext"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } > conftest.i && {
1694	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       }; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702    ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_cpp
1708
1709# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710# -------------------------------------------------------
1711# Tests whether HEADER exists and can be compiled using the include files in
1712# INCLUDES, setting the cache variable VAR accordingly.
1713ac_fn_c_check_header_compile ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if eval \${$3+:} false; then :
1719  $as_echo_n "(cached) " >&6
1720else
1721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h.  */
1723$4
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"; then :
1727  eval "$3=yes"
1728else
1729  eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732fi
1733eval ac_res=\$$3
1734	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738} # ac_fn_c_check_header_compile
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  rm -f conftest.$ac_objext conftest$ac_exeext
1747  if { { ac_try="$ac_link"
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_link") 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; } && {
1763	 test -z "$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       } && test -s conftest$ac_exeext && {
1766	 test "$cross_compiling" = yes ||
1767	 test -x conftest$ac_exeext
1768       }; then :
1769  ac_retval=0
1770else
1771  $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774	ac_retval=1
1775fi
1776  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778  # interfere with the next link command; also delete a directory that is
1779  # left behind by Apple's compiler.  We do this before executing the actions.
1780  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782  as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_link
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804    which can conflict with char $2 (); below.
1805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806    <limits.h> exists even on freestanding compilers.  */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817   Use char because int might match the return type of a GCC
1818   builtin and then its argument prototype would still apply.  */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824    to always fail with ENOSYS.  Some functions are actually named
1825    something starting with __ and the normal name is an alias.  */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834  ;
1835  return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839  eval "$3=yes"
1840else
1841  eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844    conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1854# -------------------------------------------------------
1855# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1856# the include files in INCLUDES and setting the cache variable VAR
1857# accordingly.
1858ac_fn_c_check_header_mongrel ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if eval \${$3+:} false; then :
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if eval \${$3+:} false; then :
1865  $as_echo_n "(cached) " >&6
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870else
1871  # Is the header compilable?
1872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1873$as_echo_n "checking $2 usability... " >&6; }
1874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  ac_header_compiler=yes
1881else
1882  ac_header_compiler=no
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1886$as_echo "$ac_header_compiler" >&6; }
1887
1888# Is the header present?
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1890$as_echo_n "checking $2 presence... " >&6; }
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893#include <$2>
1894_ACEOF
1895if ac_fn_c_try_cpp "$LINENO"; then :
1896  ac_header_preproc=yes
1897else
1898  ac_header_preproc=no
1899fi
1900rm -f conftest.err conftest.i conftest.$ac_ext
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1902$as_echo "$ac_header_preproc" >&6; }
1903
1904# So?  What about this header?
1905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906  yes:no: )
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1908$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911    ;;
1912  no:yes:* )
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1914$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1916$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1918$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1920$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923( $as_echo "## ------------------------------------------------------- ##
1924## Report this to https://github.com/OpenSC/pam_p11/issues ##
1925## ------------------------------------------------------- ##"
1926     ) | sed "s/^/$as_me: WARNING:     /" >&2
1927    ;;
1928esac
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933else
1934  eval "$3=\$ac_header_compiler"
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939fi
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_header_mongrel
1943
1944# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945# -------------------------------------------
1946# Tests whether TYPE exists after having included INCLUDES, setting cache
1947# variable VAR accordingly.
1948ac_fn_c_check_type ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if eval \${$3+:} false; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  eval "$3=no"
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$4
1960int
1961main ()
1962{
1963if (sizeof ($2))
1964	 return 0;
1965  ;
1966  return 0;
1967}
1968_ACEOF
1969if ac_fn_c_try_compile "$LINENO"; then :
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973int
1974main ()
1975{
1976if (sizeof (($2)))
1977	    return 0;
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983
1984else
1985  eval "$3=yes"
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_type
1997cat >config.log <<_ACEOF
1998This file contains any messages produced by compilers while
1999running configure, to aid debugging if configure makes a mistake.
2000
2001It was created by pam_p11 $as_me 0.3.1, which was
2002generated by GNU Autoconf 2.69.  Invocation command line was
2003
2004  $ $0 $@
2005
2006_ACEOF
2007exec 5>>config.log
2008{
2009cat <<_ASUNAME
2010## --------- ##
2011## Platform. ##
2012## --------- ##
2013
2014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2022
2023/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2024/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2027/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2028/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2029/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2030
2031_ASUNAME
2032
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036  IFS=$as_save_IFS
2037  test -z "$as_dir" && as_dir=.
2038    $as_echo "PATH: $as_dir"
2039  done
2040IFS=$as_save_IFS
2041
2042} >&5
2043
2044cat >&5 <<_ACEOF
2045
2046
2047## ----------- ##
2048## Core tests. ##
2049## ----------- ##
2050
2051_ACEOF
2052
2053
2054# Keep a trace of the command line.
2055# Strip out --no-create and --no-recursion so they do not pile up.
2056# Strip out --silent because we don't want to record it for future runs.
2057# Also quote any args containing shell meta-characters.
2058# Make two passes to allow for proper duplicate-argument suppression.
2059ac_configure_args=
2060ac_configure_args0=
2061ac_configure_args1=
2062ac_must_keep_next=false
2063for ac_pass in 1 2
2064do
2065  for ac_arg
2066  do
2067    case $ac_arg in
2068    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070    | -silent | --silent | --silen | --sile | --sil)
2071      continue ;;
2072    *\'*)
2073      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074    esac
2075    case $ac_pass in
2076    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077    2)
2078      as_fn_append ac_configure_args1 " '$ac_arg'"
2079      if test $ac_must_keep_next = true; then
2080	ac_must_keep_next=false # Got value, back to normal.
2081      else
2082	case $ac_arg in
2083	  *=* | --config-cache | -C | -disable-* | --disable-* \
2084	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086	  | -with-* | --with-* | -without-* | --without-* | --x)
2087	    case "$ac_configure_args0 " in
2088	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089	    esac
2090	    ;;
2091	  -* ) ac_must_keep_next=true ;;
2092	esac
2093      fi
2094      as_fn_append ac_configure_args " '$ac_arg'"
2095      ;;
2096    esac
2097  done
2098done
2099{ ac_configure_args0=; unset ac_configure_args0;}
2100{ ac_configure_args1=; unset ac_configure_args1;}
2101
2102# When interrupted or exit'd, cleanup temporary files, and complete
2103# config.log.  We remove comments because anyway the quotes in there
2104# would cause problems or look ugly.
2105# WARNING: Use '\'' to represent an apostrophe within the trap.
2106# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107trap 'exit_status=$?
2108  # Save into config.log some information that might help in debugging.
2109  {
2110    echo
2111
2112    $as_echo "## ---------------- ##
2113## Cache variables. ##
2114## ---------------- ##"
2115    echo
2116    # The following way of writing the cache mishandles newlines in values,
2117(
2118  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119    eval ac_val=\$$ac_var
2120    case $ac_val in #(
2121    *${as_nl}*)
2122      case $ac_var in #(
2123      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125      esac
2126      case $ac_var in #(
2127      _ | IFS | as_nl) ;; #(
2128      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129      *) { eval $ac_var=; unset $ac_var;} ;;
2130      esac ;;
2131    esac
2132  done
2133  (set) 2>&1 |
2134    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135    *${as_nl}ac_space=\ *)
2136      sed -n \
2137	"s/'\''/'\''\\\\'\'''\''/g;
2138	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139      ;; #(
2140    *)
2141      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142      ;;
2143    esac |
2144    sort
2145)
2146    echo
2147
2148    $as_echo "## ----------------- ##
2149## Output variables. ##
2150## ----------------- ##"
2151    echo
2152    for ac_var in $ac_subst_vars
2153    do
2154      eval ac_val=\$$ac_var
2155      case $ac_val in
2156      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157      esac
2158      $as_echo "$ac_var='\''$ac_val'\''"
2159    done | sort
2160    echo
2161
2162    if test -n "$ac_subst_files"; then
2163      $as_echo "## ------------------- ##
2164## File substitutions. ##
2165## ------------------- ##"
2166      echo
2167      for ac_var in $ac_subst_files
2168      do
2169	eval ac_val=\$$ac_var
2170	case $ac_val in
2171	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172	esac
2173	$as_echo "$ac_var='\''$ac_val'\''"
2174      done | sort
2175      echo
2176    fi
2177
2178    if test -s confdefs.h; then
2179      $as_echo "## ----------- ##
2180## confdefs.h. ##
2181## ----------- ##"
2182      echo
2183      cat confdefs.h
2184      echo
2185    fi
2186    test "$ac_signal" != 0 &&
2187      $as_echo "$as_me: caught signal $ac_signal"
2188    $as_echo "$as_me: exit $exit_status"
2189  } >&5
2190  rm -f core *.core core.conftest.* &&
2191    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192    exit $exit_status
2193' 0
2194for ac_signal in 1 2 13 15; do
2195  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196done
2197ac_signal=0
2198
2199# confdefs.h avoids OS command line length limits that DEFS can exceed.
2200rm -f -r conftest* confdefs.h
2201
2202$as_echo "/* confdefs.h */" > confdefs.h
2203
2204# Predefined preprocessor variables.
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_NAME "$PACKAGE_NAME"
2208_ACEOF
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_VERSION "$PACKAGE_VERSION"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_STRING "$PACKAGE_STRING"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_URL "$PACKAGE_URL"
2228_ACEOF
2229
2230
2231# Let the site file select an alternate cache file if it wants to.
2232# Prefer an explicitly selected file to automatically selected ones.
2233ac_site_file1=NONE
2234ac_site_file2=NONE
2235if test -n "$CONFIG_SITE"; then
2236  # We do not want a PATH search for config.site.
2237  case $CONFIG_SITE in #((
2238    -*)  ac_site_file1=./$CONFIG_SITE;;
2239    */*) ac_site_file1=$CONFIG_SITE;;
2240    *)   ac_site_file1=./$CONFIG_SITE;;
2241  esac
2242elif test "x$prefix" != xNONE; then
2243  ac_site_file1=$prefix/share/config.site
2244  ac_site_file2=$prefix/etc/config.site
2245else
2246  ac_site_file1=$ac_default_prefix/share/config.site
2247  ac_site_file2=$ac_default_prefix/etc/config.site
2248fi
2249for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250do
2251  test "x$ac_site_file" = xNONE && continue
2252  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255    sed 's/^/| /' "$ac_site_file" >&5
2256    . "$ac_site_file" \
2257      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259as_fn_error $? "failed to load site script $ac_site_file
2260See \`config.log' for more details" "$LINENO" 5; }
2261  fi
2262done
2263
2264if test -r "$cache_file"; then
2265  # Some versions of bash will fail to source /dev/null (special files
2266  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2267  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269$as_echo "$as_me: loading cache $cache_file" >&6;}
2270    case $cache_file in
2271      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272      *)                      . "./$cache_file";;
2273    esac
2274  fi
2275else
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277$as_echo "$as_me: creating cache $cache_file" >&6;}
2278  >$cache_file
2279fi
2280
2281gt_needs="$gt_needs "
2282# Check that the precious variables saved in the cache have kept the same
2283# value.
2284ac_cache_corrupted=false
2285for ac_var in $ac_precious_vars; do
2286  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2287  eval ac_new_set=\$ac_env_${ac_var}_set
2288  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2289  eval ac_new_val=\$ac_env_${ac_var}_value
2290  case $ac_old_set,$ac_new_set in
2291    set,)
2292      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294      ac_cache_corrupted=: ;;
2295    ,set)
2296      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298      ac_cache_corrupted=: ;;
2299    ,);;
2300    *)
2301      if test "x$ac_old_val" != "x$ac_new_val"; then
2302	# differences in whitespace do not lead to failure.
2303	ac_old_val_w=`echo x $ac_old_val`
2304	ac_new_val_w=`echo x $ac_new_val`
2305	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308	  ac_cache_corrupted=:
2309	else
2310	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312	  eval $ac_var=\$ac_old_val
2313	fi
2314	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2315$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2316	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2317$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2318      fi;;
2319  esac
2320  # Pass precious variables to config.status.
2321  if test "$ac_new_set" = set; then
2322    case $ac_new_val in
2323    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324    *) ac_arg=$ac_var=$ac_new_val ;;
2325    esac
2326    case " $ac_configure_args " in
2327      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2328      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2329    esac
2330  fi
2331done
2332if $ac_cache_corrupted; then
2333  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2338fi
2339## -------------------- ##
2340## Main body of script. ##
2341## -------------------- ##
2342
2343ac_ext=c
2344ac_cpp='$CPP $CPPFLAGS'
2345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348
2349
2350ac_aux_dir=
2351for ac_dir in . "$srcdir"/.; do
2352  if test -f "$ac_dir/install-sh"; then
2353    ac_aux_dir=$ac_dir
2354    ac_install_sh="$ac_aux_dir/install-sh -c"
2355    break
2356  elif test -f "$ac_dir/install.sh"; then
2357    ac_aux_dir=$ac_dir
2358    ac_install_sh="$ac_aux_dir/install.sh -c"
2359    break
2360  elif test -f "$ac_dir/shtool"; then
2361    ac_aux_dir=$ac_dir
2362    ac_install_sh="$ac_aux_dir/shtool install -c"
2363    break
2364  fi
2365done
2366if test -z "$ac_aux_dir"; then
2367  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2368fi
2369
2370# These three variables are undocumented and unsupported,
2371# and are intended to be withdrawn in a future Autoconf release.
2372# They can cause serious problems if a builder's source tree is in a directory
2373# whose full name contains unusual characters.
2374ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2375ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2376ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2377
2378
2379ac_config_headers="$ac_config_headers config.h"
2380
2381
2382am__api_version='1.15'
2383
2384# Find a good install program.  We prefer a C program (faster),
2385# so one script is as good as another.  But avoid the broken or
2386# incompatible versions:
2387# SysV /etc/install, /usr/sbin/install
2388# SunOS /usr/etc/install
2389# IRIX /sbin/install
2390# AIX /bin/install
2391# AmigaOS /C/install, which installs bootblocks on floppy discs
2392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395# OS/2's system install, which has a completely different semantic
2396# ./install, which can be erroneously created by make from ./install.sh.
2397# Reject install programs that cannot install multiple files.
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399$as_echo_n "checking for a BSD-compatible install... " >&6; }
2400if test -z "$INSTALL"; then
2401if ${ac_cv_path_install+:} false; then :
2402  $as_echo_n "(cached) " >&6
2403else
2404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407  IFS=$as_save_IFS
2408  test -z "$as_dir" && as_dir=.
2409    # Account for people who put trailing slashes in PATH elements.
2410case $as_dir/ in #((
2411  ./ | .// | /[cC]/* | \
2412  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414  /usr/ucb/* ) ;;
2415  *)
2416    # OSF1 and SCO ODT 3.0 have their own names for install.
2417    # Don't use installbsd from OSF since it installs stuff as root
2418    # by default.
2419    for ac_prog in ginstall scoinst install; do
2420      for ac_exec_ext in '' $ac_executable_extensions; do
2421	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2422	  if test $ac_prog = install &&
2423	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424	    # AIX install.  It has an incompatible calling convention.
2425	    :
2426	  elif test $ac_prog = install &&
2427	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428	    # program-specific install script used by HP pwplus--don't use.
2429	    :
2430	  else
2431	    rm -rf conftest.one conftest.two conftest.dir
2432	    echo one > conftest.one
2433	    echo two > conftest.two
2434	    mkdir conftest.dir
2435	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436	      test -s conftest.one && test -s conftest.two &&
2437	      test -s conftest.dir/conftest.one &&
2438	      test -s conftest.dir/conftest.two
2439	    then
2440	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441	      break 3
2442	    fi
2443	  fi
2444	fi
2445      done
2446    done
2447    ;;
2448esac
2449
2450  done
2451IFS=$as_save_IFS
2452
2453rm -rf conftest.one conftest.two conftest.dir
2454
2455fi
2456  if test "${ac_cv_path_install+set}" = set; then
2457    INSTALL=$ac_cv_path_install
2458  else
2459    # As a last resort, use the slow shell script.  Don't cache a
2460    # value for INSTALL within a source directory, because that will
2461    # break other packages using the cache if that directory is
2462    # removed, or if the value is a relative name.
2463    INSTALL=$ac_install_sh
2464  fi
2465fi
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467$as_echo "$INSTALL" >&6; }
2468
2469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470# It thinks the first close brace ends the variable substitution.
2471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2478$as_echo_n "checking whether build environment is sane... " >&6; }
2479# Reject unsafe characters in $srcdir or the absolute working directory
2480# name.  Accept space and tab only in the latter.
2481am_lf='
2482'
2483case `pwd` in
2484  *[\\\"\#\$\&\'\`$am_lf]*)
2485    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486esac
2487case $srcdir in
2488  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2489    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2490esac
2491
2492# Do 'set' in a subshell so we don't clobber the current shell's
2493# arguments.  Must try -L first in case configure is actually a
2494# symlink; some systems play weird games with the mod time of symlinks
2495# (eg FreeBSD returns the mod time of the symlink's containing
2496# directory).
2497if (
2498   am_has_slept=no
2499   for am_try in 1 2; do
2500     echo "timestamp, slept: $am_has_slept" > conftest.file
2501     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2502     if test "$*" = "X"; then
2503	# -L didn't work.
2504	set X `ls -t "$srcdir/configure" conftest.file`
2505     fi
2506     if test "$*" != "X $srcdir/configure conftest.file" \
2507	&& test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509	# If neither matched, then we have a broken ls.  This can happen
2510	# if, for instance, CONFIG_SHELL is bash and it inherits a
2511	# broken ls alias from the environment.  This has actually
2512	# happened.  Such a system could not be considered "sane".
2513	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2514  alias in your environment" "$LINENO" 5
2515     fi
2516     if test "$2" = conftest.file || test $am_try -eq 2; then
2517       break
2518     fi
2519     # Just in case.
2520     sleep 1
2521     am_has_slept=yes
2522   done
2523   test "$2" = conftest.file
2524   )
2525then
2526   # Ok.
2527   :
2528else
2529   as_fn_error $? "newly created file is older than distributed files!
2530Check your system clock" "$LINENO" 5
2531fi
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
2534# If we didn't sleep, we still need to ensure time stamps of config.status and
2535# generated files are strictly newer.
2536am_sleep_pid=
2537if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2538  ( sleep 1 ) &
2539  am_sleep_pid=$!
2540fi
2541
2542rm -f conftest.file
2543
2544test "$program_prefix" != NONE &&
2545  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2546# Use a double $ so make ignores it.
2547test "$program_suffix" != NONE &&
2548  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2549# Double any \ or $.
2550# By default was `s,x,x', remove it if useless.
2551ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2552program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2553
2554# Expand $ac_aux_dir to an absolute path.
2555am_aux_dir=`cd "$ac_aux_dir" && pwd`
2556
2557if test x"${MISSING+set}" != xset; then
2558  case $am_aux_dir in
2559  *\ * | *\	*)
2560    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2561  *)
2562    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2563  esac
2564fi
2565# Use eval to expand $SHELL
2566if eval "$MISSING --is-lightweight"; then
2567  am_missing_run="$MISSING "
2568else
2569  am_missing_run=
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2571$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2572fi
2573
2574if test x"${install_sh+set}" != xset; then
2575  case $am_aux_dir in
2576  *\ * | *\	*)
2577    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2578  *)
2579    install_sh="\${SHELL} $am_aux_dir/install-sh"
2580  esac
2581fi
2582
2583# Installed binaries are usually stripped using 'strip' when the user
2584# run "make install-strip".  However 'strip' might not be the right
2585# tool to use in cross-compilation environments, therefore Automake
2586# will honor the 'STRIP' environment variable to overrule this program.
2587if test "$cross_compiling" != no; then
2588  if test -n "$ac_tool_prefix"; then
2589  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2590set dummy ${ac_tool_prefix}strip; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if ${ac_cv_prog_STRIP+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$STRIP"; then
2597  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604    for ac_exec_ext in '' $ac_executable_extensions; do
2605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616STRIP=$ac_cv_prog_STRIP
2617if test -n "$STRIP"; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2619$as_echo "$STRIP" >&6; }
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625
2626fi
2627if test -z "$ac_cv_prog_STRIP"; then
2628  ac_ct_STRIP=$STRIP
2629  # Extract the first word of "strip", so it can be a program name with args.
2630set dummy strip; ac_word=$2
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632$as_echo_n "checking for $ac_word... " >&6; }
2633if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2634  $as_echo_n "(cached) " >&6
2635else
2636  if test -n "$ac_ct_STRIP"; then
2637  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644    for ac_exec_ext in '' $ac_executable_extensions; do
2645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646    ac_cv_prog_ac_ct_STRIP="strip"
2647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651  done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2657if test -n "$ac_ct_STRIP"; then
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2659$as_echo "$ac_ct_STRIP" >&6; }
2660else
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662$as_echo "no" >&6; }
2663fi
2664
2665  if test "x$ac_ct_STRIP" = x; then
2666    STRIP=":"
2667  else
2668    case $cross_compiling:$ac_tool_warned in
2669yes:)
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2672ac_tool_warned=yes ;;
2673esac
2674    STRIP=$ac_ct_STRIP
2675  fi
2676else
2677  STRIP="$ac_cv_prog_STRIP"
2678fi
2679
2680fi
2681INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2682
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2684$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2685if test -z "$MKDIR_P"; then
2686  if ${ac_cv_path_mkdir+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694    for ac_prog in mkdir gmkdir; do
2695	 for ac_exec_ext in '' $ac_executable_extensions; do
2696	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2697	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2698	     'mkdir (GNU coreutils) '* | \
2699	     'mkdir (coreutils) '* | \
2700	     'mkdir (fileutils) '4.1*)
2701	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2702	       break 3;;
2703	   esac
2704	 done
2705       done
2706  done
2707IFS=$as_save_IFS
2708
2709fi
2710
2711  test -d ./--version && rmdir ./--version
2712  if test "${ac_cv_path_mkdir+set}" = set; then
2713    MKDIR_P="$ac_cv_path_mkdir -p"
2714  else
2715    # As a last resort, use the slow shell script.  Don't cache a
2716    # value for MKDIR_P within a source directory, because that will
2717    # break other packages using the cache if that directory is
2718    # removed, or if the value is a relative name.
2719    MKDIR_P="$ac_install_sh -d"
2720  fi
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2723$as_echo "$MKDIR_P" >&6; }
2724
2725for ac_prog in gawk mawk nawk awk
2726do
2727  # Extract the first word of "$ac_prog", so it can be a program name with args.
2728set dummy $ac_prog; ac_word=$2
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730$as_echo_n "checking for $ac_word... " >&6; }
2731if ${ac_cv_prog_AWK+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  if test -n "$AWK"; then
2735  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742    for ac_exec_ext in '' $ac_executable_extensions; do
2743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744    ac_cv_prog_AWK="$ac_prog"
2745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749  done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754AWK=$ac_cv_prog_AWK
2755if test -n "$AWK"; then
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757$as_echo "$AWK" >&6; }
2758else
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760$as_echo "no" >&6; }
2761fi
2762
2763
2764  test -n "$AWK" && break
2765done
2766
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2769set x ${MAKE-make}
2770ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2771if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  cat >conftest.make <<\_ACEOF
2775SHELL = /bin/sh
2776all:
2777	@echo '@@@%%%=$(MAKE)=@@@%%%'
2778_ACEOF
2779# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2780case `${MAKE-make} -f conftest.make 2>/dev/null` in
2781  *@@@%%%=?*=@@@%%%*)
2782    eval ac_cv_prog_make_${ac_make}_set=yes;;
2783  *)
2784    eval ac_cv_prog_make_${ac_make}_set=no;;
2785esac
2786rm -f conftest.make
2787fi
2788if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790$as_echo "yes" >&6; }
2791  SET_MAKE=
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794$as_echo "no" >&6; }
2795  SET_MAKE="MAKE=${MAKE-make}"
2796fi
2797
2798rm -rf .tst 2>/dev/null
2799mkdir .tst 2>/dev/null
2800if test -d .tst; then
2801  am__leading_dot=.
2802else
2803  am__leading_dot=_
2804fi
2805rmdir .tst 2>/dev/null
2806
2807# Check whether --enable-silent-rules was given.
2808if test "${enable_silent_rules+set}" = set; then :
2809  enableval=$enable_silent_rules;
2810fi
2811
2812case $enable_silent_rules in # (((
2813  yes) AM_DEFAULT_VERBOSITY=0;;
2814   no) AM_DEFAULT_VERBOSITY=1;;
2815    *) AM_DEFAULT_VERBOSITY=1;;
2816esac
2817am_make=${MAKE-make}
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2819$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2820if ${am_cv_make_support_nested_variables+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if $as_echo 'TRUE=$(BAR$(V))
2824BAR0=false
2825BAR1=true
2826V=1
2827am__doit:
2828	@$(TRUE)
2829.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2830  am_cv_make_support_nested_variables=yes
2831else
2832  am_cv_make_support_nested_variables=no
2833fi
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2836$as_echo "$am_cv_make_support_nested_variables" >&6; }
2837if test $am_cv_make_support_nested_variables = yes; then
2838    AM_V='$(V)'
2839  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2840else
2841  AM_V=$AM_DEFAULT_VERBOSITY
2842  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2843fi
2844AM_BACKSLASH='\'
2845
2846if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848  # is not polluted with repeated "-I."
2849  am__isrc=' -I$(srcdir)'
2850  # test to see if srcdir already configured
2851  if test -f $srcdir/config.status; then
2852    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853  fi
2854fi
2855
2856# test whether we have cygpath
2857if test -z "$CYGPATH_W"; then
2858  if (cygpath --version) >/dev/null 2>/dev/null; then
2859    CYGPATH_W='cygpath -w'
2860  else
2861    CYGPATH_W=echo
2862  fi
2863fi
2864
2865
2866# Define the identity of the package.
2867 PACKAGE='pam_p11'
2868 VERSION='0.3.1'
2869
2870
2871cat >>confdefs.h <<_ACEOF
2872#define PACKAGE "$PACKAGE"
2873_ACEOF
2874
2875
2876cat >>confdefs.h <<_ACEOF
2877#define VERSION "$VERSION"
2878_ACEOF
2879
2880# Some tools Automake needs.
2881
2882ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896# For better backward compatibility.  To be removed once Automake 1.9.x
2897# dies out for good.  For more background, see:
2898# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2899# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2900mkdir_p='$(MKDIR_P)'
2901
2902# We need awk for the "check" target (and possibly the TAP driver).  The
2903# system "awk" is bad on some platforms.
2904# Always define AMTAR for backward compatibility.  Yes, it's still used
2905# in the wild :-(  We should find a proper way to deprecate it ...
2906AMTAR='$${TAR-tar}'
2907
2908
2909# We'll loop over all known methods to create a tar archive until one works.
2910_am_tools='gnutar  pax cpio none'
2911
2912am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2913
2914
2915
2916
2917
2918
2919# POSIX will say in a future version that running "rm -f" with no argument
2920# is OK; and we want to be able to make that assumption in our Makefile
2921# recipes.  So use an aggressive probe to check that the usage we want is
2922# actually supported "in the wild" to an acceptable degree.
2923# See automake bug#10828.
2924# To make any issue more visible, cause the running configure to be aborted
2925# by default if the 'rm' program in use doesn't match our expectations; the
2926# user can still override this though.
2927if rm -f && rm -fr && rm -rf; then : OK; else
2928  cat >&2 <<'END'
2929Oops!
2930
2931Your 'rm' program seems unable to run without file operands specified
2932on the command line, even when the '-f' option is present.  This is contrary
2933to the behaviour of most rm programs out there, and not conforming with
2934the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2935
2936Please tell bug-automake@gnu.org about your system, including the value
2937of your $PATH and any error possibly output before this message.  This
2938can help us improve future automake versions.
2939
2940END
2941  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2942    echo 'Configuration will proceed anyway, since you have set the' >&2
2943    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2944    echo >&2
2945  else
2946    cat >&2 <<'END'
2947Aborting the configuration process, to ensure you take notice of the issue.
2948
2949You can download and install GNU coreutils to get an 'rm' implementation
2950that behaves properly: <http://www.gnu.org/software/coreutils/>.
2951
2952If you want to complete the configuration process using your problematic
2953'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2954to "yes", and re-run configure.
2955
2956END
2957    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2958  fi
2959fi
2960
2961
2962
2963
2964# Make sure we can run config.sub.
2965$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2966  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2967
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2969$as_echo_n "checking build system type... " >&6; }
2970if ${ac_cv_build+:} false; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  ac_build_alias=$build_alias
2974test "x$ac_build_alias" = x &&
2975  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2976test "x$ac_build_alias" = x &&
2977  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2978ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2979  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2980
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2983$as_echo "$ac_cv_build" >&6; }
2984case $ac_cv_build in
2985*-*-*) ;;
2986*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2987esac
2988build=$ac_cv_build
2989ac_save_IFS=$IFS; IFS='-'
2990set x $ac_cv_build
2991shift
2992build_cpu=$1
2993build_vendor=$2
2994shift; shift
2995# Remember, the first character of IFS is used to create $*,
2996# except with old shells:
2997build_os=$*
2998IFS=$ac_save_IFS
2999case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3000
3001
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3003$as_echo_n "checking host system type... " >&6; }
3004if ${ac_cv_host+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  if test "x$host_alias" = x; then
3008  ac_cv_host=$ac_cv_build
3009else
3010  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3011    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3012fi
3013
3014fi
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3016$as_echo "$ac_cv_host" >&6; }
3017case $ac_cv_host in
3018*-*-*) ;;
3019*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3020esac
3021host=$ac_cv_host
3022ac_save_IFS=$IFS; IFS='-'
3023set x $ac_cv_host
3024shift
3025host_cpu=$1
3026host_vendor=$2
3027shift; shift
3028# Remember, the first character of IFS is used to create $*,
3029# except with old shells:
3030host_os=$*
3031IFS=$ac_save_IFS
3032case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3033
3034
3035ac_ext=c
3036ac_cpp='$CPP $CPPFLAGS'
3037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040if test -n "$ac_tool_prefix"; then
3041  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}gcc; 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_CC+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$CC"; then
3049  ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
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
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078fi
3079if test -z "$ac_cv_prog_CC"; then
3080  ac_ct_CC=$CC
3081  # Extract the first word of "gcc", so it can be a program name with args.
3082set dummy gcc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_ac_ct_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$ac_ct_CC"; then
3089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_ac_ct_CC="gcc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111$as_echo "$ac_ct_CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117  if test "x$ac_ct_CC" = x; then
3118    CC=""
3119  else
3120    case $cross_compiling:$ac_tool_warned in
3121yes:)
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124ac_tool_warned=yes ;;
3125esac
3126    CC=$ac_ct_CC
3127  fi
3128else
3129  CC="$ac_cv_prog_CC"
3130fi
3131
3132if test -z "$CC"; then
3133          if test -n "$ac_tool_prefix"; then
3134    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135set dummy ${ac_tool_prefix}cc; ac_word=$2
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137$as_echo_n "checking for $ac_word... " >&6; }
3138if ${ac_cv_prog_CC+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  if test -n "$CC"; then
3142  ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149    for ac_exec_ext in '' $ac_executable_extensions; do
3150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151    ac_cv_prog_CC="${ac_tool_prefix}cc"
3152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153    break 2
3154  fi
3155done
3156  done
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164$as_echo "$CC" >&6; }
3165else
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168fi
3169
3170
3171  fi
3172fi
3173if test -z "$CC"; then
3174  # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if ${ac_cv_prog_CC+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test -n "$CC"; then
3182  ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184  ac_prog_rejected=no
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193       ac_prog_rejected=yes
3194       continue
3195     fi
3196    ac_cv_prog_CC="cc"
3197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198    break 2
3199  fi
3200done
3201  done
3202IFS=$as_save_IFS
3203
3204if test $ac_prog_rejected = yes; then
3205  # We found a bogon in the path, so make sure we never use it.
3206  set dummy $ac_cv_prog_CC
3207  shift
3208  if test $# != 0; then
3209    # We chose a different compiler from the bogus one.
3210    # However, it has the same basename, so the bogon will be chosen
3211    # first if we set CC to just the basename; use the full file name.
3212    shift
3213    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214  fi
3215fi
3216fi
3217fi
3218CC=$ac_cv_prog_CC
3219if test -n "$CC"; then
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221$as_echo "$CC" >&6; }
3222else
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227
3228fi
3229if test -z "$CC"; then
3230  if test -n "$ac_tool_prefix"; then
3231  for ac_prog in cl.exe
3232  do
3233    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
3237if ${ac_cv_prog_CC+:} false; then :
3238  $as_echo_n "(cached) " >&6
3239else
3240  if test -n "$CC"; then
3241  ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248    for ac_exec_ext in '' $ac_executable_extensions; do
3249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255  done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
3264else
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
3270    test -n "$CC" && break
3271  done
3272fi
3273if test -z "$CC"; then
3274  ac_ct_CC=$CC
3275  for ac_prog in cl.exe
3276do
3277  # Extract the first word of "$ac_prog", so it can be a program name with args.
3278set dummy $ac_prog; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if test -n "$ac_ct_CC"; then
3285  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292    for ac_exec_ext in '' $ac_executable_extensions; do
3293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294    ac_cv_prog_ac_ct_CC="$ac_prog"
3295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299  done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307$as_echo "$ac_ct_CC" >&6; }
3308else
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313
3314  test -n "$ac_ct_CC" && break
3315done
3316
3317  if test "x$ac_ct_CC" = x; then
3318    CC=""
3319  else
3320    case $cross_compiling:$ac_tool_warned in
3321yes:)
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324ac_tool_warned=yes ;;
3325esac
3326    CC=$ac_ct_CC
3327  fi
3328fi
3329
3330fi
3331
3332
3333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335as_fn_error $? "no acceptable C compiler found in \$PATH
3336See \`config.log' for more details" "$LINENO" 5; }
3337
3338# Provide some information about the compiler.
3339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3340set X $ac_compile
3341ac_compiler=$2
3342for ac_option in --version -v -V -qversion; do
3343  { { ac_try="$ac_compiler $ac_option >&5"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3351  ac_status=$?
3352  if test -s conftest.err; then
3353    sed '10a\
3354... rest of stderr output deleted ...
3355         10q' conftest.err >conftest.er1
3356    cat conftest.er1 >&5
3357  fi
3358  rm -f conftest.er1 conftest.err
3359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360  test $ac_status = 0; }
3361done
3362
3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h.  */
3365
3366int
3367main ()
3368{
3369
3370  ;
3371  return 0;
3372}
3373_ACEOF
3374ac_clean_files_save=$ac_clean_files
3375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3376# Try to create an executable without -o first, disregard a.out.
3377# It will help us diagnose broken compilers, and finding out an intuition
3378# of exeext.
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380$as_echo_n "checking whether the C compiler works... " >&6; }
3381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3382
3383# The possible output files:
3384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3385
3386ac_rmfiles=
3387for ac_file in $ac_files
3388do
3389  case $ac_file in
3390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392  esac
3393done
3394rm -f $ac_rmfiles
3395
3396if { { ac_try="$ac_link_default"
3397case "(($ac_try" in
3398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399  *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403  (eval "$ac_link_default") 2>&5
3404  ac_status=$?
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }; then :
3407  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3410# so that the user can short-circuit this test for compilers unknown to
3411# Autoconf.
3412for ac_file in $ac_files ''
3413do
3414  test -f "$ac_file" || continue
3415  case $ac_file in
3416    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3417	;;
3418    [ab].out )
3419	# We found the default executable, but exeext='' is most
3420	# certainly right.
3421	break;;
3422    *.* )
3423	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3424	then :; else
3425	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426	fi
3427	# We set ac_cv_exeext here because the later test for it is not
3428	# safe: cross compilers may not add the suffix if given an `-o'
3429	# argument, so we may need to know it at that point already.
3430	# Even if this section looks crufty: it has the advantage of
3431	# actually working.
3432	break;;
3433    * )
3434	break;;
3435  esac
3436done
3437test "$ac_cv_exeext" = no && ac_cv_exeext=
3438
3439else
3440  ac_file=''
3441fi
3442if test -z "$ac_file"; then :
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445$as_echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error 77 "C compiler cannot create executables
3451See \`config.log' for more details" "$LINENO" 5; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454$as_echo "yes" >&6; }
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457$as_echo_n "checking for C compiler default output file name... " >&6; }
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459$as_echo "$ac_file" >&6; }
3460ac_exeext=$ac_cv_exeext
3461
3462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3463ac_clean_files=$ac_clean_files_save
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3465$as_echo_n "checking for suffix of executables... " >&6; }
3466if { { ac_try="$ac_link"
3467case "(($ac_try" in
3468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469  *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
3473  (eval "$ac_link") 2>&5
3474  ac_status=$?
3475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476  test $ac_status = 0; }; then :
3477  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3479# work properly (i.e., refer to `conftest.exe'), while it won't with
3480# `rm'.
3481for ac_file in conftest.exe conftest conftest.*; do
3482  test -f "$ac_file" || continue
3483  case $ac_file in
3484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486	  break;;
3487    * ) break;;
3488  esac
3489done
3490else
3491  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494See \`config.log' for more details" "$LINENO" 5; }
3495fi
3496rm -f conftest conftest$ac_cv_exeext
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498$as_echo "$ac_cv_exeext" >&6; }
3499
3500rm -f conftest.$ac_ext
3501EXEEXT=$ac_cv_exeext
3502ac_exeext=$EXEEXT
3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505#include <stdio.h>
3506int
3507main ()
3508{
3509FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516ac_clean_files="$ac_clean_files conftest.out"
3517# Check that the compiler produces executables we can run.  If not, either
3518# the compiler is broken, or we cross compile.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520$as_echo_n "checking whether we are cross compiling... " >&6; }
3521if test "$cross_compiling" != yes; then
3522  { { ac_try="$ac_link"
3523case "(($ac_try" in
3524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525  *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529  (eval "$ac_link") 2>&5
3530  ac_status=$?
3531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532  test $ac_status = 0; }
3533  if { ac_try='./conftest$ac_cv_exeext'
3534  { { case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540  (eval "$ac_try") 2>&5
3541  ac_status=$?
3542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543  test $ac_status = 0; }; }; then
3544    cross_compiling=no
3545  else
3546    if test "$cross_compiling" = maybe; then
3547	cross_compiling=yes
3548    else
3549	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot run C compiled programs.
3552If you meant to cross compile, use \`--host'.
3553See \`config.log' for more details" "$LINENO" 5; }
3554    fi
3555  fi
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558$as_echo "$cross_compiling" >&6; }
3559
3560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561ac_clean_files=$ac_clean_files_save
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3563$as_echo_n "checking for suffix of object files... " >&6; }
3564if ${ac_cv_objext+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578rm -f conftest.o conftest.obj
3579if { { ac_try="$ac_compile"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586  (eval "$ac_compile") 2>&5
3587  ac_status=$?
3588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589  test $ac_status = 0; }; then :
3590  for ac_file in conftest.o conftest.obj conftest.*; do
3591  test -f "$ac_file" || continue;
3592  case $ac_file in
3593    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3594    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595       break;;
3596  esac
3597done
3598else
3599  $as_echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "cannot compute suffix of object files: cannot compile
3605See \`config.log' for more details" "$LINENO" 5; }
3606fi
3607rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3610$as_echo "$ac_cv_objext" >&6; }
3611OBJEXT=$ac_cv_objext
3612ac_objext=$OBJEXT
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615if ${ac_cv_c_compiler_gnu+:} false; then :
3616  $as_echo_n "(cached) " >&6
3617else
3618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620
3621int
3622main ()
3623{
3624#ifndef __GNUC__
3625       choke me
3626#endif
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632if ac_fn_c_try_compile "$LINENO"; then :
3633  ac_compiler_gnu=yes
3634else
3635  ac_compiler_gnu=no
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643if test $ac_compiler_gnu = yes; then
3644  GCC=yes
3645else
3646  GCC=
3647fi
3648ac_test_CFLAGS=${CFLAGS+set}
3649ac_save_CFLAGS=$CFLAGS
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3651$as_echo_n "checking whether $CC accepts -g... " >&6; }
3652if ${ac_cv_prog_cc_g+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  ac_save_c_werror_flag=$ac_c_werror_flag
3656   ac_c_werror_flag=yes
3657   ac_cv_prog_cc_g=no
3658   CFLAGS="-g"
3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661
3662int
3663main ()
3664{
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670if ac_fn_c_try_compile "$LINENO"; then :
3671  ac_cv_prog_cc_g=yes
3672else
3673  CFLAGS=""
3674      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685if ac_fn_c_try_compile "$LINENO"; then :
3686
3687else
3688  ac_c_werror_flag=$ac_save_c_werror_flag
3689	 CFLAGS="-g"
3690	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691/* end confdefs.h.  */
3692
3693int
3694main ()
3695{
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701if ac_fn_c_try_compile "$LINENO"; then :
3702  ac_cv_prog_cc_g=yes
3703fi
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709   ac_c_werror_flag=$ac_save_c_werror_flag
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3712$as_echo "$ac_cv_prog_cc_g" >&6; }
3713if test "$ac_test_CFLAGS" = set; then
3714  CFLAGS=$ac_save_CFLAGS
3715elif test $ac_cv_prog_cc_g = yes; then
3716  if test "$GCC" = yes; then
3717    CFLAGS="-g -O2"
3718  else
3719    CFLAGS="-g"
3720  fi
3721else
3722  if test "$GCC" = yes; then
3723    CFLAGS="-O2"
3724  else
3725    CFLAGS=
3726  fi
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3730if ${ac_cv_prog_cc_c89+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  ac_cv_prog_cc_c89=no
3734ac_save_CC=$CC
3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737#include <stdarg.h>
3738#include <stdio.h>
3739struct stat;
3740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3741struct buf { int x; };
3742FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743static char *e (p, i)
3744     char **p;
3745     int i;
3746{
3747  return p[i];
3748}
3749static char *f (char * (*g) (char **, int), char **p, ...)
3750{
3751  char *s;
3752  va_list v;
3753  va_start (v,p);
3754  s = g (p, va_arg (v,int));
3755  va_end (v);
3756  return s;
3757}
3758
3759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3760   function prototypes and stuff, but not '\xHH' hex character constants.
3761   These don't provoke an error unfortunately, instead are silently treated
3762   as 'x'.  The following induces an error, until -std is added to get
3763   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3764   array size at least.  It's necessary to write '\x00'==0 to get something
3765   that's true only with -std.  */
3766int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3767
3768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769   inside strings and character constants.  */
3770#define FOO(x) 'x'
3771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3772
3773int test (int i, double x);
3774struct s1 {int (*f) (int a);};
3775struct s2 {int (*f) (double a);};
3776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777int argc;
3778char **argv;
3779int
3780main ()
3781{
3782return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3789do
3790  CC="$ac_save_CC $ac_arg"
3791  if ac_fn_c_try_compile "$LINENO"; then :
3792  ac_cv_prog_cc_c89=$ac_arg
3793fi
3794rm -f core conftest.err conftest.$ac_objext
3795  test "x$ac_cv_prog_cc_c89" != "xno" && break
3796done
3797rm -f conftest.$ac_ext
3798CC=$ac_save_CC
3799
3800fi
3801# AC_CACHE_VAL
3802case "x$ac_cv_prog_cc_c89" in
3803  x)
3804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3805$as_echo "none needed" >&6; } ;;
3806  xno)
3807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3808$as_echo "unsupported" >&6; } ;;
3809  *)
3810    CC="$CC $ac_cv_prog_cc_c89"
3811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3813esac
3814if test "x$ac_cv_prog_cc_c89" != xno; then :
3815
3816fi
3817
3818ac_ext=c
3819ac_cpp='$CPP $CPPFLAGS'
3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
3824ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3830$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3831if ${am_cv_prog_cc_c_o+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845  # Make sure it works both with $CC and with simple cc.
3846  # Following AC_PROG_CC_C_O, we do the test twice because some
3847  # compilers refuse to overwrite an existing .o file with -o,
3848  # though they will create one.
3849  am_cv_prog_cc_c_o=yes
3850  for am_i in 1 2; do
3851    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3852   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } \
3856         && test -f conftest2.$ac_objext; then
3857      : OK
3858    else
3859      am_cv_prog_cc_c_o=no
3860      break
3861    fi
3862  done
3863  rm -f core conftest*
3864  unset am_i
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3867$as_echo "$am_cv_prog_cc_c_o" >&6; }
3868if test "$am_cv_prog_cc_c_o" != yes; then
3869   # Losing compiler, so override with the script.
3870   # FIXME: It is wrong to rewrite CC.
3871   # But if we don't then we get into trouble of one sort or another.
3872   # A longer-term fix would be to have automake use am__CC in this case,
3873   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3874   CC="$am_aux_dir/compile $CC"
3875fi
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882DEPDIR="${am__leading_dot}deps"
3883
3884ac_config_commands="$ac_config_commands depfiles"
3885
3886
3887am_make=${MAKE-make}
3888cat > confinc << 'END'
3889am__doit:
3890	@echo this is the am__doit target
3891.PHONY: am__doit
3892END
3893# If we don't find an include directive, just comment out the code.
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3895$as_echo_n "checking for style of include used by $am_make... " >&6; }
3896am__include="#"
3897am__quote=
3898_am_result=none
3899# First try GNU make style include.
3900echo "include confinc" > confmf
3901# Ignore all kinds of additional output from 'make'.
3902case `$am_make -s -f confmf 2> /dev/null` in #(
3903*the\ am__doit\ target*)
3904  am__include=include
3905  am__quote=
3906  _am_result=GNU
3907  ;;
3908esac
3909# Now try BSD make style include.
3910if test "$am__include" = "#"; then
3911   echo '.include "confinc"' > confmf
3912   case `$am_make -s -f confmf 2> /dev/null` in #(
3913   *the\ am__doit\ target*)
3914     am__include=.include
3915     am__quote="\""
3916     _am_result=BSD
3917     ;;
3918   esac
3919fi
3920
3921
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3923$as_echo "$_am_result" >&6; }
3924rm -f confinc confmf
3925
3926# Check whether --enable-dependency-tracking was given.
3927if test "${enable_dependency_tracking+set}" = set; then :
3928  enableval=$enable_dependency_tracking;
3929fi
3930
3931if test "x$enable_dependency_tracking" != xno; then
3932  am_depcomp="$ac_aux_dir/depcomp"
3933  AMDEPBACKSLASH='\'
3934  am__nodep='_no'
3935fi
3936 if test "x$enable_dependency_tracking" != xno; then
3937  AMDEP_TRUE=
3938  AMDEP_FALSE='#'
3939else
3940  AMDEP_TRUE='#'
3941  AMDEP_FALSE=
3942fi
3943
3944
3945
3946depcc="$CC"   am_compiler_list=
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3949$as_echo_n "checking dependency style of $depcc... " >&6; }
3950if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3954  # We make a subdir and do the tests there.  Otherwise we can end up
3955  # making bogus files that we don't know about and never remove.  For
3956  # instance it was reported that on HP-UX the gcc test will end up
3957  # making a dummy file named 'D' -- because '-MD' means "put the output
3958  # in D".
3959  rm -rf conftest.dir
3960  mkdir conftest.dir
3961  # Copy depcomp to subdir because otherwise we won't find it if we're
3962  # using a relative directory.
3963  cp "$am_depcomp" conftest.dir
3964  cd conftest.dir
3965  # We will build objects and dependencies in a subdirectory because
3966  # it helps to detect inapplicable dependency modes.  For instance
3967  # both Tru64's cc and ICC support -MD to output dependencies as a
3968  # side effect of compilation, but ICC will put the dependencies in
3969  # the current directory while Tru64 will put them in the object
3970  # directory.
3971  mkdir sub
3972
3973  am_cv_CC_dependencies_compiler_type=none
3974  if test "$am_compiler_list" = ""; then
3975     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3976  fi
3977  am__universal=false
3978  case " $depcc " in #(
3979     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3980     esac
3981
3982  for depmode in $am_compiler_list; do
3983    # Setup a source with many dependencies, because some compilers
3984    # like to wrap large dependency lists on column 80 (with \), and
3985    # we should not choose a depcomp mode which is confused by this.
3986    #
3987    # We need to recreate these files for each test, as the compiler may
3988    # overwrite some of them when testing with obscure command lines.
3989    # This happens at least with the AIX C compiler.
3990    : > sub/conftest.c
3991    for i in 1 2 3 4 5 6; do
3992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3993      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3994      # Solaris 10 /bin/sh.
3995      echo '/* dummy */' > sub/conftst$i.h
3996    done
3997    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3998
3999    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4000    # mode.  It turns out that the SunPro C++ compiler does not properly
4001    # handle '-M -o', and we need to detect this.  Also, some Intel
4002    # versions had trouble with output in subdirs.
4003    am__obj=sub/conftest.${OBJEXT-o}
4004    am__minus_obj="-o $am__obj"
4005    case $depmode in
4006    gcc)
4007      # This depmode causes a compiler race in universal mode.
4008      test "$am__universal" = false || continue
4009      ;;
4010    nosideeffect)
4011      # After this tag, mechanisms are not by side-effect, so they'll
4012      # only be used when explicitly requested.
4013      if test "x$enable_dependency_tracking" = xyes; then
4014	continue
4015      else
4016	break
4017      fi
4018      ;;
4019    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4020      # This compiler won't grok '-c -o', but also, the minuso test has
4021      # not run yet.  These depmodes are late enough in the game, and
4022      # so weak that their functioning should not be impacted.
4023      am__obj=conftest.${OBJEXT-o}
4024      am__minus_obj=
4025      ;;
4026    none) break ;;
4027    esac
4028    if depmode=$depmode \
4029       source=sub/conftest.c object=$am__obj \
4030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4031       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4032         >/dev/null 2>conftest.err &&
4033       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4034       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4035       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4036       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4037      # icc doesn't choke on unknown options, it will just issue warnings
4038      # or remarks (even with -Werror).  So we grep stderr for any message
4039      # that says an option was ignored or not supported.
4040      # When given -MP, icc 7.0 and 7.1 complain thusly:
4041      #   icc: Command line warning: ignoring option '-M'; no argument required
4042      # The diagnosis changed in icc 8.0:
4043      #   icc: Command line remark: option '-MP' not supported
4044      if (grep 'ignoring option' conftest.err ||
4045          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4046        am_cv_CC_dependencies_compiler_type=$depmode
4047        break
4048      fi
4049    fi
4050  done
4051
4052  cd ..
4053  rm -rf conftest.dir
4054else
4055  am_cv_CC_dependencies_compiler_type=none
4056fi
4057
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4060$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4062
4063 if
4064  test "x$enable_dependency_tracking" != xno \
4065  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4066  am__fastdepCC_TRUE=
4067  am__fastdepCC_FALSE='#'
4068else
4069  am__fastdepCC_TRUE='#'
4070  am__fastdepCC_FALSE=
4071fi
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4082	if test -n "$ac_tool_prefix"; then
4083  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4084set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if ${ac_cv_path_PKG_CONFIG+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  case $PKG_CONFIG in
4091  [\\/]* | ?:[\\/]*)
4092  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4093  ;;
4094  *)
4095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100    for ac_exec_ext in '' $ac_executable_extensions; do
4101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107  done
4108IFS=$as_save_IFS
4109
4110  ;;
4111esac
4112fi
4113PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4114if test -n "$PKG_CONFIG"; then
4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4116$as_echo "$PKG_CONFIG" >&6; }
4117else
4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119$as_echo "no" >&6; }
4120fi
4121
4122
4123fi
4124if test -z "$ac_cv_path_PKG_CONFIG"; then
4125  ac_pt_PKG_CONFIG=$PKG_CONFIG
4126  # Extract the first word of "pkg-config", so it can be a program name with args.
4127set dummy pkg-config; ac_word=$2
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129$as_echo_n "checking for $ac_word... " >&6; }
4130if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4131  $as_echo_n "(cached) " >&6
4132else
4133  case $ac_pt_PKG_CONFIG in
4134  [\\/]* | ?:[\\/]*)
4135  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4136  ;;
4137  *)
4138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147    break 2
4148  fi
4149done
4150  done
4151IFS=$as_save_IFS
4152
4153  ;;
4154esac
4155fi
4156ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4157if test -n "$ac_pt_PKG_CONFIG"; then
4158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4159$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4160else
4161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
4163fi
4164
4165  if test "x$ac_pt_PKG_CONFIG" = x; then
4166    PKG_CONFIG=""
4167  else
4168    case $cross_compiling:$ac_tool_warned in
4169yes:)
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172ac_tool_warned=yes ;;
4173esac
4174    PKG_CONFIG=$ac_pt_PKG_CONFIG
4175  fi
4176else
4177  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4178fi
4179
4180fi
4181if test -n "$PKG_CONFIG"; then
4182	_pkg_min_version=0.9.0
4183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4184$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4185	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4187$as_echo "yes" >&6; }
4188	else
4189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
4191		PKG_CONFIG=""
4192	fi
4193fi
4194
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4201$as_echo_n "checking how to run the C preprocessor... " >&6; }
4202# On Suns, sometimes $CPP names a directory.
4203if test -n "$CPP" && test -d "$CPP"; then
4204  CPP=
4205fi
4206if test -z "$CPP"; then
4207  if ${ac_cv_prog_CPP+:} false; then :
4208  $as_echo_n "(cached) " >&6
4209else
4210      # Double quotes because CPP needs to be expanded
4211    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212    do
4213      ac_preproc_ok=false
4214for ac_c_preproc_warn_flag in '' yes
4215do
4216  # Use a header file that comes with gcc, so configuring glibc
4217  # with a fresh cross-compiler works.
4218  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219  # <limits.h> exists even on freestanding compilers.
4220  # On the NeXT, cc -E runs the code through the compiler's parser,
4221  # not just through cpp. "Syntax error" is here to catch this case.
4222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h.  */
4224#ifdef __STDC__
4225# include <limits.h>
4226#else
4227# include <assert.h>
4228#endif
4229		     Syntax error
4230_ACEOF
4231if ac_fn_c_try_cpp "$LINENO"; then :
4232
4233else
4234  # Broken: fails on valid input.
4235continue
4236fi
4237rm -f conftest.err conftest.i conftest.$ac_ext
4238
4239  # OK, works on sane cases.  Now check whether nonexistent headers
4240  # can be detected and how.
4241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243#include <ac_nonexistent.h>
4244_ACEOF
4245if ac_fn_c_try_cpp "$LINENO"; then :
4246  # Broken: success on invalid input.
4247continue
4248else
4249  # Passes both tests.
4250ac_preproc_ok=:
4251break
4252fi
4253rm -f conftest.err conftest.i conftest.$ac_ext
4254
4255done
4256# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257rm -f conftest.i conftest.err conftest.$ac_ext
4258if $ac_preproc_ok; then :
4259  break
4260fi
4261
4262    done
4263    ac_cv_prog_CPP=$CPP
4264
4265fi
4266  CPP=$ac_cv_prog_CPP
4267else
4268  ac_cv_prog_CPP=$CPP
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4271$as_echo "$CPP" >&6; }
4272ac_preproc_ok=false
4273for ac_c_preproc_warn_flag in '' yes
4274do
4275  # Use a header file that comes with gcc, so configuring glibc
4276  # with a fresh cross-compiler works.
4277  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278  # <limits.h> exists even on freestanding compilers.
4279  # On the NeXT, cc -E runs the code through the compiler's parser,
4280  # not just through cpp. "Syntax error" is here to catch this case.
4281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283#ifdef __STDC__
4284# include <limits.h>
4285#else
4286# include <assert.h>
4287#endif
4288		     Syntax error
4289_ACEOF
4290if ac_fn_c_try_cpp "$LINENO"; then :
4291
4292else
4293  # Broken: fails on valid input.
4294continue
4295fi
4296rm -f conftest.err conftest.i conftest.$ac_ext
4297
4298  # OK, works on sane cases.  Now check whether nonexistent headers
4299  # can be detected and how.
4300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302#include <ac_nonexistent.h>
4303_ACEOF
4304if ac_fn_c_try_cpp "$LINENO"; then :
4305  # Broken: success on invalid input.
4306continue
4307else
4308  # Passes both tests.
4309ac_preproc_ok=:
4310break
4311fi
4312rm -f conftest.err conftest.i conftest.$ac_ext
4313
4314done
4315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4316rm -f conftest.i conftest.err conftest.$ac_ext
4317if $ac_preproc_ok; then :
4318
4319else
4320  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4323See \`config.log' for more details" "$LINENO" 5; }
4324fi
4325
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335if ${ac_cv_path_GREP+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  if test -z "$GREP"; then
4339  ac_path_GREP_found=false
4340  # Loop through the user's path and test for each of PROGNAME-LIST
4341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346    for ac_prog in grep ggrep; do
4347    for ac_exec_ext in '' $ac_executable_extensions; do
4348      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349      as_fn_executable_p "$ac_path_GREP" || continue
4350# Check for GNU ac_path_GREP and select it if it is found.
4351  # Check for GNU $ac_path_GREP
4352case `"$ac_path_GREP" --version 2>&1` in
4353*GNU*)
4354  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4355*)
4356  ac_count=0
4357  $as_echo_n 0123456789 >"conftest.in"
4358  while :
4359  do
4360    cat "conftest.in" "conftest.in" >"conftest.tmp"
4361    mv "conftest.tmp" "conftest.in"
4362    cp "conftest.in" "conftest.nl"
4363    $as_echo 'GREP' >> "conftest.nl"
4364    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366    as_fn_arith $ac_count + 1 && ac_count=$as_val
4367    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368      # Best one so far, save it but keep looking for a better one
4369      ac_cv_path_GREP="$ac_path_GREP"
4370      ac_path_GREP_max=$ac_count
4371    fi
4372    # 10*(2^10) chars as input seems more than enough
4373    test $ac_count -gt 10 && break
4374  done
4375  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376esac
4377
4378      $ac_path_GREP_found && break 3
4379    done
4380  done
4381  done
4382IFS=$as_save_IFS
4383  if test -z "$ac_cv_path_GREP"; then
4384    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385  fi
4386else
4387  ac_cv_path_GREP=$GREP
4388fi
4389
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392$as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4394
4395
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397$as_echo_n "checking for egrep... " >&6; }
4398if ${ac_cv_path_EGREP+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402   then ac_cv_path_EGREP="$GREP -E"
4403   else
4404     if test -z "$EGREP"; then
4405  ac_path_EGREP_found=false
4406  # Loop through the user's path and test for each of PROGNAME-LIST
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_prog in egrep; do
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415      as_fn_executable_p "$ac_path_EGREP" || continue
4416# Check for GNU ac_path_EGREP and select it if it is found.
4417  # Check for GNU $ac_path_EGREP
4418case `"$ac_path_EGREP" --version 2>&1` in
4419*GNU*)
4420  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421*)
4422  ac_count=0
4423  $as_echo_n 0123456789 >"conftest.in"
4424  while :
4425  do
4426    cat "conftest.in" "conftest.in" >"conftest.tmp"
4427    mv "conftest.tmp" "conftest.in"
4428    cp "conftest.in" "conftest.nl"
4429    $as_echo 'EGREP' >> "conftest.nl"
4430    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432    as_fn_arith $ac_count + 1 && ac_count=$as_val
4433    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434      # Best one so far, save it but keep looking for a better one
4435      ac_cv_path_EGREP="$ac_path_EGREP"
4436      ac_path_EGREP_max=$ac_count
4437    fi
4438    # 10*(2^10) chars as input seems more than enough
4439    test $ac_count -gt 10 && break
4440  done
4441  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442esac
4443
4444      $ac_path_EGREP_found && break 3
4445    done
4446  done
4447  done
4448IFS=$as_save_IFS
4449  if test -z "$ac_cv_path_EGREP"; then
4450    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451  fi
4452else
4453  ac_cv_path_EGREP=$EGREP
4454fi
4455
4456   fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459$as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464$as_echo_n "checking for ANSI C header files... " >&6; }
4465if ${ac_cv_header_stdc+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470#include <stdlib.h>
4471#include <stdarg.h>
4472#include <string.h>
4473#include <float.h>
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
4484  ac_cv_header_stdc=yes
4485else
4486  ac_cv_header_stdc=no
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489
4490if test $ac_cv_header_stdc = yes; then
4491  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#include <string.h>
4495
4496_ACEOF
4497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498  $EGREP "memchr" >/dev/null 2>&1; then :
4499
4500else
4501  ac_cv_header_stdc=no
4502fi
4503rm -f conftest*
4504
4505fi
4506
4507if test $ac_cv_header_stdc = yes; then
4508  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <stdlib.h>
4512
4513_ACEOF
4514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515  $EGREP "free" >/dev/null 2>&1; then :
4516
4517else
4518  ac_cv_header_stdc=no
4519fi
4520rm -f conftest*
4521
4522fi
4523
4524if test $ac_cv_header_stdc = yes; then
4525  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526  if test "$cross_compiling" = yes; then :
4527  :
4528else
4529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531#include <ctype.h>
4532#include <stdlib.h>
4533#if ((' ' & 0x0FF) == 0x020)
4534# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536#else
4537# define ISLOWER(c) \
4538		   (('a' <= (c) && (c) <= 'i') \
4539		     || ('j' <= (c) && (c) <= 'r') \
4540		     || ('s' <= (c) && (c) <= 'z'))
4541# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542#endif
4543
4544#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4545int
4546main ()
4547{
4548  int i;
4549  for (i = 0; i < 256; i++)
4550    if (XOR (islower (i), ISLOWER (i))
4551	|| toupper (i) != TOUPPER (i))
4552      return 2;
4553  return 0;
4554}
4555_ACEOF
4556if ac_fn_c_try_run "$LINENO"; then :
4557
4558else
4559  ac_cv_header_stdc=no
4560fi
4561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562  conftest.$ac_objext conftest.beam conftest.$ac_ext
4563fi
4564
4565fi
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568$as_echo "$ac_cv_header_stdc" >&6; }
4569if test $ac_cv_header_stdc = yes; then
4570
4571$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4572
4573fi
4574
4575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577		  inttypes.h stdint.h unistd.h
4578do :
4579  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4581"
4582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583  cat >>confdefs.h <<_ACEOF
4584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585_ACEOF
4586
4587fi
4588
4589done
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4593$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4594if ${ac_cv_c_bigendian+:} false; then :
4595  $as_echo_n "(cached) " >&6
4596else
4597  ac_cv_c_bigendian=unknown
4598    # See if we're dealing with a universal compiler.
4599    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h.  */
4601#ifndef __APPLE_CC__
4602	       not a universal capable compiler
4603	     #endif
4604	     typedef int dummy;
4605
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"; then :
4608
4609	# Check for potential -arch flags.  It is not universal unless
4610	# there are at least two -arch flags with different values.
4611	ac_arch=
4612	ac_prev=
4613	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4614	 if test -n "$ac_prev"; then
4615	   case $ac_word in
4616	     i?86 | x86_64 | ppc | ppc64)
4617	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4618		 ac_arch=$ac_word
4619	       else
4620		 ac_cv_c_bigendian=universal
4621		 break
4622	       fi
4623	       ;;
4624	   esac
4625	   ac_prev=
4626	 elif test "x$ac_word" = "x-arch"; then
4627	   ac_prev=arch
4628	 fi
4629       done
4630fi
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632    if test $ac_cv_c_bigendian = unknown; then
4633      # See if sys/param.h defines the BYTE_ORDER macro.
4634      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h.  */
4636#include <sys/types.h>
4637	     #include <sys/param.h>
4638
4639int
4640main ()
4641{
4642#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4643		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4644		     && LITTLE_ENDIAN)
4645	      bogus endian macros
4646	     #endif
4647
4648  ;
4649  return 0;
4650}
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653  # It does; now see whether it defined to BIG_ENDIAN or not.
4654	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656#include <sys/types.h>
4657		#include <sys/param.h>
4658
4659int
4660main ()
4661{
4662#if BYTE_ORDER != BIG_ENDIAN
4663		 not big endian
4664		#endif
4665
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_compile "$LINENO"; then :
4671  ac_cv_c_bigendian=yes
4672else
4673  ac_cv_c_bigendian=no
4674fi
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678    fi
4679    if test $ac_cv_c_bigendian = unknown; then
4680      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4681      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683#include <limits.h>
4684
4685int
4686main ()
4687{
4688#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4689	      bogus endian macros
4690	     #endif
4691
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696if ac_fn_c_try_compile "$LINENO"; then :
4697  # It does; now see whether it defined to _BIG_ENDIAN or not.
4698	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699/* end confdefs.h.  */
4700#include <limits.h>
4701
4702int
4703main ()
4704{
4705#ifndef _BIG_ENDIAN
4706		 not big endian
4707		#endif
4708
4709  ;
4710  return 0;
4711}
4712_ACEOF
4713if ac_fn_c_try_compile "$LINENO"; then :
4714  ac_cv_c_bigendian=yes
4715else
4716  ac_cv_c_bigendian=no
4717fi
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719fi
4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721    fi
4722    if test $ac_cv_c_bigendian = unknown; then
4723      # Compile a test program.
4724      if test "$cross_compiling" = yes; then :
4725  # Try to guess by grepping values from an object file.
4726	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728short int ascii_mm[] =
4729		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4730		short int ascii_ii[] =
4731		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4732		int use_ascii (int i) {
4733		  return ascii_mm[i] + ascii_ii[i];
4734		}
4735		short int ebcdic_ii[] =
4736		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4737		short int ebcdic_mm[] =
4738		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4739		int use_ebcdic (int i) {
4740		  return ebcdic_mm[i] + ebcdic_ii[i];
4741		}
4742		extern int foo;
4743
4744int
4745main ()
4746{
4747return use_ascii (foo) == use_ebcdic (foo);
4748  ;
4749  return 0;
4750}
4751_ACEOF
4752if ac_fn_c_try_compile "$LINENO"; then :
4753  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4754	      ac_cv_c_bigendian=yes
4755	    fi
4756	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4757	      if test "$ac_cv_c_bigendian" = unknown; then
4758		ac_cv_c_bigendian=no
4759	      else
4760		# finding both strings is unlikely to happen, but who knows?
4761		ac_cv_c_bigendian=unknown
4762	      fi
4763	    fi
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766else
4767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h.  */
4769$ac_includes_default
4770int
4771main ()
4772{
4773
4774	     /* Are we little or big endian?  From Harbison&Steele.  */
4775	     union
4776	     {
4777	       long int l;
4778	       char c[sizeof (long int)];
4779	     } u;
4780	     u.l = 1;
4781	     return u.c[sizeof (long int) - 1] == 1;
4782
4783  ;
4784  return 0;
4785}
4786_ACEOF
4787if ac_fn_c_try_run "$LINENO"; then :
4788  ac_cv_c_bigendian=no
4789else
4790  ac_cv_c_bigendian=yes
4791fi
4792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4793  conftest.$ac_objext conftest.beam conftest.$ac_ext
4794fi
4795
4796    fi
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4799$as_echo "$ac_cv_c_bigendian" >&6; }
4800 case $ac_cv_c_bigendian in #(
4801   yes)
4802     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4803;; #(
4804   no)
4805      ;; #(
4806   universal)
4807
4808$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4809
4810     ;; #(
4811   *)
4812     as_fn_error $? "unknown endianness
4813 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4814 esac
4815
4816
4817# Check whether --enable-strict was given.
4818if test "${enable_strict+set}" = set; then :
4819  enableval=$enable_strict;
4820else
4821  enable_strict="yes"
4822
4823fi
4824
4825
4826# Check whether --enable-pedantic was given.
4827if test "${enable_pedantic+set}" = set; then :
4828  enableval=$enable_pedantic;
4829else
4830  enable_pedantic="no"
4831
4832fi
4833
4834
4835
4836# Check whether --with-pamdir was given.
4837if test "${with_pamdir+set}" = set; then :
4838  withval=$with_pamdir; pamdir="${withval}"
4839else
4840
4841		if test "${prefix}" = "/usr"; then
4842			pamdir="/lib${libdir##*/lib}/security"
4843		else
4844			pamdir="\$(libdir)/security"
4845		fi
4846
4847
4848fi
4849
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4852$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4853if ${ac_cv_path_SED+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4857     for ac_i in 1 2 3 4 5 6 7; do
4858       ac_script="$ac_script$as_nl$ac_script"
4859     done
4860     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4861     { ac_script=; unset ac_script;}
4862     if test -z "$SED"; then
4863  ac_path_SED_found=false
4864  # Loop through the user's path and test for each of PROGNAME-LIST
4865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868  IFS=$as_save_IFS
4869  test -z "$as_dir" && as_dir=.
4870    for ac_prog in sed gsed; do
4871    for ac_exec_ext in '' $ac_executable_extensions; do
4872      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4873      as_fn_executable_p "$ac_path_SED" || continue
4874# Check for GNU ac_path_SED and select it if it is found.
4875  # Check for GNU $ac_path_SED
4876case `"$ac_path_SED" --version 2>&1` in
4877*GNU*)
4878  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4879*)
4880  ac_count=0
4881  $as_echo_n 0123456789 >"conftest.in"
4882  while :
4883  do
4884    cat "conftest.in" "conftest.in" >"conftest.tmp"
4885    mv "conftest.tmp" "conftest.in"
4886    cp "conftest.in" "conftest.nl"
4887    $as_echo '' >> "conftest.nl"
4888    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890    as_fn_arith $ac_count + 1 && ac_count=$as_val
4891    if test $ac_count -gt ${ac_path_SED_max-0}; then
4892      # Best one so far, save it but keep looking for a better one
4893      ac_cv_path_SED="$ac_path_SED"
4894      ac_path_SED_max=$ac_count
4895    fi
4896    # 10*(2^10) chars as input seems more than enough
4897    test $ac_count -gt 10 && break
4898  done
4899  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900esac
4901
4902      $ac_path_SED_found && break 3
4903    done
4904  done
4905  done
4906IFS=$as_save_IFS
4907  if test -z "$ac_cv_path_SED"; then
4908    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4909  fi
4910else
4911  ac_cv_path_SED=$SED
4912fi
4913
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4916$as_echo "$ac_cv_path_SED" >&6; }
4917 SED="$ac_cv_path_SED"
4918  rm -f conftest.sed
4919
4920
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4922$as_echo_n "checking whether NLS is requested... " >&6; }
4923    # Check whether --enable-nls was given.
4924if test "${enable_nls+set}" = set; then :
4925  enableval=$enable_nls; USE_NLS=$enableval
4926else
4927  USE_NLS=yes
4928fi
4929
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4931$as_echo "$USE_NLS" >&6; }
4932
4933
4934
4935
4936      GETTEXT_MACRO_VERSION=0.18
4937
4938
4939
4940
4941# Prepare PATH_SEPARATOR.
4942# The user is always right.
4943if test "${PATH_SEPARATOR+set}" != set; then
4944  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4945  # contains only /bin. Note that ksh looks also at the FPATH variable,
4946  # so we have to set that as well for the test.
4947  PATH_SEPARATOR=:
4948  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4949    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4950           || PATH_SEPARATOR=';'
4951       }
4952fi
4953
4954# Find out how to test for executable files. Don't use a zero-byte file,
4955# as systems may use methods other than mode bits to determine executability.
4956cat >conf$$.file <<_ASEOF
4957#! /bin/sh
4958exit 0
4959_ASEOF
4960chmod +x conf$$.file
4961if test -x conf$$.file >/dev/null 2>&1; then
4962  ac_executable_p="test -x"
4963else
4964  ac_executable_p="test -f"
4965fi
4966rm -f conf$$.file
4967
4968# Extract the first word of "msgfmt", so it can be a program name with args.
4969set dummy msgfmt; ac_word=$2
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if ${ac_cv_path_MSGFMT+:} false; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975  case "$MSGFMT" in
4976  [\\/]* | ?:[\\/]*)
4977    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4978    ;;
4979  *)
4980    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4981    for ac_dir in $PATH; do
4982      IFS="$ac_save_IFS"
4983      test -z "$ac_dir" && ac_dir=.
4984      for ac_exec_ext in '' $ac_executable_extensions; do
4985        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4986          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4987          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4988     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4989            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4990            break 2
4991          fi
4992        fi
4993      done
4994    done
4995    IFS="$ac_save_IFS"
4996  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4997    ;;
4998esac
4999fi
5000MSGFMT="$ac_cv_path_MSGFMT"
5001if test "$MSGFMT" != ":"; then
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5003$as_echo "$MSGFMT" >&6; }
5004else
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007fi
5008
5009  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5010set dummy gmsgfmt; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_path_GMSGFMT+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  case $GMSGFMT in
5017  [\\/]* | ?:[\\/]*)
5018  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5019  ;;
5020  *)
5021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024  IFS=$as_save_IFS
5025  test -z "$as_dir" && as_dir=.
5026    for ac_exec_ext in '' $ac_executable_extensions; do
5027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030    break 2
5031  fi
5032done
5033  done
5034IFS=$as_save_IFS
5035
5036  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5037  ;;
5038esac
5039fi
5040GMSGFMT=$ac_cv_path_GMSGFMT
5041if test -n "$GMSGFMT"; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5043$as_echo "$GMSGFMT" >&6; }
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050
5051    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5052    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5053    *) MSGFMT_015=$MSGFMT ;;
5054  esac
5055
5056  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5057    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5058    *) GMSGFMT_015=$GMSGFMT ;;
5059  esac
5060
5061
5062
5063# Prepare PATH_SEPARATOR.
5064# The user is always right.
5065if test "${PATH_SEPARATOR+set}" != set; then
5066  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5067  # contains only /bin. Note that ksh looks also at the FPATH variable,
5068  # so we have to set that as well for the test.
5069  PATH_SEPARATOR=:
5070  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5071    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5072           || PATH_SEPARATOR=';'
5073       }
5074fi
5075
5076# Find out how to test for executable files. Don't use a zero-byte file,
5077# as systems may use methods other than mode bits to determine executability.
5078cat >conf$$.file <<_ASEOF
5079#! /bin/sh
5080exit 0
5081_ASEOF
5082chmod +x conf$$.file
5083if test -x conf$$.file >/dev/null 2>&1; then
5084  ac_executable_p="test -x"
5085else
5086  ac_executable_p="test -f"
5087fi
5088rm -f conf$$.file
5089
5090# Extract the first word of "xgettext", so it can be a program name with args.
5091set dummy xgettext; ac_word=$2
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093$as_echo_n "checking for $ac_word... " >&6; }
5094if ${ac_cv_path_XGETTEXT+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  case "$XGETTEXT" in
5098  [\\/]* | ?:[\\/]*)
5099    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5100    ;;
5101  *)
5102    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5103    for ac_dir in $PATH; do
5104      IFS="$ac_save_IFS"
5105      test -z "$ac_dir" && ac_dir=.
5106      for ac_exec_ext in '' $ac_executable_extensions; do
5107        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5108          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5109          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5110     (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
5111            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5112            break 2
5113          fi
5114        fi
5115      done
5116    done
5117    IFS="$ac_save_IFS"
5118  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5119    ;;
5120esac
5121fi
5122XGETTEXT="$ac_cv_path_XGETTEXT"
5123if test "$XGETTEXT" != ":"; then
5124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5125$as_echo "$XGETTEXT" >&6; }
5126else
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
5129fi
5130
5131    rm -f messages.po
5132
5133    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5134    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5135    *) XGETTEXT_015=$XGETTEXT ;;
5136  esac
5137
5138
5139
5140# Prepare PATH_SEPARATOR.
5141# The user is always right.
5142if test "${PATH_SEPARATOR+set}" != set; then
5143  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5144  # contains only /bin. Note that ksh looks also at the FPATH variable,
5145  # so we have to set that as well for the test.
5146  PATH_SEPARATOR=:
5147  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5148    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5149           || PATH_SEPARATOR=';'
5150       }
5151fi
5152
5153# Find out how to test for executable files. Don't use a zero-byte file,
5154# as systems may use methods other than mode bits to determine executability.
5155cat >conf$$.file <<_ASEOF
5156#! /bin/sh
5157exit 0
5158_ASEOF
5159chmod +x conf$$.file
5160if test -x conf$$.file >/dev/null 2>&1; then
5161  ac_executable_p="test -x"
5162else
5163  ac_executable_p="test -f"
5164fi
5165rm -f conf$$.file
5166
5167# Extract the first word of "msgmerge", so it can be a program name with args.
5168set dummy msgmerge; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_path_MSGMERGE+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  case "$MSGMERGE" in
5175  [\\/]* | ?:[\\/]*)
5176    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5177    ;;
5178  *)
5179    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5180    for ac_dir in $PATH; do
5181      IFS="$ac_save_IFS"
5182      test -z "$ac_dir" && ac_dir=.
5183      for ac_exec_ext in '' $ac_executable_extensions; do
5184        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5185          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5186          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5187            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5188            break 2
5189          fi
5190        fi
5191      done
5192    done
5193    IFS="$ac_save_IFS"
5194  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5195    ;;
5196esac
5197fi
5198MSGMERGE="$ac_cv_path_MSGMERGE"
5199if test "$MSGMERGE" != ":"; then
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5201$as_echo "$MSGMERGE" >&6; }
5202else
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207
5208        test -n "$localedir" || localedir='${datadir}/locale'
5209
5210
5211    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5212
5213
5214  ac_config_commands="$ac_config_commands po-directories"
5215
5216
5217
5218      if test "X$prefix" = "XNONE"; then
5219    acl_final_prefix="$ac_default_prefix"
5220  else
5221    acl_final_prefix="$prefix"
5222  fi
5223  if test "X$exec_prefix" = "XNONE"; then
5224    acl_final_exec_prefix='${prefix}'
5225  else
5226    acl_final_exec_prefix="$exec_prefix"
5227  fi
5228  acl_save_prefix="$prefix"
5229  prefix="$acl_final_prefix"
5230  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5231  prefix="$acl_save_prefix"
5232
5233
5234
5235# Check whether --with-gnu-ld was given.
5236if test "${with_gnu_ld+set}" = set; then :
5237  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5238else
5239  with_gnu_ld=no
5240fi
5241
5242# Prepare PATH_SEPARATOR.
5243# The user is always right.
5244if test "${PATH_SEPARATOR+set}" != set; then
5245  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5246  # contains only /bin. Note that ksh looks also at the FPATH variable,
5247  # so we have to set that as well for the test.
5248  PATH_SEPARATOR=:
5249  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5250    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5251           || PATH_SEPARATOR=';'
5252       }
5253fi
5254
5255ac_prog=ld
5256if test "$GCC" = yes; then
5257  # Check if gcc -print-prog-name=ld gives a path.
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5259$as_echo_n "checking for ld used by $CC... " >&6; }
5260  case $host in
5261  *-*-mingw*)
5262    # gcc leaves a trailing carriage return which upsets mingw
5263    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5264  *)
5265    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5266  esac
5267  case $ac_prog in
5268    # Accept absolute paths.
5269    [\\/]* | ?:[\\/]*)
5270      re_direlt='/[^/][^/]*/\.\./'
5271      # Canonicalize the pathname of ld
5272      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5273      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5274        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5275      done
5276      test -z "$LD" && LD="$ac_prog"
5277      ;;
5278  "")
5279    # If it fails, then pretend we aren't using GCC.
5280    ac_prog=ld
5281    ;;
5282  *)
5283    # If it is relative, then search for the first ld in PATH.
5284    with_gnu_ld=unknown
5285    ;;
5286  esac
5287elif test "$with_gnu_ld" = yes; then
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5289$as_echo_n "checking for GNU ld... " >&6; }
5290else
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5292$as_echo_n "checking for non-GNU ld... " >&6; }
5293fi
5294if ${acl_cv_path_LD+:} false; then :
5295  $as_echo_n "(cached) " >&6
5296else
5297  if test -z "$LD"; then
5298  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5299  for ac_dir in $PATH; do
5300    IFS="$acl_save_ifs"
5301    test -z "$ac_dir" && ac_dir=.
5302    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5303      acl_cv_path_LD="$ac_dir/$ac_prog"
5304      # Check to see if the program is GNU ld.  I'd rather use --version,
5305      # but apparently some variants of GNU ld only accept -v.
5306      # Break only if it was the GNU/non-GNU ld that we prefer.
5307      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5308      *GNU* | *'with BFD'*)
5309        test "$with_gnu_ld" != no && break
5310        ;;
5311      *)
5312        test "$with_gnu_ld" != yes && break
5313        ;;
5314      esac
5315    fi
5316  done
5317  IFS="$acl_save_ifs"
5318else
5319  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5320fi
5321fi
5322
5323LD="$acl_cv_path_LD"
5324if test -n "$LD"; then
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5326$as_echo "$LD" >&6; }
5327else
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5333$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5334if ${acl_cv_prog_gnu_ld+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5338case `$LD -v 2>&1 </dev/null` in
5339*GNU* | *'with BFD'*)
5340  acl_cv_prog_gnu_ld=yes
5341  ;;
5342*)
5343  acl_cv_prog_gnu_ld=no
5344  ;;
5345esac
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5348$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5349with_gnu_ld=$acl_cv_prog_gnu_ld
5350
5351
5352
5353
5354                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5355$as_echo_n "checking for shared library run path origin... " >&6; }
5356if ${acl_cv_rpath+:} false; then :
5357  $as_echo_n "(cached) " >&6
5358else
5359
5360    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5361    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5362    . ./conftest.sh
5363    rm -f ./conftest.sh
5364    acl_cv_rpath=done
5365
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5368$as_echo "$acl_cv_rpath" >&6; }
5369  wl="$acl_cv_wl"
5370  acl_libext="$acl_cv_libext"
5371  acl_shlibext="$acl_cv_shlibext"
5372  acl_libname_spec="$acl_cv_libname_spec"
5373  acl_library_names_spec="$acl_cv_library_names_spec"
5374  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5375  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5376  acl_hardcode_direct="$acl_cv_hardcode_direct"
5377  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5378    # Check whether --enable-rpath was given.
5379if test "${enable_rpath+set}" = set; then :
5380  enableval=$enable_rpath; :
5381else
5382  enable_rpath=yes
5383fi
5384
5385
5386
5387
5388  acl_libdirstem=lib
5389  acl_libdirstem2=
5390  case "$host_os" in
5391    solaris*)
5392                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5393$as_echo_n "checking for 64-bit host... " >&6; }
5394if ${gl_cv_solaris_64bit+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399
5400#ifdef _LP64
5401sixtyfour bits
5402#endif
5403
5404_ACEOF
5405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5407  gl_cv_solaris_64bit=yes
5408else
5409  gl_cv_solaris_64bit=no
5410fi
5411rm -f conftest*
5412
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5416$as_echo "$gl_cv_solaris_64bit" >&6; }
5417      if test $gl_cv_solaris_64bit = yes; then
5418        acl_libdirstem=lib/64
5419        case "$host_cpu" in
5420          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5421          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5422        esac
5423      fi
5424      ;;
5425    *)
5426      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5427      if test -n "$searchpath"; then
5428        acl_save_IFS="${IFS= 	}"; IFS=":"
5429        for searchdir in $searchpath; do
5430          if test -d "$searchdir"; then
5431            case "$searchdir" in
5432              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5433              */../ | */.. )
5434                # Better ignore directories of this form. They are misleading.
5435                ;;
5436              *) searchdir=`cd "$searchdir" && pwd`
5437                 case "$searchdir" in
5438                   */lib64 ) acl_libdirstem=lib64 ;;
5439                 esac ;;
5440            esac
5441          fi
5442        done
5443        IFS="$acl_save_IFS"
5444      fi
5445      ;;
5446  esac
5447  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460    use_additional=yes
5461
5462  acl_save_prefix="$prefix"
5463  prefix="$acl_final_prefix"
5464  acl_save_exec_prefix="$exec_prefix"
5465  exec_prefix="$acl_final_exec_prefix"
5466
5467    eval additional_includedir=\"$includedir\"
5468    eval additional_libdir=\"$libdir\"
5469
5470  exec_prefix="$acl_save_exec_prefix"
5471  prefix="$acl_save_prefix"
5472
5473
5474# Check whether --with-libiconv-prefix was given.
5475if test "${with_libiconv_prefix+set}" = set; then :
5476  withval=$with_libiconv_prefix;
5477    if test "X$withval" = "Xno"; then
5478      use_additional=no
5479    else
5480      if test "X$withval" = "X"; then
5481
5482  acl_save_prefix="$prefix"
5483  prefix="$acl_final_prefix"
5484  acl_save_exec_prefix="$exec_prefix"
5485  exec_prefix="$acl_final_exec_prefix"
5486
5487          eval additional_includedir=\"$includedir\"
5488          eval additional_libdir=\"$libdir\"
5489
5490  exec_prefix="$acl_save_exec_prefix"
5491  prefix="$acl_save_prefix"
5492
5493      else
5494        additional_includedir="$withval/include"
5495        additional_libdir="$withval/$acl_libdirstem"
5496        if test "$acl_libdirstem2" != "$acl_libdirstem" \
5497           && ! test -d "$withval/$acl_libdirstem"; then
5498          additional_libdir="$withval/$acl_libdirstem2"
5499        fi
5500      fi
5501    fi
5502
5503fi
5504
5505      LIBICONV=
5506  LTLIBICONV=
5507  INCICONV=
5508  LIBICONV_PREFIX=
5509      HAVE_LIBICONV=
5510  rpathdirs=
5511  ltrpathdirs=
5512  names_already_handled=
5513  names_next_round='iconv '
5514  while test -n "$names_next_round"; do
5515    names_this_round="$names_next_round"
5516    names_next_round=
5517    for name in $names_this_round; do
5518      already_handled=
5519      for n in $names_already_handled; do
5520        if test "$n" = "$name"; then
5521          already_handled=yes
5522          break
5523        fi
5524      done
5525      if test -z "$already_handled"; then
5526        names_already_handled="$names_already_handled $name"
5527                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5528        eval value=\"\$HAVE_LIB$uppername\"
5529        if test -n "$value"; then
5530          if test "$value" = yes; then
5531            eval value=\"\$LIB$uppername\"
5532            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5533            eval value=\"\$LTLIB$uppername\"
5534            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5535          else
5536                                    :
5537          fi
5538        else
5539                              found_dir=
5540          found_la=
5541          found_so=
5542          found_a=
5543          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5544          if test -n "$acl_shlibext"; then
5545            shrext=".$acl_shlibext"             # typically: shrext=.so
5546          else
5547            shrext=
5548          fi
5549          if test $use_additional = yes; then
5550            dir="$additional_libdir"
5551                                    if test -n "$acl_shlibext"; then
5552              if test -f "$dir/$libname$shrext"; then
5553                found_dir="$dir"
5554                found_so="$dir/$libname$shrext"
5555              else
5556                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5557                  ver=`(cd "$dir" && \
5558                        for f in "$libname$shrext".*; do echo "$f"; done \
5559                        | sed -e "s,^$libname$shrext\\\\.,," \
5560                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5561                        | sed 1q ) 2>/dev/null`
5562                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5563                    found_dir="$dir"
5564                    found_so="$dir/$libname$shrext.$ver"
5565                  fi
5566                else
5567                  eval library_names=\"$acl_library_names_spec\"
5568                  for f in $library_names; do
5569                    if test -f "$dir/$f"; then
5570                      found_dir="$dir"
5571                      found_so="$dir/$f"
5572                      break
5573                    fi
5574                  done
5575                fi
5576              fi
5577            fi
5578                        if test "X$found_dir" = "X"; then
5579              if test -f "$dir/$libname.$acl_libext"; then
5580                found_dir="$dir"
5581                found_a="$dir/$libname.$acl_libext"
5582              fi
5583            fi
5584            if test "X$found_dir" != "X"; then
5585              if test -f "$dir/$libname.la"; then
5586                found_la="$dir/$libname.la"
5587              fi
5588            fi
5589          fi
5590          if test "X$found_dir" = "X"; then
5591            for x in $LDFLAGS $LTLIBICONV; do
5592
5593  acl_save_prefix="$prefix"
5594  prefix="$acl_final_prefix"
5595  acl_save_exec_prefix="$exec_prefix"
5596  exec_prefix="$acl_final_exec_prefix"
5597  eval x=\"$x\"
5598  exec_prefix="$acl_save_exec_prefix"
5599  prefix="$acl_save_prefix"
5600
5601              case "$x" in
5602                -L*)
5603                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5604                                    if test -n "$acl_shlibext"; then
5605                    if test -f "$dir/$libname$shrext"; then
5606                      found_dir="$dir"
5607                      found_so="$dir/$libname$shrext"
5608                    else
5609                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5610                        ver=`(cd "$dir" && \
5611                              for f in "$libname$shrext".*; do echo "$f"; done \
5612                              | sed -e "s,^$libname$shrext\\\\.,," \
5613                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5614                              | sed 1q ) 2>/dev/null`
5615                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5616                          found_dir="$dir"
5617                          found_so="$dir/$libname$shrext.$ver"
5618                        fi
5619                      else
5620                        eval library_names=\"$acl_library_names_spec\"
5621                        for f in $library_names; do
5622                          if test -f "$dir/$f"; then
5623                            found_dir="$dir"
5624                            found_so="$dir/$f"
5625                            break
5626                          fi
5627                        done
5628                      fi
5629                    fi
5630                  fi
5631                                    if test "X$found_dir" = "X"; then
5632                    if test -f "$dir/$libname.$acl_libext"; then
5633                      found_dir="$dir"
5634                      found_a="$dir/$libname.$acl_libext"
5635                    fi
5636                  fi
5637                  if test "X$found_dir" != "X"; then
5638                    if test -f "$dir/$libname.la"; then
5639                      found_la="$dir/$libname.la"
5640                    fi
5641                  fi
5642                  ;;
5643              esac
5644              if test "X$found_dir" != "X"; then
5645                break
5646              fi
5647            done
5648          fi
5649          if test "X$found_dir" != "X"; then
5650                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5651            if test "X$found_so" != "X"; then
5652                                                        if test "$enable_rpath" = no \
5653                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5654                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5655                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5656              else
5657                                                                                haveit=
5658                for x in $ltrpathdirs; do
5659                  if test "X$x" = "X$found_dir"; then
5660                    haveit=yes
5661                    break
5662                  fi
5663                done
5664                if test -z "$haveit"; then
5665                  ltrpathdirs="$ltrpathdirs $found_dir"
5666                fi
5667                                if test "$acl_hardcode_direct" = yes; then
5668                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5669                else
5670                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5671                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5672                                                            haveit=
5673                    for x in $rpathdirs; do
5674                      if test "X$x" = "X$found_dir"; then
5675                        haveit=yes
5676                        break
5677                      fi
5678                    done
5679                    if test -z "$haveit"; then
5680                      rpathdirs="$rpathdirs $found_dir"
5681                    fi
5682                  else
5683                                                                                haveit=
5684                    for x in $LDFLAGS $LIBICONV; do
5685
5686  acl_save_prefix="$prefix"
5687  prefix="$acl_final_prefix"
5688  acl_save_exec_prefix="$exec_prefix"
5689  exec_prefix="$acl_final_exec_prefix"
5690  eval x=\"$x\"
5691  exec_prefix="$acl_save_exec_prefix"
5692  prefix="$acl_save_prefix"
5693
5694                      if test "X$x" = "X-L$found_dir"; then
5695                        haveit=yes
5696                        break
5697                      fi
5698                    done
5699                    if test -z "$haveit"; then
5700                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5701                    fi
5702                    if test "$acl_hardcode_minus_L" != no; then
5703                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5704                    else
5705                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5706                    fi
5707                  fi
5708                fi
5709              fi
5710            else
5711              if test "X$found_a" != "X"; then
5712                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5713              else
5714                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5715              fi
5716            fi
5717                        additional_includedir=
5718            case "$found_dir" in
5719              */$acl_libdirstem | */$acl_libdirstem/)
5720                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5721                if test "$name" = 'iconv'; then
5722                  LIBICONV_PREFIX="$basedir"
5723                fi
5724                additional_includedir="$basedir/include"
5725                ;;
5726              */$acl_libdirstem2 | */$acl_libdirstem2/)
5727                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5728                if test "$name" = 'iconv'; then
5729                  LIBICONV_PREFIX="$basedir"
5730                fi
5731                additional_includedir="$basedir/include"
5732                ;;
5733            esac
5734            if test "X$additional_includedir" != "X"; then
5735                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5736                haveit=
5737                if test "X$additional_includedir" = "X/usr/local/include"; then
5738                  if test -n "$GCC"; then
5739                    case $host_os in
5740                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5741                    esac
5742                  fi
5743                fi
5744                if test -z "$haveit"; then
5745                  for x in $CPPFLAGS $INCICONV; do
5746
5747  acl_save_prefix="$prefix"
5748  prefix="$acl_final_prefix"
5749  acl_save_exec_prefix="$exec_prefix"
5750  exec_prefix="$acl_final_exec_prefix"
5751  eval x=\"$x\"
5752  exec_prefix="$acl_save_exec_prefix"
5753  prefix="$acl_save_prefix"
5754
5755                    if test "X$x" = "X-I$additional_includedir"; then
5756                      haveit=yes
5757                      break
5758                    fi
5759                  done
5760                  if test -z "$haveit"; then
5761                    if test -d "$additional_includedir"; then
5762                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5763                    fi
5764                  fi
5765                fi
5766              fi
5767            fi
5768                        if test -n "$found_la"; then
5769                                                        save_libdir="$libdir"
5770              case "$found_la" in
5771                */* | *\\*) . "$found_la" ;;
5772                *) . "./$found_la" ;;
5773              esac
5774              libdir="$save_libdir"
5775                            for dep in $dependency_libs; do
5776                case "$dep" in
5777                  -L*)
5778                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5779                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5780                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5781                      haveit=
5782                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5783                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5784                        if test -n "$GCC"; then
5785                          case $host_os in
5786                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5787                          esac
5788                        fi
5789                      fi
5790                      if test -z "$haveit"; then
5791                        haveit=
5792                        for x in $LDFLAGS $LIBICONV; do
5793
5794  acl_save_prefix="$prefix"
5795  prefix="$acl_final_prefix"
5796  acl_save_exec_prefix="$exec_prefix"
5797  exec_prefix="$acl_final_exec_prefix"
5798  eval x=\"$x\"
5799  exec_prefix="$acl_save_exec_prefix"
5800  prefix="$acl_save_prefix"
5801
5802                          if test "X$x" = "X-L$additional_libdir"; then
5803                            haveit=yes
5804                            break
5805                          fi
5806                        done
5807                        if test -z "$haveit"; then
5808                          if test -d "$additional_libdir"; then
5809                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5810                          fi
5811                        fi
5812                        haveit=
5813                        for x in $LDFLAGS $LTLIBICONV; do
5814
5815  acl_save_prefix="$prefix"
5816  prefix="$acl_final_prefix"
5817  acl_save_exec_prefix="$exec_prefix"
5818  exec_prefix="$acl_final_exec_prefix"
5819  eval x=\"$x\"
5820  exec_prefix="$acl_save_exec_prefix"
5821  prefix="$acl_save_prefix"
5822
5823                          if test "X$x" = "X-L$additional_libdir"; then
5824                            haveit=yes
5825                            break
5826                          fi
5827                        done
5828                        if test -z "$haveit"; then
5829                          if test -d "$additional_libdir"; then
5830                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5831                          fi
5832                        fi
5833                      fi
5834                    fi
5835                    ;;
5836                  -R*)
5837                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5838                    if test "$enable_rpath" != no; then
5839                                                                  haveit=
5840                      for x in $rpathdirs; do
5841                        if test "X$x" = "X$dir"; then
5842                          haveit=yes
5843                          break
5844                        fi
5845                      done
5846                      if test -z "$haveit"; then
5847                        rpathdirs="$rpathdirs $dir"
5848                      fi
5849                                                                  haveit=
5850                      for x in $ltrpathdirs; do
5851                        if test "X$x" = "X$dir"; then
5852                          haveit=yes
5853                          break
5854                        fi
5855                      done
5856                      if test -z "$haveit"; then
5857                        ltrpathdirs="$ltrpathdirs $dir"
5858                      fi
5859                    fi
5860                    ;;
5861                  -l*)
5862                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5863                    ;;
5864                  *.la)
5865                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5866                    ;;
5867                  *)
5868                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5869                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5870                    ;;
5871                esac
5872              done
5873            fi
5874          else
5875                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5876            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5877          fi
5878        fi
5879      fi
5880    done
5881  done
5882  if test "X$rpathdirs" != "X"; then
5883    if test -n "$acl_hardcode_libdir_separator"; then
5884                        alldirs=
5885      for found_dir in $rpathdirs; do
5886        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5887      done
5888            acl_save_libdir="$libdir"
5889      libdir="$alldirs"
5890      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5891      libdir="$acl_save_libdir"
5892      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5893    else
5894            for found_dir in $rpathdirs; do
5895        acl_save_libdir="$libdir"
5896        libdir="$found_dir"
5897        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5898        libdir="$acl_save_libdir"
5899        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5900      done
5901    fi
5902  fi
5903  if test "X$ltrpathdirs" != "X"; then
5904            for found_dir in $ltrpathdirs; do
5905      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5906    done
5907  fi
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5940$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5941if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  gt_save_LIBS="$LIBS"
5945     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948#include <CoreFoundation/CFPreferences.h>
5949int
5950main ()
5951{
5952CFPreferencesCopyAppValue(NULL, NULL)
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_link "$LINENO"; then :
5958  gt_cv_func_CFPreferencesCopyAppValue=yes
5959else
5960  gt_cv_func_CFPreferencesCopyAppValue=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963    conftest$ac_exeext conftest.$ac_ext
5964     LIBS="$gt_save_LIBS"
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5967$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5968  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5969
5970$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5971
5972  fi
5973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5974$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5975if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  gt_save_LIBS="$LIBS"
5979     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h.  */
5982#include <CoreFoundation/CFLocale.h>
5983int
5984main ()
5985{
5986CFLocaleCopyCurrent();
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992  gt_cv_func_CFLocaleCopyCurrent=yes
5993else
5994  gt_cv_func_CFLocaleCopyCurrent=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997    conftest$ac_exeext conftest.$ac_ext
5998     LIBS="$gt_save_LIBS"
5999fi
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6001$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6002  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6003
6004$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6005
6006  fi
6007  INTL_MACOSX_LIBS=
6008  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6009    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6010  fi
6011
6012
6013
6014
6015
6016
6017  LIBINTL=
6018  LTLIBINTL=
6019  POSUB=
6020
6021    case " $gt_needs " in
6022    *" need-formatstring-macros "*) gt_api_version=3 ;;
6023    *" need-ngettext "*) gt_api_version=2 ;;
6024    *) gt_api_version=1 ;;
6025  esac
6026  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6027  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6028
6029    if test "$USE_NLS" = "yes"; then
6030    gt_use_preinstalled_gnugettext=no
6031
6032
6033        if test $gt_api_version -ge 3; then
6034          gt_revision_test_code='
6035#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6036#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6037#endif
6038typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6039'
6040        else
6041          gt_revision_test_code=
6042        fi
6043        if test $gt_api_version -ge 2; then
6044          gt_expression_test_code=' + * ngettext ("", "", 0)'
6045        else
6046          gt_expression_test_code=
6047        fi
6048
6049        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6050$as_echo_n "checking for GNU gettext in libc... " >&6; }
6051if eval \${$gt_func_gnugettext_libc+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056
6057#include <libintl.h>
6058$gt_revision_test_code
6059extern int _nl_msg_cat_cntr;
6060extern int *_nl_domain_bindings;
6061
6062int
6063main ()
6064{
6065
6066bindtextdomain ("", "");
6067return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6068
6069  ;
6070  return 0;
6071}
6072_ACEOF
6073if ac_fn_c_try_link "$LINENO"; then :
6074  eval "$gt_func_gnugettext_libc=yes"
6075else
6076  eval "$gt_func_gnugettext_libc=no"
6077fi
6078rm -f core conftest.err conftest.$ac_objext \
6079    conftest$ac_exeext conftest.$ac_ext
6080fi
6081eval ac_res=\$$gt_func_gnugettext_libc
6082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6083$as_echo "$ac_res" >&6; }
6084
6085        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6086
6087
6088
6089
6090
6091          am_save_CPPFLAGS="$CPPFLAGS"
6092
6093  for element in $INCICONV; do
6094    haveit=
6095    for x in $CPPFLAGS; do
6096
6097  acl_save_prefix="$prefix"
6098  prefix="$acl_final_prefix"
6099  acl_save_exec_prefix="$exec_prefix"
6100  exec_prefix="$acl_final_exec_prefix"
6101  eval x=\"$x\"
6102  exec_prefix="$acl_save_exec_prefix"
6103  prefix="$acl_save_prefix"
6104
6105      if test "X$x" = "X$element"; then
6106        haveit=yes
6107        break
6108      fi
6109    done
6110    if test -z "$haveit"; then
6111      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6112    fi
6113  done
6114
6115
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6117$as_echo_n "checking for iconv... " >&6; }
6118if ${am_cv_func_iconv+:} false; then :
6119  $as_echo_n "(cached) " >&6
6120else
6121
6122    am_cv_func_iconv="no, consider installing GNU libiconv"
6123    am_cv_lib_iconv=no
6124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126
6127#include <stdlib.h>
6128#include <iconv.h>
6129
6130int
6131main ()
6132{
6133iconv_t cd = iconv_open("","");
6134           iconv(cd,NULL,NULL,NULL,NULL);
6135           iconv_close(cd);
6136  ;
6137  return 0;
6138}
6139_ACEOF
6140if ac_fn_c_try_link "$LINENO"; then :
6141  am_cv_func_iconv=yes
6142fi
6143rm -f core conftest.err conftest.$ac_objext \
6144    conftest$ac_exeext conftest.$ac_ext
6145    if test "$am_cv_func_iconv" != yes; then
6146      am_save_LIBS="$LIBS"
6147      LIBS="$LIBS $LIBICONV"
6148      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h.  */
6150
6151#include <stdlib.h>
6152#include <iconv.h>
6153
6154int
6155main ()
6156{
6157iconv_t cd = iconv_open("","");
6158             iconv(cd,NULL,NULL,NULL,NULL);
6159             iconv_close(cd);
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164if ac_fn_c_try_link "$LINENO"; then :
6165  am_cv_lib_iconv=yes
6166        am_cv_func_iconv=yes
6167fi
6168rm -f core conftest.err conftest.$ac_objext \
6169    conftest$ac_exeext conftest.$ac_ext
6170      LIBS="$am_save_LIBS"
6171    fi
6172
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6175$as_echo "$am_cv_func_iconv" >&6; }
6176  if test "$am_cv_func_iconv" = yes; then
6177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6178$as_echo_n "checking for working iconv... " >&6; }
6179if ${am_cv_func_iconv_works+:} false; then :
6180  $as_echo_n "(cached) " >&6
6181else
6182
6183                  am_save_LIBS="$LIBS"
6184      if test $am_cv_lib_iconv = yes; then
6185        LIBS="$LIBS $LIBICONV"
6186      fi
6187      if test "$cross_compiling" = yes; then :
6188
6189         case "$host_os" in
6190           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6191           *)            am_cv_func_iconv_works="guessing yes" ;;
6192         esac
6193
6194else
6195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h.  */
6197
6198#include <iconv.h>
6199#include <string.h>
6200int main ()
6201{
6202  int result = 0;
6203  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6204     returns.  */
6205  {
6206    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6207    if (cd_utf8_to_88591 != (iconv_t)(-1))
6208      {
6209        static const char input[] = "\342\202\254"; /* EURO SIGN */
6210        char buf[10];
6211        const char *inptr = input;
6212        size_t inbytesleft = strlen (input);
6213        char *outptr = buf;
6214        size_t outbytesleft = sizeof (buf);
6215        size_t res = iconv (cd_utf8_to_88591,
6216                            (char **) &inptr, &inbytesleft,
6217                            &outptr, &outbytesleft);
6218        if (res == 0)
6219          result |= 1;
6220        iconv_close (cd_utf8_to_88591);
6221      }
6222  }
6223  /* Test against Solaris 10 bug: Failures are not distinguishable from
6224     successful returns.  */
6225  {
6226    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6227    if (cd_ascii_to_88591 != (iconv_t)(-1))
6228      {
6229        static const char input[] = "\263";
6230        char buf[10];
6231        const char *inptr = input;
6232        size_t inbytesleft = strlen (input);
6233        char *outptr = buf;
6234        size_t outbytesleft = sizeof (buf);
6235        size_t res = iconv (cd_ascii_to_88591,
6236                            (char **) &inptr, &inbytesleft,
6237                            &outptr, &outbytesleft);
6238        if (res == 0)
6239          result |= 2;
6240        iconv_close (cd_ascii_to_88591);
6241      }
6242  }
6243  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6244  {
6245    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6246    if (cd_88591_to_utf8 != (iconv_t)(-1))
6247      {
6248        static const char input[] = "\304";
6249        static char buf[2] = { (char)0xDE, (char)0xAD };
6250        const char *inptr = input;
6251        size_t inbytesleft = 1;
6252        char *outptr = buf;
6253        size_t outbytesleft = 1;
6254        size_t res = iconv (cd_88591_to_utf8,
6255                            (char **) &inptr, &inbytesleft,
6256                            &outptr, &outbytesleft);
6257        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6258          result |= 4;
6259        iconv_close (cd_88591_to_utf8);
6260      }
6261  }
6262#if 0 /* This bug could be worked around by the caller.  */
6263  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6264  {
6265    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6266    if (cd_88591_to_utf8 != (iconv_t)(-1))
6267      {
6268        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6269        char buf[50];
6270        const char *inptr = input;
6271        size_t inbytesleft = strlen (input);
6272        char *outptr = buf;
6273        size_t outbytesleft = sizeof (buf);
6274        size_t res = iconv (cd_88591_to_utf8,
6275                            (char **) &inptr, &inbytesleft,
6276                            &outptr, &outbytesleft);
6277        if ((int)res > 0)
6278          result |= 8;
6279        iconv_close (cd_88591_to_utf8);
6280      }
6281  }
6282#endif
6283  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6284     provided.  */
6285  if (/* Try standardized names.  */
6286      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6287      /* Try IRIX, OSF/1 names.  */
6288      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6289      /* Try AIX names.  */
6290      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6291      /* Try HP-UX names.  */
6292      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6293    result |= 16;
6294  return result;
6295}
6296_ACEOF
6297if ac_fn_c_try_run "$LINENO"; then :
6298  am_cv_func_iconv_works=yes
6299else
6300  am_cv_func_iconv_works=no
6301fi
6302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6303  conftest.$ac_objext conftest.beam conftest.$ac_ext
6304fi
6305
6306      LIBS="$am_save_LIBS"
6307
6308fi
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6310$as_echo "$am_cv_func_iconv_works" >&6; }
6311    case "$am_cv_func_iconv_works" in
6312      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6313      *)   am_func_iconv=yes ;;
6314    esac
6315  else
6316    am_func_iconv=no am_cv_lib_iconv=no
6317  fi
6318  if test "$am_func_iconv" = yes; then
6319
6320$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6321
6322  fi
6323  if test "$am_cv_lib_iconv" = yes; then
6324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6325$as_echo_n "checking how to link with libiconv... " >&6; }
6326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6327$as_echo "$LIBICONV" >&6; }
6328  else
6329            CPPFLAGS="$am_save_CPPFLAGS"
6330    LIBICONV=
6331    LTLIBICONV=
6332  fi
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344    use_additional=yes
6345
6346  acl_save_prefix="$prefix"
6347  prefix="$acl_final_prefix"
6348  acl_save_exec_prefix="$exec_prefix"
6349  exec_prefix="$acl_final_exec_prefix"
6350
6351    eval additional_includedir=\"$includedir\"
6352    eval additional_libdir=\"$libdir\"
6353
6354  exec_prefix="$acl_save_exec_prefix"
6355  prefix="$acl_save_prefix"
6356
6357
6358# Check whether --with-libintl-prefix was given.
6359if test "${with_libintl_prefix+set}" = set; then :
6360  withval=$with_libintl_prefix;
6361    if test "X$withval" = "Xno"; then
6362      use_additional=no
6363    else
6364      if test "X$withval" = "X"; then
6365
6366  acl_save_prefix="$prefix"
6367  prefix="$acl_final_prefix"
6368  acl_save_exec_prefix="$exec_prefix"
6369  exec_prefix="$acl_final_exec_prefix"
6370
6371          eval additional_includedir=\"$includedir\"
6372          eval additional_libdir=\"$libdir\"
6373
6374  exec_prefix="$acl_save_exec_prefix"
6375  prefix="$acl_save_prefix"
6376
6377      else
6378        additional_includedir="$withval/include"
6379        additional_libdir="$withval/$acl_libdirstem"
6380        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6381           && ! test -d "$withval/$acl_libdirstem"; then
6382          additional_libdir="$withval/$acl_libdirstem2"
6383        fi
6384      fi
6385    fi
6386
6387fi
6388
6389      LIBINTL=
6390  LTLIBINTL=
6391  INCINTL=
6392  LIBINTL_PREFIX=
6393      HAVE_LIBINTL=
6394  rpathdirs=
6395  ltrpathdirs=
6396  names_already_handled=
6397  names_next_round='intl '
6398  while test -n "$names_next_round"; do
6399    names_this_round="$names_next_round"
6400    names_next_round=
6401    for name in $names_this_round; do
6402      already_handled=
6403      for n in $names_already_handled; do
6404        if test "$n" = "$name"; then
6405          already_handled=yes
6406          break
6407        fi
6408      done
6409      if test -z "$already_handled"; then
6410        names_already_handled="$names_already_handled $name"
6411                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6412        eval value=\"\$HAVE_LIB$uppername\"
6413        if test -n "$value"; then
6414          if test "$value" = yes; then
6415            eval value=\"\$LIB$uppername\"
6416            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6417            eval value=\"\$LTLIB$uppername\"
6418            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6419          else
6420                                    :
6421          fi
6422        else
6423                              found_dir=
6424          found_la=
6425          found_so=
6426          found_a=
6427          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6428          if test -n "$acl_shlibext"; then
6429            shrext=".$acl_shlibext"             # typically: shrext=.so
6430          else
6431            shrext=
6432          fi
6433          if test $use_additional = yes; then
6434            dir="$additional_libdir"
6435                                    if test -n "$acl_shlibext"; then
6436              if test -f "$dir/$libname$shrext"; then
6437                found_dir="$dir"
6438                found_so="$dir/$libname$shrext"
6439              else
6440                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6441                  ver=`(cd "$dir" && \
6442                        for f in "$libname$shrext".*; do echo "$f"; done \
6443                        | sed -e "s,^$libname$shrext\\\\.,," \
6444                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6445                        | sed 1q ) 2>/dev/null`
6446                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6447                    found_dir="$dir"
6448                    found_so="$dir/$libname$shrext.$ver"
6449                  fi
6450                else
6451                  eval library_names=\"$acl_library_names_spec\"
6452                  for f in $library_names; do
6453                    if test -f "$dir/$f"; then
6454                      found_dir="$dir"
6455                      found_so="$dir/$f"
6456                      break
6457                    fi
6458                  done
6459                fi
6460              fi
6461            fi
6462                        if test "X$found_dir" = "X"; then
6463              if test -f "$dir/$libname.$acl_libext"; then
6464                found_dir="$dir"
6465                found_a="$dir/$libname.$acl_libext"
6466              fi
6467            fi
6468            if test "X$found_dir" != "X"; then
6469              if test -f "$dir/$libname.la"; then
6470                found_la="$dir/$libname.la"
6471              fi
6472            fi
6473          fi
6474          if test "X$found_dir" = "X"; then
6475            for x in $LDFLAGS $LTLIBINTL; do
6476
6477  acl_save_prefix="$prefix"
6478  prefix="$acl_final_prefix"
6479  acl_save_exec_prefix="$exec_prefix"
6480  exec_prefix="$acl_final_exec_prefix"
6481  eval x=\"$x\"
6482  exec_prefix="$acl_save_exec_prefix"
6483  prefix="$acl_save_prefix"
6484
6485              case "$x" in
6486                -L*)
6487                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6488                                    if test -n "$acl_shlibext"; then
6489                    if test -f "$dir/$libname$shrext"; then
6490                      found_dir="$dir"
6491                      found_so="$dir/$libname$shrext"
6492                    else
6493                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6494                        ver=`(cd "$dir" && \
6495                              for f in "$libname$shrext".*; do echo "$f"; done \
6496                              | sed -e "s,^$libname$shrext\\\\.,," \
6497                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6498                              | sed 1q ) 2>/dev/null`
6499                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6500                          found_dir="$dir"
6501                          found_so="$dir/$libname$shrext.$ver"
6502                        fi
6503                      else
6504                        eval library_names=\"$acl_library_names_spec\"
6505                        for f in $library_names; do
6506                          if test -f "$dir/$f"; then
6507                            found_dir="$dir"
6508                            found_so="$dir/$f"
6509                            break
6510                          fi
6511                        done
6512                      fi
6513                    fi
6514                  fi
6515                                    if test "X$found_dir" = "X"; then
6516                    if test -f "$dir/$libname.$acl_libext"; then
6517                      found_dir="$dir"
6518                      found_a="$dir/$libname.$acl_libext"
6519                    fi
6520                  fi
6521                  if test "X$found_dir" != "X"; then
6522                    if test -f "$dir/$libname.la"; then
6523                      found_la="$dir/$libname.la"
6524                    fi
6525                  fi
6526                  ;;
6527              esac
6528              if test "X$found_dir" != "X"; then
6529                break
6530              fi
6531            done
6532          fi
6533          if test "X$found_dir" != "X"; then
6534                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6535            if test "X$found_so" != "X"; then
6536                                                        if test "$enable_rpath" = no \
6537                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6538                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6539                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6540              else
6541                                                                                haveit=
6542                for x in $ltrpathdirs; do
6543                  if test "X$x" = "X$found_dir"; then
6544                    haveit=yes
6545                    break
6546                  fi
6547                done
6548                if test -z "$haveit"; then
6549                  ltrpathdirs="$ltrpathdirs $found_dir"
6550                fi
6551                                if test "$acl_hardcode_direct" = yes; then
6552                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6553                else
6554                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6555                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6556                                                            haveit=
6557                    for x in $rpathdirs; do
6558                      if test "X$x" = "X$found_dir"; then
6559                        haveit=yes
6560                        break
6561                      fi
6562                    done
6563                    if test -z "$haveit"; then
6564                      rpathdirs="$rpathdirs $found_dir"
6565                    fi
6566                  else
6567                                                                                haveit=
6568                    for x in $LDFLAGS $LIBINTL; do
6569
6570  acl_save_prefix="$prefix"
6571  prefix="$acl_final_prefix"
6572  acl_save_exec_prefix="$exec_prefix"
6573  exec_prefix="$acl_final_exec_prefix"
6574  eval x=\"$x\"
6575  exec_prefix="$acl_save_exec_prefix"
6576  prefix="$acl_save_prefix"
6577
6578                      if test "X$x" = "X-L$found_dir"; then
6579                        haveit=yes
6580                        break
6581                      fi
6582                    done
6583                    if test -z "$haveit"; then
6584                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6585                    fi
6586                    if test "$acl_hardcode_minus_L" != no; then
6587                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6588                    else
6589                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6590                    fi
6591                  fi
6592                fi
6593              fi
6594            else
6595              if test "X$found_a" != "X"; then
6596                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6597              else
6598                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6599              fi
6600            fi
6601                        additional_includedir=
6602            case "$found_dir" in
6603              */$acl_libdirstem | */$acl_libdirstem/)
6604                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6605                if test "$name" = 'intl'; then
6606                  LIBINTL_PREFIX="$basedir"
6607                fi
6608                additional_includedir="$basedir/include"
6609                ;;
6610              */$acl_libdirstem2 | */$acl_libdirstem2/)
6611                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6612                if test "$name" = 'intl'; then
6613                  LIBINTL_PREFIX="$basedir"
6614                fi
6615                additional_includedir="$basedir/include"
6616                ;;
6617            esac
6618            if test "X$additional_includedir" != "X"; then
6619                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6620                haveit=
6621                if test "X$additional_includedir" = "X/usr/local/include"; then
6622                  if test -n "$GCC"; then
6623                    case $host_os in
6624                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6625                    esac
6626                  fi
6627                fi
6628                if test -z "$haveit"; then
6629                  for x in $CPPFLAGS $INCINTL; do
6630
6631  acl_save_prefix="$prefix"
6632  prefix="$acl_final_prefix"
6633  acl_save_exec_prefix="$exec_prefix"
6634  exec_prefix="$acl_final_exec_prefix"
6635  eval x=\"$x\"
6636  exec_prefix="$acl_save_exec_prefix"
6637  prefix="$acl_save_prefix"
6638
6639                    if test "X$x" = "X-I$additional_includedir"; then
6640                      haveit=yes
6641                      break
6642                    fi
6643                  done
6644                  if test -z "$haveit"; then
6645                    if test -d "$additional_includedir"; then
6646                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6647                    fi
6648                  fi
6649                fi
6650              fi
6651            fi
6652                        if test -n "$found_la"; then
6653                                                        save_libdir="$libdir"
6654              case "$found_la" in
6655                */* | *\\*) . "$found_la" ;;
6656                *) . "./$found_la" ;;
6657              esac
6658              libdir="$save_libdir"
6659                            for dep in $dependency_libs; do
6660                case "$dep" in
6661                  -L*)
6662                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6663                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6664                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6665                      haveit=
6666                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6667                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6668                        if test -n "$GCC"; then
6669                          case $host_os in
6670                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6671                          esac
6672                        fi
6673                      fi
6674                      if test -z "$haveit"; then
6675                        haveit=
6676                        for x in $LDFLAGS $LIBINTL; do
6677
6678  acl_save_prefix="$prefix"
6679  prefix="$acl_final_prefix"
6680  acl_save_exec_prefix="$exec_prefix"
6681  exec_prefix="$acl_final_exec_prefix"
6682  eval x=\"$x\"
6683  exec_prefix="$acl_save_exec_prefix"
6684  prefix="$acl_save_prefix"
6685
6686                          if test "X$x" = "X-L$additional_libdir"; then
6687                            haveit=yes
6688                            break
6689                          fi
6690                        done
6691                        if test -z "$haveit"; then
6692                          if test -d "$additional_libdir"; then
6693                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6694                          fi
6695                        fi
6696                        haveit=
6697                        for x in $LDFLAGS $LTLIBINTL; do
6698
6699  acl_save_prefix="$prefix"
6700  prefix="$acl_final_prefix"
6701  acl_save_exec_prefix="$exec_prefix"
6702  exec_prefix="$acl_final_exec_prefix"
6703  eval x=\"$x\"
6704  exec_prefix="$acl_save_exec_prefix"
6705  prefix="$acl_save_prefix"
6706
6707                          if test "X$x" = "X-L$additional_libdir"; then
6708                            haveit=yes
6709                            break
6710                          fi
6711                        done
6712                        if test -z "$haveit"; then
6713                          if test -d "$additional_libdir"; then
6714                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6715                          fi
6716                        fi
6717                      fi
6718                    fi
6719                    ;;
6720                  -R*)
6721                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6722                    if test "$enable_rpath" != no; then
6723                                                                  haveit=
6724                      for x in $rpathdirs; do
6725                        if test "X$x" = "X$dir"; then
6726                          haveit=yes
6727                          break
6728                        fi
6729                      done
6730                      if test -z "$haveit"; then
6731                        rpathdirs="$rpathdirs $dir"
6732                      fi
6733                                                                  haveit=
6734                      for x in $ltrpathdirs; do
6735                        if test "X$x" = "X$dir"; then
6736                          haveit=yes
6737                          break
6738                        fi
6739                      done
6740                      if test -z "$haveit"; then
6741                        ltrpathdirs="$ltrpathdirs $dir"
6742                      fi
6743                    fi
6744                    ;;
6745                  -l*)
6746                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6747                    ;;
6748                  *.la)
6749                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6750                    ;;
6751                  *)
6752                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6753                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6754                    ;;
6755                esac
6756              done
6757            fi
6758          else
6759                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6760            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6761          fi
6762        fi
6763      fi
6764    done
6765  done
6766  if test "X$rpathdirs" != "X"; then
6767    if test -n "$acl_hardcode_libdir_separator"; then
6768                        alldirs=
6769      for found_dir in $rpathdirs; do
6770        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6771      done
6772            acl_save_libdir="$libdir"
6773      libdir="$alldirs"
6774      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6775      libdir="$acl_save_libdir"
6776      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6777    else
6778            for found_dir in $rpathdirs; do
6779        acl_save_libdir="$libdir"
6780        libdir="$found_dir"
6781        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6782        libdir="$acl_save_libdir"
6783        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6784      done
6785    fi
6786  fi
6787  if test "X$ltrpathdirs" != "X"; then
6788            for found_dir in $ltrpathdirs; do
6789      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6790    done
6791  fi
6792
6793
6794
6795
6796
6797
6798          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6799$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6800if eval \${$gt_func_gnugettext_libintl+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  gt_save_CPPFLAGS="$CPPFLAGS"
6804            CPPFLAGS="$CPPFLAGS $INCINTL"
6805            gt_save_LIBS="$LIBS"
6806            LIBS="$LIBS $LIBINTL"
6807                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809
6810#include <libintl.h>
6811$gt_revision_test_code
6812extern int _nl_msg_cat_cntr;
6813extern
6814#ifdef __cplusplus
6815"C"
6816#endif
6817const char *_nl_expand_alias (const char *);
6818
6819int
6820main ()
6821{
6822
6823bindtextdomain ("", "");
6824return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6825
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830if ac_fn_c_try_link "$LINENO"; then :
6831  eval "$gt_func_gnugettext_libintl=yes"
6832else
6833  eval "$gt_func_gnugettext_libintl=no"
6834fi
6835rm -f core conftest.err conftest.$ac_objext \
6836    conftest$ac_exeext conftest.$ac_ext
6837                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6838              LIBS="$LIBS $LIBICONV"
6839              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841
6842#include <libintl.h>
6843$gt_revision_test_code
6844extern int _nl_msg_cat_cntr;
6845extern
6846#ifdef __cplusplus
6847"C"
6848#endif
6849const char *_nl_expand_alias (const char *);
6850
6851int
6852main ()
6853{
6854
6855bindtextdomain ("", "");
6856return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6857
6858  ;
6859  return 0;
6860}
6861_ACEOF
6862if ac_fn_c_try_link "$LINENO"; then :
6863  LIBINTL="$LIBINTL $LIBICONV"
6864                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6865                 eval "$gt_func_gnugettext_libintl=yes"
6866
6867fi
6868rm -f core conftest.err conftest.$ac_objext \
6869    conftest$ac_exeext conftest.$ac_ext
6870            fi
6871            CPPFLAGS="$gt_save_CPPFLAGS"
6872            LIBS="$gt_save_LIBS"
6873fi
6874eval ac_res=\$$gt_func_gnugettext_libintl
6875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876$as_echo "$ac_res" >&6; }
6877        fi
6878
6879                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6880           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6881                && test "$PACKAGE" != gettext-runtime \
6882                && test "$PACKAGE" != gettext-tools; }; then
6883          gt_use_preinstalled_gnugettext=yes
6884        else
6885                    LIBINTL=
6886          LTLIBINTL=
6887          INCINTL=
6888        fi
6889
6890
6891
6892    if test -n "$INTL_MACOSX_LIBS"; then
6893      if test "$gt_use_preinstalled_gnugettext" = "yes" \
6894         || test "$nls_cv_use_gnu_gettext" = "yes"; then
6895                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6896        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6897      fi
6898    fi
6899
6900    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6901       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6902
6903$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6904
6905    else
6906      USE_NLS=no
6907    fi
6908  fi
6909
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6911$as_echo_n "checking whether to use NLS... " >&6; }
6912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6913$as_echo "$USE_NLS" >&6; }
6914  if test "$USE_NLS" = "yes"; then
6915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6916$as_echo_n "checking where the gettext function comes from... " >&6; }
6917    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6918      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6919        gt_source="external libintl"
6920      else
6921        gt_source="libc"
6922      fi
6923    else
6924      gt_source="included intl directory"
6925    fi
6926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6927$as_echo "$gt_source" >&6; }
6928  fi
6929
6930  if test "$USE_NLS" = "yes"; then
6931
6932    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6933      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6934        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6935$as_echo_n "checking how to link with libintl... " >&6; }
6936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6937$as_echo "$LIBINTL" >&6; }
6938
6939  for element in $INCINTL; do
6940    haveit=
6941    for x in $CPPFLAGS; do
6942
6943  acl_save_prefix="$prefix"
6944  prefix="$acl_final_prefix"
6945  acl_save_exec_prefix="$exec_prefix"
6946  exec_prefix="$acl_final_exec_prefix"
6947  eval x=\"$x\"
6948  exec_prefix="$acl_save_exec_prefix"
6949  prefix="$acl_save_prefix"
6950
6951      if test "X$x" = "X$element"; then
6952        haveit=yes
6953        break
6954      fi
6955    done
6956    if test -z "$haveit"; then
6957      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6958    fi
6959  done
6960
6961      fi
6962
6963
6964$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6965
6966
6967$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6968
6969    fi
6970
6971        POSUB=po
6972  fi
6973
6974
6975
6976    INTLLIBS="$LIBINTL"
6977
6978
6979
6980
6981
6982
6983
6984
6985ALL_LINGUAS="de it"
6986
6987ac_ext=c
6988ac_cpp='$CPP $CPPFLAGS'
6989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6993$as_echo_n "checking how to run the C preprocessor... " >&6; }
6994# On Suns, sometimes $CPP names a directory.
6995if test -n "$CPP" && test -d "$CPP"; then
6996  CPP=
6997fi
6998if test -z "$CPP"; then
6999  if ${ac_cv_prog_CPP+:} false; then :
7000  $as_echo_n "(cached) " >&6
7001else
7002      # Double quotes because CPP needs to be expanded
7003    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7004    do
7005      ac_preproc_ok=false
7006for ac_c_preproc_warn_flag in '' yes
7007do
7008  # Use a header file that comes with gcc, so configuring glibc
7009  # with a fresh cross-compiler works.
7010  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7011  # <limits.h> exists even on freestanding compilers.
7012  # On the NeXT, cc -E runs the code through the compiler's parser,
7013  # not just through cpp. "Syntax error" is here to catch this case.
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016#ifdef __STDC__
7017# include <limits.h>
7018#else
7019# include <assert.h>
7020#endif
7021		     Syntax error
7022_ACEOF
7023if ac_fn_c_try_cpp "$LINENO"; then :
7024
7025else
7026  # Broken: fails on valid input.
7027continue
7028fi
7029rm -f conftest.err conftest.i conftest.$ac_ext
7030
7031  # OK, works on sane cases.  Now check whether nonexistent headers
7032  # can be detected and how.
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035#include <ac_nonexistent.h>
7036_ACEOF
7037if ac_fn_c_try_cpp "$LINENO"; then :
7038  # Broken: success on invalid input.
7039continue
7040else
7041  # Passes both tests.
7042ac_preproc_ok=:
7043break
7044fi
7045rm -f conftest.err conftest.i conftest.$ac_ext
7046
7047done
7048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7049rm -f conftest.i conftest.err conftest.$ac_ext
7050if $ac_preproc_ok; then :
7051  break
7052fi
7053
7054    done
7055    ac_cv_prog_CPP=$CPP
7056
7057fi
7058  CPP=$ac_cv_prog_CPP
7059else
7060  ac_cv_prog_CPP=$CPP
7061fi
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7063$as_echo "$CPP" >&6; }
7064ac_preproc_ok=false
7065for ac_c_preproc_warn_flag in '' yes
7066do
7067  # Use a header file that comes with gcc, so configuring glibc
7068  # with a fresh cross-compiler works.
7069  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7070  # <limits.h> exists even on freestanding compilers.
7071  # On the NeXT, cc -E runs the code through the compiler's parser,
7072  # not just through cpp. "Syntax error" is here to catch this case.
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075#ifdef __STDC__
7076# include <limits.h>
7077#else
7078# include <assert.h>
7079#endif
7080		     Syntax error
7081_ACEOF
7082if ac_fn_c_try_cpp "$LINENO"; then :
7083
7084else
7085  # Broken: fails on valid input.
7086continue
7087fi
7088rm -f conftest.err conftest.i conftest.$ac_ext
7089
7090  # OK, works on sane cases.  Now check whether nonexistent headers
7091  # can be detected and how.
7092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094#include <ac_nonexistent.h>
7095_ACEOF
7096if ac_fn_c_try_cpp "$LINENO"; then :
7097  # Broken: success on invalid input.
7098continue
7099else
7100  # Passes both tests.
7101ac_preproc_ok=:
7102break
7103fi
7104rm -f conftest.err conftest.i conftest.$ac_ext
7105
7106done
7107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7108rm -f conftest.i conftest.err conftest.$ac_ext
7109if $ac_preproc_ok; then :
7110
7111else
7112  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7114as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7115See \`config.log' for more details" "$LINENO" 5; }
7116fi
7117
7118ac_ext=c
7119ac_cpp='$CPP $CPPFLAGS'
7120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123
7124
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7126$as_echo_n "checking whether ln -s works... " >&6; }
7127LN_S=$as_ln_s
7128if test "$LN_S" = "ln -s"; then
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130$as_echo "yes" >&6; }
7131else
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7133$as_echo "no, using $LN_S" >&6; }
7134fi
7135
7136
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7138$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7139if ${ac_cv_path_SED+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7143     for ac_i in 1 2 3 4 5 6 7; do
7144       ac_script="$ac_script$as_nl$ac_script"
7145     done
7146     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7147     { ac_script=; unset ac_script;}
7148     if test -z "$SED"; then
7149  ac_path_SED_found=false
7150  # Loop through the user's path and test for each of PROGNAME-LIST
7151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156    for ac_prog in sed gsed; do
7157    for ac_exec_ext in '' $ac_executable_extensions; do
7158      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7159      as_fn_executable_p "$ac_path_SED" || continue
7160# Check for GNU ac_path_SED and select it if it is found.
7161  # Check for GNU $ac_path_SED
7162case `"$ac_path_SED" --version 2>&1` in
7163*GNU*)
7164  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7165*)
7166  ac_count=0
7167  $as_echo_n 0123456789 >"conftest.in"
7168  while :
7169  do
7170    cat "conftest.in" "conftest.in" >"conftest.tmp"
7171    mv "conftest.tmp" "conftest.in"
7172    cp "conftest.in" "conftest.nl"
7173    $as_echo '' >> "conftest.nl"
7174    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7175    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7176    as_fn_arith $ac_count + 1 && ac_count=$as_val
7177    if test $ac_count -gt ${ac_path_SED_max-0}; then
7178      # Best one so far, save it but keep looking for a better one
7179      ac_cv_path_SED="$ac_path_SED"
7180      ac_path_SED_max=$ac_count
7181    fi
7182    # 10*(2^10) chars as input seems more than enough
7183    test $ac_count -gt 10 && break
7184  done
7185  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7186esac
7187
7188      $ac_path_SED_found && break 3
7189    done
7190  done
7191  done
7192IFS=$as_save_IFS
7193  if test -z "$ac_cv_path_SED"; then
7194    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7195  fi
7196else
7197  ac_cv_path_SED=$SED
7198fi
7199
7200fi
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7202$as_echo "$ac_cv_path_SED" >&6; }
7203 SED="$ac_cv_path_SED"
7204  rm -f conftest.sed
7205
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7207$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7208set x ${MAKE-make}
7209ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7210if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  cat >conftest.make <<\_ACEOF
7214SHELL = /bin/sh
7215all:
7216	@echo '@@@%%%=$(MAKE)=@@@%%%'
7217_ACEOF
7218# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7219case `${MAKE-make} -f conftest.make 2>/dev/null` in
7220  *@@@%%%=?*=@@@%%%*)
7221    eval ac_cv_prog_make_${ac_make}_set=yes;;
7222  *)
7223    eval ac_cv_prog_make_${ac_make}_set=no;;
7224esac
7225rm -f conftest.make
7226fi
7227if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7229$as_echo "yes" >&6; }
7230  SET_MAKE=
7231else
7232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234  SET_MAKE="MAKE=${MAKE-make}"
7235fi
7236
7237
7238case `pwd` in
7239  *\ * | *\	*)
7240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7241$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7242esac
7243
7244
7245
7246macro_version='2.4.6'
7247macro_revision='2.4.6'
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261ltmain=$ac_aux_dir/ltmain.sh
7262
7263# Backslashify metacharacters that are still active within
7264# double-quoted strings.
7265sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7266
7267# Same as above, but do not quote variable references.
7268double_quote_subst='s/\(["`\\]\)/\\\1/g'
7269
7270# Sed substitution to delay expansion of an escaped shell variable in a
7271# double_quote_subst'ed string.
7272delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7273
7274# Sed substitution to delay expansion of an escaped single quote.
7275delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7276
7277# Sed substitution to avoid accidental globbing in evaled expressions
7278no_glob_subst='s/\*/\\\*/g'
7279
7280ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7281ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7282ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7283
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7285$as_echo_n "checking how to print strings... " >&6; }
7286# Test print first, because it will be a builtin if present.
7287if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7288   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7289  ECHO='print -r --'
7290elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7291  ECHO='printf %s\n'
7292else
7293  # Use this function as a fallback that always works.
7294  func_fallback_echo ()
7295  {
7296    eval 'cat <<_LTECHO_EOF
7297$1
7298_LTECHO_EOF'
7299  }
7300  ECHO='func_fallback_echo'
7301fi
7302
7303# func_echo_all arg...
7304# Invoke $ECHO with all args, space-separated.
7305func_echo_all ()
7306{
7307    $ECHO ""
7308}
7309
7310case $ECHO in
7311  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7312$as_echo "printf" >&6; } ;;
7313  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7314$as_echo "print -r" >&6; } ;;
7315  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7316$as_echo "cat" >&6; } ;;
7317esac
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7333$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7334if ${ac_cv_path_SED+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7338     for ac_i in 1 2 3 4 5 6 7; do
7339       ac_script="$ac_script$as_nl$ac_script"
7340     done
7341     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7342     { ac_script=; unset ac_script;}
7343     if test -z "$SED"; then
7344  ac_path_SED_found=false
7345  # Loop through the user's path and test for each of PROGNAME-LIST
7346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349  IFS=$as_save_IFS
7350  test -z "$as_dir" && as_dir=.
7351    for ac_prog in sed gsed; do
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7354      as_fn_executable_p "$ac_path_SED" || continue
7355# Check for GNU ac_path_SED and select it if it is found.
7356  # Check for GNU $ac_path_SED
7357case `"$ac_path_SED" --version 2>&1` in
7358*GNU*)
7359  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7360*)
7361  ac_count=0
7362  $as_echo_n 0123456789 >"conftest.in"
7363  while :
7364  do
7365    cat "conftest.in" "conftest.in" >"conftest.tmp"
7366    mv "conftest.tmp" "conftest.in"
7367    cp "conftest.in" "conftest.nl"
7368    $as_echo '' >> "conftest.nl"
7369    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7370    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7371    as_fn_arith $ac_count + 1 && ac_count=$as_val
7372    if test $ac_count -gt ${ac_path_SED_max-0}; then
7373      # Best one so far, save it but keep looking for a better one
7374      ac_cv_path_SED="$ac_path_SED"
7375      ac_path_SED_max=$ac_count
7376    fi
7377    # 10*(2^10) chars as input seems more than enough
7378    test $ac_count -gt 10 && break
7379  done
7380  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7381esac
7382
7383      $ac_path_SED_found && break 3
7384    done
7385  done
7386  done
7387IFS=$as_save_IFS
7388  if test -z "$ac_cv_path_SED"; then
7389    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7390  fi
7391else
7392  ac_cv_path_SED=$SED
7393fi
7394
7395fi
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7397$as_echo "$ac_cv_path_SED" >&6; }
7398 SED="$ac_cv_path_SED"
7399  rm -f conftest.sed
7400
7401test -z "$SED" && SED=sed
7402Xsed="$SED -e 1s/^X//"
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7415$as_echo_n "checking for fgrep... " >&6; }
7416if ${ac_cv_path_FGREP+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7420   then ac_cv_path_FGREP="$GREP -F"
7421   else
7422     if test -z "$FGREP"; then
7423  ac_path_FGREP_found=false
7424  # Loop through the user's path and test for each of PROGNAME-LIST
7425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7427do
7428  IFS=$as_save_IFS
7429  test -z "$as_dir" && as_dir=.
7430    for ac_prog in fgrep; do
7431    for ac_exec_ext in '' $ac_executable_extensions; do
7432      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7433      as_fn_executable_p "$ac_path_FGREP" || continue
7434# Check for GNU ac_path_FGREP and select it if it is found.
7435  # Check for GNU $ac_path_FGREP
7436case `"$ac_path_FGREP" --version 2>&1` in
7437*GNU*)
7438  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7439*)
7440  ac_count=0
7441  $as_echo_n 0123456789 >"conftest.in"
7442  while :
7443  do
7444    cat "conftest.in" "conftest.in" >"conftest.tmp"
7445    mv "conftest.tmp" "conftest.in"
7446    cp "conftest.in" "conftest.nl"
7447    $as_echo 'FGREP' >> "conftest.nl"
7448    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7449    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7450    as_fn_arith $ac_count + 1 && ac_count=$as_val
7451    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7452      # Best one so far, save it but keep looking for a better one
7453      ac_cv_path_FGREP="$ac_path_FGREP"
7454      ac_path_FGREP_max=$ac_count
7455    fi
7456    # 10*(2^10) chars as input seems more than enough
7457    test $ac_count -gt 10 && break
7458  done
7459  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7460esac
7461
7462      $ac_path_FGREP_found && break 3
7463    done
7464  done
7465  done
7466IFS=$as_save_IFS
7467  if test -z "$ac_cv_path_FGREP"; then
7468    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7469  fi
7470else
7471  ac_cv_path_FGREP=$FGREP
7472fi
7473
7474   fi
7475fi
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7477$as_echo "$ac_cv_path_FGREP" >&6; }
7478 FGREP="$ac_cv_path_FGREP"
7479
7480
7481test -z "$GREP" && GREP=grep
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501# Check whether --with-gnu-ld was given.
7502if test "${with_gnu_ld+set}" = set; then :
7503  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7504else
7505  with_gnu_ld=no
7506fi
7507
7508ac_prog=ld
7509if test yes = "$GCC"; then
7510  # Check if gcc -print-prog-name=ld gives a path.
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7512$as_echo_n "checking for ld used by $CC... " >&6; }
7513  case $host in
7514  *-*-mingw*)
7515    # gcc leaves a trailing carriage return, which upsets mingw
7516    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7517  *)
7518    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7519  esac
7520  case $ac_prog in
7521    # Accept absolute paths.
7522    [\\/]* | ?:[\\/]*)
7523      re_direlt='/[^/][^/]*/\.\./'
7524      # Canonicalize the pathname of ld
7525      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7526      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7527	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7528      done
7529      test -z "$LD" && LD=$ac_prog
7530      ;;
7531  "")
7532    # If it fails, then pretend we aren't using GCC.
7533    ac_prog=ld
7534    ;;
7535  *)
7536    # If it is relative, then search for the first ld in PATH.
7537    with_gnu_ld=unknown
7538    ;;
7539  esac
7540elif test yes = "$with_gnu_ld"; then
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7542$as_echo_n "checking for GNU ld... " >&6; }
7543else
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7545$as_echo_n "checking for non-GNU ld... " >&6; }
7546fi
7547if ${lt_cv_path_LD+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -z "$LD"; then
7551  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7552  for ac_dir in $PATH; do
7553    IFS=$lt_save_ifs
7554    test -z "$ac_dir" && ac_dir=.
7555    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7556      lt_cv_path_LD=$ac_dir/$ac_prog
7557      # Check to see if the program is GNU ld.  I'd rather use --version,
7558      # but apparently some variants of GNU ld only accept -v.
7559      # Break only if it was the GNU/non-GNU ld that we prefer.
7560      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7561      *GNU* | *'with BFD'*)
7562	test no != "$with_gnu_ld" && break
7563	;;
7564      *)
7565	test yes != "$with_gnu_ld" && break
7566	;;
7567      esac
7568    fi
7569  done
7570  IFS=$lt_save_ifs
7571else
7572  lt_cv_path_LD=$LD # Let the user override the test with a path.
7573fi
7574fi
7575
7576LD=$lt_cv_path_LD
7577if test -n "$LD"; then
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7579$as_echo "$LD" >&6; }
7580else
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7586$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7587if ${lt_cv_prog_gnu_ld+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7591case `$LD -v 2>&1 </dev/null` in
7592*GNU* | *'with BFD'*)
7593  lt_cv_prog_gnu_ld=yes
7594  ;;
7595*)
7596  lt_cv_prog_gnu_ld=no
7597  ;;
7598esac
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7601$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7602with_gnu_ld=$lt_cv_prog_gnu_ld
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7613$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7614if ${lt_cv_path_NM+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  if test -n "$NM"; then
7618  # Let the user override the test.
7619  lt_cv_path_NM=$NM
7620else
7621  lt_nm_to_check=${ac_tool_prefix}nm
7622  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7623    lt_nm_to_check="$lt_nm_to_check nm"
7624  fi
7625  for lt_tmp_nm in $lt_nm_to_check; do
7626    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7627    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7628      IFS=$lt_save_ifs
7629      test -z "$ac_dir" && ac_dir=.
7630      tmp_nm=$ac_dir/$lt_tmp_nm
7631      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7632	# Check to see if the nm accepts a BSD-compat flag.
7633	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7634	#   nm: unknown option "B" ignored
7635	# Tru64's nm complains that /dev/null is an invalid object file
7636	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7637	case $build_os in
7638	mingw*) lt_bad_file=conftest.nm/nofile ;;
7639	*) lt_bad_file=/dev/null ;;
7640	esac
7641	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7642	*$lt_bad_file* | *'Invalid file or object type'*)
7643	  lt_cv_path_NM="$tmp_nm -B"
7644	  break 2
7645	  ;;
7646	*)
7647	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7648	  */dev/null*)
7649	    lt_cv_path_NM="$tmp_nm -p"
7650	    break 2
7651	    ;;
7652	  *)
7653	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7654	    continue # so that we can try to find one that supports BSD flags
7655	    ;;
7656	  esac
7657	  ;;
7658	esac
7659      fi
7660    done
7661    IFS=$lt_save_ifs
7662  done
7663  : ${lt_cv_path_NM=no}
7664fi
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7667$as_echo "$lt_cv_path_NM" >&6; }
7668if test no != "$lt_cv_path_NM"; then
7669  NM=$lt_cv_path_NM
7670else
7671  # Didn't find any BSD compatible name lister, look for dumpbin.
7672  if test -n "$DUMPBIN"; then :
7673    # Let the user override the test.
7674  else
7675    if test -n "$ac_tool_prefix"; then
7676  for ac_prog in dumpbin "link -dump"
7677  do
7678    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if ${ac_cv_prog_DUMPBIN+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685  if test -n "$DUMPBIN"; then
7686  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691  IFS=$as_save_IFS
7692  test -z "$as_dir" && as_dir=.
7693    for ac_exec_ext in '' $ac_executable_extensions; do
7694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697    break 2
7698  fi
7699done
7700  done
7701IFS=$as_save_IFS
7702
7703fi
7704fi
7705DUMPBIN=$ac_cv_prog_DUMPBIN
7706if test -n "$DUMPBIN"; then
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7708$as_echo "$DUMPBIN" >&6; }
7709else
7710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
7712fi
7713
7714
7715    test -n "$DUMPBIN" && break
7716  done
7717fi
7718if test -z "$DUMPBIN"; then
7719  ac_ct_DUMPBIN=$DUMPBIN
7720  for ac_prog in dumpbin "link -dump"
7721do
7722  # Extract the first word of "$ac_prog", so it can be a program name with args.
7723set dummy $ac_prog; ac_word=$2
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  if test -n "$ac_ct_DUMPBIN"; then
7730  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  test -z "$as_dir" && as_dir=.
7737    for ac_exec_ext in '' $ac_executable_extensions; do
7738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741    break 2
7742  fi
7743done
7744  done
7745IFS=$as_save_IFS
7746
7747fi
7748fi
7749ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7750if test -n "$ac_ct_DUMPBIN"; then
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7752$as_echo "$ac_ct_DUMPBIN" >&6; }
7753else
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
7756fi
7757
7758
7759  test -n "$ac_ct_DUMPBIN" && break
7760done
7761
7762  if test "x$ac_ct_DUMPBIN" = x; then
7763    DUMPBIN=":"
7764  else
7765    case $cross_compiling:$ac_tool_warned in
7766yes:)
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769ac_tool_warned=yes ;;
7770esac
7771    DUMPBIN=$ac_ct_DUMPBIN
7772  fi
7773fi
7774
7775    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7776    *COFF*)
7777      DUMPBIN="$DUMPBIN -symbols -headers"
7778      ;;
7779    *)
7780      DUMPBIN=:
7781      ;;
7782    esac
7783  fi
7784
7785  if test : != "$DUMPBIN"; then
7786    NM=$DUMPBIN
7787  fi
7788fi
7789test -z "$NM" && NM=nm
7790
7791
7792
7793
7794
7795
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7797$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7798if ${lt_cv_nm_interface+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  lt_cv_nm_interface="BSD nm"
7802  echo "int some_variable = 0;" > conftest.$ac_ext
7803  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7804  (eval "$ac_compile" 2>conftest.err)
7805  cat conftest.err >&5
7806  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7807  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7808  cat conftest.err >&5
7809  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7810  cat conftest.out >&5
7811  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7812    lt_cv_nm_interface="MS dumpbin"
7813  fi
7814  rm -f conftest*
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7817$as_echo "$lt_cv_nm_interface" >&6; }
7818
7819# find the maximum length of command line arguments
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7821$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7822if ${lt_cv_sys_max_cmd_len+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825    i=0
7826  teststring=ABCD
7827
7828  case $build_os in
7829  msdosdjgpp*)
7830    # On DJGPP, this test can blow up pretty badly due to problems in libc
7831    # (any single argument exceeding 2000 bytes causes a buffer overrun
7832    # during glob expansion).  Even if it were fixed, the result of this
7833    # check would be larger than it should be.
7834    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7835    ;;
7836
7837  gnu*)
7838    # Under GNU Hurd, this test is not required because there is
7839    # no limit to the length of command line arguments.
7840    # Libtool will interpret -1 as no limit whatsoever
7841    lt_cv_sys_max_cmd_len=-1;
7842    ;;
7843
7844  cygwin* | mingw* | cegcc*)
7845    # On Win9x/ME, this test blows up -- it succeeds, but takes
7846    # about 5 minutes as the teststring grows exponentially.
7847    # Worse, since 9x/ME are not pre-emptively multitasking,
7848    # you end up with a "frozen" computer, even though with patience
7849    # the test eventually succeeds (with a max line length of 256k).
7850    # Instead, let's just punt: use the minimum linelength reported by
7851    # all of the supported platforms: 8192 (on NT/2K/XP).
7852    lt_cv_sys_max_cmd_len=8192;
7853    ;;
7854
7855  mint*)
7856    # On MiNT this can take a long time and run out of memory.
7857    lt_cv_sys_max_cmd_len=8192;
7858    ;;
7859
7860  amigaos*)
7861    # On AmigaOS with pdksh, this test takes hours, literally.
7862    # So we just punt and use a minimum line length of 8192.
7863    lt_cv_sys_max_cmd_len=8192;
7864    ;;
7865
7866  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7867    # This has been around since 386BSD, at least.  Likely further.
7868    if test -x /sbin/sysctl; then
7869      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7870    elif test -x /usr/sbin/sysctl; then
7871      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7872    else
7873      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7874    fi
7875    # And add a safety zone
7876    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7877    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7878    ;;
7879
7880  interix*)
7881    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7882    lt_cv_sys_max_cmd_len=196608
7883    ;;
7884
7885  os2*)
7886    # The test takes a long time on OS/2.
7887    lt_cv_sys_max_cmd_len=8192
7888    ;;
7889
7890  osf*)
7891    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7892    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7893    # nice to cause kernel panics so lets avoid the loop below.
7894    # First set a reasonable default.
7895    lt_cv_sys_max_cmd_len=16384
7896    #
7897    if test -x /sbin/sysconfig; then
7898      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7899        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7900      esac
7901    fi
7902    ;;
7903  sco3.2v5*)
7904    lt_cv_sys_max_cmd_len=102400
7905    ;;
7906  sysv5* | sco5v6* | sysv4.2uw2*)
7907    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7908    if test -n "$kargmax"; then
7909      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7910    else
7911      lt_cv_sys_max_cmd_len=32768
7912    fi
7913    ;;
7914  *)
7915    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7916    if test -n "$lt_cv_sys_max_cmd_len" && \
7917       test undefined != "$lt_cv_sys_max_cmd_len"; then
7918      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7919      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7920    else
7921      # Make teststring a little bigger before we do anything with it.
7922      # a 1K string should be a reasonable start.
7923      for i in 1 2 3 4 5 6 7 8; do
7924        teststring=$teststring$teststring
7925      done
7926      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7927      # If test is not a shell built-in, we'll probably end up computing a
7928      # maximum length that is only half of the actual maximum length, but
7929      # we can't tell.
7930      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7931	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7932	      test 17 != "$i" # 1/2 MB should be enough
7933      do
7934        i=`expr $i + 1`
7935        teststring=$teststring$teststring
7936      done
7937      # Only check the string length outside the loop.
7938      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7939      teststring=
7940      # Add a significant safety factor because C++ compilers can tack on
7941      # massive amounts of additional arguments before passing them to the
7942      # linker.  It appears as though 1/2 is a usable value.
7943      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7944    fi
7945    ;;
7946  esac
7947
7948fi
7949
7950if test -n "$lt_cv_sys_max_cmd_len"; then
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7952$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7953else
7954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7955$as_echo "none" >&6; }
7956fi
7957max_cmd_len=$lt_cv_sys_max_cmd_len
7958
7959
7960
7961
7962
7963
7964: ${CP="cp -f"}
7965: ${MV="mv -f"}
7966: ${RM="rm -f"}
7967
7968if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7969  lt_unset=unset
7970else
7971  lt_unset=false
7972fi
7973
7974
7975
7976
7977
7978# test EBCDIC or ASCII
7979case `echo X|tr X '\101'` in
7980 A) # ASCII based system
7981    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7982  lt_SP2NL='tr \040 \012'
7983  lt_NL2SP='tr \015\012 \040\040'
7984  ;;
7985 *) # EBCDIC based system
7986  lt_SP2NL='tr \100 \n'
7987  lt_NL2SP='tr \r\n \100\100'
7988  ;;
7989esac
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8000$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8001if ${lt_cv_to_host_file_cmd+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  case $host in
8005  *-*-mingw* )
8006    case $build in
8007      *-*-mingw* ) # actually msys
8008        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8009        ;;
8010      *-*-cygwin* )
8011        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8012        ;;
8013      * ) # otherwise, assume *nix
8014        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8015        ;;
8016    esac
8017    ;;
8018  *-*-cygwin* )
8019    case $build in
8020      *-*-mingw* ) # actually msys
8021        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8022        ;;
8023      *-*-cygwin* )
8024        lt_cv_to_host_file_cmd=func_convert_file_noop
8025        ;;
8026      * ) # otherwise, assume *nix
8027        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8028        ;;
8029    esac
8030    ;;
8031  * ) # unhandled hosts (and "normal" native builds)
8032    lt_cv_to_host_file_cmd=func_convert_file_noop
8033    ;;
8034esac
8035
8036fi
8037
8038to_host_file_cmd=$lt_cv_to_host_file_cmd
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8040$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8041
8042
8043
8044
8045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8047$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8048if ${lt_cv_to_tool_file_cmd+:} false; then :
8049  $as_echo_n "(cached) " >&6
8050else
8051  #assume ordinary cross tools, or native build.
8052lt_cv_to_tool_file_cmd=func_convert_file_noop
8053case $host in
8054  *-*-mingw* )
8055    case $build in
8056      *-*-mingw* ) # actually msys
8057        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8058        ;;
8059    esac
8060    ;;
8061esac
8062
8063fi
8064
8065to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8067$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8068
8069
8070
8071
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8074$as_echo_n "checking for $LD option to reload object files... " >&6; }
8075if ${lt_cv_ld_reload_flag+:} false; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078  lt_cv_ld_reload_flag='-r'
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8081$as_echo "$lt_cv_ld_reload_flag" >&6; }
8082reload_flag=$lt_cv_ld_reload_flag
8083case $reload_flag in
8084"" | " "*) ;;
8085*) reload_flag=" $reload_flag" ;;
8086esac
8087reload_cmds='$LD$reload_flag -o $output$reload_objs'
8088case $host_os in
8089  cygwin* | mingw* | pw32* | cegcc*)
8090    if test yes != "$GCC"; then
8091      reload_cmds=false
8092    fi
8093    ;;
8094  darwin*)
8095    if test yes = "$GCC"; then
8096      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8097    else
8098      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8099    fi
8100    ;;
8101esac
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111if test -n "$ac_tool_prefix"; then
8112  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8113set dummy ${ac_tool_prefix}objdump; ac_word=$2
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115$as_echo_n "checking for $ac_word... " >&6; }
8116if ${ac_cv_prog_OBJDUMP+:} false; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  if test -n "$OBJDUMP"; then
8120  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  test -z "$as_dir" && as_dir=.
8127    for ac_exec_ext in '' $ac_executable_extensions; do
8128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131    break 2
8132  fi
8133done
8134  done
8135IFS=$as_save_IFS
8136
8137fi
8138fi
8139OBJDUMP=$ac_cv_prog_OBJDUMP
8140if test -n "$OBJDUMP"; then
8141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8142$as_echo "$OBJDUMP" >&6; }
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147
8148
8149fi
8150if test -z "$ac_cv_prog_OBJDUMP"; then
8151  ac_ct_OBJDUMP=$OBJDUMP
8152  # Extract the first word of "objdump", so it can be a program name with args.
8153set dummy objdump; ac_word=$2
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155$as_echo_n "checking for $ac_word... " >&6; }
8156if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  if test -n "$ac_ct_OBJDUMP"; then
8160  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165  IFS=$as_save_IFS
8166  test -z "$as_dir" && as_dir=.
8167    for ac_exec_ext in '' $ac_executable_extensions; do
8168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171    break 2
8172  fi
8173done
8174  done
8175IFS=$as_save_IFS
8176
8177fi
8178fi
8179ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8180if test -n "$ac_ct_OBJDUMP"; then
8181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8182$as_echo "$ac_ct_OBJDUMP" >&6; }
8183else
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
8186fi
8187
8188  if test "x$ac_ct_OBJDUMP" = x; then
8189    OBJDUMP="false"
8190  else
8191    case $cross_compiling:$ac_tool_warned in
8192yes:)
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8195ac_tool_warned=yes ;;
8196esac
8197    OBJDUMP=$ac_ct_OBJDUMP
8198  fi
8199else
8200  OBJDUMP="$ac_cv_prog_OBJDUMP"
8201fi
8202
8203test -z "$OBJDUMP" && OBJDUMP=objdump
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8214$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8215if ${lt_cv_deplibs_check_method+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  lt_cv_file_magic_cmd='$MAGIC_CMD'
8219lt_cv_file_magic_test_file=
8220lt_cv_deplibs_check_method='unknown'
8221# Need to set the preceding variable on all platforms that support
8222# interlibrary dependencies.
8223# 'none' -- dependencies not supported.
8224# 'unknown' -- same as none, but documents that we really don't know.
8225# 'pass_all' -- all dependencies passed with no checks.
8226# 'test_compile' -- check by making test program.
8227# 'file_magic [[regex]]' -- check by looking for files in library path
8228# that responds to the $file_magic_cmd with a given extended regex.
8229# If you have 'file' or equivalent on your system and you're not sure
8230# whether 'pass_all' will *always* work, you probably want this one.
8231
8232case $host_os in
8233aix[4-9]*)
8234  lt_cv_deplibs_check_method=pass_all
8235  ;;
8236
8237beos*)
8238  lt_cv_deplibs_check_method=pass_all
8239  ;;
8240
8241bsdi[45]*)
8242  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8243  lt_cv_file_magic_cmd='/usr/bin/file -L'
8244  lt_cv_file_magic_test_file=/shlib/libc.so
8245  ;;
8246
8247cygwin*)
8248  # func_win32_libid is a shell function defined in ltmain.sh
8249  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8250  lt_cv_file_magic_cmd='func_win32_libid'
8251  ;;
8252
8253mingw* | pw32*)
8254  # Base MSYS/MinGW do not provide the 'file' command needed by
8255  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8256  # unless we find 'file', for example because we are cross-compiling.
8257  if ( file / ) >/dev/null 2>&1; then
8258    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8259    lt_cv_file_magic_cmd='func_win32_libid'
8260  else
8261    # Keep this pattern in sync with the one in func_win32_libid.
8262    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8263    lt_cv_file_magic_cmd='$OBJDUMP -f'
8264  fi
8265  ;;
8266
8267cegcc*)
8268  # use the weaker test based on 'objdump'. See mingw*.
8269  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8270  lt_cv_file_magic_cmd='$OBJDUMP -f'
8271  ;;
8272
8273darwin* | rhapsody*)
8274  lt_cv_deplibs_check_method=pass_all
8275  ;;
8276
8277freebsd* | dragonfly*)
8278  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8279    case $host_cpu in
8280    i*86 )
8281      # Not sure whether the presence of OpenBSD here was a mistake.
8282      # Let's accept both of them until this is cleared up.
8283      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8284      lt_cv_file_magic_cmd=/usr/bin/file
8285      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8286      ;;
8287    esac
8288  else
8289    lt_cv_deplibs_check_method=pass_all
8290  fi
8291  ;;
8292
8293haiku*)
8294  lt_cv_deplibs_check_method=pass_all
8295  ;;
8296
8297hpux10.20* | hpux11*)
8298  lt_cv_file_magic_cmd=/usr/bin/file
8299  case $host_cpu in
8300  ia64*)
8301    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8302    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8303    ;;
8304  hppa*64*)
8305    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]'
8306    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8307    ;;
8308  *)
8309    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8310    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8311    ;;
8312  esac
8313  ;;
8314
8315interix[3-9]*)
8316  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8317  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8318  ;;
8319
8320irix5* | irix6* | nonstopux*)
8321  case $LD in
8322  *-32|*"-32 ") libmagic=32-bit;;
8323  *-n32|*"-n32 ") libmagic=N32;;
8324  *-64|*"-64 ") libmagic=64-bit;;
8325  *) libmagic=never-match;;
8326  esac
8327  lt_cv_deplibs_check_method=pass_all
8328  ;;
8329
8330# This must be glibc/ELF.
8331linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8332  lt_cv_deplibs_check_method=pass_all
8333  ;;
8334
8335netbsd* | netbsdelf*-gnu)
8336  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8337    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8338  else
8339    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8340  fi
8341  ;;
8342
8343newos6*)
8344  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8345  lt_cv_file_magic_cmd=/usr/bin/file
8346  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8347  ;;
8348
8349*nto* | *qnx*)
8350  lt_cv_deplibs_check_method=pass_all
8351  ;;
8352
8353openbsd* | bitrig*)
8354  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8356  else
8357    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8358  fi
8359  ;;
8360
8361osf3* | osf4* | osf5*)
8362  lt_cv_deplibs_check_method=pass_all
8363  ;;
8364
8365rdos*)
8366  lt_cv_deplibs_check_method=pass_all
8367  ;;
8368
8369solaris*)
8370  lt_cv_deplibs_check_method=pass_all
8371  ;;
8372
8373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8374  lt_cv_deplibs_check_method=pass_all
8375  ;;
8376
8377sysv4 | sysv4.3*)
8378  case $host_vendor in
8379  motorola)
8380    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]'
8381    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8382    ;;
8383  ncr)
8384    lt_cv_deplibs_check_method=pass_all
8385    ;;
8386  sequent)
8387    lt_cv_file_magic_cmd='/bin/file'
8388    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8389    ;;
8390  sni)
8391    lt_cv_file_magic_cmd='/bin/file'
8392    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8393    lt_cv_file_magic_test_file=/lib/libc.so
8394    ;;
8395  siemens)
8396    lt_cv_deplibs_check_method=pass_all
8397    ;;
8398  pc)
8399    lt_cv_deplibs_check_method=pass_all
8400    ;;
8401  esac
8402  ;;
8403
8404tpf*)
8405  lt_cv_deplibs_check_method=pass_all
8406  ;;
8407os2*)
8408  lt_cv_deplibs_check_method=pass_all
8409  ;;
8410esac
8411
8412fi
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8414$as_echo "$lt_cv_deplibs_check_method" >&6; }
8415
8416file_magic_glob=
8417want_nocaseglob=no
8418if test "$build" = "$host"; then
8419  case $host_os in
8420  mingw* | pw32*)
8421    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8422      want_nocaseglob=yes
8423    else
8424      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8425    fi
8426    ;;
8427  esac
8428fi
8429
8430file_magic_cmd=$lt_cv_file_magic_cmd
8431deplibs_check_method=$lt_cv_deplibs_check_method
8432test -z "$deplibs_check_method" && deplibs_check_method=unknown
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455if test -n "$ac_tool_prefix"; then
8456  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8457set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459$as_echo_n "checking for $ac_word... " >&6; }
8460if ${ac_cv_prog_DLLTOOL+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  if test -n "$DLLTOOL"; then
8464  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8465else
8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469  IFS=$as_save_IFS
8470  test -z "$as_dir" && as_dir=.
8471    for ac_exec_ext in '' $ac_executable_extensions; do
8472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475    break 2
8476  fi
8477done
8478  done
8479IFS=$as_save_IFS
8480
8481fi
8482fi
8483DLLTOOL=$ac_cv_prog_DLLTOOL
8484if test -n "$DLLTOOL"; then
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8486$as_echo "$DLLTOOL" >&6; }
8487else
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
8490fi
8491
8492
8493fi
8494if test -z "$ac_cv_prog_DLLTOOL"; then
8495  ac_ct_DLLTOOL=$DLLTOOL
8496  # Extract the first word of "dlltool", so it can be a program name with args.
8497set dummy dlltool; ac_word=$2
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499$as_echo_n "checking for $ac_word... " >&6; }
8500if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  if test -n "$ac_ct_DLLTOOL"; then
8504  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509  IFS=$as_save_IFS
8510  test -z "$as_dir" && as_dir=.
8511    for ac_exec_ext in '' $ac_executable_extensions; do
8512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515    break 2
8516  fi
8517done
8518  done
8519IFS=$as_save_IFS
8520
8521fi
8522fi
8523ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8524if test -n "$ac_ct_DLLTOOL"; then
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8526$as_echo "$ac_ct_DLLTOOL" >&6; }
8527else
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530fi
8531
8532  if test "x$ac_ct_DLLTOOL" = x; then
8533    DLLTOOL="false"
8534  else
8535    case $cross_compiling:$ac_tool_warned in
8536yes:)
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539ac_tool_warned=yes ;;
8540esac
8541    DLLTOOL=$ac_ct_DLLTOOL
8542  fi
8543else
8544  DLLTOOL="$ac_cv_prog_DLLTOOL"
8545fi
8546
8547test -z "$DLLTOOL" && DLLTOOL=dlltool
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8559$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8560if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  lt_cv_sharedlib_from_linklib_cmd='unknown'
8564
8565case $host_os in
8566cygwin* | mingw* | pw32* | cegcc*)
8567  # two different shell functions defined in ltmain.sh;
8568  # decide which one to use based on capabilities of $DLLTOOL
8569  case `$DLLTOOL --help 2>&1` in
8570  *--identify-strict*)
8571    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8572    ;;
8573  *)
8574    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8575    ;;
8576  esac
8577  ;;
8578*)
8579  # fallback: assume linklib IS sharedlib
8580  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8581  ;;
8582esac
8583
8584fi
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8586$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8587sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8588test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8589
8590
8591
8592
8593
8594
8595
8596if test -n "$ac_tool_prefix"; then
8597  for ac_prog in ar
8598  do
8599    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
8603if ${ac_cv_prog_AR+:} false; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  if test -n "$AR"; then
8607  ac_cv_prog_AR="$AR" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612  IFS=$as_save_IFS
8613  test -z "$as_dir" && as_dir=.
8614    for ac_exec_ext in '' $ac_executable_extensions; do
8615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618    break 2
8619  fi
8620done
8621  done
8622IFS=$as_save_IFS
8623
8624fi
8625fi
8626AR=$ac_cv_prog_AR
8627if test -n "$AR"; then
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8629$as_echo "$AR" >&6; }
8630else
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
8634
8635
8636    test -n "$AR" && break
8637  done
8638fi
8639if test -z "$AR"; then
8640  ac_ct_AR=$AR
8641  for ac_prog in ar
8642do
8643  # Extract the first word of "$ac_prog", so it can be a program name with args.
8644set dummy $ac_prog; ac_word=$2
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
8647if ${ac_cv_prog_ac_ct_AR+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  if test -n "$ac_ct_AR"; then
8651  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656  IFS=$as_save_IFS
8657  test -z "$as_dir" && as_dir=.
8658    for ac_exec_ext in '' $ac_executable_extensions; do
8659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660    ac_cv_prog_ac_ct_AR="$ac_prog"
8661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662    break 2
8663  fi
8664done
8665  done
8666IFS=$as_save_IFS
8667
8668fi
8669fi
8670ac_ct_AR=$ac_cv_prog_ac_ct_AR
8671if test -n "$ac_ct_AR"; then
8672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8673$as_echo "$ac_ct_AR" >&6; }
8674else
8675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
8677fi
8678
8679
8680  test -n "$ac_ct_AR" && break
8681done
8682
8683  if test "x$ac_ct_AR" = x; then
8684    AR="false"
8685  else
8686    case $cross_compiling:$ac_tool_warned in
8687yes:)
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8690ac_tool_warned=yes ;;
8691esac
8692    AR=$ac_ct_AR
8693  fi
8694fi
8695
8696: ${AR=ar}
8697: ${AR_FLAGS=cru}
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8710$as_echo_n "checking for archiver @FILE support... " >&6; }
8711if ${lt_cv_ar_at_file+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  lt_cv_ar_at_file=no
8715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717
8718int
8719main ()
8720{
8721
8722  ;
8723  return 0;
8724}
8725_ACEOF
8726if ac_fn_c_try_compile "$LINENO"; then :
8727  echo conftest.$ac_objext > conftest.lst
8728      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8729      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8730  (eval $lt_ar_try) 2>&5
8731  ac_status=$?
8732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8733  test $ac_status = 0; }
8734      if test 0 -eq "$ac_status"; then
8735	# Ensure the archiver fails upon bogus file names.
8736	rm -f conftest.$ac_objext libconftest.a
8737	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8738  (eval $lt_ar_try) 2>&5
8739  ac_status=$?
8740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741  test $ac_status = 0; }
8742	if test 0 -ne "$ac_status"; then
8743          lt_cv_ar_at_file=@
8744        fi
8745      fi
8746      rm -f conftest.* libconftest.a
8747
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8753$as_echo "$lt_cv_ar_at_file" >&6; }
8754
8755if test no = "$lt_cv_ar_at_file"; then
8756  archiver_list_spec=
8757else
8758  archiver_list_spec=$lt_cv_ar_at_file
8759fi
8760
8761
8762
8763
8764
8765
8766
8767if test -n "$ac_tool_prefix"; then
8768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8769set dummy ${ac_tool_prefix}strip; ac_word=$2
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771$as_echo_n "checking for $ac_word... " >&6; }
8772if ${ac_cv_prog_STRIP+:} false; then :
8773  $as_echo_n "(cached) " >&6
8774else
8775  if test -n "$STRIP"; then
8776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8777else
8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781  IFS=$as_save_IFS
8782  test -z "$as_dir" && as_dir=.
8783    for ac_exec_ext in '' $ac_executable_extensions; do
8784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787    break 2
8788  fi
8789done
8790  done
8791IFS=$as_save_IFS
8792
8793fi
8794fi
8795STRIP=$ac_cv_prog_STRIP
8796if test -n "$STRIP"; then
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8798$as_echo "$STRIP" >&6; }
8799else
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
8802fi
8803
8804
8805fi
8806if test -z "$ac_cv_prog_STRIP"; then
8807  ac_ct_STRIP=$STRIP
8808  # Extract the first word of "strip", so it can be a program name with args.
8809set dummy strip; ac_word=$2
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811$as_echo_n "checking for $ac_word... " >&6; }
8812if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8813  $as_echo_n "(cached) " >&6
8814else
8815  if test -n "$ac_ct_STRIP"; then
8816  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8817else
8818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819for as_dir in $PATH
8820do
8821  IFS=$as_save_IFS
8822  test -z "$as_dir" && as_dir=.
8823    for ac_exec_ext in '' $ac_executable_extensions; do
8824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825    ac_cv_prog_ac_ct_STRIP="strip"
8826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827    break 2
8828  fi
8829done
8830  done
8831IFS=$as_save_IFS
8832
8833fi
8834fi
8835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8836if test -n "$ac_ct_STRIP"; then
8837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8838$as_echo "$ac_ct_STRIP" >&6; }
8839else
8840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841$as_echo "no" >&6; }
8842fi
8843
8844  if test "x$ac_ct_STRIP" = x; then
8845    STRIP=":"
8846  else
8847    case $cross_compiling:$ac_tool_warned in
8848yes:)
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851ac_tool_warned=yes ;;
8852esac
8853    STRIP=$ac_ct_STRIP
8854  fi
8855else
8856  STRIP="$ac_cv_prog_STRIP"
8857fi
8858
8859test -z "$STRIP" && STRIP=:
8860
8861
8862
8863
8864
8865
8866if test -n "$ac_tool_prefix"; then
8867  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8868set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
8871if ${ac_cv_prog_RANLIB+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  if test -n "$RANLIB"; then
8875  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8876else
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880  IFS=$as_save_IFS
8881  test -z "$as_dir" && as_dir=.
8882    for ac_exec_ext in '' $ac_executable_extensions; do
8883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886    break 2
8887  fi
8888done
8889  done
8890IFS=$as_save_IFS
8891
8892fi
8893fi
8894RANLIB=$ac_cv_prog_RANLIB
8895if test -n "$RANLIB"; then
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8897$as_echo "$RANLIB" >&6; }
8898else
8899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
8901fi
8902
8903
8904fi
8905if test -z "$ac_cv_prog_RANLIB"; then
8906  ac_ct_RANLIB=$RANLIB
8907  # Extract the first word of "ranlib", so it can be a program name with args.
8908set dummy ranlib; ac_word=$2
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910$as_echo_n "checking for $ac_word... " >&6; }
8911if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  if test -n "$ac_ct_RANLIB"; then
8915  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8916else
8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918for as_dir in $PATH
8919do
8920  IFS=$as_save_IFS
8921  test -z "$as_dir" && as_dir=.
8922    for ac_exec_ext in '' $ac_executable_extensions; do
8923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924    ac_cv_prog_ac_ct_RANLIB="ranlib"
8925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926    break 2
8927  fi
8928done
8929  done
8930IFS=$as_save_IFS
8931
8932fi
8933fi
8934ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8935if test -n "$ac_ct_RANLIB"; then
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8937$as_echo "$ac_ct_RANLIB" >&6; }
8938else
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
8941fi
8942
8943  if test "x$ac_ct_RANLIB" = x; then
8944    RANLIB=":"
8945  else
8946    case $cross_compiling:$ac_tool_warned in
8947yes:)
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8950ac_tool_warned=yes ;;
8951esac
8952    RANLIB=$ac_ct_RANLIB
8953  fi
8954else
8955  RANLIB="$ac_cv_prog_RANLIB"
8956fi
8957
8958test -z "$RANLIB" && RANLIB=:
8959
8960
8961
8962
8963
8964
8965# Determine commands to create old-style static archives.
8966old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8967old_postinstall_cmds='chmod 644 $oldlib'
8968old_postuninstall_cmds=
8969
8970if test -n "$RANLIB"; then
8971  case $host_os in
8972  bitrig* | openbsd*)
8973    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8974    ;;
8975  *)
8976    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8977    ;;
8978  esac
8979  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8980fi
8981
8982case $host_os in
8983  darwin*)
8984    lock_old_archive_extraction=yes ;;
8985  *)
8986    lock_old_archive_extraction=no ;;
8987esac
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027# If no C compiler was specified, use CC.
9028LTCC=${LTCC-"$CC"}
9029
9030# If no C compiler flags were specified, use CFLAGS.
9031LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9032
9033# Allow CC to be a program name with arguments.
9034compiler=$CC
9035
9036
9037# Check for command to grab the raw symbol name followed by C symbol from nm.
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9039$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9040if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043
9044# These are sane defaults that work on at least a few old systems.
9045# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9046
9047# Character class describing NM global symbol codes.
9048symcode='[BCDEGRST]'
9049
9050# Regexp to match symbols that can be accessed directly from C.
9051sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9052
9053# Define system-specific variables.
9054case $host_os in
9055aix*)
9056  symcode='[BCDT]'
9057  ;;
9058cygwin* | mingw* | pw32* | cegcc*)
9059  symcode='[ABCDGISTW]'
9060  ;;
9061hpux*)
9062  if test ia64 = "$host_cpu"; then
9063    symcode='[ABCDEGRST]'
9064  fi
9065  ;;
9066irix* | nonstopux*)
9067  symcode='[BCDEGRST]'
9068  ;;
9069osf*)
9070  symcode='[BCDEGQRST]'
9071  ;;
9072solaris*)
9073  symcode='[BDRT]'
9074  ;;
9075sco3.2v5*)
9076  symcode='[DT]'
9077  ;;
9078sysv4.2uw2*)
9079  symcode='[DT]'
9080  ;;
9081sysv5* | sco5v6* | unixware* | OpenUNIX*)
9082  symcode='[ABDT]'
9083  ;;
9084sysv4)
9085  symcode='[DFNSTU]'
9086  ;;
9087esac
9088
9089# If we're using GNU nm, then use its standard symbol codes.
9090case `$NM -V 2>&1` in
9091*GNU* | *'with BFD'*)
9092  symcode='[ABCDGIRSTW]' ;;
9093esac
9094
9095if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9096  # Gets list of data symbols to import.
9097  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9098  # Adjust the below global symbol transforms to fixup imported variables.
9099  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9100  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9101  lt_c_name_lib_hook="\
9102  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9103  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9104else
9105  # Disable hooks by default.
9106  lt_cv_sys_global_symbol_to_import=
9107  lt_cdecl_hook=
9108  lt_c_name_hook=
9109  lt_c_name_lib_hook=
9110fi
9111
9112# Transform an extracted symbol line into a proper C declaration.
9113# Some systems (esp. on ia64) link data and code symbols differently,
9114# so use this general approach.
9115lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9116$lt_cdecl_hook\
9117" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9118" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9119
9120# Transform an extracted symbol line into symbol name and symbol address
9121lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9122$lt_c_name_hook\
9123" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9124" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9125
9126# Transform an extracted symbol line into symbol name with lib prefix and
9127# symbol address.
9128lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9129$lt_c_name_lib_hook\
9130" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9131" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9132" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9133
9134# Handle CRLF in mingw tool chain
9135opt_cr=
9136case $build_os in
9137mingw*)
9138  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9139  ;;
9140esac
9141
9142# Try without a prefix underscore, then with it.
9143for ac_symprfx in "" "_"; do
9144
9145  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9146  symxfrm="\\1 $ac_symprfx\\2 \\2"
9147
9148  # Write the raw and C identifiers.
9149  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9150    # Fake it for dumpbin and say T for any non-static function,
9151    # D for any global variable and I for any imported variable.
9152    # Also find C++ and __fastcall symbols from MSVC++,
9153    # which start with @ or ?.
9154    lt_cv_sys_global_symbol_pipe="$AWK '"\
9155"     {last_section=section; section=\$ 3};"\
9156"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9157"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9158"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9159"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9160"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9161"     \$ 0!~/External *\|/{next};"\
9162"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9163"     {if(hide[section]) next};"\
9164"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9165"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9166"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9167"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9168"     ' prfx=^$ac_symprfx"
9169  else
9170    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9171  fi
9172  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9173
9174  # Check to see that the pipe works correctly.
9175  pipe_works=no
9176
9177  rm -f conftest*
9178  cat > conftest.$ac_ext <<_LT_EOF
9179#ifdef __cplusplus
9180extern "C" {
9181#endif
9182char nm_test_var;
9183void nm_test_func(void);
9184void nm_test_func(void){}
9185#ifdef __cplusplus
9186}
9187#endif
9188int main(){nm_test_var='a';nm_test_func();return(0);}
9189_LT_EOF
9190
9191  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9192  (eval $ac_compile) 2>&5
9193  ac_status=$?
9194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9195  test $ac_status = 0; }; then
9196    # Now try to grab the symbols.
9197    nlist=conftest.nm
9198    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9199  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9200  ac_status=$?
9201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9202  test $ac_status = 0; } && test -s "$nlist"; then
9203      # Try sorting and uniquifying the output.
9204      if sort "$nlist" | uniq > "$nlist"T; then
9205	mv -f "$nlist"T "$nlist"
9206      else
9207	rm -f "$nlist"T
9208      fi
9209
9210      # Make sure that we snagged all the symbols we need.
9211      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9212	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9213	  cat <<_LT_EOF > conftest.$ac_ext
9214/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9215#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9216/* DATA imports from DLLs on WIN32 can't be const, because runtime
9217   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9218# define LT_DLSYM_CONST
9219#elif defined __osf__
9220/* This system does not cope well with relocations in const data.  */
9221# define LT_DLSYM_CONST
9222#else
9223# define LT_DLSYM_CONST const
9224#endif
9225
9226#ifdef __cplusplus
9227extern "C" {
9228#endif
9229
9230_LT_EOF
9231	  # Now generate the symbol file.
9232	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9233
9234	  cat <<_LT_EOF >> conftest.$ac_ext
9235
9236/* The mapping between symbol names and symbols.  */
9237LT_DLSYM_CONST struct {
9238  const char *name;
9239  void       *address;
9240}
9241lt__PROGRAM__LTX_preloaded_symbols[] =
9242{
9243  { "@PROGRAM@", (void *) 0 },
9244_LT_EOF
9245	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9246	  cat <<\_LT_EOF >> conftest.$ac_ext
9247  {0, (void *) 0}
9248};
9249
9250/* This works around a problem in FreeBSD linker */
9251#ifdef FREEBSD_WORKAROUND
9252static const void *lt_preloaded_setup() {
9253  return lt__PROGRAM__LTX_preloaded_symbols;
9254}
9255#endif
9256
9257#ifdef __cplusplus
9258}
9259#endif
9260_LT_EOF
9261	  # Now try linking the two files.
9262	  mv conftest.$ac_objext conftstm.$ac_objext
9263	  lt_globsym_save_LIBS=$LIBS
9264	  lt_globsym_save_CFLAGS=$CFLAGS
9265	  LIBS=conftstm.$ac_objext
9266	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9267	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9268  (eval $ac_link) 2>&5
9269  ac_status=$?
9270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9272	    pipe_works=yes
9273	  fi
9274	  LIBS=$lt_globsym_save_LIBS
9275	  CFLAGS=$lt_globsym_save_CFLAGS
9276	else
9277	  echo "cannot find nm_test_func in $nlist" >&5
9278	fi
9279      else
9280	echo "cannot find nm_test_var in $nlist" >&5
9281      fi
9282    else
9283      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9284    fi
9285  else
9286    echo "$progname: failed program was:" >&5
9287    cat conftest.$ac_ext >&5
9288  fi
9289  rm -rf conftest* conftst*
9290
9291  # Do not use the global_symbol_pipe unless it works.
9292  if test yes = "$pipe_works"; then
9293    break
9294  else
9295    lt_cv_sys_global_symbol_pipe=
9296  fi
9297done
9298
9299fi
9300
9301if test -z "$lt_cv_sys_global_symbol_pipe"; then
9302  lt_cv_sys_global_symbol_to_cdecl=
9303fi
9304if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9306$as_echo "failed" >&6; }
9307else
9308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9309$as_echo "ok" >&6; }
9310fi
9311
9312# Response file support.
9313if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9314  nm_file_list_spec='@'
9315elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9316  nm_file_list_spec='@'
9317fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9356$as_echo_n "checking for sysroot... " >&6; }
9357
9358# Check whether --with-sysroot was given.
9359if test "${with_sysroot+set}" = set; then :
9360  withval=$with_sysroot;
9361else
9362  with_sysroot=no
9363fi
9364
9365
9366lt_sysroot=
9367case $with_sysroot in #(
9368 yes)
9369   if test yes = "$GCC"; then
9370     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9371   fi
9372   ;; #(
9373 /*)
9374   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9375   ;; #(
9376 no|'')
9377   ;; #(
9378 *)
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9380$as_echo "$with_sysroot" >&6; }
9381   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9382   ;;
9383esac
9384
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9386$as_echo "${lt_sysroot:-no}" >&6; }
9387
9388
9389
9390
9391
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9393$as_echo_n "checking for a working dd... " >&6; }
9394if ${ac_cv_path_lt_DD+:} false; then :
9395  $as_echo_n "(cached) " >&6
9396else
9397  printf 0123456789abcdef0123456789abcdef >conftest.i
9398cat conftest.i conftest.i >conftest2.i
9399: ${lt_DD:=$DD}
9400if test -z "$lt_DD"; then
9401  ac_path_lt_DD_found=false
9402  # Loop through the user's path and test for each of PROGNAME-LIST
9403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404for as_dir in $PATH
9405do
9406  IFS=$as_save_IFS
9407  test -z "$as_dir" && as_dir=.
9408    for ac_prog in dd; do
9409    for ac_exec_ext in '' $ac_executable_extensions; do
9410      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9411      as_fn_executable_p "$ac_path_lt_DD" || continue
9412if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9413  cmp -s conftest.i conftest.out \
9414  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9415fi
9416      $ac_path_lt_DD_found && break 3
9417    done
9418  done
9419  done
9420IFS=$as_save_IFS
9421  if test -z "$ac_cv_path_lt_DD"; then
9422    :
9423  fi
9424else
9425  ac_cv_path_lt_DD=$lt_DD
9426fi
9427
9428rm -f conftest.i conftest2.i conftest.out
9429fi
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9431$as_echo "$ac_cv_path_lt_DD" >&6; }
9432
9433
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9435$as_echo_n "checking how to truncate binary pipes... " >&6; }
9436if ${lt_cv_truncate_bin+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  printf 0123456789abcdef0123456789abcdef >conftest.i
9440cat conftest.i conftest.i >conftest2.i
9441lt_cv_truncate_bin=
9442if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9443  cmp -s conftest.i conftest.out \
9444  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9445fi
9446rm -f conftest.i conftest2.i conftest.out
9447test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9450$as_echo "$lt_cv_truncate_bin" >&6; }
9451
9452
9453
9454
9455
9456
9457
9458# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9459func_cc_basename ()
9460{
9461    for cc_temp in $*""; do
9462      case $cc_temp in
9463        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9464        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9465        \-*) ;;
9466        *) break;;
9467      esac
9468    done
9469    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9470}
9471
9472# Check whether --enable-libtool-lock was given.
9473if test "${enable_libtool_lock+set}" = set; then :
9474  enableval=$enable_libtool_lock;
9475fi
9476
9477test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9478
9479# Some flags need to be propagated to the compiler or linker for good
9480# libtool support.
9481case $host in
9482ia64-*-hpux*)
9483  # Find out what ABI is being produced by ac_compile, and set mode
9484  # options accordingly.
9485  echo 'int i;' > conftest.$ac_ext
9486  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9487  (eval $ac_compile) 2>&5
9488  ac_status=$?
9489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490  test $ac_status = 0; }; then
9491    case `/usr/bin/file conftest.$ac_objext` in
9492      *ELF-32*)
9493	HPUX_IA64_MODE=32
9494	;;
9495      *ELF-64*)
9496	HPUX_IA64_MODE=64
9497	;;
9498    esac
9499  fi
9500  rm -rf conftest*
9501  ;;
9502*-*-irix6*)
9503  # Find out what ABI is being produced by ac_compile, and set linker
9504  # options accordingly.
9505  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9506  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9507  (eval $ac_compile) 2>&5
9508  ac_status=$?
9509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9510  test $ac_status = 0; }; then
9511    if test yes = "$lt_cv_prog_gnu_ld"; then
9512      case `/usr/bin/file conftest.$ac_objext` in
9513	*32-bit*)
9514	  LD="${LD-ld} -melf32bsmip"
9515	  ;;
9516	*N32*)
9517	  LD="${LD-ld} -melf32bmipn32"
9518	  ;;
9519	*64-bit*)
9520	  LD="${LD-ld} -melf64bmip"
9521	;;
9522      esac
9523    else
9524      case `/usr/bin/file conftest.$ac_objext` in
9525	*32-bit*)
9526	  LD="${LD-ld} -32"
9527	  ;;
9528	*N32*)
9529	  LD="${LD-ld} -n32"
9530	  ;;
9531	*64-bit*)
9532	  LD="${LD-ld} -64"
9533	  ;;
9534      esac
9535    fi
9536  fi
9537  rm -rf conftest*
9538  ;;
9539
9540mips64*-*linux*)
9541  # Find out what ABI is being produced by ac_compile, and set linker
9542  # options accordingly.
9543  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9544  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9545  (eval $ac_compile) 2>&5
9546  ac_status=$?
9547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9548  test $ac_status = 0; }; then
9549    emul=elf
9550    case `/usr/bin/file conftest.$ac_objext` in
9551      *32-bit*)
9552	emul="${emul}32"
9553	;;
9554      *64-bit*)
9555	emul="${emul}64"
9556	;;
9557    esac
9558    case `/usr/bin/file conftest.$ac_objext` in
9559      *MSB*)
9560	emul="${emul}btsmip"
9561	;;
9562      *LSB*)
9563	emul="${emul}ltsmip"
9564	;;
9565    esac
9566    case `/usr/bin/file conftest.$ac_objext` in
9567      *N32*)
9568	emul="${emul}n32"
9569	;;
9570    esac
9571    LD="${LD-ld} -m $emul"
9572  fi
9573  rm -rf conftest*
9574  ;;
9575
9576x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9577s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9578  # Find out what ABI is being produced by ac_compile, and set linker
9579  # options accordingly.  Note that the listed cases only cover the
9580  # situations where additional linker options are needed (such as when
9581  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9582  # vice versa); the common cases where no linker options are needed do
9583  # not appear in the list.
9584  echo 'int i;' > conftest.$ac_ext
9585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9586  (eval $ac_compile) 2>&5
9587  ac_status=$?
9588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589  test $ac_status = 0; }; then
9590    case `/usr/bin/file conftest.o` in
9591      *32-bit*)
9592	case $host in
9593	  x86_64-*kfreebsd*-gnu)
9594	    LD="${LD-ld} -m elf_i386_fbsd"
9595	    ;;
9596	  x86_64-*linux*)
9597	    case `/usr/bin/file conftest.o` in
9598	      *x86-64*)
9599		LD="${LD-ld} -m elf32_x86_64"
9600		;;
9601	      *)
9602		LD="${LD-ld} -m elf_i386"
9603		;;
9604	    esac
9605	    ;;
9606	  powerpc64le-*linux*)
9607	    LD="${LD-ld} -m elf32lppclinux"
9608	    ;;
9609	  powerpc64-*linux*)
9610	    LD="${LD-ld} -m elf32ppclinux"
9611	    ;;
9612	  s390x-*linux*)
9613	    LD="${LD-ld} -m elf_s390"
9614	    ;;
9615	  sparc64-*linux*)
9616	    LD="${LD-ld} -m elf32_sparc"
9617	    ;;
9618	esac
9619	;;
9620      *64-bit*)
9621	case $host in
9622	  x86_64-*kfreebsd*-gnu)
9623	    LD="${LD-ld} -m elf_x86_64_fbsd"
9624	    ;;
9625	  x86_64-*linux*)
9626	    LD="${LD-ld} -m elf_x86_64"
9627	    ;;
9628	  powerpcle-*linux*)
9629	    LD="${LD-ld} -m elf64lppc"
9630	    ;;
9631	  powerpc-*linux*)
9632	    LD="${LD-ld} -m elf64ppc"
9633	    ;;
9634	  s390*-*linux*|s390*-*tpf*)
9635	    LD="${LD-ld} -m elf64_s390"
9636	    ;;
9637	  sparc*-*linux*)
9638	    LD="${LD-ld} -m elf64_sparc"
9639	    ;;
9640	esac
9641	;;
9642    esac
9643  fi
9644  rm -rf conftest*
9645  ;;
9646
9647*-*-sco3.2v5*)
9648  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9649  SAVE_CFLAGS=$CFLAGS
9650  CFLAGS="$CFLAGS -belf"
9651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9652$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9653if ${lt_cv_cc_needs_belf+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  ac_ext=c
9657ac_cpp='$CPP $CPPFLAGS'
9658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9660ac_compiler_gnu=$ac_cv_c_compiler_gnu
9661
9662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663/* end confdefs.h.  */
9664
9665int
9666main ()
9667{
9668
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673if ac_fn_c_try_link "$LINENO"; then :
9674  lt_cv_cc_needs_belf=yes
9675else
9676  lt_cv_cc_needs_belf=no
9677fi
9678rm -f core conftest.err conftest.$ac_objext \
9679    conftest$ac_exeext conftest.$ac_ext
9680     ac_ext=c
9681ac_cpp='$CPP $CPPFLAGS'
9682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9688$as_echo "$lt_cv_cc_needs_belf" >&6; }
9689  if test yes != "$lt_cv_cc_needs_belf"; then
9690    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9691    CFLAGS=$SAVE_CFLAGS
9692  fi
9693  ;;
9694*-*solaris*)
9695  # Find out what ABI is being produced by ac_compile, and set linker
9696  # options accordingly.
9697  echo 'int i;' > conftest.$ac_ext
9698  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9699  (eval $ac_compile) 2>&5
9700  ac_status=$?
9701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702  test $ac_status = 0; }; then
9703    case `/usr/bin/file conftest.o` in
9704    *64-bit*)
9705      case $lt_cv_prog_gnu_ld in
9706      yes*)
9707        case $host in
9708        i?86-*-solaris*|x86_64-*-solaris*)
9709          LD="${LD-ld} -m elf_x86_64"
9710          ;;
9711        sparc*-*-solaris*)
9712          LD="${LD-ld} -m elf64_sparc"
9713          ;;
9714        esac
9715        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9716        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9717          LD=${LD-ld}_sol2
9718        fi
9719        ;;
9720      *)
9721	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9722	  LD="${LD-ld} -64"
9723	fi
9724	;;
9725      esac
9726      ;;
9727    esac
9728  fi
9729  rm -rf conftest*
9730  ;;
9731esac
9732
9733need_locks=$enable_libtool_lock
9734
9735if test -n "$ac_tool_prefix"; then
9736  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9737set dummy ${ac_tool_prefix}mt; ac_word=$2
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739$as_echo_n "checking for $ac_word... " >&6; }
9740if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9741  $as_echo_n "(cached) " >&6
9742else
9743  if test -n "$MANIFEST_TOOL"; then
9744  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9745else
9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749  IFS=$as_save_IFS
9750  test -z "$as_dir" && as_dir=.
9751    for ac_exec_ext in '' $ac_executable_extensions; do
9752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9753    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755    break 2
9756  fi
9757done
9758  done
9759IFS=$as_save_IFS
9760
9761fi
9762fi
9763MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9764if test -n "$MANIFEST_TOOL"; then
9765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9766$as_echo "$MANIFEST_TOOL" >&6; }
9767else
9768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769$as_echo "no" >&6; }
9770fi
9771
9772
9773fi
9774if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9775  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9776  # Extract the first word of "mt", so it can be a program name with args.
9777set dummy mt; ac_word=$2
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
9780if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9781  $as_echo_n "(cached) " >&6
9782else
9783  if test -n "$ac_ct_MANIFEST_TOOL"; then
9784  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789  IFS=$as_save_IFS
9790  test -z "$as_dir" && as_dir=.
9791    for ac_exec_ext in '' $ac_executable_extensions; do
9792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9793    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795    break 2
9796  fi
9797done
9798  done
9799IFS=$as_save_IFS
9800
9801fi
9802fi
9803ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9804if test -n "$ac_ct_MANIFEST_TOOL"; then
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9806$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9807else
9808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
9810fi
9811
9812  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9813    MANIFEST_TOOL=":"
9814  else
9815    case $cross_compiling:$ac_tool_warned in
9816yes:)
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9819ac_tool_warned=yes ;;
9820esac
9821    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9822  fi
9823else
9824  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9825fi
9826
9827test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9829$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9830if ${lt_cv_path_mainfest_tool+:} false; then :
9831  $as_echo_n "(cached) " >&6
9832else
9833  lt_cv_path_mainfest_tool=no
9834  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9835  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9836  cat conftest.err >&5
9837  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9838    lt_cv_path_mainfest_tool=yes
9839  fi
9840  rm -f conftest*
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9843$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9844if test yes != "$lt_cv_path_mainfest_tool"; then
9845  MANIFEST_TOOL=:
9846fi
9847
9848
9849
9850
9851
9852
9853  case $host_os in
9854    rhapsody* | darwin*)
9855    if test -n "$ac_tool_prefix"; then
9856  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9857set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859$as_echo_n "checking for $ac_word... " >&6; }
9860if ${ac_cv_prog_DSYMUTIL+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  if test -n "$DSYMUTIL"; then
9864  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869  IFS=$as_save_IFS
9870  test -z "$as_dir" && as_dir=.
9871    for ac_exec_ext in '' $ac_executable_extensions; do
9872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875    break 2
9876  fi
9877done
9878  done
9879IFS=$as_save_IFS
9880
9881fi
9882fi
9883DSYMUTIL=$ac_cv_prog_DSYMUTIL
9884if test -n "$DSYMUTIL"; then
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9886$as_echo "$DSYMUTIL" >&6; }
9887else
9888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889$as_echo "no" >&6; }
9890fi
9891
9892
9893fi
9894if test -z "$ac_cv_prog_DSYMUTIL"; then
9895  ac_ct_DSYMUTIL=$DSYMUTIL
9896  # Extract the first word of "dsymutil", so it can be a program name with args.
9897set dummy dsymutil; ac_word=$2
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899$as_echo_n "checking for $ac_word... " >&6; }
9900if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  if test -n "$ac_ct_DSYMUTIL"; then
9904  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9905else
9906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907for as_dir in $PATH
9908do
9909  IFS=$as_save_IFS
9910  test -z "$as_dir" && as_dir=.
9911    for ac_exec_ext in '' $ac_executable_extensions; do
9912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9913    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915    break 2
9916  fi
9917done
9918  done
9919IFS=$as_save_IFS
9920
9921fi
9922fi
9923ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9924if test -n "$ac_ct_DSYMUTIL"; then
9925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9926$as_echo "$ac_ct_DSYMUTIL" >&6; }
9927else
9928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929$as_echo "no" >&6; }
9930fi
9931
9932  if test "x$ac_ct_DSYMUTIL" = x; then
9933    DSYMUTIL=":"
9934  else
9935    case $cross_compiling:$ac_tool_warned in
9936yes:)
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9939ac_tool_warned=yes ;;
9940esac
9941    DSYMUTIL=$ac_ct_DSYMUTIL
9942  fi
9943else
9944  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9945fi
9946
9947    if test -n "$ac_tool_prefix"; then
9948  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9949set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
9952if ${ac_cv_prog_NMEDIT+:} false; then :
9953  $as_echo_n "(cached) " >&6
9954else
9955  if test -n "$NMEDIT"; then
9956  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961  IFS=$as_save_IFS
9962  test -z "$as_dir" && as_dir=.
9963    for ac_exec_ext in '' $ac_executable_extensions; do
9964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967    break 2
9968  fi
9969done
9970  done
9971IFS=$as_save_IFS
9972
9973fi
9974fi
9975NMEDIT=$ac_cv_prog_NMEDIT
9976if test -n "$NMEDIT"; then
9977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9978$as_echo "$NMEDIT" >&6; }
9979else
9980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
9982fi
9983
9984
9985fi
9986if test -z "$ac_cv_prog_NMEDIT"; then
9987  ac_ct_NMEDIT=$NMEDIT
9988  # Extract the first word of "nmedit", so it can be a program name with args.
9989set dummy nmedit; ac_word=$2
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991$as_echo_n "checking for $ac_word... " >&6; }
9992if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  if test -n "$ac_ct_NMEDIT"; then
9996  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001  IFS=$as_save_IFS
10002  test -z "$as_dir" && as_dir=.
10003    for ac_exec_ext in '' $ac_executable_extensions; do
10004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007    break 2
10008  fi
10009done
10010  done
10011IFS=$as_save_IFS
10012
10013fi
10014fi
10015ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10016if test -n "$ac_ct_NMEDIT"; then
10017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10018$as_echo "$ac_ct_NMEDIT" >&6; }
10019else
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
10022fi
10023
10024  if test "x$ac_ct_NMEDIT" = x; then
10025    NMEDIT=":"
10026  else
10027    case $cross_compiling:$ac_tool_warned in
10028yes:)
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10031ac_tool_warned=yes ;;
10032esac
10033    NMEDIT=$ac_ct_NMEDIT
10034  fi
10035else
10036  NMEDIT="$ac_cv_prog_NMEDIT"
10037fi
10038
10039    if test -n "$ac_tool_prefix"; then
10040  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10041set dummy ${ac_tool_prefix}lipo; ac_word=$2
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
10044if ${ac_cv_prog_LIPO+:} false; then :
10045  $as_echo_n "(cached) " >&6
10046else
10047  if test -n "$LIPO"; then
10048  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053  IFS=$as_save_IFS
10054  test -z "$as_dir" && as_dir=.
10055    for ac_exec_ext in '' $ac_executable_extensions; do
10056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10057    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059    break 2
10060  fi
10061done
10062  done
10063IFS=$as_save_IFS
10064
10065fi
10066fi
10067LIPO=$ac_cv_prog_LIPO
10068if test -n "$LIPO"; then
10069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10070$as_echo "$LIPO" >&6; }
10071else
10072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076
10077fi
10078if test -z "$ac_cv_prog_LIPO"; then
10079  ac_ct_LIPO=$LIPO
10080  # Extract the first word of "lipo", so it can be a program name with args.
10081set dummy lipo; ac_word=$2
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083$as_echo_n "checking for $ac_word... " >&6; }
10084if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  if test -n "$ac_ct_LIPO"; then
10088  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10089else
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093  IFS=$as_save_IFS
10094  test -z "$as_dir" && as_dir=.
10095    for ac_exec_ext in '' $ac_executable_extensions; do
10096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097    ac_cv_prog_ac_ct_LIPO="lipo"
10098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099    break 2
10100  fi
10101done
10102  done
10103IFS=$as_save_IFS
10104
10105fi
10106fi
10107ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10108if test -n "$ac_ct_LIPO"; then
10109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10110$as_echo "$ac_ct_LIPO" >&6; }
10111else
10112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113$as_echo "no" >&6; }
10114fi
10115
10116  if test "x$ac_ct_LIPO" = x; then
10117    LIPO=":"
10118  else
10119    case $cross_compiling:$ac_tool_warned in
10120yes:)
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10123ac_tool_warned=yes ;;
10124esac
10125    LIPO=$ac_ct_LIPO
10126  fi
10127else
10128  LIPO="$ac_cv_prog_LIPO"
10129fi
10130
10131    if test -n "$ac_tool_prefix"; then
10132  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10133set dummy ${ac_tool_prefix}otool; ac_word=$2
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if ${ac_cv_prog_OTOOL+:} false; then :
10137  $as_echo_n "(cached) " >&6
10138else
10139  if test -n "$OTOOL"; then
10140  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145  IFS=$as_save_IFS
10146  test -z "$as_dir" && as_dir=.
10147    for ac_exec_ext in '' $ac_executable_extensions; do
10148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10149    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10151    break 2
10152  fi
10153done
10154  done
10155IFS=$as_save_IFS
10156
10157fi
10158fi
10159OTOOL=$ac_cv_prog_OTOOL
10160if test -n "$OTOOL"; then
10161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10162$as_echo "$OTOOL" >&6; }
10163else
10164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
10166fi
10167
10168
10169fi
10170if test -z "$ac_cv_prog_OTOOL"; then
10171  ac_ct_OTOOL=$OTOOL
10172  # Extract the first word of "otool", so it can be a program name with args.
10173set dummy otool; ac_word=$2
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175$as_echo_n "checking for $ac_word... " >&6; }
10176if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  if test -n "$ac_ct_OTOOL"; then
10180  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10181else
10182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183for as_dir in $PATH
10184do
10185  IFS=$as_save_IFS
10186  test -z "$as_dir" && as_dir=.
10187    for ac_exec_ext in '' $ac_executable_extensions; do
10188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189    ac_cv_prog_ac_ct_OTOOL="otool"
10190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191    break 2
10192  fi
10193done
10194  done
10195IFS=$as_save_IFS
10196
10197fi
10198fi
10199ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10200if test -n "$ac_ct_OTOOL"; then
10201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10202$as_echo "$ac_ct_OTOOL" >&6; }
10203else
10204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205$as_echo "no" >&6; }
10206fi
10207
10208  if test "x$ac_ct_OTOOL" = x; then
10209    OTOOL=":"
10210  else
10211    case $cross_compiling:$ac_tool_warned in
10212yes:)
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10215ac_tool_warned=yes ;;
10216esac
10217    OTOOL=$ac_ct_OTOOL
10218  fi
10219else
10220  OTOOL="$ac_cv_prog_OTOOL"
10221fi
10222
10223    if test -n "$ac_tool_prefix"; then
10224  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10225set dummy ${ac_tool_prefix}otool64; ac_word=$2
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227$as_echo_n "checking for $ac_word... " >&6; }
10228if ${ac_cv_prog_OTOOL64+:} false; then :
10229  $as_echo_n "(cached) " >&6
10230else
10231  if test -n "$OTOOL64"; then
10232  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237  IFS=$as_save_IFS
10238  test -z "$as_dir" && as_dir=.
10239    for ac_exec_ext in '' $ac_executable_extensions; do
10240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10241    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10243    break 2
10244  fi
10245done
10246  done
10247IFS=$as_save_IFS
10248
10249fi
10250fi
10251OTOOL64=$ac_cv_prog_OTOOL64
10252if test -n "$OTOOL64"; then
10253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10254$as_echo "$OTOOL64" >&6; }
10255else
10256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
10258fi
10259
10260
10261fi
10262if test -z "$ac_cv_prog_OTOOL64"; then
10263  ac_ct_OTOOL64=$OTOOL64
10264  # Extract the first word of "otool64", so it can be a program name with args.
10265set dummy otool64; ac_word=$2
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267$as_echo_n "checking for $ac_word... " >&6; }
10268if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10269  $as_echo_n "(cached) " >&6
10270else
10271  if test -n "$ac_ct_OTOOL64"; then
10272  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277  IFS=$as_save_IFS
10278  test -z "$as_dir" && as_dir=.
10279    for ac_exec_ext in '' $ac_executable_extensions; do
10280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281    ac_cv_prog_ac_ct_OTOOL64="otool64"
10282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283    break 2
10284  fi
10285done
10286  done
10287IFS=$as_save_IFS
10288
10289fi
10290fi
10291ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10292if test -n "$ac_ct_OTOOL64"; then
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10294$as_echo "$ac_ct_OTOOL64" >&6; }
10295else
10296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297$as_echo "no" >&6; }
10298fi
10299
10300  if test "x$ac_ct_OTOOL64" = x; then
10301    OTOOL64=":"
10302  else
10303    case $cross_compiling:$ac_tool_warned in
10304yes:)
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10307ac_tool_warned=yes ;;
10308esac
10309    OTOOL64=$ac_ct_OTOOL64
10310  fi
10311else
10312  OTOOL64="$ac_cv_prog_OTOOL64"
10313fi
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10342$as_echo_n "checking for -single_module linker flag... " >&6; }
10343if ${lt_cv_apple_cc_single_mod+:} false; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346  lt_cv_apple_cc_single_mod=no
10347      if test -z "$LT_MULTI_MODULE"; then
10348	# By default we will add the -single_module flag. You can override
10349	# by either setting the environment variable LT_MULTI_MODULE
10350	# non-empty at configure time, or by adding -multi_module to the
10351	# link flags.
10352	rm -rf libconftest.dylib*
10353	echo "int foo(void){return 1;}" > conftest.c
10354	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10355-dynamiclib -Wl,-single_module conftest.c" >&5
10356	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10357	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10358        _lt_result=$?
10359	# If there is a non-empty error log, and "single_module"
10360	# appears in it, assume the flag caused a linker warning
10361        if test -s conftest.err && $GREP single_module conftest.err; then
10362	  cat conftest.err >&5
10363	# Otherwise, if the output was created with a 0 exit code from
10364	# the compiler, it worked.
10365	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10366	  lt_cv_apple_cc_single_mod=yes
10367	else
10368	  cat conftest.err >&5
10369	fi
10370	rm -rf libconftest.dylib*
10371	rm -f conftest.*
10372      fi
10373fi
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10375$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10376
10377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10378$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10379if ${lt_cv_ld_exported_symbols_list+:} false; then :
10380  $as_echo_n "(cached) " >&6
10381else
10382  lt_cv_ld_exported_symbols_list=no
10383      save_LDFLAGS=$LDFLAGS
10384      echo "_main" > conftest.sym
10385      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10386      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388
10389int
10390main ()
10391{
10392
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_link "$LINENO"; then :
10398  lt_cv_ld_exported_symbols_list=yes
10399else
10400  lt_cv_ld_exported_symbols_list=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403    conftest$ac_exeext conftest.$ac_ext
10404	LDFLAGS=$save_LDFLAGS
10405
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10408$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10409
10410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10411$as_echo_n "checking for -force_load linker flag... " >&6; }
10412if ${lt_cv_ld_force_load+:} false; then :
10413  $as_echo_n "(cached) " >&6
10414else
10415  lt_cv_ld_force_load=no
10416      cat > conftest.c << _LT_EOF
10417int forced_loaded() { return 2;}
10418_LT_EOF
10419      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10420      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10421      echo "$AR cru libconftest.a conftest.o" >&5
10422      $AR cru libconftest.a conftest.o 2>&5
10423      echo "$RANLIB libconftest.a" >&5
10424      $RANLIB libconftest.a 2>&5
10425      cat > conftest.c << _LT_EOF
10426int main() { return 0;}
10427_LT_EOF
10428      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10429      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10430      _lt_result=$?
10431      if test -s conftest.err && $GREP force_load conftest.err; then
10432	cat conftest.err >&5
10433      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10434	lt_cv_ld_force_load=yes
10435      else
10436	cat conftest.err >&5
10437      fi
10438        rm -f conftest.err libconftest.a conftest conftest.c
10439        rm -rf conftest.dSYM
10440
10441fi
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10443$as_echo "$lt_cv_ld_force_load" >&6; }
10444    case $host_os in
10445    rhapsody* | darwin1.[012])
10446      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10447    darwin1.*)
10448      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10449    darwin*) # darwin 5.x on
10450      # if running on 10.5 or later, the deployment target defaults
10451      # to the OS version, if on x86, and 10.4, the deployment
10452      # target defaults to 10.4. Don't you love it?
10453      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10454	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10455	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10456	10.[012][,.]*)
10457	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10458	10.*)
10459	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10460      esac
10461    ;;
10462  esac
10463    if test yes = "$lt_cv_apple_cc_single_mod"; then
10464      _lt_dar_single_mod='$single_module'
10465    fi
10466    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10467      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10468    else
10469      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10470    fi
10471    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10472      _lt_dsymutil='~$DSYMUTIL $lib || :'
10473    else
10474      _lt_dsymutil=
10475    fi
10476    ;;
10477  esac
10478
10479# func_munge_path_list VARIABLE PATH
10480# -----------------------------------
10481# VARIABLE is name of variable containing _space_ separated list of
10482# directories to be munged by the contents of PATH, which is string
10483# having a format:
10484# "DIR[:DIR]:"
10485#       string "DIR[ DIR]" will be prepended to VARIABLE
10486# ":DIR[:DIR]"
10487#       string "DIR[ DIR]" will be appended to VARIABLE
10488# "DIRP[:DIRP]::[DIRA:]DIRA"
10489#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10490#       "DIRA[ DIRA]" will be appended to VARIABLE
10491# "DIR[:DIR]"
10492#       VARIABLE will be replaced by "DIR[ DIR]"
10493func_munge_path_list ()
10494{
10495    case x$2 in
10496    x)
10497        ;;
10498    *:)
10499        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10500        ;;
10501    x:*)
10502        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10503        ;;
10504    *::*)
10505        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10506        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10507        ;;
10508    *)
10509        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10510        ;;
10511    esac
10512}
10513
10514for ac_header in dlfcn.h
10515do :
10516  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10517"
10518if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10519  cat >>confdefs.h <<_ACEOF
10520#define HAVE_DLFCN_H 1
10521_ACEOF
10522
10523fi
10524
10525done
10526
10527
10528
10529
10530
10531# Set options
10532
10533
10534
10535        enable_dlopen=no
10536
10537
10538  enable_win32_dll=no
10539
10540
10541            # Check whether --enable-shared was given.
10542if test "${enable_shared+set}" = set; then :
10543  enableval=$enable_shared; p=${PACKAGE-default}
10544    case $enableval in
10545    yes) enable_shared=yes ;;
10546    no) enable_shared=no ;;
10547    *)
10548      enable_shared=no
10549      # Look at the argument we got.  We use all the common list separators.
10550      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10551      for pkg in $enableval; do
10552	IFS=$lt_save_ifs
10553	if test "X$pkg" = "X$p"; then
10554	  enable_shared=yes
10555	fi
10556      done
10557      IFS=$lt_save_ifs
10558      ;;
10559    esac
10560else
10561  enable_shared=yes
10562fi
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572  # Check whether --enable-static was given.
10573if test "${enable_static+set}" = set; then :
10574  enableval=$enable_static; p=${PACKAGE-default}
10575    case $enableval in
10576    yes) enable_static=yes ;;
10577    no) enable_static=no ;;
10578    *)
10579     enable_static=no
10580      # Look at the argument we got.  We use all the common list separators.
10581      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10582      for pkg in $enableval; do
10583	IFS=$lt_save_ifs
10584	if test "X$pkg" = "X$p"; then
10585	  enable_static=yes
10586	fi
10587      done
10588      IFS=$lt_save_ifs
10589      ;;
10590    esac
10591else
10592  enable_static=yes
10593fi
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604# Check whether --with-pic was given.
10605if test "${with_pic+set}" = set; then :
10606  withval=$with_pic; lt_p=${PACKAGE-default}
10607    case $withval in
10608    yes|no) pic_mode=$withval ;;
10609    *)
10610      pic_mode=default
10611      # Look at the argument we got.  We use all the common list separators.
10612      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10613      for lt_pkg in $withval; do
10614	IFS=$lt_save_ifs
10615	if test "X$lt_pkg" = "X$lt_p"; then
10616	  pic_mode=yes
10617	fi
10618      done
10619      IFS=$lt_save_ifs
10620      ;;
10621    esac
10622else
10623  pic_mode=default
10624fi
10625
10626
10627
10628
10629
10630
10631
10632
10633  # Check whether --enable-fast-install was given.
10634if test "${enable_fast_install+set}" = set; then :
10635  enableval=$enable_fast_install; p=${PACKAGE-default}
10636    case $enableval in
10637    yes) enable_fast_install=yes ;;
10638    no) enable_fast_install=no ;;
10639    *)
10640      enable_fast_install=no
10641      # Look at the argument we got.  We use all the common list separators.
10642      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10643      for pkg in $enableval; do
10644	IFS=$lt_save_ifs
10645	if test "X$pkg" = "X$p"; then
10646	  enable_fast_install=yes
10647	fi
10648      done
10649      IFS=$lt_save_ifs
10650      ;;
10651    esac
10652else
10653  enable_fast_install=yes
10654fi
10655
10656
10657
10658
10659
10660
10661
10662
10663  shared_archive_member_spec=
10664case $host,$enable_shared in
10665power*-*-aix[5-9]*,yes)
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10667$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10668
10669# Check whether --with-aix-soname was given.
10670if test "${with_aix_soname+set}" = set; then :
10671  withval=$with_aix_soname; case $withval in
10672    aix|svr4|both)
10673      ;;
10674    *)
10675      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10676      ;;
10677    esac
10678    lt_cv_with_aix_soname=$with_aix_soname
10679else
10680  if ${lt_cv_with_aix_soname+:} false; then :
10681  $as_echo_n "(cached) " >&6
10682else
10683  lt_cv_with_aix_soname=aix
10684fi
10685
10686    with_aix_soname=$lt_cv_with_aix_soname
10687fi
10688
10689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10690$as_echo "$with_aix_soname" >&6; }
10691  if test aix != "$with_aix_soname"; then
10692    # For the AIX way of multilib, we name the shared archive member
10693    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10694    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10695    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10696    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10697    if test 64 = "${OBJECT_MODE-32}"; then
10698      shared_archive_member_spec=shr_64
10699    else
10700      shared_archive_member_spec=shr
10701    fi
10702  fi
10703  ;;
10704*)
10705  with_aix_soname=aix
10706  ;;
10707esac
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718# This can be used to rebuild libtool when needed
10719LIBTOOL_DEPS=$ltmain
10720
10721# Always use our own libtool.
10722LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753test -z "$LN_S" && LN_S="ln -s"
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768if test -n "${ZSH_VERSION+set}"; then
10769   setopt NO_GLOB_SUBST
10770fi
10771
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10773$as_echo_n "checking for objdir... " >&6; }
10774if ${lt_cv_objdir+:} false; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777  rm -f .libs 2>/dev/null
10778mkdir .libs 2>/dev/null
10779if test -d .libs; then
10780  lt_cv_objdir=.libs
10781else
10782  # MS-DOS does not allow filenames that begin with a dot.
10783  lt_cv_objdir=_libs
10784fi
10785rmdir .libs 2>/dev/null
10786fi
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10788$as_echo "$lt_cv_objdir" >&6; }
10789objdir=$lt_cv_objdir
10790
10791
10792
10793
10794
10795cat >>confdefs.h <<_ACEOF
10796#define LT_OBJDIR "$lt_cv_objdir/"
10797_ACEOF
10798
10799
10800
10801
10802case $host_os in
10803aix3*)
10804  # AIX sometimes has problems with the GCC collect2 program.  For some
10805  # reason, if we set the COLLECT_NAMES environment variable, the problems
10806  # vanish in a puff of smoke.
10807  if test set != "${COLLECT_NAMES+set}"; then
10808    COLLECT_NAMES=
10809    export COLLECT_NAMES
10810  fi
10811  ;;
10812esac
10813
10814# Global variables:
10815ofile=libtool
10816can_build_shared=yes
10817
10818# All known linkers require a '.a' archive for static linking (except MSVC,
10819# which needs '.lib').
10820libext=a
10821
10822with_gnu_ld=$lt_cv_prog_gnu_ld
10823
10824old_CC=$CC
10825old_CFLAGS=$CFLAGS
10826
10827# Set sane defaults for various variables
10828test -z "$CC" && CC=cc
10829test -z "$LTCC" && LTCC=$CC
10830test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10831test -z "$LD" && LD=ld
10832test -z "$ac_objext" && ac_objext=o
10833
10834func_cc_basename $compiler
10835cc_basename=$func_cc_basename_result
10836
10837
10838# Only perform the check for file, if the check method requires it
10839test -z "$MAGIC_CMD" && MAGIC_CMD=file
10840case $deplibs_check_method in
10841file_magic*)
10842  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10844$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10845if ${lt_cv_path_MAGIC_CMD+:} false; then :
10846  $as_echo_n "(cached) " >&6
10847else
10848  case $MAGIC_CMD in
10849[\\/*] |  ?:[\\/]*)
10850  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10851  ;;
10852*)
10853  lt_save_MAGIC_CMD=$MAGIC_CMD
10854  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10855  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10856  for ac_dir in $ac_dummy; do
10857    IFS=$lt_save_ifs
10858    test -z "$ac_dir" && ac_dir=.
10859    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10860      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10861      if test -n "$file_magic_test_file"; then
10862	case $deplibs_check_method in
10863	"file_magic "*)
10864	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10865	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10866	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10867	    $EGREP "$file_magic_regex" > /dev/null; then
10868	    :
10869	  else
10870	    cat <<_LT_EOF 1>&2
10871
10872*** Warning: the command libtool uses to detect shared libraries,
10873*** $file_magic_cmd, produces output that libtool cannot recognize.
10874*** The result is that libtool may fail to recognize shared libraries
10875*** as such.  This will affect the creation of libtool libraries that
10876*** depend on shared libraries, but programs linked with such libtool
10877*** libraries will work regardless of this problem.  Nevertheless, you
10878*** may want to report the problem to your system manager and/or to
10879*** bug-libtool@gnu.org
10880
10881_LT_EOF
10882	  fi ;;
10883	esac
10884      fi
10885      break
10886    fi
10887  done
10888  IFS=$lt_save_ifs
10889  MAGIC_CMD=$lt_save_MAGIC_CMD
10890  ;;
10891esac
10892fi
10893
10894MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10895if test -n "$MAGIC_CMD"; then
10896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10897$as_echo "$MAGIC_CMD" >&6; }
10898else
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900$as_echo "no" >&6; }
10901fi
10902
10903
10904
10905
10906
10907if test -z "$lt_cv_path_MAGIC_CMD"; then
10908  if test -n "$ac_tool_prefix"; then
10909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10910$as_echo_n "checking for file... " >&6; }
10911if ${lt_cv_path_MAGIC_CMD+:} false; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914  case $MAGIC_CMD in
10915[\\/*] |  ?:[\\/]*)
10916  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10917  ;;
10918*)
10919  lt_save_MAGIC_CMD=$MAGIC_CMD
10920  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10921  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10922  for ac_dir in $ac_dummy; do
10923    IFS=$lt_save_ifs
10924    test -z "$ac_dir" && ac_dir=.
10925    if test -f "$ac_dir/file"; then
10926      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10927      if test -n "$file_magic_test_file"; then
10928	case $deplibs_check_method in
10929	"file_magic "*)
10930	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10931	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10932	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10933	    $EGREP "$file_magic_regex" > /dev/null; then
10934	    :
10935	  else
10936	    cat <<_LT_EOF 1>&2
10937
10938*** Warning: the command libtool uses to detect shared libraries,
10939*** $file_magic_cmd, produces output that libtool cannot recognize.
10940*** The result is that libtool may fail to recognize shared libraries
10941*** as such.  This will affect the creation of libtool libraries that
10942*** depend on shared libraries, but programs linked with such libtool
10943*** libraries will work regardless of this problem.  Nevertheless, you
10944*** may want to report the problem to your system manager and/or to
10945*** bug-libtool@gnu.org
10946
10947_LT_EOF
10948	  fi ;;
10949	esac
10950      fi
10951      break
10952    fi
10953  done
10954  IFS=$lt_save_ifs
10955  MAGIC_CMD=$lt_save_MAGIC_CMD
10956  ;;
10957esac
10958fi
10959
10960MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10961if test -n "$MAGIC_CMD"; then
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10963$as_echo "$MAGIC_CMD" >&6; }
10964else
10965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967fi
10968
10969
10970  else
10971    MAGIC_CMD=:
10972  fi
10973fi
10974
10975  fi
10976  ;;
10977esac
10978
10979# Use C for the default configuration in the libtool script
10980
10981lt_save_CC=$CC
10982ac_ext=c
10983ac_cpp='$CPP $CPPFLAGS'
10984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10986ac_compiler_gnu=$ac_cv_c_compiler_gnu
10987
10988
10989# Source file extension for C test sources.
10990ac_ext=c
10991
10992# Object file extension for compiled C test sources.
10993objext=o
10994objext=$objext
10995
10996# Code to be used in simple compile tests
10997lt_simple_compile_test_code="int some_variable = 0;"
10998
10999# Code to be used in simple link tests
11000lt_simple_link_test_code='int main(){return(0);}'
11001
11002
11003
11004
11005
11006
11007
11008# If no C compiler was specified, use CC.
11009LTCC=${LTCC-"$CC"}
11010
11011# If no C compiler flags were specified, use CFLAGS.
11012LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11013
11014# Allow CC to be a program name with arguments.
11015compiler=$CC
11016
11017# Save the default compiler, since it gets overwritten when the other
11018# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11019compiler_DEFAULT=$CC
11020
11021# save warnings/boilerplate of simple test code
11022ac_outfile=conftest.$ac_objext
11023echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11025_lt_compiler_boilerplate=`cat conftest.err`
11026$RM conftest*
11027
11028ac_outfile=conftest.$ac_objext
11029echo "$lt_simple_link_test_code" >conftest.$ac_ext
11030eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11031_lt_linker_boilerplate=`cat conftest.err`
11032$RM -r conftest*
11033
11034
11035## CAVEAT EMPTOR:
11036## There is no encapsulation within the following macros, do not change
11037## the running order or otherwise move them around unless you know exactly
11038## what you are doing...
11039if test -n "$compiler"; then
11040
11041lt_prog_compiler_no_builtin_flag=
11042
11043if test yes = "$GCC"; then
11044  case $cc_basename in
11045  nvcc*)
11046    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11047  *)
11048    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11049  esac
11050
11051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11052$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11053if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11054  $as_echo_n "(cached) " >&6
11055else
11056  lt_cv_prog_compiler_rtti_exceptions=no
11057   ac_outfile=conftest.$ac_objext
11058   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11059   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11060   # Insert the option either (1) after the last *FLAGS variable, or
11061   # (2) before a word containing "conftest.", or (3) at the end.
11062   # Note that $ac_compile itself does not contain backslashes and begins
11063   # with a dollar sign (not a hyphen), so the echo should work correctly.
11064   # The option is referenced via a variable to avoid confusing sed.
11065   lt_compile=`echo "$ac_compile" | $SED \
11066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11068   -e 's:$: $lt_compiler_flag:'`
11069   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11070   (eval "$lt_compile" 2>conftest.err)
11071   ac_status=$?
11072   cat conftest.err >&5
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   if (exit $ac_status) && test -s "$ac_outfile"; then
11075     # The compiler can only warn and ignore the option if not recognized
11076     # So say no if there are warnings other than the usual output.
11077     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11078     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11079     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11080       lt_cv_prog_compiler_rtti_exceptions=yes
11081     fi
11082   fi
11083   $RM conftest*
11084
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11087$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11088
11089if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11090    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11091else
11092    :
11093fi
11094
11095fi
11096
11097
11098
11099
11100
11101
11102  lt_prog_compiler_wl=
11103lt_prog_compiler_pic=
11104lt_prog_compiler_static=
11105
11106
11107  if test yes = "$GCC"; then
11108    lt_prog_compiler_wl='-Wl,'
11109    lt_prog_compiler_static='-static'
11110
11111    case $host_os in
11112      aix*)
11113      # All AIX code is PIC.
11114      if test ia64 = "$host_cpu"; then
11115	# AIX 5 now supports IA64 processor
11116	lt_prog_compiler_static='-Bstatic'
11117      fi
11118      lt_prog_compiler_pic='-fPIC'
11119      ;;
11120
11121    amigaos*)
11122      case $host_cpu in
11123      powerpc)
11124            # see comment about AmigaOS4 .so support
11125            lt_prog_compiler_pic='-fPIC'
11126        ;;
11127      m68k)
11128            # FIXME: we need at least 68020 code to build shared libraries, but
11129            # adding the '-m68020' flag to GCC prevents building anything better,
11130            # like '-m68040'.
11131            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11132        ;;
11133      esac
11134      ;;
11135
11136    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11137      # PIC is the default for these OSes.
11138      ;;
11139
11140    mingw* | cygwin* | pw32* | os2* | cegcc*)
11141      # This hack is so that the source file can tell whether it is being
11142      # built for inclusion in a dll (and should export symbols for example).
11143      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11144      # (--disable-auto-import) libraries
11145      lt_prog_compiler_pic='-DDLL_EXPORT'
11146      case $host_os in
11147      os2*)
11148	lt_prog_compiler_static='$wl-static'
11149	;;
11150      esac
11151      ;;
11152
11153    darwin* | rhapsody*)
11154      # PIC is the default on this platform
11155      # Common symbols not allowed in MH_DYLIB files
11156      lt_prog_compiler_pic='-fno-common'
11157      ;;
11158
11159    haiku*)
11160      # PIC is the default for Haiku.
11161      # The "-static" flag exists, but is broken.
11162      lt_prog_compiler_static=
11163      ;;
11164
11165    hpux*)
11166      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11167      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11168      # sets the default TLS model and affects inlining.
11169      case $host_cpu in
11170      hppa*64*)
11171	# +Z the default
11172	;;
11173      *)
11174	lt_prog_compiler_pic='-fPIC'
11175	;;
11176      esac
11177      ;;
11178
11179    interix[3-9]*)
11180      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11181      # Instead, we relocate shared libraries at runtime.
11182      ;;
11183
11184    msdosdjgpp*)
11185      # Just because we use GCC doesn't mean we suddenly get shared libraries
11186      # on systems that don't support them.
11187      lt_prog_compiler_can_build_shared=no
11188      enable_shared=no
11189      ;;
11190
11191    *nto* | *qnx*)
11192      # QNX uses GNU C++, but need to define -shared option too, otherwise
11193      # it will coredump.
11194      lt_prog_compiler_pic='-fPIC -shared'
11195      ;;
11196
11197    sysv4*MP*)
11198      if test -d /usr/nec; then
11199	lt_prog_compiler_pic=-Kconform_pic
11200      fi
11201      ;;
11202
11203    *)
11204      lt_prog_compiler_pic='-fPIC'
11205      ;;
11206    esac
11207
11208    case $cc_basename in
11209    nvcc*) # Cuda Compiler Driver 2.2
11210      lt_prog_compiler_wl='-Xlinker '
11211      if test -n "$lt_prog_compiler_pic"; then
11212        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11213      fi
11214      ;;
11215    esac
11216  else
11217    # PORTME Check for flag to pass linker flags through the system compiler.
11218    case $host_os in
11219    aix*)
11220      lt_prog_compiler_wl='-Wl,'
11221      if test ia64 = "$host_cpu"; then
11222	# AIX 5 now supports IA64 processor
11223	lt_prog_compiler_static='-Bstatic'
11224      else
11225	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11226      fi
11227      ;;
11228
11229    darwin* | rhapsody*)
11230      # PIC is the default on this platform
11231      # Common symbols not allowed in MH_DYLIB files
11232      lt_prog_compiler_pic='-fno-common'
11233      case $cc_basename in
11234      nagfor*)
11235        # NAG Fortran compiler
11236        lt_prog_compiler_wl='-Wl,-Wl,,'
11237        lt_prog_compiler_pic='-PIC'
11238        lt_prog_compiler_static='-Bstatic'
11239        ;;
11240      esac
11241      ;;
11242
11243    mingw* | cygwin* | pw32* | os2* | cegcc*)
11244      # This hack is so that the source file can tell whether it is being
11245      # built for inclusion in a dll (and should export symbols for example).
11246      lt_prog_compiler_pic='-DDLL_EXPORT'
11247      case $host_os in
11248      os2*)
11249	lt_prog_compiler_static='$wl-static'
11250	;;
11251      esac
11252      ;;
11253
11254    hpux9* | hpux10* | hpux11*)
11255      lt_prog_compiler_wl='-Wl,'
11256      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11257      # not for PA HP-UX.
11258      case $host_cpu in
11259      hppa*64*|ia64*)
11260	# +Z the default
11261	;;
11262      *)
11263	lt_prog_compiler_pic='+Z'
11264	;;
11265      esac
11266      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11267      lt_prog_compiler_static='$wl-a ${wl}archive'
11268      ;;
11269
11270    irix5* | irix6* | nonstopux*)
11271      lt_prog_compiler_wl='-Wl,'
11272      # PIC (with -KPIC) is the default.
11273      lt_prog_compiler_static='-non_shared'
11274      ;;
11275
11276    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11277      case $cc_basename in
11278      # old Intel for x86_64, which still supported -KPIC.
11279      ecc*)
11280	lt_prog_compiler_wl='-Wl,'
11281	lt_prog_compiler_pic='-KPIC'
11282	lt_prog_compiler_static='-static'
11283        ;;
11284      # icc used to be incompatible with GCC.
11285      # ICC 10 doesn't accept -KPIC any more.
11286      icc* | ifort*)
11287	lt_prog_compiler_wl='-Wl,'
11288	lt_prog_compiler_pic='-fPIC'
11289	lt_prog_compiler_static='-static'
11290        ;;
11291      # Lahey Fortran 8.1.
11292      lf95*)
11293	lt_prog_compiler_wl='-Wl,'
11294	lt_prog_compiler_pic='--shared'
11295	lt_prog_compiler_static='--static'
11296	;;
11297      nagfor*)
11298	# NAG Fortran compiler
11299	lt_prog_compiler_wl='-Wl,-Wl,,'
11300	lt_prog_compiler_pic='-PIC'
11301	lt_prog_compiler_static='-Bstatic'
11302	;;
11303      tcc*)
11304	# Fabrice Bellard et al's Tiny C Compiler
11305	lt_prog_compiler_wl='-Wl,'
11306	lt_prog_compiler_pic='-fPIC'
11307	lt_prog_compiler_static='-static'
11308	;;
11309      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11310        # Portland Group compilers (*not* the Pentium gcc compiler,
11311	# which looks to be a dead project)
11312	lt_prog_compiler_wl='-Wl,'
11313	lt_prog_compiler_pic='-fpic'
11314	lt_prog_compiler_static='-Bstatic'
11315        ;;
11316      ccc*)
11317        lt_prog_compiler_wl='-Wl,'
11318        # All Alpha code is PIC.
11319        lt_prog_compiler_static='-non_shared'
11320        ;;
11321      xl* | bgxl* | bgf* | mpixl*)
11322	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11323	lt_prog_compiler_wl='-Wl,'
11324	lt_prog_compiler_pic='-qpic'
11325	lt_prog_compiler_static='-qstaticlink'
11326	;;
11327      *)
11328	case `$CC -V 2>&1 | sed 5q` in
11329	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11330	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11331	  lt_prog_compiler_pic='-KPIC'
11332	  lt_prog_compiler_static='-Bstatic'
11333	  lt_prog_compiler_wl=''
11334	  ;;
11335	*Sun\ F* | *Sun*Fortran*)
11336	  lt_prog_compiler_pic='-KPIC'
11337	  lt_prog_compiler_static='-Bstatic'
11338	  lt_prog_compiler_wl='-Qoption ld '
11339	  ;;
11340	*Sun\ C*)
11341	  # Sun C 5.9
11342	  lt_prog_compiler_pic='-KPIC'
11343	  lt_prog_compiler_static='-Bstatic'
11344	  lt_prog_compiler_wl='-Wl,'
11345	  ;;
11346        *Intel*\ [CF]*Compiler*)
11347	  lt_prog_compiler_wl='-Wl,'
11348	  lt_prog_compiler_pic='-fPIC'
11349	  lt_prog_compiler_static='-static'
11350	  ;;
11351	*Portland\ Group*)
11352	  lt_prog_compiler_wl='-Wl,'
11353	  lt_prog_compiler_pic='-fpic'
11354	  lt_prog_compiler_static='-Bstatic'
11355	  ;;
11356	esac
11357	;;
11358      esac
11359      ;;
11360
11361    newsos6)
11362      lt_prog_compiler_pic='-KPIC'
11363      lt_prog_compiler_static='-Bstatic'
11364      ;;
11365
11366    *nto* | *qnx*)
11367      # QNX uses GNU C++, but need to define -shared option too, otherwise
11368      # it will coredump.
11369      lt_prog_compiler_pic='-fPIC -shared'
11370      ;;
11371
11372    osf3* | osf4* | osf5*)
11373      lt_prog_compiler_wl='-Wl,'
11374      # All OSF/1 code is PIC.
11375      lt_prog_compiler_static='-non_shared'
11376      ;;
11377
11378    rdos*)
11379      lt_prog_compiler_static='-non_shared'
11380      ;;
11381
11382    solaris*)
11383      lt_prog_compiler_pic='-KPIC'
11384      lt_prog_compiler_static='-Bstatic'
11385      case $cc_basename in
11386      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11387	lt_prog_compiler_wl='-Qoption ld ';;
11388      *)
11389	lt_prog_compiler_wl='-Wl,';;
11390      esac
11391      ;;
11392
11393    sunos4*)
11394      lt_prog_compiler_wl='-Qoption ld '
11395      lt_prog_compiler_pic='-PIC'
11396      lt_prog_compiler_static='-Bstatic'
11397      ;;
11398
11399    sysv4 | sysv4.2uw2* | sysv4.3*)
11400      lt_prog_compiler_wl='-Wl,'
11401      lt_prog_compiler_pic='-KPIC'
11402      lt_prog_compiler_static='-Bstatic'
11403      ;;
11404
11405    sysv4*MP*)
11406      if test -d /usr/nec; then
11407	lt_prog_compiler_pic='-Kconform_pic'
11408	lt_prog_compiler_static='-Bstatic'
11409      fi
11410      ;;
11411
11412    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11413      lt_prog_compiler_wl='-Wl,'
11414      lt_prog_compiler_pic='-KPIC'
11415      lt_prog_compiler_static='-Bstatic'
11416      ;;
11417
11418    unicos*)
11419      lt_prog_compiler_wl='-Wl,'
11420      lt_prog_compiler_can_build_shared=no
11421      ;;
11422
11423    uts4*)
11424      lt_prog_compiler_pic='-pic'
11425      lt_prog_compiler_static='-Bstatic'
11426      ;;
11427
11428    *)
11429      lt_prog_compiler_can_build_shared=no
11430      ;;
11431    esac
11432  fi
11433
11434case $host_os in
11435  # For platforms that do not support PIC, -DPIC is meaningless:
11436  *djgpp*)
11437    lt_prog_compiler_pic=
11438    ;;
11439  *)
11440    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11441    ;;
11442esac
11443
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11445$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11446if ${lt_cv_prog_compiler_pic+:} false; then :
11447  $as_echo_n "(cached) " >&6
11448else
11449  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11450fi
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11452$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11453lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11454
11455#
11456# Check to make sure the PIC flag actually works.
11457#
11458if test -n "$lt_prog_compiler_pic"; then
11459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11460$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11461if ${lt_cv_prog_compiler_pic_works+:} false; then :
11462  $as_echo_n "(cached) " >&6
11463else
11464  lt_cv_prog_compiler_pic_works=no
11465   ac_outfile=conftest.$ac_objext
11466   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11467   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11468   # Insert the option either (1) after the last *FLAGS variable, or
11469   # (2) before a word containing "conftest.", or (3) at the end.
11470   # Note that $ac_compile itself does not contain backslashes and begins
11471   # with a dollar sign (not a hyphen), so the echo should work correctly.
11472   # The option is referenced via a variable to avoid confusing sed.
11473   lt_compile=`echo "$ac_compile" | $SED \
11474   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11475   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11476   -e 's:$: $lt_compiler_flag:'`
11477   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11478   (eval "$lt_compile" 2>conftest.err)
11479   ac_status=$?
11480   cat conftest.err >&5
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   if (exit $ac_status) && test -s "$ac_outfile"; then
11483     # The compiler can only warn and ignore the option if not recognized
11484     # So say no if there are warnings other than the usual output.
11485     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11486     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11487     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11488       lt_cv_prog_compiler_pic_works=yes
11489     fi
11490   fi
11491   $RM conftest*
11492
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11495$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11496
11497if test yes = "$lt_cv_prog_compiler_pic_works"; then
11498    case $lt_prog_compiler_pic in
11499     "" | " "*) ;;
11500     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11501     esac
11502else
11503    lt_prog_compiler_pic=
11504     lt_prog_compiler_can_build_shared=no
11505fi
11506
11507fi
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519#
11520# Check to make sure the static flag actually works.
11521#
11522wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11524$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11525if ${lt_cv_prog_compiler_static_works+:} false; then :
11526  $as_echo_n "(cached) " >&6
11527else
11528  lt_cv_prog_compiler_static_works=no
11529   save_LDFLAGS=$LDFLAGS
11530   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11531   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11532   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11533     # The linker can only warn and ignore the option if not recognized
11534     # So say no if there are warnings
11535     if test -s conftest.err; then
11536       # Append any errors to the config.log.
11537       cat conftest.err 1>&5
11538       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11539       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11540       if diff conftest.exp conftest.er2 >/dev/null; then
11541         lt_cv_prog_compiler_static_works=yes
11542       fi
11543     else
11544       lt_cv_prog_compiler_static_works=yes
11545     fi
11546   fi
11547   $RM -r conftest*
11548   LDFLAGS=$save_LDFLAGS
11549
11550fi
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11552$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11553
11554if test yes = "$lt_cv_prog_compiler_static_works"; then
11555    :
11556else
11557    lt_prog_compiler_static=
11558fi
11559
11560
11561
11562
11563
11564
11565
11566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11567$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11568if ${lt_cv_prog_compiler_c_o+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  lt_cv_prog_compiler_c_o=no
11572   $RM -r conftest 2>/dev/null
11573   mkdir conftest
11574   cd conftest
11575   mkdir out
11576   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11577
11578   lt_compiler_flag="-o out/conftest2.$ac_objext"
11579   # Insert the option either (1) after the last *FLAGS variable, or
11580   # (2) before a word containing "conftest.", or (3) at the end.
11581   # Note that $ac_compile itself does not contain backslashes and begins
11582   # with a dollar sign (not a hyphen), so the echo should work correctly.
11583   lt_compile=`echo "$ac_compile" | $SED \
11584   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11585   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11586   -e 's:$: $lt_compiler_flag:'`
11587   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11588   (eval "$lt_compile" 2>out/conftest.err)
11589   ac_status=$?
11590   cat out/conftest.err >&5
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11593   then
11594     # The compiler can only warn and ignore the option if not recognized
11595     # So say no if there are warnings
11596     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11597     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11598     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11599       lt_cv_prog_compiler_c_o=yes
11600     fi
11601   fi
11602   chmod u+w . 2>&5
11603   $RM conftest*
11604   # SGI C++ compiler will create directory out/ii_files/ for
11605   # template instantiation
11606   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11607   $RM out/* && rmdir out
11608   cd ..
11609   $RM -r conftest
11610   $RM conftest*
11611
11612fi
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11614$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11615
11616
11617
11618
11619
11620
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11623if ${lt_cv_prog_compiler_c_o+:} false; then :
11624  $as_echo_n "(cached) " >&6
11625else
11626  lt_cv_prog_compiler_c_o=no
11627   $RM -r conftest 2>/dev/null
11628   mkdir conftest
11629   cd conftest
11630   mkdir out
11631   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11632
11633   lt_compiler_flag="-o out/conftest2.$ac_objext"
11634   # Insert the option either (1) after the last *FLAGS variable, or
11635   # (2) before a word containing "conftest.", or (3) at the end.
11636   # Note that $ac_compile itself does not contain backslashes and begins
11637   # with a dollar sign (not a hyphen), so the echo should work correctly.
11638   lt_compile=`echo "$ac_compile" | $SED \
11639   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11640   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11641   -e 's:$: $lt_compiler_flag:'`
11642   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11643   (eval "$lt_compile" 2>out/conftest.err)
11644   ac_status=$?
11645   cat out/conftest.err >&5
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11648   then
11649     # The compiler can only warn and ignore the option if not recognized
11650     # So say no if there are warnings
11651     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11652     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11653     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11654       lt_cv_prog_compiler_c_o=yes
11655     fi
11656   fi
11657   chmod u+w . 2>&5
11658   $RM conftest*
11659   # SGI C++ compiler will create directory out/ii_files/ for
11660   # template instantiation
11661   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11662   $RM out/* && rmdir out
11663   cd ..
11664   $RM -r conftest
11665   $RM conftest*
11666
11667fi
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11669$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11670
11671
11672
11673
11674hard_links=nottested
11675if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11676  # do not overwrite the value of need_locks provided by the user
11677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11678$as_echo_n "checking if we can lock with hard links... " >&6; }
11679  hard_links=yes
11680  $RM conftest*
11681  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11682  touch conftest.a
11683  ln conftest.a conftest.b 2>&5 || hard_links=no
11684  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11686$as_echo "$hard_links" >&6; }
11687  if test no = "$hard_links"; then
11688    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11689$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11690    need_locks=warn
11691  fi
11692else
11693  need_locks=no
11694fi
11695
11696
11697
11698
11699
11700
11701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11702$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11703
11704  runpath_var=
11705  allow_undefined_flag=
11706  always_export_symbols=no
11707  archive_cmds=
11708  archive_expsym_cmds=
11709  compiler_needs_object=no
11710  enable_shared_with_static_runtimes=no
11711  export_dynamic_flag_spec=
11712  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11713  hardcode_automatic=no
11714  hardcode_direct=no
11715  hardcode_direct_absolute=no
11716  hardcode_libdir_flag_spec=
11717  hardcode_libdir_separator=
11718  hardcode_minus_L=no
11719  hardcode_shlibpath_var=unsupported
11720  inherit_rpath=no
11721  link_all_deplibs=unknown
11722  module_cmds=
11723  module_expsym_cmds=
11724  old_archive_from_new_cmds=
11725  old_archive_from_expsyms_cmds=
11726  thread_safe_flag_spec=
11727  whole_archive_flag_spec=
11728  # include_expsyms should be a list of space-separated symbols to be *always*
11729  # included in the symbol list
11730  include_expsyms=
11731  # exclude_expsyms can be an extended regexp of symbols to exclude
11732  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11733  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11734  # as well as any symbol that contains 'd'.
11735  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11736  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11737  # platforms (ab)use it in PIC code, but their linkers get confused if
11738  # the symbol is explicitly referenced.  Since portable code cannot
11739  # rely on this symbol name, it's probably fine to never include it in
11740  # preloaded symbol tables.
11741  # Exclude shared library initialization/finalization symbols.
11742  extract_expsyms_cmds=
11743
11744  case $host_os in
11745  cygwin* | mingw* | pw32* | cegcc*)
11746    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11747    # When not using gcc, we currently assume that we are using
11748    # Microsoft Visual C++.
11749    if test yes != "$GCC"; then
11750      with_gnu_ld=no
11751    fi
11752    ;;
11753  interix*)
11754    # we just hope/assume this is gcc and not c89 (= MSVC++)
11755    with_gnu_ld=yes
11756    ;;
11757  openbsd* | bitrig*)
11758    with_gnu_ld=no
11759    ;;
11760  linux* | k*bsd*-gnu | gnu*)
11761    link_all_deplibs=no
11762    ;;
11763  esac
11764
11765  ld_shlibs=yes
11766
11767  # On some targets, GNU ld is compatible enough with the native linker
11768  # that we're better off using the native interface for both.
11769  lt_use_gnu_ld_interface=no
11770  if test yes = "$with_gnu_ld"; then
11771    case $host_os in
11772      aix*)
11773	# The AIX port of GNU ld has always aspired to compatibility
11774	# with the native linker.  However, as the warning in the GNU ld
11775	# block says, versions before 2.19.5* couldn't really create working
11776	# shared libraries, regardless of the interface used.
11777	case `$LD -v 2>&1` in
11778	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11779	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11780	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11781	  *)
11782	    lt_use_gnu_ld_interface=yes
11783	    ;;
11784	esac
11785	;;
11786      *)
11787	lt_use_gnu_ld_interface=yes
11788	;;
11789    esac
11790  fi
11791
11792  if test yes = "$lt_use_gnu_ld_interface"; then
11793    # If archive_cmds runs LD, not CC, wlarc should be empty
11794    wlarc='$wl'
11795
11796    # Set some defaults for GNU ld with shared library support. These
11797    # are reset later if shared libraries are not supported. Putting them
11798    # here allows them to be overridden if necessary.
11799    runpath_var=LD_RUN_PATH
11800    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11801    export_dynamic_flag_spec='$wl--export-dynamic'
11802    # ancient GNU ld didn't support --whole-archive et. al.
11803    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11804      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11805    else
11806      whole_archive_flag_spec=
11807    fi
11808    supports_anon_versioning=no
11809    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11810      *GNU\ gold*) supports_anon_versioning=yes ;;
11811      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11812      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11813      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11814      *\ 2.11.*) ;; # other 2.11 versions
11815      *) supports_anon_versioning=yes ;;
11816    esac
11817
11818    # See if GNU ld supports shared libraries.
11819    case $host_os in
11820    aix[3-9]*)
11821      # On AIX/PPC, the GNU linker is very broken
11822      if test ia64 != "$host_cpu"; then
11823	ld_shlibs=no
11824	cat <<_LT_EOF 1>&2
11825
11826*** Warning: the GNU linker, at least up to release 2.19, is reported
11827*** to be unable to reliably create shared libraries on AIX.
11828*** Therefore, libtool is disabling shared libraries support.  If you
11829*** really care for shared libraries, you may want to install binutils
11830*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11831*** You will then need to restart the configuration process.
11832
11833_LT_EOF
11834      fi
11835      ;;
11836
11837    amigaos*)
11838      case $host_cpu in
11839      powerpc)
11840            # see comment about AmigaOS4 .so support
11841            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11842            archive_expsym_cmds=''
11843        ;;
11844      m68k)
11845            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)'
11846            hardcode_libdir_flag_spec='-L$libdir'
11847            hardcode_minus_L=yes
11848        ;;
11849      esac
11850      ;;
11851
11852    beos*)
11853      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11854	allow_undefined_flag=unsupported
11855	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11856	# support --undefined.  This deserves some investigation.  FIXME
11857	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11858      else
11859	ld_shlibs=no
11860      fi
11861      ;;
11862
11863    cygwin* | mingw* | pw32* | cegcc*)
11864      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11865      # as there is no search path for DLLs.
11866      hardcode_libdir_flag_spec='-L$libdir'
11867      export_dynamic_flag_spec='$wl--export-all-symbols'
11868      allow_undefined_flag=unsupported
11869      always_export_symbols=no
11870      enable_shared_with_static_runtimes=yes
11871      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'
11872      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11873
11874      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11875        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11876	# If the export-symbols file already is a .def file, use it as
11877	# is; otherwise, prepend EXPORTS...
11878	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11879          cp $export_symbols $output_objdir/$soname.def;
11880        else
11881          echo EXPORTS > $output_objdir/$soname.def;
11882          cat $export_symbols >> $output_objdir/$soname.def;
11883        fi~
11884        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11885      else
11886	ld_shlibs=no
11887      fi
11888      ;;
11889
11890    haiku*)
11891      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11892      link_all_deplibs=yes
11893      ;;
11894
11895    os2*)
11896      hardcode_libdir_flag_spec='-L$libdir'
11897      hardcode_minus_L=yes
11898      allow_undefined_flag=unsupported
11899      shrext_cmds=.dll
11900      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11901	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11902	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11903	$ECHO EXPORTS >> $output_objdir/$libname.def~
11904	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11905	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11906	emximp -o $lib $output_objdir/$libname.def'
11907      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11908	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11909	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11910	$ECHO EXPORTS >> $output_objdir/$libname.def~
11911	prefix_cmds="$SED"~
11912	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11913	  prefix_cmds="$prefix_cmds -e 1d";
11914	fi~
11915	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11916	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11917	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11918	emximp -o $lib $output_objdir/$libname.def'
11919      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11920      enable_shared_with_static_runtimes=yes
11921      ;;
11922
11923    interix[3-9]*)
11924      hardcode_direct=no
11925      hardcode_shlibpath_var=no
11926      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11927      export_dynamic_flag_spec='$wl-E'
11928      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11929      # Instead, shared libraries are loaded at an image base (0x10000000 by
11930      # default) and relocated if they conflict, which is a slow very memory
11931      # consuming and fragmenting process.  To avoid this, we pick a random,
11932      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11933      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11934      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11935      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'
11936      ;;
11937
11938    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11939      tmp_diet=no
11940      if test linux-dietlibc = "$host_os"; then
11941	case $cc_basename in
11942	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11943	esac
11944      fi
11945      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11946	 && test no = "$tmp_diet"
11947      then
11948	tmp_addflag=' $pic_flag'
11949	tmp_sharedflag='-shared'
11950	case $cc_basename,$host_cpu in
11951        pgcc*)				# Portland Group C compiler
11952	  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'
11953	  tmp_addflag=' $pic_flag'
11954	  ;;
11955	pgf77* | pgf90* | pgf95* | pgfortran*)
11956					# Portland Group f77 and f90 compilers
11957	  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'
11958	  tmp_addflag=' $pic_flag -Mnomain' ;;
11959	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11960	  tmp_addflag=' -i_dynamic' ;;
11961	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11962	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11963	ifc* | ifort*)			# Intel Fortran compiler
11964	  tmp_addflag=' -nofor_main' ;;
11965	lf95*)				# Lahey Fortran 8.1
11966	  whole_archive_flag_spec=
11967	  tmp_sharedflag='--shared' ;;
11968        nagfor*)                        # NAGFOR 5.3
11969          tmp_sharedflag='-Wl,-shared' ;;
11970	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11971	  tmp_sharedflag='-qmkshrobj'
11972	  tmp_addflag= ;;
11973	nvcc*)	# Cuda Compiler Driver 2.2
11974	  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'
11975	  compiler_needs_object=yes
11976	  ;;
11977	esac
11978	case `$CC -V 2>&1 | sed 5q` in
11979	*Sun\ C*)			# Sun C 5.9
11980	  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'
11981	  compiler_needs_object=yes
11982	  tmp_sharedflag='-G' ;;
11983	*Sun\ F*)			# Sun Fortran 8.3
11984	  tmp_sharedflag='-G' ;;
11985	esac
11986	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11987
11988        if test yes = "$supports_anon_versioning"; then
11989          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11990            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11991            echo "local: *; };" >> $output_objdir/$libname.ver~
11992            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11993        fi
11994
11995	case $cc_basename in
11996	tcc*)
11997	  export_dynamic_flag_spec='-rdynamic'
11998	  ;;
11999	xlf* | bgf* | bgxlf* | mpixlf*)
12000	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12001	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12002	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12003	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12004	  if test yes = "$supports_anon_versioning"; then
12005	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12006              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12007              echo "local: *; };" >> $output_objdir/$libname.ver~
12008              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12009	  fi
12010	  ;;
12011	esac
12012      else
12013        ld_shlibs=no
12014      fi
12015      ;;
12016
12017    netbsd* | netbsdelf*-gnu)
12018      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12019	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12020	wlarc=
12021      else
12022	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12023	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12024      fi
12025      ;;
12026
12027    solaris*)
12028      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12029	ld_shlibs=no
12030	cat <<_LT_EOF 1>&2
12031
12032*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12033*** create shared libraries on Solaris systems.  Therefore, libtool
12034*** is disabling shared libraries support.  We urge you to upgrade GNU
12035*** binutils to release 2.9.1 or newer.  Another option is to modify
12036*** your PATH or compiler configuration so that the native linker is
12037*** used, and then restart.
12038
12039_LT_EOF
12040      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12041	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12042	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12043      else
12044	ld_shlibs=no
12045      fi
12046      ;;
12047
12048    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12049      case `$LD -v 2>&1` in
12050        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12051	ld_shlibs=no
12052	cat <<_LT_EOF 1>&2
12053
12054*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12055*** reliably create shared libraries on SCO systems.  Therefore, libtool
12056*** is disabling shared libraries support.  We urge you to upgrade GNU
12057*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12058*** your PATH or compiler configuration so that the native linker is
12059*** used, and then restart.
12060
12061_LT_EOF
12062	;;
12063	*)
12064	  # For security reasons, it is highly recommended that you always
12065	  # use absolute paths for naming shared libraries, and exclude the
12066	  # DT_RUNPATH tag from executables and libraries.  But doing so
12067	  # requires that you compile everything twice, which is a pain.
12068	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12069	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12070	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12071	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12072	  else
12073	    ld_shlibs=no
12074	  fi
12075	;;
12076      esac
12077      ;;
12078
12079    sunos4*)
12080      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12081      wlarc=
12082      hardcode_direct=yes
12083      hardcode_shlibpath_var=no
12084      ;;
12085
12086    *)
12087      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12088	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12089	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12090      else
12091	ld_shlibs=no
12092      fi
12093      ;;
12094    esac
12095
12096    if test no = "$ld_shlibs"; then
12097      runpath_var=
12098      hardcode_libdir_flag_spec=
12099      export_dynamic_flag_spec=
12100      whole_archive_flag_spec=
12101    fi
12102  else
12103    # PORTME fill in a description of your system's linker (not GNU ld)
12104    case $host_os in
12105    aix3*)
12106      allow_undefined_flag=unsupported
12107      always_export_symbols=yes
12108      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'
12109      # Note: this linker hardcodes the directories in LIBPATH if there
12110      # are no directories specified by -L.
12111      hardcode_minus_L=yes
12112      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12113	# Neither direct hardcoding nor static linking is supported with a
12114	# broken collect2.
12115	hardcode_direct=unsupported
12116      fi
12117      ;;
12118
12119    aix[4-9]*)
12120      if test ia64 = "$host_cpu"; then
12121	# On IA64, the linker does run time linking by default, so we don't
12122	# have to do anything special.
12123	aix_use_runtimelinking=no
12124	exp_sym_flag='-Bexport'
12125	no_entry_flag=
12126      else
12127	# If we're using GNU nm, then we don't want the "-C" option.
12128	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12129	# Without the "-l" option, or with the "-B" option, AIX nm treats
12130	# weak defined symbols like other global defined symbols, whereas
12131	# GNU nm marks them as "W".
12132	# While the 'weak' keyword is ignored in the Export File, we need
12133	# it in the Import File for the 'aix-soname' feature, so we have
12134	# to replace the "-B" option with "-P" for AIX nm.
12135	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12136	  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'
12137	else
12138	  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'
12139	fi
12140	aix_use_runtimelinking=no
12141
12142	# Test if we are trying to use run time linking or normal
12143	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12144	# have runtime linking enabled, and use it for executables.
12145	# For shared libraries, we enable/disable runtime linking
12146	# depending on the kind of the shared library created -
12147	# when "with_aix_soname,aix_use_runtimelinking" is:
12148	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12149	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12150	#            lib.a           static archive
12151	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12152	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12153	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12154	#            lib.a(lib.so.V) shared, rtl:no
12155	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12156	#            lib.a           static archive
12157	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12158	  for ld_flag in $LDFLAGS; do
12159	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12160	    aix_use_runtimelinking=yes
12161	    break
12162	  fi
12163	  done
12164	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12165	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12166	    # so we don't have lib.a shared libs to link our executables.
12167	    # We have to force runtime linking in this case.
12168	    aix_use_runtimelinking=yes
12169	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12170	  fi
12171	  ;;
12172	esac
12173
12174	exp_sym_flag='-bexport'
12175	no_entry_flag='-bnoentry'
12176      fi
12177
12178      # When large executables or shared objects are built, AIX ld can
12179      # have problems creating the table of contents.  If linking a library
12180      # or program results in "error TOC overflow" add -mminimal-toc to
12181      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12182      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12183
12184      archive_cmds=''
12185      hardcode_direct=yes
12186      hardcode_direct_absolute=yes
12187      hardcode_libdir_separator=':'
12188      link_all_deplibs=yes
12189      file_list_spec='$wl-f,'
12190      case $with_aix_soname,$aix_use_runtimelinking in
12191      aix,*) ;; # traditional, no import file
12192      svr4,* | *,yes) # use import file
12193	# The Import File defines what to hardcode.
12194	hardcode_direct=no
12195	hardcode_direct_absolute=no
12196	;;
12197      esac
12198
12199      if test yes = "$GCC"; then
12200	case $host_os in aix4.[012]|aix4.[012].*)
12201	# We only want to do this on AIX 4.2 and lower, the check
12202	# below for broken collect2 doesn't work under 4.3+
12203	  collect2name=`$CC -print-prog-name=collect2`
12204	  if test -f "$collect2name" &&
12205	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12206	  then
12207	  # We have reworked collect2
12208	  :
12209	  else
12210	  # We have old collect2
12211	  hardcode_direct=unsupported
12212	  # It fails to find uninstalled libraries when the uninstalled
12213	  # path is not listed in the libpath.  Setting hardcode_minus_L
12214	  # to unsupported forces relinking
12215	  hardcode_minus_L=yes
12216	  hardcode_libdir_flag_spec='-L$libdir'
12217	  hardcode_libdir_separator=
12218	  fi
12219	  ;;
12220	esac
12221	shared_flag='-shared'
12222	if test yes = "$aix_use_runtimelinking"; then
12223	  shared_flag="$shared_flag "'$wl-G'
12224	fi
12225	# Need to ensure runtime linking is disabled for the traditional
12226	# shared library, or the linker may eventually find shared libraries
12227	# /with/ Import File - we do not want to mix them.
12228	shared_flag_aix='-shared'
12229	shared_flag_svr4='-shared $wl-G'
12230      else
12231	# not using gcc
12232	if test ia64 = "$host_cpu"; then
12233	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12234	# chokes on -Wl,-G. The following line is correct:
12235	  shared_flag='-G'
12236	else
12237	  if test yes = "$aix_use_runtimelinking"; then
12238	    shared_flag='$wl-G'
12239	  else
12240	    shared_flag='$wl-bM:SRE'
12241	  fi
12242	  shared_flag_aix='$wl-bM:SRE'
12243	  shared_flag_svr4='$wl-G'
12244	fi
12245      fi
12246
12247      export_dynamic_flag_spec='$wl-bexpall'
12248      # It seems that -bexpall does not export symbols beginning with
12249      # underscore (_), so it is better to generate a list of symbols to export.
12250      always_export_symbols=yes
12251      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12252	# Warning - without using the other runtime loading flags (-brtl),
12253	# -berok will link without error, but may produce a broken library.
12254	allow_undefined_flag='-berok'
12255        # Determine the default libpath from the value encoded in an
12256        # empty executable.
12257        if test set = "${lt_cv_aix_libpath+set}"; then
12258  aix_libpath=$lt_cv_aix_libpath
12259else
12260  if ${lt_cv_aix_libpath_+:} false; then :
12261  $as_echo_n "(cached) " >&6
12262else
12263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264/* end confdefs.h.  */
12265
12266int
12267main ()
12268{
12269
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274if ac_fn_c_try_link "$LINENO"; then :
12275
12276  lt_aix_libpath_sed='
12277      /Import File Strings/,/^$/ {
12278	  /^0/ {
12279	      s/^0  *\([^ ]*\) *$/\1/
12280	      p
12281	  }
12282      }'
12283  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12284  # Check for a 64-bit object if we didn't find anything.
12285  if test -z "$lt_cv_aix_libpath_"; then
12286    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12287  fi
12288fi
12289rm -f core conftest.err conftest.$ac_objext \
12290    conftest$ac_exeext conftest.$ac_ext
12291  if test -z "$lt_cv_aix_libpath_"; then
12292    lt_cv_aix_libpath_=/usr/lib:/lib
12293  fi
12294
12295fi
12296
12297  aix_libpath=$lt_cv_aix_libpath_
12298fi
12299
12300        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12301        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
12302      else
12303	if test ia64 = "$host_cpu"; then
12304	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12305	  allow_undefined_flag="-z nodefs"
12306	  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"
12307	else
12308	 # Determine the default libpath from the value encoded in an
12309	 # empty executable.
12310	 if test set = "${lt_cv_aix_libpath+set}"; then
12311  aix_libpath=$lt_cv_aix_libpath
12312else
12313  if ${lt_cv_aix_libpath_+:} false; then :
12314  $as_echo_n "(cached) " >&6
12315else
12316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317/* end confdefs.h.  */
12318
12319int
12320main ()
12321{
12322
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
12328
12329  lt_aix_libpath_sed='
12330      /Import File Strings/,/^$/ {
12331	  /^0/ {
12332	      s/^0  *\([^ ]*\) *$/\1/
12333	      p
12334	  }
12335      }'
12336  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337  # Check for a 64-bit object if we didn't find anything.
12338  if test -z "$lt_cv_aix_libpath_"; then
12339    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12340  fi
12341fi
12342rm -f core conftest.err conftest.$ac_objext \
12343    conftest$ac_exeext conftest.$ac_ext
12344  if test -z "$lt_cv_aix_libpath_"; then
12345    lt_cv_aix_libpath_=/usr/lib:/lib
12346  fi
12347
12348fi
12349
12350  aix_libpath=$lt_cv_aix_libpath_
12351fi
12352
12353	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12354	  # Warning - without using the other run time loading flags,
12355	  # -berok will link without error, but may produce a broken library.
12356	  no_undefined_flag=' $wl-bernotok'
12357	  allow_undefined_flag=' $wl-berok'
12358	  if test yes = "$with_gnu_ld"; then
12359	    # We only use this code for GNU lds that support --whole-archive.
12360	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12361	  else
12362	    # Exported symbols can be pulled into shared objects from archives
12363	    whole_archive_flag_spec='$convenience'
12364	  fi
12365	  archive_cmds_need_lc=yes
12366	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12367	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12368	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12369	  if test svr4 != "$with_aix_soname"; then
12370	    # This is similar to how AIX traditionally builds its shared libraries.
12371	    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'
12372	  fi
12373	  if test aix != "$with_aix_soname"; then
12374	    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'
12375	  else
12376	    # used by -dlpreopen to get the symbols
12377	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12378	  fi
12379	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12380	fi
12381      fi
12382      ;;
12383
12384    amigaos*)
12385      case $host_cpu in
12386      powerpc)
12387            # see comment about AmigaOS4 .so support
12388            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12389            archive_expsym_cmds=''
12390        ;;
12391      m68k)
12392            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)'
12393            hardcode_libdir_flag_spec='-L$libdir'
12394            hardcode_minus_L=yes
12395        ;;
12396      esac
12397      ;;
12398
12399    bsdi[45]*)
12400      export_dynamic_flag_spec=-rdynamic
12401      ;;
12402
12403    cygwin* | mingw* | pw32* | cegcc*)
12404      # When not using gcc, we currently assume that we are using
12405      # Microsoft Visual C++.
12406      # hardcode_libdir_flag_spec is actually meaningless, as there is
12407      # no search path for DLLs.
12408      case $cc_basename in
12409      cl*)
12410	# Native MSVC
12411	hardcode_libdir_flag_spec=' '
12412	allow_undefined_flag=unsupported
12413	always_export_symbols=yes
12414	file_list_spec='@'
12415	# Tell ltmain to make .lib files, not .a files.
12416	libext=lib
12417	# Tell ltmain to make .dll files, not .so files.
12418	shrext_cmds=.dll
12419	# FIXME: Setting linknames here is a bad hack.
12420	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12421	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12422            cp "$export_symbols" "$output_objdir/$soname.def";
12423            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12424          else
12425            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12426          fi~
12427          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12428          linknames='
12429	# The linker will not automatically build a static lib if we build a DLL.
12430	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12431	enable_shared_with_static_runtimes=yes
12432	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12433	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12434	# Don't use ranlib
12435	old_postinstall_cmds='chmod 644 $oldlib'
12436	postlink_cmds='lt_outputfile="@OUTPUT@"~
12437          lt_tool_outputfile="@TOOL_OUTPUT@"~
12438          case $lt_outputfile in
12439            *.exe|*.EXE) ;;
12440            *)
12441              lt_outputfile=$lt_outputfile.exe
12442              lt_tool_outputfile=$lt_tool_outputfile.exe
12443              ;;
12444          esac~
12445          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12446            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12447            $RM "$lt_outputfile.manifest";
12448          fi'
12449	;;
12450      *)
12451	# Assume MSVC wrapper
12452	hardcode_libdir_flag_spec=' '
12453	allow_undefined_flag=unsupported
12454	# Tell ltmain to make .lib files, not .a files.
12455	libext=lib
12456	# Tell ltmain to make .dll files, not .so files.
12457	shrext_cmds=.dll
12458	# FIXME: Setting linknames here is a bad hack.
12459	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12460	# The linker will automatically build a .lib file if we build a DLL.
12461	old_archive_from_new_cmds='true'
12462	# FIXME: Should let the user specify the lib program.
12463	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12464	enable_shared_with_static_runtimes=yes
12465	;;
12466      esac
12467      ;;
12468
12469    darwin* | rhapsody*)
12470
12471
12472  archive_cmds_need_lc=no
12473  hardcode_direct=no
12474  hardcode_automatic=yes
12475  hardcode_shlibpath_var=unsupported
12476  if test yes = "$lt_cv_ld_force_load"; then
12477    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\"`'
12478
12479  else
12480    whole_archive_flag_spec=''
12481  fi
12482  link_all_deplibs=yes
12483  allow_undefined_flag=$_lt_dar_allow_undefined
12484  case $cc_basename in
12485     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12486     *) _lt_dar_can_shared=$GCC ;;
12487  esac
12488  if test yes = "$_lt_dar_can_shared"; then
12489    output_verbose_link_cmd=func_echo_all
12490    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12491    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12492    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"
12493    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"
12494
12495  else
12496  ld_shlibs=no
12497  fi
12498
12499      ;;
12500
12501    dgux*)
12502      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12503      hardcode_libdir_flag_spec='-L$libdir'
12504      hardcode_shlibpath_var=no
12505      ;;
12506
12507    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12508    # support.  Future versions do this automatically, but an explicit c++rt0.o
12509    # does not break anything, and helps significantly (at the cost of a little
12510    # extra space).
12511    freebsd2.2*)
12512      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12513      hardcode_libdir_flag_spec='-R$libdir'
12514      hardcode_direct=yes
12515      hardcode_shlibpath_var=no
12516      ;;
12517
12518    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12519    freebsd2.*)
12520      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12521      hardcode_direct=yes
12522      hardcode_minus_L=yes
12523      hardcode_shlibpath_var=no
12524      ;;
12525
12526    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12527    freebsd* | dragonfly*)
12528      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12529      hardcode_libdir_flag_spec='-R$libdir'
12530      hardcode_direct=yes
12531      hardcode_shlibpath_var=no
12532      ;;
12533
12534    hpux9*)
12535      if test yes = "$GCC"; then
12536	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'
12537      else
12538	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'
12539      fi
12540      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12541      hardcode_libdir_separator=:
12542      hardcode_direct=yes
12543
12544      # hardcode_minus_L: Not really in the search PATH,
12545      # but as the default location of the library.
12546      hardcode_minus_L=yes
12547      export_dynamic_flag_spec='$wl-E'
12548      ;;
12549
12550    hpux10*)
12551      if test yes,no = "$GCC,$with_gnu_ld"; then
12552	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12553      else
12554	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12555      fi
12556      if test no = "$with_gnu_ld"; then
12557	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12558	hardcode_libdir_separator=:
12559	hardcode_direct=yes
12560	hardcode_direct_absolute=yes
12561	export_dynamic_flag_spec='$wl-E'
12562	# hardcode_minus_L: Not really in the search PATH,
12563	# but as the default location of the library.
12564	hardcode_minus_L=yes
12565      fi
12566      ;;
12567
12568    hpux11*)
12569      if test yes,no = "$GCC,$with_gnu_ld"; then
12570	case $host_cpu in
12571	hppa*64*)
12572	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12573	  ;;
12574	ia64*)
12575	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12576	  ;;
12577	*)
12578	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12579	  ;;
12580	esac
12581      else
12582	case $host_cpu in
12583	hppa*64*)
12584	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12585	  ;;
12586	ia64*)
12587	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12588	  ;;
12589	*)
12590
12591	  # Older versions of the 11.00 compiler do not understand -b yet
12592	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12593	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12594$as_echo_n "checking if $CC understands -b... " >&6; }
12595if ${lt_cv_prog_compiler__b+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  lt_cv_prog_compiler__b=no
12599   save_LDFLAGS=$LDFLAGS
12600   LDFLAGS="$LDFLAGS -b"
12601   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12602   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12603     # The linker can only warn and ignore the option if not recognized
12604     # So say no if there are warnings
12605     if test -s conftest.err; then
12606       # Append any errors to the config.log.
12607       cat conftest.err 1>&5
12608       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12609       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12610       if diff conftest.exp conftest.er2 >/dev/null; then
12611         lt_cv_prog_compiler__b=yes
12612       fi
12613     else
12614       lt_cv_prog_compiler__b=yes
12615     fi
12616   fi
12617   $RM -r conftest*
12618   LDFLAGS=$save_LDFLAGS
12619
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12622$as_echo "$lt_cv_prog_compiler__b" >&6; }
12623
12624if test yes = "$lt_cv_prog_compiler__b"; then
12625    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12626else
12627    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12628fi
12629
12630	  ;;
12631	esac
12632      fi
12633      if test no = "$with_gnu_ld"; then
12634	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12635	hardcode_libdir_separator=:
12636
12637	case $host_cpu in
12638	hppa*64*|ia64*)
12639	  hardcode_direct=no
12640	  hardcode_shlibpath_var=no
12641	  ;;
12642	*)
12643	  hardcode_direct=yes
12644	  hardcode_direct_absolute=yes
12645	  export_dynamic_flag_spec='$wl-E'
12646
12647	  # hardcode_minus_L: Not really in the search PATH,
12648	  # but as the default location of the library.
12649	  hardcode_minus_L=yes
12650	  ;;
12651	esac
12652      fi
12653      ;;
12654
12655    irix5* | irix6* | nonstopux*)
12656      if test yes = "$GCC"; then
12657	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'
12658	# Try to use the -exported_symbol ld option, if it does not
12659	# work, assume that -exports_file does not work either and
12660	# implicitly export all symbols.
12661	# This should be the same for all languages, so no per-tag cache variable.
12662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12663$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12664if ${lt_cv_irix_exported_symbol+:} false; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  save_LDFLAGS=$LDFLAGS
12668	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12669	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670/* end confdefs.h.  */
12671int foo (void) { return 0; }
12672_ACEOF
12673if ac_fn_c_try_link "$LINENO"; then :
12674  lt_cv_irix_exported_symbol=yes
12675else
12676  lt_cv_irix_exported_symbol=no
12677fi
12678rm -f core conftest.err conftest.$ac_objext \
12679    conftest$ac_exeext conftest.$ac_ext
12680           LDFLAGS=$save_LDFLAGS
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12683$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12684	if test yes = "$lt_cv_irix_exported_symbol"; then
12685          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'
12686	fi
12687	link_all_deplibs=no
12688      else
12689	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'
12690	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'
12691      fi
12692      archive_cmds_need_lc='no'
12693      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12694      hardcode_libdir_separator=:
12695      inherit_rpath=yes
12696      link_all_deplibs=yes
12697      ;;
12698
12699    linux*)
12700      case $cc_basename in
12701      tcc*)
12702	# Fabrice Bellard et al's Tiny C Compiler
12703	ld_shlibs=yes
12704	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12705	;;
12706      esac
12707      ;;
12708
12709    netbsd* | netbsdelf*-gnu)
12710      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12711	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12712      else
12713	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12714      fi
12715      hardcode_libdir_flag_spec='-R$libdir'
12716      hardcode_direct=yes
12717      hardcode_shlibpath_var=no
12718      ;;
12719
12720    newsos6)
12721      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12722      hardcode_direct=yes
12723      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12724      hardcode_libdir_separator=:
12725      hardcode_shlibpath_var=no
12726      ;;
12727
12728    *nto* | *qnx*)
12729      ;;
12730
12731    openbsd* | bitrig*)
12732      if test -f /usr/libexec/ld.so; then
12733	hardcode_direct=yes
12734	hardcode_shlibpath_var=no
12735	hardcode_direct_absolute=yes
12736	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12737	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12738	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12739	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12740	  export_dynamic_flag_spec='$wl-E'
12741	else
12742	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12743	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12744	fi
12745      else
12746	ld_shlibs=no
12747      fi
12748      ;;
12749
12750    os2*)
12751      hardcode_libdir_flag_spec='-L$libdir'
12752      hardcode_minus_L=yes
12753      allow_undefined_flag=unsupported
12754      shrext_cmds=.dll
12755      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12756	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12757	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12758	$ECHO EXPORTS >> $output_objdir/$libname.def~
12759	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12760	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12761	emximp -o $lib $output_objdir/$libname.def'
12762      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12763	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12764	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12765	$ECHO EXPORTS >> $output_objdir/$libname.def~
12766	prefix_cmds="$SED"~
12767	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12768	  prefix_cmds="$prefix_cmds -e 1d";
12769	fi~
12770	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12771	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12772	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12773	emximp -o $lib $output_objdir/$libname.def'
12774      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12775      enable_shared_with_static_runtimes=yes
12776      ;;
12777
12778    osf3*)
12779      if test yes = "$GCC"; then
12780	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12781	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'
12782      else
12783	allow_undefined_flag=' -expect_unresolved \*'
12784	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'
12785      fi
12786      archive_cmds_need_lc='no'
12787      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12788      hardcode_libdir_separator=:
12789      ;;
12790
12791    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12792      if test yes = "$GCC"; then
12793	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12794	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'
12795	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12796      else
12797	allow_undefined_flag=' -expect_unresolved \*'
12798	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'
12799	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~
12800          $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'
12801
12802	# Both c and cxx compiler support -rpath directly
12803	hardcode_libdir_flag_spec='-rpath $libdir'
12804      fi
12805      archive_cmds_need_lc='no'
12806      hardcode_libdir_separator=:
12807      ;;
12808
12809    solaris*)
12810      no_undefined_flag=' -z defs'
12811      if test yes = "$GCC"; then
12812	wlarc='$wl'
12813	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12814	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12815          $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'
12816      else
12817	case `$CC -V 2>&1` in
12818	*"Compilers 5.0"*)
12819	  wlarc=''
12820	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12821	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12822            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12823	  ;;
12824	*)
12825	  wlarc='$wl'
12826	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12827	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12828            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12829	  ;;
12830	esac
12831      fi
12832      hardcode_libdir_flag_spec='-R$libdir'
12833      hardcode_shlibpath_var=no
12834      case $host_os in
12835      solaris2.[0-5] | solaris2.[0-5].*) ;;
12836      *)
12837	# The compiler driver will combine and reorder linker options,
12838	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12839	# but is careful enough not to reorder.
12840	# Supported since Solaris 2.6 (maybe 2.5.1?)
12841	if test yes = "$GCC"; then
12842	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12843	else
12844	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12845	fi
12846	;;
12847      esac
12848      link_all_deplibs=yes
12849      ;;
12850
12851    sunos4*)
12852      if test sequent = "$host_vendor"; then
12853	# Use $CC to link under sequent, because it throws in some extra .o
12854	# files that make .init and .fini sections work.
12855	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12856      else
12857	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12858      fi
12859      hardcode_libdir_flag_spec='-L$libdir'
12860      hardcode_direct=yes
12861      hardcode_minus_L=yes
12862      hardcode_shlibpath_var=no
12863      ;;
12864
12865    sysv4)
12866      case $host_vendor in
12867	sni)
12868	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869	  hardcode_direct=yes # is this really true???
12870	;;
12871	siemens)
12872	  ## LD is ld it makes a PLAMLIB
12873	  ## CC just makes a GrossModule.
12874	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12875	  reload_cmds='$CC -r -o $output$reload_objs'
12876	  hardcode_direct=no
12877        ;;
12878	motorola)
12879	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12880	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12881	;;
12882      esac
12883      runpath_var='LD_RUN_PATH'
12884      hardcode_shlibpath_var=no
12885      ;;
12886
12887    sysv4.3*)
12888      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12889      hardcode_shlibpath_var=no
12890      export_dynamic_flag_spec='-Bexport'
12891      ;;
12892
12893    sysv4*MP*)
12894      if test -d /usr/nec; then
12895	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896	hardcode_shlibpath_var=no
12897	runpath_var=LD_RUN_PATH
12898	hardcode_runpath_var=yes
12899	ld_shlibs=yes
12900      fi
12901      ;;
12902
12903    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12904      no_undefined_flag='$wl-z,text'
12905      archive_cmds_need_lc=no
12906      hardcode_shlibpath_var=no
12907      runpath_var='LD_RUN_PATH'
12908
12909      if test yes = "$GCC"; then
12910	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12911	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912      else
12913	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12914	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12915      fi
12916      ;;
12917
12918    sysv5* | sco3.2v5* | sco5v6*)
12919      # Note: We CANNOT use -z defs as we might desire, because we do not
12920      # link with -lc, and that would cause any symbols used from libc to
12921      # always be unresolved, which means just about no library would
12922      # ever link correctly.  If we're not using GNU ld we use -z text
12923      # though, which does catch some bad symbols but isn't as heavy-handed
12924      # as -z defs.
12925      no_undefined_flag='$wl-z,text'
12926      allow_undefined_flag='$wl-z,nodefs'
12927      archive_cmds_need_lc=no
12928      hardcode_shlibpath_var=no
12929      hardcode_libdir_flag_spec='$wl-R,$libdir'
12930      hardcode_libdir_separator=':'
12931      link_all_deplibs=yes
12932      export_dynamic_flag_spec='$wl-Bexport'
12933      runpath_var='LD_RUN_PATH'
12934
12935      if test yes = "$GCC"; then
12936	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12937	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12938      else
12939	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12940	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12941      fi
12942      ;;
12943
12944    uts4*)
12945      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12946      hardcode_libdir_flag_spec='-L$libdir'
12947      hardcode_shlibpath_var=no
12948      ;;
12949
12950    *)
12951      ld_shlibs=no
12952      ;;
12953    esac
12954
12955    if test sni = "$host_vendor"; then
12956      case $host in
12957      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12958	export_dynamic_flag_spec='$wl-Blargedynsym'
12959	;;
12960      esac
12961    fi
12962  fi
12963
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12965$as_echo "$ld_shlibs" >&6; }
12966test no = "$ld_shlibs" && can_build_shared=no
12967
12968with_gnu_ld=$with_gnu_ld
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984#
12985# Do we need to explicitly link libc?
12986#
12987case "x$archive_cmds_need_lc" in
12988x|xyes)
12989  # Assume -lc should be added
12990  archive_cmds_need_lc=yes
12991
12992  if test yes,yes = "$GCC,$enable_shared"; then
12993    case $archive_cmds in
12994    *'~'*)
12995      # FIXME: we may have to deal with multi-command sequences.
12996      ;;
12997    '$CC '*)
12998      # Test whether the compiler implicitly links with -lc since on some
12999      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13000      # to ld, don't add -lc before -lgcc.
13001      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13002$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13003if ${lt_cv_archive_cmds_need_lc+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  $RM conftest*
13007	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13008
13009	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13010  (eval $ac_compile) 2>&5
13011  ac_status=$?
13012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13013  test $ac_status = 0; } 2>conftest.err; then
13014	  soname=conftest
13015	  lib=conftest
13016	  libobjs=conftest.$ac_objext
13017	  deplibs=
13018	  wl=$lt_prog_compiler_wl
13019	  pic_flag=$lt_prog_compiler_pic
13020	  compiler_flags=-v
13021	  linker_flags=-v
13022	  verstring=
13023	  output_objdir=.
13024	  libname=conftest
13025	  lt_save_allow_undefined_flag=$allow_undefined_flag
13026	  allow_undefined_flag=
13027	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13028  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13029  ac_status=$?
13030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031  test $ac_status = 0; }
13032	  then
13033	    lt_cv_archive_cmds_need_lc=no
13034	  else
13035	    lt_cv_archive_cmds_need_lc=yes
13036	  fi
13037	  allow_undefined_flag=$lt_save_allow_undefined_flag
13038	else
13039	  cat conftest.err 1>&5
13040	fi
13041	$RM conftest*
13042
13043fi
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13045$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13046      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13047      ;;
13048    esac
13049  fi
13050  ;;
13051esac
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13205$as_echo_n "checking dynamic linker characteristics... " >&6; }
13206
13207if test yes = "$GCC"; then
13208  case $host_os in
13209    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13210    *) lt_awk_arg='/^libraries:/' ;;
13211  esac
13212  case $host_os in
13213    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13214    *) lt_sed_strip_eq='s|=/|/|g' ;;
13215  esac
13216  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13217  case $lt_search_path_spec in
13218  *\;*)
13219    # if the path contains ";" then we assume it to be the separator
13220    # otherwise default to the standard path separator (i.e. ":") - it is
13221    # assumed that no part of a normal pathname contains ";" but that should
13222    # okay in the real world where ";" in dirpaths is itself problematic.
13223    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13224    ;;
13225  *)
13226    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13227    ;;
13228  esac
13229  # Ok, now we have the path, separated by spaces, we can step through it
13230  # and add multilib dir if necessary...
13231  lt_tmp_lt_search_path_spec=
13232  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13233  # ...but if some path component already ends with the multilib dir we assume
13234  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13235  case "$lt_multi_os_dir; $lt_search_path_spec " in
13236  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13237    lt_multi_os_dir=
13238    ;;
13239  esac
13240  for lt_sys_path in $lt_search_path_spec; do
13241    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13242      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13243    elif test -n "$lt_multi_os_dir"; then
13244      test -d "$lt_sys_path" && \
13245	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13246    fi
13247  done
13248  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13249BEGIN {RS = " "; FS = "/|\n";} {
13250  lt_foo = "";
13251  lt_count = 0;
13252  for (lt_i = NF; lt_i > 0; lt_i--) {
13253    if ($lt_i != "" && $lt_i != ".") {
13254      if ($lt_i == "..") {
13255        lt_count++;
13256      } else {
13257        if (lt_count == 0) {
13258          lt_foo = "/" $lt_i lt_foo;
13259        } else {
13260          lt_count--;
13261        }
13262      }
13263    }
13264  }
13265  if (lt_foo != "") { lt_freq[lt_foo]++; }
13266  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13267}'`
13268  # AWK program above erroneously prepends '/' to C:/dos/paths
13269  # for these hosts.
13270  case $host_os in
13271    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13272      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13273  esac
13274  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13275else
13276  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13277fi
13278library_names_spec=
13279libname_spec='lib$name'
13280soname_spec=
13281shrext_cmds=.so
13282postinstall_cmds=
13283postuninstall_cmds=
13284finish_cmds=
13285finish_eval=
13286shlibpath_var=
13287shlibpath_overrides_runpath=unknown
13288version_type=none
13289dynamic_linker="$host_os ld.so"
13290sys_lib_dlsearch_path_spec="/lib /usr/lib"
13291need_lib_prefix=unknown
13292hardcode_into_libs=no
13293
13294# when you set need_version to no, make sure it does not cause -set_version
13295# flags to be left without arguments
13296need_version=unknown
13297
13298
13299
13300case $host_os in
13301aix3*)
13302  version_type=linux # correct to gnu/linux during the next big refactor
13303  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13304  shlibpath_var=LIBPATH
13305
13306  # AIX 3 has no versioning support, so we append a major version to the name.
13307  soname_spec='$libname$release$shared_ext$major'
13308  ;;
13309
13310aix[4-9]*)
13311  version_type=linux # correct to gnu/linux during the next big refactor
13312  need_lib_prefix=no
13313  need_version=no
13314  hardcode_into_libs=yes
13315  if test ia64 = "$host_cpu"; then
13316    # AIX 5 supports IA64
13317    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13318    shlibpath_var=LD_LIBRARY_PATH
13319  else
13320    # With GCC up to 2.95.x, collect2 would create an import file
13321    # for dependence libraries.  The import file would start with
13322    # the line '#! .'.  This would cause the generated library to
13323    # depend on '.', always an invalid library.  This was fixed in
13324    # development snapshots of GCC prior to 3.0.
13325    case $host_os in
13326      aix4 | aix4.[01] | aix4.[01].*)
13327      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13328	   echo ' yes '
13329	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13330	:
13331      else
13332	can_build_shared=no
13333      fi
13334      ;;
13335    esac
13336    # Using Import Files as archive members, it is possible to support
13337    # filename-based versioning of shared library archives on AIX. While
13338    # this would work for both with and without runtime linking, it will
13339    # prevent static linking of such archives. So we do filename-based
13340    # shared library versioning with .so extension only, which is used
13341    # when both runtime linking and shared linking is enabled.
13342    # Unfortunately, runtime linking may impact performance, so we do
13343    # not want this to be the default eventually. Also, we use the
13344    # versioned .so libs for executables only if there is the -brtl
13345    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13346    # To allow for filename-based versioning support, we need to create
13347    # libNAME.so.V as an archive file, containing:
13348    # *) an Import File, referring to the versioned filename of the
13349    #    archive as well as the shared archive member, telling the
13350    #    bitwidth (32 or 64) of that shared object, and providing the
13351    #    list of exported symbols of that shared object, eventually
13352    #    decorated with the 'weak' keyword
13353    # *) the shared object with the F_LOADONLY flag set, to really avoid
13354    #    it being seen by the linker.
13355    # At run time we better use the real file rather than another symlink,
13356    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13357
13358    case $with_aix_soname,$aix_use_runtimelinking in
13359    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13360    # soname into executable. Probably we can add versioning support to
13361    # collect2, so additional links can be useful in future.
13362    aix,yes) # traditional libtool
13363      dynamic_linker='AIX unversionable lib.so'
13364      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13365      # instead of lib<name>.a to let people know that these are not
13366      # typical AIX shared libraries.
13367      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13368      ;;
13369    aix,no) # traditional AIX only
13370      dynamic_linker='AIX lib.a(lib.so.V)'
13371      # We preserve .a as extension for shared libraries through AIX4.2
13372      # and later when we are not doing run time linking.
13373      library_names_spec='$libname$release.a $libname.a'
13374      soname_spec='$libname$release$shared_ext$major'
13375      ;;
13376    svr4,*) # full svr4 only
13377      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13378      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13379      # We do not specify a path in Import Files, so LIBPATH fires.
13380      shlibpath_overrides_runpath=yes
13381      ;;
13382    *,yes) # both, prefer svr4
13383      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13384      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13385      # unpreferred sharedlib libNAME.a needs extra handling
13386      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"'
13387      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"'
13388      # We do not specify a path in Import Files, so LIBPATH fires.
13389      shlibpath_overrides_runpath=yes
13390      ;;
13391    *,no) # both, prefer aix
13392      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13393      library_names_spec='$libname$release.a $libname.a'
13394      soname_spec='$libname$release$shared_ext$major'
13395      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13396      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)'
13397      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"'
13398      ;;
13399    esac
13400    shlibpath_var=LIBPATH
13401  fi
13402  ;;
13403
13404amigaos*)
13405  case $host_cpu in
13406  powerpc)
13407    # Since July 2007 AmigaOS4 officially supports .so libraries.
13408    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13409    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13410    ;;
13411  m68k)
13412    library_names_spec='$libname.ixlibrary $libname.a'
13413    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13414    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'
13415    ;;
13416  esac
13417  ;;
13418
13419beos*)
13420  library_names_spec='$libname$shared_ext'
13421  dynamic_linker="$host_os ld.so"
13422  shlibpath_var=LIBRARY_PATH
13423  ;;
13424
13425bsdi[45]*)
13426  version_type=linux # correct to gnu/linux during the next big refactor
13427  need_version=no
13428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429  soname_spec='$libname$release$shared_ext$major'
13430  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13431  shlibpath_var=LD_LIBRARY_PATH
13432  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13433  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13434  # the default ld.so.conf also contains /usr/contrib/lib and
13435  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13436  # libtool to hard-code these into programs
13437  ;;
13438
13439cygwin* | mingw* | pw32* | cegcc*)
13440  version_type=windows
13441  shrext_cmds=.dll
13442  need_version=no
13443  need_lib_prefix=no
13444
13445  case $GCC,$cc_basename in
13446  yes,*)
13447    # gcc
13448    library_names_spec='$libname.dll.a'
13449    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13450    postinstall_cmds='base_file=`basename \$file`~
13451      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13452      dldir=$destdir/`dirname \$dlpath`~
13453      test -d \$dldir || mkdir -p \$dldir~
13454      $install_prog $dir/$dlname \$dldir/$dlname~
13455      chmod a+x \$dldir/$dlname~
13456      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13457        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13458      fi'
13459    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13460      dlpath=$dir/\$dldll~
13461       $RM \$dlpath'
13462    shlibpath_overrides_runpath=yes
13463
13464    case $host_os in
13465    cygwin*)
13466      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13467      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13468
13469      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13470      ;;
13471    mingw* | cegcc*)
13472      # MinGW DLLs use traditional 'lib' prefix
13473      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13474      ;;
13475    pw32*)
13476      # pw32 DLLs use 'pw' prefix rather than 'lib'
13477      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13478      ;;
13479    esac
13480    dynamic_linker='Win32 ld.exe'
13481    ;;
13482
13483  *,cl*)
13484    # Native MSVC
13485    libname_spec='$name'
13486    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13487    library_names_spec='$libname.dll.lib'
13488
13489    case $build_os in
13490    mingw*)
13491      sys_lib_search_path_spec=
13492      lt_save_ifs=$IFS
13493      IFS=';'
13494      for lt_path in $LIB
13495      do
13496        IFS=$lt_save_ifs
13497        # Let DOS variable expansion print the short 8.3 style file name.
13498        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13499        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13500      done
13501      IFS=$lt_save_ifs
13502      # Convert to MSYS style.
13503      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13504      ;;
13505    cygwin*)
13506      # Convert to unix form, then to dos form, then back to unix form
13507      # but this time dos style (no spaces!) so that the unix form looks
13508      # like /cygdrive/c/PROGRA~1:/cygdr...
13509      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13510      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13511      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13512      ;;
13513    *)
13514      sys_lib_search_path_spec=$LIB
13515      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13516        # It is most probably a Windows format PATH.
13517        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13518      else
13519        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13520      fi
13521      # FIXME: find the short name or the path components, as spaces are
13522      # common. (e.g. "Program Files" -> "PROGRA~1")
13523      ;;
13524    esac
13525
13526    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13527    postinstall_cmds='base_file=`basename \$file`~
13528      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13529      dldir=$destdir/`dirname \$dlpath`~
13530      test -d \$dldir || mkdir -p \$dldir~
13531      $install_prog $dir/$dlname \$dldir/$dlname'
13532    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13533      dlpath=$dir/\$dldll~
13534       $RM \$dlpath'
13535    shlibpath_overrides_runpath=yes
13536    dynamic_linker='Win32 link.exe'
13537    ;;
13538
13539  *)
13540    # Assume MSVC wrapper
13541    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13542    dynamic_linker='Win32 ld.exe'
13543    ;;
13544  esac
13545  # FIXME: first we should search . and the directory the executable is in
13546  shlibpath_var=PATH
13547  ;;
13548
13549darwin* | rhapsody*)
13550  dynamic_linker="$host_os dyld"
13551  version_type=darwin
13552  need_lib_prefix=no
13553  need_version=no
13554  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13555  soname_spec='$libname$release$major$shared_ext'
13556  shlibpath_overrides_runpath=yes
13557  shlibpath_var=DYLD_LIBRARY_PATH
13558  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13559
13560  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13561  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13562  ;;
13563
13564dgux*)
13565  version_type=linux # correct to gnu/linux during the next big refactor
13566  need_lib_prefix=no
13567  need_version=no
13568  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13569  soname_spec='$libname$release$shared_ext$major'
13570  shlibpath_var=LD_LIBRARY_PATH
13571  ;;
13572
13573freebsd* | dragonfly*)
13574  # DragonFly does not have aout.  When/if they implement a new
13575  # versioning mechanism, adjust this.
13576  if test -x /usr/bin/objformat; then
13577    objformat=`/usr/bin/objformat`
13578  else
13579    case $host_os in
13580    freebsd[23].*) objformat=aout ;;
13581    *) objformat=elf ;;
13582    esac
13583  fi
13584  version_type=freebsd-$objformat
13585  case $version_type in
13586    freebsd-elf*)
13587      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13588      soname_spec='$libname$release$shared_ext$major'
13589      need_version=no
13590      need_lib_prefix=no
13591      ;;
13592    freebsd-*)
13593      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13594      need_version=yes
13595      ;;
13596  esac
13597  shlibpath_var=LD_LIBRARY_PATH
13598  case $host_os in
13599  freebsd2.*)
13600    shlibpath_overrides_runpath=yes
13601    ;;
13602  freebsd3.[01]* | freebsdelf3.[01]*)
13603    shlibpath_overrides_runpath=yes
13604    hardcode_into_libs=yes
13605    ;;
13606  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13607  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13608    shlibpath_overrides_runpath=no
13609    hardcode_into_libs=yes
13610    ;;
13611  *) # from 4.6 on, and DragonFly
13612    shlibpath_overrides_runpath=yes
13613    hardcode_into_libs=yes
13614    ;;
13615  esac
13616  ;;
13617
13618haiku*)
13619  version_type=linux # correct to gnu/linux during the next big refactor
13620  need_lib_prefix=no
13621  need_version=no
13622  dynamic_linker="$host_os runtime_loader"
13623  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13624  soname_spec='$libname$release$shared_ext$major'
13625  shlibpath_var=LIBRARY_PATH
13626  shlibpath_overrides_runpath=no
13627  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13628  hardcode_into_libs=yes
13629  ;;
13630
13631hpux9* | hpux10* | hpux11*)
13632  # Give a soname corresponding to the major version so that dld.sl refuses to
13633  # link against other versions.
13634  version_type=sunos
13635  need_lib_prefix=no
13636  need_version=no
13637  case $host_cpu in
13638  ia64*)
13639    shrext_cmds='.so'
13640    hardcode_into_libs=yes
13641    dynamic_linker="$host_os dld.so"
13642    shlibpath_var=LD_LIBRARY_PATH
13643    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13644    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13645    soname_spec='$libname$release$shared_ext$major'
13646    if test 32 = "$HPUX_IA64_MODE"; then
13647      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13648      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13649    else
13650      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13651      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13652    fi
13653    ;;
13654  hppa*64*)
13655    shrext_cmds='.sl'
13656    hardcode_into_libs=yes
13657    dynamic_linker="$host_os dld.sl"
13658    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13659    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13660    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13661    soname_spec='$libname$release$shared_ext$major'
13662    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13663    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13664    ;;
13665  *)
13666    shrext_cmds='.sl'
13667    dynamic_linker="$host_os dld.sl"
13668    shlibpath_var=SHLIB_PATH
13669    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13670    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13671    soname_spec='$libname$release$shared_ext$major'
13672    ;;
13673  esac
13674  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13675  postinstall_cmds='chmod 555 $lib'
13676  # or fails outright, so override atomically:
13677  install_override_mode=555
13678  ;;
13679
13680interix[3-9]*)
13681  version_type=linux # correct to gnu/linux during the next big refactor
13682  need_lib_prefix=no
13683  need_version=no
13684  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13685  soname_spec='$libname$release$shared_ext$major'
13686  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13687  shlibpath_var=LD_LIBRARY_PATH
13688  shlibpath_overrides_runpath=no
13689  hardcode_into_libs=yes
13690  ;;
13691
13692irix5* | irix6* | nonstopux*)
13693  case $host_os in
13694    nonstopux*) version_type=nonstopux ;;
13695    *)
13696	if test yes = "$lt_cv_prog_gnu_ld"; then
13697		version_type=linux # correct to gnu/linux during the next big refactor
13698	else
13699		version_type=irix
13700	fi ;;
13701  esac
13702  need_lib_prefix=no
13703  need_version=no
13704  soname_spec='$libname$release$shared_ext$major'
13705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13706  case $host_os in
13707  irix5* | nonstopux*)
13708    libsuff= shlibsuff=
13709    ;;
13710  *)
13711    case $LD in # libtool.m4 will add one of these switches to LD
13712    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13713      libsuff= shlibsuff= libmagic=32-bit;;
13714    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13715      libsuff=32 shlibsuff=N32 libmagic=N32;;
13716    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13717      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13718    *) libsuff= shlibsuff= libmagic=never-match;;
13719    esac
13720    ;;
13721  esac
13722  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13723  shlibpath_overrides_runpath=no
13724  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13725  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13726  hardcode_into_libs=yes
13727  ;;
13728
13729# No shared lib support for Linux oldld, aout, or coff.
13730linux*oldld* | linux*aout* | linux*coff*)
13731  dynamic_linker=no
13732  ;;
13733
13734linux*android*)
13735  version_type=none # Android doesn't support versioned libraries.
13736  need_lib_prefix=no
13737  need_version=no
13738  library_names_spec='$libname$release$shared_ext'
13739  soname_spec='$libname$release$shared_ext'
13740  finish_cmds=
13741  shlibpath_var=LD_LIBRARY_PATH
13742  shlibpath_overrides_runpath=yes
13743
13744  # This implies no fast_install, which is unacceptable.
13745  # Some rework will be needed to allow for fast_install
13746  # before this can be enabled.
13747  hardcode_into_libs=yes
13748
13749  dynamic_linker='Android linker'
13750  # Don't embed -rpath directories since the linker doesn't support them.
13751  hardcode_libdir_flag_spec='-L$libdir'
13752  ;;
13753
13754# This must be glibc/ELF.
13755linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13756  version_type=linux # correct to gnu/linux during the next big refactor
13757  need_lib_prefix=no
13758  need_version=no
13759  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13760  soname_spec='$libname$release$shared_ext$major'
13761  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13762  shlibpath_var=LD_LIBRARY_PATH
13763  shlibpath_overrides_runpath=no
13764
13765  # Some binutils ld are patched to set DT_RUNPATH
13766  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13767  $as_echo_n "(cached) " >&6
13768else
13769  lt_cv_shlibpath_overrides_runpath=no
13770    save_LDFLAGS=$LDFLAGS
13771    save_libdir=$libdir
13772    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13773	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h.  */
13776
13777int
13778main ()
13779{
13780
13781  ;
13782  return 0;
13783}
13784_ACEOF
13785if ac_fn_c_try_link "$LINENO"; then :
13786  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13787  lt_cv_shlibpath_overrides_runpath=yes
13788fi
13789fi
13790rm -f core conftest.err conftest.$ac_objext \
13791    conftest$ac_exeext conftest.$ac_ext
13792    LDFLAGS=$save_LDFLAGS
13793    libdir=$save_libdir
13794
13795fi
13796
13797  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13798
13799  # This implies no fast_install, which is unacceptable.
13800  # Some rework will be needed to allow for fast_install
13801  # before this can be enabled.
13802  hardcode_into_libs=yes
13803
13804  # Ideally, we could use ldconfig to report *all* directores which are
13805  # searched for libraries, however this is still not possible.  Aside from not
13806  # being certain /sbin/ldconfig is available, command
13807  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13808  # even though it is searched at run-time.  Try to do the best guess by
13809  # appending ld.so.conf contents (and includes) to the search path.
13810  if test -f /etc/ld.so.conf; then
13811    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' ' '`
13812    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13813  fi
13814
13815  # We used to test for /lib/ld.so.1 and disable shared libraries on
13816  # powerpc, because MkLinux only supported shared libraries with the
13817  # GNU dynamic linker.  Since this was broken with cross compilers,
13818  # most powerpc-linux boxes support dynamic linking these days and
13819  # people can always --disable-shared, the test was removed, and we
13820  # assume the GNU/Linux dynamic linker is in use.
13821  dynamic_linker='GNU/Linux ld.so'
13822  ;;
13823
13824netbsdelf*-gnu)
13825  version_type=linux
13826  need_lib_prefix=no
13827  need_version=no
13828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13829  soname_spec='${libname}${release}${shared_ext}$major'
13830  shlibpath_var=LD_LIBRARY_PATH
13831  shlibpath_overrides_runpath=no
13832  hardcode_into_libs=yes
13833  dynamic_linker='NetBSD ld.elf_so'
13834  ;;
13835
13836netbsd*)
13837  version_type=sunos
13838  need_lib_prefix=no
13839  need_version=no
13840  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13841    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13842    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13843    dynamic_linker='NetBSD (a.out) ld.so'
13844  else
13845    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13846    soname_spec='$libname$release$shared_ext$major'
13847    dynamic_linker='NetBSD ld.elf_so'
13848  fi
13849  shlibpath_var=LD_LIBRARY_PATH
13850  shlibpath_overrides_runpath=yes
13851  hardcode_into_libs=yes
13852  ;;
13853
13854newsos6)
13855  version_type=linux # correct to gnu/linux during the next big refactor
13856  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13857  shlibpath_var=LD_LIBRARY_PATH
13858  shlibpath_overrides_runpath=yes
13859  ;;
13860
13861*nto* | *qnx*)
13862  version_type=qnx
13863  need_lib_prefix=no
13864  need_version=no
13865  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13866  soname_spec='$libname$release$shared_ext$major'
13867  shlibpath_var=LD_LIBRARY_PATH
13868  shlibpath_overrides_runpath=no
13869  hardcode_into_libs=yes
13870  dynamic_linker='ldqnx.so'
13871  ;;
13872
13873openbsd* | bitrig*)
13874  version_type=sunos
13875  sys_lib_dlsearch_path_spec=/usr/lib
13876  need_lib_prefix=no
13877  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13878    need_version=no
13879  else
13880    need_version=yes
13881  fi
13882  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13883  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13884  shlibpath_var=LD_LIBRARY_PATH
13885  shlibpath_overrides_runpath=yes
13886  ;;
13887
13888os2*)
13889  libname_spec='$name'
13890  version_type=windows
13891  shrext_cmds=.dll
13892  need_version=no
13893  need_lib_prefix=no
13894  # OS/2 can only load a DLL with a base name of 8 characters or less.
13895  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13896    v=$($ECHO $release$versuffix | tr -d .-);
13897    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13898    $ECHO $n$v`$shared_ext'
13899  library_names_spec='${libname}_dll.$libext'
13900  dynamic_linker='OS/2 ld.exe'
13901  shlibpath_var=BEGINLIBPATH
13902  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13903  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13904  postinstall_cmds='base_file=`basename \$file`~
13905    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13906    dldir=$destdir/`dirname \$dlpath`~
13907    test -d \$dldir || mkdir -p \$dldir~
13908    $install_prog $dir/$dlname \$dldir/$dlname~
13909    chmod a+x \$dldir/$dlname~
13910    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13911      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13912    fi'
13913  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13914    dlpath=$dir/\$dldll~
13915    $RM \$dlpath'
13916  ;;
13917
13918osf3* | osf4* | osf5*)
13919  version_type=osf
13920  need_lib_prefix=no
13921  need_version=no
13922  soname_spec='$libname$release$shared_ext$major'
13923  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13924  shlibpath_var=LD_LIBRARY_PATH
13925  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13926  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13927  ;;
13928
13929rdos*)
13930  dynamic_linker=no
13931  ;;
13932
13933solaris*)
13934  version_type=linux # correct to gnu/linux during the next big refactor
13935  need_lib_prefix=no
13936  need_version=no
13937  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13938  soname_spec='$libname$release$shared_ext$major'
13939  shlibpath_var=LD_LIBRARY_PATH
13940  shlibpath_overrides_runpath=yes
13941  hardcode_into_libs=yes
13942  # ldd complains unless libraries are executable
13943  postinstall_cmds='chmod +x $lib'
13944  ;;
13945
13946sunos4*)
13947  version_type=sunos
13948  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13949  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13950  shlibpath_var=LD_LIBRARY_PATH
13951  shlibpath_overrides_runpath=yes
13952  if test yes = "$with_gnu_ld"; then
13953    need_lib_prefix=no
13954  fi
13955  need_version=yes
13956  ;;
13957
13958sysv4 | sysv4.3*)
13959  version_type=linux # correct to gnu/linux during the next big refactor
13960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13961  soname_spec='$libname$release$shared_ext$major'
13962  shlibpath_var=LD_LIBRARY_PATH
13963  case $host_vendor in
13964    sni)
13965      shlibpath_overrides_runpath=no
13966      need_lib_prefix=no
13967      runpath_var=LD_RUN_PATH
13968      ;;
13969    siemens)
13970      need_lib_prefix=no
13971      ;;
13972    motorola)
13973      need_lib_prefix=no
13974      need_version=no
13975      shlibpath_overrides_runpath=no
13976      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13977      ;;
13978  esac
13979  ;;
13980
13981sysv4*MP*)
13982  if test -d /usr/nec; then
13983    version_type=linux # correct to gnu/linux during the next big refactor
13984    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13985    soname_spec='$libname$shared_ext.$major'
13986    shlibpath_var=LD_LIBRARY_PATH
13987  fi
13988  ;;
13989
13990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13991  version_type=sco
13992  need_lib_prefix=no
13993  need_version=no
13994  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13995  soname_spec='$libname$release$shared_ext$major'
13996  shlibpath_var=LD_LIBRARY_PATH
13997  shlibpath_overrides_runpath=yes
13998  hardcode_into_libs=yes
13999  if test yes = "$with_gnu_ld"; then
14000    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14001  else
14002    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14003    case $host_os in
14004      sco3.2v5*)
14005        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14006	;;
14007    esac
14008  fi
14009  sys_lib_dlsearch_path_spec='/usr/lib'
14010  ;;
14011
14012tpf*)
14013  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14014  version_type=linux # correct to gnu/linux during the next big refactor
14015  need_lib_prefix=no
14016  need_version=no
14017  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14018  shlibpath_var=LD_LIBRARY_PATH
14019  shlibpath_overrides_runpath=no
14020  hardcode_into_libs=yes
14021  ;;
14022
14023uts4*)
14024  version_type=linux # correct to gnu/linux during the next big refactor
14025  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14026  soname_spec='$libname$release$shared_ext$major'
14027  shlibpath_var=LD_LIBRARY_PATH
14028  ;;
14029
14030*)
14031  dynamic_linker=no
14032  ;;
14033esac
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14035$as_echo "$dynamic_linker" >&6; }
14036test no = "$dynamic_linker" && can_build_shared=no
14037
14038variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14039if test yes = "$GCC"; then
14040  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14041fi
14042
14043if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14044  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14045fi
14046
14047if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14048  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14049fi
14050
14051# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14052configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14053
14054# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14055func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14056
14057# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14058configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14157$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14158hardcode_action=
14159if test -n "$hardcode_libdir_flag_spec" ||
14160   test -n "$runpath_var" ||
14161   test yes = "$hardcode_automatic"; then
14162
14163  # We can hardcode non-existent directories.
14164  if test no != "$hardcode_direct" &&
14165     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14166     # have to relink, otherwise we might link with an installed library
14167     # when we should be linking with a yet-to-be-installed one
14168     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14169     test no != "$hardcode_minus_L"; then
14170    # Linking always hardcodes the temporary library directory.
14171    hardcode_action=relink
14172  else
14173    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14174    hardcode_action=immediate
14175  fi
14176else
14177  # We cannot hardcode anything, or else we can only hardcode existing
14178  # directories.
14179  hardcode_action=unsupported
14180fi
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14182$as_echo "$hardcode_action" >&6; }
14183
14184if test relink = "$hardcode_action" ||
14185   test yes = "$inherit_rpath"; then
14186  # Fast installation is not supported
14187  enable_fast_install=no
14188elif test yes = "$shlibpath_overrides_runpath" ||
14189     test no = "$enable_shared"; then
14190  # Fast installation is not necessary
14191  enable_fast_install=needless
14192fi
14193
14194
14195
14196
14197
14198
14199  if test yes != "$enable_dlopen"; then
14200  enable_dlopen=unknown
14201  enable_dlopen_self=unknown
14202  enable_dlopen_self_static=unknown
14203else
14204  lt_cv_dlopen=no
14205  lt_cv_dlopen_libs=
14206
14207  case $host_os in
14208  beos*)
14209    lt_cv_dlopen=load_add_on
14210    lt_cv_dlopen_libs=
14211    lt_cv_dlopen_self=yes
14212    ;;
14213
14214  mingw* | pw32* | cegcc*)
14215    lt_cv_dlopen=LoadLibrary
14216    lt_cv_dlopen_libs=
14217    ;;
14218
14219  cygwin*)
14220    lt_cv_dlopen=dlopen
14221    lt_cv_dlopen_libs=
14222    ;;
14223
14224  darwin*)
14225    # if libdl is installed we need to link against it
14226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14227$as_echo_n "checking for dlopen in -ldl... " >&6; }
14228if ${ac_cv_lib_dl_dlopen+:} false; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  ac_check_lib_save_LIBS=$LIBS
14232LIBS="-ldl  $LIBS"
14233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h.  */
14235
14236/* Override any GCC internal prototype to avoid an error.
14237   Use char because int might match the return type of a GCC
14238   builtin and then its argument prototype would still apply.  */
14239#ifdef __cplusplus
14240extern "C"
14241#endif
14242char dlopen ();
14243int
14244main ()
14245{
14246return dlopen ();
14247  ;
14248  return 0;
14249}
14250_ACEOF
14251if ac_fn_c_try_link "$LINENO"; then :
14252  ac_cv_lib_dl_dlopen=yes
14253else
14254  ac_cv_lib_dl_dlopen=no
14255fi
14256rm -f core conftest.err conftest.$ac_objext \
14257    conftest$ac_exeext conftest.$ac_ext
14258LIBS=$ac_check_lib_save_LIBS
14259fi
14260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14261$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14262if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14263  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14264else
14265
14266    lt_cv_dlopen=dyld
14267    lt_cv_dlopen_libs=
14268    lt_cv_dlopen_self=yes
14269
14270fi
14271
14272    ;;
14273
14274  tpf*)
14275    # Don't try to run any link tests for TPF.  We know it's impossible
14276    # because TPF is a cross-compiler, and we know how we open DSOs.
14277    lt_cv_dlopen=dlopen
14278    lt_cv_dlopen_libs=
14279    lt_cv_dlopen_self=no
14280    ;;
14281
14282  *)
14283    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14284if test "x$ac_cv_func_shl_load" = xyes; then :
14285  lt_cv_dlopen=shl_load
14286else
14287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14288$as_echo_n "checking for shl_load in -ldld... " >&6; }
14289if ${ac_cv_lib_dld_shl_load+:} false; then :
14290  $as_echo_n "(cached) " >&6
14291else
14292  ac_check_lib_save_LIBS=$LIBS
14293LIBS="-ldld  $LIBS"
14294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h.  */
14296
14297/* Override any GCC internal prototype to avoid an error.
14298   Use char because int might match the return type of a GCC
14299   builtin and then its argument prototype would still apply.  */
14300#ifdef __cplusplus
14301extern "C"
14302#endif
14303char shl_load ();
14304int
14305main ()
14306{
14307return shl_load ();
14308  ;
14309  return 0;
14310}
14311_ACEOF
14312if ac_fn_c_try_link "$LINENO"; then :
14313  ac_cv_lib_dld_shl_load=yes
14314else
14315  ac_cv_lib_dld_shl_load=no
14316fi
14317rm -f core conftest.err conftest.$ac_objext \
14318    conftest$ac_exeext conftest.$ac_ext
14319LIBS=$ac_check_lib_save_LIBS
14320fi
14321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14322$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14323if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14324  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14325else
14326  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14327if test "x$ac_cv_func_dlopen" = xyes; then :
14328  lt_cv_dlopen=dlopen
14329else
14330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14331$as_echo_n "checking for dlopen in -ldl... " >&6; }
14332if ${ac_cv_lib_dl_dlopen+:} false; then :
14333  $as_echo_n "(cached) " >&6
14334else
14335  ac_check_lib_save_LIBS=$LIBS
14336LIBS="-ldl  $LIBS"
14337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338/* end confdefs.h.  */
14339
14340/* Override any GCC internal prototype to avoid an error.
14341   Use char because int might match the return type of a GCC
14342   builtin and then its argument prototype would still apply.  */
14343#ifdef __cplusplus
14344extern "C"
14345#endif
14346char dlopen ();
14347int
14348main ()
14349{
14350return dlopen ();
14351  ;
14352  return 0;
14353}
14354_ACEOF
14355if ac_fn_c_try_link "$LINENO"; then :
14356  ac_cv_lib_dl_dlopen=yes
14357else
14358  ac_cv_lib_dl_dlopen=no
14359fi
14360rm -f core conftest.err conftest.$ac_objext \
14361    conftest$ac_exeext conftest.$ac_ext
14362LIBS=$ac_check_lib_save_LIBS
14363fi
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14365$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14366if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14367  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14368else
14369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14370$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14371if ${ac_cv_lib_svld_dlopen+:} false; then :
14372  $as_echo_n "(cached) " >&6
14373else
14374  ac_check_lib_save_LIBS=$LIBS
14375LIBS="-lsvld  $LIBS"
14376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h.  */
14378
14379/* Override any GCC internal prototype to avoid an error.
14380   Use char because int might match the return type of a GCC
14381   builtin and then its argument prototype would still apply.  */
14382#ifdef __cplusplus
14383extern "C"
14384#endif
14385char dlopen ();
14386int
14387main ()
14388{
14389return dlopen ();
14390  ;
14391  return 0;
14392}
14393_ACEOF
14394if ac_fn_c_try_link "$LINENO"; then :
14395  ac_cv_lib_svld_dlopen=yes
14396else
14397  ac_cv_lib_svld_dlopen=no
14398fi
14399rm -f core conftest.err conftest.$ac_objext \
14400    conftest$ac_exeext conftest.$ac_ext
14401LIBS=$ac_check_lib_save_LIBS
14402fi
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14404$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14405if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14406  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14407else
14408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14409$as_echo_n "checking for dld_link in -ldld... " >&6; }
14410if ${ac_cv_lib_dld_dld_link+:} false; then :
14411  $as_echo_n "(cached) " >&6
14412else
14413  ac_check_lib_save_LIBS=$LIBS
14414LIBS="-ldld  $LIBS"
14415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h.  */
14417
14418/* Override any GCC internal prototype to avoid an error.
14419   Use char because int might match the return type of a GCC
14420   builtin and then its argument prototype would still apply.  */
14421#ifdef __cplusplus
14422extern "C"
14423#endif
14424char dld_link ();
14425int
14426main ()
14427{
14428return dld_link ();
14429  ;
14430  return 0;
14431}
14432_ACEOF
14433if ac_fn_c_try_link "$LINENO"; then :
14434  ac_cv_lib_dld_dld_link=yes
14435else
14436  ac_cv_lib_dld_dld_link=no
14437fi
14438rm -f core conftest.err conftest.$ac_objext \
14439    conftest$ac_exeext conftest.$ac_ext
14440LIBS=$ac_check_lib_save_LIBS
14441fi
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14443$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14444if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14445  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14446fi
14447
14448
14449fi
14450
14451
14452fi
14453
14454
14455fi
14456
14457
14458fi
14459
14460
14461fi
14462
14463    ;;
14464  esac
14465
14466  if test no = "$lt_cv_dlopen"; then
14467    enable_dlopen=no
14468  else
14469    enable_dlopen=yes
14470  fi
14471
14472  case $lt_cv_dlopen in
14473  dlopen)
14474    save_CPPFLAGS=$CPPFLAGS
14475    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14476
14477    save_LDFLAGS=$LDFLAGS
14478    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14479
14480    save_LIBS=$LIBS
14481    LIBS="$lt_cv_dlopen_libs $LIBS"
14482
14483    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14484$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14485if ${lt_cv_dlopen_self+:} false; then :
14486  $as_echo_n "(cached) " >&6
14487else
14488  	  if test yes = "$cross_compiling"; then :
14489  lt_cv_dlopen_self=cross
14490else
14491  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14492  lt_status=$lt_dlunknown
14493  cat > conftest.$ac_ext <<_LT_EOF
14494#line $LINENO "configure"
14495#include "confdefs.h"
14496
14497#if HAVE_DLFCN_H
14498#include <dlfcn.h>
14499#endif
14500
14501#include <stdio.h>
14502
14503#ifdef RTLD_GLOBAL
14504#  define LT_DLGLOBAL		RTLD_GLOBAL
14505#else
14506#  ifdef DL_GLOBAL
14507#    define LT_DLGLOBAL		DL_GLOBAL
14508#  else
14509#    define LT_DLGLOBAL		0
14510#  endif
14511#endif
14512
14513/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14514   find out it does not work in some platform. */
14515#ifndef LT_DLLAZY_OR_NOW
14516#  ifdef RTLD_LAZY
14517#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14518#  else
14519#    ifdef DL_LAZY
14520#      define LT_DLLAZY_OR_NOW		DL_LAZY
14521#    else
14522#      ifdef RTLD_NOW
14523#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14524#      else
14525#        ifdef DL_NOW
14526#          define LT_DLLAZY_OR_NOW	DL_NOW
14527#        else
14528#          define LT_DLLAZY_OR_NOW	0
14529#        endif
14530#      endif
14531#    endif
14532#  endif
14533#endif
14534
14535/* When -fvisibility=hidden is used, assume the code has been annotated
14536   correspondingly for the symbols needed.  */
14537#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14538int fnord () __attribute__((visibility("default")));
14539#endif
14540
14541int fnord () { return 42; }
14542int main ()
14543{
14544  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14545  int status = $lt_dlunknown;
14546
14547  if (self)
14548    {
14549      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14550      else
14551        {
14552	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14553          else puts (dlerror ());
14554	}
14555      /* dlclose (self); */
14556    }
14557  else
14558    puts (dlerror ());
14559
14560  return status;
14561}
14562_LT_EOF
14563  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14564  (eval $ac_link) 2>&5
14565  ac_status=$?
14566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14567  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14568    (./conftest; exit; ) >&5 2>/dev/null
14569    lt_status=$?
14570    case x$lt_status in
14571      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14572      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14573      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14574    esac
14575  else :
14576    # compilation failed
14577    lt_cv_dlopen_self=no
14578  fi
14579fi
14580rm -fr conftest*
14581
14582
14583fi
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14585$as_echo "$lt_cv_dlopen_self" >&6; }
14586
14587    if test yes = "$lt_cv_dlopen_self"; then
14588      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14589      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14590$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14591if ${lt_cv_dlopen_self_static+:} false; then :
14592  $as_echo_n "(cached) " >&6
14593else
14594  	  if test yes = "$cross_compiling"; then :
14595  lt_cv_dlopen_self_static=cross
14596else
14597  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14598  lt_status=$lt_dlunknown
14599  cat > conftest.$ac_ext <<_LT_EOF
14600#line $LINENO "configure"
14601#include "confdefs.h"
14602
14603#if HAVE_DLFCN_H
14604#include <dlfcn.h>
14605#endif
14606
14607#include <stdio.h>
14608
14609#ifdef RTLD_GLOBAL
14610#  define LT_DLGLOBAL		RTLD_GLOBAL
14611#else
14612#  ifdef DL_GLOBAL
14613#    define LT_DLGLOBAL		DL_GLOBAL
14614#  else
14615#    define LT_DLGLOBAL		0
14616#  endif
14617#endif
14618
14619/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14620   find out it does not work in some platform. */
14621#ifndef LT_DLLAZY_OR_NOW
14622#  ifdef RTLD_LAZY
14623#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14624#  else
14625#    ifdef DL_LAZY
14626#      define LT_DLLAZY_OR_NOW		DL_LAZY
14627#    else
14628#      ifdef RTLD_NOW
14629#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14630#      else
14631#        ifdef DL_NOW
14632#          define LT_DLLAZY_OR_NOW	DL_NOW
14633#        else
14634#          define LT_DLLAZY_OR_NOW	0
14635#        endif
14636#      endif
14637#    endif
14638#  endif
14639#endif
14640
14641/* When -fvisibility=hidden is used, assume the code has been annotated
14642   correspondingly for the symbols needed.  */
14643#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14644int fnord () __attribute__((visibility("default")));
14645#endif
14646
14647int fnord () { return 42; }
14648int main ()
14649{
14650  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14651  int status = $lt_dlunknown;
14652
14653  if (self)
14654    {
14655      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14656      else
14657        {
14658	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14659          else puts (dlerror ());
14660	}
14661      /* dlclose (self); */
14662    }
14663  else
14664    puts (dlerror ());
14665
14666  return status;
14667}
14668_LT_EOF
14669  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14670  (eval $ac_link) 2>&5
14671  ac_status=$?
14672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14674    (./conftest; exit; ) >&5 2>/dev/null
14675    lt_status=$?
14676    case x$lt_status in
14677      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14678      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14679      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14680    esac
14681  else :
14682    # compilation failed
14683    lt_cv_dlopen_self_static=no
14684  fi
14685fi
14686rm -fr conftest*
14687
14688
14689fi
14690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14691$as_echo "$lt_cv_dlopen_self_static" >&6; }
14692    fi
14693
14694    CPPFLAGS=$save_CPPFLAGS
14695    LDFLAGS=$save_LDFLAGS
14696    LIBS=$save_LIBS
14697    ;;
14698  esac
14699
14700  case $lt_cv_dlopen_self in
14701  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14702  *) enable_dlopen_self=unknown ;;
14703  esac
14704
14705  case $lt_cv_dlopen_self_static in
14706  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14707  *) enable_dlopen_self_static=unknown ;;
14708  esac
14709fi
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727striplib=
14728old_striplib=
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14730$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14731if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14732  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14733  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735$as_echo "yes" >&6; }
14736else
14737# FIXME - insert some real tests, host_os isn't really good enough
14738  case $host_os in
14739  darwin*)
14740    if test -n "$STRIP"; then
14741      striplib="$STRIP -x"
14742      old_striplib="$STRIP -S"
14743      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14744$as_echo "yes" >&6; }
14745    else
14746      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747$as_echo "no" >&6; }
14748    fi
14749    ;;
14750  *)
14751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752$as_echo "no" >&6; }
14753    ;;
14754  esac
14755fi
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768  # Report what library types will actually be built
14769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14770$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14772$as_echo "$can_build_shared" >&6; }
14773
14774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14775$as_echo_n "checking whether to build shared libraries... " >&6; }
14776  test no = "$can_build_shared" && enable_shared=no
14777
14778  # On AIX, shared libraries and static libraries use the same namespace, and
14779  # are all built from PIC.
14780  case $host_os in
14781  aix3*)
14782    test yes = "$enable_shared" && enable_static=no
14783    if test -n "$RANLIB"; then
14784      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14785      postinstall_cmds='$RANLIB $lib'
14786    fi
14787    ;;
14788
14789  aix[4-9]*)
14790    if test ia64 != "$host_cpu"; then
14791      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14792      yes,aix,yes) ;;			# shared object as lib.so file only
14793      yes,svr4,*) ;;			# shared object as lib.so archive member only
14794      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14795      esac
14796    fi
14797    ;;
14798  esac
14799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14800$as_echo "$enable_shared" >&6; }
14801
14802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14803$as_echo_n "checking whether to build static libraries... " >&6; }
14804  # Make sure either enable_shared or enable_static is yes.
14805  test yes = "$enable_shared" || enable_static=yes
14806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14807$as_echo "$enable_static" >&6; }
14808
14809
14810
14811
14812fi
14813ac_ext=c
14814ac_cpp='$CPP $CPPFLAGS'
14815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818
14819CC=$lt_save_CC
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835        ac_config_commands="$ac_config_commands libtool"
14836
14837
14838
14839
14840# Only expand once:
14841
14842
14843
14844
14845pkg_failed=no
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBP11" >&5
14847$as_echo_n "checking for LIBP11... " >&6; }
14848
14849if test -n "$LIBP11_CFLAGS"; then
14850    pkg_cv_LIBP11_CFLAGS="$LIBP11_CFLAGS"
14851 elif test -n "$PKG_CONFIG"; then
14852    if test -n "$PKG_CONFIG" && \
14853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libp11 >= 0.2.4\""; } >&5
14854  ($PKG_CONFIG --exists --print-errors "libp11 >= 0.2.4") 2>&5
14855  ac_status=$?
14856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14857  test $ac_status = 0; }; then
14858  pkg_cv_LIBP11_CFLAGS=`$PKG_CONFIG --cflags "libp11 >= 0.2.4" 2>/dev/null`
14859		      test "x$?" != "x0" && pkg_failed=yes
14860else
14861  pkg_failed=yes
14862fi
14863 else
14864    pkg_failed=untried
14865fi
14866if test -n "$LIBP11_LIBS"; then
14867    pkg_cv_LIBP11_LIBS="$LIBP11_LIBS"
14868 elif test -n "$PKG_CONFIG"; then
14869    if test -n "$PKG_CONFIG" && \
14870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libp11 >= 0.2.4\""; } >&5
14871  ($PKG_CONFIG --exists --print-errors "libp11 >= 0.2.4") 2>&5
14872  ac_status=$?
14873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14874  test $ac_status = 0; }; then
14875  pkg_cv_LIBP11_LIBS=`$PKG_CONFIG --libs "libp11 >= 0.2.4" 2>/dev/null`
14876		      test "x$?" != "x0" && pkg_failed=yes
14877else
14878  pkg_failed=yes
14879fi
14880 else
14881    pkg_failed=untried
14882fi
14883
14884
14885
14886if test $pkg_failed = yes; then
14887   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14888$as_echo "no" >&6; }
14889
14890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14891        _pkg_short_errors_supported=yes
14892else
14893        _pkg_short_errors_supported=no
14894fi
14895        if test $_pkg_short_errors_supported = yes; then
14896	        LIBP11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libp11 >= 0.2.4" 2>&1`
14897        else
14898	        LIBP11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libp11 >= 0.2.4" 2>&1`
14899        fi
14900	# Put the nasty error message in config.log where it belongs
14901	echo "$LIBP11_PKG_ERRORS" >&5
14902
14903	as_fn_error $? "libp11 is required" "$LINENO" 5
14904elif test $pkg_failed = untried; then
14905     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906$as_echo "no" >&6; }
14907	as_fn_error $? "libp11 is required" "$LINENO" 5
14908else
14909	LIBP11_CFLAGS=$pkg_cv_LIBP11_CFLAGS
14910	LIBP11_LIBS=$pkg_cv_LIBP11_LIBS
14911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14912$as_echo "yes" >&6; }
14913
14914fi
14915
14916pkg_failed=no
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14918$as_echo_n "checking for OPENSSL... " >&6; }
14919
14920if test -n "$OPENSSL_CFLAGS"; then
14921    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14922 elif test -n "$PKG_CONFIG"; then
14923    if test -n "$PKG_CONFIG" && \
14924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
14925  ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
14926  ac_status=$?
14927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14928  test $ac_status = 0; }; then
14929  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.7" 2>/dev/null`
14930		      test "x$?" != "x0" && pkg_failed=yes
14931else
14932  pkg_failed=yes
14933fi
14934 else
14935    pkg_failed=untried
14936fi
14937if test -n "$OPENSSL_LIBS"; then
14938    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14939 elif test -n "$PKG_CONFIG"; then
14940    if test -n "$PKG_CONFIG" && \
14941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
14942  ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
14943  ac_status=$?
14944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945  test $ac_status = 0; }; then
14946  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.7" 2>/dev/null`
14947		      test "x$?" != "x0" && pkg_failed=yes
14948else
14949  pkg_failed=yes
14950fi
14951 else
14952    pkg_failed=untried
14953fi
14954
14955
14956
14957if test $pkg_failed = yes; then
14958   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14959$as_echo "no" >&6; }
14960
14961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14962        _pkg_short_errors_supported=yes
14963else
14964        _pkg_short_errors_supported=no
14965fi
14966        if test $_pkg_short_errors_supported = yes; then
14967	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
14968        else
14969	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
14970        fi
14971	# Put the nasty error message in config.log where it belongs
14972	echo "$OPENSSL_PKG_ERRORS" >&5
14973
14974
14975pkg_failed=no
14976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14977$as_echo_n "checking for OPENSSL... " >&6; }
14978
14979if test -n "$OPENSSL_CFLAGS"; then
14980    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14981 elif test -n "$PKG_CONFIG"; then
14982    if test -n "$PKG_CONFIG" && \
14983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14984  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14985  ac_status=$?
14986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14987  test $ac_status = 0; }; then
14988  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
14989		      test "x$?" != "x0" && pkg_failed=yes
14990else
14991  pkg_failed=yes
14992fi
14993 else
14994    pkg_failed=untried
14995fi
14996if test -n "$OPENSSL_LIBS"; then
14997    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14998 elif test -n "$PKG_CONFIG"; then
14999    if test -n "$PKG_CONFIG" && \
15000    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
15001  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
15002  ac_status=$?
15003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15004  test $ac_status = 0; }; then
15005  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
15006		      test "x$?" != "x0" && pkg_failed=yes
15007else
15008  pkg_failed=yes
15009fi
15010 else
15011    pkg_failed=untried
15012fi
15013
15014
15015
15016if test $pkg_failed = yes; then
15017   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018$as_echo "no" >&6; }
15019
15020if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15021        _pkg_short_errors_supported=yes
15022else
15023        _pkg_short_errors_supported=no
15024fi
15025        if test $_pkg_short_errors_supported = yes; then
15026	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
15027        else
15028	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
15029        fi
15030	# Put the nasty error message in config.log where it belongs
15031	echo "$OPENSSL_PKG_ERRORS" >&5
15032
15033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
15034$as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
15035if ${ac_cv_lib_crypto_RSA_version+:} false; then :
15036  $as_echo_n "(cached) " >&6
15037else
15038  ac_check_lib_save_LIBS=$LIBS
15039LIBS="-lcrypto  $LIBS"
15040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041/* end confdefs.h.  */
15042
15043/* Override any GCC internal prototype to avoid an error.
15044   Use char because int might match the return type of a GCC
15045   builtin and then its argument prototype would still apply.  */
15046#ifdef __cplusplus
15047extern "C"
15048#endif
15049char RSA_version ();
15050int
15051main ()
15052{
15053return RSA_version ();
15054  ;
15055  return 0;
15056}
15057_ACEOF
15058if ac_fn_c_try_link "$LINENO"; then :
15059  ac_cv_lib_crypto_RSA_version=yes
15060else
15061  ac_cv_lib_crypto_RSA_version=no
15062fi
15063rm -f core conftest.err conftest.$ac_objext \
15064    conftest$ac_exeext conftest.$ac_ext
15065LIBS=$ac_check_lib_save_LIBS
15066fi
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
15068$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
15069if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
15070  OPENSSL_LIBS="-lcrypto"
15071else
15072  as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
15073
15074fi
15075
15076
15077elif test $pkg_failed = untried; then
15078     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079$as_echo "no" >&6; }
15080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
15081$as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
15082if ${ac_cv_lib_crypto_RSA_version+:} false; then :
15083  $as_echo_n "(cached) " >&6
15084else
15085  ac_check_lib_save_LIBS=$LIBS
15086LIBS="-lcrypto  $LIBS"
15087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089
15090/* Override any GCC internal prototype to avoid an error.
15091   Use char because int might match the return type of a GCC
15092   builtin and then its argument prototype would still apply.  */
15093#ifdef __cplusplus
15094extern "C"
15095#endif
15096char RSA_version ();
15097int
15098main ()
15099{
15100return RSA_version ();
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_link "$LINENO"; then :
15106  ac_cv_lib_crypto_RSA_version=yes
15107else
15108  ac_cv_lib_crypto_RSA_version=no
15109fi
15110rm -f core conftest.err conftest.$ac_objext \
15111    conftest$ac_exeext conftest.$ac_ext
15112LIBS=$ac_check_lib_save_LIBS
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
15115$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
15116if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
15117  OPENSSL_LIBS="-lcrypto"
15118else
15119  as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
15120
15121fi
15122
15123
15124else
15125	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15126	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15128$as_echo "yes" >&6; }
15129
15130fi
15131
15132elif test $pkg_failed = untried; then
15133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134$as_echo "no" >&6; }
15135
15136pkg_failed=no
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
15138$as_echo_n "checking for OPENSSL... " >&6; }
15139
15140if test -n "$OPENSSL_CFLAGS"; then
15141    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15142 elif test -n "$PKG_CONFIG"; then
15143    if test -n "$PKG_CONFIG" && \
15144    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
15145  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
15146  ac_status=$?
15147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15148  test $ac_status = 0; }; then
15149  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
15150		      test "x$?" != "x0" && pkg_failed=yes
15151else
15152  pkg_failed=yes
15153fi
15154 else
15155    pkg_failed=untried
15156fi
15157if test -n "$OPENSSL_LIBS"; then
15158    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15159 elif test -n "$PKG_CONFIG"; then
15160    if test -n "$PKG_CONFIG" && \
15161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
15162  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
15163  ac_status=$?
15164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15165  test $ac_status = 0; }; then
15166  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
15167		      test "x$?" != "x0" && pkg_failed=yes
15168else
15169  pkg_failed=yes
15170fi
15171 else
15172    pkg_failed=untried
15173fi
15174
15175
15176
15177if test $pkg_failed = yes; then
15178   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15179$as_echo "no" >&6; }
15180
15181if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15182        _pkg_short_errors_supported=yes
15183else
15184        _pkg_short_errors_supported=no
15185fi
15186        if test $_pkg_short_errors_supported = yes; then
15187	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
15188        else
15189	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
15190        fi
15191	# Put the nasty error message in config.log where it belongs
15192	echo "$OPENSSL_PKG_ERRORS" >&5
15193
15194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
15195$as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
15196if ${ac_cv_lib_crypto_RSA_version+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  ac_check_lib_save_LIBS=$LIBS
15200LIBS="-lcrypto  $LIBS"
15201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202/* end confdefs.h.  */
15203
15204/* Override any GCC internal prototype to avoid an error.
15205   Use char because int might match the return type of a GCC
15206   builtin and then its argument prototype would still apply.  */
15207#ifdef __cplusplus
15208extern "C"
15209#endif
15210char RSA_version ();
15211int
15212main ()
15213{
15214return RSA_version ();
15215  ;
15216  return 0;
15217}
15218_ACEOF
15219if ac_fn_c_try_link "$LINENO"; then :
15220  ac_cv_lib_crypto_RSA_version=yes
15221else
15222  ac_cv_lib_crypto_RSA_version=no
15223fi
15224rm -f core conftest.err conftest.$ac_objext \
15225    conftest$ac_exeext conftest.$ac_ext
15226LIBS=$ac_check_lib_save_LIBS
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
15229$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
15230if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
15231  OPENSSL_LIBS="-lcrypto"
15232else
15233  as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
15234
15235fi
15236
15237
15238elif test $pkg_failed = untried; then
15239     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240$as_echo "no" >&6; }
15241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
15242$as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
15243if ${ac_cv_lib_crypto_RSA_version+:} false; then :
15244  $as_echo_n "(cached) " >&6
15245else
15246  ac_check_lib_save_LIBS=$LIBS
15247LIBS="-lcrypto  $LIBS"
15248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249/* end confdefs.h.  */
15250
15251/* Override any GCC internal prototype to avoid an error.
15252   Use char because int might match the return type of a GCC
15253   builtin and then its argument prototype would still apply.  */
15254#ifdef __cplusplus
15255extern "C"
15256#endif
15257char RSA_version ();
15258int
15259main ()
15260{
15261return RSA_version ();
15262  ;
15263  return 0;
15264}
15265_ACEOF
15266if ac_fn_c_try_link "$LINENO"; then :
15267  ac_cv_lib_crypto_RSA_version=yes
15268else
15269  ac_cv_lib_crypto_RSA_version=no
15270fi
15271rm -f core conftest.err conftest.$ac_objext \
15272    conftest$ac_exeext conftest.$ac_ext
15273LIBS=$ac_check_lib_save_LIBS
15274fi
15275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
15276$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
15277if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
15278  OPENSSL_LIBS="-lcrypto"
15279else
15280  as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
15281
15282fi
15283
15284
15285else
15286	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15287	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15289$as_echo "yes" >&6; }
15290
15291fi
15292
15293else
15294	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15295	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15296        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15297$as_echo "yes" >&6; }
15298
15299fi
15300
15301saved_LIBS="$LIBS"
15302LIBS="$OPENSSL_LIBS $LIBS"
15303for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
15304do :
15305  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15306ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15307if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15308  cat >>confdefs.h <<_ACEOF
15309#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15310_ACEOF
15311
15312fi
15313done
15314
15315LIBS="$saved_LIBS"
15316
15317if test -z "${PAM_LIBS}"; then
15318
15319
15320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
15321$as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
15322if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
15323  $as_echo_n "(cached) " >&6
15324else
15325  ac_check_lib_save_LIBS=$LIBS
15326LIBS="-lpam  $LIBS"
15327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h.  */
15329
15330/* Override any GCC internal prototype to avoid an error.
15331   Use char because int might match the return type of a GCC
15332   builtin and then its argument prototype would still apply.  */
15333#ifdef __cplusplus
15334extern "C"
15335#endif
15336char pam_authenticate ();
15337int
15338main ()
15339{
15340return pam_authenticate ();
15341  ;
15342  return 0;
15343}
15344_ACEOF
15345if ac_fn_c_try_link "$LINENO"; then :
15346  ac_cv_lib_pam_pam_authenticate=yes
15347else
15348  ac_cv_lib_pam_pam_authenticate=no
15349fi
15350rm -f core conftest.err conftest.$ac_objext \
15351    conftest$ac_exeext conftest.$ac_ext
15352LIBS=$ac_check_lib_save_LIBS
15353fi
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
15355$as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
15356if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
15357  PAM_LIBS="-lpam"
15358else
15359  as_fn_error $? "Cannot find pam" "$LINENO" 5
15360
15361fi
15362
15363fi
15364
15365saved_CFLAGS="${CFLAGS}"
15366CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS} ${LIBP11_CFLAGS} ${PAM_CFLAGS}"
15367LIBS="$LIBS ${OPENSSL_LIBS} ${LIBP11_LIBS} ${PAM_LIBS}"
15368
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15370$as_echo_n "checking for ANSI C header files... " >&6; }
15371if ${ac_cv_header_stdc+:} false; then :
15372  $as_echo_n "(cached) " >&6
15373else
15374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376#include <stdlib.h>
15377#include <stdarg.h>
15378#include <string.h>
15379#include <float.h>
15380
15381int
15382main ()
15383{
15384
15385  ;
15386  return 0;
15387}
15388_ACEOF
15389if ac_fn_c_try_compile "$LINENO"; then :
15390  ac_cv_header_stdc=yes
15391else
15392  ac_cv_header_stdc=no
15393fi
15394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395
15396if test $ac_cv_header_stdc = yes; then
15397  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h.  */
15400#include <string.h>
15401
15402_ACEOF
15403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15404  $EGREP "memchr" >/dev/null 2>&1; then :
15405
15406else
15407  ac_cv_header_stdc=no
15408fi
15409rm -f conftest*
15410
15411fi
15412
15413if test $ac_cv_header_stdc = yes; then
15414  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416/* end confdefs.h.  */
15417#include <stdlib.h>
15418
15419_ACEOF
15420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15421  $EGREP "free" >/dev/null 2>&1; then :
15422
15423else
15424  ac_cv_header_stdc=no
15425fi
15426rm -f conftest*
15427
15428fi
15429
15430if test $ac_cv_header_stdc = yes; then
15431  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15432  if test "$cross_compiling" = yes; then :
15433  :
15434else
15435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437#include <ctype.h>
15438#include <stdlib.h>
15439#if ((' ' & 0x0FF) == 0x020)
15440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15442#else
15443# define ISLOWER(c) \
15444		   (('a' <= (c) && (c) <= 'i') \
15445		     || ('j' <= (c) && (c) <= 'r') \
15446		     || ('s' <= (c) && (c) <= 'z'))
15447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15448#endif
15449
15450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15451int
15452main ()
15453{
15454  int i;
15455  for (i = 0; i < 256; i++)
15456    if (XOR (islower (i), ISLOWER (i))
15457	|| toupper (i) != TOUPPER (i))
15458      return 2;
15459  return 0;
15460}
15461_ACEOF
15462if ac_fn_c_try_run "$LINENO"; then :
15463
15464else
15465  ac_cv_header_stdc=no
15466fi
15467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15468  conftest.$ac_objext conftest.beam conftest.$ac_ext
15469fi
15470
15471fi
15472fi
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15474$as_echo "$ac_cv_header_stdc" >&6; }
15475if test $ac_cv_header_stdc = yes; then
15476
15477$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15478
15479fi
15480
15481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15482$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15483if ${ac_cv_header_sys_wait_h+:} false; then :
15484  $as_echo_n "(cached) " >&6
15485else
15486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487/* end confdefs.h.  */
15488#include <sys/types.h>
15489#include <sys/wait.h>
15490#ifndef WEXITSTATUS
15491# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15492#endif
15493#ifndef WIFEXITED
15494# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15495#endif
15496
15497int
15498main ()
15499{
15500  int s;
15501  wait (&s);
15502  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15503  ;
15504  return 0;
15505}
15506_ACEOF
15507if ac_fn_c_try_compile "$LINENO"; then :
15508  ac_cv_header_sys_wait_h=yes
15509else
15510  ac_cv_header_sys_wait_h=no
15511fi
15512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513fi
15514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15515$as_echo "$ac_cv_header_sys_wait_h" >&6; }
15516if test $ac_cv_header_sys_wait_h = yes; then
15517
15518$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15519
15520fi
15521
15522for ac_header in  \
15523	string.h syslog.h fcntl.h unistd.h security/pam_ext.h security/pam_misc.h \
15524
15525do :
15526  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15528if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15529  cat >>confdefs.h <<_ACEOF
15530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15531_ACEOF
15532
15533fi
15534
15535done
15536
15537ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15538if test "x$ac_cv_type_size_t" = xyes; then :
15539
15540else
15541
15542cat >>confdefs.h <<_ACEOF
15543#define size_t unsigned int
15544_ACEOF
15545
15546fi
15547
15548for ac_header in stdlib.h
15549do :
15550  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15551if test "x$ac_cv_header_stdlib_h" = xyes; then :
15552  cat >>confdefs.h <<_ACEOF
15553#define HAVE_STDLIB_H 1
15554_ACEOF
15555
15556fi
15557
15558done
15559
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15561$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15562if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15563  $as_echo_n "(cached) " >&6
15564else
15565  if test "$cross_compiling" = yes; then :
15566  ac_cv_func_malloc_0_nonnull=no
15567else
15568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569/* end confdefs.h.  */
15570#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15571# include <stdlib.h>
15572#else
15573char *malloc ();
15574#endif
15575
15576int
15577main ()
15578{
15579return ! malloc (0);
15580  ;
15581  return 0;
15582}
15583_ACEOF
15584if ac_fn_c_try_run "$LINENO"; then :
15585  ac_cv_func_malloc_0_nonnull=yes
15586else
15587  ac_cv_func_malloc_0_nonnull=no
15588fi
15589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15590  conftest.$ac_objext conftest.beam conftest.$ac_ext
15591fi
15592
15593fi
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15595$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15596if test $ac_cv_func_malloc_0_nonnull = yes; then :
15597
15598$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15599
15600else
15601  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15602
15603   case " $LIBOBJS " in
15604  *" malloc.$ac_objext "* ) ;;
15605  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15606 ;;
15607esac
15608
15609
15610$as_echo "#define malloc rpl_malloc" >>confdefs.h
15611
15612fi
15613
15614
15615for ac_header in stdlib.h
15616do :
15617  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15618if test "x$ac_cv_header_stdlib_h" = xyes; then :
15619  cat >>confdefs.h <<_ACEOF
15620#define HAVE_STDLIB_H 1
15621_ACEOF
15622
15623fi
15624
15625done
15626
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15628$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15629if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15630  $as_echo_n "(cached) " >&6
15631else
15632  if test "$cross_compiling" = yes; then :
15633  ac_cv_func_realloc_0_nonnull=no
15634else
15635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15638# include <stdlib.h>
15639#else
15640char *realloc ();
15641#endif
15642
15643int
15644main ()
15645{
15646return ! realloc (0, 0);
15647  ;
15648  return 0;
15649}
15650_ACEOF
15651if ac_fn_c_try_run "$LINENO"; then :
15652  ac_cv_func_realloc_0_nonnull=yes
15653else
15654  ac_cv_func_realloc_0_nonnull=no
15655fi
15656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15657  conftest.$ac_objext conftest.beam conftest.$ac_ext
15658fi
15659
15660fi
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15662$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15663if test $ac_cv_func_realloc_0_nonnull = yes; then :
15664
15665$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15666
15667else
15668  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15669
15670   case " $LIBOBJS " in
15671  *" realloc.$ac_objext "* ) ;;
15672  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15673 ;;
15674esac
15675
15676
15677$as_echo "#define realloc rpl_realloc" >>confdefs.h
15678
15679fi
15680
15681
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15683$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15684if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
15685  $as_echo_n "(cached) " >&6
15686else
15687  rm -f conftest.sym conftest.file
15688echo >conftest.file
15689if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15690  if test "$cross_compiling" = yes; then :
15691  ac_cv_func_lstat_dereferences_slashed_symlink=no
15692else
15693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h.  */
15695$ac_includes_default
15696int
15697main ()
15698{
15699struct stat sbuf;
15700     /* Linux will dereference the symlink and fail, as required by POSIX.
15701	That is better in the sense that it means we will not
15702	have to compile and use the lstat wrapper.  */
15703     return lstat ("conftest.sym/", &sbuf) == 0;
15704  ;
15705  return 0;
15706}
15707_ACEOF
15708if ac_fn_c_try_run "$LINENO"; then :
15709  ac_cv_func_lstat_dereferences_slashed_symlink=yes
15710else
15711  ac_cv_func_lstat_dereferences_slashed_symlink=no
15712fi
15713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15714  conftest.$ac_objext conftest.beam conftest.$ac_ext
15715fi
15716
15717else
15718  # If the `ln -s' command failed, then we probably don't even
15719  # have an lstat function.
15720  ac_cv_func_lstat_dereferences_slashed_symlink=no
15721fi
15722rm -f conftest.sym conftest.file
15723
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15726$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15727
15728test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15729
15730cat >>confdefs.h <<_ACEOF
15731#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15732_ACEOF
15733
15734
15735if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15736  case " $LIBOBJS " in
15737  *" lstat.$ac_objext "* ) ;;
15738  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15739 ;;
15740esac
15741
15742fi
15743
15744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15745$as_echo_n "checking whether stat accepts an empty string... " >&6; }
15746if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15747  $as_echo_n "(cached) " >&6
15748else
15749  if test "$cross_compiling" = yes; then :
15750  ac_cv_func_stat_empty_string_bug=yes
15751else
15752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753/* end confdefs.h.  */
15754$ac_includes_default
15755int
15756main ()
15757{
15758struct stat sbuf;
15759  return stat ("", &sbuf) == 0;
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764if ac_fn_c_try_run "$LINENO"; then :
15765  ac_cv_func_stat_empty_string_bug=no
15766else
15767  ac_cv_func_stat_empty_string_bug=yes
15768fi
15769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15770  conftest.$ac_objext conftest.beam conftest.$ac_ext
15771fi
15772
15773fi
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
15775$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
15776if test $ac_cv_func_stat_empty_string_bug = yes; then
15777  case " $LIBOBJS " in
15778  *" stat.$ac_objext "* ) ;;
15779  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15780 ;;
15781esac
15782
15783
15784cat >>confdefs.h <<_ACEOF
15785#define HAVE_STAT_EMPTY_STRING_BUG 1
15786_ACEOF
15787
15788fi
15789
15790for ac_func in vprintf
15791do :
15792  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15793if test "x$ac_cv_func_vprintf" = xyes; then :
15794  cat >>confdefs.h <<_ACEOF
15795#define HAVE_VPRINTF 1
15796_ACEOF
15797
15798ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15799if test "x$ac_cv_func__doprnt" = xyes; then :
15800
15801$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15802
15803fi
15804
15805fi
15806done
15807
15808
15809for ac_func in memset strdup strerror PKCS11_enumerate_public_keys PKCS11_is_logged_in pam_vprompt openpam_ttyconv
15810do :
15811  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15813if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15814  cat >>confdefs.h <<_ACEOF
15815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816_ACEOF
15817
15818fi
15819done
15820
15821
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for misc_conv in -lpam_misc" >&5
15823$as_echo_n "checking for misc_conv in -lpam_misc... " >&6; }
15824if ${ac_cv_lib_pam_misc_misc_conv+:} false; then :
15825  $as_echo_n "(cached) " >&6
15826else
15827  ac_check_lib_save_LIBS=$LIBS
15828LIBS="-lpam_misc  $LIBS"
15829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830/* end confdefs.h.  */
15831
15832/* Override any GCC internal prototype to avoid an error.
15833   Use char because int might match the return type of a GCC
15834   builtin and then its argument prototype would still apply.  */
15835#ifdef __cplusplus
15836extern "C"
15837#endif
15838char misc_conv ();
15839int
15840main ()
15841{
15842return misc_conv ();
15843  ;
15844  return 0;
15845}
15846_ACEOF
15847if ac_fn_c_try_link "$LINENO"; then :
15848  ac_cv_lib_pam_misc_misc_conv=yes
15849else
15850  ac_cv_lib_pam_misc_misc_conv=no
15851fi
15852rm -f core conftest.err conftest.$ac_objext \
15853    conftest$ac_exeext conftest.$ac_ext
15854LIBS=$ac_check_lib_save_LIBS
15855fi
15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_misc_conv" >&5
15857$as_echo "$ac_cv_lib_pam_misc_misc_conv" >&6; }
15858if test "x$ac_cv_lib_pam_misc_misc_conv" = xyes; then :
15859  cat >>confdefs.h <<_ACEOF
15860#define HAVE_LIBPAM_MISC 1
15861_ACEOF
15862
15863  LIBS="-lpam_misc $LIBS"
15864
15865fi
15866
15867 if test "$ac_cv_lib_pam_misc_misc_conv" = yes; then
15868  HAVE_PAM_MISC_TRUE=
15869  HAVE_PAM_MISC_FALSE='#'
15870else
15871  HAVE_PAM_MISC_TRUE='#'
15872  HAVE_PAM_MISC_FALSE=
15873fi
15874
15875
15876CFLAGS="${saved_CFLAGS}"
15877LIBS="$saved_LIBS"
15878
15879
15880
15881if test "${enable_pedantic}" = "yes"; then
15882	enable_strict="yes";
15883	CFLAGS="${CFLAGS} -pedantic"
15884fi
15885if test "${enable_strict}" = "yes"; then
15886	CFLAGS="${CFLAGS} -Wall -Wextra -Wno-unused-parameter -Werror"
15887fi
15888
15889ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
15890
15891cat >confcache <<\_ACEOF
15892# This file is a shell script that caches the results of configure
15893# tests run on this system so they can be shared between configure
15894# scripts and configure runs, see configure's option --config-cache.
15895# It is not useful on other systems.  If it contains results you don't
15896# want to keep, you may remove or edit it.
15897#
15898# config.status only pays attention to the cache file if you give it
15899# the --recheck option to rerun configure.
15900#
15901# `ac_cv_env_foo' variables (set or unset) will be overridden when
15902# loading this file, other *unset* `ac_cv_foo' will be assigned the
15903# following values.
15904
15905_ACEOF
15906
15907# The following way of writing the cache mishandles newlines in values,
15908# but we know of no workaround that is simple, portable, and efficient.
15909# So, we kill variables containing newlines.
15910# Ultrix sh set writes to stderr and can't be redirected directly,
15911# and sets the high bit in the cache file unless we assign to the vars.
15912(
15913  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15914    eval ac_val=\$$ac_var
15915    case $ac_val in #(
15916    *${as_nl}*)
15917      case $ac_var in #(
15918      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15919$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15920      esac
15921      case $ac_var in #(
15922      _ | IFS | as_nl) ;; #(
15923      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15924      *) { eval $ac_var=; unset $ac_var;} ;;
15925      esac ;;
15926    esac
15927  done
15928
15929  (set) 2>&1 |
15930    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15931    *${as_nl}ac_space=\ *)
15932      # `set' does not quote correctly, so add quotes: double-quote
15933      # substitution turns \\\\ into \\, and sed turns \\ into \.
15934      sed -n \
15935	"s/'/'\\\\''/g;
15936	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15937      ;; #(
15938    *)
15939      # `set' quotes correctly as required by POSIX, so do not add quotes.
15940      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15941      ;;
15942    esac |
15943    sort
15944) |
15945  sed '
15946     /^ac_cv_env_/b end
15947     t clear
15948     :clear
15949     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15950     t end
15951     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15952     :end' >>confcache
15953if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15954  if test -w "$cache_file"; then
15955    if test "x$cache_file" != "x/dev/null"; then
15956      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15957$as_echo "$as_me: updating cache $cache_file" >&6;}
15958      if test ! -f "$cache_file" || test -h "$cache_file"; then
15959	cat confcache >"$cache_file"
15960      else
15961        case $cache_file in #(
15962        */* | ?:*)
15963	  mv -f confcache "$cache_file"$$ &&
15964	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15965        *)
15966	  mv -f confcache "$cache_file" ;;
15967	esac
15968      fi
15969    fi
15970  else
15971    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15972$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15973  fi
15974fi
15975rm -f confcache
15976
15977test "x$prefix" = xNONE && prefix=$ac_default_prefix
15978# Let make expand exec_prefix.
15979test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15980
15981DEFS=-DHAVE_CONFIG_H
15982
15983ac_libobjs=
15984ac_ltlibobjs=
15985for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15986  # 1. Remove the extension, and $U if already installed.
15987  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15988  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15989  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15990  #    will be set to the directory where LIBOBJS objects are built.
15991  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15992  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15993done
15994LIBOBJS=$ac_libobjs
15995
15996LTLIBOBJS=$ac_ltlibobjs
15997
15998
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16000$as_echo_n "checking that generated files are newer than configure... " >&6; }
16001   if test -n "$am_sleep_pid"; then
16002     # Hide warnings about reused PIDs.
16003     wait $am_sleep_pid 2>/dev/null
16004   fi
16005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16006$as_echo "done" >&6; }
16007 if test -n "$EXEEXT"; then
16008  am__EXEEXT_TRUE=
16009  am__EXEEXT_FALSE='#'
16010else
16011  am__EXEEXT_TRUE='#'
16012  am__EXEEXT_FALSE=
16013fi
16014
16015if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16016  as_fn_error $? "conditional \"AMDEP\" was never defined.
16017Usually this means the macro was only invoked conditionally." "$LINENO" 5
16018fi
16019if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16020  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16021Usually this means the macro was only invoked conditionally." "$LINENO" 5
16022fi
16023
16024if test -z "${HAVE_PAM_MISC_TRUE}" && test -z "${HAVE_PAM_MISC_FALSE}"; then
16025  as_fn_error $? "conditional \"HAVE_PAM_MISC\" was never defined.
16026Usually this means the macro was only invoked conditionally." "$LINENO" 5
16027fi
16028
16029: "${CONFIG_STATUS=./config.status}"
16030ac_write_fail=0
16031ac_clean_files_save=$ac_clean_files
16032ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16034$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16035as_write_fail=0
16036cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16037#! $SHELL
16038# Generated by $as_me.
16039# Run this file to recreate the current configuration.
16040# Compiler output produced by configure, useful for debugging
16041# configure, is in config.log if it exists.
16042
16043debug=false
16044ac_cs_recheck=false
16045ac_cs_silent=false
16046
16047SHELL=\${CONFIG_SHELL-$SHELL}
16048export SHELL
16049_ASEOF
16050cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16051## -------------------- ##
16052## M4sh Initialization. ##
16053## -------------------- ##
16054
16055# Be more Bourne compatible
16056DUALCASE=1; export DUALCASE # for MKS sh
16057if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16058  emulate sh
16059  NULLCMD=:
16060  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16061  # is contrary to our usage.  Disable this feature.
16062  alias -g '${1+"$@"}'='"$@"'
16063  setopt NO_GLOB_SUBST
16064else
16065  case `(set -o) 2>/dev/null` in #(
16066  *posix*) :
16067    set -o posix ;; #(
16068  *) :
16069     ;;
16070esac
16071fi
16072
16073
16074as_nl='
16075'
16076export as_nl
16077# Printing a long string crashes Solaris 7 /usr/bin/printf.
16078as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16079as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16080as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16081# Prefer a ksh shell builtin over an external printf program on Solaris,
16082# but without wasting forks for bash or zsh.
16083if test -z "$BASH_VERSION$ZSH_VERSION" \
16084    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16085  as_echo='print -r --'
16086  as_echo_n='print -rn --'
16087elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16088  as_echo='printf %s\n'
16089  as_echo_n='printf %s'
16090else
16091  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16092    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16093    as_echo_n='/usr/ucb/echo -n'
16094  else
16095    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16096    as_echo_n_body='eval
16097      arg=$1;
16098      case $arg in #(
16099      *"$as_nl"*)
16100	expr "X$arg" : "X\\(.*\\)$as_nl";
16101	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16102      esac;
16103      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16104    '
16105    export as_echo_n_body
16106    as_echo_n='sh -c $as_echo_n_body as_echo'
16107  fi
16108  export as_echo_body
16109  as_echo='sh -c $as_echo_body as_echo'
16110fi
16111
16112# The user is always right.
16113if test "${PATH_SEPARATOR+set}" != set; then
16114  PATH_SEPARATOR=:
16115  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16116    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16117      PATH_SEPARATOR=';'
16118  }
16119fi
16120
16121
16122# IFS
16123# We need space, tab and new line, in precisely that order.  Quoting is
16124# there to prevent editors from complaining about space-tab.
16125# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16126# splitting by setting IFS to empty value.)
16127IFS=" ""	$as_nl"
16128
16129# Find who we are.  Look in the path if we contain no directory separator.
16130as_myself=
16131case $0 in #((
16132  *[\\/]* ) as_myself=$0 ;;
16133  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16134for as_dir in $PATH
16135do
16136  IFS=$as_save_IFS
16137  test -z "$as_dir" && as_dir=.
16138    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16139  done
16140IFS=$as_save_IFS
16141
16142     ;;
16143esac
16144# We did not find ourselves, most probably we were run as `sh COMMAND'
16145# in which case we are not to be found in the path.
16146if test "x$as_myself" = x; then
16147  as_myself=$0
16148fi
16149if test ! -f "$as_myself"; then
16150  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16151  exit 1
16152fi
16153
16154# Unset variables that we do not need and which cause bugs (e.g. in
16155# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16156# suppresses any "Segmentation fault" message there.  '((' could
16157# trigger a bug in pdksh 5.2.14.
16158for as_var in BASH_ENV ENV MAIL MAILPATH
16159do eval test x\${$as_var+set} = xset \
16160  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16161done
16162PS1='$ '
16163PS2='> '
16164PS4='+ '
16165
16166# NLS nuisances.
16167LC_ALL=C
16168export LC_ALL
16169LANGUAGE=C
16170export LANGUAGE
16171
16172# CDPATH.
16173(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16174
16175
16176# as_fn_error STATUS ERROR [LINENO LOG_FD]
16177# ----------------------------------------
16178# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16179# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16180# script with STATUS, using 1 if that was 0.
16181as_fn_error ()
16182{
16183  as_status=$1; test $as_status -eq 0 && as_status=1
16184  if test "$4"; then
16185    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16186    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16187  fi
16188  $as_echo "$as_me: error: $2" >&2
16189  as_fn_exit $as_status
16190} # as_fn_error
16191
16192
16193# as_fn_set_status STATUS
16194# -----------------------
16195# Set $? to STATUS, without forking.
16196as_fn_set_status ()
16197{
16198  return $1
16199} # as_fn_set_status
16200
16201# as_fn_exit STATUS
16202# -----------------
16203# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16204as_fn_exit ()
16205{
16206  set +e
16207  as_fn_set_status $1
16208  exit $1
16209} # as_fn_exit
16210
16211# as_fn_unset VAR
16212# ---------------
16213# Portably unset VAR.
16214as_fn_unset ()
16215{
16216  { eval $1=; unset $1;}
16217}
16218as_unset=as_fn_unset
16219# as_fn_append VAR VALUE
16220# ----------------------
16221# Append the text in VALUE to the end of the definition contained in VAR. Take
16222# advantage of any shell optimizations that allow amortized linear growth over
16223# repeated appends, instead of the typical quadratic growth present in naive
16224# implementations.
16225if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16226  eval 'as_fn_append ()
16227  {
16228    eval $1+=\$2
16229  }'
16230else
16231  as_fn_append ()
16232  {
16233    eval $1=\$$1\$2
16234  }
16235fi # as_fn_append
16236
16237# as_fn_arith ARG...
16238# ------------------
16239# Perform arithmetic evaluation on the ARGs, and store the result in the
16240# global $as_val. Take advantage of shells that can avoid forks. The arguments
16241# must be portable across $(()) and expr.
16242if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16243  eval 'as_fn_arith ()
16244  {
16245    as_val=$(( $* ))
16246  }'
16247else
16248  as_fn_arith ()
16249  {
16250    as_val=`expr "$@" || test $? -eq 1`
16251  }
16252fi # as_fn_arith
16253
16254
16255if expr a : '\(a\)' >/dev/null 2>&1 &&
16256   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16257  as_expr=expr
16258else
16259  as_expr=false
16260fi
16261
16262if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16263  as_basename=basename
16264else
16265  as_basename=false
16266fi
16267
16268if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16269  as_dirname=dirname
16270else
16271  as_dirname=false
16272fi
16273
16274as_me=`$as_basename -- "$0" ||
16275$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16276	 X"$0" : 'X\(//\)$' \| \
16277	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16278$as_echo X/"$0" |
16279    sed '/^.*\/\([^/][^/]*\)\/*$/{
16280	    s//\1/
16281	    q
16282	  }
16283	  /^X\/\(\/\/\)$/{
16284	    s//\1/
16285	    q
16286	  }
16287	  /^X\/\(\/\).*/{
16288	    s//\1/
16289	    q
16290	  }
16291	  s/.*/./; q'`
16292
16293# Avoid depending upon Character Ranges.
16294as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16295as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16296as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16297as_cr_digits='0123456789'
16298as_cr_alnum=$as_cr_Letters$as_cr_digits
16299
16300ECHO_C= ECHO_N= ECHO_T=
16301case `echo -n x` in #(((((
16302-n*)
16303  case `echo 'xy\c'` in
16304  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16305  xy)  ECHO_C='\c';;
16306  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16307       ECHO_T='	';;
16308  esac;;
16309*)
16310  ECHO_N='-n';;
16311esac
16312
16313rm -f conf$$ conf$$.exe conf$$.file
16314if test -d conf$$.dir; then
16315  rm -f conf$$.dir/conf$$.file
16316else
16317  rm -f conf$$.dir
16318  mkdir conf$$.dir 2>/dev/null
16319fi
16320if (echo >conf$$.file) 2>/dev/null; then
16321  if ln -s conf$$.file conf$$ 2>/dev/null; then
16322    as_ln_s='ln -s'
16323    # ... but there are two gotchas:
16324    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16325    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16326    # In both cases, we have to default to `cp -pR'.
16327    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16328      as_ln_s='cp -pR'
16329  elif ln conf$$.file conf$$ 2>/dev/null; then
16330    as_ln_s=ln
16331  else
16332    as_ln_s='cp -pR'
16333  fi
16334else
16335  as_ln_s='cp -pR'
16336fi
16337rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16338rmdir conf$$.dir 2>/dev/null
16339
16340
16341# as_fn_mkdir_p
16342# -------------
16343# Create "$as_dir" as a directory, including parents if necessary.
16344as_fn_mkdir_p ()
16345{
16346
16347  case $as_dir in #(
16348  -*) as_dir=./$as_dir;;
16349  esac
16350  test -d "$as_dir" || eval $as_mkdir_p || {
16351    as_dirs=
16352    while :; do
16353      case $as_dir in #(
16354      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16355      *) as_qdir=$as_dir;;
16356      esac
16357      as_dirs="'$as_qdir' $as_dirs"
16358      as_dir=`$as_dirname -- "$as_dir" ||
16359$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16360	 X"$as_dir" : 'X\(//\)[^/]' \| \
16361	 X"$as_dir" : 'X\(//\)$' \| \
16362	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16363$as_echo X"$as_dir" |
16364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16365	    s//\1/
16366	    q
16367	  }
16368	  /^X\(\/\/\)[^/].*/{
16369	    s//\1/
16370	    q
16371	  }
16372	  /^X\(\/\/\)$/{
16373	    s//\1/
16374	    q
16375	  }
16376	  /^X\(\/\).*/{
16377	    s//\1/
16378	    q
16379	  }
16380	  s/.*/./; q'`
16381      test -d "$as_dir" && break
16382    done
16383    test -z "$as_dirs" || eval "mkdir $as_dirs"
16384  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16385
16386
16387} # as_fn_mkdir_p
16388if mkdir -p . 2>/dev/null; then
16389  as_mkdir_p='mkdir -p "$as_dir"'
16390else
16391  test -d ./-p && rmdir ./-p
16392  as_mkdir_p=false
16393fi
16394
16395
16396# as_fn_executable_p FILE
16397# -----------------------
16398# Test if FILE is an executable regular file.
16399as_fn_executable_p ()
16400{
16401  test -f "$1" && test -x "$1"
16402} # as_fn_executable_p
16403as_test_x='test -x'
16404as_executable_p=as_fn_executable_p
16405
16406# Sed expression to map a string onto a valid CPP name.
16407as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16408
16409# Sed expression to map a string onto a valid variable name.
16410as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16411
16412
16413exec 6>&1
16414## ----------------------------------- ##
16415## Main body of $CONFIG_STATUS script. ##
16416## ----------------------------------- ##
16417_ASEOF
16418test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16419
16420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16421# Save the log message, to keep $0 and so on meaningful, and to
16422# report actual input values of CONFIG_FILES etc. instead of their
16423# values after options handling.
16424ac_log="
16425This file was extended by pam_p11 $as_me 0.3.1, which was
16426generated by GNU Autoconf 2.69.  Invocation command line was
16427
16428  CONFIG_FILES    = $CONFIG_FILES
16429  CONFIG_HEADERS  = $CONFIG_HEADERS
16430  CONFIG_LINKS    = $CONFIG_LINKS
16431  CONFIG_COMMANDS = $CONFIG_COMMANDS
16432  $ $0 $@
16433
16434on `(hostname || uname -n) 2>/dev/null | sed 1q`
16435"
16436
16437_ACEOF
16438
16439case $ac_config_files in *"
16440"*) set x $ac_config_files; shift; ac_config_files=$*;;
16441esac
16442
16443case $ac_config_headers in *"
16444"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16445esac
16446
16447
16448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16449# Files that config.status was made for.
16450config_files="$ac_config_files"
16451config_headers="$ac_config_headers"
16452config_commands="$ac_config_commands"
16453
16454_ACEOF
16455
16456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457ac_cs_usage="\
16458\`$as_me' instantiates files and other configuration actions
16459from templates according to the current configuration.  Unless the files
16460and actions are specified as TAGs, all are instantiated by default.
16461
16462Usage: $0 [OPTION]... [TAG]...
16463
16464  -h, --help       print this help, then exit
16465  -V, --version    print version number and configuration settings, then exit
16466      --config     print configuration, then exit
16467  -q, --quiet, --silent
16468                   do not print progress messages
16469  -d, --debug      don't remove temporary files
16470      --recheck    update $as_me by reconfiguring in the same conditions
16471      --file=FILE[:TEMPLATE]
16472                   instantiate the configuration file FILE
16473      --header=FILE[:TEMPLATE]
16474                   instantiate the configuration header FILE
16475
16476Configuration files:
16477$config_files
16478
16479Configuration headers:
16480$config_headers
16481
16482Configuration commands:
16483$config_commands
16484
16485Report bugs to <https://github.com/OpenSC/pam_p11/issues>."
16486
16487_ACEOF
16488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16490ac_cs_version="\\
16491pam_p11 config.status 0.3.1
16492configured by $0, generated by GNU Autoconf 2.69,
16493  with options \\"\$ac_cs_config\\"
16494
16495Copyright (C) 2012 Free Software Foundation, Inc.
16496This config.status script is free software; the Free Software Foundation
16497gives unlimited permission to copy, distribute and modify it."
16498
16499ac_pwd='$ac_pwd'
16500srcdir='$srcdir'
16501INSTALL='$INSTALL'
16502MKDIR_P='$MKDIR_P'
16503AWK='$AWK'
16504test -n "\$AWK" || AWK=awk
16505_ACEOF
16506
16507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508# The default lists apply if the user does not specify any file.
16509ac_need_defaults=:
16510while test $# != 0
16511do
16512  case $1 in
16513  --*=?*)
16514    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16515    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16516    ac_shift=:
16517    ;;
16518  --*=)
16519    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16520    ac_optarg=
16521    ac_shift=:
16522    ;;
16523  *)
16524    ac_option=$1
16525    ac_optarg=$2
16526    ac_shift=shift
16527    ;;
16528  esac
16529
16530  case $ac_option in
16531  # Handling of the options.
16532  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16533    ac_cs_recheck=: ;;
16534  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16535    $as_echo "$ac_cs_version"; exit ;;
16536  --config | --confi | --conf | --con | --co | --c )
16537    $as_echo "$ac_cs_config"; exit ;;
16538  --debug | --debu | --deb | --de | --d | -d )
16539    debug=: ;;
16540  --file | --fil | --fi | --f )
16541    $ac_shift
16542    case $ac_optarg in
16543    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16544    '') as_fn_error $? "missing file argument" ;;
16545    esac
16546    as_fn_append CONFIG_FILES " '$ac_optarg'"
16547    ac_need_defaults=false;;
16548  --header | --heade | --head | --hea )
16549    $ac_shift
16550    case $ac_optarg in
16551    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16552    esac
16553    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16554    ac_need_defaults=false;;
16555  --he | --h)
16556    # Conflict between --help and --header
16557    as_fn_error $? "ambiguous option: \`$1'
16558Try \`$0 --help' for more information.";;
16559  --help | --hel | -h )
16560    $as_echo "$ac_cs_usage"; exit ;;
16561  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16562  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16563    ac_cs_silent=: ;;
16564
16565  # This is an error.
16566  -*) as_fn_error $? "unrecognized option: \`$1'
16567Try \`$0 --help' for more information." ;;
16568
16569  *) as_fn_append ac_config_targets " $1"
16570     ac_need_defaults=false ;;
16571
16572  esac
16573  shift
16574done
16575
16576ac_configure_extra_args=
16577
16578if $ac_cs_silent; then
16579  exec 6>/dev/null
16580  ac_configure_extra_args="$ac_configure_extra_args --silent"
16581fi
16582
16583_ACEOF
16584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16585if \$ac_cs_recheck; then
16586  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16587  shift
16588  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16589  CONFIG_SHELL='$SHELL'
16590  export CONFIG_SHELL
16591  exec "\$@"
16592fi
16593
16594_ACEOF
16595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596exec 5>>config.log
16597{
16598  echo
16599  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16600## Running $as_me. ##
16601_ASBOX
16602  $as_echo "$ac_log"
16603} >&5
16604
16605_ACEOF
16606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16607#
16608# INIT-COMMANDS
16609#
16610AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16611# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16612    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16613    # from automake < 1.5.
16614    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16615    # Capture the value of LINGUAS because we need it to compute CATALOGS.
16616    LINGUAS="${LINGUAS-%UNSET%}"
16617
16618
16619
16620# The HP-UX ksh and POSIX shell print the target directory to stdout
16621# if CDPATH is set.
16622(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16623
16624sed_quote_subst='$sed_quote_subst'
16625double_quote_subst='$double_quote_subst'
16626delay_variable_subst='$delay_variable_subst'
16627macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16628macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16629enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16630enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16631pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16632enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16633shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16634SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16635ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16636PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16637host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16638host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16639host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16640build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16641build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16642build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16643SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16644Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16645GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16646EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16647FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16648LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16649NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16650LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16651max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16652ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16653exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16654lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16655lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16656lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16657lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16658lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16659reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16660reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16661OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16662deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16663file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16664file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16665want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16666DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16667sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16668AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16669AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16670archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16671STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16672RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16673old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16674old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16675old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16676lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16677CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16678CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16679compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16680GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16681lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16682lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16683lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16684lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16685lt_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"`'
16686lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16687nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16688lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16689lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16690objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16691MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16692lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16693lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16694lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16695lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16696lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16697need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16698MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16699DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16700NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16701LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16702OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16703OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16704libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16705shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16706extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16707archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16708enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16709export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16710whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16711compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16712old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16713old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16714archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16715archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16716module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16717module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16718with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16719allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16720no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16721hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16722hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16723hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16724hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16725hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16726hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16727hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16728inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16729link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16730always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16731export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16732exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16733include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16734prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16735postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16736file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16737variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16738need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16739need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16740version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16741runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16742shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16743shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16744libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16745library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16746soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16747install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16748postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16749postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16750finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16751finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16752hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16753sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16754configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16755configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16756hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16757enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16758enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16759enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16760old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16761striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16762
16763LTCC='$LTCC'
16764LTCFLAGS='$LTCFLAGS'
16765compiler='$compiler_DEFAULT'
16766
16767# A function that is used when there is no print builtin or printf.
16768func_fallback_echo ()
16769{
16770  eval 'cat <<_LTECHO_EOF
16771\$1
16772_LTECHO_EOF'
16773}
16774
16775# Quote evaled strings.
16776for var in SHELL \
16777ECHO \
16778PATH_SEPARATOR \
16779SED \
16780GREP \
16781EGREP \
16782FGREP \
16783LD \
16784NM \
16785LN_S \
16786lt_SP2NL \
16787lt_NL2SP \
16788reload_flag \
16789OBJDUMP \
16790deplibs_check_method \
16791file_magic_cmd \
16792file_magic_glob \
16793want_nocaseglob \
16794DLLTOOL \
16795sharedlib_from_linklib_cmd \
16796AR \
16797AR_FLAGS \
16798archiver_list_spec \
16799STRIP \
16800RANLIB \
16801CC \
16802CFLAGS \
16803compiler \
16804lt_cv_sys_global_symbol_pipe \
16805lt_cv_sys_global_symbol_to_cdecl \
16806lt_cv_sys_global_symbol_to_import \
16807lt_cv_sys_global_symbol_to_c_name_address \
16808lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16809lt_cv_nm_interface \
16810nm_file_list_spec \
16811lt_cv_truncate_bin \
16812lt_prog_compiler_no_builtin_flag \
16813lt_prog_compiler_pic \
16814lt_prog_compiler_wl \
16815lt_prog_compiler_static \
16816lt_cv_prog_compiler_c_o \
16817need_locks \
16818MANIFEST_TOOL \
16819DSYMUTIL \
16820NMEDIT \
16821LIPO \
16822OTOOL \
16823OTOOL64 \
16824shrext_cmds \
16825export_dynamic_flag_spec \
16826whole_archive_flag_spec \
16827compiler_needs_object \
16828with_gnu_ld \
16829allow_undefined_flag \
16830no_undefined_flag \
16831hardcode_libdir_flag_spec \
16832hardcode_libdir_separator \
16833exclude_expsyms \
16834include_expsyms \
16835file_list_spec \
16836variables_saved_for_relink \
16837libname_spec \
16838library_names_spec \
16839soname_spec \
16840install_override_mode \
16841finish_eval \
16842old_striplib \
16843striplib; do
16844    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16845    *[\\\\\\\`\\"\\\$]*)
16846      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16847      ;;
16848    *)
16849      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16850      ;;
16851    esac
16852done
16853
16854# Double-quote double-evaled strings.
16855for var in reload_cmds \
16856old_postinstall_cmds \
16857old_postuninstall_cmds \
16858old_archive_cmds \
16859extract_expsyms_cmds \
16860old_archive_from_new_cmds \
16861old_archive_from_expsyms_cmds \
16862archive_cmds \
16863archive_expsym_cmds \
16864module_cmds \
16865module_expsym_cmds \
16866export_symbols_cmds \
16867prelink_cmds \
16868postlink_cmds \
16869postinstall_cmds \
16870postuninstall_cmds \
16871finish_cmds \
16872sys_lib_search_path_spec \
16873configure_time_dlsearch_path \
16874configure_time_lt_sys_library_path; do
16875    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16876    *[\\\\\\\`\\"\\\$]*)
16877      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16878      ;;
16879    *)
16880      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16881      ;;
16882    esac
16883done
16884
16885ac_aux_dir='$ac_aux_dir'
16886
16887# See if we are running on zsh, and set the options that allow our
16888# commands through without removal of \ escapes INIT.
16889if test -n "\${ZSH_VERSION+set}"; then
16890   setopt NO_GLOB_SUBST
16891fi
16892
16893
16894    PACKAGE='$PACKAGE'
16895    VERSION='$VERSION'
16896    RM='$RM'
16897    ofile='$ofile'
16898
16899
16900
16901
16902_ACEOF
16903
16904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905
16906# Handling of arguments.
16907for ac_config_target in $ac_config_targets
16908do
16909  case $ac_config_target in
16910    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16911    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16912    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16913    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16914    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16915    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16916    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16917
16918  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16919  esac
16920done
16921
16922
16923# If the user did not use the arguments to specify the items to instantiate,
16924# then the envvar interface is used.  Set only those that are not.
16925# We use the long form for the default assignment because of an extremely
16926# bizarre bug on SunOS 4.1.3.
16927if $ac_need_defaults; then
16928  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16929  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16930  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16931fi
16932
16933# Have a temporary directory for convenience.  Make it in the build tree
16934# simply because there is no reason against having it here, and in addition,
16935# creating and moving files from /tmp can sometimes cause problems.
16936# Hook for its removal unless debugging.
16937# Note that there is a small window in which the directory will not be cleaned:
16938# after its creation but before its name has been assigned to `$tmp'.
16939$debug ||
16940{
16941  tmp= ac_tmp=
16942  trap 'exit_status=$?
16943  : "${ac_tmp:=$tmp}"
16944  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16945' 0
16946  trap 'as_fn_exit 1' 1 2 13 15
16947}
16948# Create a (secure) tmp directory for tmp files.
16949
16950{
16951  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16952  test -d "$tmp"
16953}  ||
16954{
16955  tmp=./conf$$-$RANDOM
16956  (umask 077 && mkdir "$tmp")
16957} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16958ac_tmp=$tmp
16959
16960# Set up the scripts for CONFIG_FILES section.
16961# No need to generate them if there are no CONFIG_FILES.
16962# This happens for instance with `./config.status config.h'.
16963if test -n "$CONFIG_FILES"; then
16964
16965
16966ac_cr=`echo X | tr X '\015'`
16967# On cygwin, bash can eat \r inside `` if the user requested igncr.
16968# But we know of no other shell where ac_cr would be empty at this
16969# point, so we can use a bashism as a fallback.
16970if test "x$ac_cr" = x; then
16971  eval ac_cr=\$\'\\r\'
16972fi
16973ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16974if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16975  ac_cs_awk_cr='\\r'
16976else
16977  ac_cs_awk_cr=$ac_cr
16978fi
16979
16980echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16981_ACEOF
16982
16983
16984{
16985  echo "cat >conf$$subs.awk <<_ACEOF" &&
16986  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16987  echo "_ACEOF"
16988} >conf$$subs.sh ||
16989  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16990ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16991ac_delim='%!_!# '
16992for ac_last_try in false false false false false :; do
16993  . ./conf$$subs.sh ||
16994    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16995
16996  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16997  if test $ac_delim_n = $ac_delim_num; then
16998    break
16999  elif $ac_last_try; then
17000    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17001  else
17002    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17003  fi
17004done
17005rm -f conf$$subs.sh
17006
17007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17008cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17009_ACEOF
17010sed -n '
17011h
17012s/^/S["/; s/!.*/"]=/
17013p
17014g
17015s/^[^!]*!//
17016:repl
17017t repl
17018s/'"$ac_delim"'$//
17019t delim
17020:nl
17021h
17022s/\(.\{148\}\)..*/\1/
17023t more1
17024s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17025p
17026n
17027b repl
17028:more1
17029s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17030p
17031g
17032s/.\{148\}//
17033t nl
17034:delim
17035h
17036s/\(.\{148\}\)..*/\1/
17037t more2
17038s/["\\]/\\&/g; s/^/"/; s/$/"/
17039p
17040b
17041:more2
17042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17043p
17044g
17045s/.\{148\}//
17046t delim
17047' <conf$$subs.awk | sed '
17048/^[^""]/{
17049  N
17050  s/\n//
17051}
17052' >>$CONFIG_STATUS || ac_write_fail=1
17053rm -f conf$$subs.awk
17054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055_ACAWK
17056cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17057  for (key in S) S_is_set[key] = 1
17058  FS = ""
17059
17060}
17061{
17062  line = $ 0
17063  nfields = split(line, field, "@")
17064  substed = 0
17065  len = length(field[1])
17066  for (i = 2; i < nfields; i++) {
17067    key = field[i]
17068    keylen = length(key)
17069    if (S_is_set[key]) {
17070      value = S[key]
17071      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17072      len += length(value) + length(field[++i])
17073      substed = 1
17074    } else
17075      len += 1 + keylen
17076  }
17077
17078  print line
17079}
17080
17081_ACAWK
17082_ACEOF
17083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17085  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17086else
17087  cat
17088fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17089  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17090_ACEOF
17091
17092# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17093# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17094# trailing colons and then remove the whole line if VPATH becomes empty
17095# (actually we leave an empty line to preserve line numbers).
17096if test "x$srcdir" = x.; then
17097  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17098h
17099s///
17100s/^/:/
17101s/[	 ]*$/:/
17102s/:\$(srcdir):/:/g
17103s/:\${srcdir}:/:/g
17104s/:@srcdir@:/:/g
17105s/^:*//
17106s/:*$//
17107x
17108s/\(=[	 ]*\).*/\1/
17109G
17110s/\n//
17111s/^[^=]*=[	 ]*$//
17112}'
17113fi
17114
17115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116fi # test -n "$CONFIG_FILES"
17117
17118# Set up the scripts for CONFIG_HEADERS section.
17119# No need to generate them if there are no CONFIG_HEADERS.
17120# This happens for instance with `./config.status Makefile'.
17121if test -n "$CONFIG_HEADERS"; then
17122cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17123BEGIN {
17124_ACEOF
17125
17126# Transform confdefs.h into an awk script `defines.awk', embedded as
17127# here-document in config.status, that substitutes the proper values into
17128# config.h.in to produce config.h.
17129
17130# Create a delimiter string that does not exist in confdefs.h, to ease
17131# handling of long lines.
17132ac_delim='%!_!# '
17133for ac_last_try in false false :; do
17134  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17135  if test -z "$ac_tt"; then
17136    break
17137  elif $ac_last_try; then
17138    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17139  else
17140    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17141  fi
17142done
17143
17144# For the awk script, D is an array of macro values keyed by name,
17145# likewise P contains macro parameters if any.  Preserve backslash
17146# newline sequences.
17147
17148ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17149sed -n '
17150s/.\{148\}/&'"$ac_delim"'/g
17151t rset
17152:rset
17153s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17154t def
17155d
17156:def
17157s/\\$//
17158t bsnl
17159s/["\\]/\\&/g
17160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17161D["\1"]=" \3"/p
17162s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17163d
17164:bsnl
17165s/["\\]/\\&/g
17166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17167D["\1"]=" \3\\\\\\n"\\/p
17168t cont
17169s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17170t cont
17171d
17172:cont
17173n
17174s/.\{148\}/&'"$ac_delim"'/g
17175t clear
17176:clear
17177s/\\$//
17178t bsnlc
17179s/["\\]/\\&/g; s/^/"/; s/$/"/p
17180d
17181:bsnlc
17182s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17183b cont
17184' <confdefs.h | sed '
17185s/'"$ac_delim"'/"\\\
17186"/g' >>$CONFIG_STATUS || ac_write_fail=1
17187
17188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17189  for (key in D) D_is_set[key] = 1
17190  FS = ""
17191}
17192/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17193  line = \$ 0
17194  split(line, arg, " ")
17195  if (arg[1] == "#") {
17196    defundef = arg[2]
17197    mac1 = arg[3]
17198  } else {
17199    defundef = substr(arg[1], 2)
17200    mac1 = arg[2]
17201  }
17202  split(mac1, mac2, "(") #)
17203  macro = mac2[1]
17204  prefix = substr(line, 1, index(line, defundef) - 1)
17205  if (D_is_set[macro]) {
17206    # Preserve the white space surrounding the "#".
17207    print prefix "define", macro P[macro] D[macro]
17208    next
17209  } else {
17210    # Replace #undef with comments.  This is necessary, for example,
17211    # in the case of _POSIX_SOURCE, which is predefined and required
17212    # on some systems where configure will not decide to define it.
17213    if (defundef == "undef") {
17214      print "/*", prefix defundef, macro, "*/"
17215      next
17216    }
17217  }
17218}
17219{ print }
17220_ACAWK
17221_ACEOF
17222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17223  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17224fi # test -n "$CONFIG_HEADERS"
17225
17226
17227eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17228shift
17229for ac_tag
17230do
17231  case $ac_tag in
17232  :[FHLC]) ac_mode=$ac_tag; continue;;
17233  esac
17234  case $ac_mode$ac_tag in
17235  :[FHL]*:*);;
17236  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17237  :[FH]-) ac_tag=-:-;;
17238  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17239  esac
17240  ac_save_IFS=$IFS
17241  IFS=:
17242  set x $ac_tag
17243  IFS=$ac_save_IFS
17244  shift
17245  ac_file=$1
17246  shift
17247
17248  case $ac_mode in
17249  :L) ac_source=$1;;
17250  :[FH])
17251    ac_file_inputs=
17252    for ac_f
17253    do
17254      case $ac_f in
17255      -) ac_f="$ac_tmp/stdin";;
17256      *) # Look for the file first in the build tree, then in the source tree
17257	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17258	 # because $ac_f cannot contain `:'.
17259	 test -f "$ac_f" ||
17260	   case $ac_f in
17261	   [\\/$]*) false;;
17262	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17263	   esac ||
17264	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17265      esac
17266      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17267      as_fn_append ac_file_inputs " '$ac_f'"
17268    done
17269
17270    # Let's still pretend it is `configure' which instantiates (i.e., don't
17271    # use $as_me), people would be surprised to read:
17272    #    /* config.h.  Generated by config.status.  */
17273    configure_input='Generated from '`
17274	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17275	`' by configure.'
17276    if test x"$ac_file" != x-; then
17277      configure_input="$ac_file.  $configure_input"
17278      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17279$as_echo "$as_me: creating $ac_file" >&6;}
17280    fi
17281    # Neutralize special characters interpreted by sed in replacement strings.
17282    case $configure_input in #(
17283    *\&* | *\|* | *\\* )
17284       ac_sed_conf_input=`$as_echo "$configure_input" |
17285       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17286    *) ac_sed_conf_input=$configure_input;;
17287    esac
17288
17289    case $ac_tag in
17290    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17291      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17292    esac
17293    ;;
17294  esac
17295
17296  ac_dir=`$as_dirname -- "$ac_file" ||
17297$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17298	 X"$ac_file" : 'X\(//\)[^/]' \| \
17299	 X"$ac_file" : 'X\(//\)$' \| \
17300	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17301$as_echo X"$ac_file" |
17302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17303	    s//\1/
17304	    q
17305	  }
17306	  /^X\(\/\/\)[^/].*/{
17307	    s//\1/
17308	    q
17309	  }
17310	  /^X\(\/\/\)$/{
17311	    s//\1/
17312	    q
17313	  }
17314	  /^X\(\/\).*/{
17315	    s//\1/
17316	    q
17317	  }
17318	  s/.*/./; q'`
17319  as_dir="$ac_dir"; as_fn_mkdir_p
17320  ac_builddir=.
17321
17322case "$ac_dir" in
17323.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17324*)
17325  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17326  # A ".." for each directory in $ac_dir_suffix.
17327  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17328  case $ac_top_builddir_sub in
17329  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17330  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17331  esac ;;
17332esac
17333ac_abs_top_builddir=$ac_pwd
17334ac_abs_builddir=$ac_pwd$ac_dir_suffix
17335# for backward compatibility:
17336ac_top_builddir=$ac_top_build_prefix
17337
17338case $srcdir in
17339  .)  # We are building in place.
17340    ac_srcdir=.
17341    ac_top_srcdir=$ac_top_builddir_sub
17342    ac_abs_top_srcdir=$ac_pwd ;;
17343  [\\/]* | ?:[\\/]* )  # Absolute name.
17344    ac_srcdir=$srcdir$ac_dir_suffix;
17345    ac_top_srcdir=$srcdir
17346    ac_abs_top_srcdir=$srcdir ;;
17347  *) # Relative name.
17348    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17349    ac_top_srcdir=$ac_top_build_prefix$srcdir
17350    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17351esac
17352ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17353
17354
17355  case $ac_mode in
17356  :F)
17357  #
17358  # CONFIG_FILE
17359  #
17360
17361  case $INSTALL in
17362  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17363  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17364  esac
17365  ac_MKDIR_P=$MKDIR_P
17366  case $MKDIR_P in
17367  [\\/$]* | ?:[\\/]* ) ;;
17368  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17369  esac
17370_ACEOF
17371
17372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17373# If the template does not know about datarootdir, expand it.
17374# FIXME: This hack should be removed a few years after 2.60.
17375ac_datarootdir_hack=; ac_datarootdir_seen=
17376ac_sed_dataroot='
17377/datarootdir/ {
17378  p
17379  q
17380}
17381/@datadir@/p
17382/@docdir@/p
17383/@infodir@/p
17384/@localedir@/p
17385/@mandir@/p'
17386case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17387*datarootdir*) ac_datarootdir_seen=yes;;
17388*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17389  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17390$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17391_ACEOF
17392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17393  ac_datarootdir_hack='
17394  s&@datadir@&$datadir&g
17395  s&@docdir@&$docdir&g
17396  s&@infodir@&$infodir&g
17397  s&@localedir@&$localedir&g
17398  s&@mandir@&$mandir&g
17399  s&\\\${datarootdir}&$datarootdir&g' ;;
17400esac
17401_ACEOF
17402
17403# Neutralize VPATH when `$srcdir' = `.'.
17404# Shell code in configure.ac might set extrasub.
17405# FIXME: do we really want to maintain this feature?
17406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17407ac_sed_extra="$ac_vpsub
17408$extrasub
17409_ACEOF
17410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17411:t
17412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17413s|@configure_input@|$ac_sed_conf_input|;t t
17414s&@top_builddir@&$ac_top_builddir_sub&;t t
17415s&@top_build_prefix@&$ac_top_build_prefix&;t t
17416s&@srcdir@&$ac_srcdir&;t t
17417s&@abs_srcdir@&$ac_abs_srcdir&;t t
17418s&@top_srcdir@&$ac_top_srcdir&;t t
17419s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17420s&@builddir@&$ac_builddir&;t t
17421s&@abs_builddir@&$ac_abs_builddir&;t t
17422s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17423s&@INSTALL@&$ac_INSTALL&;t t
17424s&@MKDIR_P@&$ac_MKDIR_P&;t t
17425$ac_datarootdir_hack
17426"
17427eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17428  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17429
17430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17431  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17432  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17433      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17434  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17435which seems to be undefined.  Please make sure it is defined" >&5
17436$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17437which seems to be undefined.  Please make sure it is defined" >&2;}
17438
17439  rm -f "$ac_tmp/stdin"
17440  case $ac_file in
17441  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17442  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17443  esac \
17444  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17445 ;;
17446  :H)
17447  #
17448  # CONFIG_HEADER
17449  #
17450  if test x"$ac_file" != x-; then
17451    {
17452      $as_echo "/* $configure_input  */" \
17453      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17454    } >"$ac_tmp/config.h" \
17455      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17456    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17457      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17458$as_echo "$as_me: $ac_file is unchanged" >&6;}
17459    else
17460      rm -f "$ac_file"
17461      mv "$ac_tmp/config.h" "$ac_file" \
17462	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17463    fi
17464  else
17465    $as_echo "/* $configure_input  */" \
17466      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17467      || as_fn_error $? "could not create -" "$LINENO" 5
17468  fi
17469# Compute "$ac_file"'s index in $config_headers.
17470_am_arg="$ac_file"
17471_am_stamp_count=1
17472for _am_header in $config_headers :; do
17473  case $_am_header in
17474    $_am_arg | $_am_arg:* )
17475      break ;;
17476    * )
17477      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17478  esac
17479done
17480echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17481$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17483	 X"$_am_arg" : 'X\(//\)$' \| \
17484	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17485$as_echo X"$_am_arg" |
17486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17487	    s//\1/
17488	    q
17489	  }
17490	  /^X\(\/\/\)[^/].*/{
17491	    s//\1/
17492	    q
17493	  }
17494	  /^X\(\/\/\)$/{
17495	    s//\1/
17496	    q
17497	  }
17498	  /^X\(\/\).*/{
17499	    s//\1/
17500	    q
17501	  }
17502	  s/.*/./; q'`/stamp-h$_am_stamp_count
17503 ;;
17504
17505  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17506$as_echo "$as_me: executing $ac_file commands" >&6;}
17507 ;;
17508  esac
17509
17510
17511  case $ac_file$ac_mode in
17512    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17513  # Older Autoconf quotes --file arguments for eval, but not when files
17514  # are listed without --file.  Let's play safe and only enable the eval
17515  # if we detect the quoting.
17516  case $CONFIG_FILES in
17517  *\'*) eval set x "$CONFIG_FILES" ;;
17518  *)   set x $CONFIG_FILES ;;
17519  esac
17520  shift
17521  for mf
17522  do
17523    # Strip MF so we end up with the name of the file.
17524    mf=`echo "$mf" | sed -e 's/:.*$//'`
17525    # Check whether this is an Automake generated Makefile or not.
17526    # We used to match only the files named 'Makefile.in', but
17527    # some people rename them; so instead we look at the file content.
17528    # Grep'ing the first line is not enough: some people post-process
17529    # each Makefile.in and add a new line on top of each file to say so.
17530    # Grep'ing the whole file is not good either: AIX grep has a line
17531    # limit of 2048, but all sed's we know have understand at least 4000.
17532    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17533      dirpart=`$as_dirname -- "$mf" ||
17534$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17535	 X"$mf" : 'X\(//\)[^/]' \| \
17536	 X"$mf" : 'X\(//\)$' \| \
17537	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17538$as_echo X"$mf" |
17539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17540	    s//\1/
17541	    q
17542	  }
17543	  /^X\(\/\/\)[^/].*/{
17544	    s//\1/
17545	    q
17546	  }
17547	  /^X\(\/\/\)$/{
17548	    s//\1/
17549	    q
17550	  }
17551	  /^X\(\/\).*/{
17552	    s//\1/
17553	    q
17554	  }
17555	  s/.*/./; q'`
17556    else
17557      continue
17558    fi
17559    # Extract the definition of DEPDIR, am__include, and am__quote
17560    # from the Makefile without running 'make'.
17561    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17562    test -z "$DEPDIR" && continue
17563    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17564    test -z "$am__include" && continue
17565    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17566    # Find all dependency output files, they are included files with
17567    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17568    # simplest approach to changing $(DEPDIR) to its actual value in the
17569    # expansion.
17570    for file in `sed -n "
17571      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17572	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17573      # Make sure the directory exists.
17574      test -f "$dirpart/$file" && continue
17575      fdir=`$as_dirname -- "$file" ||
17576$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577	 X"$file" : 'X\(//\)[^/]' \| \
17578	 X"$file" : 'X\(//\)$' \| \
17579	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17580$as_echo X"$file" |
17581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17582	    s//\1/
17583	    q
17584	  }
17585	  /^X\(\/\/\)[^/].*/{
17586	    s//\1/
17587	    q
17588	  }
17589	  /^X\(\/\/\)$/{
17590	    s//\1/
17591	    q
17592	  }
17593	  /^X\(\/\).*/{
17594	    s//\1/
17595	    q
17596	  }
17597	  s/.*/./; q'`
17598      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17599      # echo "creating $dirpart/$file"
17600      echo '# dummy' > "$dirpart/$file"
17601    done
17602  done
17603}
17604 ;;
17605    "po-directories":C)
17606    for ac_file in $CONFIG_FILES; do
17607      # Support "outfile[:infile[:infile...]]"
17608      case "$ac_file" in
17609        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17610      esac
17611      # PO directories have a Makefile.in generated from Makefile.in.in.
17612      case "$ac_file" in */Makefile.in)
17613        # Adjust a relative srcdir.
17614        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17615        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17616        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17617        # In autoconf-2.13 it is called $ac_given_srcdir.
17618        # In autoconf-2.50 it is called $srcdir.
17619        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17620        case "$ac_given_srcdir" in
17621          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17622          /*) top_srcdir="$ac_given_srcdir" ;;
17623          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17624        esac
17625        # Treat a directory as a PO directory if and only if it has a
17626        # POTFILES.in file. This allows packages to have multiple PO
17627        # directories under different names or in different locations.
17628        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17629          rm -f "$ac_dir/POTFILES"
17630          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17631          gt_tab=`printf '\t'`
17632          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"
17633          POMAKEFILEDEPS="POTFILES.in"
17634          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17635          # on $ac_dir but don't depend on user-specified configuration
17636          # parameters.
17637          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17638            # The LINGUAS file contains the set of available languages.
17639            if test -n "$OBSOLETE_ALL_LINGUAS"; then
17640              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17641            fi
17642            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17643            # Hide the ALL_LINGUAS assignment from automake < 1.5.
17644            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17645            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17646          else
17647            # The set of available languages was given in configure.in.
17648            # Hide the ALL_LINGUAS assignment from automake < 1.5.
17649            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17650          fi
17651          # Compute POFILES
17652          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17653          # Compute UPDATEPOFILES
17654          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17655          # Compute DUMMYPOFILES
17656          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17657          # Compute GMOFILES
17658          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17659          case "$ac_given_srcdir" in
17660            .) srcdirpre= ;;
17661            *) srcdirpre='$(srcdir)/' ;;
17662          esac
17663          POFILES=
17664          UPDATEPOFILES=
17665          DUMMYPOFILES=
17666          GMOFILES=
17667          for lang in $ALL_LINGUAS; do
17668            POFILES="$POFILES $srcdirpre$lang.po"
17669            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17670            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17671            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17672          done
17673          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17674          # environment variable.
17675          INST_LINGUAS=
17676          if test -n "$ALL_LINGUAS"; then
17677            for presentlang in $ALL_LINGUAS; do
17678              useit=no
17679              if test "%UNSET%" != "$LINGUAS"; then
17680                desiredlanguages="$LINGUAS"
17681              else
17682                desiredlanguages="$ALL_LINGUAS"
17683              fi
17684              for desiredlang in $desiredlanguages; do
17685                # Use the presentlang catalog if desiredlang is
17686                #   a. equal to presentlang, or
17687                #   b. a variant of presentlang (because in this case,
17688                #      presentlang can be used as a fallback for messages
17689                #      which are not translated in the desiredlang catalog).
17690                case "$desiredlang" in
17691                  "$presentlang"*) useit=yes;;
17692                esac
17693              done
17694              if test $useit = yes; then
17695                INST_LINGUAS="$INST_LINGUAS $presentlang"
17696              fi
17697            done
17698          fi
17699          CATALOGS=
17700          if test -n "$INST_LINGUAS"; then
17701            for lang in $INST_LINGUAS; do
17702              CATALOGS="$CATALOGS $lang.gmo"
17703            done
17704          fi
17705          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17706          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"
17707          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17708            if test -f "$f"; then
17709              case "$f" in
17710                *.orig | *.bak | *~) ;;
17711                *) cat "$f" >> "$ac_dir/Makefile" ;;
17712              esac
17713            fi
17714          done
17715        fi
17716        ;;
17717      esac
17718    done ;;
17719    "libtool":C)
17720
17721    # See if we are running on zsh, and set the options that allow our
17722    # commands through without removal of \ escapes.
17723    if test -n "${ZSH_VERSION+set}"; then
17724      setopt NO_GLOB_SUBST
17725    fi
17726
17727    cfgfile=${ofile}T
17728    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17729    $RM "$cfgfile"
17730
17731    cat <<_LT_EOF >> "$cfgfile"
17732#! $SHELL
17733# Generated automatically by $as_me ($PACKAGE) $VERSION
17734# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17735
17736# Provide generalized library-building support services.
17737# Written by Gordon Matzigkeit, 1996
17738
17739# Copyright (C) 2014 Free Software Foundation, Inc.
17740# This is free software; see the source for copying conditions.  There is NO
17741# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17742
17743# GNU Libtool is free software; you can redistribute it and/or modify
17744# it under the terms of the GNU General Public License as published by
17745# the Free Software Foundation; either version 2 of of the License, or
17746# (at your option) any later version.
17747#
17748# As a special exception to the GNU General Public License, if you
17749# distribute this file as part of a program or library that is built
17750# using GNU Libtool, you may include this file under the  same
17751# distribution terms that you use for the rest of that program.
17752#
17753# GNU Libtool is distributed in the hope that it will be useful, but
17754# WITHOUT ANY WARRANTY; without even the implied warranty of
17755# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17756# GNU General Public License for more details.
17757#
17758# You should have received a copy of the GNU General Public License
17759# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17760
17761
17762# The names of the tagged configurations supported by this script.
17763available_tags=''
17764
17765# Configured defaults for sys_lib_dlsearch_path munging.
17766: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17767
17768# ### BEGIN LIBTOOL CONFIG
17769
17770# Which release of libtool.m4 was used?
17771macro_version=$macro_version
17772macro_revision=$macro_revision
17773
17774# Whether or not to build shared libraries.
17775build_libtool_libs=$enable_shared
17776
17777# Whether or not to build static libraries.
17778build_old_libs=$enable_static
17779
17780# What type of objects to build.
17781pic_mode=$pic_mode
17782
17783# Whether or not to optimize for fast installation.
17784fast_install=$enable_fast_install
17785
17786# Shared archive member basename,for filename based shared library versioning on AIX.
17787shared_archive_member_spec=$shared_archive_member_spec
17788
17789# Shell to use when invoking shell scripts.
17790SHELL=$lt_SHELL
17791
17792# An echo program that protects backslashes.
17793ECHO=$lt_ECHO
17794
17795# The PATH separator for the build system.
17796PATH_SEPARATOR=$lt_PATH_SEPARATOR
17797
17798# The host system.
17799host_alias=$host_alias
17800host=$host
17801host_os=$host_os
17802
17803# The build system.
17804build_alias=$build_alias
17805build=$build
17806build_os=$build_os
17807
17808# A sed program that does not truncate output.
17809SED=$lt_SED
17810
17811# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17812Xsed="\$SED -e 1s/^X//"
17813
17814# A grep program that handles long lines.
17815GREP=$lt_GREP
17816
17817# An ERE matcher.
17818EGREP=$lt_EGREP
17819
17820# A literal string matcher.
17821FGREP=$lt_FGREP
17822
17823# A BSD- or MS-compatible name lister.
17824NM=$lt_NM
17825
17826# Whether we need soft or hard links.
17827LN_S=$lt_LN_S
17828
17829# What is the maximum length of a command?
17830max_cmd_len=$max_cmd_len
17831
17832# Object file suffix (normally "o").
17833objext=$ac_objext
17834
17835# Executable file suffix (normally "").
17836exeext=$exeext
17837
17838# whether the shell understands "unset".
17839lt_unset=$lt_unset
17840
17841# turn spaces into newlines.
17842SP2NL=$lt_lt_SP2NL
17843
17844# turn newlines into spaces.
17845NL2SP=$lt_lt_NL2SP
17846
17847# convert \$build file names to \$host format.
17848to_host_file_cmd=$lt_cv_to_host_file_cmd
17849
17850# convert \$build files to toolchain format.
17851to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17852
17853# An object symbol dumper.
17854OBJDUMP=$lt_OBJDUMP
17855
17856# Method to check whether dependent libraries are shared objects.
17857deplibs_check_method=$lt_deplibs_check_method
17858
17859# Command to use when deplibs_check_method = "file_magic".
17860file_magic_cmd=$lt_file_magic_cmd
17861
17862# How to find potential files when deplibs_check_method = "file_magic".
17863file_magic_glob=$lt_file_magic_glob
17864
17865# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17866want_nocaseglob=$lt_want_nocaseglob
17867
17868# DLL creation program.
17869DLLTOOL=$lt_DLLTOOL
17870
17871# Command to associate shared and link libraries.
17872sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17873
17874# The archiver.
17875AR=$lt_AR
17876
17877# Flags to create an archive.
17878AR_FLAGS=$lt_AR_FLAGS
17879
17880# How to feed a file listing to the archiver.
17881archiver_list_spec=$lt_archiver_list_spec
17882
17883# A symbol stripping program.
17884STRIP=$lt_STRIP
17885
17886# Commands used to install an old-style archive.
17887RANLIB=$lt_RANLIB
17888old_postinstall_cmds=$lt_old_postinstall_cmds
17889old_postuninstall_cmds=$lt_old_postuninstall_cmds
17890
17891# Whether to use a lock for old archive extraction.
17892lock_old_archive_extraction=$lock_old_archive_extraction
17893
17894# A C compiler.
17895LTCC=$lt_CC
17896
17897# LTCC compiler flags.
17898LTCFLAGS=$lt_CFLAGS
17899
17900# Take the output of nm and produce a listing of raw symbols and C names.
17901global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17902
17903# Transform the output of nm in a proper C declaration.
17904global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17905
17906# Transform the output of nm into a list of symbols to manually relocate.
17907global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17908
17909# Transform the output of nm in a C name address pair.
17910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17911
17912# Transform the output of nm in a C name address pair when lib prefix is needed.
17913global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17914
17915# The name lister interface.
17916nm_interface=$lt_lt_cv_nm_interface
17917
17918# Specify filename containing input files for \$NM.
17919nm_file_list_spec=$lt_nm_file_list_spec
17920
17921# The root where to search for dependent libraries,and where our libraries should be installed.
17922lt_sysroot=$lt_sysroot
17923
17924# Command to truncate a binary pipe.
17925lt_truncate_bin=$lt_lt_cv_truncate_bin
17926
17927# The name of the directory that contains temporary libtool files.
17928objdir=$objdir
17929
17930# Used to examine libraries when file_magic_cmd begins with "file".
17931MAGIC_CMD=$MAGIC_CMD
17932
17933# Must we lock files when doing compilation?
17934need_locks=$lt_need_locks
17935
17936# Manifest tool.
17937MANIFEST_TOOL=$lt_MANIFEST_TOOL
17938
17939# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17940DSYMUTIL=$lt_DSYMUTIL
17941
17942# Tool to change global to local symbols on Mac OS X.
17943NMEDIT=$lt_NMEDIT
17944
17945# Tool to manipulate fat objects and archives on Mac OS X.
17946LIPO=$lt_LIPO
17947
17948# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17949OTOOL=$lt_OTOOL
17950
17951# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17952OTOOL64=$lt_OTOOL64
17953
17954# Old archive suffix (normally "a").
17955libext=$libext
17956
17957# Shared library suffix (normally ".so").
17958shrext_cmds=$lt_shrext_cmds
17959
17960# The commands to extract the exported symbol list from a shared archive.
17961extract_expsyms_cmds=$lt_extract_expsyms_cmds
17962
17963# Variables whose values should be saved in libtool wrapper scripts and
17964# restored at link time.
17965variables_saved_for_relink=$lt_variables_saved_for_relink
17966
17967# Do we need the "lib" prefix for modules?
17968need_lib_prefix=$need_lib_prefix
17969
17970# Do we need a version for libraries?
17971need_version=$need_version
17972
17973# Library versioning type.
17974version_type=$version_type
17975
17976# Shared library runtime path variable.
17977runpath_var=$runpath_var
17978
17979# Shared library path variable.
17980shlibpath_var=$shlibpath_var
17981
17982# Is shlibpath searched before the hard-coded library search path?
17983shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17984
17985# Format of library name prefix.
17986libname_spec=$lt_libname_spec
17987
17988# List of archive names.  First name is the real one, the rest are links.
17989# The last name is the one that the linker finds with -lNAME
17990library_names_spec=$lt_library_names_spec
17991
17992# The coded name of the library, if different from the real name.
17993soname_spec=$lt_soname_spec
17994
17995# Permission mode override for installation of shared libraries.
17996install_override_mode=$lt_install_override_mode
17997
17998# Command to use after installation of a shared archive.
17999postinstall_cmds=$lt_postinstall_cmds
18000
18001# Command to use after uninstallation of a shared archive.
18002postuninstall_cmds=$lt_postuninstall_cmds
18003
18004# Commands used to finish a libtool library installation in a directory.
18005finish_cmds=$lt_finish_cmds
18006
18007# As "finish_cmds", except a single script fragment to be evaled but
18008# not shown.
18009finish_eval=$lt_finish_eval
18010
18011# Whether we should hardcode library paths into libraries.
18012hardcode_into_libs=$hardcode_into_libs
18013
18014# Compile-time system search path for libraries.
18015sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18016
18017# Detected run-time system search path for libraries.
18018sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18019
18020# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18021configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18022
18023# Whether dlopen is supported.
18024dlopen_support=$enable_dlopen
18025
18026# Whether dlopen of programs is supported.
18027dlopen_self=$enable_dlopen_self
18028
18029# Whether dlopen of statically linked programs is supported.
18030dlopen_self_static=$enable_dlopen_self_static
18031
18032# Commands to strip libraries.
18033old_striplib=$lt_old_striplib
18034striplib=$lt_striplib
18035
18036
18037# The linker used to build libraries.
18038LD=$lt_LD
18039
18040# How to create reloadable object files.
18041reload_flag=$lt_reload_flag
18042reload_cmds=$lt_reload_cmds
18043
18044# Commands used to build an old-style archive.
18045old_archive_cmds=$lt_old_archive_cmds
18046
18047# A language specific compiler.
18048CC=$lt_compiler
18049
18050# Is the compiler the GNU compiler?
18051with_gcc=$GCC
18052
18053# Compiler flag to turn off builtin functions.
18054no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18055
18056# Additional compiler flags for building library objects.
18057pic_flag=$lt_lt_prog_compiler_pic
18058
18059# How to pass a linker flag through the compiler.
18060wl=$lt_lt_prog_compiler_wl
18061
18062# Compiler flag to prevent dynamic linking.
18063link_static_flag=$lt_lt_prog_compiler_static
18064
18065# Does compiler simultaneously support -c and -o options?
18066compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18067
18068# Whether or not to add -lc for building shared libraries.
18069build_libtool_need_lc=$archive_cmds_need_lc
18070
18071# Whether or not to disallow shared libs when runtime libs are static.
18072allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18073
18074# Compiler flag to allow reflexive dlopens.
18075export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18076
18077# Compiler flag to generate shared objects directly from archives.
18078whole_archive_flag_spec=$lt_whole_archive_flag_spec
18079
18080# Whether the compiler copes with passing no objects directly.
18081compiler_needs_object=$lt_compiler_needs_object
18082
18083# Create an old-style archive from a shared archive.
18084old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18085
18086# Create a temporary old-style archive to link instead of a shared archive.
18087old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18088
18089# Commands used to build a shared archive.
18090archive_cmds=$lt_archive_cmds
18091archive_expsym_cmds=$lt_archive_expsym_cmds
18092
18093# Commands used to build a loadable module if different from building
18094# a shared archive.
18095module_cmds=$lt_module_cmds
18096module_expsym_cmds=$lt_module_expsym_cmds
18097
18098# Whether we are building with GNU ld or not.
18099with_gnu_ld=$lt_with_gnu_ld
18100
18101# Flag that allows shared libraries with undefined symbols to be built.
18102allow_undefined_flag=$lt_allow_undefined_flag
18103
18104# Flag that enforces no undefined symbols.
18105no_undefined_flag=$lt_no_undefined_flag
18106
18107# Flag to hardcode \$libdir into a binary during linking.
18108# This must work even if \$libdir does not exist
18109hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18110
18111# Whether we need a single "-rpath" flag with a separated argument.
18112hardcode_libdir_separator=$lt_hardcode_libdir_separator
18113
18114# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18115# DIR into the resulting binary.
18116hardcode_direct=$hardcode_direct
18117
18118# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18119# DIR into the resulting binary and the resulting library dependency is
18120# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18121# library is relocated.
18122hardcode_direct_absolute=$hardcode_direct_absolute
18123
18124# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18125# into the resulting binary.
18126hardcode_minus_L=$hardcode_minus_L
18127
18128# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18129# into the resulting binary.
18130hardcode_shlibpath_var=$hardcode_shlibpath_var
18131
18132# Set to "yes" if building a shared library automatically hardcodes DIR
18133# into the library and all subsequent libraries and executables linked
18134# against it.
18135hardcode_automatic=$hardcode_automatic
18136
18137# Set to yes if linker adds runtime paths of dependent libraries
18138# to runtime path list.
18139inherit_rpath=$inherit_rpath
18140
18141# Whether libtool must link a program against all its dependency libraries.
18142link_all_deplibs=$link_all_deplibs
18143
18144# Set to "yes" if exported symbols are required.
18145always_export_symbols=$always_export_symbols
18146
18147# The commands to list exported symbols.
18148export_symbols_cmds=$lt_export_symbols_cmds
18149
18150# Symbols that should not be listed in the preloaded symbols.
18151exclude_expsyms=$lt_exclude_expsyms
18152
18153# Symbols that must always be exported.
18154include_expsyms=$lt_include_expsyms
18155
18156# Commands necessary for linking programs (against libraries) with templates.
18157prelink_cmds=$lt_prelink_cmds
18158
18159# Commands necessary for finishing linking programs.
18160postlink_cmds=$lt_postlink_cmds
18161
18162# Specify filename containing input files.
18163file_list_spec=$lt_file_list_spec
18164
18165# How to hardcode a shared library path into an executable.
18166hardcode_action=$hardcode_action
18167
18168# ### END LIBTOOL CONFIG
18169
18170_LT_EOF
18171
18172    cat <<'_LT_EOF' >> "$cfgfile"
18173
18174# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18175
18176# func_munge_path_list VARIABLE PATH
18177# -----------------------------------
18178# VARIABLE is name of variable containing _space_ separated list of
18179# directories to be munged by the contents of PATH, which is string
18180# having a format:
18181# "DIR[:DIR]:"
18182#       string "DIR[ DIR]" will be prepended to VARIABLE
18183# ":DIR[:DIR]"
18184#       string "DIR[ DIR]" will be appended to VARIABLE
18185# "DIRP[:DIRP]::[DIRA:]DIRA"
18186#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18187#       "DIRA[ DIRA]" will be appended to VARIABLE
18188# "DIR[:DIR]"
18189#       VARIABLE will be replaced by "DIR[ DIR]"
18190func_munge_path_list ()
18191{
18192    case x$2 in
18193    x)
18194        ;;
18195    *:)
18196        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18197        ;;
18198    x:*)
18199        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18200        ;;
18201    *::*)
18202        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18203        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18204        ;;
18205    *)
18206        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18207        ;;
18208    esac
18209}
18210
18211
18212# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18213func_cc_basename ()
18214{
18215    for cc_temp in $*""; do
18216      case $cc_temp in
18217        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18218        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18219        \-*) ;;
18220        *) break;;
18221      esac
18222    done
18223    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18224}
18225
18226
18227# ### END FUNCTIONS SHARED WITH CONFIGURE
18228
18229_LT_EOF
18230
18231  case $host_os in
18232  aix3*)
18233    cat <<\_LT_EOF >> "$cfgfile"
18234# AIX sometimes has problems with the GCC collect2 program.  For some
18235# reason, if we set the COLLECT_NAMES environment variable, the problems
18236# vanish in a puff of smoke.
18237if test set != "${COLLECT_NAMES+set}"; then
18238  COLLECT_NAMES=
18239  export COLLECT_NAMES
18240fi
18241_LT_EOF
18242    ;;
18243  esac
18244
18245
18246ltmain=$ac_aux_dir/ltmain.sh
18247
18248
18249  # We use sed instead of cat because bash on DJGPP gets confused if
18250  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18251  # text mode, it properly converts lines to CR/LF.  This bash problem
18252  # is reportedly fixed, but why not run on old versions too?
18253  sed '$q' "$ltmain" >> "$cfgfile" \
18254     || (rm -f "$cfgfile"; exit 1)
18255
18256   mv -f "$cfgfile" "$ofile" ||
18257    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18258  chmod +x "$ofile"
18259
18260 ;;
18261
18262  esac
18263done # for ac_tag
18264
18265
18266as_fn_exit 0
18267_ACEOF
18268ac_clean_files=$ac_clean_files_save
18269
18270test $ac_write_fail = 0 ||
18271  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18272
18273
18274# configure is writing to config.log, and then calls config.status.
18275# config.status does its own redirection, appending to config.log.
18276# Unfortunately, on DOS this fails, as config.log is still kept open
18277# by configure, so config.status won't be able to write to it; its
18278# output is simply discarded.  So we exec the FD to /dev/null,
18279# effectively closing config.log, so it can be properly (re)opened and
18280# appended to by config.status.  When coming back to configure, we
18281# need to make the FD available again.
18282if test "$no_create" != yes; then
18283  ac_cs_success=:
18284  ac_config_status_args=
18285  test "$silent" = yes &&
18286    ac_config_status_args="$ac_config_status_args --quiet"
18287  exec 5>/dev/null
18288  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18289  exec 5>>config.log
18290  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18291  # would make configure fail if this is the last instruction.
18292  $ac_cs_success || as_fn_exit 1
18293fi
18294if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18295  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18296$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18297fi
18298
18299
18300cat <<EOF
18301
18302pam_p11 has been configured with the following options:
18303
18304
18305Version:                 ${PACKAGE_VERSION}
18306Libraries:               $(eval eval eval echo "${libdir}")
18307
18308Host:                    ${host}
18309Compiler:                ${CC}
18310Preprocessor flags:      ${CPPFLAGS}
18311Compiler flags:          ${CFLAGS}
18312Linker flags:            ${LDFLAGS}
18313Libraries:               ${LIBS}
18314
18315pamdir                   ${pamdir}
18316
18317PAM_CFLAGS:              ${PAM_CFLAGS}
18318PAM_LIBS:                ${PAM_LIBS}
18319LIBP11_CFLAGS:           ${LIBP11_CFLAGS}
18320LIBP11_LIBS:             ${LIBP11_LIBS}
18321OPENSSL_CFLAGS:          ${OPENSSL_CFLAGS}
18322OPENSSL_LIBS:            ${OPENSSL_LIBS}
18323
18324EOF
18325