xref: /freebsd/contrib/openpam/configure (revision 580744621f33383027108364dcadad718df46ffe)
1#! /bin/sh
2# From configure.ac OpenPAM: configure.ac 947 2019-02-24 20:18:17Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenPAM 20190224.
5#
6# Report bugs to <des@des.no>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='OpenPAM'
592PACKAGE_TARNAME='openpam'
593PACKAGE_VERSION='20190224'
594PACKAGE_STRING='OpenPAM 20190224'
595PACKAGE_BUGREPORT='des@des.no'
596PACKAGE_URL='http://www.openpam.org/'
597
598ac_unique_file="lib/libpam/pam_start.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
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639WITH_TEST_FALSE
640WITH_TEST_TRUE
641HAVE_CRYB_TEST_FALSE
642HAVE_CRYB_TEST_TRUE
643CRYB_TEST_VERSION
644CRYB_TEST_LIBS
645CRYB_TEST_CFLAGS
646SYSTEM_LIBPAM
647DL_LIBS
648WITH_SYSTEM_LIBPAM_FALSE
649WITH_SYSTEM_LIBPAM_TRUE
650WITH_SU_FALSE
651WITH_SU_TRUE
652WITH_PAMTEST_FALSE
653WITH_PAMTEST_TRUE
654WITH_PAM_UNIX_FALSE
655WITH_PAM_UNIX_TRUE
656WITH_DOC_FALSE
657WITH_DOC_TRUE
658CUSTOM_MODULES_DIR_FALSE
659CUSTOM_MODULES_DIR_TRUE
660OPENPAM_MODULES_DIR
661LIB_MAJ
662pkgconfigdir
663PKG_CONFIG_LIBDIR
664PKG_CONFIG_PATH
665PKG_CONFIG
666LT_SYS_LIBRARY_PATH
667OTOOL64
668OTOOL
669LIPO
670NMEDIT
671DSYMUTIL
672MANIFEST_TOOL
673RANLIB
674ac_ct_AR
675AR
676DLLTOOL
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684SED
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693LIBTOOL
694EGREP
695GREP
696CPP
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_static
785enable_shared
786with_pic
787enable_fast_install
788with_aix_soname
789with_gnu_ld
790with_sysroot
791enable_libtool_lock
792with_pkgconfigdir
793enable_debug
794enable_unversioned_modules
795with_modules_dir
796with_doc
797with_pam_unix
798with_pamtest
799with_su
800with_system_libpam
801enable_developer_warnings
802enable_debugging_symbols
803enable_werror
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813CPP
814LT_SYS_LIBRARY_PATH
815PKG_CONFIG
816PKG_CONFIG_PATH
817PKG_CONFIG_LIBDIR
818CRYB_TEST_CFLAGS
819CRYB_TEST_LIBS'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  # Accept the important Cygnus configure options, so we can diagnose typos.
888
889  case $ac_dashdash$ac_option in
890  --)
891    ac_dashdash=yes ;;
892
893  -bindir | --bindir | --bindi | --bind | --bin | --bi)
894    ac_prev=bindir ;;
895  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896    bindir=$ac_optarg ;;
897
898  -build | --build | --buil | --bui | --bu)
899    ac_prev=build_alias ;;
900  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901    build_alias=$ac_optarg ;;
902
903  -cache-file | --cache-file | --cache-fil | --cache-fi \
904  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905    ac_prev=cache_file ;;
906  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908    cache_file=$ac_optarg ;;
909
910  --config-cache | -C)
911    cache_file=config.cache ;;
912
913  -datadir | --datadir | --datadi | --datad)
914    ac_prev=datadir ;;
915  -datadir=* | --datadir=* | --datadi=* | --datad=*)
916    datadir=$ac_optarg ;;
917
918  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919  | --dataroo | --dataro | --datar)
920    ac_prev=datarootdir ;;
921  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923    datarootdir=$ac_optarg ;;
924
925  -disable-* | --disable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=no ;;
940
941  -docdir | --docdir | --docdi | --doc | --do)
942    ac_prev=docdir ;;
943  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944    docdir=$ac_optarg ;;
945
946  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947    ac_prev=dvidir ;;
948  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949    dvidir=$ac_optarg ;;
950
951  -enable-* | --enable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: $ac_useropt"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=\$ac_optarg ;;
966
967  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969  | --exec | --exe | --ex)
970    ac_prev=exec_prefix ;;
971  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973  | --exec=* | --exe=* | --ex=*)
974    exec_prefix=$ac_optarg ;;
975
976  -gas | --gas | --ga | --g)
977    # Obsolete; use --with-gas.
978    with_gas=yes ;;
979
980  -help | --help | --hel | --he | -h)
981    ac_init_help=long ;;
982  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983    ac_init_help=recursive ;;
984  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985    ac_init_help=short ;;
986
987  -host | --host | --hos | --ho)
988    ac_prev=host_alias ;;
989  -host=* | --host=* | --hos=* | --ho=*)
990    host_alias=$ac_optarg ;;
991
992  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993    ac_prev=htmldir ;;
994  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995  | --ht=*)
996    htmldir=$ac_optarg ;;
997
998  -includedir | --includedir | --includedi | --included | --include \
999  | --includ | --inclu | --incl | --inc)
1000    ac_prev=includedir ;;
1001  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002  | --includ=* | --inclu=* | --incl=* | --inc=*)
1003    includedir=$ac_optarg ;;
1004
1005  -infodir | --infodir | --infodi | --infod | --info | --inf)
1006    ac_prev=infodir ;;
1007  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008    infodir=$ac_optarg ;;
1009
1010  -libdir | --libdir | --libdi | --libd)
1011    ac_prev=libdir ;;
1012  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013    libdir=$ac_optarg ;;
1014
1015  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016  | --libexe | --libex | --libe)
1017    ac_prev=libexecdir ;;
1018  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019  | --libexe=* | --libex=* | --libe=*)
1020    libexecdir=$ac_optarg ;;
1021
1022  -localedir | --localedir | --localedi | --localed | --locale)
1023    ac_prev=localedir ;;
1024  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025    localedir=$ac_optarg ;;
1026
1027  -localstatedir | --localstatedir | --localstatedi | --localstated \
1028  | --localstate | --localstat | --localsta | --localst | --locals)
1029    ac_prev=localstatedir ;;
1030  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032    localstatedir=$ac_optarg ;;
1033
1034  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035    ac_prev=mandir ;;
1036  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037    mandir=$ac_optarg ;;
1038
1039  -nfp | --nfp | --nf)
1040    # Obsolete; use --without-fp.
1041    with_fp=no ;;
1042
1043  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044  | --no-cr | --no-c | -n)
1045    no_create=yes ;;
1046
1047  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049    no_recursion=yes ;;
1050
1051  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053  | --oldin | --oldi | --old | --ol | --o)
1054    ac_prev=oldincludedir ;;
1055  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058    oldincludedir=$ac_optarg ;;
1059
1060  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061    ac_prev=prefix ;;
1062  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063    prefix=$ac_optarg ;;
1064
1065  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066  | --program-pre | --program-pr | --program-p)
1067    ac_prev=program_prefix ;;
1068  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070    program_prefix=$ac_optarg ;;
1071
1072  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073  | --program-suf | --program-su | --program-s)
1074    ac_prev=program_suffix ;;
1075  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077    program_suffix=$ac_optarg ;;
1078
1079  -program-transform-name | --program-transform-name \
1080  | --program-transform-nam | --program-transform-na \
1081  | --program-transform-n | --program-transform- \
1082  | --program-transform | --program-transfor \
1083  | --program-transfo | --program-transf \
1084  | --program-trans | --program-tran \
1085  | --progr-tra | --program-tr | --program-t)
1086    ac_prev=program_transform_name ;;
1087  -program-transform-name=* | --program-transform-name=* \
1088  | --program-transform-nam=* | --program-transform-na=* \
1089  | --program-transform-n=* | --program-transform-=* \
1090  | --program-transform=* | --program-transfor=* \
1091  | --program-transfo=* | --program-transf=* \
1092  | --program-trans=* | --program-tran=* \
1093  | --progr-tra=* | --program-tr=* | --program-t=*)
1094    program_transform_name=$ac_optarg ;;
1095
1096  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097    ac_prev=pdfdir ;;
1098  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099    pdfdir=$ac_optarg ;;
1100
1101  -psdir | --psdir | --psdi | --psd | --ps)
1102    ac_prev=psdir ;;
1103  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104    psdir=$ac_optarg ;;
1105
1106  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107  | -silent | --silent | --silen | --sile | --sil)
1108    silent=yes ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures OpenPAM 20190224 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1409  --htmldir=DIR           html documentation [DOCDIR]
1410  --dvidir=DIR            dvi documentation [DOCDIR]
1411  --pdfdir=DIR            pdf documentation [DOCDIR]
1412  --psdir=DIR             ps documentation [DOCDIR]
1413_ACEOF
1414
1415  cat <<\_ACEOF
1416
1417Program names:
1418  --program-prefix=PREFIX            prepend PREFIX to installed program names
1419  --program-suffix=SUFFIX            append SUFFIX to installed program names
1420  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422System types:
1423  --build=BUILD     configure for building on BUILD [guessed]
1424  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429  case $ac_init_help in
1430     short | recursive ) echo "Configuration of OpenPAM 20190224:";;
1431   esac
1432  cat <<\_ACEOF
1433
1434Optional Features:
1435  --disable-option-checking  ignore unrecognized --enable/--with options
1436  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438  --enable-silent-rules   less verbose build output (undo: "make V=1")
1439  --disable-silent-rules  verbose build output (undo: "make V=0")
1440  --enable-dependency-tracking
1441                          do not reject slow dependency extractors
1442  --disable-dependency-tracking
1443                          speeds up one-time build
1444  --enable-static[=PKGS]  build static libraries [default=no]
1445  --enable-shared[=PKGS]  build shared libraries [default=yes]
1446  --enable-fast-install[=PKGS]
1447                          optimize for fast installation [default=yes]
1448  --disable-libtool-lock  avoid locking (might break parallel builds)
1449  --enable-debug          turn debugging macros on
1450  --disable-unversioned-modules
1451                          support loading of unversioned modules
1452  --enable-developer-warnings
1453                          enable strict warnings (default is NO)
1454  --enable-debugging-symbols
1455                          enable debugging symbols (default is NO)
1456  --enable-werror         use -Werror (default is NO)
1457
1458Optional Packages:
1459  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                          both]
1463  --with-aix-soname=aix|svr4|both
1464                          shared library versioning (aka "SONAME") variant to
1465                          provide on AIX, [default=aix].
1466  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1468                          compiler's sysroot if not specified).
1469  --with-pkgconfigdir     installation directory for .pc files
1470                          [LIBDIR/pkgconfig]
1471  --with-modules-dir=DIR  OpenPAM modules directory
1472  --without-doc           do not build documentation
1473  --with-pam-unix         build sample pam_unix(8) module
1474  --with-pamtest          build test application
1475  --with-su               build sample su(1) implementation
1476  --with-system-libpam    use system libpam
1477
1478Some influential environment variables:
1479  CC          C compiler command
1480  CFLAGS      C compiler flags
1481  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482              nonstandard directory <lib dir>
1483  LIBS        libraries to pass to the linker, e.g. -l<library>
1484  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485              you have headers in a nonstandard directory <include dir>
1486  CPP         C preprocessor
1487  LT_SYS_LIBRARY_PATH
1488              User-defined run-time library search path.
1489  PKG_CONFIG  path to pkg-config binary
1490  PKG_CONFIG_PATH
1491              list of directories to prepend to default search path
1492  PKG_CONFIG_LIBDIR
1493              list of directories to search instead of default search path
1494  CRYB_TEST_CFLAGS
1495              C compiler flags for cryb-test
1496  CRYB_TEST_LIBS
1497              linker flags for cryb-test
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to <des@des.no>.
1503OpenPAM home page: <http://www.openpam.org/>.
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509  # If there are subdirs, report their specific --help.
1510  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511    test -d "$ac_dir" ||
1512      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513      continue
1514    ac_builddir=.
1515
1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
1519  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520  # A ".." for each directory in $ac_dir_suffix.
1521  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522  case $ac_top_builddir_sub in
1523  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525  esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
1531
1532case $srcdir in
1533  .)  # We are building in place.
1534    ac_srcdir=.
1535    ac_top_srcdir=$ac_top_builddir_sub
1536    ac_abs_top_srcdir=$ac_pwd ;;
1537  [\\/]* | ?:[\\/]* )  # Absolute name.
1538    ac_srcdir=$srcdir$ac_dir_suffix;
1539    ac_top_srcdir=$srcdir
1540    ac_abs_top_srcdir=$srcdir ;;
1541  *) # Relative name.
1542    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543    ac_top_srcdir=$ac_top_build_prefix$srcdir
1544    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545esac
1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548    cd "$ac_dir" || { ac_status=$?; continue; }
1549    # Check for guested configure.
1550    if test -f "$ac_srcdir/configure.gnu"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553    elif test -f "$ac_srcdir/configure"; then
1554      echo &&
1555      $SHELL "$ac_srcdir/configure" --help=recursive
1556    else
1557      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558    fi || ac_status=$?
1559    cd "$ac_pwd" || { ac_status=$?; break; }
1560  done
1561fi
1562
1563test -n "$ac_init_help" && exit $ac_status
1564if $ac_init_version; then
1565  cat <<\_ACEOF
1566OpenPAM configure 20190224
1567generated by GNU Autoconf 2.69
1568
1569Copyright (C) 2012 Free Software Foundation, Inc.
1570This configure script is free software; the Free Software Foundation
1571gives unlimited permission to copy, distribute and modify it.
1572_ACEOF
1573  exit
1574fi
1575
1576## ------------------------ ##
1577## Autoconf initialization. ##
1578## ------------------------ ##
1579
1580# ac_fn_c_try_compile LINENO
1581# --------------------------
1582# Try to compile conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_compile ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  rm -f conftest.$ac_objext
1587  if { { ac_try="$ac_compile"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_compile") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && {
1603	 test -z "$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       } && test -s conftest.$ac_objext; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_compile
1617
1618# ac_fn_c_try_cpp LINENO
1619# ----------------------
1620# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_cpp ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if { { ac_try="$ac_cpp conftest.$ac_ext"
1625case "(($ac_try" in
1626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627  *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632  ac_status=$?
1633  if test -s conftest.err; then
1634    grep -v '^ *+' conftest.err >conftest.er1
1635    cat conftest.er1 >&5
1636    mv -f conftest.er1 conftest.err
1637  fi
1638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; } > conftest.i && {
1640	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641	 test ! -s conftest.err
1642       }; then :
1643  ac_retval=0
1644else
1645  $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648    ac_retval=1
1649fi
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_cpp
1654
1655# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1658# the include files in INCLUDES and setting the cache variable VAR
1659# accordingly.
1660ac_fn_c_check_header_mongrel ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if eval \${$3+:} false; then :
1664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if eval \${$3+:} false; then :
1667  $as_echo_n "(cached) " >&6
1668fi
1669eval ac_res=\$$3
1670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672else
1673  # Is the header compilable?
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1675$as_echo_n "checking $2 usability... " >&6; }
1676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  ac_header_compiler=yes
1683else
1684  ac_header_compiler=no
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1688$as_echo "$ac_header_compiler" >&6; }
1689
1690# Is the header present?
1691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1692$as_echo_n "checking $2 presence... " >&6; }
1693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h.  */
1695#include <$2>
1696_ACEOF
1697if ac_fn_c_try_cpp "$LINENO"; then :
1698  ac_header_preproc=yes
1699else
1700  ac_header_preproc=no
1701fi
1702rm -f conftest.err conftest.i conftest.$ac_ext
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1704$as_echo "$ac_header_preproc" >&6; }
1705
1706# So?  What about this header?
1707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1708  yes:no: )
1709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1710$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1712$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713    ;;
1714  no:yes:* )
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1716$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1718$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1720$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1722$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725( $as_echo "## ------------------------- ##
1726## Report this to des@des.no ##
1727## ------------------------- ##"
1728     ) | sed "s/^/$as_me: WARNING:     /" >&2
1729    ;;
1730esac
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  eval "$3=\$ac_header_compiler"
1737fi
1738eval ac_res=\$$3
1739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741fi
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_mongrel
1745
1746# ac_fn_c_try_run LINENO
1747# ----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749# that executables *can* be run.
1750ac_fn_c_try_run ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_link") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764  { { case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770  (eval "$ac_try") 2>&5
1771  ac_status=$?
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; }; }; then :
1774  ac_retval=0
1775else
1776  $as_echo "$as_me: program exited with status $ac_status" >&5
1777       $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780       ac_retval=$ac_status
1781fi
1782  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_run
1787
1788# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists and can be compiled using the include files in
1791# INCLUDES, setting the cache variable VAR accordingly.
1792ac_fn_c_check_header_compile ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
1797if eval \${$3+:} false; then :
1798  $as_echo_n "(cached) " >&6
1799else
1800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806  eval "$3=yes"
1807else
1808  eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817} # ac_fn_c_check_header_compile
1818
1819# ac_fn_c_try_link LINENO
1820# -----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_link ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  rm -f conftest.$ac_objext conftest$ac_exeext
1826  if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_link") 2>conftest.err
1834  ac_status=$?
1835  if test -s conftest.err; then
1836    grep -v '^ *+' conftest.err >conftest.er1
1837    cat conftest.er1 >&5
1838    mv -f conftest.er1 conftest.err
1839  fi
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; } && {
1842	 test -z "$ac_c_werror_flag" ||
1843	 test ! -s conftest.err
1844       } && test -s conftest$ac_exeext && {
1845	 test "$cross_compiling" = yes ||
1846	 test -x conftest$ac_exeext
1847       }; then :
1848  ac_retval=0
1849else
1850  $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853	ac_retval=1
1854fi
1855  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857  # interfere with the next link command; also delete a directory that is
1858  # left behind by Apple's compiler.  We do this before executing the actions.
1859  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_link
1864
1865# ac_fn_c_check_func LINENO FUNC VAR
1866# ----------------------------------
1867# Tests whether FUNC exists, setting the cache variable VAR accordingly
1868ac_fn_c_check_func ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883    which can conflict with char $2 (); below.
1884    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885    <limits.h> exists even on freestanding compilers.  */
1886
1887#ifdef __STDC__
1888# include <limits.h>
1889#else
1890# include <assert.h>
1891#endif
1892
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896   Use char because int might match the return type of a GCC
1897   builtin and then its argument prototype would still apply.  */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903    to always fail with ENOSYS.  Some functions are actually named
1904    something starting with __ and the normal name is an alias.  */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main ()
1911{
1912return $2 ();
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"; then :
1918  eval "$3=yes"
1919else
1920  eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext \
1923    conftest$ac_exeext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_func
1931cat >config.log <<_ACEOF
1932This file contains any messages produced by compilers while
1933running configure, to aid debugging if configure makes a mistake.
1934
1935It was created by OpenPAM $as_me 20190224, which was
1936generated by GNU Autoconf 2.69.  Invocation command line was
1937
1938  $ $0 $@
1939
1940_ACEOF
1941exec 5>>config.log
1942{
1943cat <<_ASUNAME
1944## --------- ##
1945## Platform. ##
1946## --------- ##
1947
1948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965_ASUNAME
1966
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970  IFS=$as_save_IFS
1971  test -z "$as_dir" && as_dir=.
1972    $as_echo "PATH: $as_dir"
1973  done
1974IFS=$as_save_IFS
1975
1976} >&5
1977
1978cat >&5 <<_ACEOF
1979
1980
1981## ----------- ##
1982## Core tests. ##
1983## ----------- ##
1984
1985_ACEOF
1986
1987
1988# Keep a trace of the command line.
1989# Strip out --no-create and --no-recursion so they do not pile up.
1990# Strip out --silent because we don't want to record it for future runs.
1991# Also quote any args containing shell meta-characters.
1992# Make two passes to allow for proper duplicate-argument suppression.
1993ac_configure_args=
1994ac_configure_args0=
1995ac_configure_args1=
1996ac_must_keep_next=false
1997for ac_pass in 1 2
1998do
1999  for ac_arg
2000  do
2001    case $ac_arg in
2002    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004    | -silent | --silent | --silen | --sile | --sil)
2005      continue ;;
2006    *\'*)
2007      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008    esac
2009    case $ac_pass in
2010    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011    2)
2012      as_fn_append ac_configure_args1 " '$ac_arg'"
2013      if test $ac_must_keep_next = true; then
2014	ac_must_keep_next=false # Got value, back to normal.
2015      else
2016	case $ac_arg in
2017	  *=* | --config-cache | -C | -disable-* | --disable-* \
2018	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020	  | -with-* | --with-* | -without-* | --without-* | --x)
2021	    case "$ac_configure_args0 " in
2022	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023	    esac
2024	    ;;
2025	  -* ) ac_must_keep_next=true ;;
2026	esac
2027      fi
2028      as_fn_append ac_configure_args " '$ac_arg'"
2029      ;;
2030    esac
2031  done
2032done
2033{ ac_configure_args0=; unset ac_configure_args0;}
2034{ ac_configure_args1=; unset ac_configure_args1;}
2035
2036# When interrupted or exit'd, cleanup temporary files, and complete
2037# config.log.  We remove comments because anyway the quotes in there
2038# would cause problems or look ugly.
2039# WARNING: Use '\'' to represent an apostrophe within the trap.
2040# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041trap 'exit_status=$?
2042  # Save into config.log some information that might help in debugging.
2043  {
2044    echo
2045
2046    $as_echo "## ---------------- ##
2047## Cache variables. ##
2048## ---------------- ##"
2049    echo
2050    # The following way of writing the cache mishandles newlines in values,
2051(
2052  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2053    eval ac_val=\$$ac_var
2054    case $ac_val in #(
2055    *${as_nl}*)
2056      case $ac_var in #(
2057      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2058$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2059      esac
2060      case $ac_var in #(
2061      _ | IFS | as_nl) ;; #(
2062      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2063      *) { eval $ac_var=; unset $ac_var;} ;;
2064      esac ;;
2065    esac
2066  done
2067  (set) 2>&1 |
2068    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2069    *${as_nl}ac_space=\ *)
2070      sed -n \
2071	"s/'\''/'\''\\\\'\'''\''/g;
2072	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2073      ;; #(
2074    *)
2075      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076      ;;
2077    esac |
2078    sort
2079)
2080    echo
2081
2082    $as_echo "## ----------------- ##
2083## Output variables. ##
2084## ----------------- ##"
2085    echo
2086    for ac_var in $ac_subst_vars
2087    do
2088      eval ac_val=\$$ac_var
2089      case $ac_val in
2090      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091      esac
2092      $as_echo "$ac_var='\''$ac_val'\''"
2093    done | sort
2094    echo
2095
2096    if test -n "$ac_subst_files"; then
2097      $as_echo "## ------------------- ##
2098## File substitutions. ##
2099## ------------------- ##"
2100      echo
2101      for ac_var in $ac_subst_files
2102      do
2103	eval ac_val=\$$ac_var
2104	case $ac_val in
2105	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106	esac
2107	$as_echo "$ac_var='\''$ac_val'\''"
2108      done | sort
2109      echo
2110    fi
2111
2112    if test -s confdefs.h; then
2113      $as_echo "## ----------- ##
2114## confdefs.h. ##
2115## ----------- ##"
2116      echo
2117      cat confdefs.h
2118      echo
2119    fi
2120    test "$ac_signal" != 0 &&
2121      $as_echo "$as_me: caught signal $ac_signal"
2122    $as_echo "$as_me: exit $exit_status"
2123  } >&5
2124  rm -f core *.core core.conftest.* &&
2125    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2126    exit $exit_status
2127' 0
2128for ac_signal in 1 2 13 15; do
2129  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2130done
2131ac_signal=0
2132
2133# confdefs.h avoids OS command line length limits that DEFS can exceed.
2134rm -f -r conftest* confdefs.h
2135
2136$as_echo "/* confdefs.h */" > confdefs.h
2137
2138# Predefined preprocessor variables.
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_NAME "$PACKAGE_NAME"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_VERSION "$PACKAGE_VERSION"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_STRING "$PACKAGE_STRING"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_URL "$PACKAGE_URL"
2162_ACEOF
2163
2164
2165# Let the site file select an alternate cache file if it wants to.
2166# Prefer an explicitly selected file to automatically selected ones.
2167ac_site_file1=NONE
2168ac_site_file2=NONE
2169if test -n "$CONFIG_SITE"; then
2170  # We do not want a PATH search for config.site.
2171  case $CONFIG_SITE in #((
2172    -*)  ac_site_file1=./$CONFIG_SITE;;
2173    */*) ac_site_file1=$CONFIG_SITE;;
2174    *)   ac_site_file1=./$CONFIG_SITE;;
2175  esac
2176elif test "x$prefix" != xNONE; then
2177  ac_site_file1=$prefix/share/config.site
2178  ac_site_file2=$prefix/etc/config.site
2179else
2180  ac_site_file1=$ac_default_prefix/share/config.site
2181  ac_site_file2=$ac_default_prefix/etc/config.site
2182fi
2183for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2184do
2185  test "x$ac_site_file" = xNONE && continue
2186  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2187    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189    sed 's/^/| /' "$ac_site_file" >&5
2190    . "$ac_site_file" \
2191      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193as_fn_error $? "failed to load site script $ac_site_file
2194See \`config.log' for more details" "$LINENO" 5; }
2195  fi
2196done
2197
2198if test -r "$cache_file"; then
2199  # Some versions of bash will fail to source /dev/null (special files
2200  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2201  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2202    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2203$as_echo "$as_me: loading cache $cache_file" >&6;}
2204    case $cache_file in
2205      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2206      *)                      . "./$cache_file";;
2207    esac
2208  fi
2209else
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2211$as_echo "$as_me: creating cache $cache_file" >&6;}
2212  >$cache_file
2213fi
2214
2215# Check that the precious variables saved in the cache have kept the same
2216# value.
2217ac_cache_corrupted=false
2218for ac_var in $ac_precious_vars; do
2219  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2220  eval ac_new_set=\$ac_env_${ac_var}_set
2221  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2222  eval ac_new_val=\$ac_env_${ac_var}_value
2223  case $ac_old_set,$ac_new_set in
2224    set,)
2225      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2226$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2227      ac_cache_corrupted=: ;;
2228    ,set)
2229      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2230$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2231      ac_cache_corrupted=: ;;
2232    ,);;
2233    *)
2234      if test "x$ac_old_val" != "x$ac_new_val"; then
2235	# differences in whitespace do not lead to failure.
2236	ac_old_val_w=`echo x $ac_old_val`
2237	ac_new_val_w=`echo x $ac_new_val`
2238	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2239	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2240$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2241	  ac_cache_corrupted=:
2242	else
2243	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2244$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2245	  eval $ac_var=\$ac_old_val
2246	fi
2247	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2248$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2249	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2250$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2251      fi;;
2252  esac
2253  # Pass precious variables to config.status.
2254  if test "$ac_new_set" = set; then
2255    case $ac_new_val in
2256    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2257    *) ac_arg=$ac_var=$ac_new_val ;;
2258    esac
2259    case " $ac_configure_args " in
2260      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2261      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2262    esac
2263  fi
2264done
2265if $ac_cache_corrupted; then
2266  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2269$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2270  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2271fi
2272## -------------------- ##
2273## Main body of script. ##
2274## -------------------- ##
2275
2276ac_ext=c
2277ac_cpp='$CPP $CPPFLAGS'
2278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281
2282
2283
2284
2285am__api_version='1.16'
2286
2287ac_aux_dir=
2288for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289  if test -f "$ac_dir/install-sh"; then
2290    ac_aux_dir=$ac_dir
2291    ac_install_sh="$ac_aux_dir/install-sh -c"
2292    break
2293  elif test -f "$ac_dir/install.sh"; then
2294    ac_aux_dir=$ac_dir
2295    ac_install_sh="$ac_aux_dir/install.sh -c"
2296    break
2297  elif test -f "$ac_dir/shtool"; then
2298    ac_aux_dir=$ac_dir
2299    ac_install_sh="$ac_aux_dir/shtool install -c"
2300    break
2301  fi
2302done
2303if test -z "$ac_aux_dir"; then
2304  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305fi
2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2314
2315
2316# Find a good install program.  We prefer a C program (faster),
2317# so one script is as good as another.  But avoid the broken or
2318# incompatible versions:
2319# SysV /etc/install, /usr/sbin/install
2320# SunOS /usr/etc/install
2321# IRIX /sbin/install
2322# AIX /bin/install
2323# AmigaOS /C/install, which installs bootblocks on floppy discs
2324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327# OS/2's system install, which has a completely different semantic
2328# ./install, which can be erroneously created by make from ./install.sh.
2329# Reject install programs that cannot install multiple files.
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331$as_echo_n "checking for a BSD-compatible install... " >&6; }
2332if test -z "$INSTALL"; then
2333if ${ac_cv_path_install+:} false; then :
2334  $as_echo_n "(cached) " >&6
2335else
2336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341    # Account for people who put trailing slashes in PATH elements.
2342case $as_dir/ in #((
2343  ./ | .// | /[cC]/* | \
2344  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346  /usr/ucb/* ) ;;
2347  *)
2348    # OSF1 and SCO ODT 3.0 have their own names for install.
2349    # Don't use installbsd from OSF since it installs stuff as root
2350    # by default.
2351    for ac_prog in ginstall scoinst install; do
2352      for ac_exec_ext in '' $ac_executable_extensions; do
2353	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354	  if test $ac_prog = install &&
2355	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356	    # AIX install.  It has an incompatible calling convention.
2357	    :
2358	  elif test $ac_prog = install &&
2359	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360	    # program-specific install script used by HP pwplus--don't use.
2361	    :
2362	  else
2363	    rm -rf conftest.one conftest.two conftest.dir
2364	    echo one > conftest.one
2365	    echo two > conftest.two
2366	    mkdir conftest.dir
2367	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368	      test -s conftest.one && test -s conftest.two &&
2369	      test -s conftest.dir/conftest.one &&
2370	      test -s conftest.dir/conftest.two
2371	    then
2372	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373	      break 3
2374	    fi
2375	  fi
2376	fi
2377      done
2378    done
2379    ;;
2380esac
2381
2382  done
2383IFS=$as_save_IFS
2384
2385rm -rf conftest.one conftest.two conftest.dir
2386
2387fi
2388  if test "${ac_cv_path_install+set}" = set; then
2389    INSTALL=$ac_cv_path_install
2390  else
2391    # As a last resort, use the slow shell script.  Don't cache a
2392    # value for INSTALL within a source directory, because that will
2393    # break other packages using the cache if that directory is
2394    # removed, or if the value is a relative name.
2395    INSTALL=$ac_install_sh
2396  fi
2397fi
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399$as_echo "$INSTALL" >&6; }
2400
2401# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402# It thinks the first close brace ends the variable substitution.
2403test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410$as_echo_n "checking whether build environment is sane... " >&6; }
2411# Reject unsafe characters in $srcdir or the absolute working directory
2412# name.  Accept space and tab only in the latter.
2413am_lf='
2414'
2415case `pwd` in
2416  *[\\\"\#\$\&\'\`$am_lf]*)
2417    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418esac
2419case $srcdir in
2420  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2421    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422esac
2423
2424# Do 'set' in a subshell so we don't clobber the current shell's
2425# arguments.  Must try -L first in case configure is actually a
2426# symlink; some systems play weird games with the mod time of symlinks
2427# (eg FreeBSD returns the mod time of the symlink's containing
2428# directory).
2429if (
2430   am_has_slept=no
2431   for am_try in 1 2; do
2432     echo "timestamp, slept: $am_has_slept" > conftest.file
2433     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434     if test "$*" = "X"; then
2435	# -L didn't work.
2436	set X `ls -t "$srcdir/configure" conftest.file`
2437     fi
2438     if test "$*" != "X $srcdir/configure conftest.file" \
2439	&& test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441	# If neither matched, then we have a broken ls.  This can happen
2442	# if, for instance, CONFIG_SHELL is bash and it inherits a
2443	# broken ls alias from the environment.  This has actually
2444	# happened.  Such a system could not be considered "sane".
2445	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2446  alias in your environment" "$LINENO" 5
2447     fi
2448     if test "$2" = conftest.file || test $am_try -eq 2; then
2449       break
2450     fi
2451     # Just in case.
2452     sleep 1
2453     am_has_slept=yes
2454   done
2455   test "$2" = conftest.file
2456   )
2457then
2458   # Ok.
2459   :
2460else
2461   as_fn_error $? "newly created file is older than distributed files!
2462Check your system clock" "$LINENO" 5
2463fi
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465$as_echo "yes" >&6; }
2466# If we didn't sleep, we still need to ensure time stamps of config.status and
2467# generated files are strictly newer.
2468am_sleep_pid=
2469if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470  ( sleep 1 ) &
2471  am_sleep_pid=$!
2472fi
2473
2474rm -f conftest.file
2475
2476test "$program_prefix" != NONE &&
2477  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478# Use a double $ so make ignores it.
2479test "$program_suffix" != NONE &&
2480  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481# Double any \ or $.
2482# By default was `s,x,x', remove it if useless.
2483ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486# Expand $ac_aux_dir to an absolute path.
2487am_aux_dir=`cd "$ac_aux_dir" && pwd`
2488
2489if test x"${MISSING+set}" != xset; then
2490  case $am_aux_dir in
2491  *\ * | *\	*)
2492    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493  *)
2494    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495  esac
2496fi
2497# Use eval to expand $SHELL
2498if eval "$MISSING --is-lightweight"; then
2499  am_missing_run="$MISSING "
2500else
2501  am_missing_run=
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2504fi
2505
2506if test x"${install_sh+set}" != xset; then
2507  case $am_aux_dir in
2508  *\ * | *\	*)
2509    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510  *)
2511    install_sh="\${SHELL} $am_aux_dir/install-sh"
2512  esac
2513fi
2514
2515# Installed binaries are usually stripped using 'strip' when the user
2516# run "make install-strip".  However 'strip' might not be the right
2517# tool to use in cross-compilation environments, therefore Automake
2518# will honor the 'STRIP' environment variable to overrule this program.
2519if test "$cross_compiling" != no; then
2520  if test -n "$ac_tool_prefix"; then
2521  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522set dummy ${ac_tool_prefix}strip; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if ${ac_cv_prog_STRIP+:} false; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  if test -n "$STRIP"; then
2529  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534  IFS=$as_save_IFS
2535  test -z "$as_dir" && as_dir=.
2536    for ac_exec_ext in '' $ac_executable_extensions; do
2537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540    break 2
2541  fi
2542done
2543  done
2544IFS=$as_save_IFS
2545
2546fi
2547fi
2548STRIP=$ac_cv_prog_STRIP
2549if test -n "$STRIP"; then
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551$as_echo "$STRIP" >&6; }
2552else
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
2555fi
2556
2557
2558fi
2559if test -z "$ac_cv_prog_STRIP"; then
2560  ac_ct_STRIP=$STRIP
2561  # Extract the first word of "strip", so it can be a program name with args.
2562set dummy strip; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$ac_ct_STRIP"; then
2569  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578    ac_cv_prog_ac_ct_STRIP="strip"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589if test -n "$ac_ct_STRIP"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591$as_echo "$ac_ct_STRIP" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597  if test "x$ac_ct_STRIP" = x; then
2598    STRIP=":"
2599  else
2600    case $cross_compiling:$ac_tool_warned in
2601yes:)
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604ac_tool_warned=yes ;;
2605esac
2606    STRIP=$ac_ct_STRIP
2607  fi
2608else
2609  STRIP="$ac_cv_prog_STRIP"
2610fi
2611
2612fi
2613INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617if test -z "$MKDIR_P"; then
2618  if ${ac_cv_path_mkdir+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_prog in mkdir gmkdir; do
2627	 for ac_exec_ext in '' $ac_executable_extensions; do
2628	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630	     'mkdir (GNU coreutils) '* | \
2631	     'mkdir (coreutils) '* | \
2632	     'mkdir (fileutils) '4.1*)
2633	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634	       break 3;;
2635	   esac
2636	 done
2637       done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642
2643  test -d ./--version && rmdir ./--version
2644  if test "${ac_cv_path_mkdir+set}" = set; then
2645    MKDIR_P="$ac_cv_path_mkdir -p"
2646  else
2647    # As a last resort, use the slow shell script.  Don't cache a
2648    # value for MKDIR_P within a source directory, because that will
2649    # break other packages using the cache if that directory is
2650    # removed, or if the value is a relative name.
2651    MKDIR_P="$ac_install_sh -d"
2652  fi
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655$as_echo "$MKDIR_P" >&6; }
2656
2657for ac_prog in gawk mawk nawk awk
2658do
2659  # Extract the first word of "$ac_prog", so it can be a program name with args.
2660set dummy $ac_prog; ac_word=$2
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
2663if ${ac_cv_prog_AWK+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if test -n "$AWK"; then
2667  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_exec_ext in '' $ac_executable_extensions; do
2675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676    ac_cv_prog_AWK="$ac_prog"
2677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681  done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686AWK=$ac_cv_prog_AWK
2687if test -n "$AWK"; then
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689$as_echo "$AWK" >&6; }
2690else
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
2693fi
2694
2695
2696  test -n "$AWK" && break
2697done
2698
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701set x ${MAKE-make}
2702ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  cat >conftest.make <<\_ACEOF
2707SHELL = /bin/sh
2708all:
2709	@echo '@@@%%%=$(MAKE)=@@@%%%'
2710_ACEOF
2711# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713  *@@@%%%=?*=@@@%%%*)
2714    eval ac_cv_prog_make_${ac_make}_set=yes;;
2715  *)
2716    eval ac_cv_prog_make_${ac_make}_set=no;;
2717esac
2718rm -f conftest.make
2719fi
2720if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722$as_echo "yes" >&6; }
2723  SET_MAKE=
2724else
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727  SET_MAKE="MAKE=${MAKE-make}"
2728fi
2729
2730rm -rf .tst 2>/dev/null
2731mkdir .tst 2>/dev/null
2732if test -d .tst; then
2733  am__leading_dot=.
2734else
2735  am__leading_dot=_
2736fi
2737rmdir .tst 2>/dev/null
2738
2739# Check whether --enable-silent-rules was given.
2740if test "${enable_silent_rules+set}" = set; then :
2741  enableval=$enable_silent_rules;
2742fi
2743
2744case $enable_silent_rules in # (((
2745  yes) AM_DEFAULT_VERBOSITY=0;;
2746   no) AM_DEFAULT_VERBOSITY=1;;
2747    *) AM_DEFAULT_VERBOSITY=1;;
2748esac
2749am_make=${MAKE-make}
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2751$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2752if ${am_cv_make_support_nested_variables+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if $as_echo 'TRUE=$(BAR$(V))
2756BAR0=false
2757BAR1=true
2758V=1
2759am__doit:
2760	@$(TRUE)
2761.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2762  am_cv_make_support_nested_variables=yes
2763else
2764  am_cv_make_support_nested_variables=no
2765fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2768$as_echo "$am_cv_make_support_nested_variables" >&6; }
2769if test $am_cv_make_support_nested_variables = yes; then
2770    AM_V='$(V)'
2771  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2772else
2773  AM_V=$AM_DEFAULT_VERBOSITY
2774  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775fi
2776AM_BACKSLASH='\'
2777
2778if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780  # is not polluted with repeated "-I."
2781  am__isrc=' -I$(srcdir)'
2782  # test to see if srcdir already configured
2783  if test -f $srcdir/config.status; then
2784    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785  fi
2786fi
2787
2788# test whether we have cygpath
2789if test -z "$CYGPATH_W"; then
2790  if (cygpath --version) >/dev/null 2>/dev/null; then
2791    CYGPATH_W='cygpath -w'
2792  else
2793    CYGPATH_W=echo
2794  fi
2795fi
2796
2797
2798# Define the identity of the package.
2799 PACKAGE='openpam'
2800 VERSION='20190224'
2801
2802
2803cat >>confdefs.h <<_ACEOF
2804#define PACKAGE "$PACKAGE"
2805_ACEOF
2806
2807
2808cat >>confdefs.h <<_ACEOF
2809#define VERSION "$VERSION"
2810_ACEOF
2811
2812# Some tools Automake needs.
2813
2814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828# For better backward compatibility.  To be removed once Automake 1.9.x
2829# dies out for good.  For more background, see:
2830# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2831# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2832mkdir_p='$(MKDIR_P)'
2833
2834# We need awk for the "check" target (and possibly the TAP driver).  The
2835# system "awk" is bad on some platforms.
2836# Always define AMTAR for backward compatibility.  Yes, it's still used
2837# in the wild :-(  We should find a proper way to deprecate it ...
2838AMTAR='$${TAR-tar}'
2839
2840
2841# We'll loop over all known methods to create a tar archive until one works.
2842_am_tools='gnutar  pax cpio none'
2843
2844am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2845
2846
2847
2848
2849
2850
2851# POSIX will say in a future version that running "rm -f" with no argument
2852# is OK; and we want to be able to make that assumption in our Makefile
2853# recipes.  So use an aggressive probe to check that the usage we want is
2854# actually supported "in the wild" to an acceptable degree.
2855# See automake bug#10828.
2856# To make any issue more visible, cause the running configure to be aborted
2857# by default if the 'rm' program in use doesn't match our expectations; the
2858# user can still override this though.
2859if rm -f && rm -fr && rm -rf; then : OK; else
2860  cat >&2 <<'END'
2861Oops!
2862
2863Your 'rm' program seems unable to run without file operands specified
2864on the command line, even when the '-f' option is present.  This is contrary
2865to the behaviour of most rm programs out there, and not conforming with
2866the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2867
2868Please tell bug-automake@gnu.org about your system, including the value
2869of your $PATH and any error possibly output before this message.  This
2870can help us improve future automake versions.
2871
2872END
2873  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2874    echo 'Configuration will proceed anyway, since you have set the' >&2
2875    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2876    echo >&2
2877  else
2878    cat >&2 <<'END'
2879Aborting the configuration process, to ensure you take notice of the issue.
2880
2881You can download and install GNU coreutils to get an 'rm' implementation
2882that behaves properly: <https://www.gnu.org/software/coreutils/>.
2883
2884If you want to complete the configuration process using your problematic
2885'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2886to "yes", and re-run configure.
2887
2888END
2889    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2890  fi
2891fi
2892
2893ac_config_headers="$ac_config_headers config.h"
2894
2895
2896# C compiler and features
2897ac_ext=c
2898ac_cpp='$CPP $CPPFLAGS'
2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902
2903ac_ext=c
2904ac_cpp='$CPP $CPPFLAGS'
2905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908if test -n "$ac_tool_prefix"; then
2909  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$CC"; then
2917  ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936CC=$ac_cv_prog_CC
2937if test -n "$CC"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939$as_echo "$CC" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946fi
2947if test -z "$ac_cv_prog_CC"; then
2948  ac_ct_CC=$CC
2949  # Extract the first word of "gcc", so it can be a program name with args.
2950set dummy gcc; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  if test -n "$ac_ct_CC"; then
2957  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962  IFS=$as_save_IFS
2963  test -z "$as_dir" && as_dir=.
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_CC="gcc"
2967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977if test -n "$ac_ct_CC"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979$as_echo "$ac_ct_CC" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985  if test "x$ac_ct_CC" = x; then
2986    CC=""
2987  else
2988    case $cross_compiling:$ac_tool_warned in
2989yes:)
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992ac_tool_warned=yes ;;
2993esac
2994    CC=$ac_ct_CC
2995  fi
2996else
2997  CC="$ac_cv_prog_CC"
2998fi
2999
3000if test -z "$CC"; then
3001          if test -n "$ac_tool_prefix"; then
3002    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3003set dummy ${ac_tool_prefix}cc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_CC="${ac_tool_prefix}cc"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032$as_echo "$CC" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039  fi
3040fi
3041if test -z "$CC"; then
3042  # Extract the first word of "cc", so it can be a program name with args.
3043set dummy cc; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_CC+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$CC"; then
3050  ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
3052  ac_prog_rejected=no
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058    for ac_exec_ext in '' $ac_executable_extensions; do
3059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061       ac_prog_rejected=yes
3062       continue
3063     fi
3064    ac_cv_prog_CC="cc"
3065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072if test $ac_prog_rejected = yes; then
3073  # We found a bogon in the path, so make sure we never use it.
3074  set dummy $ac_cv_prog_CC
3075  shift
3076  if test $# != 0; then
3077    # We chose a different compiler from the bogus one.
3078    # However, it has the same basename, so the bogon will be chosen
3079    # first if we set CC to just the basename; use the full file name.
3080    shift
3081    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3082  fi
3083fi
3084fi
3085fi
3086CC=$ac_cv_prog_CC
3087if test -n "$CC"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089$as_echo "$CC" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096fi
3097if test -z "$CC"; then
3098  if test -n "$ac_tool_prefix"; then
3099  for ac_prog in cl.exe
3100  do
3101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116    for ac_exec_ext in '' $ac_executable_extensions; do
3117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138    test -n "$CC" && break
3139  done
3140fi
3141if test -z "$CC"; then
3142  ac_ct_CC=$CC
3143  for ac_prog in cl.exe
3144do
3145  # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if ${ac_cv_prog_ac_ct_CC+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  if test -n "$ac_ct_CC"; then
3153  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162    ac_cv_prog_ac_ct_CC="$ac_prog"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167  done
3168IFS=$as_save_IFS
3169
3170fi
3171fi
3172ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173if test -n "$ac_ct_CC"; then
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175$as_echo "$ac_ct_CC" >&6; }
3176else
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179fi
3180
3181
3182  test -n "$ac_ct_CC" && break
3183done
3184
3185  if test "x$ac_ct_CC" = x; then
3186    CC=""
3187  else
3188    case $cross_compiling:$ac_tool_warned in
3189yes:)
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192ac_tool_warned=yes ;;
3193esac
3194    CC=$ac_ct_CC
3195  fi
3196fi
3197
3198fi
3199
3200
3201test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error $? "no acceptable C compiler found in \$PATH
3204See \`config.log' for more details" "$LINENO" 5; }
3205
3206# Provide some information about the compiler.
3207$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3208set X $ac_compile
3209ac_compiler=$2
3210for ac_option in --version -v -V -qversion; do
3211  { { ac_try="$ac_compiler $ac_option >&5"
3212case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217$as_echo "$ac_try_echo"; } >&5
3218  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3219  ac_status=$?
3220  if test -s conftest.err; then
3221    sed '10a\
3222... rest of stderr output deleted ...
3223         10q' conftest.err >conftest.er1
3224    cat conftest.er1 >&5
3225  fi
3226  rm -f conftest.er1 conftest.err
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }
3229done
3230
3231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242ac_clean_files_save=$ac_clean_files
3243ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3244# Try to create an executable without -o first, disregard a.out.
3245# It will help us diagnose broken compilers, and finding out an intuition
3246# of exeext.
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248$as_echo_n "checking whether the C compiler works... " >&6; }
3249ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250
3251# The possible output files:
3252ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3253
3254ac_rmfiles=
3255for ac_file in $ac_files
3256do
3257  case $ac_file in
3258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260  esac
3261done
3262rm -f $ac_rmfiles
3263
3264if { { ac_try="$ac_link_default"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271  (eval "$ac_link_default") 2>&5
3272  ac_status=$?
3273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }; then :
3275  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3278# so that the user can short-circuit this test for compilers unknown to
3279# Autoconf.
3280for ac_file in $ac_files ''
3281do
3282  test -f "$ac_file" || continue
3283  case $ac_file in
3284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3285	;;
3286    [ab].out )
3287	# We found the default executable, but exeext='' is most
3288	# certainly right.
3289	break;;
3290    *.* )
3291	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3292	then :; else
3293	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294	fi
3295	# We set ac_cv_exeext here because the later test for it is not
3296	# safe: cross compilers may not add the suffix if given an `-o'
3297	# argument, so we may need to know it at that point already.
3298	# Even if this section looks crufty: it has the advantage of
3299	# actually working.
3300	break;;
3301    * )
3302	break;;
3303  esac
3304done
3305test "$ac_cv_exeext" = no && ac_cv_exeext=
3306
3307else
3308  ac_file=''
3309fi
3310if test -z "$ac_file"; then :
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313$as_echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error 77 "C compiler cannot create executables
3319See \`config.log' for more details" "$LINENO" 5; }
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322$as_echo "yes" >&6; }
3323fi
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325$as_echo_n "checking for C compiler default output file name... " >&6; }
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327$as_echo "$ac_file" >&6; }
3328ac_exeext=$ac_cv_exeext
3329
3330rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3331ac_clean_files=$ac_clean_files_save
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333$as_echo_n "checking for suffix of executables... " >&6; }
3334if { { ac_try="$ac_link"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341  (eval "$ac_link") 2>&5
3342  ac_status=$?
3343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344  test $ac_status = 0; }; then :
3345  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3347# work properly (i.e., refer to `conftest.exe'), while it won't with
3348# `rm'.
3349for ac_file in conftest.exe conftest conftest.*; do
3350  test -f "$ac_file" || continue
3351  case $ac_file in
3352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354	  break;;
3355    * ) break;;
3356  esac
3357done
3358else
3359  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362See \`config.log' for more details" "$LINENO" 5; }
3363fi
3364rm -f conftest conftest$ac_cv_exeext
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366$as_echo "$ac_cv_exeext" >&6; }
3367
3368rm -f conftest.$ac_ext
3369EXEEXT=$ac_cv_exeext
3370ac_exeext=$EXEEXT
3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373#include <stdio.h>
3374int
3375main ()
3376{
3377FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3379
3380  ;
3381  return 0;
3382}
3383_ACEOF
3384ac_clean_files="$ac_clean_files conftest.out"
3385# Check that the compiler produces executables we can run.  If not, either
3386# the compiler is broken, or we cross compile.
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388$as_echo_n "checking whether we are cross compiling... " >&6; }
3389if test "$cross_compiling" != yes; then
3390  { { ac_try="$ac_link"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397  (eval "$ac_link") 2>&5
3398  ac_status=$?
3399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400  test $ac_status = 0; }
3401  if { ac_try='./conftest$ac_cv_exeext'
3402  { { case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408  (eval "$ac_try") 2>&5
3409  ac_status=$?
3410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411  test $ac_status = 0; }; }; then
3412    cross_compiling=no
3413  else
3414    if test "$cross_compiling" = maybe; then
3415	cross_compiling=yes
3416    else
3417	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "cannot run C compiled programs.
3420If you meant to cross compile, use \`--host'.
3421See \`config.log' for more details" "$LINENO" 5; }
3422    fi
3423  fi
3424fi
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426$as_echo "$cross_compiling" >&6; }
3427
3428rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429ac_clean_files=$ac_clean_files_save
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431$as_echo_n "checking for suffix of object files... " >&6; }
3432if ${ac_cv_objext+:} false; then :
3433  $as_echo_n "(cached) " >&6
3434else
3435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h.  */
3437
3438int
3439main ()
3440{
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446rm -f conftest.o conftest.obj
3447if { { ac_try="$ac_compile"
3448case "(($ac_try" in
3449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450  *) ac_try_echo=$ac_try;;
3451esac
3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
3454  (eval "$ac_compile") 2>&5
3455  ac_status=$?
3456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457  test $ac_status = 0; }; then :
3458  for ac_file in conftest.o conftest.obj conftest.*; do
3459  test -f "$ac_file" || continue;
3460  case $ac_file in
3461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463       break;;
3464  esac
3465done
3466else
3467  $as_echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error $? "cannot compute suffix of object files: cannot compile
3473See \`config.log' for more details" "$LINENO" 5; }
3474fi
3475rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478$as_echo "$ac_cv_objext" >&6; }
3479OBJEXT=$ac_cv_objext
3480ac_objext=$OBJEXT
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483if ${ac_cv_c_compiler_gnu+:} false; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488
3489int
3490main ()
3491{
3492#ifndef __GNUC__
3493       choke me
3494#endif
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_compile "$LINENO"; then :
3501  ac_compiler_gnu=yes
3502else
3503  ac_compiler_gnu=no
3504fi
3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511if test $ac_compiler_gnu = yes; then
3512  GCC=yes
3513else
3514  GCC=
3515fi
3516ac_test_CFLAGS=${CFLAGS+set}
3517ac_save_CFLAGS=$CFLAGS
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519$as_echo_n "checking whether $CC accepts -g... " >&6; }
3520if ${ac_cv_prog_cc_g+:} false; then :
3521  $as_echo_n "(cached) " >&6
3522else
3523  ac_save_c_werror_flag=$ac_c_werror_flag
3524   ac_c_werror_flag=yes
3525   ac_cv_prog_cc_g=no
3526   CFLAGS="-g"
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529
3530int
3531main ()
3532{
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539  ac_cv_prog_cc_g=yes
3540else
3541  CFLAGS=""
3542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553if ac_fn_c_try_compile "$LINENO"; then :
3554
3555else
3556  ac_c_werror_flag=$ac_save_c_werror_flag
3557	 CFLAGS="-g"
3558	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561int
3562main ()
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569if ac_fn_c_try_compile "$LINENO"; then :
3570  ac_cv_prog_cc_g=yes
3571fi
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577   ac_c_werror_flag=$ac_save_c_werror_flag
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580$as_echo "$ac_cv_prog_cc_g" >&6; }
3581if test "$ac_test_CFLAGS" = set; then
3582  CFLAGS=$ac_save_CFLAGS
3583elif test $ac_cv_prog_cc_g = yes; then
3584  if test "$GCC" = yes; then
3585    CFLAGS="-g -O2"
3586  else
3587    CFLAGS="-g"
3588  fi
3589else
3590  if test "$GCC" = yes; then
3591    CFLAGS="-O2"
3592  else
3593    CFLAGS=
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598if ${ac_cv_prog_cc_c89+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  ac_cv_prog_cc_c89=no
3602ac_save_CC=$CC
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <stdarg.h>
3606#include <stdio.h>
3607struct stat;
3608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3609struct buf { int x; };
3610FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611static char *e (p, i)
3612     char **p;
3613     int i;
3614{
3615  return p[i];
3616}
3617static char *f (char * (*g) (char **, int), char **p, ...)
3618{
3619  char *s;
3620  va_list v;
3621  va_start (v,p);
3622  s = g (p, va_arg (v,int));
3623  va_end (v);
3624  return s;
3625}
3626
3627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3628   function prototypes and stuff, but not '\xHH' hex character constants.
3629   These don't provoke an error unfortunately, instead are silently treated
3630   as 'x'.  The following induces an error, until -std is added to get
3631   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3632   array size at least.  It's necessary to write '\x00'==0 to get something
3633   that's true only with -std.  */
3634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635
3636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637   inside strings and character constants.  */
3638#define FOO(x) 'x'
3639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640
3641int test (int i, double x);
3642struct s1 {int (*f) (int a);};
3643struct s2 {int (*f) (double a);};
3644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645int argc;
3646char **argv;
3647int
3648main ()
3649{
3650return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657do
3658  CC="$ac_save_CC $ac_arg"
3659  if ac_fn_c_try_compile "$LINENO"; then :
3660  ac_cv_prog_cc_c89=$ac_arg
3661fi
3662rm -f core conftest.err conftest.$ac_objext
3663  test "x$ac_cv_prog_cc_c89" != "xno" && break
3664done
3665rm -f conftest.$ac_ext
3666CC=$ac_save_CC
3667
3668fi
3669# AC_CACHE_VAL
3670case "x$ac_cv_prog_cc_c89" in
3671  x)
3672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3673$as_echo "none needed" >&6; } ;;
3674  xno)
3675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3676$as_echo "unsupported" >&6; } ;;
3677  *)
3678    CC="$CC $ac_cv_prog_cc_c89"
3679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3681esac
3682if test "x$ac_cv_prog_cc_c89" != xno; then :
3683
3684fi
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692ac_ext=c
3693ac_cpp='$CPP $CPPFLAGS'
3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3698$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3699if ${am_cv_prog_cc_c_o+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713  # Make sure it works both with $CC and with simple cc.
3714  # Following AC_PROG_CC_C_O, we do the test twice because some
3715  # compilers refuse to overwrite an existing .o file with -o,
3716  # though they will create one.
3717  am_cv_prog_cc_c_o=yes
3718  for am_i in 1 2; do
3719    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3720   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } \
3724         && test -f conftest2.$ac_objext; then
3725      : OK
3726    else
3727      am_cv_prog_cc_c_o=no
3728      break
3729    fi
3730  done
3731  rm -f core conftest*
3732  unset am_i
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3735$as_echo "$am_cv_prog_cc_c_o" >&6; }
3736if test "$am_cv_prog_cc_c_o" != yes; then
3737   # Losing compiler, so override with the script.
3738   # FIXME: It is wrong to rewrite CC.
3739   # But if we don't then we get into trouble of one sort or another.
3740   # A longer-term fix would be to have automake use am__CC in this case,
3741   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3742   CC="$am_aux_dir/compile $CC"
3743fi
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750DEPDIR="${am__leading_dot}deps"
3751
3752ac_config_commands="$ac_config_commands depfiles"
3753
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3755$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3756cat > confinc.mk << 'END'
3757am__doit:
3758	@echo this is the am__doit target >confinc.out
3759.PHONY: am__doit
3760END
3761am__include="#"
3762am__quote=
3763# BSD make does it like this.
3764echo '.include "confinc.mk" # ignored' > confmf.BSD
3765# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3766echo 'include confinc.mk # ignored' > confmf.GNU
3767_am_result=no
3768for s in GNU BSD; do
3769  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3770   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3771   ac_status=$?
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); }
3774  case $?:`cat confinc.out 2>/dev/null` in #(
3775  '0:this is the am__doit target') :
3776    case $s in #(
3777  BSD) :
3778    am__include='.include' am__quote='"' ;; #(
3779  *) :
3780    am__include='include' am__quote='' ;;
3781esac ;; #(
3782  *) :
3783     ;;
3784esac
3785  if test "$am__include" != "#"; then
3786    _am_result="yes ($s style)"
3787    break
3788  fi
3789done
3790rm -f confinc.* confmf.*
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3792$as_echo "${_am_result}" >&6; }
3793
3794# Check whether --enable-dependency-tracking was given.
3795if test "${enable_dependency_tracking+set}" = set; then :
3796  enableval=$enable_dependency_tracking;
3797fi
3798
3799if test "x$enable_dependency_tracking" != xno; then
3800  am_depcomp="$ac_aux_dir/depcomp"
3801  AMDEPBACKSLASH='\'
3802  am__nodep='_no'
3803fi
3804 if test "x$enable_dependency_tracking" != xno; then
3805  AMDEP_TRUE=
3806  AMDEP_FALSE='#'
3807else
3808  AMDEP_TRUE='#'
3809  AMDEP_FALSE=
3810fi
3811
3812
3813
3814depcc="$CC"   am_compiler_list=
3815
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3817$as_echo_n "checking dependency style of $depcc... " >&6; }
3818if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3822  # We make a subdir and do the tests there.  Otherwise we can end up
3823  # making bogus files that we don't know about and never remove.  For
3824  # instance it was reported that on HP-UX the gcc test will end up
3825  # making a dummy file named 'D' -- because '-MD' means "put the output
3826  # in D".
3827  rm -rf conftest.dir
3828  mkdir conftest.dir
3829  # Copy depcomp to subdir because otherwise we won't find it if we're
3830  # using a relative directory.
3831  cp "$am_depcomp" conftest.dir
3832  cd conftest.dir
3833  # We will build objects and dependencies in a subdirectory because
3834  # it helps to detect inapplicable dependency modes.  For instance
3835  # both Tru64's cc and ICC support -MD to output dependencies as a
3836  # side effect of compilation, but ICC will put the dependencies in
3837  # the current directory while Tru64 will put them in the object
3838  # directory.
3839  mkdir sub
3840
3841  am_cv_CC_dependencies_compiler_type=none
3842  if test "$am_compiler_list" = ""; then
3843     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3844  fi
3845  am__universal=false
3846  case " $depcc " in #(
3847     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3848     esac
3849
3850  for depmode in $am_compiler_list; do
3851    # Setup a source with many dependencies, because some compilers
3852    # like to wrap large dependency lists on column 80 (with \), and
3853    # we should not choose a depcomp mode which is confused by this.
3854    #
3855    # We need to recreate these files for each test, as the compiler may
3856    # overwrite some of them when testing with obscure command lines.
3857    # This happens at least with the AIX C compiler.
3858    : > sub/conftest.c
3859    for i in 1 2 3 4 5 6; do
3860      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3861      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3862      # Solaris 10 /bin/sh.
3863      echo '/* dummy */' > sub/conftst$i.h
3864    done
3865    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866
3867    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3868    # mode.  It turns out that the SunPro C++ compiler does not properly
3869    # handle '-M -o', and we need to detect this.  Also, some Intel
3870    # versions had trouble with output in subdirs.
3871    am__obj=sub/conftest.${OBJEXT-o}
3872    am__minus_obj="-o $am__obj"
3873    case $depmode in
3874    gcc)
3875      # This depmode causes a compiler race in universal mode.
3876      test "$am__universal" = false || continue
3877      ;;
3878    nosideeffect)
3879      # After this tag, mechanisms are not by side-effect, so they'll
3880      # only be used when explicitly requested.
3881      if test "x$enable_dependency_tracking" = xyes; then
3882	continue
3883      else
3884	break
3885      fi
3886      ;;
3887    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3888      # This compiler won't grok '-c -o', but also, the minuso test has
3889      # not run yet.  These depmodes are late enough in the game, and
3890      # so weak that their functioning should not be impacted.
3891      am__obj=conftest.${OBJEXT-o}
3892      am__minus_obj=
3893      ;;
3894    none) break ;;
3895    esac
3896    if depmode=$depmode \
3897       source=sub/conftest.c object=$am__obj \
3898       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3900         >/dev/null 2>conftest.err &&
3901       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3902       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3904       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905      # icc doesn't choke on unknown options, it will just issue warnings
3906      # or remarks (even with -Werror).  So we grep stderr for any message
3907      # that says an option was ignored or not supported.
3908      # When given -MP, icc 7.0 and 7.1 complain thusly:
3909      #   icc: Command line warning: ignoring option '-M'; no argument required
3910      # The diagnosis changed in icc 8.0:
3911      #   icc: Command line remark: option '-MP' not supported
3912      if (grep 'ignoring option' conftest.err ||
3913          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914        am_cv_CC_dependencies_compiler_type=$depmode
3915        break
3916      fi
3917    fi
3918  done
3919
3920  cd ..
3921  rm -rf conftest.dir
3922else
3923  am_cv_CC_dependencies_compiler_type=none
3924fi
3925
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3928$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3929CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3930
3931 if
3932  test "x$enable_dependency_tracking" != xno \
3933  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3934  am__fastdepCC_TRUE=
3935  am__fastdepCC_FALSE='#'
3936else
3937  am__fastdepCC_TRUE='#'
3938  am__fastdepCC_FALSE=
3939fi
3940
3941
3942   case $ac_cv_prog_cc_stdc in #(
3943  no) :
3944    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3945  *) :
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3947$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3948if ${ac_cv_prog_cc_c99+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  ac_cv_prog_cc_c99=no
3952ac_save_CC=$CC
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955#include <stdarg.h>
3956#include <stdbool.h>
3957#include <stdlib.h>
3958#include <wchar.h>
3959#include <stdio.h>
3960
3961// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3962#define debug(...) fprintf (stderr, __VA_ARGS__)
3963#define showlist(...) puts (#__VA_ARGS__)
3964#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3965static void
3966test_varargs_macros (void)
3967{
3968  int x = 1234;
3969  int y = 5678;
3970  debug ("Flag");
3971  debug ("X = %d\n", x);
3972  showlist (The first, second, and third items.);
3973  report (x>y, "x is %d but y is %d", x, y);
3974}
3975
3976// Check long long types.
3977#define BIG64 18446744073709551615ull
3978#define BIG32 4294967295ul
3979#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3980#if !BIG_OK
3981  your preprocessor is broken;
3982#endif
3983#if BIG_OK
3984#else
3985  your preprocessor is broken;
3986#endif
3987static long long int bignum = -9223372036854775807LL;
3988static unsigned long long int ubignum = BIG64;
3989
3990struct incomplete_array
3991{
3992  int datasize;
3993  double data[];
3994};
3995
3996struct named_init {
3997  int number;
3998  const wchar_t *name;
3999  double average;
4000};
4001
4002typedef const char *ccp;
4003
4004static inline int
4005test_restrict (ccp restrict text)
4006{
4007  // See if C++-style comments work.
4008  // Iterate through items via the restricted pointer.
4009  // Also check for declarations in for loops.
4010  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4011    continue;
4012  return 0;
4013}
4014
4015// Check varargs and va_copy.
4016static void
4017test_varargs (const char *format, ...)
4018{
4019  va_list args;
4020  va_start (args, format);
4021  va_list args_copy;
4022  va_copy (args_copy, args);
4023
4024  const char *str;
4025  int number;
4026  float fnumber;
4027
4028  while (*format)
4029    {
4030      switch (*format++)
4031	{
4032	case 's': // string
4033	  str = va_arg (args_copy, const char *);
4034	  break;
4035	case 'd': // int
4036	  number = va_arg (args_copy, int);
4037	  break;
4038	case 'f': // float
4039	  fnumber = va_arg (args_copy, double);
4040	  break;
4041	default:
4042	  break;
4043	}
4044    }
4045  va_end (args_copy);
4046  va_end (args);
4047}
4048
4049int
4050main ()
4051{
4052
4053  // Check bool.
4054  _Bool success = false;
4055
4056  // Check restrict.
4057  if (test_restrict ("String literal") == 0)
4058    success = true;
4059  char *restrict newvar = "Another string";
4060
4061  // Check varargs.
4062  test_varargs ("s, d' f .", "string", 65, 34.234);
4063  test_varargs_macros ();
4064
4065  // Check flexible array members.
4066  struct incomplete_array *ia =
4067    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4068  ia->datasize = 10;
4069  for (int i = 0; i < ia->datasize; ++i)
4070    ia->data[i] = i * 1.234;
4071
4072  // Check named initializers.
4073  struct named_init ni = {
4074    .number = 34,
4075    .name = L"Test wide string",
4076    .average = 543.34343,
4077  };
4078
4079  ni.number = 58;
4080
4081  int dynamic_array[ni.number];
4082  dynamic_array[ni.number - 1] = 543;
4083
4084  // work around unused variable warnings
4085  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4086	  || dynamic_array[ni.number - 1] != 543);
4087
4088  ;
4089  return 0;
4090}
4091_ACEOF
4092for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4093do
4094  CC="$ac_save_CC $ac_arg"
4095  if ac_fn_c_try_compile "$LINENO"; then :
4096  ac_cv_prog_cc_c99=$ac_arg
4097fi
4098rm -f core conftest.err conftest.$ac_objext
4099  test "x$ac_cv_prog_cc_c99" != "xno" && break
4100done
4101rm -f conftest.$ac_ext
4102CC=$ac_save_CC
4103
4104fi
4105# AC_CACHE_VAL
4106case "x$ac_cv_prog_cc_c99" in
4107  x)
4108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4109$as_echo "none needed" >&6; } ;;
4110  xno)
4111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4112$as_echo "unsupported" >&6; } ;;
4113  *)
4114    CC="$CC $ac_cv_prog_cc_c99"
4115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4116$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4117esac
4118if test "x$ac_cv_prog_cc_c99" != xno; then :
4119  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4120else
4121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123if ${ac_cv_prog_cc_c89+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  ac_cv_prog_cc_c89=no
4127ac_save_CC=$CC
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <stdarg.h>
4131#include <stdio.h>
4132struct stat;
4133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134struct buf { int x; };
4135FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136static char *e (p, i)
4137     char **p;
4138     int i;
4139{
4140  return p[i];
4141}
4142static char *f (char * (*g) (char **, int), char **p, ...)
4143{
4144  char *s;
4145  va_list v;
4146  va_start (v,p);
4147  s = g (p, va_arg (v,int));
4148  va_end (v);
4149  return s;
4150}
4151
4152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153   function prototypes and stuff, but not '\xHH' hex character constants.
4154   These don't provoke an error unfortunately, instead are silently treated
4155   as 'x'.  The following induces an error, until -std is added to get
4156   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157   array size at least.  It's necessary to write '\x00'==0 to get something
4158   that's true only with -std.  */
4159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162   inside strings and character constants.  */
4163#define FOO(x) 'x'
4164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166int test (int i, double x);
4167struct s1 {int (*f) (int a);};
4168struct s2 {int (*f) (double a);};
4169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170int argc;
4171char **argv;
4172int
4173main ()
4174{
4175return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182do
4183  CC="$ac_save_CC $ac_arg"
4184  if ac_fn_c_try_compile "$LINENO"; then :
4185  ac_cv_prog_cc_c89=$ac_arg
4186fi
4187rm -f core conftest.err conftest.$ac_objext
4188  test "x$ac_cv_prog_cc_c89" != "xno" && break
4189done
4190rm -f conftest.$ac_ext
4191CC=$ac_save_CC
4192
4193fi
4194# AC_CACHE_VAL
4195case "x$ac_cv_prog_cc_c89" in
4196  x)
4197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198$as_echo "none needed" >&6; } ;;
4199  xno)
4200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201$as_echo "unsupported" >&6; } ;;
4202  *)
4203    CC="$CC $ac_cv_prog_cc_c89"
4204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206esac
4207if test "x$ac_cv_prog_cc_c89" != xno; then :
4208  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4209else
4210  ac_cv_prog_cc_stdc=no
4211fi
4212
4213fi
4214 ;;
4215esac
4216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4217$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4218  if ${ac_cv_prog_cc_stdc+:} false; then :
4219  $as_echo_n "(cached) " >&6
4220fi
4221
4222  case $ac_cv_prog_cc_stdc in #(
4223  no) :
4224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4225$as_echo "unsupported" >&6; } ;; #(
4226  '') :
4227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228$as_echo "none needed" >&6; } ;; #(
4229  *) :
4230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4231$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4232esac
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240$as_echo_n "checking how to run the C preprocessor... " >&6; }
4241# On Suns, sometimes $CPP names a directory.
4242if test -n "$CPP" && test -d "$CPP"; then
4243  CPP=
4244fi
4245if test -z "$CPP"; then
4246  if ${ac_cv_prog_CPP+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249      # Double quotes because CPP needs to be expanded
4250    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4251    do
4252      ac_preproc_ok=false
4253for ac_c_preproc_warn_flag in '' yes
4254do
4255  # Use a header file that comes with gcc, so configuring glibc
4256  # with a fresh cross-compiler works.
4257  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258  # <limits.h> exists even on freestanding compilers.
4259  # On the NeXT, cc -E runs the code through the compiler's parser,
4260  # not just through cpp. "Syntax error" is here to catch this case.
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263#ifdef __STDC__
4264# include <limits.h>
4265#else
4266# include <assert.h>
4267#endif
4268		     Syntax error
4269_ACEOF
4270if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272else
4273  # Broken: fails on valid input.
4274continue
4275fi
4276rm -f conftest.err conftest.i conftest.$ac_ext
4277
4278  # OK, works on sane cases.  Now check whether nonexistent headers
4279  # can be detected and how.
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282#include <ac_nonexistent.h>
4283_ACEOF
4284if ac_fn_c_try_cpp "$LINENO"; then :
4285  # Broken: success on invalid input.
4286continue
4287else
4288  # Passes both tests.
4289ac_preproc_ok=:
4290break
4291fi
4292rm -f conftest.err conftest.i conftest.$ac_ext
4293
4294done
4295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296rm -f conftest.i conftest.err conftest.$ac_ext
4297if $ac_preproc_ok; then :
4298  break
4299fi
4300
4301    done
4302    ac_cv_prog_CPP=$CPP
4303
4304fi
4305  CPP=$ac_cv_prog_CPP
4306else
4307  ac_cv_prog_CPP=$CPP
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310$as_echo "$CPP" >&6; }
4311ac_preproc_ok=false
4312for ac_c_preproc_warn_flag in '' yes
4313do
4314  # Use a header file that comes with gcc, so configuring glibc
4315  # with a fresh cross-compiler works.
4316  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317  # <limits.h> exists even on freestanding compilers.
4318  # On the NeXT, cc -E runs the code through the compiler's parser,
4319  # not just through cpp. "Syntax error" is here to catch this case.
4320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322#ifdef __STDC__
4323# include <limits.h>
4324#else
4325# include <assert.h>
4326#endif
4327		     Syntax error
4328_ACEOF
4329if ac_fn_c_try_cpp "$LINENO"; then :
4330
4331else
4332  # Broken: fails on valid input.
4333continue
4334fi
4335rm -f conftest.err conftest.i conftest.$ac_ext
4336
4337  # OK, works on sane cases.  Now check whether nonexistent headers
4338  # can be detected and how.
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341#include <ac_nonexistent.h>
4342_ACEOF
4343if ac_fn_c_try_cpp "$LINENO"; then :
4344  # Broken: success on invalid input.
4345continue
4346else
4347  # Passes both tests.
4348ac_preproc_ok=:
4349break
4350fi
4351rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353done
4354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355rm -f conftest.i conftest.err conftest.$ac_ext
4356if $ac_preproc_ok; then :
4357
4358else
4359  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362See \`config.log' for more details" "$LINENO" 5; }
4363fi
4364
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4374$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4375if ${ac_cv_path_GREP+:} false; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  if test -z "$GREP"; then
4379  ac_path_GREP_found=false
4380  # Loop through the user's path and test for each of PROGNAME-LIST
4381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386    for ac_prog in grep ggrep; do
4387    for ac_exec_ext in '' $ac_executable_extensions; do
4388      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4389      as_fn_executable_p "$ac_path_GREP" || continue
4390# Check for GNU ac_path_GREP and select it if it is found.
4391  # Check for GNU $ac_path_GREP
4392case `"$ac_path_GREP" --version 2>&1` in
4393*GNU*)
4394  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4395*)
4396  ac_count=0
4397  $as_echo_n 0123456789 >"conftest.in"
4398  while :
4399  do
4400    cat "conftest.in" "conftest.in" >"conftest.tmp"
4401    mv "conftest.tmp" "conftest.in"
4402    cp "conftest.in" "conftest.nl"
4403    $as_echo 'GREP' >> "conftest.nl"
4404    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406    as_fn_arith $ac_count + 1 && ac_count=$as_val
4407    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4408      # Best one so far, save it but keep looking for a better one
4409      ac_cv_path_GREP="$ac_path_GREP"
4410      ac_path_GREP_max=$ac_count
4411    fi
4412    # 10*(2^10) chars as input seems more than enough
4413    test $ac_count -gt 10 && break
4414  done
4415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416esac
4417
4418      $ac_path_GREP_found && break 3
4419    done
4420  done
4421  done
4422IFS=$as_save_IFS
4423  if test -z "$ac_cv_path_GREP"; then
4424    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425  fi
4426else
4427  ac_cv_path_GREP=$GREP
4428fi
4429
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4432$as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4434
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4437$as_echo_n "checking for egrep... " >&6; }
4438if ${ac_cv_path_EGREP+:} false; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442   then ac_cv_path_EGREP="$GREP -E"
4443   else
4444     if test -z "$EGREP"; then
4445  ac_path_EGREP_found=false
4446  # Loop through the user's path and test for each of PROGNAME-LIST
4447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452    for ac_prog in egrep; do
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4455      as_fn_executable_p "$ac_path_EGREP" || continue
4456# Check for GNU ac_path_EGREP and select it if it is found.
4457  # Check for GNU $ac_path_EGREP
4458case `"$ac_path_EGREP" --version 2>&1` in
4459*GNU*)
4460  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4461*)
4462  ac_count=0
4463  $as_echo_n 0123456789 >"conftest.in"
4464  while :
4465  do
4466    cat "conftest.in" "conftest.in" >"conftest.tmp"
4467    mv "conftest.tmp" "conftest.in"
4468    cp "conftest.in" "conftest.nl"
4469    $as_echo 'EGREP' >> "conftest.nl"
4470    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472    as_fn_arith $ac_count + 1 && ac_count=$as_val
4473    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474      # Best one so far, save it but keep looking for a better one
4475      ac_cv_path_EGREP="$ac_path_EGREP"
4476      ac_path_EGREP_max=$ac_count
4477    fi
4478    # 10*(2^10) chars as input seems more than enough
4479    test $ac_count -gt 10 && break
4480  done
4481  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482esac
4483
4484      $ac_path_EGREP_found && break 3
4485    done
4486  done
4487  done
4488IFS=$as_save_IFS
4489  if test -z "$ac_cv_path_EGREP"; then
4490    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491  fi
4492else
4493  ac_cv_path_EGREP=$EGREP
4494fi
4495
4496   fi
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4499$as_echo "$ac_cv_path_EGREP" >&6; }
4500 EGREP="$ac_cv_path_EGREP"
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4504$as_echo_n "checking for ANSI C header files... " >&6; }
4505if ${ac_cv_header_stdc+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510#include <stdlib.h>
4511#include <stdarg.h>
4512#include <string.h>
4513#include <float.h>
4514
4515int
4516main ()
4517{
4518
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523if ac_fn_c_try_compile "$LINENO"; then :
4524  ac_cv_header_stdc=yes
4525else
4526  ac_cv_header_stdc=no
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529
4530if test $ac_cv_header_stdc = yes; then
4531  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534#include <string.h>
4535
4536_ACEOF
4537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538  $EGREP "memchr" >/dev/null 2>&1; then :
4539
4540else
4541  ac_cv_header_stdc=no
4542fi
4543rm -f conftest*
4544
4545fi
4546
4547if test $ac_cv_header_stdc = yes; then
4548  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551#include <stdlib.h>
4552
4553_ACEOF
4554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555  $EGREP "free" >/dev/null 2>&1; then :
4556
4557else
4558  ac_cv_header_stdc=no
4559fi
4560rm -f conftest*
4561
4562fi
4563
4564if test $ac_cv_header_stdc = yes; then
4565  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4566  if test "$cross_compiling" = yes; then :
4567  :
4568else
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571#include <ctype.h>
4572#include <stdlib.h>
4573#if ((' ' & 0x0FF) == 0x020)
4574# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576#else
4577# define ISLOWER(c) \
4578		   (('a' <= (c) && (c) <= 'i') \
4579		     || ('j' <= (c) && (c) <= 'r') \
4580		     || ('s' <= (c) && (c) <= 'z'))
4581# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4582#endif
4583
4584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4585int
4586main ()
4587{
4588  int i;
4589  for (i = 0; i < 256; i++)
4590    if (XOR (islower (i), ISLOWER (i))
4591	|| toupper (i) != TOUPPER (i))
4592      return 2;
4593  return 0;
4594}
4595_ACEOF
4596if ac_fn_c_try_run "$LINENO"; then :
4597
4598else
4599  ac_cv_header_stdc=no
4600fi
4601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4602  conftest.$ac_objext conftest.beam conftest.$ac_ext
4603fi
4604
4605fi
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4608$as_echo "$ac_cv_header_stdc" >&6; }
4609if test $ac_cv_header_stdc = yes; then
4610
4611$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4612
4613fi
4614
4615# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4617		  inttypes.h stdint.h unistd.h
4618do :
4619  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4620ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4621"
4622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4623  cat >>confdefs.h <<_ACEOF
4624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625_ACEOF
4626
4627fi
4628
4629done
4630
4631
4632
4633  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4634if test "x$ac_cv_header_minix_config_h" = xyes; then :
4635  MINIX=yes
4636else
4637  MINIX=
4638fi
4639
4640
4641  if test "$MINIX" = yes; then
4642
4643$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4644
4645
4646$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4647
4648
4649$as_echo "#define _MINIX 1" >>confdefs.h
4650
4651  fi
4652
4653
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4655$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4656if ${ac_cv_safe_to_define___extensions__+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662#         define __EXTENSIONS__ 1
4663          $ac_includes_default
4664int
4665main ()
4666{
4667
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_compile "$LINENO"; then :
4673  ac_cv_safe_to_define___extensions__=yes
4674else
4675  ac_cv_safe_to_define___extensions__=no
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4680$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4681  test $ac_cv_safe_to_define___extensions__ = yes &&
4682    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4683
4684  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4685
4686  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4687
4688  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4689
4690  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4691
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4695$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4696if ${ac_cv_c_const+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701
4702int
4703main ()
4704{
4705
4706#ifndef __cplusplus
4707  /* Ultrix mips cc rejects this sort of thing.  */
4708  typedef int charset[2];
4709  const charset cs = { 0, 0 };
4710  /* SunOS 4.1.1 cc rejects this.  */
4711  char const *const *pcpcc;
4712  char **ppc;
4713  /* NEC SVR4.0.2 mips cc rejects this.  */
4714  struct point {int x, y;};
4715  static struct point const zero = {0,0};
4716  /* AIX XL C 1.02.0.0 rejects this.
4717     It does not let you subtract one const X* pointer from another in
4718     an arm of an if-expression whose if-part is not a constant
4719     expression */
4720  const char *g = "string";
4721  pcpcc = &g + (g ? g-g : 0);
4722  /* HPUX 7.0 cc rejects these. */
4723  ++pcpcc;
4724  ppc = (char**) pcpcc;
4725  pcpcc = (char const *const *) ppc;
4726  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4727    char tx;
4728    char *t = &tx;
4729    char const *s = 0 ? (char *) 0 : (char const *) 0;
4730
4731    *t++ = 0;
4732    if (s) return 0;
4733  }
4734  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4735    int x[] = {25, 17};
4736    const int *foo = &x[0];
4737    ++foo;
4738  }
4739  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4740    typedef const int *iptr;
4741    iptr p = 0;
4742    ++p;
4743  }
4744  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4745       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4746    struct s { int j; const int *ap[3]; } bx;
4747    struct s *b = &bx; b->j = 5;
4748  }
4749  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4750    const int foo = 10;
4751    if (!foo) return 0;
4752  }
4753  return !cs[0] && !zero.x;
4754#endif
4755
4756  ;
4757  return 0;
4758}
4759_ACEOF
4760if ac_fn_c_try_compile "$LINENO"; then :
4761  ac_cv_c_const=yes
4762else
4763  ac_cv_c_const=no
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4768$as_echo "$ac_cv_c_const" >&6; }
4769if test $ac_cv_c_const = no; then
4770
4771$as_echo "#define const /**/" >>confdefs.h
4772
4773fi
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4776$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4777if ${ac_cv_c_restrict+:} false; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780  ac_cv_c_restrict=no
4781   # The order here caters to the fact that C++ does not require restrict.
4782   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785typedef int * int_ptr;
4786	int foo (int_ptr $ac_kw ip) {
4787	return ip[0];
4788       }
4789int
4790main ()
4791{
4792int s[1];
4793	int * $ac_kw t = s;
4794	t[0] = 0;
4795	return foo(t)
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800if ac_fn_c_try_compile "$LINENO"; then :
4801  ac_cv_c_restrict=$ac_kw
4802fi
4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804     test "$ac_cv_c_restrict" != no && break
4805   done
4806
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4809$as_echo "$ac_cv_c_restrict" >&6; }
4810
4811 case $ac_cv_c_restrict in
4812   restrict) ;;
4813   no) $as_echo "#define restrict /**/" >>confdefs.h
4814 ;;
4815   *)  cat >>confdefs.h <<_ACEOF
4816#define restrict $ac_cv_c_restrict
4817_ACEOF
4818 ;;
4819 esac
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4822$as_echo_n "checking for working volatile... " >&6; }
4823if ${ac_cv_c_volatile+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827/* end confdefs.h.  */
4828
4829int
4830main ()
4831{
4832
4833volatile int x;
4834int * volatile y = (int *) 0;
4835return !x && !y;
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840if ac_fn_c_try_compile "$LINENO"; then :
4841  ac_cv_c_volatile=yes
4842else
4843  ac_cv_c_volatile=no
4844fi
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4848$as_echo "$ac_cv_c_volatile" >&6; }
4849if test $ac_cv_c_volatile = no; then
4850
4851$as_echo "#define volatile /**/" >>confdefs.h
4852
4853fi
4854
4855
4856# libtool
4857
4858case `pwd` in
4859  *\ * | *\	*)
4860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4861$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4862esac
4863
4864
4865
4866macro_version='2.4.6'
4867macro_revision='2.4.6'
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881ltmain=$ac_aux_dir/ltmain.sh
4882
4883# Make sure we can run config.sub.
4884$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4885  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4888$as_echo_n "checking build system type... " >&6; }
4889if ${ac_cv_build+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  ac_build_alias=$build_alias
4893test "x$ac_build_alias" = x &&
4894  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4895test "x$ac_build_alias" = x &&
4896  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4897ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4898  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4899
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4902$as_echo "$ac_cv_build" >&6; }
4903case $ac_cv_build in
4904*-*-*) ;;
4905*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4906esac
4907build=$ac_cv_build
4908ac_save_IFS=$IFS; IFS='-'
4909set x $ac_cv_build
4910shift
4911build_cpu=$1
4912build_vendor=$2
4913shift; shift
4914# Remember, the first character of IFS is used to create $*,
4915# except with old shells:
4916build_os=$*
4917IFS=$ac_save_IFS
4918case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4919
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4922$as_echo_n "checking host system type... " >&6; }
4923if ${ac_cv_host+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  if test "x$host_alias" = x; then
4927  ac_cv_host=$ac_cv_build
4928else
4929  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4930    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4931fi
4932
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4935$as_echo "$ac_cv_host" >&6; }
4936case $ac_cv_host in
4937*-*-*) ;;
4938*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4939esac
4940host=$ac_cv_host
4941ac_save_IFS=$IFS; IFS='-'
4942set x $ac_cv_host
4943shift
4944host_cpu=$1
4945host_vendor=$2
4946shift; shift
4947# Remember, the first character of IFS is used to create $*,
4948# except with old shells:
4949host_os=$*
4950IFS=$ac_save_IFS
4951case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4952
4953
4954# Backslashify metacharacters that are still active within
4955# double-quoted strings.
4956sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4957
4958# Same as above, but do not quote variable references.
4959double_quote_subst='s/\(["`\\]\)/\\\1/g'
4960
4961# Sed substitution to delay expansion of an escaped shell variable in a
4962# double_quote_subst'ed string.
4963delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4964
4965# Sed substitution to delay expansion of an escaped single quote.
4966delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4967
4968# Sed substitution to avoid accidental globbing in evaled expressions
4969no_glob_subst='s/\*/\\\*/g'
4970
4971ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4972ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4973ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4974
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4976$as_echo_n "checking how to print strings... " >&6; }
4977# Test print first, because it will be a builtin if present.
4978if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4979   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4980  ECHO='print -r --'
4981elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4982  ECHO='printf %s\n'
4983else
4984  # Use this function as a fallback that always works.
4985  func_fallback_echo ()
4986  {
4987    eval 'cat <<_LTECHO_EOF
4988$1
4989_LTECHO_EOF'
4990  }
4991  ECHO='func_fallback_echo'
4992fi
4993
4994# func_echo_all arg...
4995# Invoke $ECHO with all args, space-separated.
4996func_echo_all ()
4997{
4998    $ECHO ""
4999}
5000
5001case $ECHO in
5002  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5003$as_echo "printf" >&6; } ;;
5004  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5005$as_echo "print -r" >&6; } ;;
5006  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5007$as_echo "cat" >&6; } ;;
5008esac
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5024$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5025if ${ac_cv_path_SED+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5029     for ac_i in 1 2 3 4 5 6 7; do
5030       ac_script="$ac_script$as_nl$ac_script"
5031     done
5032     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5033     { ac_script=; unset ac_script;}
5034     if test -z "$SED"; then
5035  ac_path_SED_found=false
5036  # Loop through the user's path and test for each of PROGNAME-LIST
5037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  test -z "$as_dir" && as_dir=.
5042    for ac_prog in sed gsed; do
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5045      as_fn_executable_p "$ac_path_SED" || continue
5046# Check for GNU ac_path_SED and select it if it is found.
5047  # Check for GNU $ac_path_SED
5048case `"$ac_path_SED" --version 2>&1` in
5049*GNU*)
5050  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5051*)
5052  ac_count=0
5053  $as_echo_n 0123456789 >"conftest.in"
5054  while :
5055  do
5056    cat "conftest.in" "conftest.in" >"conftest.tmp"
5057    mv "conftest.tmp" "conftest.in"
5058    cp "conftest.in" "conftest.nl"
5059    $as_echo '' >> "conftest.nl"
5060    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5061    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5062    as_fn_arith $ac_count + 1 && ac_count=$as_val
5063    if test $ac_count -gt ${ac_path_SED_max-0}; then
5064      # Best one so far, save it but keep looking for a better one
5065      ac_cv_path_SED="$ac_path_SED"
5066      ac_path_SED_max=$ac_count
5067    fi
5068    # 10*(2^10) chars as input seems more than enough
5069    test $ac_count -gt 10 && break
5070  done
5071  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5072esac
5073
5074      $ac_path_SED_found && break 3
5075    done
5076  done
5077  done
5078IFS=$as_save_IFS
5079  if test -z "$ac_cv_path_SED"; then
5080    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5081  fi
5082else
5083  ac_cv_path_SED=$SED
5084fi
5085
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5088$as_echo "$ac_cv_path_SED" >&6; }
5089 SED="$ac_cv_path_SED"
5090  rm -f conftest.sed
5091
5092test -z "$SED" && SED=sed
5093Xsed="$SED -e 1s/^X//"
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5106$as_echo_n "checking for fgrep... " >&6; }
5107if ${ac_cv_path_FGREP+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5111   then ac_cv_path_FGREP="$GREP -F"
5112   else
5113     if test -z "$FGREP"; then
5114  ac_path_FGREP_found=false
5115  # Loop through the user's path and test for each of PROGNAME-LIST
5116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118do
5119  IFS=$as_save_IFS
5120  test -z "$as_dir" && as_dir=.
5121    for ac_prog in fgrep; do
5122    for ac_exec_ext in '' $ac_executable_extensions; do
5123      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5124      as_fn_executable_p "$ac_path_FGREP" || continue
5125# Check for GNU ac_path_FGREP and select it if it is found.
5126  # Check for GNU $ac_path_FGREP
5127case `"$ac_path_FGREP" --version 2>&1` in
5128*GNU*)
5129  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5130*)
5131  ac_count=0
5132  $as_echo_n 0123456789 >"conftest.in"
5133  while :
5134  do
5135    cat "conftest.in" "conftest.in" >"conftest.tmp"
5136    mv "conftest.tmp" "conftest.in"
5137    cp "conftest.in" "conftest.nl"
5138    $as_echo 'FGREP' >> "conftest.nl"
5139    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141    as_fn_arith $ac_count + 1 && ac_count=$as_val
5142    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5143      # Best one so far, save it but keep looking for a better one
5144      ac_cv_path_FGREP="$ac_path_FGREP"
5145      ac_path_FGREP_max=$ac_count
5146    fi
5147    # 10*(2^10) chars as input seems more than enough
5148    test $ac_count -gt 10 && break
5149  done
5150  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151esac
5152
5153      $ac_path_FGREP_found && break 3
5154    done
5155  done
5156  done
5157IFS=$as_save_IFS
5158  if test -z "$ac_cv_path_FGREP"; then
5159    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160  fi
5161else
5162  ac_cv_path_FGREP=$FGREP
5163fi
5164
5165   fi
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5168$as_echo "$ac_cv_path_FGREP" >&6; }
5169 FGREP="$ac_cv_path_FGREP"
5170
5171
5172test -z "$GREP" && GREP=grep
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192# Check whether --with-gnu-ld was given.
5193if test "${with_gnu_ld+set}" = set; then :
5194  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5195else
5196  with_gnu_ld=no
5197fi
5198
5199ac_prog=ld
5200if test yes = "$GCC"; then
5201  # Check if gcc -print-prog-name=ld gives a path.
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5203$as_echo_n "checking for ld used by $CC... " >&6; }
5204  case $host in
5205  *-*-mingw*)
5206    # gcc leaves a trailing carriage return, which upsets mingw
5207    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5208  *)
5209    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5210  esac
5211  case $ac_prog in
5212    # Accept absolute paths.
5213    [\\/]* | ?:[\\/]*)
5214      re_direlt='/[^/][^/]*/\.\./'
5215      # Canonicalize the pathname of ld
5216      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5217      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5218	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5219      done
5220      test -z "$LD" && LD=$ac_prog
5221      ;;
5222  "")
5223    # If it fails, then pretend we aren't using GCC.
5224    ac_prog=ld
5225    ;;
5226  *)
5227    # If it is relative, then search for the first ld in PATH.
5228    with_gnu_ld=unknown
5229    ;;
5230  esac
5231elif test yes = "$with_gnu_ld"; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5233$as_echo_n "checking for GNU ld... " >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5236$as_echo_n "checking for non-GNU ld... " >&6; }
5237fi
5238if ${lt_cv_path_LD+:} false; then :
5239  $as_echo_n "(cached) " >&6
5240else
5241  if test -z "$LD"; then
5242  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5243  for ac_dir in $PATH; do
5244    IFS=$lt_save_ifs
5245    test -z "$ac_dir" && ac_dir=.
5246    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5247      lt_cv_path_LD=$ac_dir/$ac_prog
5248      # Check to see if the program is GNU ld.  I'd rather use --version,
5249      # but apparently some variants of GNU ld only accept -v.
5250      # Break only if it was the GNU/non-GNU ld that we prefer.
5251      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5252      *GNU* | *'with BFD'*)
5253	test no != "$with_gnu_ld" && break
5254	;;
5255      *)
5256	test yes != "$with_gnu_ld" && break
5257	;;
5258      esac
5259    fi
5260  done
5261  IFS=$lt_save_ifs
5262else
5263  lt_cv_path_LD=$LD # Let the user override the test with a path.
5264fi
5265fi
5266
5267LD=$lt_cv_path_LD
5268if test -n "$LD"; then
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5270$as_echo "$LD" >&6; }
5271else
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5277$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5278if ${lt_cv_prog_gnu_ld+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5282case `$LD -v 2>&1 </dev/null` in
5283*GNU* | *'with BFD'*)
5284  lt_cv_prog_gnu_ld=yes
5285  ;;
5286*)
5287  lt_cv_prog_gnu_ld=no
5288  ;;
5289esac
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5292$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5293with_gnu_ld=$lt_cv_prog_gnu_ld
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5304$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5305if ${lt_cv_path_NM+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if test -n "$NM"; then
5309  # Let the user override the test.
5310  lt_cv_path_NM=$NM
5311else
5312  lt_nm_to_check=${ac_tool_prefix}nm
5313  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5314    lt_nm_to_check="$lt_nm_to_check nm"
5315  fi
5316  for lt_tmp_nm in $lt_nm_to_check; do
5317    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5318    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5319      IFS=$lt_save_ifs
5320      test -z "$ac_dir" && ac_dir=.
5321      tmp_nm=$ac_dir/$lt_tmp_nm
5322      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5323	# Check to see if the nm accepts a BSD-compat flag.
5324	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5325	#   nm: unknown option "B" ignored
5326	# Tru64's nm complains that /dev/null is an invalid object file
5327	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5328	case $build_os in
5329	mingw*) lt_bad_file=conftest.nm/nofile ;;
5330	*) lt_bad_file=/dev/null ;;
5331	esac
5332	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5333	*$lt_bad_file* | *'Invalid file or object type'*)
5334	  lt_cv_path_NM="$tmp_nm -B"
5335	  break 2
5336	  ;;
5337	*)
5338	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5339	  */dev/null*)
5340	    lt_cv_path_NM="$tmp_nm -p"
5341	    break 2
5342	    ;;
5343	  *)
5344	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5345	    continue # so that we can try to find one that supports BSD flags
5346	    ;;
5347	  esac
5348	  ;;
5349	esac
5350      fi
5351    done
5352    IFS=$lt_save_ifs
5353  done
5354  : ${lt_cv_path_NM=no}
5355fi
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5358$as_echo "$lt_cv_path_NM" >&6; }
5359if test no != "$lt_cv_path_NM"; then
5360  NM=$lt_cv_path_NM
5361else
5362  # Didn't find any BSD compatible name lister, look for dumpbin.
5363  if test -n "$DUMPBIN"; then :
5364    # Let the user override the test.
5365  else
5366    if test -n "$ac_tool_prefix"; then
5367  for ac_prog in dumpbin "link -dump"
5368  do
5369    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5370set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372$as_echo_n "checking for $ac_word... " >&6; }
5373if ${ac_cv_prog_DUMPBIN+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  if test -n "$DUMPBIN"; then
5377  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382  IFS=$as_save_IFS
5383  test -z "$as_dir" && as_dir=.
5384    for ac_exec_ext in '' $ac_executable_extensions; do
5385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391  done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396DUMPBIN=$ac_cv_prog_DUMPBIN
5397if test -n "$DUMPBIN"; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5399$as_echo "$DUMPBIN" >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402$as_echo "no" >&6; }
5403fi
5404
5405
5406    test -n "$DUMPBIN" && break
5407  done
5408fi
5409if test -z "$DUMPBIN"; then
5410  ac_ct_DUMPBIN=$DUMPBIN
5411  for ac_prog in dumpbin "link -dump"
5412do
5413  # Extract the first word of "$ac_prog", so it can be a program name with args.
5414set dummy $ac_prog; ac_word=$2
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416$as_echo_n "checking for $ac_word... " >&6; }
5417if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  if test -n "$ac_ct_DUMPBIN"; then
5421  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426  IFS=$as_save_IFS
5427  test -z "$as_dir" && as_dir=.
5428    for ac_exec_ext in '' $ac_executable_extensions; do
5429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432    break 2
5433  fi
5434done
5435  done
5436IFS=$as_save_IFS
5437
5438fi
5439fi
5440ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5441if test -n "$ac_ct_DUMPBIN"; then
5442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5443$as_echo "$ac_ct_DUMPBIN" >&6; }
5444else
5445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447fi
5448
5449
5450  test -n "$ac_ct_DUMPBIN" && break
5451done
5452
5453  if test "x$ac_ct_DUMPBIN" = x; then
5454    DUMPBIN=":"
5455  else
5456    case $cross_compiling:$ac_tool_warned in
5457yes:)
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460ac_tool_warned=yes ;;
5461esac
5462    DUMPBIN=$ac_ct_DUMPBIN
5463  fi
5464fi
5465
5466    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5467    *COFF*)
5468      DUMPBIN="$DUMPBIN -symbols -headers"
5469      ;;
5470    *)
5471      DUMPBIN=:
5472      ;;
5473    esac
5474  fi
5475
5476  if test : != "$DUMPBIN"; then
5477    NM=$DUMPBIN
5478  fi
5479fi
5480test -z "$NM" && NM=nm
5481
5482
5483
5484
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5488$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5489if ${lt_cv_nm_interface+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  lt_cv_nm_interface="BSD nm"
5493  echo "int some_variable = 0;" > conftest.$ac_ext
5494  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5495  (eval "$ac_compile" 2>conftest.err)
5496  cat conftest.err >&5
5497  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5498  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5499  cat conftest.err >&5
5500  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5501  cat conftest.out >&5
5502  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5503    lt_cv_nm_interface="MS dumpbin"
5504  fi
5505  rm -f conftest*
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5508$as_echo "$lt_cv_nm_interface" >&6; }
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5511$as_echo_n "checking whether ln -s works... " >&6; }
5512LN_S=$as_ln_s
5513if test "$LN_S" = "ln -s"; then
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515$as_echo "yes" >&6; }
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5518$as_echo "no, using $LN_S" >&6; }
5519fi
5520
5521# find the maximum length of command line arguments
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5523$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5524if ${lt_cv_sys_max_cmd_len+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527    i=0
5528  teststring=ABCD
5529
5530  case $build_os in
5531  msdosdjgpp*)
5532    # On DJGPP, this test can blow up pretty badly due to problems in libc
5533    # (any single argument exceeding 2000 bytes causes a buffer overrun
5534    # during glob expansion).  Even if it were fixed, the result of this
5535    # check would be larger than it should be.
5536    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5537    ;;
5538
5539  gnu*)
5540    # Under GNU Hurd, this test is not required because there is
5541    # no limit to the length of command line arguments.
5542    # Libtool will interpret -1 as no limit whatsoever
5543    lt_cv_sys_max_cmd_len=-1;
5544    ;;
5545
5546  cygwin* | mingw* | cegcc*)
5547    # On Win9x/ME, this test blows up -- it succeeds, but takes
5548    # about 5 minutes as the teststring grows exponentially.
5549    # Worse, since 9x/ME are not pre-emptively multitasking,
5550    # you end up with a "frozen" computer, even though with patience
5551    # the test eventually succeeds (with a max line length of 256k).
5552    # Instead, let's just punt: use the minimum linelength reported by
5553    # all of the supported platforms: 8192 (on NT/2K/XP).
5554    lt_cv_sys_max_cmd_len=8192;
5555    ;;
5556
5557  mint*)
5558    # On MiNT this can take a long time and run out of memory.
5559    lt_cv_sys_max_cmd_len=8192;
5560    ;;
5561
5562  amigaos*)
5563    # On AmigaOS with pdksh, this test takes hours, literally.
5564    # So we just punt and use a minimum line length of 8192.
5565    lt_cv_sys_max_cmd_len=8192;
5566    ;;
5567
5568  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5569    # This has been around since 386BSD, at least.  Likely further.
5570    if test -x /sbin/sysctl; then
5571      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5572    elif test -x /usr/sbin/sysctl; then
5573      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5574    else
5575      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5576    fi
5577    # And add a safety zone
5578    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5580    ;;
5581
5582  interix*)
5583    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5584    lt_cv_sys_max_cmd_len=196608
5585    ;;
5586
5587  os2*)
5588    # The test takes a long time on OS/2.
5589    lt_cv_sys_max_cmd_len=8192
5590    ;;
5591
5592  osf*)
5593    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5594    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5595    # nice to cause kernel panics so lets avoid the loop below.
5596    # First set a reasonable default.
5597    lt_cv_sys_max_cmd_len=16384
5598    #
5599    if test -x /sbin/sysconfig; then
5600      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5601        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5602      esac
5603    fi
5604    ;;
5605  sco3.2v5*)
5606    lt_cv_sys_max_cmd_len=102400
5607    ;;
5608  sysv5* | sco5v6* | sysv4.2uw2*)
5609    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5610    if test -n "$kargmax"; then
5611      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5612    else
5613      lt_cv_sys_max_cmd_len=32768
5614    fi
5615    ;;
5616  *)
5617    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5618    if test -n "$lt_cv_sys_max_cmd_len" && \
5619       test undefined != "$lt_cv_sys_max_cmd_len"; then
5620      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5622    else
5623      # Make teststring a little bigger before we do anything with it.
5624      # a 1K string should be a reasonable start.
5625      for i in 1 2 3 4 5 6 7 8; do
5626        teststring=$teststring$teststring
5627      done
5628      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5629      # If test is not a shell built-in, we'll probably end up computing a
5630      # maximum length that is only half of the actual maximum length, but
5631      # we can't tell.
5632      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5633	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5634	      test 17 != "$i" # 1/2 MB should be enough
5635      do
5636        i=`expr $i + 1`
5637        teststring=$teststring$teststring
5638      done
5639      # Only check the string length outside the loop.
5640      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5641      teststring=
5642      # Add a significant safety factor because C++ compilers can tack on
5643      # massive amounts of additional arguments before passing them to the
5644      # linker.  It appears as though 1/2 is a usable value.
5645      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5646    fi
5647    ;;
5648  esac
5649
5650fi
5651
5652if test -n "$lt_cv_sys_max_cmd_len"; then
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5654$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5655else
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5657$as_echo "none" >&6; }
5658fi
5659max_cmd_len=$lt_cv_sys_max_cmd_len
5660
5661
5662
5663
5664
5665
5666: ${CP="cp -f"}
5667: ${MV="mv -f"}
5668: ${RM="rm -f"}
5669
5670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5671  lt_unset=unset
5672else
5673  lt_unset=false
5674fi
5675
5676
5677
5678
5679
5680# test EBCDIC or ASCII
5681case `echo X|tr X '\101'` in
5682 A) # ASCII based system
5683    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5684  lt_SP2NL='tr \040 \012'
5685  lt_NL2SP='tr \015\012 \040\040'
5686  ;;
5687 *) # EBCDIC based system
5688  lt_SP2NL='tr \100 \n'
5689  lt_NL2SP='tr \r\n \100\100'
5690  ;;
5691esac
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5702$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5703if ${lt_cv_to_host_file_cmd+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  case $host in
5707  *-*-mingw* )
5708    case $build in
5709      *-*-mingw* ) # actually msys
5710        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5711        ;;
5712      *-*-cygwin* )
5713        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5714        ;;
5715      * ) # otherwise, assume *nix
5716        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5717        ;;
5718    esac
5719    ;;
5720  *-*-cygwin* )
5721    case $build in
5722      *-*-mingw* ) # actually msys
5723        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5724        ;;
5725      *-*-cygwin* )
5726        lt_cv_to_host_file_cmd=func_convert_file_noop
5727        ;;
5728      * ) # otherwise, assume *nix
5729        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5730        ;;
5731    esac
5732    ;;
5733  * ) # unhandled hosts (and "normal" native builds)
5734    lt_cv_to_host_file_cmd=func_convert_file_noop
5735    ;;
5736esac
5737
5738fi
5739
5740to_host_file_cmd=$lt_cv_to_host_file_cmd
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5742$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5743
5744
5745
5746
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5749$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5750if ${lt_cv_to_tool_file_cmd+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  #assume ordinary cross tools, or native build.
5754lt_cv_to_tool_file_cmd=func_convert_file_noop
5755case $host in
5756  *-*-mingw* )
5757    case $build in
5758      *-*-mingw* ) # actually msys
5759        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5760        ;;
5761    esac
5762    ;;
5763esac
5764
5765fi
5766
5767to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5769$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5770
5771
5772
5773
5774
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5776$as_echo_n "checking for $LD option to reload object files... " >&6; }
5777if ${lt_cv_ld_reload_flag+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780  lt_cv_ld_reload_flag='-r'
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5783$as_echo "$lt_cv_ld_reload_flag" >&6; }
5784reload_flag=$lt_cv_ld_reload_flag
5785case $reload_flag in
5786"" | " "*) ;;
5787*) reload_flag=" $reload_flag" ;;
5788esac
5789reload_cmds='$LD$reload_flag -o $output$reload_objs'
5790case $host_os in
5791  cygwin* | mingw* | pw32* | cegcc*)
5792    if test yes != "$GCC"; then
5793      reload_cmds=false
5794    fi
5795    ;;
5796  darwin*)
5797    if test yes = "$GCC"; then
5798      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5799    else
5800      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5801    fi
5802    ;;
5803esac
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813if test -n "$ac_tool_prefix"; then
5814  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}objdump; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if ${ac_cv_prog_OBJDUMP+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test -n "$OBJDUMP"; then
5822  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841OBJDUMP=$ac_cv_prog_OBJDUMP
5842if test -n "$OBJDUMP"; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5844$as_echo "$OBJDUMP" >&6; }
5845else
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851fi
5852if test -z "$ac_cv_prog_OBJDUMP"; then
5853  ac_ct_OBJDUMP=$OBJDUMP
5854  # Extract the first word of "objdump", so it can be a program name with args.
5855set dummy objdump; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
5858if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  if test -n "$ac_ct_OBJDUMP"; then
5862  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867  IFS=$as_save_IFS
5868  test -z "$as_dir" && as_dir=.
5869    for ac_exec_ext in '' $ac_executable_extensions; do
5870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873    break 2
5874  fi
5875done
5876  done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5882if test -n "$ac_ct_OBJDUMP"; then
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5884$as_echo "$ac_ct_OBJDUMP" >&6; }
5885else
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890  if test "x$ac_ct_OBJDUMP" = x; then
5891    OBJDUMP="false"
5892  else
5893    case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899    OBJDUMP=$ac_ct_OBJDUMP
5900  fi
5901else
5902  OBJDUMP="$ac_cv_prog_OBJDUMP"
5903fi
5904
5905test -z "$OBJDUMP" && OBJDUMP=objdump
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5916$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5917if ${lt_cv_deplibs_check_method+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  lt_cv_file_magic_cmd='$MAGIC_CMD'
5921lt_cv_file_magic_test_file=
5922lt_cv_deplibs_check_method='unknown'
5923# Need to set the preceding variable on all platforms that support
5924# interlibrary dependencies.
5925# 'none' -- dependencies not supported.
5926# 'unknown' -- same as none, but documents that we really don't know.
5927# 'pass_all' -- all dependencies passed with no checks.
5928# 'test_compile' -- check by making test program.
5929# 'file_magic [[regex]]' -- check by looking for files in library path
5930# that responds to the $file_magic_cmd with a given extended regex.
5931# If you have 'file' or equivalent on your system and you're not sure
5932# whether 'pass_all' will *always* work, you probably want this one.
5933
5934case $host_os in
5935aix[4-9]*)
5936  lt_cv_deplibs_check_method=pass_all
5937  ;;
5938
5939beos*)
5940  lt_cv_deplibs_check_method=pass_all
5941  ;;
5942
5943bsdi[45]*)
5944  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5945  lt_cv_file_magic_cmd='/usr/bin/file -L'
5946  lt_cv_file_magic_test_file=/shlib/libc.so
5947  ;;
5948
5949cygwin*)
5950  # func_win32_libid is a shell function defined in ltmain.sh
5951  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5952  lt_cv_file_magic_cmd='func_win32_libid'
5953  ;;
5954
5955mingw* | pw32*)
5956  # Base MSYS/MinGW do not provide the 'file' command needed by
5957  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5958  # unless we find 'file', for example because we are cross-compiling.
5959  if ( file / ) >/dev/null 2>&1; then
5960    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961    lt_cv_file_magic_cmd='func_win32_libid'
5962  else
5963    # Keep this pattern in sync with the one in func_win32_libid.
5964    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5965    lt_cv_file_magic_cmd='$OBJDUMP -f'
5966  fi
5967  ;;
5968
5969cegcc*)
5970  # use the weaker test based on 'objdump'. See mingw*.
5971  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5972  lt_cv_file_magic_cmd='$OBJDUMP -f'
5973  ;;
5974
5975darwin* | rhapsody*)
5976  lt_cv_deplibs_check_method=pass_all
5977  ;;
5978
5979freebsd* | dragonfly*)
5980  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5981    case $host_cpu in
5982    i*86 )
5983      # Not sure whether the presence of OpenBSD here was a mistake.
5984      # Let's accept both of them until this is cleared up.
5985      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5986      lt_cv_file_magic_cmd=/usr/bin/file
5987      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5988      ;;
5989    esac
5990  else
5991    lt_cv_deplibs_check_method=pass_all
5992  fi
5993  ;;
5994
5995haiku*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998
5999hpux10.20* | hpux11*)
6000  lt_cv_file_magic_cmd=/usr/bin/file
6001  case $host_cpu in
6002  ia64*)
6003    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6004    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6005    ;;
6006  hppa*64*)
6007    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]'
6008    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6009    ;;
6010  *)
6011    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6012    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6013    ;;
6014  esac
6015  ;;
6016
6017interix[3-9]*)
6018  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6019  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6020  ;;
6021
6022irix5* | irix6* | nonstopux*)
6023  case $LD in
6024  *-32|*"-32 ") libmagic=32-bit;;
6025  *-n32|*"-n32 ") libmagic=N32;;
6026  *-64|*"-64 ") libmagic=64-bit;;
6027  *) libmagic=never-match;;
6028  esac
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032# This must be glibc/ELF.
6033linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037netbsd*)
6038  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6039    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6040  else
6041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6042  fi
6043  ;;
6044
6045newos6*)
6046  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6047  lt_cv_file_magic_cmd=/usr/bin/file
6048  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6049  ;;
6050
6051*nto* | *qnx*)
6052  lt_cv_deplibs_check_method=pass_all
6053  ;;
6054
6055openbsd* | bitrig*)
6056  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6057    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6058  else
6059    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6060  fi
6061  ;;
6062
6063osf3* | osf4* | osf5*)
6064  lt_cv_deplibs_check_method=pass_all
6065  ;;
6066
6067rdos*)
6068  lt_cv_deplibs_check_method=pass_all
6069  ;;
6070
6071solaris*)
6072  lt_cv_deplibs_check_method=pass_all
6073  ;;
6074
6075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6076  lt_cv_deplibs_check_method=pass_all
6077  ;;
6078
6079sysv4 | sysv4.3*)
6080  case $host_vendor in
6081  motorola)
6082    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]'
6083    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6084    ;;
6085  ncr)
6086    lt_cv_deplibs_check_method=pass_all
6087    ;;
6088  sequent)
6089    lt_cv_file_magic_cmd='/bin/file'
6090    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6091    ;;
6092  sni)
6093    lt_cv_file_magic_cmd='/bin/file'
6094    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6095    lt_cv_file_magic_test_file=/lib/libc.so
6096    ;;
6097  siemens)
6098    lt_cv_deplibs_check_method=pass_all
6099    ;;
6100  pc)
6101    lt_cv_deplibs_check_method=pass_all
6102    ;;
6103  esac
6104  ;;
6105
6106tpf*)
6107  lt_cv_deplibs_check_method=pass_all
6108  ;;
6109os2*)
6110  lt_cv_deplibs_check_method=pass_all
6111  ;;
6112esac
6113
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6116$as_echo "$lt_cv_deplibs_check_method" >&6; }
6117
6118file_magic_glob=
6119want_nocaseglob=no
6120if test "$build" = "$host"; then
6121  case $host_os in
6122  mingw* | pw32*)
6123    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6124      want_nocaseglob=yes
6125    else
6126      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6127    fi
6128    ;;
6129  esac
6130fi
6131
6132file_magic_cmd=$lt_cv_file_magic_cmd
6133deplibs_check_method=$lt_cv_deplibs_check_method
6134test -z "$deplibs_check_method" && deplibs_check_method=unknown
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157if test -n "$ac_tool_prefix"; then
6158  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6159set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161$as_echo_n "checking for $ac_word... " >&6; }
6162if ${ac_cv_prog_DLLTOOL+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if test -n "$DLLTOOL"; then
6166  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171  IFS=$as_save_IFS
6172  test -z "$as_dir" && as_dir=.
6173    for ac_exec_ext in '' $ac_executable_extensions; do
6174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177    break 2
6178  fi
6179done
6180  done
6181IFS=$as_save_IFS
6182
6183fi
6184fi
6185DLLTOOL=$ac_cv_prog_DLLTOOL
6186if test -n "$DLLTOOL"; then
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6188$as_echo "$DLLTOOL" >&6; }
6189else
6190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191$as_echo "no" >&6; }
6192fi
6193
6194
6195fi
6196if test -z "$ac_cv_prog_DLLTOOL"; then
6197  ac_ct_DLLTOOL=$DLLTOOL
6198  # Extract the first word of "dlltool", so it can be a program name with args.
6199set dummy dlltool; ac_word=$2
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201$as_echo_n "checking for $ac_word... " >&6; }
6202if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  if test -n "$ac_ct_DLLTOOL"; then
6206  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6207else
6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH
6210do
6211  IFS=$as_save_IFS
6212  test -z "$as_dir" && as_dir=.
6213    for ac_exec_ext in '' $ac_executable_extensions; do
6214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217    break 2
6218  fi
6219done
6220  done
6221IFS=$as_save_IFS
6222
6223fi
6224fi
6225ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6226if test -n "$ac_ct_DLLTOOL"; then
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6228$as_echo "$ac_ct_DLLTOOL" >&6; }
6229else
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231$as_echo "no" >&6; }
6232fi
6233
6234  if test "x$ac_ct_DLLTOOL" = x; then
6235    DLLTOOL="false"
6236  else
6237    case $cross_compiling:$ac_tool_warned in
6238yes:)
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241ac_tool_warned=yes ;;
6242esac
6243    DLLTOOL=$ac_ct_DLLTOOL
6244  fi
6245else
6246  DLLTOOL="$ac_cv_prog_DLLTOOL"
6247fi
6248
6249test -z "$DLLTOOL" && DLLTOOL=dlltool
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6261$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6262if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  lt_cv_sharedlib_from_linklib_cmd='unknown'
6266
6267case $host_os in
6268cygwin* | mingw* | pw32* | cegcc*)
6269  # two different shell functions defined in ltmain.sh;
6270  # decide which one to use based on capabilities of $DLLTOOL
6271  case `$DLLTOOL --help 2>&1` in
6272  *--identify-strict*)
6273    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6274    ;;
6275  *)
6276    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6277    ;;
6278  esac
6279  ;;
6280*)
6281  # fallback: assume linklib IS sharedlib
6282  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6283  ;;
6284esac
6285
6286fi
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6288$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6289sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6290test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6291
6292
6293
6294
6295
6296
6297
6298if test -n "$ac_tool_prefix"; then
6299  for ac_prog in ar
6300  do
6301    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if ${ac_cv_prog_AR+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  if test -n "$AR"; then
6309  ac_cv_prog_AR="$AR" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314  IFS=$as_save_IFS
6315  test -z "$as_dir" && as_dir=.
6316    for ac_exec_ext in '' $ac_executable_extensions; do
6317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320    break 2
6321  fi
6322done
6323  done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328AR=$ac_cv_prog_AR
6329if test -n "$AR"; then
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6331$as_echo "$AR" >&6; }
6332else
6333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338    test -n "$AR" && break
6339  done
6340fi
6341if test -z "$AR"; then
6342  ac_ct_AR=$AR
6343  for ac_prog in ar
6344do
6345  # Extract the first word of "$ac_prog", so it can be a program name with args.
6346set dummy $ac_prog; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_ac_ct_AR+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  if test -n "$ac_ct_AR"; then
6353  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    for ac_exec_ext in '' $ac_executable_extensions; do
6361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_ac_ct_AR="$ac_prog"
6363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367  done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372ac_ct_AR=$ac_cv_prog_ac_ct_AR
6373if test -n "$ac_ct_AR"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6375$as_echo "$ac_ct_AR" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382  test -n "$ac_ct_AR" && break
6383done
6384
6385  if test "x$ac_ct_AR" = x; then
6386    AR="false"
6387  else
6388    case $cross_compiling:$ac_tool_warned in
6389yes:)
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392ac_tool_warned=yes ;;
6393esac
6394    AR=$ac_ct_AR
6395  fi
6396fi
6397
6398: ${AR=ar}
6399: ${AR_FLAGS=cru}
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6412$as_echo_n "checking for archiver @FILE support... " >&6; }
6413if ${lt_cv_ar_at_file+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  lt_cv_ar_at_file=no
6417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419
6420int
6421main ()
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_c_try_compile "$LINENO"; then :
6429  echo conftest.$ac_objext > conftest.lst
6430      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6431      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6432  (eval $lt_ar_try) 2>&5
6433  ac_status=$?
6434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435  test $ac_status = 0; }
6436      if test 0 -eq "$ac_status"; then
6437	# Ensure the archiver fails upon bogus file names.
6438	rm -f conftest.$ac_objext libconftest.a
6439	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6440  (eval $lt_ar_try) 2>&5
6441  ac_status=$?
6442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443  test $ac_status = 0; }
6444	if test 0 -ne "$ac_status"; then
6445          lt_cv_ar_at_file=@
6446        fi
6447      fi
6448      rm -f conftest.* libconftest.a
6449
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6455$as_echo "$lt_cv_ar_at_file" >&6; }
6456
6457if test no = "$lt_cv_ar_at_file"; then
6458  archiver_list_spec=
6459else
6460  archiver_list_spec=$lt_cv_ar_at_file
6461fi
6462
6463
6464
6465
6466
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}strip; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_STRIP+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$STRIP"; then
6478  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497STRIP=$ac_cv_prog_STRIP
6498if test -n "$STRIP"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6500$as_echo "$STRIP" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_STRIP"; then
6509  ac_ct_STRIP=$STRIP
6510  # Extract the first word of "strip", so it can be a program name with args.
6511set dummy strip; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_STRIP"; then
6518  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527    ac_cv_prog_ac_ct_STRIP="strip"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6538if test -n "$ac_ct_STRIP"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6540$as_echo "$ac_ct_STRIP" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_STRIP" = x; then
6547    STRIP=":"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    STRIP=$ac_ct_STRIP
6556  fi
6557else
6558  STRIP="$ac_cv_prog_STRIP"
6559fi
6560
6561test -z "$STRIP" && STRIP=:
6562
6563
6564
6565
6566
6567
6568if test -n "$ac_tool_prefix"; then
6569  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if ${ac_cv_prog_RANLIB+:} false; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  if test -n "$RANLIB"; then
6577  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584    for ac_exec_ext in '' $ac_executable_extensions; do
6585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591  done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596RANLIB=$ac_cv_prog_RANLIB
6597if test -n "$RANLIB"; then
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6599$as_echo "$RANLIB" >&6; }
6600else
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
6603fi
6604
6605
6606fi
6607if test -z "$ac_cv_prog_RANLIB"; then
6608  ac_ct_RANLIB=$RANLIB
6609  # Extract the first word of "ranlib", so it can be a program name with args.
6610set dummy ranlib; ac_word=$2
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612$as_echo_n "checking for $ac_word... " >&6; }
6613if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  if test -n "$ac_ct_RANLIB"; then
6617  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622  IFS=$as_save_IFS
6623  test -z "$as_dir" && as_dir=.
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626    ac_cv_prog_ac_ct_RANLIB="ranlib"
6627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637if test -n "$ac_ct_RANLIB"; then
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6639$as_echo "$ac_ct_RANLIB" >&6; }
6640else
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
6644
6645  if test "x$ac_ct_RANLIB" = x; then
6646    RANLIB=":"
6647  else
6648    case $cross_compiling:$ac_tool_warned in
6649yes:)
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652ac_tool_warned=yes ;;
6653esac
6654    RANLIB=$ac_ct_RANLIB
6655  fi
6656else
6657  RANLIB="$ac_cv_prog_RANLIB"
6658fi
6659
6660test -z "$RANLIB" && RANLIB=:
6661
6662
6663
6664
6665
6666
6667# Determine commands to create old-style static archives.
6668old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6669old_postinstall_cmds='chmod 644 $oldlib'
6670old_postuninstall_cmds=
6671
6672if test -n "$RANLIB"; then
6673  case $host_os in
6674  bitrig* | openbsd*)
6675    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6676    ;;
6677  *)
6678    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6679    ;;
6680  esac
6681  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6682fi
6683
6684case $host_os in
6685  darwin*)
6686    lock_old_archive_extraction=yes ;;
6687  *)
6688    lock_old_archive_extraction=no ;;
6689esac
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729# If no C compiler was specified, use CC.
6730LTCC=${LTCC-"$CC"}
6731
6732# If no C compiler flags were specified, use CFLAGS.
6733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6734
6735# Allow CC to be a program name with arguments.
6736compiler=$CC
6737
6738
6739# Check for command to grab the raw symbol name followed by C symbol from nm.
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6741$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6742if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745
6746# These are sane defaults that work on at least a few old systems.
6747# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6748
6749# Character class describing NM global symbol codes.
6750symcode='[BCDEGRST]'
6751
6752# Regexp to match symbols that can be accessed directly from C.
6753sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6754
6755# Define system-specific variables.
6756case $host_os in
6757aix*)
6758  symcode='[BCDT]'
6759  ;;
6760cygwin* | mingw* | pw32* | cegcc*)
6761  symcode='[ABCDGISTW]'
6762  ;;
6763hpux*)
6764  if test ia64 = "$host_cpu"; then
6765    symcode='[ABCDEGRST]'
6766  fi
6767  ;;
6768irix* | nonstopux*)
6769  symcode='[BCDEGRST]'
6770  ;;
6771osf*)
6772  symcode='[BCDEGQRST]'
6773  ;;
6774solaris*)
6775  symcode='[BDRT]'
6776  ;;
6777sco3.2v5*)
6778  symcode='[DT]'
6779  ;;
6780sysv4.2uw2*)
6781  symcode='[DT]'
6782  ;;
6783sysv5* | sco5v6* | unixware* | OpenUNIX*)
6784  symcode='[ABDT]'
6785  ;;
6786sysv4)
6787  symcode='[DFNSTU]'
6788  ;;
6789esac
6790
6791# If we're using GNU nm, then use its standard symbol codes.
6792case `$NM -V 2>&1` in
6793*GNU* | *'with BFD'*)
6794  symcode='[ABCDGIRSTW]' ;;
6795esac
6796
6797if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6798  # Gets list of data symbols to import.
6799  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6800  # Adjust the below global symbol transforms to fixup imported variables.
6801  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6802  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6803  lt_c_name_lib_hook="\
6804  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6805  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6806else
6807  # Disable hooks by default.
6808  lt_cv_sys_global_symbol_to_import=
6809  lt_cdecl_hook=
6810  lt_c_name_hook=
6811  lt_c_name_lib_hook=
6812fi
6813
6814# Transform an extracted symbol line into a proper C declaration.
6815# Some systems (esp. on ia64) link data and code symbols differently,
6816# so use this general approach.
6817lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6818$lt_cdecl_hook\
6819" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6820" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6821
6822# Transform an extracted symbol line into symbol name and symbol address
6823lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6824$lt_c_name_hook\
6825" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6826" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6827
6828# Transform an extracted symbol line into symbol name with lib prefix and
6829# symbol address.
6830lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6831$lt_c_name_lib_hook\
6832" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6833" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6834" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6835
6836# Handle CRLF in mingw tool chain
6837opt_cr=
6838case $build_os in
6839mingw*)
6840  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6841  ;;
6842esac
6843
6844# Try without a prefix underscore, then with it.
6845for ac_symprfx in "" "_"; do
6846
6847  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6848  symxfrm="\\1 $ac_symprfx\\2 \\2"
6849
6850  # Write the raw and C identifiers.
6851  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6852    # Fake it for dumpbin and say T for any non-static function,
6853    # D for any global variable and I for any imported variable.
6854    # Also find C++ and __fastcall symbols from MSVC++,
6855    # which start with @ or ?.
6856    lt_cv_sys_global_symbol_pipe="$AWK '"\
6857"     {last_section=section; section=\$ 3};"\
6858"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6859"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6860"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6861"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6862"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6863"     \$ 0!~/External *\|/{next};"\
6864"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6865"     {if(hide[section]) next};"\
6866"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6867"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6868"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6869"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6870"     ' prfx=^$ac_symprfx"
6871  else
6872    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873  fi
6874  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6875
6876  # Check to see that the pipe works correctly.
6877  pipe_works=no
6878
6879  rm -f conftest*
6880  cat > conftest.$ac_ext <<_LT_EOF
6881#ifdef __cplusplus
6882extern "C" {
6883#endif
6884char nm_test_var;
6885void nm_test_func(void);
6886void nm_test_func(void){}
6887#ifdef __cplusplus
6888}
6889#endif
6890int main(){nm_test_var='a';nm_test_func();return(0);}
6891_LT_EOF
6892
6893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894  (eval $ac_compile) 2>&5
6895  ac_status=$?
6896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897  test $ac_status = 0; }; then
6898    # Now try to grab the symbols.
6899    nlist=conftest.nm
6900    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6901  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6902  ac_status=$?
6903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904  test $ac_status = 0; } && test -s "$nlist"; then
6905      # Try sorting and uniquifying the output.
6906      if sort "$nlist" | uniq > "$nlist"T; then
6907	mv -f "$nlist"T "$nlist"
6908      else
6909	rm -f "$nlist"T
6910      fi
6911
6912      # Make sure that we snagged all the symbols we need.
6913      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915	  cat <<_LT_EOF > conftest.$ac_ext
6916/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6917#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6918/* DATA imports from DLLs on WIN32 can't be const, because runtime
6919   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6920# define LT_DLSYM_CONST
6921#elif defined __osf__
6922/* This system does not cope well with relocations in const data.  */
6923# define LT_DLSYM_CONST
6924#else
6925# define LT_DLSYM_CONST const
6926#endif
6927
6928#ifdef __cplusplus
6929extern "C" {
6930#endif
6931
6932_LT_EOF
6933	  # Now generate the symbol file.
6934	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6935
6936	  cat <<_LT_EOF >> conftest.$ac_ext
6937
6938/* The mapping between symbol names and symbols.  */
6939LT_DLSYM_CONST struct {
6940  const char *name;
6941  void       *address;
6942}
6943lt__PROGRAM__LTX_preloaded_symbols[] =
6944{
6945  { "@PROGRAM@", (void *) 0 },
6946_LT_EOF
6947	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6948	  cat <<\_LT_EOF >> conftest.$ac_ext
6949  {0, (void *) 0}
6950};
6951
6952/* This works around a problem in FreeBSD linker */
6953#ifdef FREEBSD_WORKAROUND
6954static const void *lt_preloaded_setup() {
6955  return lt__PROGRAM__LTX_preloaded_symbols;
6956}
6957#endif
6958
6959#ifdef __cplusplus
6960}
6961#endif
6962_LT_EOF
6963	  # Now try linking the two files.
6964	  mv conftest.$ac_objext conftstm.$ac_objext
6965	  lt_globsym_save_LIBS=$LIBS
6966	  lt_globsym_save_CFLAGS=$CFLAGS
6967	  LIBS=conftstm.$ac_objext
6968	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6969	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6970  (eval $ac_link) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6974	    pipe_works=yes
6975	  fi
6976	  LIBS=$lt_globsym_save_LIBS
6977	  CFLAGS=$lt_globsym_save_CFLAGS
6978	else
6979	  echo "cannot find nm_test_func in $nlist" >&5
6980	fi
6981      else
6982	echo "cannot find nm_test_var in $nlist" >&5
6983      fi
6984    else
6985      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6986    fi
6987  else
6988    echo "$progname: failed program was:" >&5
6989    cat conftest.$ac_ext >&5
6990  fi
6991  rm -rf conftest* conftst*
6992
6993  # Do not use the global_symbol_pipe unless it works.
6994  if test yes = "$pipe_works"; then
6995    break
6996  else
6997    lt_cv_sys_global_symbol_pipe=
6998  fi
6999done
7000
7001fi
7002
7003if test -z "$lt_cv_sys_global_symbol_pipe"; then
7004  lt_cv_sys_global_symbol_to_cdecl=
7005fi
7006if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7008$as_echo "failed" >&6; }
7009else
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7011$as_echo "ok" >&6; }
7012fi
7013
7014# Response file support.
7015if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016  nm_file_list_spec='@'
7017elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7018  nm_file_list_spec='@'
7019fi
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7058$as_echo_n "checking for sysroot... " >&6; }
7059
7060# Check whether --with-sysroot was given.
7061if test "${with_sysroot+set}" = set; then :
7062  withval=$with_sysroot;
7063else
7064  with_sysroot=no
7065fi
7066
7067
7068lt_sysroot=
7069case $with_sysroot in #(
7070 yes)
7071   if test yes = "$GCC"; then
7072     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7073   fi
7074   ;; #(
7075 /*)
7076   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7077   ;; #(
7078 no|'')
7079   ;; #(
7080 *)
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7082$as_echo "$with_sysroot" >&6; }
7083   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7084   ;;
7085esac
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7088$as_echo "${lt_sysroot:-no}" >&6; }
7089
7090
7091
7092
7093
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7095$as_echo_n "checking for a working dd... " >&6; }
7096if ${ac_cv_path_lt_DD+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  printf 0123456789abcdef0123456789abcdef >conftest.i
7100cat conftest.i conftest.i >conftest2.i
7101: ${lt_DD:=$DD}
7102if test -z "$lt_DD"; then
7103  ac_path_lt_DD_found=false
7104  # Loop through the user's path and test for each of PROGNAME-LIST
7105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_prog in dd; do
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7113      as_fn_executable_p "$ac_path_lt_DD" || continue
7114if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7115  cmp -s conftest.i conftest.out \
7116  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7117fi
7118      $ac_path_lt_DD_found && break 3
7119    done
7120  done
7121  done
7122IFS=$as_save_IFS
7123  if test -z "$ac_cv_path_lt_DD"; then
7124    :
7125  fi
7126else
7127  ac_cv_path_lt_DD=$lt_DD
7128fi
7129
7130rm -f conftest.i conftest2.i conftest.out
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7133$as_echo "$ac_cv_path_lt_DD" >&6; }
7134
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7137$as_echo_n "checking how to truncate binary pipes... " >&6; }
7138if ${lt_cv_truncate_bin+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  printf 0123456789abcdef0123456789abcdef >conftest.i
7142cat conftest.i conftest.i >conftest2.i
7143lt_cv_truncate_bin=
7144if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7145  cmp -s conftest.i conftest.out \
7146  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7147fi
7148rm -f conftest.i conftest2.i conftest.out
7149test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7152$as_echo "$lt_cv_truncate_bin" >&6; }
7153
7154
7155
7156
7157
7158
7159
7160# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7161func_cc_basename ()
7162{
7163    for cc_temp in $*""; do
7164      case $cc_temp in
7165        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7166        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7167        \-*) ;;
7168        *) break;;
7169      esac
7170    done
7171    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7172}
7173
7174# Check whether --enable-libtool-lock was given.
7175if test "${enable_libtool_lock+set}" = set; then :
7176  enableval=$enable_libtool_lock;
7177fi
7178
7179test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7180
7181# Some flags need to be propagated to the compiler or linker for good
7182# libtool support.
7183case $host in
7184ia64-*-hpux*)
7185  # Find out what ABI is being produced by ac_compile, and set mode
7186  # options accordingly.
7187  echo 'int i;' > conftest.$ac_ext
7188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189  (eval $ac_compile) 2>&5
7190  ac_status=$?
7191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192  test $ac_status = 0; }; then
7193    case `/usr/bin/file conftest.$ac_objext` in
7194      *ELF-32*)
7195	HPUX_IA64_MODE=32
7196	;;
7197      *ELF-64*)
7198	HPUX_IA64_MODE=64
7199	;;
7200    esac
7201  fi
7202  rm -rf conftest*
7203  ;;
7204*-*-irix6*)
7205  # Find out what ABI is being produced by ac_compile, and set linker
7206  # options accordingly.
7207  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209  (eval $ac_compile) 2>&5
7210  ac_status=$?
7211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212  test $ac_status = 0; }; then
7213    if test yes = "$lt_cv_prog_gnu_ld"; then
7214      case `/usr/bin/file conftest.$ac_objext` in
7215	*32-bit*)
7216	  LD="${LD-ld} -melf32bsmip"
7217	  ;;
7218	*N32*)
7219	  LD="${LD-ld} -melf32bmipn32"
7220	  ;;
7221	*64-bit*)
7222	  LD="${LD-ld} -melf64bmip"
7223	;;
7224      esac
7225    else
7226      case `/usr/bin/file conftest.$ac_objext` in
7227	*32-bit*)
7228	  LD="${LD-ld} -32"
7229	  ;;
7230	*N32*)
7231	  LD="${LD-ld} -n32"
7232	  ;;
7233	*64-bit*)
7234	  LD="${LD-ld} -64"
7235	  ;;
7236      esac
7237    fi
7238  fi
7239  rm -rf conftest*
7240  ;;
7241
7242mips64*-*linux*)
7243  # Find out what ABI is being produced by ac_compile, and set linker
7244  # options accordingly.
7245  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247  (eval $ac_compile) 2>&5
7248  ac_status=$?
7249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250  test $ac_status = 0; }; then
7251    emul=elf
7252    case `/usr/bin/file conftest.$ac_objext` in
7253      *32-bit*)
7254	emul="${emul}32"
7255	;;
7256      *64-bit*)
7257	emul="${emul}64"
7258	;;
7259    esac
7260    case `/usr/bin/file conftest.$ac_objext` in
7261      *MSB*)
7262	emul="${emul}btsmip"
7263	;;
7264      *LSB*)
7265	emul="${emul}ltsmip"
7266	;;
7267    esac
7268    case `/usr/bin/file conftest.$ac_objext` in
7269      *N32*)
7270	emul="${emul}n32"
7271	;;
7272    esac
7273    LD="${LD-ld} -m $emul"
7274  fi
7275  rm -rf conftest*
7276  ;;
7277
7278x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7279s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7280  # Find out what ABI is being produced by ac_compile, and set linker
7281  # options accordingly.  Note that the listed cases only cover the
7282  # situations where additional linker options are needed (such as when
7283  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7284  # vice versa); the common cases where no linker options are needed do
7285  # not appear in the list.
7286  echo 'int i;' > conftest.$ac_ext
7287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288  (eval $ac_compile) 2>&5
7289  ac_status=$?
7290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291  test $ac_status = 0; }; then
7292    case `/usr/bin/file conftest.o` in
7293      *32-bit*)
7294	case $host in
7295	  x86_64-*kfreebsd*-gnu)
7296	    LD="${LD-ld} -m elf_i386_fbsd"
7297	    ;;
7298	  x86_64-*linux*)
7299	    case `/usr/bin/file conftest.o` in
7300	      *x86-64*)
7301		LD="${LD-ld} -m elf32_x86_64"
7302		;;
7303	      *)
7304		LD="${LD-ld} -m elf_i386"
7305		;;
7306	    esac
7307	    ;;
7308	  powerpc64le-*linux*)
7309	    LD="${LD-ld} -m elf32lppclinux"
7310	    ;;
7311	  powerpc64-*linux*)
7312	    LD="${LD-ld} -m elf32ppclinux"
7313	    ;;
7314	  s390x-*linux*)
7315	    LD="${LD-ld} -m elf_s390"
7316	    ;;
7317	  sparc64-*linux*)
7318	    LD="${LD-ld} -m elf32_sparc"
7319	    ;;
7320	esac
7321	;;
7322      *64-bit*)
7323	case $host in
7324	  x86_64-*kfreebsd*-gnu)
7325	    LD="${LD-ld} -m elf_x86_64_fbsd"
7326	    ;;
7327	  x86_64-*linux*)
7328	    LD="${LD-ld} -m elf_x86_64"
7329	    ;;
7330	  powerpcle-*linux*)
7331	    LD="${LD-ld} -m elf64lppc"
7332	    ;;
7333	  powerpc-*linux*)
7334	    LD="${LD-ld} -m elf64ppc"
7335	    ;;
7336	  s390*-*linux*|s390*-*tpf*)
7337	    LD="${LD-ld} -m elf64_s390"
7338	    ;;
7339	  sparc*-*linux*)
7340	    LD="${LD-ld} -m elf64_sparc"
7341	    ;;
7342	esac
7343	;;
7344    esac
7345  fi
7346  rm -rf conftest*
7347  ;;
7348
7349*-*-sco3.2v5*)
7350  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7351  SAVE_CFLAGS=$CFLAGS
7352  CFLAGS="$CFLAGS -belf"
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7354$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7355if ${lt_cv_cc_needs_belf+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  ac_ext=c
7359ac_cpp='$CPP $CPPFLAGS'
7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366
7367int
7368main ()
7369{
7370
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375if ac_fn_c_try_link "$LINENO"; then :
7376  lt_cv_cc_needs_belf=yes
7377else
7378  lt_cv_cc_needs_belf=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext \
7381    conftest$ac_exeext conftest.$ac_ext
7382     ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7390$as_echo "$lt_cv_cc_needs_belf" >&6; }
7391  if test yes != "$lt_cv_cc_needs_belf"; then
7392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7393    CFLAGS=$SAVE_CFLAGS
7394  fi
7395  ;;
7396*-*solaris*)
7397  # Find out what ABI is being produced by ac_compile, and set linker
7398  # options accordingly.
7399  echo 'int i;' > conftest.$ac_ext
7400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7401  (eval $ac_compile) 2>&5
7402  ac_status=$?
7403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404  test $ac_status = 0; }; then
7405    case `/usr/bin/file conftest.o` in
7406    *64-bit*)
7407      case $lt_cv_prog_gnu_ld in
7408      yes*)
7409        case $host in
7410        i?86-*-solaris*|x86_64-*-solaris*)
7411          LD="${LD-ld} -m elf_x86_64"
7412          ;;
7413        sparc*-*-solaris*)
7414          LD="${LD-ld} -m elf64_sparc"
7415          ;;
7416        esac
7417        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7418        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7419          LD=${LD-ld}_sol2
7420        fi
7421        ;;
7422      *)
7423	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7424	  LD="${LD-ld} -64"
7425	fi
7426	;;
7427      esac
7428      ;;
7429    esac
7430  fi
7431  rm -rf conftest*
7432  ;;
7433esac
7434
7435need_locks=$enable_libtool_lock
7436
7437if test -n "$ac_tool_prefix"; then
7438  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7439set dummy ${ac_tool_prefix}mt; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  if test -n "$MANIFEST_TOOL"; then
7446  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451  IFS=$as_save_IFS
7452  test -z "$as_dir" && as_dir=.
7453    for ac_exec_ext in '' $ac_executable_extensions; do
7454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457    break 2
7458  fi
7459done
7460  done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7466if test -n "$MANIFEST_TOOL"; then
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7468$as_echo "$MANIFEST_TOOL" >&6; }
7469else
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474
7475fi
7476if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7477  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7478  # Extract the first word of "mt", so it can be a program name with args.
7479set dummy mt; ac_word=$2
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  if test -n "$ac_ct_MANIFEST_TOOL"; then
7486  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  test -z "$as_dir" && as_dir=.
7493    for ac_exec_ext in '' $ac_executable_extensions; do
7494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497    break 2
7498  fi
7499done
7500  done
7501IFS=$as_save_IFS
7502
7503fi
7504fi
7505ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7506if test -n "$ac_ct_MANIFEST_TOOL"; then
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7508$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7509else
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
7512fi
7513
7514  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7515    MANIFEST_TOOL=":"
7516  else
7517    case $cross_compiling:$ac_tool_warned in
7518yes:)
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521ac_tool_warned=yes ;;
7522esac
7523    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7524  fi
7525else
7526  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7527fi
7528
7529test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7531$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7532if ${lt_cv_path_mainfest_tool+:} false; then :
7533  $as_echo_n "(cached) " >&6
7534else
7535  lt_cv_path_mainfest_tool=no
7536  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7537  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7538  cat conftest.err >&5
7539  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7540    lt_cv_path_mainfest_tool=yes
7541  fi
7542  rm -f conftest*
7543fi
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7545$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7546if test yes != "$lt_cv_path_mainfest_tool"; then
7547  MANIFEST_TOOL=:
7548fi
7549
7550
7551
7552
7553
7554
7555  case $host_os in
7556    rhapsody* | darwin*)
7557    if test -n "$ac_tool_prefix"; then
7558  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7559set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561$as_echo_n "checking for $ac_word... " >&6; }
7562if ${ac_cv_prog_DSYMUTIL+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  if test -n "$DSYMUTIL"; then
7566  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7567else
7568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571  IFS=$as_save_IFS
7572  test -z "$as_dir" && as_dir=.
7573    for ac_exec_ext in '' $ac_executable_extensions; do
7574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577    break 2
7578  fi
7579done
7580  done
7581IFS=$as_save_IFS
7582
7583fi
7584fi
7585DSYMUTIL=$ac_cv_prog_DSYMUTIL
7586if test -n "$DSYMUTIL"; then
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7588$as_echo "$DSYMUTIL" >&6; }
7589else
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592fi
7593
7594
7595fi
7596if test -z "$ac_cv_prog_DSYMUTIL"; then
7597  ac_ct_DSYMUTIL=$DSYMUTIL
7598  # Extract the first word of "dsymutil", so it can be a program name with args.
7599set dummy dsymutil; ac_word=$2
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601$as_echo_n "checking for $ac_word... " >&6; }
7602if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  if test -n "$ac_ct_DSYMUTIL"; then
7606  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7607else
7608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611  IFS=$as_save_IFS
7612  test -z "$as_dir" && as_dir=.
7613    for ac_exec_ext in '' $ac_executable_extensions; do
7614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617    break 2
7618  fi
7619done
7620  done
7621IFS=$as_save_IFS
7622
7623fi
7624fi
7625ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7626if test -n "$ac_ct_DSYMUTIL"; then
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7628$as_echo "$ac_ct_DSYMUTIL" >&6; }
7629else
7630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
7632fi
7633
7634  if test "x$ac_ct_DSYMUTIL" = x; then
7635    DSYMUTIL=":"
7636  else
7637    case $cross_compiling:$ac_tool_warned in
7638yes:)
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641ac_tool_warned=yes ;;
7642esac
7643    DSYMUTIL=$ac_ct_DSYMUTIL
7644  fi
7645else
7646  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7647fi
7648
7649    if test -n "$ac_tool_prefix"; then
7650  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7651set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653$as_echo_n "checking for $ac_word... " >&6; }
7654if ${ac_cv_prog_NMEDIT+:} false; then :
7655  $as_echo_n "(cached) " >&6
7656else
7657  if test -n "$NMEDIT"; then
7658  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7659else
7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663  IFS=$as_save_IFS
7664  test -z "$as_dir" && as_dir=.
7665    for ac_exec_ext in '' $ac_executable_extensions; do
7666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669    break 2
7670  fi
7671done
7672  done
7673IFS=$as_save_IFS
7674
7675fi
7676fi
7677NMEDIT=$ac_cv_prog_NMEDIT
7678if test -n "$NMEDIT"; then
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7680$as_echo "$NMEDIT" >&6; }
7681else
7682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683$as_echo "no" >&6; }
7684fi
7685
7686
7687fi
7688if test -z "$ac_cv_prog_NMEDIT"; then
7689  ac_ct_NMEDIT=$NMEDIT
7690  # Extract the first word of "nmedit", so it can be a program name with args.
7691set dummy nmedit; ac_word=$2
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  if test -n "$ac_ct_NMEDIT"; then
7698  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703  IFS=$as_save_IFS
7704  test -z "$as_dir" && as_dir=.
7705    for ac_exec_ext in '' $ac_executable_extensions; do
7706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709    break 2
7710  fi
7711done
7712  done
7713IFS=$as_save_IFS
7714
7715fi
7716fi
7717ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7718if test -n "$ac_ct_NMEDIT"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7720$as_echo "$ac_ct_NMEDIT" >&6; }
7721else
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
7725
7726  if test "x$ac_ct_NMEDIT" = x; then
7727    NMEDIT=":"
7728  else
7729    case $cross_compiling:$ac_tool_warned in
7730yes:)
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733ac_tool_warned=yes ;;
7734esac
7735    NMEDIT=$ac_ct_NMEDIT
7736  fi
7737else
7738  NMEDIT="$ac_cv_prog_NMEDIT"
7739fi
7740
7741    if test -n "$ac_tool_prefix"; then
7742  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7743set dummy ${ac_tool_prefix}lipo; ac_word=$2
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745$as_echo_n "checking for $ac_word... " >&6; }
7746if ${ac_cv_prog_LIPO+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  if test -n "$LIPO"; then
7750  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7751else
7752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753for as_dir in $PATH
7754do
7755  IFS=$as_save_IFS
7756  test -z "$as_dir" && as_dir=.
7757    for ac_exec_ext in '' $ac_executable_extensions; do
7758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761    break 2
7762  fi
7763done
7764  done
7765IFS=$as_save_IFS
7766
7767fi
7768fi
7769LIPO=$ac_cv_prog_LIPO
7770if test -n "$LIPO"; then
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7772$as_echo "$LIPO" >&6; }
7773else
7774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776fi
7777
7778
7779fi
7780if test -z "$ac_cv_prog_LIPO"; then
7781  ac_ct_LIPO=$LIPO
7782  # Extract the first word of "lipo", so it can be a program name with args.
7783set dummy lipo; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  if test -n "$ac_ct_LIPO"; then
7790  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  test -z "$as_dir" && as_dir=.
7797    for ac_exec_ext in '' $ac_executable_extensions; do
7798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799    ac_cv_prog_ac_ct_LIPO="lipo"
7800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801    break 2
7802  fi
7803done
7804  done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7810if test -n "$ac_ct_LIPO"; then
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7812$as_echo "$ac_ct_LIPO" >&6; }
7813else
7814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818  if test "x$ac_ct_LIPO" = x; then
7819    LIPO=":"
7820  else
7821    case $cross_compiling:$ac_tool_warned in
7822yes:)
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825ac_tool_warned=yes ;;
7826esac
7827    LIPO=$ac_ct_LIPO
7828  fi
7829else
7830  LIPO="$ac_cv_prog_LIPO"
7831fi
7832
7833    if test -n "$ac_tool_prefix"; then
7834  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7835set dummy ${ac_tool_prefix}otool; ac_word=$2
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837$as_echo_n "checking for $ac_word... " >&6; }
7838if ${ac_cv_prog_OTOOL+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  if test -n "$OTOOL"; then
7842  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847  IFS=$as_save_IFS
7848  test -z "$as_dir" && as_dir=.
7849    for ac_exec_ext in '' $ac_executable_extensions; do
7850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856  done
7857IFS=$as_save_IFS
7858
7859fi
7860fi
7861OTOOL=$ac_cv_prog_OTOOL
7862if test -n "$OTOOL"; then
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7864$as_echo "$OTOOL" >&6; }
7865else
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
7868fi
7869
7870
7871fi
7872if test -z "$ac_cv_prog_OTOOL"; then
7873  ac_ct_OTOOL=$OTOOL
7874  # Extract the first word of "otool", so it can be a program name with args.
7875set dummy otool; ac_word=$2
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  if test -n "$ac_ct_OTOOL"; then
7882  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_ac_ct_OTOOL="otool"
7892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896  done
7897IFS=$as_save_IFS
7898
7899fi
7900fi
7901ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7902if test -n "$ac_ct_OTOOL"; then
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7904$as_echo "$ac_ct_OTOOL" >&6; }
7905else
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908fi
7909
7910  if test "x$ac_ct_OTOOL" = x; then
7911    OTOOL=":"
7912  else
7913    case $cross_compiling:$ac_tool_warned in
7914yes:)
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917ac_tool_warned=yes ;;
7918esac
7919    OTOOL=$ac_ct_OTOOL
7920  fi
7921else
7922  OTOOL="$ac_cv_prog_OTOOL"
7923fi
7924
7925    if test -n "$ac_tool_prefix"; then
7926  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7927set dummy ${ac_tool_prefix}otool64; ac_word=$2
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929$as_echo_n "checking for $ac_word... " >&6; }
7930if ${ac_cv_prog_OTOOL64+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  if test -n "$OTOOL64"; then
7934  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  test -z "$as_dir" && as_dir=.
7941    for ac_exec_ext in '' $ac_executable_extensions; do
7942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945    break 2
7946  fi
7947done
7948  done
7949IFS=$as_save_IFS
7950
7951fi
7952fi
7953OTOOL64=$ac_cv_prog_OTOOL64
7954if test -n "$OTOOL64"; then
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7956$as_echo "$OTOOL64" >&6; }
7957else
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962
7963fi
7964if test -z "$ac_cv_prog_OTOOL64"; then
7965  ac_ct_OTOOL64=$OTOOL64
7966  # Extract the first word of "otool64", so it can be a program name with args.
7967set dummy otool64; ac_word=$2
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969$as_echo_n "checking for $ac_word... " >&6; }
7970if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  if test -n "$ac_ct_OTOOL64"; then
7974  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  test -z "$as_dir" && as_dir=.
7981    for ac_exec_ext in '' $ac_executable_extensions; do
7982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983    ac_cv_prog_ac_ct_OTOOL64="otool64"
7984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985    break 2
7986  fi
7987done
7988  done
7989IFS=$as_save_IFS
7990
7991fi
7992fi
7993ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7994if test -n "$ac_ct_OTOOL64"; then
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7996$as_echo "$ac_ct_OTOOL64" >&6; }
7997else
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
8000fi
8001
8002  if test "x$ac_ct_OTOOL64" = x; then
8003    OTOOL64=":"
8004  else
8005    case $cross_compiling:$ac_tool_warned in
8006yes:)
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009ac_tool_warned=yes ;;
8010esac
8011    OTOOL64=$ac_ct_OTOOL64
8012  fi
8013else
8014  OTOOL64="$ac_cv_prog_OTOOL64"
8015fi
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8044$as_echo_n "checking for -single_module linker flag... " >&6; }
8045if ${lt_cv_apple_cc_single_mod+:} false; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  lt_cv_apple_cc_single_mod=no
8049      if test -z "$LT_MULTI_MODULE"; then
8050	# By default we will add the -single_module flag. You can override
8051	# by either setting the environment variable LT_MULTI_MODULE
8052	# non-empty at configure time, or by adding -multi_module to the
8053	# link flags.
8054	rm -rf libconftest.dylib*
8055	echo "int foo(void){return 1;}" > conftest.c
8056	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8057-dynamiclib -Wl,-single_module conftest.c" >&5
8058	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8059	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8060        _lt_result=$?
8061	# If there is a non-empty error log, and "single_module"
8062	# appears in it, assume the flag caused a linker warning
8063        if test -s conftest.err && $GREP single_module conftest.err; then
8064	  cat conftest.err >&5
8065	# Otherwise, if the output was created with a 0 exit code from
8066	# the compiler, it worked.
8067	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8068	  lt_cv_apple_cc_single_mod=yes
8069	else
8070	  cat conftest.err >&5
8071	fi
8072	rm -rf libconftest.dylib*
8073	rm -f conftest.*
8074      fi
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8077$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8078
8079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8080$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8081if ${lt_cv_ld_exported_symbols_list+:} false; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  lt_cv_ld_exported_symbols_list=no
8085      save_LDFLAGS=$LDFLAGS
8086      echo "_main" > conftest.sym
8087      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8088      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h.  */
8090
8091int
8092main ()
8093{
8094
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_link "$LINENO"; then :
8100  lt_cv_ld_exported_symbols_list=yes
8101else
8102  lt_cv_ld_exported_symbols_list=no
8103fi
8104rm -f core conftest.err conftest.$ac_objext \
8105    conftest$ac_exeext conftest.$ac_ext
8106	LDFLAGS=$save_LDFLAGS
8107
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8110$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8111
8112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8113$as_echo_n "checking for -force_load linker flag... " >&6; }
8114if ${lt_cv_ld_force_load+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  lt_cv_ld_force_load=no
8118      cat > conftest.c << _LT_EOF
8119int forced_loaded() { return 2;}
8120_LT_EOF
8121      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8122      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8123      echo "$AR cru libconftest.a conftest.o" >&5
8124      $AR cru libconftest.a conftest.o 2>&5
8125      echo "$RANLIB libconftest.a" >&5
8126      $RANLIB libconftest.a 2>&5
8127      cat > conftest.c << _LT_EOF
8128int main() { return 0;}
8129_LT_EOF
8130      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8131      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8132      _lt_result=$?
8133      if test -s conftest.err && $GREP force_load conftest.err; then
8134	cat conftest.err >&5
8135      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8136	lt_cv_ld_force_load=yes
8137      else
8138	cat conftest.err >&5
8139      fi
8140        rm -f conftest.err libconftest.a conftest conftest.c
8141        rm -rf conftest.dSYM
8142
8143fi
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8145$as_echo "$lt_cv_ld_force_load" >&6; }
8146    case $host_os in
8147    rhapsody* | darwin1.[012])
8148      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8149    darwin1.*)
8150      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8151    darwin*) # darwin 5.x on
8152      # if running on 10.5 or later, the deployment target defaults
8153      # to the OS version, if on x86, and 10.4, the deployment
8154      # target defaults to 10.4. Don't you love it?
8155      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8156	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8157	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8158	10.[012][,.]*)
8159	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8160	10.*)
8161	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8162      esac
8163    ;;
8164  esac
8165    if test yes = "$lt_cv_apple_cc_single_mod"; then
8166      _lt_dar_single_mod='$single_module'
8167    fi
8168    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8169      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8170    else
8171      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8172    fi
8173    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8174      _lt_dsymutil='~$DSYMUTIL $lib || :'
8175    else
8176      _lt_dsymutil=
8177    fi
8178    ;;
8179  esac
8180
8181# func_munge_path_list VARIABLE PATH
8182# -----------------------------------
8183# VARIABLE is name of variable containing _space_ separated list of
8184# directories to be munged by the contents of PATH, which is string
8185# having a format:
8186# "DIR[:DIR]:"
8187#       string "DIR[ DIR]" will be prepended to VARIABLE
8188# ":DIR[:DIR]"
8189#       string "DIR[ DIR]" will be appended to VARIABLE
8190# "DIRP[:DIRP]::[DIRA:]DIRA"
8191#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8192#       "DIRA[ DIRA]" will be appended to VARIABLE
8193# "DIR[:DIR]"
8194#       VARIABLE will be replaced by "DIR[ DIR]"
8195func_munge_path_list ()
8196{
8197    case x$2 in
8198    x)
8199        ;;
8200    *:)
8201        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8202        ;;
8203    x:*)
8204        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8205        ;;
8206    *::*)
8207        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8208        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8209        ;;
8210    *)
8211        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8212        ;;
8213    esac
8214}
8215
8216for ac_header in dlfcn.h
8217do :
8218  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8219"
8220if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8221  cat >>confdefs.h <<_ACEOF
8222#define HAVE_DLFCN_H 1
8223_ACEOF
8224
8225fi
8226
8227done
8228
8229
8230
8231
8232
8233# Set options
8234# Check whether --enable-static was given.
8235if test "${enable_static+set}" = set; then :
8236  enableval=$enable_static; p=${PACKAGE-default}
8237    case $enableval in
8238    yes) enable_static=yes ;;
8239    no) enable_static=no ;;
8240    *)
8241     enable_static=no
8242      # Look at the argument we got.  We use all the common list separators.
8243      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8244      for pkg in $enableval; do
8245	IFS=$lt_save_ifs
8246	if test "X$pkg" = "X$p"; then
8247	  enable_static=yes
8248	fi
8249      done
8250      IFS=$lt_save_ifs
8251      ;;
8252    esac
8253else
8254  enable_static=no
8255fi
8256
8257
8258
8259
8260
8261
8262
8263enable_dlopen=yes
8264
8265
8266
8267
8268  enable_win32_dll=no
8269
8270
8271            # Check whether --enable-shared was given.
8272if test "${enable_shared+set}" = set; then :
8273  enableval=$enable_shared; p=${PACKAGE-default}
8274    case $enableval in
8275    yes) enable_shared=yes ;;
8276    no) enable_shared=no ;;
8277    *)
8278      enable_shared=no
8279      # Look at the argument we got.  We use all the common list separators.
8280      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8281      for pkg in $enableval; do
8282	IFS=$lt_save_ifs
8283	if test "X$pkg" = "X$p"; then
8284	  enable_shared=yes
8285	fi
8286      done
8287      IFS=$lt_save_ifs
8288      ;;
8289    esac
8290else
8291  enable_shared=yes
8292fi
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304# Check whether --with-pic was given.
8305if test "${with_pic+set}" = set; then :
8306  withval=$with_pic; lt_p=${PACKAGE-default}
8307    case $withval in
8308    yes|no) pic_mode=$withval ;;
8309    *)
8310      pic_mode=default
8311      # Look at the argument we got.  We use all the common list separators.
8312      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8313      for lt_pkg in $withval; do
8314	IFS=$lt_save_ifs
8315	if test "X$lt_pkg" = "X$lt_p"; then
8316	  pic_mode=yes
8317	fi
8318      done
8319      IFS=$lt_save_ifs
8320      ;;
8321    esac
8322else
8323  pic_mode=default
8324fi
8325
8326
8327
8328
8329
8330
8331
8332
8333  # Check whether --enable-fast-install was given.
8334if test "${enable_fast_install+set}" = set; then :
8335  enableval=$enable_fast_install; p=${PACKAGE-default}
8336    case $enableval in
8337    yes) enable_fast_install=yes ;;
8338    no) enable_fast_install=no ;;
8339    *)
8340      enable_fast_install=no
8341      # Look at the argument we got.  We use all the common list separators.
8342      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8343      for pkg in $enableval; do
8344	IFS=$lt_save_ifs
8345	if test "X$pkg" = "X$p"; then
8346	  enable_fast_install=yes
8347	fi
8348      done
8349      IFS=$lt_save_ifs
8350      ;;
8351    esac
8352else
8353  enable_fast_install=yes
8354fi
8355
8356
8357
8358
8359
8360
8361
8362
8363  shared_archive_member_spec=
8364case $host,$enable_shared in
8365power*-*-aix[5-9]*,yes)
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8367$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8368
8369# Check whether --with-aix-soname was given.
8370if test "${with_aix_soname+set}" = set; then :
8371  withval=$with_aix_soname; case $withval in
8372    aix|svr4|both)
8373      ;;
8374    *)
8375      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8376      ;;
8377    esac
8378    lt_cv_with_aix_soname=$with_aix_soname
8379else
8380  if ${lt_cv_with_aix_soname+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  lt_cv_with_aix_soname=aix
8384fi
8385
8386    with_aix_soname=$lt_cv_with_aix_soname
8387fi
8388
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8390$as_echo "$with_aix_soname" >&6; }
8391  if test aix != "$with_aix_soname"; then
8392    # For the AIX way of multilib, we name the shared archive member
8393    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8394    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8395    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8396    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8397    if test 64 = "${OBJECT_MODE-32}"; then
8398      shared_archive_member_spec=shr_64
8399    else
8400      shared_archive_member_spec=shr
8401    fi
8402  fi
8403  ;;
8404*)
8405  with_aix_soname=aix
8406  ;;
8407esac
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418# This can be used to rebuild libtool when needed
8419LIBTOOL_DEPS=$ltmain
8420
8421# Always use our own libtool.
8422LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453test -z "$LN_S" && LN_S="ln -s"
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468if test -n "${ZSH_VERSION+set}"; then
8469   setopt NO_GLOB_SUBST
8470fi
8471
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8473$as_echo_n "checking for objdir... " >&6; }
8474if ${lt_cv_objdir+:} false; then :
8475  $as_echo_n "(cached) " >&6
8476else
8477  rm -f .libs 2>/dev/null
8478mkdir .libs 2>/dev/null
8479if test -d .libs; then
8480  lt_cv_objdir=.libs
8481else
8482  # MS-DOS does not allow filenames that begin with a dot.
8483  lt_cv_objdir=_libs
8484fi
8485rmdir .libs 2>/dev/null
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8488$as_echo "$lt_cv_objdir" >&6; }
8489objdir=$lt_cv_objdir
8490
8491
8492
8493
8494
8495cat >>confdefs.h <<_ACEOF
8496#define LT_OBJDIR "$lt_cv_objdir/"
8497_ACEOF
8498
8499
8500
8501
8502case $host_os in
8503aix3*)
8504  # AIX sometimes has problems with the GCC collect2 program.  For some
8505  # reason, if we set the COLLECT_NAMES environment variable, the problems
8506  # vanish in a puff of smoke.
8507  if test set != "${COLLECT_NAMES+set}"; then
8508    COLLECT_NAMES=
8509    export COLLECT_NAMES
8510  fi
8511  ;;
8512esac
8513
8514# Global variables:
8515ofile=libtool
8516can_build_shared=yes
8517
8518# All known linkers require a '.a' archive for static linking (except MSVC,
8519# which needs '.lib').
8520libext=a
8521
8522with_gnu_ld=$lt_cv_prog_gnu_ld
8523
8524old_CC=$CC
8525old_CFLAGS=$CFLAGS
8526
8527# Set sane defaults for various variables
8528test -z "$CC" && CC=cc
8529test -z "$LTCC" && LTCC=$CC
8530test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8531test -z "$LD" && LD=ld
8532test -z "$ac_objext" && ac_objext=o
8533
8534func_cc_basename $compiler
8535cc_basename=$func_cc_basename_result
8536
8537
8538# Only perform the check for file, if the check method requires it
8539test -z "$MAGIC_CMD" && MAGIC_CMD=file
8540case $deplibs_check_method in
8541file_magic*)
8542  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8544$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8545if ${lt_cv_path_MAGIC_CMD+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  case $MAGIC_CMD in
8549[\\/*] |  ?:[\\/]*)
8550  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8551  ;;
8552*)
8553  lt_save_MAGIC_CMD=$MAGIC_CMD
8554  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8555  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8556  for ac_dir in $ac_dummy; do
8557    IFS=$lt_save_ifs
8558    test -z "$ac_dir" && ac_dir=.
8559    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8560      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8561      if test -n "$file_magic_test_file"; then
8562	case $deplibs_check_method in
8563	"file_magic "*)
8564	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8565	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8566	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8567	    $EGREP "$file_magic_regex" > /dev/null; then
8568	    :
8569	  else
8570	    cat <<_LT_EOF 1>&2
8571
8572*** Warning: the command libtool uses to detect shared libraries,
8573*** $file_magic_cmd, produces output that libtool cannot recognize.
8574*** The result is that libtool may fail to recognize shared libraries
8575*** as such.  This will affect the creation of libtool libraries that
8576*** depend on shared libraries, but programs linked with such libtool
8577*** libraries will work regardless of this problem.  Nevertheless, you
8578*** may want to report the problem to your system manager and/or to
8579*** bug-libtool@gnu.org
8580
8581_LT_EOF
8582	  fi ;;
8583	esac
8584      fi
8585      break
8586    fi
8587  done
8588  IFS=$lt_save_ifs
8589  MAGIC_CMD=$lt_save_MAGIC_CMD
8590  ;;
8591esac
8592fi
8593
8594MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8595if test -n "$MAGIC_CMD"; then
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8597$as_echo "$MAGIC_CMD" >&6; }
8598else
8599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600$as_echo "no" >&6; }
8601fi
8602
8603
8604
8605
8606
8607if test -z "$lt_cv_path_MAGIC_CMD"; then
8608  if test -n "$ac_tool_prefix"; then
8609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8610$as_echo_n "checking for file... " >&6; }
8611if ${lt_cv_path_MAGIC_CMD+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  case $MAGIC_CMD in
8615[\\/*] |  ?:[\\/]*)
8616  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8617  ;;
8618*)
8619  lt_save_MAGIC_CMD=$MAGIC_CMD
8620  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8621  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8622  for ac_dir in $ac_dummy; do
8623    IFS=$lt_save_ifs
8624    test -z "$ac_dir" && ac_dir=.
8625    if test -f "$ac_dir/file"; then
8626      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8627      if test -n "$file_magic_test_file"; then
8628	case $deplibs_check_method in
8629	"file_magic "*)
8630	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8631	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8632	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8633	    $EGREP "$file_magic_regex" > /dev/null; then
8634	    :
8635	  else
8636	    cat <<_LT_EOF 1>&2
8637
8638*** Warning: the command libtool uses to detect shared libraries,
8639*** $file_magic_cmd, produces output that libtool cannot recognize.
8640*** The result is that libtool may fail to recognize shared libraries
8641*** as such.  This will affect the creation of libtool libraries that
8642*** depend on shared libraries, but programs linked with such libtool
8643*** libraries will work regardless of this problem.  Nevertheless, you
8644*** may want to report the problem to your system manager and/or to
8645*** bug-libtool@gnu.org
8646
8647_LT_EOF
8648	  fi ;;
8649	esac
8650      fi
8651      break
8652    fi
8653  done
8654  IFS=$lt_save_ifs
8655  MAGIC_CMD=$lt_save_MAGIC_CMD
8656  ;;
8657esac
8658fi
8659
8660MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8661if test -n "$MAGIC_CMD"; then
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8663$as_echo "$MAGIC_CMD" >&6; }
8664else
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666$as_echo "no" >&6; }
8667fi
8668
8669
8670  else
8671    MAGIC_CMD=:
8672  fi
8673fi
8674
8675  fi
8676  ;;
8677esac
8678
8679# Use C for the default configuration in the libtool script
8680
8681lt_save_CC=$CC
8682ac_ext=c
8683ac_cpp='$CPP $CPPFLAGS'
8684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688
8689# Source file extension for C test sources.
8690ac_ext=c
8691
8692# Object file extension for compiled C test sources.
8693objext=o
8694objext=$objext
8695
8696# Code to be used in simple compile tests
8697lt_simple_compile_test_code="int some_variable = 0;"
8698
8699# Code to be used in simple link tests
8700lt_simple_link_test_code='int main(){return(0);}'
8701
8702
8703
8704
8705
8706
8707
8708# If no C compiler was specified, use CC.
8709LTCC=${LTCC-"$CC"}
8710
8711# If no C compiler flags were specified, use CFLAGS.
8712LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8713
8714# Allow CC to be a program name with arguments.
8715compiler=$CC
8716
8717# Save the default compiler, since it gets overwritten when the other
8718# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8719compiler_DEFAULT=$CC
8720
8721# save warnings/boilerplate of simple test code
8722ac_outfile=conftest.$ac_objext
8723echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8724eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8725_lt_compiler_boilerplate=`cat conftest.err`
8726$RM conftest*
8727
8728ac_outfile=conftest.$ac_objext
8729echo "$lt_simple_link_test_code" >conftest.$ac_ext
8730eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8731_lt_linker_boilerplate=`cat conftest.err`
8732$RM -r conftest*
8733
8734
8735## CAVEAT EMPTOR:
8736## There is no encapsulation within the following macros, do not change
8737## the running order or otherwise move them around unless you know exactly
8738## what you are doing...
8739if test -n "$compiler"; then
8740
8741lt_prog_compiler_no_builtin_flag=
8742
8743if test yes = "$GCC"; then
8744  case $cc_basename in
8745  nvcc*)
8746    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8747  *)
8748    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8749  esac
8750
8751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8752$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8753if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  lt_cv_prog_compiler_rtti_exceptions=no
8757   ac_outfile=conftest.$ac_objext
8758   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8759   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8760   # Insert the option either (1) after the last *FLAGS variable, or
8761   # (2) before a word containing "conftest.", or (3) at the end.
8762   # Note that $ac_compile itself does not contain backslashes and begins
8763   # with a dollar sign (not a hyphen), so the echo should work correctly.
8764   # The option is referenced via a variable to avoid confusing sed.
8765   lt_compile=`echo "$ac_compile" | $SED \
8766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768   -e 's:$: $lt_compiler_flag:'`
8769   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8770   (eval "$lt_compile" 2>conftest.err)
8771   ac_status=$?
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   if (exit $ac_status) && test -s "$ac_outfile"; then
8775     # The compiler can only warn and ignore the option if not recognized
8776     # So say no if there are warnings other than the usual output.
8777     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8778     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8780       lt_cv_prog_compiler_rtti_exceptions=yes
8781     fi
8782   fi
8783   $RM conftest*
8784
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8787$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8788
8789if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8790    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8791else
8792    :
8793fi
8794
8795fi
8796
8797
8798
8799
8800
8801
8802  lt_prog_compiler_wl=
8803lt_prog_compiler_pic=
8804lt_prog_compiler_static=
8805
8806
8807  if test yes = "$GCC"; then
8808    lt_prog_compiler_wl='-Wl,'
8809    lt_prog_compiler_static='-static'
8810
8811    case $host_os in
8812      aix*)
8813      # All AIX code is PIC.
8814      if test ia64 = "$host_cpu"; then
8815	# AIX 5 now supports IA64 processor
8816	lt_prog_compiler_static='-Bstatic'
8817      fi
8818      lt_prog_compiler_pic='-fPIC'
8819      ;;
8820
8821    amigaos*)
8822      case $host_cpu in
8823      powerpc)
8824            # see comment about AmigaOS4 .so support
8825            lt_prog_compiler_pic='-fPIC'
8826        ;;
8827      m68k)
8828            # FIXME: we need at least 68020 code to build shared libraries, but
8829            # adding the '-m68020' flag to GCC prevents building anything better,
8830            # like '-m68040'.
8831            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8832        ;;
8833      esac
8834      ;;
8835
8836    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8837      # PIC is the default for these OSes.
8838      ;;
8839
8840    mingw* | cygwin* | pw32* | os2* | cegcc*)
8841      # This hack is so that the source file can tell whether it is being
8842      # built for inclusion in a dll (and should export symbols for example).
8843      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8844      # (--disable-auto-import) libraries
8845      lt_prog_compiler_pic='-DDLL_EXPORT'
8846      case $host_os in
8847      os2*)
8848	lt_prog_compiler_static='$wl-static'
8849	;;
8850      esac
8851      ;;
8852
8853    darwin* | rhapsody*)
8854      # PIC is the default on this platform
8855      # Common symbols not allowed in MH_DYLIB files
8856      lt_prog_compiler_pic='-fno-common'
8857      ;;
8858
8859    haiku*)
8860      # PIC is the default for Haiku.
8861      # The "-static" flag exists, but is broken.
8862      lt_prog_compiler_static=
8863      ;;
8864
8865    hpux*)
8866      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8867      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8868      # sets the default TLS model and affects inlining.
8869      case $host_cpu in
8870      hppa*64*)
8871	# +Z the default
8872	;;
8873      *)
8874	lt_prog_compiler_pic='-fPIC'
8875	;;
8876      esac
8877      ;;
8878
8879    interix[3-9]*)
8880      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8881      # Instead, we relocate shared libraries at runtime.
8882      ;;
8883
8884    msdosdjgpp*)
8885      # Just because we use GCC doesn't mean we suddenly get shared libraries
8886      # on systems that don't support them.
8887      lt_prog_compiler_can_build_shared=no
8888      enable_shared=no
8889      ;;
8890
8891    *nto* | *qnx*)
8892      # QNX uses GNU C++, but need to define -shared option too, otherwise
8893      # it will coredump.
8894      lt_prog_compiler_pic='-fPIC -shared'
8895      ;;
8896
8897    sysv4*MP*)
8898      if test -d /usr/nec; then
8899	lt_prog_compiler_pic=-Kconform_pic
8900      fi
8901      ;;
8902
8903    *)
8904      lt_prog_compiler_pic='-fPIC'
8905      ;;
8906    esac
8907
8908    case $cc_basename in
8909    nvcc*) # Cuda Compiler Driver 2.2
8910      lt_prog_compiler_wl='-Xlinker '
8911      if test -n "$lt_prog_compiler_pic"; then
8912        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8913      fi
8914      ;;
8915    esac
8916  else
8917    # PORTME Check for flag to pass linker flags through the system compiler.
8918    case $host_os in
8919    aix*)
8920      lt_prog_compiler_wl='-Wl,'
8921      if test ia64 = "$host_cpu"; then
8922	# AIX 5 now supports IA64 processor
8923	lt_prog_compiler_static='-Bstatic'
8924      else
8925	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8926      fi
8927      ;;
8928
8929    darwin* | rhapsody*)
8930      # PIC is the default on this platform
8931      # Common symbols not allowed in MH_DYLIB files
8932      lt_prog_compiler_pic='-fno-common'
8933      case $cc_basename in
8934      nagfor*)
8935        # NAG Fortran compiler
8936        lt_prog_compiler_wl='-Wl,-Wl,,'
8937        lt_prog_compiler_pic='-PIC'
8938        lt_prog_compiler_static='-Bstatic'
8939        ;;
8940      esac
8941      ;;
8942
8943    mingw* | cygwin* | pw32* | os2* | cegcc*)
8944      # This hack is so that the source file can tell whether it is being
8945      # built for inclusion in a dll (and should export symbols for example).
8946      lt_prog_compiler_pic='-DDLL_EXPORT'
8947      case $host_os in
8948      os2*)
8949	lt_prog_compiler_static='$wl-static'
8950	;;
8951      esac
8952      ;;
8953
8954    hpux9* | hpux10* | hpux11*)
8955      lt_prog_compiler_wl='-Wl,'
8956      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8957      # not for PA HP-UX.
8958      case $host_cpu in
8959      hppa*64*|ia64*)
8960	# +Z the default
8961	;;
8962      *)
8963	lt_prog_compiler_pic='+Z'
8964	;;
8965      esac
8966      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8967      lt_prog_compiler_static='$wl-a ${wl}archive'
8968      ;;
8969
8970    irix5* | irix6* | nonstopux*)
8971      lt_prog_compiler_wl='-Wl,'
8972      # PIC (with -KPIC) is the default.
8973      lt_prog_compiler_static='-non_shared'
8974      ;;
8975
8976    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8977      case $cc_basename in
8978      # old Intel for x86_64, which still supported -KPIC.
8979      ecc*)
8980	lt_prog_compiler_wl='-Wl,'
8981	lt_prog_compiler_pic='-KPIC'
8982	lt_prog_compiler_static='-static'
8983        ;;
8984      # icc used to be incompatible with GCC.
8985      # ICC 10 doesn't accept -KPIC any more.
8986      icc* | ifort*)
8987	lt_prog_compiler_wl='-Wl,'
8988	lt_prog_compiler_pic='-fPIC'
8989	lt_prog_compiler_static='-static'
8990        ;;
8991      # Lahey Fortran 8.1.
8992      lf95*)
8993	lt_prog_compiler_wl='-Wl,'
8994	lt_prog_compiler_pic='--shared'
8995	lt_prog_compiler_static='--static'
8996	;;
8997      nagfor*)
8998	# NAG Fortran compiler
8999	lt_prog_compiler_wl='-Wl,-Wl,,'
9000	lt_prog_compiler_pic='-PIC'
9001	lt_prog_compiler_static='-Bstatic'
9002	;;
9003      tcc*)
9004	# Fabrice Bellard et al's Tiny C Compiler
9005	lt_prog_compiler_wl='-Wl,'
9006	lt_prog_compiler_pic='-fPIC'
9007	lt_prog_compiler_static='-static'
9008	;;
9009      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9010        # Portland Group compilers (*not* the Pentium gcc compiler,
9011	# which looks to be a dead project)
9012	lt_prog_compiler_wl='-Wl,'
9013	lt_prog_compiler_pic='-fpic'
9014	lt_prog_compiler_static='-Bstatic'
9015        ;;
9016      ccc*)
9017        lt_prog_compiler_wl='-Wl,'
9018        # All Alpha code is PIC.
9019        lt_prog_compiler_static='-non_shared'
9020        ;;
9021      xl* | bgxl* | bgf* | mpixl*)
9022	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9023	lt_prog_compiler_wl='-Wl,'
9024	lt_prog_compiler_pic='-qpic'
9025	lt_prog_compiler_static='-qstaticlink'
9026	;;
9027      *)
9028	case `$CC -V 2>&1 | sed 5q` in
9029	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9030	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9031	  lt_prog_compiler_pic='-KPIC'
9032	  lt_prog_compiler_static='-Bstatic'
9033	  lt_prog_compiler_wl=''
9034	  ;;
9035	*Sun\ F* | *Sun*Fortran*)
9036	  lt_prog_compiler_pic='-KPIC'
9037	  lt_prog_compiler_static='-Bstatic'
9038	  lt_prog_compiler_wl='-Qoption ld '
9039	  ;;
9040	*Sun\ C*)
9041	  # Sun C 5.9
9042	  lt_prog_compiler_pic='-KPIC'
9043	  lt_prog_compiler_static='-Bstatic'
9044	  lt_prog_compiler_wl='-Wl,'
9045	  ;;
9046        *Intel*\ [CF]*Compiler*)
9047	  lt_prog_compiler_wl='-Wl,'
9048	  lt_prog_compiler_pic='-fPIC'
9049	  lt_prog_compiler_static='-static'
9050	  ;;
9051	*Portland\ Group*)
9052	  lt_prog_compiler_wl='-Wl,'
9053	  lt_prog_compiler_pic='-fpic'
9054	  lt_prog_compiler_static='-Bstatic'
9055	  ;;
9056	esac
9057	;;
9058      esac
9059      ;;
9060
9061    newsos6)
9062      lt_prog_compiler_pic='-KPIC'
9063      lt_prog_compiler_static='-Bstatic'
9064      ;;
9065
9066    *nto* | *qnx*)
9067      # QNX uses GNU C++, but need to define -shared option too, otherwise
9068      # it will coredump.
9069      lt_prog_compiler_pic='-fPIC -shared'
9070      ;;
9071
9072    osf3* | osf4* | osf5*)
9073      lt_prog_compiler_wl='-Wl,'
9074      # All OSF/1 code is PIC.
9075      lt_prog_compiler_static='-non_shared'
9076      ;;
9077
9078    rdos*)
9079      lt_prog_compiler_static='-non_shared'
9080      ;;
9081
9082    solaris*)
9083      lt_prog_compiler_pic='-KPIC'
9084      lt_prog_compiler_static='-Bstatic'
9085      case $cc_basename in
9086      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9087	lt_prog_compiler_wl='-Qoption ld ';;
9088      *)
9089	lt_prog_compiler_wl='-Wl,';;
9090      esac
9091      ;;
9092
9093    sunos4*)
9094      lt_prog_compiler_wl='-Qoption ld '
9095      lt_prog_compiler_pic='-PIC'
9096      lt_prog_compiler_static='-Bstatic'
9097      ;;
9098
9099    sysv4 | sysv4.2uw2* | sysv4.3*)
9100      lt_prog_compiler_wl='-Wl,'
9101      lt_prog_compiler_pic='-KPIC'
9102      lt_prog_compiler_static='-Bstatic'
9103      ;;
9104
9105    sysv4*MP*)
9106      if test -d /usr/nec; then
9107	lt_prog_compiler_pic='-Kconform_pic'
9108	lt_prog_compiler_static='-Bstatic'
9109      fi
9110      ;;
9111
9112    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9113      lt_prog_compiler_wl='-Wl,'
9114      lt_prog_compiler_pic='-KPIC'
9115      lt_prog_compiler_static='-Bstatic'
9116      ;;
9117
9118    unicos*)
9119      lt_prog_compiler_wl='-Wl,'
9120      lt_prog_compiler_can_build_shared=no
9121      ;;
9122
9123    uts4*)
9124      lt_prog_compiler_pic='-pic'
9125      lt_prog_compiler_static='-Bstatic'
9126      ;;
9127
9128    *)
9129      lt_prog_compiler_can_build_shared=no
9130      ;;
9131    esac
9132  fi
9133
9134case $host_os in
9135  # For platforms that do not support PIC, -DPIC is meaningless:
9136  *djgpp*)
9137    lt_prog_compiler_pic=
9138    ;;
9139  *)
9140    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9141    ;;
9142esac
9143
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9145$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9146if ${lt_cv_prog_compiler_pic+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9152$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9153lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9154
9155#
9156# Check to make sure the PIC flag actually works.
9157#
9158if test -n "$lt_prog_compiler_pic"; then
9159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9160$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9161if ${lt_cv_prog_compiler_pic_works+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  lt_cv_prog_compiler_pic_works=no
9165   ac_outfile=conftest.$ac_objext
9166   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9168   # Insert the option either (1) after the last *FLAGS variable, or
9169   # (2) before a word containing "conftest.", or (3) at the end.
9170   # Note that $ac_compile itself does not contain backslashes and begins
9171   # with a dollar sign (not a hyphen), so the echo should work correctly.
9172   # The option is referenced via a variable to avoid confusing sed.
9173   lt_compile=`echo "$ac_compile" | $SED \
9174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176   -e 's:$: $lt_compiler_flag:'`
9177   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178   (eval "$lt_compile" 2>conftest.err)
9179   ac_status=$?
9180   cat conftest.err >&5
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   if (exit $ac_status) && test -s "$ac_outfile"; then
9183     # The compiler can only warn and ignore the option if not recognized
9184     # So say no if there are warnings other than the usual output.
9185     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9186     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9187     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9188       lt_cv_prog_compiler_pic_works=yes
9189     fi
9190   fi
9191   $RM conftest*
9192
9193fi
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9195$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9196
9197if test yes = "$lt_cv_prog_compiler_pic_works"; then
9198    case $lt_prog_compiler_pic in
9199     "" | " "*) ;;
9200     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9201     esac
9202else
9203    lt_prog_compiler_pic=
9204     lt_prog_compiler_can_build_shared=no
9205fi
9206
9207fi
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219#
9220# Check to make sure the static flag actually works.
9221#
9222wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9224$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9225if ${lt_cv_prog_compiler_static_works+:} false; then :
9226  $as_echo_n "(cached) " >&6
9227else
9228  lt_cv_prog_compiler_static_works=no
9229   save_LDFLAGS=$LDFLAGS
9230   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9231   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9232   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9233     # The linker can only warn and ignore the option if not recognized
9234     # So say no if there are warnings
9235     if test -s conftest.err; then
9236       # Append any errors to the config.log.
9237       cat conftest.err 1>&5
9238       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9239       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9240       if diff conftest.exp conftest.er2 >/dev/null; then
9241         lt_cv_prog_compiler_static_works=yes
9242       fi
9243     else
9244       lt_cv_prog_compiler_static_works=yes
9245     fi
9246   fi
9247   $RM -r conftest*
9248   LDFLAGS=$save_LDFLAGS
9249
9250fi
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9252$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9253
9254if test yes = "$lt_cv_prog_compiler_static_works"; then
9255    :
9256else
9257    lt_prog_compiler_static=
9258fi
9259
9260
9261
9262
9263
9264
9265
9266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9267$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9268if ${lt_cv_prog_compiler_c_o+:} false; then :
9269  $as_echo_n "(cached) " >&6
9270else
9271  lt_cv_prog_compiler_c_o=no
9272   $RM -r conftest 2>/dev/null
9273   mkdir conftest
9274   cd conftest
9275   mkdir out
9276   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9277
9278   lt_compiler_flag="-o out/conftest2.$ac_objext"
9279   # Insert the option either (1) after the last *FLAGS variable, or
9280   # (2) before a word containing "conftest.", or (3) at the end.
9281   # Note that $ac_compile itself does not contain backslashes and begins
9282   # with a dollar sign (not a hyphen), so the echo should work correctly.
9283   lt_compile=`echo "$ac_compile" | $SED \
9284   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9285   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9286   -e 's:$: $lt_compiler_flag:'`
9287   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9288   (eval "$lt_compile" 2>out/conftest.err)
9289   ac_status=$?
9290   cat out/conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9293   then
9294     # The compiler can only warn and ignore the option if not recognized
9295     # So say no if there are warnings
9296     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9297     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9298     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9299       lt_cv_prog_compiler_c_o=yes
9300     fi
9301   fi
9302   chmod u+w . 2>&5
9303   $RM conftest*
9304   # SGI C++ compiler will create directory out/ii_files/ for
9305   # template instantiation
9306   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9307   $RM out/* && rmdir out
9308   cd ..
9309   $RM -r conftest
9310   $RM conftest*
9311
9312fi
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9314$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9315
9316
9317
9318
9319
9320
9321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9322$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9323if ${lt_cv_prog_compiler_c_o+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  lt_cv_prog_compiler_c_o=no
9327   $RM -r conftest 2>/dev/null
9328   mkdir conftest
9329   cd conftest
9330   mkdir out
9331   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9332
9333   lt_compiler_flag="-o out/conftest2.$ac_objext"
9334   # Insert the option either (1) after the last *FLAGS variable, or
9335   # (2) before a word containing "conftest.", or (3) at the end.
9336   # Note that $ac_compile itself does not contain backslashes and begins
9337   # with a dollar sign (not a hyphen), so the echo should work correctly.
9338   lt_compile=`echo "$ac_compile" | $SED \
9339   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341   -e 's:$: $lt_compiler_flag:'`
9342   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343   (eval "$lt_compile" 2>out/conftest.err)
9344   ac_status=$?
9345   cat out/conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9348   then
9349     # The compiler can only warn and ignore the option if not recognized
9350     # So say no if there are warnings
9351     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9352     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9353     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9354       lt_cv_prog_compiler_c_o=yes
9355     fi
9356   fi
9357   chmod u+w . 2>&5
9358   $RM conftest*
9359   # SGI C++ compiler will create directory out/ii_files/ for
9360   # template instantiation
9361   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9362   $RM out/* && rmdir out
9363   cd ..
9364   $RM -r conftest
9365   $RM conftest*
9366
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9369$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9370
9371
9372
9373
9374hard_links=nottested
9375if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9376  # do not overwrite the value of need_locks provided by the user
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9378$as_echo_n "checking if we can lock with hard links... " >&6; }
9379  hard_links=yes
9380  $RM conftest*
9381  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9382  touch conftest.a
9383  ln conftest.a conftest.b 2>&5 || hard_links=no
9384  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9386$as_echo "$hard_links" >&6; }
9387  if test no = "$hard_links"; then
9388    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9389$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9390    need_locks=warn
9391  fi
9392else
9393  need_locks=no
9394fi
9395
9396
9397
9398
9399
9400
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9402$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9403
9404  runpath_var=
9405  allow_undefined_flag=
9406  always_export_symbols=no
9407  archive_cmds=
9408  archive_expsym_cmds=
9409  compiler_needs_object=no
9410  enable_shared_with_static_runtimes=no
9411  export_dynamic_flag_spec=
9412  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9413  hardcode_automatic=no
9414  hardcode_direct=no
9415  hardcode_direct_absolute=no
9416  hardcode_libdir_flag_spec=
9417  hardcode_libdir_separator=
9418  hardcode_minus_L=no
9419  hardcode_shlibpath_var=unsupported
9420  inherit_rpath=no
9421  link_all_deplibs=unknown
9422  module_cmds=
9423  module_expsym_cmds=
9424  old_archive_from_new_cmds=
9425  old_archive_from_expsyms_cmds=
9426  thread_safe_flag_spec=
9427  whole_archive_flag_spec=
9428  # include_expsyms should be a list of space-separated symbols to be *always*
9429  # included in the symbol list
9430  include_expsyms=
9431  # exclude_expsyms can be an extended regexp of symbols to exclude
9432  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9433  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9434  # as well as any symbol that contains 'd'.
9435  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9436  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9437  # platforms (ab)use it in PIC code, but their linkers get confused if
9438  # the symbol is explicitly referenced.  Since portable code cannot
9439  # rely on this symbol name, it's probably fine to never include it in
9440  # preloaded symbol tables.
9441  # Exclude shared library initialization/finalization symbols.
9442  extract_expsyms_cmds=
9443
9444  case $host_os in
9445  cygwin* | mingw* | pw32* | cegcc*)
9446    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9447    # When not using gcc, we currently assume that we are using
9448    # Microsoft Visual C++.
9449    if test yes != "$GCC"; then
9450      with_gnu_ld=no
9451    fi
9452    ;;
9453  interix*)
9454    # we just hope/assume this is gcc and not c89 (= MSVC++)
9455    with_gnu_ld=yes
9456    ;;
9457  openbsd* | bitrig*)
9458    with_gnu_ld=no
9459    ;;
9460  esac
9461
9462  ld_shlibs=yes
9463
9464  # On some targets, GNU ld is compatible enough with the native linker
9465  # that we're better off using the native interface for both.
9466  lt_use_gnu_ld_interface=no
9467  if test yes = "$with_gnu_ld"; then
9468    case $host_os in
9469      aix*)
9470	# The AIX port of GNU ld has always aspired to compatibility
9471	# with the native linker.  However, as the warning in the GNU ld
9472	# block says, versions before 2.19.5* couldn't really create working
9473	# shared libraries, regardless of the interface used.
9474	case `$LD -v 2>&1` in
9475	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9476	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9477	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9478	  *)
9479	    lt_use_gnu_ld_interface=yes
9480	    ;;
9481	esac
9482	;;
9483      *)
9484	lt_use_gnu_ld_interface=yes
9485	;;
9486    esac
9487  fi
9488
9489  if test yes = "$lt_use_gnu_ld_interface"; then
9490    # If archive_cmds runs LD, not CC, wlarc should be empty
9491    wlarc='$wl'
9492
9493    # Set some defaults for GNU ld with shared library support. These
9494    # are reset later if shared libraries are not supported. Putting them
9495    # here allows them to be overridden if necessary.
9496    runpath_var=LD_RUN_PATH
9497    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9498    export_dynamic_flag_spec='$wl--export-dynamic'
9499    # ancient GNU ld didn't support --whole-archive et. al.
9500    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9501      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9502    else
9503      whole_archive_flag_spec=
9504    fi
9505    supports_anon_versioning=no
9506    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9507      *GNU\ gold*) supports_anon_versioning=yes ;;
9508      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9509      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9510      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9511      *\ 2.11.*) ;; # other 2.11 versions
9512      *) supports_anon_versioning=yes ;;
9513    esac
9514
9515    # See if GNU ld supports shared libraries.
9516    case $host_os in
9517    aix[3-9]*)
9518      # On AIX/PPC, the GNU linker is very broken
9519      if test ia64 != "$host_cpu"; then
9520	ld_shlibs=no
9521	cat <<_LT_EOF 1>&2
9522
9523*** Warning: the GNU linker, at least up to release 2.19, is reported
9524*** to be unable to reliably create shared libraries on AIX.
9525*** Therefore, libtool is disabling shared libraries support.  If you
9526*** really care for shared libraries, you may want to install binutils
9527*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9528*** You will then need to restart the configuration process.
9529
9530_LT_EOF
9531      fi
9532      ;;
9533
9534    amigaos*)
9535      case $host_cpu in
9536      powerpc)
9537            # see comment about AmigaOS4 .so support
9538            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9539            archive_expsym_cmds=''
9540        ;;
9541      m68k)
9542            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)'
9543            hardcode_libdir_flag_spec='-L$libdir'
9544            hardcode_minus_L=yes
9545        ;;
9546      esac
9547      ;;
9548
9549    beos*)
9550      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551	allow_undefined_flag=unsupported
9552	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9553	# support --undefined.  This deserves some investigation.  FIXME
9554	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555      else
9556	ld_shlibs=no
9557      fi
9558      ;;
9559
9560    cygwin* | mingw* | pw32* | cegcc*)
9561      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9562      # as there is no search path for DLLs.
9563      hardcode_libdir_flag_spec='-L$libdir'
9564      export_dynamic_flag_spec='$wl--export-all-symbols'
9565      allow_undefined_flag=unsupported
9566      always_export_symbols=no
9567      enable_shared_with_static_runtimes=yes
9568      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'
9569      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9570
9571      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9572        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9573	# If the export-symbols file already is a .def file, use it as
9574	# is; otherwise, prepend EXPORTS...
9575	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9576          cp $export_symbols $output_objdir/$soname.def;
9577        else
9578          echo EXPORTS > $output_objdir/$soname.def;
9579          cat $export_symbols >> $output_objdir/$soname.def;
9580        fi~
9581        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9582      else
9583	ld_shlibs=no
9584      fi
9585      ;;
9586
9587    haiku*)
9588      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589      link_all_deplibs=yes
9590      ;;
9591
9592    os2*)
9593      hardcode_libdir_flag_spec='-L$libdir'
9594      hardcode_minus_L=yes
9595      allow_undefined_flag=unsupported
9596      shrext_cmds=.dll
9597      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9598	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9599	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9600	$ECHO EXPORTS >> $output_objdir/$libname.def~
9601	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9602	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9603	emximp -o $lib $output_objdir/$libname.def'
9604      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9605	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9606	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9607	$ECHO EXPORTS >> $output_objdir/$libname.def~
9608	prefix_cmds="$SED"~
9609	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9610	  prefix_cmds="$prefix_cmds -e 1d";
9611	fi~
9612	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9613	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9614	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9615	emximp -o $lib $output_objdir/$libname.def'
9616      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9617      enable_shared_with_static_runtimes=yes
9618      ;;
9619
9620    interix[3-9]*)
9621      hardcode_direct=no
9622      hardcode_shlibpath_var=no
9623      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9624      export_dynamic_flag_spec='$wl-E'
9625      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9626      # Instead, shared libraries are loaded at an image base (0x10000000 by
9627      # default) and relocated if they conflict, which is a slow very memory
9628      # consuming and fragmenting process.  To avoid this, we pick a random,
9629      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9630      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9631      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9632      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'
9633      ;;
9634
9635    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9636      tmp_diet=no
9637      if test linux-dietlibc = "$host_os"; then
9638	case $cc_basename in
9639	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9640	esac
9641      fi
9642      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9643	 && test no = "$tmp_diet"
9644      then
9645	tmp_addflag=' $pic_flag'
9646	tmp_sharedflag='-shared'
9647	case $cc_basename,$host_cpu in
9648        pgcc*)				# Portland Group C compiler
9649	  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'
9650	  tmp_addflag=' $pic_flag'
9651	  ;;
9652	pgf77* | pgf90* | pgf95* | pgfortran*)
9653					# Portland Group f77 and f90 compilers
9654	  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'
9655	  tmp_addflag=' $pic_flag -Mnomain' ;;
9656	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9657	  tmp_addflag=' -i_dynamic' ;;
9658	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9659	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9660	ifc* | ifort*)			# Intel Fortran compiler
9661	  tmp_addflag=' -nofor_main' ;;
9662	lf95*)				# Lahey Fortran 8.1
9663	  whole_archive_flag_spec=
9664	  tmp_sharedflag='--shared' ;;
9665        nagfor*)                        # NAGFOR 5.3
9666          tmp_sharedflag='-Wl,-shared' ;;
9667	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9668	  tmp_sharedflag='-qmkshrobj'
9669	  tmp_addflag= ;;
9670	nvcc*)	# Cuda Compiler Driver 2.2
9671	  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'
9672	  compiler_needs_object=yes
9673	  ;;
9674	esac
9675	case `$CC -V 2>&1 | sed 5q` in
9676	*Sun\ C*)			# Sun C 5.9
9677	  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'
9678	  compiler_needs_object=yes
9679	  tmp_sharedflag='-G' ;;
9680	*Sun\ F*)			# Sun Fortran 8.3
9681	  tmp_sharedflag='-G' ;;
9682	esac
9683	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9684
9685        if test yes = "$supports_anon_versioning"; then
9686          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9687            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9688            echo "local: *; };" >> $output_objdir/$libname.ver~
9689            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9690        fi
9691
9692	case $cc_basename in
9693	tcc*)
9694	  export_dynamic_flag_spec='-rdynamic'
9695	  ;;
9696	xlf* | bgf* | bgxlf* | mpixlf*)
9697	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9698	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9699	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9700	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9701	  if test yes = "$supports_anon_versioning"; then
9702	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9703              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9704              echo "local: *; };" >> $output_objdir/$libname.ver~
9705              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9706	  fi
9707	  ;;
9708	esac
9709      else
9710        ld_shlibs=no
9711      fi
9712      ;;
9713
9714    netbsd*)
9715      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9716	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9717	wlarc=
9718      else
9719	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9721      fi
9722      ;;
9723
9724    solaris*)
9725      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9726	ld_shlibs=no
9727	cat <<_LT_EOF 1>&2
9728
9729*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9730*** create shared libraries on Solaris systems.  Therefore, libtool
9731*** is disabling shared libraries support.  We urge you to upgrade GNU
9732*** binutils to release 2.9.1 or newer.  Another option is to modify
9733*** your PATH or compiler configuration so that the native linker is
9734*** used, and then restart.
9735
9736_LT_EOF
9737      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9738	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9739	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9740      else
9741	ld_shlibs=no
9742      fi
9743      ;;
9744
9745    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9746      case `$LD -v 2>&1` in
9747        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9748	ld_shlibs=no
9749	cat <<_LT_EOF 1>&2
9750
9751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9752*** reliably create shared libraries on SCO systems.  Therefore, libtool
9753*** is disabling shared libraries support.  We urge you to upgrade GNU
9754*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9755*** your PATH or compiler configuration so that the native linker is
9756*** used, and then restart.
9757
9758_LT_EOF
9759	;;
9760	*)
9761	  # For security reasons, it is highly recommended that you always
9762	  # use absolute paths for naming shared libraries, and exclude the
9763	  # DT_RUNPATH tag from executables and libraries.  But doing so
9764	  # requires that you compile everything twice, which is a pain.
9765	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9766	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9767	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9768	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9769	  else
9770	    ld_shlibs=no
9771	  fi
9772	;;
9773      esac
9774      ;;
9775
9776    sunos4*)
9777      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9778      wlarc=
9779      hardcode_direct=yes
9780      hardcode_shlibpath_var=no
9781      ;;
9782
9783    *)
9784      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9785	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9786	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9787      else
9788	ld_shlibs=no
9789      fi
9790      ;;
9791    esac
9792
9793    if test no = "$ld_shlibs"; then
9794      runpath_var=
9795      hardcode_libdir_flag_spec=
9796      export_dynamic_flag_spec=
9797      whole_archive_flag_spec=
9798    fi
9799  else
9800    # PORTME fill in a description of your system's linker (not GNU ld)
9801    case $host_os in
9802    aix3*)
9803      allow_undefined_flag=unsupported
9804      always_export_symbols=yes
9805      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'
9806      # Note: this linker hardcodes the directories in LIBPATH if there
9807      # are no directories specified by -L.
9808      hardcode_minus_L=yes
9809      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9810	# Neither direct hardcoding nor static linking is supported with a
9811	# broken collect2.
9812	hardcode_direct=unsupported
9813      fi
9814      ;;
9815
9816    aix[4-9]*)
9817      if test ia64 = "$host_cpu"; then
9818	# On IA64, the linker does run time linking by default, so we don't
9819	# have to do anything special.
9820	aix_use_runtimelinking=no
9821	exp_sym_flag='-Bexport'
9822	no_entry_flag=
9823      else
9824	# If we're using GNU nm, then we don't want the "-C" option.
9825	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9826	# Without the "-l" option, or with the "-B" option, AIX nm treats
9827	# weak defined symbols like other global defined symbols, whereas
9828	# GNU nm marks them as "W".
9829	# While the 'weak' keyword is ignored in the Export File, we need
9830	# it in the Import File for the 'aix-soname' feature, so we have
9831	# to replace the "-B" option with "-P" for AIX nm.
9832	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9833	  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'
9834	else
9835	  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'
9836	fi
9837	aix_use_runtimelinking=no
9838
9839	# Test if we are trying to use run time linking or normal
9840	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9841	# have runtime linking enabled, and use it for executables.
9842	# For shared libraries, we enable/disable runtime linking
9843	# depending on the kind of the shared library created -
9844	# when "with_aix_soname,aix_use_runtimelinking" is:
9845	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9846	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9847	#            lib.a           static archive
9848	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9849	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9850	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9851	#            lib.a(lib.so.V) shared, rtl:no
9852	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9853	#            lib.a           static archive
9854	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9855	  for ld_flag in $LDFLAGS; do
9856	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9857	    aix_use_runtimelinking=yes
9858	    break
9859	  fi
9860	  done
9861	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9862	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9863	    # so we don't have lib.a shared libs to link our executables.
9864	    # We have to force runtime linking in this case.
9865	    aix_use_runtimelinking=yes
9866	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9867	  fi
9868	  ;;
9869	esac
9870
9871	exp_sym_flag='-bexport'
9872	no_entry_flag='-bnoentry'
9873      fi
9874
9875      # When large executables or shared objects are built, AIX ld can
9876      # have problems creating the table of contents.  If linking a library
9877      # or program results in "error TOC overflow" add -mminimal-toc to
9878      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9879      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9880
9881      archive_cmds=''
9882      hardcode_direct=yes
9883      hardcode_direct_absolute=yes
9884      hardcode_libdir_separator=':'
9885      link_all_deplibs=yes
9886      file_list_spec='$wl-f,'
9887      case $with_aix_soname,$aix_use_runtimelinking in
9888      aix,*) ;; # traditional, no import file
9889      svr4,* | *,yes) # use import file
9890	# The Import File defines what to hardcode.
9891	hardcode_direct=no
9892	hardcode_direct_absolute=no
9893	;;
9894      esac
9895
9896      if test yes = "$GCC"; then
9897	case $host_os in aix4.[012]|aix4.[012].*)
9898	# We only want to do this on AIX 4.2 and lower, the check
9899	# below for broken collect2 doesn't work under 4.3+
9900	  collect2name=`$CC -print-prog-name=collect2`
9901	  if test -f "$collect2name" &&
9902	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9903	  then
9904	  # We have reworked collect2
9905	  :
9906	  else
9907	  # We have old collect2
9908	  hardcode_direct=unsupported
9909	  # It fails to find uninstalled libraries when the uninstalled
9910	  # path is not listed in the libpath.  Setting hardcode_minus_L
9911	  # to unsupported forces relinking
9912	  hardcode_minus_L=yes
9913	  hardcode_libdir_flag_spec='-L$libdir'
9914	  hardcode_libdir_separator=
9915	  fi
9916	  ;;
9917	esac
9918	shared_flag='-shared'
9919	if test yes = "$aix_use_runtimelinking"; then
9920	  shared_flag="$shared_flag "'$wl-G'
9921	fi
9922	# Need to ensure runtime linking is disabled for the traditional
9923	# shared library, or the linker may eventually find shared libraries
9924	# /with/ Import File - we do not want to mix them.
9925	shared_flag_aix='-shared'
9926	shared_flag_svr4='-shared $wl-G'
9927      else
9928	# not using gcc
9929	if test ia64 = "$host_cpu"; then
9930	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9931	# chokes on -Wl,-G. The following line is correct:
9932	  shared_flag='-G'
9933	else
9934	  if test yes = "$aix_use_runtimelinking"; then
9935	    shared_flag='$wl-G'
9936	  else
9937	    shared_flag='$wl-bM:SRE'
9938	  fi
9939	  shared_flag_aix='$wl-bM:SRE'
9940	  shared_flag_svr4='$wl-G'
9941	fi
9942      fi
9943
9944      export_dynamic_flag_spec='$wl-bexpall'
9945      # It seems that -bexpall does not export symbols beginning with
9946      # underscore (_), so it is better to generate a list of symbols to export.
9947      always_export_symbols=yes
9948      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9949	# Warning - without using the other runtime loading flags (-brtl),
9950	# -berok will link without error, but may produce a broken library.
9951	allow_undefined_flag='-berok'
9952        # Determine the default libpath from the value encoded in an
9953        # empty executable.
9954        if test set = "${lt_cv_aix_libpath+set}"; then
9955  aix_libpath=$lt_cv_aix_libpath
9956else
9957  if ${lt_cv_aix_libpath_+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h.  */
9962
9963int
9964main ()
9965{
9966
9967  ;
9968  return 0;
9969}
9970_ACEOF
9971if ac_fn_c_try_link "$LINENO"; then :
9972
9973  lt_aix_libpath_sed='
9974      /Import File Strings/,/^$/ {
9975	  /^0/ {
9976	      s/^0  *\([^ ]*\) *$/\1/
9977	      p
9978	  }
9979      }'
9980  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9981  # Check for a 64-bit object if we didn't find anything.
9982  if test -z "$lt_cv_aix_libpath_"; then
9983    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9984  fi
9985fi
9986rm -f core conftest.err conftest.$ac_objext \
9987    conftest$ac_exeext conftest.$ac_ext
9988  if test -z "$lt_cv_aix_libpath_"; then
9989    lt_cv_aix_libpath_=/usr/lib:/lib
9990  fi
9991
9992fi
9993
9994  aix_libpath=$lt_cv_aix_libpath_
9995fi
9996
9997        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9998        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
9999      else
10000	if test ia64 = "$host_cpu"; then
10001	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10002	  allow_undefined_flag="-z nodefs"
10003	  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"
10004	else
10005	 # Determine the default libpath from the value encoded in an
10006	 # empty executable.
10007	 if test set = "${lt_cv_aix_libpath+set}"; then
10008  aix_libpath=$lt_cv_aix_libpath
10009else
10010  if ${lt_cv_aix_libpath_+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015
10016int
10017main ()
10018{
10019
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025
10026  lt_aix_libpath_sed='
10027      /Import File Strings/,/^$/ {
10028	  /^0/ {
10029	      s/^0  *\([^ ]*\) *$/\1/
10030	      p
10031	  }
10032      }'
10033  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10034  # Check for a 64-bit object if we didn't find anything.
10035  if test -z "$lt_cv_aix_libpath_"; then
10036    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10037  fi
10038fi
10039rm -f core conftest.err conftest.$ac_objext \
10040    conftest$ac_exeext conftest.$ac_ext
10041  if test -z "$lt_cv_aix_libpath_"; then
10042    lt_cv_aix_libpath_=/usr/lib:/lib
10043  fi
10044
10045fi
10046
10047  aix_libpath=$lt_cv_aix_libpath_
10048fi
10049
10050	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10051	  # Warning - without using the other run time loading flags,
10052	  # -berok will link without error, but may produce a broken library.
10053	  no_undefined_flag=' $wl-bernotok'
10054	  allow_undefined_flag=' $wl-berok'
10055	  if test yes = "$with_gnu_ld"; then
10056	    # We only use this code for GNU lds that support --whole-archive.
10057	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10058	  else
10059	    # Exported symbols can be pulled into shared objects from archives
10060	    whole_archive_flag_spec='$convenience'
10061	  fi
10062	  archive_cmds_need_lc=yes
10063	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10064	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10065	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10066	  if test svr4 != "$with_aix_soname"; then
10067	    # This is similar to how AIX traditionally builds its shared libraries.
10068	    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'
10069	  fi
10070	  if test aix != "$with_aix_soname"; then
10071	    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'
10072	  else
10073	    # used by -dlpreopen to get the symbols
10074	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10075	  fi
10076	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10077	fi
10078      fi
10079      ;;
10080
10081    amigaos*)
10082      case $host_cpu in
10083      powerpc)
10084            # see comment about AmigaOS4 .so support
10085            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10086            archive_expsym_cmds=''
10087        ;;
10088      m68k)
10089            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)'
10090            hardcode_libdir_flag_spec='-L$libdir'
10091            hardcode_minus_L=yes
10092        ;;
10093      esac
10094      ;;
10095
10096    bsdi[45]*)
10097      export_dynamic_flag_spec=-rdynamic
10098      ;;
10099
10100    cygwin* | mingw* | pw32* | cegcc*)
10101      # When not using gcc, we currently assume that we are using
10102      # Microsoft Visual C++.
10103      # hardcode_libdir_flag_spec is actually meaningless, as there is
10104      # no search path for DLLs.
10105      case $cc_basename in
10106      cl*)
10107	# Native MSVC
10108	hardcode_libdir_flag_spec=' '
10109	allow_undefined_flag=unsupported
10110	always_export_symbols=yes
10111	file_list_spec='@'
10112	# Tell ltmain to make .lib files, not .a files.
10113	libext=lib
10114	# Tell ltmain to make .dll files, not .so files.
10115	shrext_cmds=.dll
10116	# FIXME: Setting linknames here is a bad hack.
10117	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10118	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10119            cp "$export_symbols" "$output_objdir/$soname.def";
10120            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10121          else
10122            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10123          fi~
10124          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10125          linknames='
10126	# The linker will not automatically build a static lib if we build a DLL.
10127	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10128	enable_shared_with_static_runtimes=yes
10129	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10130	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10131	# Don't use ranlib
10132	old_postinstall_cmds='chmod 644 $oldlib'
10133	postlink_cmds='lt_outputfile="@OUTPUT@"~
10134          lt_tool_outputfile="@TOOL_OUTPUT@"~
10135          case $lt_outputfile in
10136            *.exe|*.EXE) ;;
10137            *)
10138              lt_outputfile=$lt_outputfile.exe
10139              lt_tool_outputfile=$lt_tool_outputfile.exe
10140              ;;
10141          esac~
10142          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10143            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10144            $RM "$lt_outputfile.manifest";
10145          fi'
10146	;;
10147      *)
10148	# Assume MSVC wrapper
10149	hardcode_libdir_flag_spec=' '
10150	allow_undefined_flag=unsupported
10151	# Tell ltmain to make .lib files, not .a files.
10152	libext=lib
10153	# Tell ltmain to make .dll files, not .so files.
10154	shrext_cmds=.dll
10155	# FIXME: Setting linknames here is a bad hack.
10156	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10157	# The linker will automatically build a .lib file if we build a DLL.
10158	old_archive_from_new_cmds='true'
10159	# FIXME: Should let the user specify the lib program.
10160	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10161	enable_shared_with_static_runtimes=yes
10162	;;
10163      esac
10164      ;;
10165
10166    darwin* | rhapsody*)
10167
10168
10169  archive_cmds_need_lc=no
10170  hardcode_direct=no
10171  hardcode_automatic=yes
10172  hardcode_shlibpath_var=unsupported
10173  if test yes = "$lt_cv_ld_force_load"; then
10174    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\"`'
10175
10176  else
10177    whole_archive_flag_spec=''
10178  fi
10179  link_all_deplibs=yes
10180  allow_undefined_flag=$_lt_dar_allow_undefined
10181  case $cc_basename in
10182     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10183     *) _lt_dar_can_shared=$GCC ;;
10184  esac
10185  if test yes = "$_lt_dar_can_shared"; then
10186    output_verbose_link_cmd=func_echo_all
10187    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10188    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10189    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"
10190    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"
10191
10192  else
10193  ld_shlibs=no
10194  fi
10195
10196      ;;
10197
10198    dgux*)
10199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200      hardcode_libdir_flag_spec='-L$libdir'
10201      hardcode_shlibpath_var=no
10202      ;;
10203
10204    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10205    # support.  Future versions do this automatically, but an explicit c++rt0.o
10206    # does not break anything, and helps significantly (at the cost of a little
10207    # extra space).
10208    freebsd2.2*)
10209      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10210      hardcode_libdir_flag_spec='-R$libdir'
10211      hardcode_direct=yes
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10216    freebsd2.*)
10217      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10218      hardcode_direct=yes
10219      hardcode_minus_L=yes
10220      hardcode_shlibpath_var=no
10221      ;;
10222
10223    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10224    freebsd* | dragonfly*)
10225      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226      hardcode_libdir_flag_spec='-R$libdir'
10227      hardcode_direct=yes
10228      hardcode_shlibpath_var=no
10229      ;;
10230
10231    hpux9*)
10232      if test yes = "$GCC"; then
10233	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'
10234      else
10235	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'
10236      fi
10237      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10238      hardcode_libdir_separator=:
10239      hardcode_direct=yes
10240
10241      # hardcode_minus_L: Not really in the search PATH,
10242      # but as the default location of the library.
10243      hardcode_minus_L=yes
10244      export_dynamic_flag_spec='$wl-E'
10245      ;;
10246
10247    hpux10*)
10248      if test yes,no = "$GCC,$with_gnu_ld"; then
10249	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250      else
10251	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10252      fi
10253      if test no = "$with_gnu_ld"; then
10254	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10255	hardcode_libdir_separator=:
10256	hardcode_direct=yes
10257	hardcode_direct_absolute=yes
10258	export_dynamic_flag_spec='$wl-E'
10259	# hardcode_minus_L: Not really in the search PATH,
10260	# but as the default location of the library.
10261	hardcode_minus_L=yes
10262      fi
10263      ;;
10264
10265    hpux11*)
10266      if test yes,no = "$GCC,$with_gnu_ld"; then
10267	case $host_cpu in
10268	hppa*64*)
10269	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10270	  ;;
10271	ia64*)
10272	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10273	  ;;
10274	*)
10275	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10276	  ;;
10277	esac
10278      else
10279	case $host_cpu in
10280	hppa*64*)
10281	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	  ;;
10283	ia64*)
10284	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10285	  ;;
10286	*)
10287
10288	  # Older versions of the 11.00 compiler do not understand -b yet
10289	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10290	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10291$as_echo_n "checking if $CC understands -b... " >&6; }
10292if ${lt_cv_prog_compiler__b+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  lt_cv_prog_compiler__b=no
10296   save_LDFLAGS=$LDFLAGS
10297   LDFLAGS="$LDFLAGS -b"
10298   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10299   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10300     # The linker can only warn and ignore the option if not recognized
10301     # So say no if there are warnings
10302     if test -s conftest.err; then
10303       # Append any errors to the config.log.
10304       cat conftest.err 1>&5
10305       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10306       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10307       if diff conftest.exp conftest.er2 >/dev/null; then
10308         lt_cv_prog_compiler__b=yes
10309       fi
10310     else
10311       lt_cv_prog_compiler__b=yes
10312     fi
10313   fi
10314   $RM -r conftest*
10315   LDFLAGS=$save_LDFLAGS
10316
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10319$as_echo "$lt_cv_prog_compiler__b" >&6; }
10320
10321if test yes = "$lt_cv_prog_compiler__b"; then
10322    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323else
10324    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10325fi
10326
10327	  ;;
10328	esac
10329      fi
10330      if test no = "$with_gnu_ld"; then
10331	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10332	hardcode_libdir_separator=:
10333
10334	case $host_cpu in
10335	hppa*64*|ia64*)
10336	  hardcode_direct=no
10337	  hardcode_shlibpath_var=no
10338	  ;;
10339	*)
10340	  hardcode_direct=yes
10341	  hardcode_direct_absolute=yes
10342	  export_dynamic_flag_spec='$wl-E'
10343
10344	  # hardcode_minus_L: Not really in the search PATH,
10345	  # but as the default location of the library.
10346	  hardcode_minus_L=yes
10347	  ;;
10348	esac
10349      fi
10350      ;;
10351
10352    irix5* | irix6* | nonstopux*)
10353      if test yes = "$GCC"; then
10354	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'
10355	# Try to use the -exported_symbol ld option, if it does not
10356	# work, assume that -exports_file does not work either and
10357	# implicitly export all symbols.
10358	# This should be the same for all languages, so no per-tag cache variable.
10359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10360$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10361if ${lt_cv_irix_exported_symbol+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  save_LDFLAGS=$LDFLAGS
10365	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10366	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368int foo (void) { return 0; }
10369_ACEOF
10370if ac_fn_c_try_link "$LINENO"; then :
10371  lt_cv_irix_exported_symbol=yes
10372else
10373  lt_cv_irix_exported_symbol=no
10374fi
10375rm -f core conftest.err conftest.$ac_objext \
10376    conftest$ac_exeext conftest.$ac_ext
10377           LDFLAGS=$save_LDFLAGS
10378fi
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10380$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10381	if test yes = "$lt_cv_irix_exported_symbol"; then
10382          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'
10383	fi
10384      else
10385	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'
10386	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'
10387      fi
10388      archive_cmds_need_lc='no'
10389      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10390      hardcode_libdir_separator=:
10391      inherit_rpath=yes
10392      link_all_deplibs=yes
10393      ;;
10394
10395    linux*)
10396      case $cc_basename in
10397      tcc*)
10398	# Fabrice Bellard et al's Tiny C Compiler
10399	ld_shlibs=yes
10400	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10401	;;
10402      esac
10403      ;;
10404
10405    netbsd*)
10406      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10407	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10408      else
10409	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10410      fi
10411      hardcode_libdir_flag_spec='-R$libdir'
10412      hardcode_direct=yes
10413      hardcode_shlibpath_var=no
10414      ;;
10415
10416    newsos6)
10417      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10418      hardcode_direct=yes
10419      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10420      hardcode_libdir_separator=:
10421      hardcode_shlibpath_var=no
10422      ;;
10423
10424    *nto* | *qnx*)
10425      ;;
10426
10427    openbsd* | bitrig*)
10428      if test -f /usr/libexec/ld.so; then
10429	hardcode_direct=yes
10430	hardcode_shlibpath_var=no
10431	hardcode_direct_absolute=yes
10432	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10433	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10434	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10435	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10436	  export_dynamic_flag_spec='$wl-E'
10437	else
10438	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10439	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10440	fi
10441      else
10442	ld_shlibs=no
10443      fi
10444      ;;
10445
10446    os2*)
10447      hardcode_libdir_flag_spec='-L$libdir'
10448      hardcode_minus_L=yes
10449      allow_undefined_flag=unsupported
10450      shrext_cmds=.dll
10451      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10452	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10453	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10454	$ECHO EXPORTS >> $output_objdir/$libname.def~
10455	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10456	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10457	emximp -o $lib $output_objdir/$libname.def'
10458      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10459	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10460	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10461	$ECHO EXPORTS >> $output_objdir/$libname.def~
10462	prefix_cmds="$SED"~
10463	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10464	  prefix_cmds="$prefix_cmds -e 1d";
10465	fi~
10466	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10467	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10468	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10469	emximp -o $lib $output_objdir/$libname.def'
10470      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10471      enable_shared_with_static_runtimes=yes
10472      ;;
10473
10474    osf3*)
10475      if test yes = "$GCC"; then
10476	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10477	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'
10478      else
10479	allow_undefined_flag=' -expect_unresolved \*'
10480	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'
10481      fi
10482      archive_cmds_need_lc='no'
10483      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10484      hardcode_libdir_separator=:
10485      ;;
10486
10487    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10488      if test yes = "$GCC"; then
10489	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10490	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'
10491	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10492      else
10493	allow_undefined_flag=' -expect_unresolved \*'
10494	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'
10495	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~
10496          $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'
10497
10498	# Both c and cxx compiler support -rpath directly
10499	hardcode_libdir_flag_spec='-rpath $libdir'
10500      fi
10501      archive_cmds_need_lc='no'
10502      hardcode_libdir_separator=:
10503      ;;
10504
10505    solaris*)
10506      no_undefined_flag=' -z defs'
10507      if test yes = "$GCC"; then
10508	wlarc='$wl'
10509	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10510	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10511          $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'
10512      else
10513	case `$CC -V 2>&1` in
10514	*"Compilers 5.0"*)
10515	  wlarc=''
10516	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10518            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10519	  ;;
10520	*)
10521	  wlarc='$wl'
10522	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10523	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10524            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10525	  ;;
10526	esac
10527      fi
10528      hardcode_libdir_flag_spec='-R$libdir'
10529      hardcode_shlibpath_var=no
10530      case $host_os in
10531      solaris2.[0-5] | solaris2.[0-5].*) ;;
10532      *)
10533	# The compiler driver will combine and reorder linker options,
10534	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10535	# but is careful enough not to reorder.
10536	# Supported since Solaris 2.6 (maybe 2.5.1?)
10537	if test yes = "$GCC"; then
10538	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10539	else
10540	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10541	fi
10542	;;
10543      esac
10544      link_all_deplibs=yes
10545      ;;
10546
10547    sunos4*)
10548      if test sequent = "$host_vendor"; then
10549	# Use $CC to link under sequent, because it throws in some extra .o
10550	# files that make .init and .fini sections work.
10551	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10552      else
10553	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10554      fi
10555      hardcode_libdir_flag_spec='-L$libdir'
10556      hardcode_direct=yes
10557      hardcode_minus_L=yes
10558      hardcode_shlibpath_var=no
10559      ;;
10560
10561    sysv4)
10562      case $host_vendor in
10563	sni)
10564	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565	  hardcode_direct=yes # is this really true???
10566	;;
10567	siemens)
10568	  ## LD is ld it makes a PLAMLIB
10569	  ## CC just makes a GrossModule.
10570	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10571	  reload_cmds='$CC -r -o $output$reload_objs'
10572	  hardcode_direct=no
10573        ;;
10574	motorola)
10575	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10577	;;
10578      esac
10579      runpath_var='LD_RUN_PATH'
10580      hardcode_shlibpath_var=no
10581      ;;
10582
10583    sysv4.3*)
10584      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585      hardcode_shlibpath_var=no
10586      export_dynamic_flag_spec='-Bexport'
10587      ;;
10588
10589    sysv4*MP*)
10590      if test -d /usr/nec; then
10591	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592	hardcode_shlibpath_var=no
10593	runpath_var=LD_RUN_PATH
10594	hardcode_runpath_var=yes
10595	ld_shlibs=yes
10596      fi
10597      ;;
10598
10599    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10600      no_undefined_flag='$wl-z,text'
10601      archive_cmds_need_lc=no
10602      hardcode_shlibpath_var=no
10603      runpath_var='LD_RUN_PATH'
10604
10605      if test yes = "$GCC"; then
10606	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608      else
10609	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611      fi
10612      ;;
10613
10614    sysv5* | sco3.2v5* | sco5v6*)
10615      # Note: We CANNOT use -z defs as we might desire, because we do not
10616      # link with -lc, and that would cause any symbols used from libc to
10617      # always be unresolved, which means just about no library would
10618      # ever link correctly.  If we're not using GNU ld we use -z text
10619      # though, which does catch some bad symbols but isn't as heavy-handed
10620      # as -z defs.
10621      no_undefined_flag='$wl-z,text'
10622      allow_undefined_flag='$wl-z,nodefs'
10623      archive_cmds_need_lc=no
10624      hardcode_shlibpath_var=no
10625      hardcode_libdir_flag_spec='$wl-R,$libdir'
10626      hardcode_libdir_separator=':'
10627      link_all_deplibs=yes
10628      export_dynamic_flag_spec='$wl-Bexport'
10629      runpath_var='LD_RUN_PATH'
10630
10631      if test yes = "$GCC"; then
10632	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634      else
10635	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637      fi
10638      ;;
10639
10640    uts4*)
10641      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642      hardcode_libdir_flag_spec='-L$libdir'
10643      hardcode_shlibpath_var=no
10644      ;;
10645
10646    *)
10647      ld_shlibs=no
10648      ;;
10649    esac
10650
10651    if test sni = "$host_vendor"; then
10652      case $host in
10653      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10654	export_dynamic_flag_spec='$wl-Blargedynsym'
10655	;;
10656      esac
10657    fi
10658  fi
10659
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10661$as_echo "$ld_shlibs" >&6; }
10662test no = "$ld_shlibs" && can_build_shared=no
10663
10664with_gnu_ld=$with_gnu_ld
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680#
10681# Do we need to explicitly link libc?
10682#
10683case "x$archive_cmds_need_lc" in
10684x|xyes)
10685  # Assume -lc should be added
10686  archive_cmds_need_lc=yes
10687
10688  if test yes,yes = "$GCC,$enable_shared"; then
10689    case $archive_cmds in
10690    *'~'*)
10691      # FIXME: we may have to deal with multi-command sequences.
10692      ;;
10693    '$CC '*)
10694      # Test whether the compiler implicitly links with -lc since on some
10695      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10696      # to ld, don't add -lc before -lgcc.
10697      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10698$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10699if ${lt_cv_archive_cmds_need_lc+:} false; then :
10700  $as_echo_n "(cached) " >&6
10701else
10702  $RM conftest*
10703	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10704
10705	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10706  (eval $ac_compile) 2>&5
10707  ac_status=$?
10708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10709  test $ac_status = 0; } 2>conftest.err; then
10710	  soname=conftest
10711	  lib=conftest
10712	  libobjs=conftest.$ac_objext
10713	  deplibs=
10714	  wl=$lt_prog_compiler_wl
10715	  pic_flag=$lt_prog_compiler_pic
10716	  compiler_flags=-v
10717	  linker_flags=-v
10718	  verstring=
10719	  output_objdir=.
10720	  libname=conftest
10721	  lt_save_allow_undefined_flag=$allow_undefined_flag
10722	  allow_undefined_flag=
10723	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10724  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10725  ac_status=$?
10726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727  test $ac_status = 0; }
10728	  then
10729	    lt_cv_archive_cmds_need_lc=no
10730	  else
10731	    lt_cv_archive_cmds_need_lc=yes
10732	  fi
10733	  allow_undefined_flag=$lt_save_allow_undefined_flag
10734	else
10735	  cat conftest.err 1>&5
10736	fi
10737	$RM conftest*
10738
10739fi
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10741$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10742      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10743      ;;
10744    esac
10745  fi
10746  ;;
10747esac
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10901$as_echo_n "checking dynamic linker characteristics... " >&6; }
10902
10903if test yes = "$GCC"; then
10904  case $host_os in
10905    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10906    *) lt_awk_arg='/^libraries:/' ;;
10907  esac
10908  case $host_os in
10909    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10910    *) lt_sed_strip_eq='s|=/|/|g' ;;
10911  esac
10912  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10913  case $lt_search_path_spec in
10914  *\;*)
10915    # if the path contains ";" then we assume it to be the separator
10916    # otherwise default to the standard path separator (i.e. ":") - it is
10917    # assumed that no part of a normal pathname contains ";" but that should
10918    # okay in the real world where ";" in dirpaths is itself problematic.
10919    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10920    ;;
10921  *)
10922    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10923    ;;
10924  esac
10925  # Ok, now we have the path, separated by spaces, we can step through it
10926  # and add multilib dir if necessary...
10927  lt_tmp_lt_search_path_spec=
10928  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10929  # ...but if some path component already ends with the multilib dir we assume
10930  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10931  case "$lt_multi_os_dir; $lt_search_path_spec " in
10932  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10933    lt_multi_os_dir=
10934    ;;
10935  esac
10936  for lt_sys_path in $lt_search_path_spec; do
10937    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10938      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10939    elif test -n "$lt_multi_os_dir"; then
10940      test -d "$lt_sys_path" && \
10941	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10942    fi
10943  done
10944  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10945BEGIN {RS = " "; FS = "/|\n";} {
10946  lt_foo = "";
10947  lt_count = 0;
10948  for (lt_i = NF; lt_i > 0; lt_i--) {
10949    if ($lt_i != "" && $lt_i != ".") {
10950      if ($lt_i == "..") {
10951        lt_count++;
10952      } else {
10953        if (lt_count == 0) {
10954          lt_foo = "/" $lt_i lt_foo;
10955        } else {
10956          lt_count--;
10957        }
10958      }
10959    }
10960  }
10961  if (lt_foo != "") { lt_freq[lt_foo]++; }
10962  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10963}'`
10964  # AWK program above erroneously prepends '/' to C:/dos/paths
10965  # for these hosts.
10966  case $host_os in
10967    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10968      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10969  esac
10970  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10971else
10972  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10973fi
10974library_names_spec=
10975libname_spec='lib$name'
10976soname_spec=
10977shrext_cmds=.so
10978postinstall_cmds=
10979postuninstall_cmds=
10980finish_cmds=
10981finish_eval=
10982shlibpath_var=
10983shlibpath_overrides_runpath=unknown
10984version_type=none
10985dynamic_linker="$host_os ld.so"
10986sys_lib_dlsearch_path_spec="/lib /usr/lib"
10987need_lib_prefix=unknown
10988hardcode_into_libs=no
10989
10990# when you set need_version to no, make sure it does not cause -set_version
10991# flags to be left without arguments
10992need_version=unknown
10993
10994
10995
10996case $host_os in
10997aix3*)
10998  version_type=linux # correct to gnu/linux during the next big refactor
10999  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11000  shlibpath_var=LIBPATH
11001
11002  # AIX 3 has no versioning support, so we append a major version to the name.
11003  soname_spec='$libname$release$shared_ext$major'
11004  ;;
11005
11006aix[4-9]*)
11007  version_type=linux # correct to gnu/linux during the next big refactor
11008  need_lib_prefix=no
11009  need_version=no
11010  hardcode_into_libs=yes
11011  if test ia64 = "$host_cpu"; then
11012    # AIX 5 supports IA64
11013    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11014    shlibpath_var=LD_LIBRARY_PATH
11015  else
11016    # With GCC up to 2.95.x, collect2 would create an import file
11017    # for dependence libraries.  The import file would start with
11018    # the line '#! .'.  This would cause the generated library to
11019    # depend on '.', always an invalid library.  This was fixed in
11020    # development snapshots of GCC prior to 3.0.
11021    case $host_os in
11022      aix4 | aix4.[01] | aix4.[01].*)
11023      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11024	   echo ' yes '
11025	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11026	:
11027      else
11028	can_build_shared=no
11029      fi
11030      ;;
11031    esac
11032    # Using Import Files as archive members, it is possible to support
11033    # filename-based versioning of shared library archives on AIX. While
11034    # this would work for both with and without runtime linking, it will
11035    # prevent static linking of such archives. So we do filename-based
11036    # shared library versioning with .so extension only, which is used
11037    # when both runtime linking and shared linking is enabled.
11038    # Unfortunately, runtime linking may impact performance, so we do
11039    # not want this to be the default eventually. Also, we use the
11040    # versioned .so libs for executables only if there is the -brtl
11041    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11042    # To allow for filename-based versioning support, we need to create
11043    # libNAME.so.V as an archive file, containing:
11044    # *) an Import File, referring to the versioned filename of the
11045    #    archive as well as the shared archive member, telling the
11046    #    bitwidth (32 or 64) of that shared object, and providing the
11047    #    list of exported symbols of that shared object, eventually
11048    #    decorated with the 'weak' keyword
11049    # *) the shared object with the F_LOADONLY flag set, to really avoid
11050    #    it being seen by the linker.
11051    # At run time we better use the real file rather than another symlink,
11052    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11053
11054    case $with_aix_soname,$aix_use_runtimelinking in
11055    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11056    # soname into executable. Probably we can add versioning support to
11057    # collect2, so additional links can be useful in future.
11058    aix,yes) # traditional libtool
11059      dynamic_linker='AIX unversionable lib.so'
11060      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11061      # instead of lib<name>.a to let people know that these are not
11062      # typical AIX shared libraries.
11063      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11064      ;;
11065    aix,no) # traditional AIX only
11066      dynamic_linker='AIX lib.a(lib.so.V)'
11067      # We preserve .a as extension for shared libraries through AIX4.2
11068      # and later when we are not doing run time linking.
11069      library_names_spec='$libname$release.a $libname.a'
11070      soname_spec='$libname$release$shared_ext$major'
11071      ;;
11072    svr4,*) # full svr4 only
11073      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11074      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11075      # We do not specify a path in Import Files, so LIBPATH fires.
11076      shlibpath_overrides_runpath=yes
11077      ;;
11078    *,yes) # both, prefer svr4
11079      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11080      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11081      # unpreferred sharedlib libNAME.a needs extra handling
11082      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"'
11083      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"'
11084      # We do not specify a path in Import Files, so LIBPATH fires.
11085      shlibpath_overrides_runpath=yes
11086      ;;
11087    *,no) # both, prefer aix
11088      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11089      library_names_spec='$libname$release.a $libname.a'
11090      soname_spec='$libname$release$shared_ext$major'
11091      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11092      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)'
11093      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"'
11094      ;;
11095    esac
11096    shlibpath_var=LIBPATH
11097  fi
11098  ;;
11099
11100amigaos*)
11101  case $host_cpu in
11102  powerpc)
11103    # Since July 2007 AmigaOS4 officially supports .so libraries.
11104    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11105    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106    ;;
11107  m68k)
11108    library_names_spec='$libname.ixlibrary $libname.a'
11109    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11110    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'
11111    ;;
11112  esac
11113  ;;
11114
11115beos*)
11116  library_names_spec='$libname$shared_ext'
11117  dynamic_linker="$host_os ld.so"
11118  shlibpath_var=LIBRARY_PATH
11119  ;;
11120
11121bsdi[45]*)
11122  version_type=linux # correct to gnu/linux during the next big refactor
11123  need_version=no
11124  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125  soname_spec='$libname$release$shared_ext$major'
11126  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11127  shlibpath_var=LD_LIBRARY_PATH
11128  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11129  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11130  # the default ld.so.conf also contains /usr/contrib/lib and
11131  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11132  # libtool to hard-code these into programs
11133  ;;
11134
11135cygwin* | mingw* | pw32* | cegcc*)
11136  version_type=windows
11137  shrext_cmds=.dll
11138  need_version=no
11139  need_lib_prefix=no
11140
11141  case $GCC,$cc_basename in
11142  yes,*)
11143    # gcc
11144    library_names_spec='$libname.dll.a'
11145    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11146    postinstall_cmds='base_file=`basename \$file`~
11147      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11148      dldir=$destdir/`dirname \$dlpath`~
11149      test -d \$dldir || mkdir -p \$dldir~
11150      $install_prog $dir/$dlname \$dldir/$dlname~
11151      chmod a+x \$dldir/$dlname~
11152      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11153        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11154      fi'
11155    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11156      dlpath=$dir/\$dldll~
11157       $RM \$dlpath'
11158    shlibpath_overrides_runpath=yes
11159
11160    case $host_os in
11161    cygwin*)
11162      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11163      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11164
11165      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11166      ;;
11167    mingw* | cegcc*)
11168      # MinGW DLLs use traditional 'lib' prefix
11169      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11170      ;;
11171    pw32*)
11172      # pw32 DLLs use 'pw' prefix rather than 'lib'
11173      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11174      ;;
11175    esac
11176    dynamic_linker='Win32 ld.exe'
11177    ;;
11178
11179  *,cl*)
11180    # Native MSVC
11181    libname_spec='$name'
11182    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11183    library_names_spec='$libname.dll.lib'
11184
11185    case $build_os in
11186    mingw*)
11187      sys_lib_search_path_spec=
11188      lt_save_ifs=$IFS
11189      IFS=';'
11190      for lt_path in $LIB
11191      do
11192        IFS=$lt_save_ifs
11193        # Let DOS variable expansion print the short 8.3 style file name.
11194        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11195        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11196      done
11197      IFS=$lt_save_ifs
11198      # Convert to MSYS style.
11199      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11200      ;;
11201    cygwin*)
11202      # Convert to unix form, then to dos form, then back to unix form
11203      # but this time dos style (no spaces!) so that the unix form looks
11204      # like /cygdrive/c/PROGRA~1:/cygdr...
11205      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11206      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11207      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11208      ;;
11209    *)
11210      sys_lib_search_path_spec=$LIB
11211      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11212        # It is most probably a Windows format PATH.
11213        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11214      else
11215        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11216      fi
11217      # FIXME: find the short name or the path components, as spaces are
11218      # common. (e.g. "Program Files" -> "PROGRA~1")
11219      ;;
11220    esac
11221
11222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11223    postinstall_cmds='base_file=`basename \$file`~
11224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11225      dldir=$destdir/`dirname \$dlpath`~
11226      test -d \$dldir || mkdir -p \$dldir~
11227      $install_prog $dir/$dlname \$dldir/$dlname'
11228    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11229      dlpath=$dir/\$dldll~
11230       $RM \$dlpath'
11231    shlibpath_overrides_runpath=yes
11232    dynamic_linker='Win32 link.exe'
11233    ;;
11234
11235  *)
11236    # Assume MSVC wrapper
11237    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11238    dynamic_linker='Win32 ld.exe'
11239    ;;
11240  esac
11241  # FIXME: first we should search . and the directory the executable is in
11242  shlibpath_var=PATH
11243  ;;
11244
11245darwin* | rhapsody*)
11246  dynamic_linker="$host_os dyld"
11247  version_type=darwin
11248  need_lib_prefix=no
11249  need_version=no
11250  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11251  soname_spec='$libname$release$major$shared_ext'
11252  shlibpath_overrides_runpath=yes
11253  shlibpath_var=DYLD_LIBRARY_PATH
11254  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11255
11256  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11257  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11258  ;;
11259
11260dgux*)
11261  version_type=linux # correct to gnu/linux during the next big refactor
11262  need_lib_prefix=no
11263  need_version=no
11264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265  soname_spec='$libname$release$shared_ext$major'
11266  shlibpath_var=LD_LIBRARY_PATH
11267  ;;
11268
11269freebsd* | dragonfly*)
11270  # DragonFly does not have aout.  When/if they implement a new
11271  # versioning mechanism, adjust this.
11272  if test -x /usr/bin/objformat; then
11273    objformat=`/usr/bin/objformat`
11274  else
11275    case $host_os in
11276    freebsd[23].*) objformat=aout ;;
11277    *) objformat=elf ;;
11278    esac
11279  fi
11280  version_type=freebsd-$objformat
11281  case $version_type in
11282    freebsd-elf*)
11283      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11284      soname_spec='$libname$release$shared_ext$major'
11285      need_version=no
11286      need_lib_prefix=no
11287      ;;
11288    freebsd-*)
11289      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11290      need_version=yes
11291      ;;
11292  esac
11293  shlibpath_var=LD_LIBRARY_PATH
11294  case $host_os in
11295  freebsd2.*)
11296    shlibpath_overrides_runpath=yes
11297    ;;
11298  freebsd3.[01]* | freebsdelf3.[01]*)
11299    shlibpath_overrides_runpath=yes
11300    hardcode_into_libs=yes
11301    ;;
11302  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11303  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11304    shlibpath_overrides_runpath=no
11305    hardcode_into_libs=yes
11306    ;;
11307  *) # from 4.6 on, and DragonFly
11308    shlibpath_overrides_runpath=yes
11309    hardcode_into_libs=yes
11310    ;;
11311  esac
11312  ;;
11313
11314haiku*)
11315  version_type=linux # correct to gnu/linux during the next big refactor
11316  need_lib_prefix=no
11317  need_version=no
11318  dynamic_linker="$host_os runtime_loader"
11319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320  soname_spec='$libname$release$shared_ext$major'
11321  shlibpath_var=LIBRARY_PATH
11322  shlibpath_overrides_runpath=no
11323  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11324  hardcode_into_libs=yes
11325  ;;
11326
11327hpux9* | hpux10* | hpux11*)
11328  # Give a soname corresponding to the major version so that dld.sl refuses to
11329  # link against other versions.
11330  version_type=sunos
11331  need_lib_prefix=no
11332  need_version=no
11333  case $host_cpu in
11334  ia64*)
11335    shrext_cmds='.so'
11336    hardcode_into_libs=yes
11337    dynamic_linker="$host_os dld.so"
11338    shlibpath_var=LD_LIBRARY_PATH
11339    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11340    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11341    soname_spec='$libname$release$shared_ext$major'
11342    if test 32 = "$HPUX_IA64_MODE"; then
11343      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11344      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11345    else
11346      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11347      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11348    fi
11349    ;;
11350  hppa*64*)
11351    shrext_cmds='.sl'
11352    hardcode_into_libs=yes
11353    dynamic_linker="$host_os dld.sl"
11354    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11355    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357    soname_spec='$libname$release$shared_ext$major'
11358    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11359    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360    ;;
11361  *)
11362    shrext_cmds='.sl'
11363    dynamic_linker="$host_os dld.sl"
11364    shlibpath_var=SHLIB_PATH
11365    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11366    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367    soname_spec='$libname$release$shared_ext$major'
11368    ;;
11369  esac
11370  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11371  postinstall_cmds='chmod 555 $lib'
11372  # or fails outright, so override atomically:
11373  install_override_mode=555
11374  ;;
11375
11376interix[3-9]*)
11377  version_type=linux # correct to gnu/linux during the next big refactor
11378  need_lib_prefix=no
11379  need_version=no
11380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381  soname_spec='$libname$release$shared_ext$major'
11382  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11383  shlibpath_var=LD_LIBRARY_PATH
11384  shlibpath_overrides_runpath=no
11385  hardcode_into_libs=yes
11386  ;;
11387
11388irix5* | irix6* | nonstopux*)
11389  case $host_os in
11390    nonstopux*) version_type=nonstopux ;;
11391    *)
11392	if test yes = "$lt_cv_prog_gnu_ld"; then
11393		version_type=linux # correct to gnu/linux during the next big refactor
11394	else
11395		version_type=irix
11396	fi ;;
11397  esac
11398  need_lib_prefix=no
11399  need_version=no
11400  soname_spec='$libname$release$shared_ext$major'
11401  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11402  case $host_os in
11403  irix5* | nonstopux*)
11404    libsuff= shlibsuff=
11405    ;;
11406  *)
11407    case $LD in # libtool.m4 will add one of these switches to LD
11408    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11409      libsuff= shlibsuff= libmagic=32-bit;;
11410    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11411      libsuff=32 shlibsuff=N32 libmagic=N32;;
11412    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11413      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11414    *) libsuff= shlibsuff= libmagic=never-match;;
11415    esac
11416    ;;
11417  esac
11418  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11419  shlibpath_overrides_runpath=no
11420  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11421  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11422  hardcode_into_libs=yes
11423  ;;
11424
11425# No shared lib support for Linux oldld, aout, or coff.
11426linux*oldld* | linux*aout* | linux*coff*)
11427  dynamic_linker=no
11428  ;;
11429
11430linux*android*)
11431  version_type=none # Android doesn't support versioned libraries.
11432  need_lib_prefix=no
11433  need_version=no
11434  library_names_spec='$libname$release$shared_ext'
11435  soname_spec='$libname$release$shared_ext'
11436  finish_cmds=
11437  shlibpath_var=LD_LIBRARY_PATH
11438  shlibpath_overrides_runpath=yes
11439
11440  # This implies no fast_install, which is unacceptable.
11441  # Some rework will be needed to allow for fast_install
11442  # before this can be enabled.
11443  hardcode_into_libs=yes
11444
11445  dynamic_linker='Android linker'
11446  # Don't embed -rpath directories since the linker doesn't support them.
11447  hardcode_libdir_flag_spec='-L$libdir'
11448  ;;
11449
11450# This must be glibc/ELF.
11451linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11452  version_type=linux # correct to gnu/linux during the next big refactor
11453  need_lib_prefix=no
11454  need_version=no
11455  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456  soname_spec='$libname$release$shared_ext$major'
11457  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11458  shlibpath_var=LD_LIBRARY_PATH
11459  shlibpath_overrides_runpath=no
11460
11461  # Some binutils ld are patched to set DT_RUNPATH
11462  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11463  $as_echo_n "(cached) " >&6
11464else
11465  lt_cv_shlibpath_overrides_runpath=no
11466    save_LDFLAGS=$LDFLAGS
11467    save_libdir=$libdir
11468    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11469	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11470    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471/* end confdefs.h.  */
11472
11473int
11474main ()
11475{
11476
11477  ;
11478  return 0;
11479}
11480_ACEOF
11481if ac_fn_c_try_link "$LINENO"; then :
11482  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11483  lt_cv_shlibpath_overrides_runpath=yes
11484fi
11485fi
11486rm -f core conftest.err conftest.$ac_objext \
11487    conftest$ac_exeext conftest.$ac_ext
11488    LDFLAGS=$save_LDFLAGS
11489    libdir=$save_libdir
11490
11491fi
11492
11493  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11494
11495  # This implies no fast_install, which is unacceptable.
11496  # Some rework will be needed to allow for fast_install
11497  # before this can be enabled.
11498  hardcode_into_libs=yes
11499
11500  # Ideally, we could use ldconfig to report *all* directores which are
11501  # searched for libraries, however this is still not possible.  Aside from not
11502  # being certain /sbin/ldconfig is available, command
11503  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11504  # even though it is searched at run-time.  Try to do the best guess by
11505  # appending ld.so.conf contents (and includes) to the search path.
11506  if test -f /etc/ld.so.conf; then
11507    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' ' '`
11508    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11509  fi
11510
11511  # We used to test for /lib/ld.so.1 and disable shared libraries on
11512  # powerpc, because MkLinux only supported shared libraries with the
11513  # GNU dynamic linker.  Since this was broken with cross compilers,
11514  # most powerpc-linux boxes support dynamic linking these days and
11515  # people can always --disable-shared, the test was removed, and we
11516  # assume the GNU/Linux dynamic linker is in use.
11517  dynamic_linker='GNU/Linux ld.so'
11518  ;;
11519
11520netbsd*)
11521  version_type=sunos
11522  need_lib_prefix=no
11523  need_version=no
11524  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11525    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11526    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527    dynamic_linker='NetBSD (a.out) ld.so'
11528  else
11529    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530    soname_spec='$libname$release$shared_ext$major'
11531    dynamic_linker='NetBSD ld.elf_so'
11532  fi
11533  shlibpath_var=LD_LIBRARY_PATH
11534  shlibpath_overrides_runpath=yes
11535  hardcode_into_libs=yes
11536  ;;
11537
11538newsos6)
11539  version_type=linux # correct to gnu/linux during the next big refactor
11540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541  shlibpath_var=LD_LIBRARY_PATH
11542  shlibpath_overrides_runpath=yes
11543  ;;
11544
11545*nto* | *qnx*)
11546  version_type=qnx
11547  need_lib_prefix=no
11548  need_version=no
11549  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11550  soname_spec='$libname$release$shared_ext$major'
11551  shlibpath_var=LD_LIBRARY_PATH
11552  shlibpath_overrides_runpath=no
11553  hardcode_into_libs=yes
11554  dynamic_linker='ldqnx.so'
11555  ;;
11556
11557openbsd* | bitrig*)
11558  version_type=sunos
11559  sys_lib_dlsearch_path_spec=/usr/lib
11560  need_lib_prefix=no
11561  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11562    need_version=no
11563  else
11564    need_version=yes
11565  fi
11566  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  shlibpath_overrides_runpath=yes
11570  ;;
11571
11572os2*)
11573  libname_spec='$name'
11574  version_type=windows
11575  shrext_cmds=.dll
11576  need_version=no
11577  need_lib_prefix=no
11578  # OS/2 can only load a DLL with a base name of 8 characters or less.
11579  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11580    v=$($ECHO $release$versuffix | tr -d .-);
11581    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11582    $ECHO $n$v`$shared_ext'
11583  library_names_spec='${libname}_dll.$libext'
11584  dynamic_linker='OS/2 ld.exe'
11585  shlibpath_var=BEGINLIBPATH
11586  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11587  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11588  postinstall_cmds='base_file=`basename \$file`~
11589    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11590    dldir=$destdir/`dirname \$dlpath`~
11591    test -d \$dldir || mkdir -p \$dldir~
11592    $install_prog $dir/$dlname \$dldir/$dlname~
11593    chmod a+x \$dldir/$dlname~
11594    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11595      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11596    fi'
11597  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11598    dlpath=$dir/\$dldll~
11599    $RM \$dlpath'
11600  ;;
11601
11602osf3* | osf4* | osf5*)
11603  version_type=osf
11604  need_lib_prefix=no
11605  need_version=no
11606  soname_spec='$libname$release$shared_ext$major'
11607  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11608  shlibpath_var=LD_LIBRARY_PATH
11609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11610  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11611  ;;
11612
11613rdos*)
11614  dynamic_linker=no
11615  ;;
11616
11617solaris*)
11618  version_type=linux # correct to gnu/linux during the next big refactor
11619  need_lib_prefix=no
11620  need_version=no
11621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622  soname_spec='$libname$release$shared_ext$major'
11623  shlibpath_var=LD_LIBRARY_PATH
11624  shlibpath_overrides_runpath=yes
11625  hardcode_into_libs=yes
11626  # ldd complains unless libraries are executable
11627  postinstall_cmds='chmod +x $lib'
11628  ;;
11629
11630sunos4*)
11631  version_type=sunos
11632  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11633  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11634  shlibpath_var=LD_LIBRARY_PATH
11635  shlibpath_overrides_runpath=yes
11636  if test yes = "$with_gnu_ld"; then
11637    need_lib_prefix=no
11638  fi
11639  need_version=yes
11640  ;;
11641
11642sysv4 | sysv4.3*)
11643  version_type=linux # correct to gnu/linux during the next big refactor
11644  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645  soname_spec='$libname$release$shared_ext$major'
11646  shlibpath_var=LD_LIBRARY_PATH
11647  case $host_vendor in
11648    sni)
11649      shlibpath_overrides_runpath=no
11650      need_lib_prefix=no
11651      runpath_var=LD_RUN_PATH
11652      ;;
11653    siemens)
11654      need_lib_prefix=no
11655      ;;
11656    motorola)
11657      need_lib_prefix=no
11658      need_version=no
11659      shlibpath_overrides_runpath=no
11660      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11661      ;;
11662  esac
11663  ;;
11664
11665sysv4*MP*)
11666  if test -d /usr/nec; then
11667    version_type=linux # correct to gnu/linux during the next big refactor
11668    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11669    soname_spec='$libname$shared_ext.$major'
11670    shlibpath_var=LD_LIBRARY_PATH
11671  fi
11672  ;;
11673
11674sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11675  version_type=sco
11676  need_lib_prefix=no
11677  need_version=no
11678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11679  soname_spec='$libname$release$shared_ext$major'
11680  shlibpath_var=LD_LIBRARY_PATH
11681  shlibpath_overrides_runpath=yes
11682  hardcode_into_libs=yes
11683  if test yes = "$with_gnu_ld"; then
11684    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11685  else
11686    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11687    case $host_os in
11688      sco3.2v5*)
11689        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11690	;;
11691    esac
11692  fi
11693  sys_lib_dlsearch_path_spec='/usr/lib'
11694  ;;
11695
11696tpf*)
11697  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11698  version_type=linux # correct to gnu/linux during the next big refactor
11699  need_lib_prefix=no
11700  need_version=no
11701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702  shlibpath_var=LD_LIBRARY_PATH
11703  shlibpath_overrides_runpath=no
11704  hardcode_into_libs=yes
11705  ;;
11706
11707uts4*)
11708  version_type=linux # correct to gnu/linux during the next big refactor
11709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710  soname_spec='$libname$release$shared_ext$major'
11711  shlibpath_var=LD_LIBRARY_PATH
11712  ;;
11713
11714*)
11715  dynamic_linker=no
11716  ;;
11717esac
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11719$as_echo "$dynamic_linker" >&6; }
11720test no = "$dynamic_linker" && can_build_shared=no
11721
11722variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11723if test yes = "$GCC"; then
11724  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11725fi
11726
11727if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11728  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11729fi
11730
11731if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11732  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11733fi
11734
11735# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11736configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11737
11738# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11739func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11740
11741# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11742configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11841$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11842hardcode_action=
11843if test -n "$hardcode_libdir_flag_spec" ||
11844   test -n "$runpath_var" ||
11845   test yes = "$hardcode_automatic"; then
11846
11847  # We can hardcode non-existent directories.
11848  if test no != "$hardcode_direct" &&
11849     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11850     # have to relink, otherwise we might link with an installed library
11851     # when we should be linking with a yet-to-be-installed one
11852     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11853     test no != "$hardcode_minus_L"; then
11854    # Linking always hardcodes the temporary library directory.
11855    hardcode_action=relink
11856  else
11857    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11858    hardcode_action=immediate
11859  fi
11860else
11861  # We cannot hardcode anything, or else we can only hardcode existing
11862  # directories.
11863  hardcode_action=unsupported
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11866$as_echo "$hardcode_action" >&6; }
11867
11868if test relink = "$hardcode_action" ||
11869   test yes = "$inherit_rpath"; then
11870  # Fast installation is not supported
11871  enable_fast_install=no
11872elif test yes = "$shlibpath_overrides_runpath" ||
11873     test no = "$enable_shared"; then
11874  # Fast installation is not necessary
11875  enable_fast_install=needless
11876fi
11877
11878
11879
11880
11881
11882
11883  if test yes != "$enable_dlopen"; then
11884  enable_dlopen=unknown
11885  enable_dlopen_self=unknown
11886  enable_dlopen_self_static=unknown
11887else
11888  lt_cv_dlopen=no
11889  lt_cv_dlopen_libs=
11890
11891  case $host_os in
11892  beos*)
11893    lt_cv_dlopen=load_add_on
11894    lt_cv_dlopen_libs=
11895    lt_cv_dlopen_self=yes
11896    ;;
11897
11898  mingw* | pw32* | cegcc*)
11899    lt_cv_dlopen=LoadLibrary
11900    lt_cv_dlopen_libs=
11901    ;;
11902
11903  cygwin*)
11904    lt_cv_dlopen=dlopen
11905    lt_cv_dlopen_libs=
11906    ;;
11907
11908  darwin*)
11909    # if libdl is installed we need to link against it
11910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11911$as_echo_n "checking for dlopen in -ldl... " >&6; }
11912if ${ac_cv_lib_dl_dlopen+:} false; then :
11913  $as_echo_n "(cached) " >&6
11914else
11915  ac_check_lib_save_LIBS=$LIBS
11916LIBS="-ldl  $LIBS"
11917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h.  */
11919
11920/* Override any GCC internal prototype to avoid an error.
11921   Use char because int might match the return type of a GCC
11922   builtin and then its argument prototype would still apply.  */
11923#ifdef __cplusplus
11924extern "C"
11925#endif
11926char dlopen ();
11927int
11928main ()
11929{
11930return dlopen ();
11931  ;
11932  return 0;
11933}
11934_ACEOF
11935if ac_fn_c_try_link "$LINENO"; then :
11936  ac_cv_lib_dl_dlopen=yes
11937else
11938  ac_cv_lib_dl_dlopen=no
11939fi
11940rm -f core conftest.err conftest.$ac_objext \
11941    conftest$ac_exeext conftest.$ac_ext
11942LIBS=$ac_check_lib_save_LIBS
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11945$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11946if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11947  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11948else
11949
11950    lt_cv_dlopen=dyld
11951    lt_cv_dlopen_libs=
11952    lt_cv_dlopen_self=yes
11953
11954fi
11955
11956    ;;
11957
11958  tpf*)
11959    # Don't try to run any link tests for TPF.  We know it's impossible
11960    # because TPF is a cross-compiler, and we know how we open DSOs.
11961    lt_cv_dlopen=dlopen
11962    lt_cv_dlopen_libs=
11963    lt_cv_dlopen_self=no
11964    ;;
11965
11966  *)
11967    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11968if test "x$ac_cv_func_shl_load" = xyes; then :
11969  lt_cv_dlopen=shl_load
11970else
11971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11972$as_echo_n "checking for shl_load in -ldld... " >&6; }
11973if ${ac_cv_lib_dld_shl_load+:} false; then :
11974  $as_echo_n "(cached) " >&6
11975else
11976  ac_check_lib_save_LIBS=$LIBS
11977LIBS="-ldld  $LIBS"
11978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h.  */
11980
11981/* Override any GCC internal prototype to avoid an error.
11982   Use char because int might match the return type of a GCC
11983   builtin and then its argument prototype would still apply.  */
11984#ifdef __cplusplus
11985extern "C"
11986#endif
11987char shl_load ();
11988int
11989main ()
11990{
11991return shl_load ();
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_link "$LINENO"; then :
11997  ac_cv_lib_dld_shl_load=yes
11998else
11999  ac_cv_lib_dld_shl_load=no
12000fi
12001rm -f core conftest.err conftest.$ac_objext \
12002    conftest$ac_exeext conftest.$ac_ext
12003LIBS=$ac_check_lib_save_LIBS
12004fi
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12006$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12007if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12008  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12009else
12010  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12011if test "x$ac_cv_func_dlopen" = xyes; then :
12012  lt_cv_dlopen=dlopen
12013else
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12015$as_echo_n "checking for dlopen in -ldl... " >&6; }
12016if ${ac_cv_lib_dl_dlopen+:} false; then :
12017  $as_echo_n "(cached) " >&6
12018else
12019  ac_check_lib_save_LIBS=$LIBS
12020LIBS="-ldl  $LIBS"
12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025   Use char because int might match the return type of a GCC
12026   builtin and then its argument prototype would still apply.  */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char dlopen ();
12031int
12032main ()
12033{
12034return dlopen ();
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_link "$LINENO"; then :
12040  ac_cv_lib_dl_dlopen=yes
12041else
12042  ac_cv_lib_dl_dlopen=no
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045    conftest$ac_exeext conftest.$ac_ext
12046LIBS=$ac_check_lib_save_LIBS
12047fi
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12049$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12050if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12051  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12052else
12053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12054$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12055if ${ac_cv_lib_svld_dlopen+:} false; then :
12056  $as_echo_n "(cached) " >&6
12057else
12058  ac_check_lib_save_LIBS=$LIBS
12059LIBS="-lsvld  $LIBS"
12060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061/* end confdefs.h.  */
12062
12063/* Override any GCC internal prototype to avoid an error.
12064   Use char because int might match the return type of a GCC
12065   builtin and then its argument prototype would still apply.  */
12066#ifdef __cplusplus
12067extern "C"
12068#endif
12069char dlopen ();
12070int
12071main ()
12072{
12073return dlopen ();
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_link "$LINENO"; then :
12079  ac_cv_lib_svld_dlopen=yes
12080else
12081  ac_cv_lib_svld_dlopen=no
12082fi
12083rm -f core conftest.err conftest.$ac_objext \
12084    conftest$ac_exeext conftest.$ac_ext
12085LIBS=$ac_check_lib_save_LIBS
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12088$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12089if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12090  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12091else
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12093$as_echo_n "checking for dld_link in -ldld... " >&6; }
12094if ${ac_cv_lib_dld_dld_link+:} false; then :
12095  $as_echo_n "(cached) " >&6
12096else
12097  ac_check_lib_save_LIBS=$LIBS
12098LIBS="-ldld  $LIBS"
12099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h.  */
12101
12102/* Override any GCC internal prototype to avoid an error.
12103   Use char because int might match the return type of a GCC
12104   builtin and then its argument prototype would still apply.  */
12105#ifdef __cplusplus
12106extern "C"
12107#endif
12108char dld_link ();
12109int
12110main ()
12111{
12112return dld_link ();
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_link "$LINENO"; then :
12118  ac_cv_lib_dld_dld_link=yes
12119else
12120  ac_cv_lib_dld_dld_link=no
12121fi
12122rm -f core conftest.err conftest.$ac_objext \
12123    conftest$ac_exeext conftest.$ac_ext
12124LIBS=$ac_check_lib_save_LIBS
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12127$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12128if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12129  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12130fi
12131
12132
12133fi
12134
12135
12136fi
12137
12138
12139fi
12140
12141
12142fi
12143
12144
12145fi
12146
12147    ;;
12148  esac
12149
12150  if test no = "$lt_cv_dlopen"; then
12151    enable_dlopen=no
12152  else
12153    enable_dlopen=yes
12154  fi
12155
12156  case $lt_cv_dlopen in
12157  dlopen)
12158    save_CPPFLAGS=$CPPFLAGS
12159    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12160
12161    save_LDFLAGS=$LDFLAGS
12162    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12163
12164    save_LIBS=$LIBS
12165    LIBS="$lt_cv_dlopen_libs $LIBS"
12166
12167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12168$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12169if ${lt_cv_dlopen_self+:} false; then :
12170  $as_echo_n "(cached) " >&6
12171else
12172  	  if test yes = "$cross_compiling"; then :
12173  lt_cv_dlopen_self=cross
12174else
12175  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12176  lt_status=$lt_dlunknown
12177  cat > conftest.$ac_ext <<_LT_EOF
12178#line $LINENO "configure"
12179#include "confdefs.h"
12180
12181#if HAVE_DLFCN_H
12182#include <dlfcn.h>
12183#endif
12184
12185#include <stdio.h>
12186
12187#ifdef RTLD_GLOBAL
12188#  define LT_DLGLOBAL		RTLD_GLOBAL
12189#else
12190#  ifdef DL_GLOBAL
12191#    define LT_DLGLOBAL		DL_GLOBAL
12192#  else
12193#    define LT_DLGLOBAL		0
12194#  endif
12195#endif
12196
12197/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12198   find out it does not work in some platform. */
12199#ifndef LT_DLLAZY_OR_NOW
12200#  ifdef RTLD_LAZY
12201#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12202#  else
12203#    ifdef DL_LAZY
12204#      define LT_DLLAZY_OR_NOW		DL_LAZY
12205#    else
12206#      ifdef RTLD_NOW
12207#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12208#      else
12209#        ifdef DL_NOW
12210#          define LT_DLLAZY_OR_NOW	DL_NOW
12211#        else
12212#          define LT_DLLAZY_OR_NOW	0
12213#        endif
12214#      endif
12215#    endif
12216#  endif
12217#endif
12218
12219/* When -fvisibility=hidden is used, assume the code has been annotated
12220   correspondingly for the symbols needed.  */
12221#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12222int fnord () __attribute__((visibility("default")));
12223#endif
12224
12225int fnord () { return 42; }
12226int main ()
12227{
12228  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12229  int status = $lt_dlunknown;
12230
12231  if (self)
12232    {
12233      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12234      else
12235        {
12236	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12237          else puts (dlerror ());
12238	}
12239      /* dlclose (self); */
12240    }
12241  else
12242    puts (dlerror ());
12243
12244  return status;
12245}
12246_LT_EOF
12247  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12248  (eval $ac_link) 2>&5
12249  ac_status=$?
12250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12252    (./conftest; exit; ) >&5 2>/dev/null
12253    lt_status=$?
12254    case x$lt_status in
12255      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12256      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12257      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12258    esac
12259  else :
12260    # compilation failed
12261    lt_cv_dlopen_self=no
12262  fi
12263fi
12264rm -fr conftest*
12265
12266
12267fi
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12269$as_echo "$lt_cv_dlopen_self" >&6; }
12270
12271    if test yes = "$lt_cv_dlopen_self"; then
12272      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12273      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12274$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12275if ${lt_cv_dlopen_self_static+:} false; then :
12276  $as_echo_n "(cached) " >&6
12277else
12278  	  if test yes = "$cross_compiling"; then :
12279  lt_cv_dlopen_self_static=cross
12280else
12281  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12282  lt_status=$lt_dlunknown
12283  cat > conftest.$ac_ext <<_LT_EOF
12284#line $LINENO "configure"
12285#include "confdefs.h"
12286
12287#if HAVE_DLFCN_H
12288#include <dlfcn.h>
12289#endif
12290
12291#include <stdio.h>
12292
12293#ifdef RTLD_GLOBAL
12294#  define LT_DLGLOBAL		RTLD_GLOBAL
12295#else
12296#  ifdef DL_GLOBAL
12297#    define LT_DLGLOBAL		DL_GLOBAL
12298#  else
12299#    define LT_DLGLOBAL		0
12300#  endif
12301#endif
12302
12303/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12304   find out it does not work in some platform. */
12305#ifndef LT_DLLAZY_OR_NOW
12306#  ifdef RTLD_LAZY
12307#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12308#  else
12309#    ifdef DL_LAZY
12310#      define LT_DLLAZY_OR_NOW		DL_LAZY
12311#    else
12312#      ifdef RTLD_NOW
12313#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12314#      else
12315#        ifdef DL_NOW
12316#          define LT_DLLAZY_OR_NOW	DL_NOW
12317#        else
12318#          define LT_DLLAZY_OR_NOW	0
12319#        endif
12320#      endif
12321#    endif
12322#  endif
12323#endif
12324
12325/* When -fvisibility=hidden is used, assume the code has been annotated
12326   correspondingly for the symbols needed.  */
12327#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12328int fnord () __attribute__((visibility("default")));
12329#endif
12330
12331int fnord () { return 42; }
12332int main ()
12333{
12334  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12335  int status = $lt_dlunknown;
12336
12337  if (self)
12338    {
12339      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12340      else
12341        {
12342	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12343          else puts (dlerror ());
12344	}
12345      /* dlclose (self); */
12346    }
12347  else
12348    puts (dlerror ());
12349
12350  return status;
12351}
12352_LT_EOF
12353  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12354  (eval $ac_link) 2>&5
12355  ac_status=$?
12356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12358    (./conftest; exit; ) >&5 2>/dev/null
12359    lt_status=$?
12360    case x$lt_status in
12361      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12362      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12363      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12364    esac
12365  else :
12366    # compilation failed
12367    lt_cv_dlopen_self_static=no
12368  fi
12369fi
12370rm -fr conftest*
12371
12372
12373fi
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12375$as_echo "$lt_cv_dlopen_self_static" >&6; }
12376    fi
12377
12378    CPPFLAGS=$save_CPPFLAGS
12379    LDFLAGS=$save_LDFLAGS
12380    LIBS=$save_LIBS
12381    ;;
12382  esac
12383
12384  case $lt_cv_dlopen_self in
12385  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12386  *) enable_dlopen_self=unknown ;;
12387  esac
12388
12389  case $lt_cv_dlopen_self_static in
12390  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12391  *) enable_dlopen_self_static=unknown ;;
12392  esac
12393fi
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411striplib=
12412old_striplib=
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12414$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12415if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12416  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12417  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419$as_echo "yes" >&6; }
12420else
12421# FIXME - insert some real tests, host_os isn't really good enough
12422  case $host_os in
12423  darwin*)
12424    if test -n "$STRIP"; then
12425      striplib="$STRIP -x"
12426      old_striplib="$STRIP -S"
12427      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428$as_echo "yes" >&6; }
12429    else
12430      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431$as_echo "no" >&6; }
12432    fi
12433    ;;
12434  *)
12435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437    ;;
12438  esac
12439fi
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452  # Report what library types will actually be built
12453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12454$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12456$as_echo "$can_build_shared" >&6; }
12457
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12459$as_echo_n "checking whether to build shared libraries... " >&6; }
12460  test no = "$can_build_shared" && enable_shared=no
12461
12462  # On AIX, shared libraries and static libraries use the same namespace, and
12463  # are all built from PIC.
12464  case $host_os in
12465  aix3*)
12466    test yes = "$enable_shared" && enable_static=no
12467    if test -n "$RANLIB"; then
12468      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12469      postinstall_cmds='$RANLIB $lib'
12470    fi
12471    ;;
12472
12473  aix[4-9]*)
12474    if test ia64 != "$host_cpu"; then
12475      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12476      yes,aix,yes) ;;			# shared object as lib.so file only
12477      yes,svr4,*) ;;			# shared object as lib.so archive member only
12478      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12479      esac
12480    fi
12481    ;;
12482  esac
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12484$as_echo "$enable_shared" >&6; }
12485
12486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12487$as_echo_n "checking whether to build static libraries... " >&6; }
12488  # Make sure either enable_shared or enable_static is yes.
12489  test yes = "$enable_shared" || enable_static=yes
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12491$as_echo "$enable_static" >&6; }
12492
12493
12494
12495
12496fi
12497ac_ext=c
12498ac_cpp='$CPP $CPPFLAGS'
12499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502
12503CC=$lt_save_CC
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519        ac_config_commands="$ac_config_commands libtool"
12520
12521
12522
12523
12524# Only expand once:
12525
12526
12527
12528# pkg-config
12529
12530
12531
12532
12533
12534    if test x"${PKG_CONFIG}" = x"" ; then
12535        for ac_prog in pkgconf pkg-config
12536do
12537  # Extract the first word of "$ac_prog", so it can be a program name with args.
12538set dummy $ac_prog; ac_word=$2
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540$as_echo_n "checking for $ac_word... " >&6; }
12541if ${ac_cv_path_PKG_CONFIG+:} false; then :
12542  $as_echo_n "(cached) " >&6
12543else
12544  case $PKG_CONFIG in
12545  [\\/]* | ?:[\\/]*)
12546  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12547  ;;
12548  *)
12549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550for as_dir in $PATH
12551do
12552  IFS=$as_save_IFS
12553  test -z "$as_dir" && as_dir=.
12554    for ac_exec_ext in '' $ac_executable_extensions; do
12555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558    break 2
12559  fi
12560done
12561  done
12562IFS=$as_save_IFS
12563
12564  ;;
12565esac
12566fi
12567PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12568if test -n "$PKG_CONFIG"; then
12569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12570$as_echo "$PKG_CONFIG" >&6; }
12571else
12572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573$as_echo "no" >&6; }
12574fi
12575
12576
12577  test -n "$PKG_CONFIG" && break
12578done
12579 >/dev/null
12580    else
12581        # Extract the first word of "${PKG_CONFIG}", so it can be a program name with args.
12582set dummy ${PKG_CONFIG}; ac_word=$2
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if ${ac_cv_path_PKG_CONFIG+:} false; then :
12586  $as_echo_n "(cached) " >&6
12587else
12588  case $PKG_CONFIG in
12589  [\\/]* | ?:[\\/]*)
12590  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12591  ;;
12592  *)
12593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596  IFS=$as_save_IFS
12597  test -z "$as_dir" && as_dir=.
12598    for ac_exec_ext in '' $ac_executable_extensions; do
12599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602    break 2
12603  fi
12604done
12605  done
12606IFS=$as_save_IFS
12607
12608  ;;
12609esac
12610fi
12611PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12612if test -n "$PKG_CONFIG"; then
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12614$as_echo "$PKG_CONFIG" >&6; }
12615else
12616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618fi
12619
12620
12621    fi
12622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkg-config or pkgconf" >&5
12623$as_echo_n "checking for pkg-config or pkgconf... " >&6; }
12624    if test -x "${PKG_CONFIG}" ; then
12625        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG}" >&5
12626$as_echo "${PKG_CONFIG}" >&6; }
12627        case "${PKG_CONFIG}" in
12628        *pkgconf)
12629            _min_version="1.3.0"
12630            ;;
12631        *pkg-config)
12632            _min_version="0.23"
12633            ;;
12634        *)
12635            _min_version="9.9.error"
12636            ;;
12637        esac
12638        { $as_echo "$as_me:${as_lineno-$LINENO}: checking that ${PKG_CONFIG} is at least version ${_min_version}" >&5
12639$as_echo_n "checking that ${PKG_CONFIG} is at least version ${_min_version}... " >&6; }
12640        _act_version=`"${PKG_CONFIG}" --version`
12641        if ! "${PKG_CONFIG}" --atleast-pkgconfig-version="${_min_version}" ; then
12642            PKG_CONFIG=""
12643        fi
12644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_act_version}" >&5
12645$as_echo "${_act_version}" >&6; }
12646    else
12647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649        PKG_CONFIG=""
12650    fi
12651    if test x"${PKG_CONFIG}" = x"" ; then
12652        as_fn_error $? "pkg-config was not found or is too old" "$LINENO" 5
12653    fi
12654
12655# Check whether --with-pkgconfigdir was given.
12656if test "${with_pkgconfigdir+set}" = set; then :
12657  withval=$with_pkgconfigdir; pkgconfigdir=$withval
12658else
12659  pkgconfigdir='${libdir}/pkgconfig'
12660fi
12661
12662    pkgconfigdir=$pkgconfigdir
12663
12664
12665
12666# other programs
12667
12668
12669LIB_MAJ=2
12670
12671
12672cat >>confdefs.h <<_ACEOF
12673#define LIB_MAJ $LIB_MAJ
12674_ACEOF
12675
12676
12677# Check whether --enable-debug was given.
12678if test "${enable_debug+set}" = set; then :
12679  enableval=$enable_debug;
12680$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12681
12682fi
12683
12684
12685# Check whether --enable-unversioned-modules was given.
12686if test "${enable_unversioned_modules+set}" = set; then :
12687  enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12688
12689
12690$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12691
12692
12693fi
12694fi
12695
12696
12697
12698# Check whether --with-modules-dir was given.
12699if test "${with_modules_dir+set}" = set; then :
12700  withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12701
12702	OPENPAM_MODULES_DIR="$withval"
12703
12704cat >>confdefs.h <<_ACEOF
12705#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12706_ACEOF
12707
12708
12709fi
12710fi
12711
12712
12713 if test x"$OPENPAM_MODULES_DIR" != x""; then
12714  CUSTOM_MODULES_DIR_TRUE=
12715  CUSTOM_MODULES_DIR_FALSE='#'
12716else
12717  CUSTOM_MODULES_DIR_TRUE='#'
12718  CUSTOM_MODULES_DIR_FALSE=
12719fi
12720
12721
12722
12723# Check whether --with-doc was given.
12724if test "${with_doc+set}" = set; then :
12725  withval=$with_doc;
12726else
12727  with_doc=yes
12728fi
12729
12730 if test x"$with_doc" = x"yes"; then
12731  WITH_DOC_TRUE=
12732  WITH_DOC_FALSE='#'
12733else
12734  WITH_DOC_TRUE='#'
12735  WITH_DOC_FALSE=
12736fi
12737
12738
12739
12740# Check whether --with-pam-unix was given.
12741if test "${with_pam_unix+set}" = set; then :
12742  withval=$with_pam_unix;
12743else
12744  with_pam_unix=no
12745fi
12746
12747 if test x"$with_pam_unix" = x"yes"; then
12748  WITH_PAM_UNIX_TRUE=
12749  WITH_PAM_UNIX_FALSE='#'
12750else
12751  WITH_PAM_UNIX_TRUE='#'
12752  WITH_PAM_UNIX_FALSE=
12753fi
12754
12755
12756
12757# Check whether --with-pamtest was given.
12758if test "${with_pamtest+set}" = set; then :
12759  withval=$with_pamtest;
12760else
12761  with_pamtest=no
12762fi
12763
12764 if test x"$with_pamtest" = x"yes"; then
12765  WITH_PAMTEST_TRUE=
12766  WITH_PAMTEST_FALSE='#'
12767else
12768  WITH_PAMTEST_TRUE='#'
12769  WITH_PAMTEST_FALSE=
12770fi
12771
12772
12773
12774# Check whether --with-su was given.
12775if test "${with_su+set}" = set; then :
12776  withval=$with_su;
12777else
12778  with_su=no
12779fi
12780
12781 if test x"$with_su" = x"yes"; then
12782  WITH_SU_TRUE=
12783  WITH_SU_FALSE='#'
12784else
12785  WITH_SU_TRUE='#'
12786  WITH_SU_FALSE=
12787fi
12788
12789
12790
12791# Check whether --with-system-libpam was given.
12792if test "${with_system_libpam+set}" = set; then :
12793  withval=$with_system_libpam;
12794else
12795  with_system_libpam=no
12796fi
12797
12798 if test x"$with_system_libpam" = x"yes"; then
12799  WITH_SYSTEM_LIBPAM_TRUE=
12800  WITH_SYSTEM_LIBPAM_FALSE='#'
12801else
12802  WITH_SYSTEM_LIBPAM_TRUE='#'
12803  WITH_SYSTEM_LIBPAM_FALSE=
12804fi
12805
12806
12807for ac_header in crypt.h
12808do :
12809  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12810if test "x$ac_cv_header_crypt_h" = xyes; then :
12811  cat >>confdefs.h <<_ACEOF
12812#define HAVE_CRYPT_H 1
12813_ACEOF
12814
12815fi
12816
12817done
12818
12819
12820for ac_func in asprintf vasprintf
12821do :
12822  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12824if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12825  cat >>confdefs.h <<_ACEOF
12826#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827_ACEOF
12828
12829fi
12830done
12831
12832for ac_func in dlfunc fdlopen
12833do :
12834  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12835ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12836if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12837  cat >>confdefs.h <<_ACEOF
12838#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12839_ACEOF
12840
12841fi
12842done
12843
12844for ac_func in fpurge
12845do :
12846  ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12847if test "x$ac_cv_func_fpurge" = xyes; then :
12848  cat >>confdefs.h <<_ACEOF
12849#define HAVE_FPURGE 1
12850_ACEOF
12851
12852fi
12853done
12854
12855for ac_func in setlogmask
12856do :
12857  ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12858if test "x$ac_cv_func_setlogmask" = xyes; then :
12859  cat >>confdefs.h <<_ACEOF
12860#define HAVE_SETLOGMASK 1
12861_ACEOF
12862
12863fi
12864done
12865
12866for ac_func in strlcat strlcmp strlcpy strlset
12867do :
12868  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12870if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12871  cat >>confdefs.h <<_ACEOF
12872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12873_ACEOF
12874
12875fi
12876done
12877
12878
12879saved_LIBS="${LIBS}"
12880LIBS=""
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12882$as_echo_n "checking for dlopen in -ldl... " >&6; }
12883if ${ac_cv_lib_dl_dlopen+:} false; then :
12884  $as_echo_n "(cached) " >&6
12885else
12886  ac_check_lib_save_LIBS=$LIBS
12887LIBS="-ldl  $LIBS"
12888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h.  */
12890
12891/* Override any GCC internal prototype to avoid an error.
12892   Use char because int might match the return type of a GCC
12893   builtin and then its argument prototype would still apply.  */
12894#ifdef __cplusplus
12895extern "C"
12896#endif
12897char dlopen ();
12898int
12899main ()
12900{
12901return dlopen ();
12902  ;
12903  return 0;
12904}
12905_ACEOF
12906if ac_fn_c_try_link "$LINENO"; then :
12907  ac_cv_lib_dl_dlopen=yes
12908else
12909  ac_cv_lib_dl_dlopen=no
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912    conftest$ac_exeext conftest.$ac_ext
12913LIBS=$ac_check_lib_save_LIBS
12914fi
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12916$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12917if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12918  cat >>confdefs.h <<_ACEOF
12919#define HAVE_LIBDL 1
12920_ACEOF
12921
12922  LIBS="-ldl $LIBS"
12923
12924fi
12925
12926DL_LIBS="${LIBS}"
12927LIBS="${saved_LIBS}"
12928
12929
12930saved_LIBS="${LIBS}"
12931LIBS=""
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12933$as_echo_n "checking for pam_start in -lpam... " >&6; }
12934if ${ac_cv_lib_pam_pam_start+:} false; then :
12935  $as_echo_n "(cached) " >&6
12936else
12937  ac_check_lib_save_LIBS=$LIBS
12938LIBS="-lpam  $LIBS"
12939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h.  */
12941
12942/* Override any GCC internal prototype to avoid an error.
12943   Use char because int might match the return type of a GCC
12944   builtin and then its argument prototype would still apply.  */
12945#ifdef __cplusplus
12946extern "C"
12947#endif
12948char pam_start ();
12949int
12950main ()
12951{
12952return pam_start ();
12953  ;
12954  return 0;
12955}
12956_ACEOF
12957if ac_fn_c_try_link "$LINENO"; then :
12958  ac_cv_lib_pam_pam_start=yes
12959else
12960  ac_cv_lib_pam_pam_start=no
12961fi
12962rm -f core conftest.err conftest.$ac_objext \
12963    conftest$ac_exeext conftest.$ac_ext
12964LIBS=$ac_check_lib_save_LIBS
12965fi
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12967$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12968if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
12969  cat >>confdefs.h <<_ACEOF
12970#define HAVE_LIBPAM 1
12971_ACEOF
12972
12973  LIBS="-lpam $LIBS"
12974
12975fi
12976
12977SYSTEM_LIBPAM="${LIBS}"
12978LIBS="${saved_LIBS}"
12979
12980
12981
12982
12983
12984
12985
12986
12987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cryb-test is installed" >&5
12988$as_echo_n "checking if cryb-test is installed... " >&6; }
12989    if { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\${PKG_CONFIG}\" --exists --print-errors \"cryb-test\""; } >&5
12990  ("${PKG_CONFIG}" --exists --print-errors "cryb-test") 2>&5
12991  ac_status=$?
12992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993  test $ac_status = 0; } ; then
12994        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12995$as_echo "yes" >&6; }
12996        ax_pc_cv_have_cryb_test=yes
12997
12998$as_echo "#define HAVE_CRYB_TEST 1" >>confdefs.h
12999
13000        { $as_echo "$as_me:${as_lineno-$LINENO}: checking cryb-test version" >&5
13001$as_echo_n "checking cryb-test version... " >&6; }
13002
13003
13004
13005    ax_pc_cv_cryb_test_version=`"${PKG_CONFIG}" --modversion cryb-test`
13006
13007        CRYB_TEST_VERSION=$ax_pc_cv_cryb_test_version
13008
13009        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_version:-unknown}" >&5
13010$as_echo "${ax_pc_cv_cryb_test_version:-unknown}" >&6; }
13011        { $as_echo "$as_me:${as_lineno-$LINENO}: checking cryb-test compiler flags" >&5
13012$as_echo_n "checking cryb-test compiler flags... " >&6; }
13013
13014
13015
13016    ax_pc_cv_cryb_test_cflags=`"${PKG_CONFIG}" --cflags cryb-test`
13017
13018        CRYB_TEST_CFLAGS=$ax_pc_cv_cryb_test_cflags
13019
13020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_cflags:-none}" >&5
13021$as_echo "${ax_pc_cv_cryb_test_cflags:-none}" >&6; }
13022        { $as_echo "$as_me:${as_lineno-$LINENO}: checking cryb-test linker flags" >&5
13023$as_echo_n "checking cryb-test linker flags... " >&6; }
13024
13025
13026
13027    ax_pc_cv_cryb_test_libs=`"${PKG_CONFIG}" --libs cryb-test`
13028
13029        CRYB_TEST_LIBS=$ax_pc_cv_cryb_test_libs
13030
13031        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_libs:-none}" >&5
13032$as_echo "${ax_pc_cv_cryb_test_libs:-none}" >&6; }
13033        { $as_echo "$as_me:${as_lineno-$LINENO}: Cryb test framework found, unit tests enabled." >&5
13034$as_echo "$as_me: Cryb test framework found, unit tests enabled." >&6;}
13035    else
13036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037$as_echo "no" >&6; }
13038        ax_pc_cv_have_cryb_test=no
13039        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cryb test framework not found, unit tests disabled." >&5
13040$as_echo "$as_me: WARNING: Cryb test framework not found, unit tests disabled." >&2;}
13041    fi
13042
13043         if test x"$ax_pc_cv_have_cryb_test" = x"yes"; then
13044  HAVE_CRYB_TEST_TRUE=
13045  HAVE_CRYB_TEST_FALSE='#'
13046else
13047  HAVE_CRYB_TEST_TRUE='#'
13048  HAVE_CRYB_TEST_FALSE=
13049fi
13050
13051
13052
13053 if test x"$CRYB_TEST_LIBS" != x""; then
13054  WITH_TEST_TRUE=
13055  WITH_TEST_FALSE='#'
13056else
13057  WITH_TEST_TRUE='#'
13058  WITH_TEST_FALSE=
13059fi
13060
13061
13062# Check whether --enable-developer-warnings was given.
13063if test "${enable_developer_warnings+set}" = set; then :
13064  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual"
13065fi
13066
13067# Check whether --enable-debugging-symbols was given.
13068if test "${enable_debugging_symbols+set}" = set; then :
13069  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
13070fi
13071
13072# Check whether --enable-werror was given.
13073if test "${enable_werror+set}" = set; then :
13074  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
13075fi
13076
13077
13078ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile misc/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_return/Makefile modules/pam_unix/Makefile t/Makefile"
13079
13080ac_config_files="$ac_config_files mkpkgng"
13081
13082ac_config_files="$ac_config_files misc/coverage.sh"
13083
13084ac_config_files="$ac_config_files misc/coverity.sh"
13085
13086cat >confcache <<\_ACEOF
13087# This file is a shell script that caches the results of configure
13088# tests run on this system so they can be shared between configure
13089# scripts and configure runs, see configure's option --config-cache.
13090# It is not useful on other systems.  If it contains results you don't
13091# want to keep, you may remove or edit it.
13092#
13093# config.status only pays attention to the cache file if you give it
13094# the --recheck option to rerun configure.
13095#
13096# `ac_cv_env_foo' variables (set or unset) will be overridden when
13097# loading this file, other *unset* `ac_cv_foo' will be assigned the
13098# following values.
13099
13100_ACEOF
13101
13102# The following way of writing the cache mishandles newlines in values,
13103# but we know of no workaround that is simple, portable, and efficient.
13104# So, we kill variables containing newlines.
13105# Ultrix sh set writes to stderr and can't be redirected directly,
13106# and sets the high bit in the cache file unless we assign to the vars.
13107(
13108  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13109    eval ac_val=\$$ac_var
13110    case $ac_val in #(
13111    *${as_nl}*)
13112      case $ac_var in #(
13113      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13115      esac
13116      case $ac_var in #(
13117      _ | IFS | as_nl) ;; #(
13118      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13119      *) { eval $ac_var=; unset $ac_var;} ;;
13120      esac ;;
13121    esac
13122  done
13123
13124  (set) 2>&1 |
13125    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13126    *${as_nl}ac_space=\ *)
13127      # `set' does not quote correctly, so add quotes: double-quote
13128      # substitution turns \\\\ into \\, and sed turns \\ into \.
13129      sed -n \
13130	"s/'/'\\\\''/g;
13131	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13132      ;; #(
13133    *)
13134      # `set' quotes correctly as required by POSIX, so do not add quotes.
13135      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13136      ;;
13137    esac |
13138    sort
13139) |
13140  sed '
13141     /^ac_cv_env_/b end
13142     t clear
13143     :clear
13144     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13145     t end
13146     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13147     :end' >>confcache
13148if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13149  if test -w "$cache_file"; then
13150    if test "x$cache_file" != "x/dev/null"; then
13151      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13152$as_echo "$as_me: updating cache $cache_file" >&6;}
13153      if test ! -f "$cache_file" || test -h "$cache_file"; then
13154	cat confcache >"$cache_file"
13155      else
13156        case $cache_file in #(
13157        */* | ?:*)
13158	  mv -f confcache "$cache_file"$$ &&
13159	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13160        *)
13161	  mv -f confcache "$cache_file" ;;
13162	esac
13163      fi
13164    fi
13165  else
13166    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13167$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13168  fi
13169fi
13170rm -f confcache
13171
13172test "x$prefix" = xNONE && prefix=$ac_default_prefix
13173# Let make expand exec_prefix.
13174test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13175
13176DEFS=-DHAVE_CONFIG_H
13177
13178ac_libobjs=
13179ac_ltlibobjs=
13180for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13181  # 1. Remove the extension, and $U if already installed.
13182  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13183  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13184  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13185  #    will be set to the directory where LIBOBJS objects are built.
13186  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13187  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13188done
13189LIBOBJS=$ac_libobjs
13190
13191LTLIBOBJS=$ac_ltlibobjs
13192
13193
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13195$as_echo_n "checking that generated files are newer than configure... " >&6; }
13196   if test -n "$am_sleep_pid"; then
13197     # Hide warnings about reused PIDs.
13198     wait $am_sleep_pid 2>/dev/null
13199   fi
13200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13201$as_echo "done" >&6; }
13202 if test -n "$EXEEXT"; then
13203  am__EXEEXT_TRUE=
13204  am__EXEEXT_FALSE='#'
13205else
13206  am__EXEEXT_TRUE='#'
13207  am__EXEEXT_FALSE=
13208fi
13209
13210if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13211  as_fn_error $? "conditional \"AMDEP\" was never defined.
13212Usually this means the macro was only invoked conditionally." "$LINENO" 5
13213fi
13214if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13215  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13216Usually this means the macro was only invoked conditionally." "$LINENO" 5
13217fi
13218if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
13219  as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
13220Usually this means the macro was only invoked conditionally." "$LINENO" 5
13221fi
13222if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
13223  as_fn_error $? "conditional \"WITH_DOC\" was never defined.
13224Usually this means the macro was only invoked conditionally." "$LINENO" 5
13225fi
13226if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
13227  as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
13228Usually this means the macro was only invoked conditionally." "$LINENO" 5
13229fi
13230if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
13231  as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
13232Usually this means the macro was only invoked conditionally." "$LINENO" 5
13233fi
13234if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
13235  as_fn_error $? "conditional \"WITH_SU\" was never defined.
13236Usually this means the macro was only invoked conditionally." "$LINENO" 5
13237fi
13238if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then
13239  as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined.
13240Usually this means the macro was only invoked conditionally." "$LINENO" 5
13241fi
13242if test -z "${HAVE_CRYB_TEST_TRUE}" && test -z "${HAVE_CRYB_TEST_FALSE}"; then
13243  as_fn_error $? "conditional \"HAVE_CRYB_TEST\" was never defined.
13244Usually this means the macro was only invoked conditionally." "$LINENO" 5
13245fi
13246if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then
13247  as_fn_error $? "conditional \"WITH_TEST\" was never defined.
13248Usually this means the macro was only invoked conditionally." "$LINENO" 5
13249fi
13250
13251: "${CONFIG_STATUS=./config.status}"
13252ac_write_fail=0
13253ac_clean_files_save=$ac_clean_files
13254ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13256$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13257as_write_fail=0
13258cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13259#! $SHELL
13260# Generated by $as_me.
13261# Run this file to recreate the current configuration.
13262# Compiler output produced by configure, useful for debugging
13263# configure, is in config.log if it exists.
13264
13265debug=false
13266ac_cs_recheck=false
13267ac_cs_silent=false
13268
13269SHELL=\${CONFIG_SHELL-$SHELL}
13270export SHELL
13271_ASEOF
13272cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13273## -------------------- ##
13274## M4sh Initialization. ##
13275## -------------------- ##
13276
13277# Be more Bourne compatible
13278DUALCASE=1; export DUALCASE # for MKS sh
13279if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13280  emulate sh
13281  NULLCMD=:
13282  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13283  # is contrary to our usage.  Disable this feature.
13284  alias -g '${1+"$@"}'='"$@"'
13285  setopt NO_GLOB_SUBST
13286else
13287  case `(set -o) 2>/dev/null` in #(
13288  *posix*) :
13289    set -o posix ;; #(
13290  *) :
13291     ;;
13292esac
13293fi
13294
13295
13296as_nl='
13297'
13298export as_nl
13299# Printing a long string crashes Solaris 7 /usr/bin/printf.
13300as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13301as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13302as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13303# Prefer a ksh shell builtin over an external printf program on Solaris,
13304# but without wasting forks for bash or zsh.
13305if test -z "$BASH_VERSION$ZSH_VERSION" \
13306    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13307  as_echo='print -r --'
13308  as_echo_n='print -rn --'
13309elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13310  as_echo='printf %s\n'
13311  as_echo_n='printf %s'
13312else
13313  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13314    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13315    as_echo_n='/usr/ucb/echo -n'
13316  else
13317    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13318    as_echo_n_body='eval
13319      arg=$1;
13320      case $arg in #(
13321      *"$as_nl"*)
13322	expr "X$arg" : "X\\(.*\\)$as_nl";
13323	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13324      esac;
13325      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13326    '
13327    export as_echo_n_body
13328    as_echo_n='sh -c $as_echo_n_body as_echo'
13329  fi
13330  export as_echo_body
13331  as_echo='sh -c $as_echo_body as_echo'
13332fi
13333
13334# The user is always right.
13335if test "${PATH_SEPARATOR+set}" != set; then
13336  PATH_SEPARATOR=:
13337  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13338    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13339      PATH_SEPARATOR=';'
13340  }
13341fi
13342
13343
13344# IFS
13345# We need space, tab and new line, in precisely that order.  Quoting is
13346# there to prevent editors from complaining about space-tab.
13347# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13348# splitting by setting IFS to empty value.)
13349IFS=" ""	$as_nl"
13350
13351# Find who we are.  Look in the path if we contain no directory separator.
13352as_myself=
13353case $0 in #((
13354  *[\\/]* ) as_myself=$0 ;;
13355  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356for as_dir in $PATH
13357do
13358  IFS=$as_save_IFS
13359  test -z "$as_dir" && as_dir=.
13360    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13361  done
13362IFS=$as_save_IFS
13363
13364     ;;
13365esac
13366# We did not find ourselves, most probably we were run as `sh COMMAND'
13367# in which case we are not to be found in the path.
13368if test "x$as_myself" = x; then
13369  as_myself=$0
13370fi
13371if test ! -f "$as_myself"; then
13372  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13373  exit 1
13374fi
13375
13376# Unset variables that we do not need and which cause bugs (e.g. in
13377# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13378# suppresses any "Segmentation fault" message there.  '((' could
13379# trigger a bug in pdksh 5.2.14.
13380for as_var in BASH_ENV ENV MAIL MAILPATH
13381do eval test x\${$as_var+set} = xset \
13382  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13383done
13384PS1='$ '
13385PS2='> '
13386PS4='+ '
13387
13388# NLS nuisances.
13389LC_ALL=C
13390export LC_ALL
13391LANGUAGE=C
13392export LANGUAGE
13393
13394# CDPATH.
13395(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13396
13397
13398# as_fn_error STATUS ERROR [LINENO LOG_FD]
13399# ----------------------------------------
13400# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13401# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13402# script with STATUS, using 1 if that was 0.
13403as_fn_error ()
13404{
13405  as_status=$1; test $as_status -eq 0 && as_status=1
13406  if test "$4"; then
13407    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13408    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13409  fi
13410  $as_echo "$as_me: error: $2" >&2
13411  as_fn_exit $as_status
13412} # as_fn_error
13413
13414
13415# as_fn_set_status STATUS
13416# -----------------------
13417# Set $? to STATUS, without forking.
13418as_fn_set_status ()
13419{
13420  return $1
13421} # as_fn_set_status
13422
13423# as_fn_exit STATUS
13424# -----------------
13425# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13426as_fn_exit ()
13427{
13428  set +e
13429  as_fn_set_status $1
13430  exit $1
13431} # as_fn_exit
13432
13433# as_fn_unset VAR
13434# ---------------
13435# Portably unset VAR.
13436as_fn_unset ()
13437{
13438  { eval $1=; unset $1;}
13439}
13440as_unset=as_fn_unset
13441# as_fn_append VAR VALUE
13442# ----------------------
13443# Append the text in VALUE to the end of the definition contained in VAR. Take
13444# advantage of any shell optimizations that allow amortized linear growth over
13445# repeated appends, instead of the typical quadratic growth present in naive
13446# implementations.
13447if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13448  eval 'as_fn_append ()
13449  {
13450    eval $1+=\$2
13451  }'
13452else
13453  as_fn_append ()
13454  {
13455    eval $1=\$$1\$2
13456  }
13457fi # as_fn_append
13458
13459# as_fn_arith ARG...
13460# ------------------
13461# Perform arithmetic evaluation on the ARGs, and store the result in the
13462# global $as_val. Take advantage of shells that can avoid forks. The arguments
13463# must be portable across $(()) and expr.
13464if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13465  eval 'as_fn_arith ()
13466  {
13467    as_val=$(( $* ))
13468  }'
13469else
13470  as_fn_arith ()
13471  {
13472    as_val=`expr "$@" || test $? -eq 1`
13473  }
13474fi # as_fn_arith
13475
13476
13477if expr a : '\(a\)' >/dev/null 2>&1 &&
13478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13479  as_expr=expr
13480else
13481  as_expr=false
13482fi
13483
13484if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13485  as_basename=basename
13486else
13487  as_basename=false
13488fi
13489
13490if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13491  as_dirname=dirname
13492else
13493  as_dirname=false
13494fi
13495
13496as_me=`$as_basename -- "$0" ||
13497$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13498	 X"$0" : 'X\(//\)$' \| \
13499	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13500$as_echo X/"$0" |
13501    sed '/^.*\/\([^/][^/]*\)\/*$/{
13502	    s//\1/
13503	    q
13504	  }
13505	  /^X\/\(\/\/\)$/{
13506	    s//\1/
13507	    q
13508	  }
13509	  /^X\/\(\/\).*/{
13510	    s//\1/
13511	    q
13512	  }
13513	  s/.*/./; q'`
13514
13515# Avoid depending upon Character Ranges.
13516as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13517as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13518as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13519as_cr_digits='0123456789'
13520as_cr_alnum=$as_cr_Letters$as_cr_digits
13521
13522ECHO_C= ECHO_N= ECHO_T=
13523case `echo -n x` in #(((((
13524-n*)
13525  case `echo 'xy\c'` in
13526  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13527  xy)  ECHO_C='\c';;
13528  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13529       ECHO_T='	';;
13530  esac;;
13531*)
13532  ECHO_N='-n';;
13533esac
13534
13535rm -f conf$$ conf$$.exe conf$$.file
13536if test -d conf$$.dir; then
13537  rm -f conf$$.dir/conf$$.file
13538else
13539  rm -f conf$$.dir
13540  mkdir conf$$.dir 2>/dev/null
13541fi
13542if (echo >conf$$.file) 2>/dev/null; then
13543  if ln -s conf$$.file conf$$ 2>/dev/null; then
13544    as_ln_s='ln -s'
13545    # ... but there are two gotchas:
13546    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13547    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13548    # In both cases, we have to default to `cp -pR'.
13549    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13550      as_ln_s='cp -pR'
13551  elif ln conf$$.file conf$$ 2>/dev/null; then
13552    as_ln_s=ln
13553  else
13554    as_ln_s='cp -pR'
13555  fi
13556else
13557  as_ln_s='cp -pR'
13558fi
13559rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13560rmdir conf$$.dir 2>/dev/null
13561
13562
13563# as_fn_mkdir_p
13564# -------------
13565# Create "$as_dir" as a directory, including parents if necessary.
13566as_fn_mkdir_p ()
13567{
13568
13569  case $as_dir in #(
13570  -*) as_dir=./$as_dir;;
13571  esac
13572  test -d "$as_dir" || eval $as_mkdir_p || {
13573    as_dirs=
13574    while :; do
13575      case $as_dir in #(
13576      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13577      *) as_qdir=$as_dir;;
13578      esac
13579      as_dirs="'$as_qdir' $as_dirs"
13580      as_dir=`$as_dirname -- "$as_dir" ||
13581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13582	 X"$as_dir" : 'X\(//\)[^/]' \| \
13583	 X"$as_dir" : 'X\(//\)$' \| \
13584	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13585$as_echo X"$as_dir" |
13586    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13587	    s//\1/
13588	    q
13589	  }
13590	  /^X\(\/\/\)[^/].*/{
13591	    s//\1/
13592	    q
13593	  }
13594	  /^X\(\/\/\)$/{
13595	    s//\1/
13596	    q
13597	  }
13598	  /^X\(\/\).*/{
13599	    s//\1/
13600	    q
13601	  }
13602	  s/.*/./; q'`
13603      test -d "$as_dir" && break
13604    done
13605    test -z "$as_dirs" || eval "mkdir $as_dirs"
13606  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13607
13608
13609} # as_fn_mkdir_p
13610if mkdir -p . 2>/dev/null; then
13611  as_mkdir_p='mkdir -p "$as_dir"'
13612else
13613  test -d ./-p && rmdir ./-p
13614  as_mkdir_p=false
13615fi
13616
13617
13618# as_fn_executable_p FILE
13619# -----------------------
13620# Test if FILE is an executable regular file.
13621as_fn_executable_p ()
13622{
13623  test -f "$1" && test -x "$1"
13624} # as_fn_executable_p
13625as_test_x='test -x'
13626as_executable_p=as_fn_executable_p
13627
13628# Sed expression to map a string onto a valid CPP name.
13629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13630
13631# Sed expression to map a string onto a valid variable name.
13632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13633
13634
13635exec 6>&1
13636## ----------------------------------- ##
13637## Main body of $CONFIG_STATUS script. ##
13638## ----------------------------------- ##
13639_ASEOF
13640test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13641
13642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13643# Save the log message, to keep $0 and so on meaningful, and to
13644# report actual input values of CONFIG_FILES etc. instead of their
13645# values after options handling.
13646ac_log="
13647This file was extended by OpenPAM $as_me 20190224, which was
13648generated by GNU Autoconf 2.69.  Invocation command line was
13649
13650  CONFIG_FILES    = $CONFIG_FILES
13651  CONFIG_HEADERS  = $CONFIG_HEADERS
13652  CONFIG_LINKS    = $CONFIG_LINKS
13653  CONFIG_COMMANDS = $CONFIG_COMMANDS
13654  $ $0 $@
13655
13656on `(hostname || uname -n) 2>/dev/null | sed 1q`
13657"
13658
13659_ACEOF
13660
13661case $ac_config_files in *"
13662"*) set x $ac_config_files; shift; ac_config_files=$*;;
13663esac
13664
13665case $ac_config_headers in *"
13666"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13667esac
13668
13669
13670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671# Files that config.status was made for.
13672config_files="$ac_config_files"
13673config_headers="$ac_config_headers"
13674config_commands="$ac_config_commands"
13675
13676_ACEOF
13677
13678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13679ac_cs_usage="\
13680\`$as_me' instantiates files and other configuration actions
13681from templates according to the current configuration.  Unless the files
13682and actions are specified as TAGs, all are instantiated by default.
13683
13684Usage: $0 [OPTION]... [TAG]...
13685
13686  -h, --help       print this help, then exit
13687  -V, --version    print version number and configuration settings, then exit
13688      --config     print configuration, then exit
13689  -q, --quiet, --silent
13690                   do not print progress messages
13691  -d, --debug      don't remove temporary files
13692      --recheck    update $as_me by reconfiguring in the same conditions
13693      --file=FILE[:TEMPLATE]
13694                   instantiate the configuration file FILE
13695      --header=FILE[:TEMPLATE]
13696                   instantiate the configuration header FILE
13697
13698Configuration files:
13699$config_files
13700
13701Configuration headers:
13702$config_headers
13703
13704Configuration commands:
13705$config_commands
13706
13707Report bugs to <des@des.no>.
13708OpenPAM home page: <http://www.openpam.org/>."
13709
13710_ACEOF
13711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13712ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13713ac_cs_version="\\
13714OpenPAM config.status 20190224
13715configured by $0, generated by GNU Autoconf 2.69,
13716  with options \\"\$ac_cs_config\\"
13717
13718Copyright (C) 2012 Free Software Foundation, Inc.
13719This config.status script is free software; the Free Software Foundation
13720gives unlimited permission to copy, distribute and modify it."
13721
13722ac_pwd='$ac_pwd'
13723srcdir='$srcdir'
13724INSTALL='$INSTALL'
13725MKDIR_P='$MKDIR_P'
13726AWK='$AWK'
13727test -n "\$AWK" || AWK=awk
13728_ACEOF
13729
13730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731# The default lists apply if the user does not specify any file.
13732ac_need_defaults=:
13733while test $# != 0
13734do
13735  case $1 in
13736  --*=?*)
13737    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13738    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13739    ac_shift=:
13740    ;;
13741  --*=)
13742    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13743    ac_optarg=
13744    ac_shift=:
13745    ;;
13746  *)
13747    ac_option=$1
13748    ac_optarg=$2
13749    ac_shift=shift
13750    ;;
13751  esac
13752
13753  case $ac_option in
13754  # Handling of the options.
13755  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13756    ac_cs_recheck=: ;;
13757  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13758    $as_echo "$ac_cs_version"; exit ;;
13759  --config | --confi | --conf | --con | --co | --c )
13760    $as_echo "$ac_cs_config"; exit ;;
13761  --debug | --debu | --deb | --de | --d | -d )
13762    debug=: ;;
13763  --file | --fil | --fi | --f )
13764    $ac_shift
13765    case $ac_optarg in
13766    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13767    '') as_fn_error $? "missing file argument" ;;
13768    esac
13769    as_fn_append CONFIG_FILES " '$ac_optarg'"
13770    ac_need_defaults=false;;
13771  --header | --heade | --head | --hea )
13772    $ac_shift
13773    case $ac_optarg in
13774    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13775    esac
13776    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13777    ac_need_defaults=false;;
13778  --he | --h)
13779    # Conflict between --help and --header
13780    as_fn_error $? "ambiguous option: \`$1'
13781Try \`$0 --help' for more information.";;
13782  --help | --hel | -h )
13783    $as_echo "$ac_cs_usage"; exit ;;
13784  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13785  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13786    ac_cs_silent=: ;;
13787
13788  # This is an error.
13789  -*) as_fn_error $? "unrecognized option: \`$1'
13790Try \`$0 --help' for more information." ;;
13791
13792  *) as_fn_append ac_config_targets " $1"
13793     ac_need_defaults=false ;;
13794
13795  esac
13796  shift
13797done
13798
13799ac_configure_extra_args=
13800
13801if $ac_cs_silent; then
13802  exec 6>/dev/null
13803  ac_configure_extra_args="$ac_configure_extra_args --silent"
13804fi
13805
13806_ACEOF
13807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808if \$ac_cs_recheck; then
13809  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13810  shift
13811  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13812  CONFIG_SHELL='$SHELL'
13813  export CONFIG_SHELL
13814  exec "\$@"
13815fi
13816
13817_ACEOF
13818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819exec 5>>config.log
13820{
13821  echo
13822  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13823## Running $as_me. ##
13824_ASBOX
13825  $as_echo "$ac_log"
13826} >&5
13827
13828_ACEOF
13829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830#
13831# INIT-COMMANDS
13832#
13833AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13834
13835
13836# The HP-UX ksh and POSIX shell print the target directory to stdout
13837# if CDPATH is set.
13838(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13839
13840sed_quote_subst='$sed_quote_subst'
13841double_quote_subst='$double_quote_subst'
13842delay_variable_subst='$delay_variable_subst'
13843macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13844macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13845enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13846enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13847pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13848enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13849shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13850SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13851ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13852PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13853host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13854host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13855host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13856build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13857build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13858build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13859SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13860Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13861GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13862EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13863FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13864LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13865NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13866LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13867max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13868ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13869exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13870lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13871lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13872lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13873lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13874lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13875reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13876reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13877OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13878deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13879file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13880file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13881want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13882DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13883sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13884AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13885AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13886archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13887STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13888RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13889old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13890old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13891old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13892lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13893CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13894CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13895compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13896GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13897lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13898lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13899lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13900lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13901lt_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"`'
13902lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13903nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13904lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13905lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13906objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13907MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13908lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13909lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13910lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13911lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13912lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13913need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13914MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13915DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13916NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13917LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13918OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13919OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13920libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13921shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13922extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13923archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13924enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13925export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13926whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13927compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13928old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13929old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13930archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13931archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13932module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13933module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13934with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13935allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13936no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13937hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13938hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13939hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13940hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13941hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13942hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13943hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13944inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13945link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13946always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13947export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13948exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13949include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13950prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13951postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13952file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13953variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13954need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13955need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13956version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13957runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13958shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13959shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13960libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13961library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13962soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13963install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13964postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13965postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13966finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13967finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13968hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13969sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13970configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13971configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13972hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13973enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13974enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13975enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13976old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13977striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13978
13979LTCC='$LTCC'
13980LTCFLAGS='$LTCFLAGS'
13981compiler='$compiler_DEFAULT'
13982
13983# A function that is used when there is no print builtin or printf.
13984func_fallback_echo ()
13985{
13986  eval 'cat <<_LTECHO_EOF
13987\$1
13988_LTECHO_EOF'
13989}
13990
13991# Quote evaled strings.
13992for var in SHELL \
13993ECHO \
13994PATH_SEPARATOR \
13995SED \
13996GREP \
13997EGREP \
13998FGREP \
13999LD \
14000NM \
14001LN_S \
14002lt_SP2NL \
14003lt_NL2SP \
14004reload_flag \
14005OBJDUMP \
14006deplibs_check_method \
14007file_magic_cmd \
14008file_magic_glob \
14009want_nocaseglob \
14010DLLTOOL \
14011sharedlib_from_linklib_cmd \
14012AR \
14013AR_FLAGS \
14014archiver_list_spec \
14015STRIP \
14016RANLIB \
14017CC \
14018CFLAGS \
14019compiler \
14020lt_cv_sys_global_symbol_pipe \
14021lt_cv_sys_global_symbol_to_cdecl \
14022lt_cv_sys_global_symbol_to_import \
14023lt_cv_sys_global_symbol_to_c_name_address \
14024lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14025lt_cv_nm_interface \
14026nm_file_list_spec \
14027lt_cv_truncate_bin \
14028lt_prog_compiler_no_builtin_flag \
14029lt_prog_compiler_pic \
14030lt_prog_compiler_wl \
14031lt_prog_compiler_static \
14032lt_cv_prog_compiler_c_o \
14033need_locks \
14034MANIFEST_TOOL \
14035DSYMUTIL \
14036NMEDIT \
14037LIPO \
14038OTOOL \
14039OTOOL64 \
14040shrext_cmds \
14041export_dynamic_flag_spec \
14042whole_archive_flag_spec \
14043compiler_needs_object \
14044with_gnu_ld \
14045allow_undefined_flag \
14046no_undefined_flag \
14047hardcode_libdir_flag_spec \
14048hardcode_libdir_separator \
14049exclude_expsyms \
14050include_expsyms \
14051file_list_spec \
14052variables_saved_for_relink \
14053libname_spec \
14054library_names_spec \
14055soname_spec \
14056install_override_mode \
14057finish_eval \
14058old_striplib \
14059striplib; do
14060    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14061    *[\\\\\\\`\\"\\\$]*)
14062      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14063      ;;
14064    *)
14065      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14066      ;;
14067    esac
14068done
14069
14070# Double-quote double-evaled strings.
14071for var in reload_cmds \
14072old_postinstall_cmds \
14073old_postuninstall_cmds \
14074old_archive_cmds \
14075extract_expsyms_cmds \
14076old_archive_from_new_cmds \
14077old_archive_from_expsyms_cmds \
14078archive_cmds \
14079archive_expsym_cmds \
14080module_cmds \
14081module_expsym_cmds \
14082export_symbols_cmds \
14083prelink_cmds \
14084postlink_cmds \
14085postinstall_cmds \
14086postuninstall_cmds \
14087finish_cmds \
14088sys_lib_search_path_spec \
14089configure_time_dlsearch_path \
14090configure_time_lt_sys_library_path; do
14091    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14092    *[\\\\\\\`\\"\\\$]*)
14093      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14094      ;;
14095    *)
14096      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14097      ;;
14098    esac
14099done
14100
14101ac_aux_dir='$ac_aux_dir'
14102
14103# See if we are running on zsh, and set the options that allow our
14104# commands through without removal of \ escapes INIT.
14105if test -n "\${ZSH_VERSION+set}"; then
14106   setopt NO_GLOB_SUBST
14107fi
14108
14109
14110    PACKAGE='$PACKAGE'
14111    VERSION='$VERSION'
14112    RM='$RM'
14113    ofile='$ofile'
14114
14115
14116
14117
14118_ACEOF
14119
14120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14121
14122# Handling of arguments.
14123for ac_config_target in $ac_config_targets
14124do
14125  case $ac_config_target in
14126    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14127    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14128    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14129    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14130    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14131    "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
14132    "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
14133    "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
14134    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14135    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
14136    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14137    "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
14138    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14139    "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
14140    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
14141    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14142    "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
14143    "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
14144    "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;;
14145    "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
14146    "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
14147    "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
14148    "misc/coverage.sh") CONFIG_FILES="$CONFIG_FILES misc/coverage.sh" ;;
14149    "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;;
14150
14151  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14152  esac
14153done
14154
14155
14156# If the user did not use the arguments to specify the items to instantiate,
14157# then the envvar interface is used.  Set only those that are not.
14158# We use the long form for the default assignment because of an extremely
14159# bizarre bug on SunOS 4.1.3.
14160if $ac_need_defaults; then
14161  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14162  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14163  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14164fi
14165
14166# Have a temporary directory for convenience.  Make it in the build tree
14167# simply because there is no reason against having it here, and in addition,
14168# creating and moving files from /tmp can sometimes cause problems.
14169# Hook for its removal unless debugging.
14170# Note that there is a small window in which the directory will not be cleaned:
14171# after its creation but before its name has been assigned to `$tmp'.
14172$debug ||
14173{
14174  tmp= ac_tmp=
14175  trap 'exit_status=$?
14176  : "${ac_tmp:=$tmp}"
14177  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14178' 0
14179  trap 'as_fn_exit 1' 1 2 13 15
14180}
14181# Create a (secure) tmp directory for tmp files.
14182
14183{
14184  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14185  test -d "$tmp"
14186}  ||
14187{
14188  tmp=./conf$$-$RANDOM
14189  (umask 077 && mkdir "$tmp")
14190} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14191ac_tmp=$tmp
14192
14193# Set up the scripts for CONFIG_FILES section.
14194# No need to generate them if there are no CONFIG_FILES.
14195# This happens for instance with `./config.status config.h'.
14196if test -n "$CONFIG_FILES"; then
14197
14198
14199ac_cr=`echo X | tr X '\015'`
14200# On cygwin, bash can eat \r inside `` if the user requested igncr.
14201# But we know of no other shell where ac_cr would be empty at this
14202# point, so we can use a bashism as a fallback.
14203if test "x$ac_cr" = x; then
14204  eval ac_cr=\$\'\\r\'
14205fi
14206ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14207if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14208  ac_cs_awk_cr='\\r'
14209else
14210  ac_cs_awk_cr=$ac_cr
14211fi
14212
14213echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14214_ACEOF
14215
14216
14217{
14218  echo "cat >conf$$subs.awk <<_ACEOF" &&
14219  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14220  echo "_ACEOF"
14221} >conf$$subs.sh ||
14222  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14223ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14224ac_delim='%!_!# '
14225for ac_last_try in false false false false false :; do
14226  . ./conf$$subs.sh ||
14227    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14228
14229  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14230  if test $ac_delim_n = $ac_delim_num; then
14231    break
14232  elif $ac_last_try; then
14233    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14234  else
14235    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14236  fi
14237done
14238rm -f conf$$subs.sh
14239
14240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14242_ACEOF
14243sed -n '
14244h
14245s/^/S["/; s/!.*/"]=/
14246p
14247g
14248s/^[^!]*!//
14249:repl
14250t repl
14251s/'"$ac_delim"'$//
14252t delim
14253:nl
14254h
14255s/\(.\{148\}\)..*/\1/
14256t more1
14257s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14258p
14259n
14260b repl
14261:more1
14262s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14263p
14264g
14265s/.\{148\}//
14266t nl
14267:delim
14268h
14269s/\(.\{148\}\)..*/\1/
14270t more2
14271s/["\\]/\\&/g; s/^/"/; s/$/"/
14272p
14273b
14274:more2
14275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14276p
14277g
14278s/.\{148\}//
14279t delim
14280' <conf$$subs.awk | sed '
14281/^[^""]/{
14282  N
14283  s/\n//
14284}
14285' >>$CONFIG_STATUS || ac_write_fail=1
14286rm -f conf$$subs.awk
14287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288_ACAWK
14289cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14290  for (key in S) S_is_set[key] = 1
14291  FS = ""
14292
14293}
14294{
14295  line = $ 0
14296  nfields = split(line, field, "@")
14297  substed = 0
14298  len = length(field[1])
14299  for (i = 2; i < nfields; i++) {
14300    key = field[i]
14301    keylen = length(key)
14302    if (S_is_set[key]) {
14303      value = S[key]
14304      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14305      len += length(value) + length(field[++i])
14306      substed = 1
14307    } else
14308      len += 1 + keylen
14309  }
14310
14311  print line
14312}
14313
14314_ACAWK
14315_ACEOF
14316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14318  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14319else
14320  cat
14321fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14322  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14323_ACEOF
14324
14325# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14326# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14327# trailing colons and then remove the whole line if VPATH becomes empty
14328# (actually we leave an empty line to preserve line numbers).
14329if test "x$srcdir" = x.; then
14330  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14331h
14332s///
14333s/^/:/
14334s/[	 ]*$/:/
14335s/:\$(srcdir):/:/g
14336s/:\${srcdir}:/:/g
14337s/:@srcdir@:/:/g
14338s/^:*//
14339s/:*$//
14340x
14341s/\(=[	 ]*\).*/\1/
14342G
14343s/\n//
14344s/^[^=]*=[	 ]*$//
14345}'
14346fi
14347
14348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14349fi # test -n "$CONFIG_FILES"
14350
14351# Set up the scripts for CONFIG_HEADERS section.
14352# No need to generate them if there are no CONFIG_HEADERS.
14353# This happens for instance with `./config.status Makefile'.
14354if test -n "$CONFIG_HEADERS"; then
14355cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14356BEGIN {
14357_ACEOF
14358
14359# Transform confdefs.h into an awk script `defines.awk', embedded as
14360# here-document in config.status, that substitutes the proper values into
14361# config.h.in to produce config.h.
14362
14363# Create a delimiter string that does not exist in confdefs.h, to ease
14364# handling of long lines.
14365ac_delim='%!_!# '
14366for ac_last_try in false false :; do
14367  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14368  if test -z "$ac_tt"; then
14369    break
14370  elif $ac_last_try; then
14371    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14372  else
14373    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14374  fi
14375done
14376
14377# For the awk script, D is an array of macro values keyed by name,
14378# likewise P contains macro parameters if any.  Preserve backslash
14379# newline sequences.
14380
14381ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14382sed -n '
14383s/.\{148\}/&'"$ac_delim"'/g
14384t rset
14385:rset
14386s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14387t def
14388d
14389:def
14390s/\\$//
14391t bsnl
14392s/["\\]/\\&/g
14393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14394D["\1"]=" \3"/p
14395s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14396d
14397:bsnl
14398s/["\\]/\\&/g
14399s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14400D["\1"]=" \3\\\\\\n"\\/p
14401t cont
14402s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14403t cont
14404d
14405:cont
14406n
14407s/.\{148\}/&'"$ac_delim"'/g
14408t clear
14409:clear
14410s/\\$//
14411t bsnlc
14412s/["\\]/\\&/g; s/^/"/; s/$/"/p
14413d
14414:bsnlc
14415s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14416b cont
14417' <confdefs.h | sed '
14418s/'"$ac_delim"'/"\\\
14419"/g' >>$CONFIG_STATUS || ac_write_fail=1
14420
14421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14422  for (key in D) D_is_set[key] = 1
14423  FS = ""
14424}
14425/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14426  line = \$ 0
14427  split(line, arg, " ")
14428  if (arg[1] == "#") {
14429    defundef = arg[2]
14430    mac1 = arg[3]
14431  } else {
14432    defundef = substr(arg[1], 2)
14433    mac1 = arg[2]
14434  }
14435  split(mac1, mac2, "(") #)
14436  macro = mac2[1]
14437  prefix = substr(line, 1, index(line, defundef) - 1)
14438  if (D_is_set[macro]) {
14439    # Preserve the white space surrounding the "#".
14440    print prefix "define", macro P[macro] D[macro]
14441    next
14442  } else {
14443    # Replace #undef with comments.  This is necessary, for example,
14444    # in the case of _POSIX_SOURCE, which is predefined and required
14445    # on some systems where configure will not decide to define it.
14446    if (defundef == "undef") {
14447      print "/*", prefix defundef, macro, "*/"
14448      next
14449    }
14450  }
14451}
14452{ print }
14453_ACAWK
14454_ACEOF
14455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14456  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14457fi # test -n "$CONFIG_HEADERS"
14458
14459
14460eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14461shift
14462for ac_tag
14463do
14464  case $ac_tag in
14465  :[FHLC]) ac_mode=$ac_tag; continue;;
14466  esac
14467  case $ac_mode$ac_tag in
14468  :[FHL]*:*);;
14469  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14470  :[FH]-) ac_tag=-:-;;
14471  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14472  esac
14473  ac_save_IFS=$IFS
14474  IFS=:
14475  set x $ac_tag
14476  IFS=$ac_save_IFS
14477  shift
14478  ac_file=$1
14479  shift
14480
14481  case $ac_mode in
14482  :L) ac_source=$1;;
14483  :[FH])
14484    ac_file_inputs=
14485    for ac_f
14486    do
14487      case $ac_f in
14488      -) ac_f="$ac_tmp/stdin";;
14489      *) # Look for the file first in the build tree, then in the source tree
14490	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14491	 # because $ac_f cannot contain `:'.
14492	 test -f "$ac_f" ||
14493	   case $ac_f in
14494	   [\\/$]*) false;;
14495	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14496	   esac ||
14497	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14498      esac
14499      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14500      as_fn_append ac_file_inputs " '$ac_f'"
14501    done
14502
14503    # Let's still pretend it is `configure' which instantiates (i.e., don't
14504    # use $as_me), people would be surprised to read:
14505    #    /* config.h.  Generated by config.status.  */
14506    configure_input='Generated from '`
14507	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14508	`' by configure.'
14509    if test x"$ac_file" != x-; then
14510      configure_input="$ac_file.  $configure_input"
14511      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14512$as_echo "$as_me: creating $ac_file" >&6;}
14513    fi
14514    # Neutralize special characters interpreted by sed in replacement strings.
14515    case $configure_input in #(
14516    *\&* | *\|* | *\\* )
14517       ac_sed_conf_input=`$as_echo "$configure_input" |
14518       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14519    *) ac_sed_conf_input=$configure_input;;
14520    esac
14521
14522    case $ac_tag in
14523    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14524      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14525    esac
14526    ;;
14527  esac
14528
14529  ac_dir=`$as_dirname -- "$ac_file" ||
14530$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14531	 X"$ac_file" : 'X\(//\)[^/]' \| \
14532	 X"$ac_file" : 'X\(//\)$' \| \
14533	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14534$as_echo X"$ac_file" |
14535    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14536	    s//\1/
14537	    q
14538	  }
14539	  /^X\(\/\/\)[^/].*/{
14540	    s//\1/
14541	    q
14542	  }
14543	  /^X\(\/\/\)$/{
14544	    s//\1/
14545	    q
14546	  }
14547	  /^X\(\/\).*/{
14548	    s//\1/
14549	    q
14550	  }
14551	  s/.*/./; q'`
14552  as_dir="$ac_dir"; as_fn_mkdir_p
14553  ac_builddir=.
14554
14555case "$ac_dir" in
14556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14557*)
14558  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14559  # A ".." for each directory in $ac_dir_suffix.
14560  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14561  case $ac_top_builddir_sub in
14562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14564  esac ;;
14565esac
14566ac_abs_top_builddir=$ac_pwd
14567ac_abs_builddir=$ac_pwd$ac_dir_suffix
14568# for backward compatibility:
14569ac_top_builddir=$ac_top_build_prefix
14570
14571case $srcdir in
14572  .)  # We are building in place.
14573    ac_srcdir=.
14574    ac_top_srcdir=$ac_top_builddir_sub
14575    ac_abs_top_srcdir=$ac_pwd ;;
14576  [\\/]* | ?:[\\/]* )  # Absolute name.
14577    ac_srcdir=$srcdir$ac_dir_suffix;
14578    ac_top_srcdir=$srcdir
14579    ac_abs_top_srcdir=$srcdir ;;
14580  *) # Relative name.
14581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14582    ac_top_srcdir=$ac_top_build_prefix$srcdir
14583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14584esac
14585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14586
14587
14588  case $ac_mode in
14589  :F)
14590  #
14591  # CONFIG_FILE
14592  #
14593
14594  case $INSTALL in
14595  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14596  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14597  esac
14598  ac_MKDIR_P=$MKDIR_P
14599  case $MKDIR_P in
14600  [\\/$]* | ?:[\\/]* ) ;;
14601  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14602  esac
14603_ACEOF
14604
14605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606# If the template does not know about datarootdir, expand it.
14607# FIXME: This hack should be removed a few years after 2.60.
14608ac_datarootdir_hack=; ac_datarootdir_seen=
14609ac_sed_dataroot='
14610/datarootdir/ {
14611  p
14612  q
14613}
14614/@datadir@/p
14615/@docdir@/p
14616/@infodir@/p
14617/@localedir@/p
14618/@mandir@/p'
14619case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14620*datarootdir*) ac_datarootdir_seen=yes;;
14621*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14623$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14624_ACEOF
14625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14626  ac_datarootdir_hack='
14627  s&@datadir@&$datadir&g
14628  s&@docdir@&$docdir&g
14629  s&@infodir@&$infodir&g
14630  s&@localedir@&$localedir&g
14631  s&@mandir@&$mandir&g
14632  s&\\\${datarootdir}&$datarootdir&g' ;;
14633esac
14634_ACEOF
14635
14636# Neutralize VPATH when `$srcdir' = `.'.
14637# Shell code in configure.ac might set extrasub.
14638# FIXME: do we really want to maintain this feature?
14639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14640ac_sed_extra="$ac_vpsub
14641$extrasub
14642_ACEOF
14643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14644:t
14645/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14646s|@configure_input@|$ac_sed_conf_input|;t t
14647s&@top_builddir@&$ac_top_builddir_sub&;t t
14648s&@top_build_prefix@&$ac_top_build_prefix&;t t
14649s&@srcdir@&$ac_srcdir&;t t
14650s&@abs_srcdir@&$ac_abs_srcdir&;t t
14651s&@top_srcdir@&$ac_top_srcdir&;t t
14652s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14653s&@builddir@&$ac_builddir&;t t
14654s&@abs_builddir@&$ac_abs_builddir&;t t
14655s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14656s&@INSTALL@&$ac_INSTALL&;t t
14657s&@MKDIR_P@&$ac_MKDIR_P&;t t
14658$ac_datarootdir_hack
14659"
14660eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14661  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14662
14663test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14664  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14665  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14666      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14667  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14668which seems to be undefined.  Please make sure it is defined" >&5
14669$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14670which seems to be undefined.  Please make sure it is defined" >&2;}
14671
14672  rm -f "$ac_tmp/stdin"
14673  case $ac_file in
14674  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14675  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14676  esac \
14677  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14678 ;;
14679  :H)
14680  #
14681  # CONFIG_HEADER
14682  #
14683  if test x"$ac_file" != x-; then
14684    {
14685      $as_echo "/* $configure_input  */" \
14686      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14687    } >"$ac_tmp/config.h" \
14688      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14689    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14690      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14691$as_echo "$as_me: $ac_file is unchanged" >&6;}
14692    else
14693      rm -f "$ac_file"
14694      mv "$ac_tmp/config.h" "$ac_file" \
14695	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14696    fi
14697  else
14698    $as_echo "/* $configure_input  */" \
14699      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14700      || as_fn_error $? "could not create -" "$LINENO" 5
14701  fi
14702# Compute "$ac_file"'s index in $config_headers.
14703_am_arg="$ac_file"
14704_am_stamp_count=1
14705for _am_header in $config_headers :; do
14706  case $_am_header in
14707    $_am_arg | $_am_arg:* )
14708      break ;;
14709    * )
14710      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14711  esac
14712done
14713echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14714$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14715	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14716	 X"$_am_arg" : 'X\(//\)$' \| \
14717	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14718$as_echo X"$_am_arg" |
14719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14720	    s//\1/
14721	    q
14722	  }
14723	  /^X\(\/\/\)[^/].*/{
14724	    s//\1/
14725	    q
14726	  }
14727	  /^X\(\/\/\)$/{
14728	    s//\1/
14729	    q
14730	  }
14731	  /^X\(\/\).*/{
14732	    s//\1/
14733	    q
14734	  }
14735	  s/.*/./; q'`/stamp-h$_am_stamp_count
14736 ;;
14737
14738  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14739$as_echo "$as_me: executing $ac_file commands" >&6;}
14740 ;;
14741  esac
14742
14743
14744  case $ac_file$ac_mode in
14745    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14746  # Older Autoconf quotes --file arguments for eval, but not when files
14747  # are listed without --file.  Let's play safe and only enable the eval
14748  # if we detect the quoting.
14749  # TODO: see whether this extra hack can be removed once we start
14750  # requiring Autoconf 2.70 or later.
14751  case $CONFIG_FILES in #(
14752  *\'*) :
14753    eval set x "$CONFIG_FILES" ;; #(
14754  *) :
14755    set x $CONFIG_FILES ;; #(
14756  *) :
14757     ;;
14758esac
14759  shift
14760  # Used to flag and report bootstrapping failures.
14761  am_rc=0
14762  for am_mf
14763  do
14764    # Strip MF so we end up with the name of the file.
14765    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14766    # Check whether this is an Automake generated Makefile which includes
14767    # dependency-tracking related rules and includes.
14768    # Grep'ing the whole file directly is not great: AIX grep has a line
14769    # limit of 2048, but all sed's we know have understand at least 4000.
14770    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14771      || continue
14772    am_dirpart=`$as_dirname -- "$am_mf" ||
14773$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14774	 X"$am_mf" : 'X\(//\)[^/]' \| \
14775	 X"$am_mf" : 'X\(//\)$' \| \
14776	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14777$as_echo X"$am_mf" |
14778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14779	    s//\1/
14780	    q
14781	  }
14782	  /^X\(\/\/\)[^/].*/{
14783	    s//\1/
14784	    q
14785	  }
14786	  /^X\(\/\/\)$/{
14787	    s//\1/
14788	    q
14789	  }
14790	  /^X\(\/\).*/{
14791	    s//\1/
14792	    q
14793	  }
14794	  s/.*/./; q'`
14795    am_filepart=`$as_basename -- "$am_mf" ||
14796$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14797	 X"$am_mf" : 'X\(//\)$' \| \
14798	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14799$as_echo X/"$am_mf" |
14800    sed '/^.*\/\([^/][^/]*\)\/*$/{
14801	    s//\1/
14802	    q
14803	  }
14804	  /^X\/\(\/\/\)$/{
14805	    s//\1/
14806	    q
14807	  }
14808	  /^X\/\(\/\).*/{
14809	    s//\1/
14810	    q
14811	  }
14812	  s/.*/./; q'`
14813    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14814      && sed -e '/# am--include-marker/d' "$am_filepart" \
14815        | $MAKE -f - am--depfiles" >&5
14816   (cd "$am_dirpart" \
14817      && sed -e '/# am--include-marker/d' "$am_filepart" \
14818        | $MAKE -f - am--depfiles) >&5 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } || am_rc=$?
14822  done
14823  if test $am_rc -ne 0; then
14824    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14826as_fn_error $? "Something went wrong bootstrapping makefile fragments
14827    for automatic dependency tracking.  Try re-running configure with the
14828    '--disable-dependency-tracking' option to at least be able to build
14829    the package (albeit without support for automatic dependency tracking).
14830See \`config.log' for more details" "$LINENO" 5; }
14831  fi
14832  { am_dirpart=; unset am_dirpart;}
14833  { am_filepart=; unset am_filepart;}
14834  { am_mf=; unset am_mf;}
14835  { am_rc=; unset am_rc;}
14836  rm -f conftest-deps.mk
14837}
14838 ;;
14839    "libtool":C)
14840
14841    # See if we are running on zsh, and set the options that allow our
14842    # commands through without removal of \ escapes.
14843    if test -n "${ZSH_VERSION+set}"; then
14844      setopt NO_GLOB_SUBST
14845    fi
14846
14847    cfgfile=${ofile}T
14848    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14849    $RM "$cfgfile"
14850
14851    cat <<_LT_EOF >> "$cfgfile"
14852#! $SHELL
14853# Generated automatically by $as_me ($PACKAGE) $VERSION
14854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14855# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14856
14857# Provide generalized library-building support services.
14858# Written by Gordon Matzigkeit, 1996
14859
14860# Copyright (C) 2014 Free Software Foundation, Inc.
14861# This is free software; see the source for copying conditions.  There is NO
14862# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14863
14864# GNU Libtool is free software; you can redistribute it and/or modify
14865# it under the terms of the GNU General Public License as published by
14866# the Free Software Foundation; either version 2 of of the License, or
14867# (at your option) any later version.
14868#
14869# As a special exception to the GNU General Public License, if you
14870# distribute this file as part of a program or library that is built
14871# using GNU Libtool, you may include this file under the  same
14872# distribution terms that you use for the rest of that program.
14873#
14874# GNU Libtool is distributed in the hope that it will be useful, but
14875# WITHOUT ANY WARRANTY; without even the implied warranty of
14876# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14877# GNU General Public License for more details.
14878#
14879# You should have received a copy of the GNU General Public License
14880# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14881
14882
14883# The names of the tagged configurations supported by this script.
14884available_tags=''
14885
14886# Configured defaults for sys_lib_dlsearch_path munging.
14887: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14888
14889# ### BEGIN LIBTOOL CONFIG
14890
14891# Which release of libtool.m4 was used?
14892macro_version=$macro_version
14893macro_revision=$macro_revision
14894
14895# Whether or not to build static libraries.
14896build_old_libs=$enable_static
14897
14898# Whether or not to build shared libraries.
14899build_libtool_libs=$enable_shared
14900
14901# What type of objects to build.
14902pic_mode=$pic_mode
14903
14904# Whether or not to optimize for fast installation.
14905fast_install=$enable_fast_install
14906
14907# Shared archive member basename,for filename based shared library versioning on AIX.
14908shared_archive_member_spec=$shared_archive_member_spec
14909
14910# Shell to use when invoking shell scripts.
14911SHELL=$lt_SHELL
14912
14913# An echo program that protects backslashes.
14914ECHO=$lt_ECHO
14915
14916# The PATH separator for the build system.
14917PATH_SEPARATOR=$lt_PATH_SEPARATOR
14918
14919# The host system.
14920host_alias=$host_alias
14921host=$host
14922host_os=$host_os
14923
14924# The build system.
14925build_alias=$build_alias
14926build=$build
14927build_os=$build_os
14928
14929# A sed program that does not truncate output.
14930SED=$lt_SED
14931
14932# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14933Xsed="\$SED -e 1s/^X//"
14934
14935# A grep program that handles long lines.
14936GREP=$lt_GREP
14937
14938# An ERE matcher.
14939EGREP=$lt_EGREP
14940
14941# A literal string matcher.
14942FGREP=$lt_FGREP
14943
14944# A BSD- or MS-compatible name lister.
14945NM=$lt_NM
14946
14947# Whether we need soft or hard links.
14948LN_S=$lt_LN_S
14949
14950# What is the maximum length of a command?
14951max_cmd_len=$max_cmd_len
14952
14953# Object file suffix (normally "o").
14954objext=$ac_objext
14955
14956# Executable file suffix (normally "").
14957exeext=$exeext
14958
14959# whether the shell understands "unset".
14960lt_unset=$lt_unset
14961
14962# turn spaces into newlines.
14963SP2NL=$lt_lt_SP2NL
14964
14965# turn newlines into spaces.
14966NL2SP=$lt_lt_NL2SP
14967
14968# convert \$build file names to \$host format.
14969to_host_file_cmd=$lt_cv_to_host_file_cmd
14970
14971# convert \$build files to toolchain format.
14972to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14973
14974# An object symbol dumper.
14975OBJDUMP=$lt_OBJDUMP
14976
14977# Method to check whether dependent libraries are shared objects.
14978deplibs_check_method=$lt_deplibs_check_method
14979
14980# Command to use when deplibs_check_method = "file_magic".
14981file_magic_cmd=$lt_file_magic_cmd
14982
14983# How to find potential files when deplibs_check_method = "file_magic".
14984file_magic_glob=$lt_file_magic_glob
14985
14986# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14987want_nocaseglob=$lt_want_nocaseglob
14988
14989# DLL creation program.
14990DLLTOOL=$lt_DLLTOOL
14991
14992# Command to associate shared and link libraries.
14993sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14994
14995# The archiver.
14996AR=$lt_AR
14997
14998# Flags to create an archive.
14999AR_FLAGS=$lt_AR_FLAGS
15000
15001# How to feed a file listing to the archiver.
15002archiver_list_spec=$lt_archiver_list_spec
15003
15004# A symbol stripping program.
15005STRIP=$lt_STRIP
15006
15007# Commands used to install an old-style archive.
15008RANLIB=$lt_RANLIB
15009old_postinstall_cmds=$lt_old_postinstall_cmds
15010old_postuninstall_cmds=$lt_old_postuninstall_cmds
15011
15012# Whether to use a lock for old archive extraction.
15013lock_old_archive_extraction=$lock_old_archive_extraction
15014
15015# A C compiler.
15016LTCC=$lt_CC
15017
15018# LTCC compiler flags.
15019LTCFLAGS=$lt_CFLAGS
15020
15021# Take the output of nm and produce a listing of raw symbols and C names.
15022global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15023
15024# Transform the output of nm in a proper C declaration.
15025global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15026
15027# Transform the output of nm into a list of symbols to manually relocate.
15028global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15029
15030# Transform the output of nm in a C name address pair.
15031global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15032
15033# Transform the output of nm in a C name address pair when lib prefix is needed.
15034global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15035
15036# The name lister interface.
15037nm_interface=$lt_lt_cv_nm_interface
15038
15039# Specify filename containing input files for \$NM.
15040nm_file_list_spec=$lt_nm_file_list_spec
15041
15042# The root where to search for dependent libraries,and where our libraries should be installed.
15043lt_sysroot=$lt_sysroot
15044
15045# Command to truncate a binary pipe.
15046lt_truncate_bin=$lt_lt_cv_truncate_bin
15047
15048# The name of the directory that contains temporary libtool files.
15049objdir=$objdir
15050
15051# Used to examine libraries when file_magic_cmd begins with "file".
15052MAGIC_CMD=$MAGIC_CMD
15053
15054# Must we lock files when doing compilation?
15055need_locks=$lt_need_locks
15056
15057# Manifest tool.
15058MANIFEST_TOOL=$lt_MANIFEST_TOOL
15059
15060# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15061DSYMUTIL=$lt_DSYMUTIL
15062
15063# Tool to change global to local symbols on Mac OS X.
15064NMEDIT=$lt_NMEDIT
15065
15066# Tool to manipulate fat objects and archives on Mac OS X.
15067LIPO=$lt_LIPO
15068
15069# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15070OTOOL=$lt_OTOOL
15071
15072# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15073OTOOL64=$lt_OTOOL64
15074
15075# Old archive suffix (normally "a").
15076libext=$libext
15077
15078# Shared library suffix (normally ".so").
15079shrext_cmds=$lt_shrext_cmds
15080
15081# The commands to extract the exported symbol list from a shared archive.
15082extract_expsyms_cmds=$lt_extract_expsyms_cmds
15083
15084# Variables whose values should be saved in libtool wrapper scripts and
15085# restored at link time.
15086variables_saved_for_relink=$lt_variables_saved_for_relink
15087
15088# Do we need the "lib" prefix for modules?
15089need_lib_prefix=$need_lib_prefix
15090
15091# Do we need a version for libraries?
15092need_version=$need_version
15093
15094# Library versioning type.
15095version_type=$version_type
15096
15097# Shared library runtime path variable.
15098runpath_var=$runpath_var
15099
15100# Shared library path variable.
15101shlibpath_var=$shlibpath_var
15102
15103# Is shlibpath searched before the hard-coded library search path?
15104shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15105
15106# Format of library name prefix.
15107libname_spec=$lt_libname_spec
15108
15109# List of archive names.  First name is the real one, the rest are links.
15110# The last name is the one that the linker finds with -lNAME
15111library_names_spec=$lt_library_names_spec
15112
15113# The coded name of the library, if different from the real name.
15114soname_spec=$lt_soname_spec
15115
15116# Permission mode override for installation of shared libraries.
15117install_override_mode=$lt_install_override_mode
15118
15119# Command to use after installation of a shared archive.
15120postinstall_cmds=$lt_postinstall_cmds
15121
15122# Command to use after uninstallation of a shared archive.
15123postuninstall_cmds=$lt_postuninstall_cmds
15124
15125# Commands used to finish a libtool library installation in a directory.
15126finish_cmds=$lt_finish_cmds
15127
15128# As "finish_cmds", except a single script fragment to be evaled but
15129# not shown.
15130finish_eval=$lt_finish_eval
15131
15132# Whether we should hardcode library paths into libraries.
15133hardcode_into_libs=$hardcode_into_libs
15134
15135# Compile-time system search path for libraries.
15136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15137
15138# Detected run-time system search path for libraries.
15139sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15140
15141# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15142configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15143
15144# Whether dlopen is supported.
15145dlopen_support=$enable_dlopen
15146
15147# Whether dlopen of programs is supported.
15148dlopen_self=$enable_dlopen_self
15149
15150# Whether dlopen of statically linked programs is supported.
15151dlopen_self_static=$enable_dlopen_self_static
15152
15153# Commands to strip libraries.
15154old_striplib=$lt_old_striplib
15155striplib=$lt_striplib
15156
15157
15158# The linker used to build libraries.
15159LD=$lt_LD
15160
15161# How to create reloadable object files.
15162reload_flag=$lt_reload_flag
15163reload_cmds=$lt_reload_cmds
15164
15165# Commands used to build an old-style archive.
15166old_archive_cmds=$lt_old_archive_cmds
15167
15168# A language specific compiler.
15169CC=$lt_compiler
15170
15171# Is the compiler the GNU compiler?
15172with_gcc=$GCC
15173
15174# Compiler flag to turn off builtin functions.
15175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15176
15177# Additional compiler flags for building library objects.
15178pic_flag=$lt_lt_prog_compiler_pic
15179
15180# How to pass a linker flag through the compiler.
15181wl=$lt_lt_prog_compiler_wl
15182
15183# Compiler flag to prevent dynamic linking.
15184link_static_flag=$lt_lt_prog_compiler_static
15185
15186# Does compiler simultaneously support -c and -o options?
15187compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15188
15189# Whether or not to add -lc for building shared libraries.
15190build_libtool_need_lc=$archive_cmds_need_lc
15191
15192# Whether or not to disallow shared libs when runtime libs are static.
15193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15194
15195# Compiler flag to allow reflexive dlopens.
15196export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15197
15198# Compiler flag to generate shared objects directly from archives.
15199whole_archive_flag_spec=$lt_whole_archive_flag_spec
15200
15201# Whether the compiler copes with passing no objects directly.
15202compiler_needs_object=$lt_compiler_needs_object
15203
15204# Create an old-style archive from a shared archive.
15205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15206
15207# Create a temporary old-style archive to link instead of a shared archive.
15208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15209
15210# Commands used to build a shared archive.
15211archive_cmds=$lt_archive_cmds
15212archive_expsym_cmds=$lt_archive_expsym_cmds
15213
15214# Commands used to build a loadable module if different from building
15215# a shared archive.
15216module_cmds=$lt_module_cmds
15217module_expsym_cmds=$lt_module_expsym_cmds
15218
15219# Whether we are building with GNU ld or not.
15220with_gnu_ld=$lt_with_gnu_ld
15221
15222# Flag that allows shared libraries with undefined symbols to be built.
15223allow_undefined_flag=$lt_allow_undefined_flag
15224
15225# Flag that enforces no undefined symbols.
15226no_undefined_flag=$lt_no_undefined_flag
15227
15228# Flag to hardcode \$libdir into a binary during linking.
15229# This must work even if \$libdir does not exist
15230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15231
15232# Whether we need a single "-rpath" flag with a separated argument.
15233hardcode_libdir_separator=$lt_hardcode_libdir_separator
15234
15235# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15236# DIR into the resulting binary.
15237hardcode_direct=$hardcode_direct
15238
15239# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15240# DIR into the resulting binary and the resulting library dependency is
15241# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15242# library is relocated.
15243hardcode_direct_absolute=$hardcode_direct_absolute
15244
15245# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15246# into the resulting binary.
15247hardcode_minus_L=$hardcode_minus_L
15248
15249# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15250# into the resulting binary.
15251hardcode_shlibpath_var=$hardcode_shlibpath_var
15252
15253# Set to "yes" if building a shared library automatically hardcodes DIR
15254# into the library and all subsequent libraries and executables linked
15255# against it.
15256hardcode_automatic=$hardcode_automatic
15257
15258# Set to yes if linker adds runtime paths of dependent libraries
15259# to runtime path list.
15260inherit_rpath=$inherit_rpath
15261
15262# Whether libtool must link a program against all its dependency libraries.
15263link_all_deplibs=$link_all_deplibs
15264
15265# Set to "yes" if exported symbols are required.
15266always_export_symbols=$always_export_symbols
15267
15268# The commands to list exported symbols.
15269export_symbols_cmds=$lt_export_symbols_cmds
15270
15271# Symbols that should not be listed in the preloaded symbols.
15272exclude_expsyms=$lt_exclude_expsyms
15273
15274# Symbols that must always be exported.
15275include_expsyms=$lt_include_expsyms
15276
15277# Commands necessary for linking programs (against libraries) with templates.
15278prelink_cmds=$lt_prelink_cmds
15279
15280# Commands necessary for finishing linking programs.
15281postlink_cmds=$lt_postlink_cmds
15282
15283# Specify filename containing input files.
15284file_list_spec=$lt_file_list_spec
15285
15286# How to hardcode a shared library path into an executable.
15287hardcode_action=$hardcode_action
15288
15289# ### END LIBTOOL CONFIG
15290
15291_LT_EOF
15292
15293    cat <<'_LT_EOF' >> "$cfgfile"
15294
15295# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15296
15297# func_munge_path_list VARIABLE PATH
15298# -----------------------------------
15299# VARIABLE is name of variable containing _space_ separated list of
15300# directories to be munged by the contents of PATH, which is string
15301# having a format:
15302# "DIR[:DIR]:"
15303#       string "DIR[ DIR]" will be prepended to VARIABLE
15304# ":DIR[:DIR]"
15305#       string "DIR[ DIR]" will be appended to VARIABLE
15306# "DIRP[:DIRP]::[DIRA:]DIRA"
15307#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15308#       "DIRA[ DIRA]" will be appended to VARIABLE
15309# "DIR[:DIR]"
15310#       VARIABLE will be replaced by "DIR[ DIR]"
15311func_munge_path_list ()
15312{
15313    case x$2 in
15314    x)
15315        ;;
15316    *:)
15317        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15318        ;;
15319    x:*)
15320        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15321        ;;
15322    *::*)
15323        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15324        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15325        ;;
15326    *)
15327        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15328        ;;
15329    esac
15330}
15331
15332
15333# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15334func_cc_basename ()
15335{
15336    for cc_temp in $*""; do
15337      case $cc_temp in
15338        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15339        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15340        \-*) ;;
15341        *) break;;
15342      esac
15343    done
15344    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15345}
15346
15347
15348# ### END FUNCTIONS SHARED WITH CONFIGURE
15349
15350_LT_EOF
15351
15352  case $host_os in
15353  aix3*)
15354    cat <<\_LT_EOF >> "$cfgfile"
15355# AIX sometimes has problems with the GCC collect2 program.  For some
15356# reason, if we set the COLLECT_NAMES environment variable, the problems
15357# vanish in a puff of smoke.
15358if test set != "${COLLECT_NAMES+set}"; then
15359  COLLECT_NAMES=
15360  export COLLECT_NAMES
15361fi
15362_LT_EOF
15363    ;;
15364  esac
15365
15366
15367ltmain=$ac_aux_dir/ltmain.sh
15368
15369
15370  # We use sed instead of cat because bash on DJGPP gets confused if
15371  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15372  # text mode, it properly converts lines to CR/LF.  This bash problem
15373  # is reportedly fixed, but why not run on old versions too?
15374  sed '$q' "$ltmain" >> "$cfgfile" \
15375     || (rm -f "$cfgfile"; exit 1)
15376
15377   mv -f "$cfgfile" "$ofile" ||
15378    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15379  chmod +x "$ofile"
15380
15381 ;;
15382    "mkpkgng":F) chmod +x mkpkgng ;;
15383    "misc/coverage.sh":F) chmod +x misc/coverage.sh ;;
15384    "misc/coverity.sh":F) chmod +x misc/coverity.sh ;;
15385
15386  esac
15387done # for ac_tag
15388
15389
15390as_fn_exit 0
15391_ACEOF
15392ac_clean_files=$ac_clean_files_save
15393
15394test $ac_write_fail = 0 ||
15395  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15396
15397
15398# configure is writing to config.log, and then calls config.status.
15399# config.status does its own redirection, appending to config.log.
15400# Unfortunately, on DOS this fails, as config.log is still kept open
15401# by configure, so config.status won't be able to write to it; its
15402# output is simply discarded.  So we exec the FD to /dev/null,
15403# effectively closing config.log, so it can be properly (re)opened and
15404# appended to by config.status.  When coming back to configure, we
15405# need to make the FD available again.
15406if test "$no_create" != yes; then
15407  ac_cs_success=:
15408  ac_config_status_args=
15409  test "$silent" = yes &&
15410    ac_config_status_args="$ac_config_status_args --quiet"
15411  exec 5>/dev/null
15412  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15413  exec 5>>config.log
15414  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15415  # would make configure fail if this is the last instruction.
15416  $ac_cs_success || as_fn_exit 1
15417fi
15418if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15420$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15421fi
15422
15423