1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for shibboleth 3.3.0.
4#
5# Report bugs to <https://shibboleth.atlassian.net/jira>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# 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
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://shibboleth.atlassian.net/jira about your
280$0: system, including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='shibboleth'
623PACKAGE_TARNAME='shibboleth-sp'
624PACKAGE_VERSION='3.3.0'
625PACKAGE_STRING='shibboleth 3.3.0'
626PACKAGE_BUGREPORT='https://shibboleth.atlassian.net/jira'
627PACKAGE_URL=''
628
629ac_unique_file="shibsp"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665LIBOBJS
666WANT_SUBDIRS
667BUILD_UNITTEST_FALSE
668BUILD_UNITTEST_TRUE
669CXXTESTFLAGS
670CXXTEST
671GSSAPI_NAMINGEXTS_FALSE
672GSSAPI_NAMINGEXTS_TRUE
673GSS_VENDOR
674gnu_gss_LIBS
675gnu_gss_CFLAGS
676gss_LIBS
677gss_CFLAGS
678ODBC_LIBS
679ODBC_CFLAGS
680ODBC_CONFIG
681BUILD_AP24_FALSE
682BUILD_AP24_TRUE
683BUILD_AP22_FALSE
684BUILD_AP22_TRUE
685BUILD_AP20_FALSE
686BUILD_AP20_TRUE
687BUILD_AP13_FALSE
688BUILD_AP13_TRUE
689APXS24_LIBS
690APXS24_LDFLAGS
691APXS24_INCLUDE
692APXS24_CFLAGS
693APXS24
694APXS22_LIBS
695APXS22_LDFLAGS
696APXS22_INCLUDE
697APXS22_CFLAGS
698APU1_CONFIG
699APR1_CONFIG
700APXS22
701APXS2_LIBS
702APXS2_LDFLAGS
703APXS2_INCLUDE
704APXS2_CFLAGS
705APU_CONFIG
706APR_CONFIG
707APXS2
708APXS_LDFLAGS
709APXS_INCLUDE
710APXS_CFLAGS
711APXS
712xs
713BUILD_MEMCACHED_FALSE
714BUILD_MEMCACHED_TRUE
715MEMCACHED_LIBS
716MEMCACHED_LDFLAGS
717MEMCACHED_INCLUDE
718BUILD_FASTCGI_FALSE
719BUILD_FASTCGI_TRUE
720FASTCGI_LIBS
721FASTCGI_LDFLAGS
722FASTCGI_INCLUDE
723BUILD_NSAPI_FALSE
724BUILD_NSAPI_TRUE
725NSAPI_INCLUDE
726SYSTEMD_LIBS
727SYSTEMD_CFLAGS
728OPENSAMLXMLDIR
729opensaml_LIBS
730opensaml_CFLAGS
731xmltooling_lite_LIBS
732xmltooling_lite_CFLAGS
733XMLTOOLINGXMLDIR
734xmltooling_includedir
735xmltooling_LIBS
736xmltooling_CFLAGS
737SHIBSP_REQUIRES_PRIVATE
738SHIBSP_REQUIRES
739xmlsec_LIBS
740xmlsec_CFLAGS
741xerces_LIBS
742xerces_CFLAGS
743SHIBSP_LITE_REQUIRES_PRIVATE
744SHIBSP_LITE_REQUIRES
745log4cpp_LIBS
746log4cpp_CFLAGS
747log4shib_LIBS
748log4shib_CFLAGS
749PKG_CONFIG_LIBDIR
750PKG_CONFIG_PATH
751PKG_CONFIG
752BOOST_CPPFLAGS
753DISTCHECK_CONFIGURE_FLAGS
754BOOST_ROOT
755PTHREAD_CFLAGS
756PTHREAD_LIBS
757PTHREAD_CXX
758PTHREAD_CC
759ax_pthread_config
760CPP
761CXXCPP
762LT_SYS_LIBRARY_PATH
763OTOOL64
764OTOOL
765LIPO
766NMEDIT
767DSYMUTIL
768MANIFEST_TOOL
769RANLIB
770ac_ct_AR
771AR
772DLLTOOL
773OBJDUMP
774LN_S
775NM
776ac_ct_DUMPBIN
777DUMPBIN
778LD
779FGREP
780EGREP
781GREP
782SED
783host_os
784host_vendor
785host_cpu
786host
787build_os
788build_vendor
789build_cpu
790build
791LIBTOOL
792AM_CXXFLAGS
793AM_CFLAGS
794am__fastdepCXX_FALSE
795am__fastdepCXX_TRUE
796CXXDEPMODE
797ac_ct_CXX
798CXXFLAGS
799CXX
800am__fastdepCC_FALSE
801am__fastdepCC_TRUE
802CCDEPMODE
803am__nodep
804AMDEPBACKSLASH
805AMDEP_FALSE
806AMDEP_TRUE
807am__include
808DEPDIR
809OBJEXT
810EXEEXT
811ac_ct_CC
812CPPFLAGS
813LDFLAGS
814CFLAGS
815CC
816DOXYGEN_PAPER_SIZE
817DX_COND_latex_FALSE
818DX_COND_latex_TRUE
819DX_COND_pdf_FALSE
820DX_COND_pdf_TRUE
821DX_PDFLATEX
822DX_FLAG_pdf
823DX_COND_ps_FALSE
824DX_COND_ps_TRUE
825DX_EGREP
826DX_DVIPS
827DX_MAKEINDEX
828DX_LATEX
829DX_FLAG_ps
830DX_COND_html_FALSE
831DX_COND_html_TRUE
832DX_FLAG_html
833DX_COND_chi_FALSE
834DX_COND_chi_TRUE
835DX_FLAG_chi
836DX_COND_chm_FALSE
837DX_COND_chm_TRUE
838DX_HHC
839DX_FLAG_chm
840DX_COND_xml_FALSE
841DX_COND_xml_TRUE
842DX_FLAG_xml
843DX_COND_rtf_FALSE
844DX_COND_rtf_TRUE
845DX_FLAG_rtf
846DX_COND_man_FALSE
847DX_COND_man_TRUE
848DX_FLAG_man
849DX_COND_dot_FALSE
850DX_COND_dot_TRUE
851DX_DOT
852DX_FLAG_dot
853DX_COND_doc_FALSE
854DX_COND_doc_TRUE
855DX_PERL
856DX_DOXYGEN
857DX_FLAG_doc
858DX_ENV
859DX_DOCDIR
860DX_CONFIG
861DX_PROJECT
862pkgconfigdir
863AM_BACKSLASH
864AM_DEFAULT_VERBOSITY
865AM_DEFAULT_V
866AM_V
867CSCOPE
868ETAGS
869CTAGS
870am__untar
871am__tar
872AMTAR
873am__leading_dot
874SET_MAKE
875AWK
876mkdir_p
877MKDIR_P
878INSTALL_STRIP_PROGRAM
879STRIP
880install_sh
881MAKEINFO
882AUTOHEADER
883AUTOMAKE
884AUTOCONF
885ACLOCAL
886VERSION
887PACKAGE
888CYGPATH_W
889am__isrc
890INSTALL_DATA
891INSTALL_SCRIPT
892INSTALL_PROGRAM
893target_alias
894host_alias
895build_alias
896LIBS
897ECHO_T
898ECHO_N
899ECHO_C
900DEFS
901mandir
902localedir
903libdir
904psdir
905pdfdir
906dvidir
907htmldir
908infodir
909docdir
910oldincludedir
911includedir
912runstatedir
913localstatedir
914sharedstatedir
915sysconfdir
916datadir
917datarootdir
918libexecdir
919sbindir
920bindir
921program_transform_name
922prefix
923exec_prefix
924PACKAGE_URL
925PACKAGE_BUGREPORT
926PACKAGE_STRING
927PACKAGE_VERSION
928PACKAGE_TARNAME
929PACKAGE_NAME
930PATH_SEPARATOR
931SHELL
932am__quote'
933ac_subst_files=''
934ac_user_opts='
935enable_option_checking
936enable_silent_rules
937with_pkgconfigdir
938enable_doxygen_doc
939enable_doxygen_dot
940enable_doxygen_man
941enable_doxygen_rtf
942enable_doxygen_xml
943enable_doxygen_chm
944enable_doxygen_chi
945enable_doxygen_html
946enable_doxygen_ps
947enable_doxygen_pdf
948enable_debug
949enable_dependency_tracking
950enable_static
951enable_shared
952with_pic
953enable_fast_install
954with_aix_soname
955with_gnu_ld
956with_sysroot
957enable_libtool_lock
958with_boost
959enable_adfs
960enable_systemd
961with_nsapi
962with_fastcgi
963with_memcached
964enable_apache_13
965with_apxs
966enable_apache_20
967with_apxs2
968with_apr
969with_apu
970enable_apache_22
971with_apxs22
972with_apr1
973with_apu1
974enable_apache_24
975with_apxs24
976enable_odbc
977with_odbc
978with_gssapi
979'
980      ac_precious_vars='build_alias
981host_alias
982target_alias
983DOXYGEN_PAPER_SIZE
984CC
985CFLAGS
986LDFLAGS
987LIBS
988CPPFLAGS
989CXX
990CXXFLAGS
991CCC
992LT_SYS_LIBRARY_PATH
993CXXCPP
994CPP
995BOOST_ROOT
996PKG_CONFIG
997PKG_CONFIG_PATH
998PKG_CONFIG_LIBDIR
999log4shib_CFLAGS
1000log4shib_LIBS
1001log4cpp_CFLAGS
1002log4cpp_LIBS
1003xerces_CFLAGS
1004xerces_LIBS
1005xmlsec_CFLAGS
1006xmlsec_LIBS
1007xmltooling_CFLAGS
1008xmltooling_LIBS
1009xmltooling_includedir
1010XMLTOOLINGXMLDIR
1011xmltooling_lite_CFLAGS
1012xmltooling_lite_LIBS
1013opensaml_CFLAGS
1014opensaml_LIBS
1015OPENSAMLXMLDIR
1016SYSTEMD_CFLAGS
1017SYSTEMD_LIBS
1018gss_CFLAGS
1019gss_LIBS
1020gnu_gss_CFLAGS
1021gnu_gss_LIBS
1022GSS_VENDOR
1023CXXTEST
1024CXXTESTFLAGS'
1025
1026
1027# Initialize some variables set by options.
1028ac_init_help=
1029ac_init_version=false
1030ac_unrecognized_opts=
1031ac_unrecognized_sep=
1032# The variables have the same names as the options, with
1033# dashes changed to underlines.
1034cache_file=/dev/null
1035exec_prefix=NONE
1036no_create=
1037no_recursion=
1038prefix=NONE
1039program_prefix=NONE
1040program_suffix=NONE
1041program_transform_name=s,x,x,
1042silent=
1043site=
1044srcdir=
1045verbose=
1046x_includes=NONE
1047x_libraries=NONE
1048
1049# Installation directory options.
1050# These are left unexpanded so users can "make install exec_prefix=/foo"
1051# and all the variables that are supposed to be based on exec_prefix
1052# by default will actually change.
1053# Use braces instead of parens because sh, perl, etc. also accept them.
1054# (The list follows the same order as the GNU Coding Standards.)
1055bindir='${exec_prefix}/bin'
1056sbindir='${exec_prefix}/sbin'
1057libexecdir='${exec_prefix}/libexec'
1058datarootdir='${prefix}/share'
1059datadir='${datarootdir}'
1060sysconfdir='${prefix}/etc'
1061sharedstatedir='${prefix}/com'
1062localstatedir='${prefix}/var'
1063runstatedir='${localstatedir}/run'
1064includedir='${prefix}/include'
1065oldincludedir='/usr/include'
1066docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1067infodir='${datarootdir}/info'
1068htmldir='${docdir}'
1069dvidir='${docdir}'
1070pdfdir='${docdir}'
1071psdir='${docdir}'
1072libdir='${exec_prefix}/lib'
1073localedir='${datarootdir}/locale'
1074mandir='${datarootdir}/man'
1075
1076ac_prev=
1077ac_dashdash=
1078for ac_option
1079do
1080  # If the previous option needs an argument, assign it.
1081  if test -n "$ac_prev"; then
1082    eval $ac_prev=\$ac_option
1083    ac_prev=
1084    continue
1085  fi
1086
1087  case $ac_option in
1088  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1089  *=)   ac_optarg= ;;
1090  *)    ac_optarg=yes ;;
1091  esac
1092
1093  case $ac_dashdash$ac_option in
1094  --)
1095    ac_dashdash=yes ;;
1096
1097  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1098    ac_prev=bindir ;;
1099  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1100    bindir=$ac_optarg ;;
1101
1102  -build | --build | --buil | --bui | --bu)
1103    ac_prev=build_alias ;;
1104  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1105    build_alias=$ac_optarg ;;
1106
1107  -cache-file | --cache-file | --cache-fil | --cache-fi \
1108  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1109    ac_prev=cache_file ;;
1110  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1111  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1112    cache_file=$ac_optarg ;;
1113
1114  --config-cache | -C)
1115    cache_file=config.cache ;;
1116
1117  -datadir | --datadir | --datadi | --datad)
1118    ac_prev=datadir ;;
1119  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1120    datadir=$ac_optarg ;;
1121
1122  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1123  | --dataroo | --dataro | --datar)
1124    ac_prev=datarootdir ;;
1125  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1126  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1127    datarootdir=$ac_optarg ;;
1128
1129  -disable-* | --disable-*)
1130    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1131    # Reject names that are not valid shell variable names.
1132    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1134    ac_useropt_orig=$ac_useropt
1135    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1136    case $ac_user_opts in
1137      *"
1138"enable_$ac_useropt"
1139"*) ;;
1140      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1141	 ac_unrecognized_sep=', ';;
1142    esac
1143    eval enable_$ac_useropt=no ;;
1144
1145  -docdir | --docdir | --docdi | --doc | --do)
1146    ac_prev=docdir ;;
1147  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1148    docdir=$ac_optarg ;;
1149
1150  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1151    ac_prev=dvidir ;;
1152  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1153    dvidir=$ac_optarg ;;
1154
1155  -enable-* | --enable-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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 feature name: \`$ac_useropt'"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"enable_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval enable_$ac_useropt=\$ac_optarg ;;
1170
1171  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1172  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1173  | --exec | --exe | --ex)
1174    ac_prev=exec_prefix ;;
1175  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1176  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1177  | --exec=* | --exe=* | --ex=*)
1178    exec_prefix=$ac_optarg ;;
1179
1180  -gas | --gas | --ga | --g)
1181    # Obsolete; use --with-gas.
1182    with_gas=yes ;;
1183
1184  -help | --help | --hel | --he | -h)
1185    ac_init_help=long ;;
1186  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1187    ac_init_help=recursive ;;
1188  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1189    ac_init_help=short ;;
1190
1191  -host | --host | --hos | --ho)
1192    ac_prev=host_alias ;;
1193  -host=* | --host=* | --hos=* | --ho=*)
1194    host_alias=$ac_optarg ;;
1195
1196  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1197    ac_prev=htmldir ;;
1198  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1199  | --ht=*)
1200    htmldir=$ac_optarg ;;
1201
1202  -includedir | --includedir | --includedi | --included | --include \
1203  | --includ | --inclu | --incl | --inc)
1204    ac_prev=includedir ;;
1205  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1206  | --includ=* | --inclu=* | --incl=* | --inc=*)
1207    includedir=$ac_optarg ;;
1208
1209  -infodir | --infodir | --infodi | --infod | --info | --inf)
1210    ac_prev=infodir ;;
1211  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1212    infodir=$ac_optarg ;;
1213
1214  -libdir | --libdir | --libdi | --libd)
1215    ac_prev=libdir ;;
1216  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1217    libdir=$ac_optarg ;;
1218
1219  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1220  | --libexe | --libex | --libe)
1221    ac_prev=libexecdir ;;
1222  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1223  | --libexe=* | --libex=* | --libe=*)
1224    libexecdir=$ac_optarg ;;
1225
1226  -localedir | --localedir | --localedi | --localed | --locale)
1227    ac_prev=localedir ;;
1228  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1229    localedir=$ac_optarg ;;
1230
1231  -localstatedir | --localstatedir | --localstatedi | --localstated \
1232  | --localstate | --localstat | --localsta | --localst | --locals)
1233    ac_prev=localstatedir ;;
1234  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1235  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1236    localstatedir=$ac_optarg ;;
1237
1238  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1239    ac_prev=mandir ;;
1240  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1241    mandir=$ac_optarg ;;
1242
1243  -nfp | --nfp | --nf)
1244    # Obsolete; use --without-fp.
1245    with_fp=no ;;
1246
1247  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1248  | --no-cr | --no-c | -n)
1249    no_create=yes ;;
1250
1251  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1252  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1253    no_recursion=yes ;;
1254
1255  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1256  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1257  | --oldin | --oldi | --old | --ol | --o)
1258    ac_prev=oldincludedir ;;
1259  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1260  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1261  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1262    oldincludedir=$ac_optarg ;;
1263
1264  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1265    ac_prev=prefix ;;
1266  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1267    prefix=$ac_optarg ;;
1268
1269  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1270  | --program-pre | --program-pr | --program-p)
1271    ac_prev=program_prefix ;;
1272  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1273  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1274    program_prefix=$ac_optarg ;;
1275
1276  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1277  | --program-suf | --program-su | --program-s)
1278    ac_prev=program_suffix ;;
1279  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1280  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1281    program_suffix=$ac_optarg ;;
1282
1283  -program-transform-name | --program-transform-name \
1284  | --program-transform-nam | --program-transform-na \
1285  | --program-transform-n | --program-transform- \
1286  | --program-transform | --program-transfor \
1287  | --program-transfo | --program-transf \
1288  | --program-trans | --program-tran \
1289  | --progr-tra | --program-tr | --program-t)
1290    ac_prev=program_transform_name ;;
1291  -program-transform-name=* | --program-transform-name=* \
1292  | --program-transform-nam=* | --program-transform-na=* \
1293  | --program-transform-n=* | --program-transform-=* \
1294  | --program-transform=* | --program-transfor=* \
1295  | --program-transfo=* | --program-transf=* \
1296  | --program-trans=* | --program-tran=* \
1297  | --progr-tra=* | --program-tr=* | --program-t=*)
1298    program_transform_name=$ac_optarg ;;
1299
1300  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1301    ac_prev=pdfdir ;;
1302  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1303    pdfdir=$ac_optarg ;;
1304
1305  -psdir | --psdir | --psdi | --psd | --ps)
1306    ac_prev=psdir ;;
1307  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1308    psdir=$ac_optarg ;;
1309
1310  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311  | -silent | --silent | --silen | --sile | --sil)
1312    silent=yes ;;
1313
1314  -runstatedir | --runstatedir | --runstatedi | --runstated \
1315  | --runstate | --runstat | --runsta | --runst | --runs \
1316  | --run | --ru | --r)
1317    ac_prev=runstatedir ;;
1318  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1319  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1320  | --run=* | --ru=* | --r=*)
1321    runstatedir=$ac_optarg ;;
1322
1323  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1324    ac_prev=sbindir ;;
1325  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1326  | --sbi=* | --sb=*)
1327    sbindir=$ac_optarg ;;
1328
1329  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1330  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1331  | --sharedst | --shareds | --shared | --share | --shar \
1332  | --sha | --sh)
1333    ac_prev=sharedstatedir ;;
1334  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1335  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1336  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1337  | --sha=* | --sh=*)
1338    sharedstatedir=$ac_optarg ;;
1339
1340  -site | --site | --sit)
1341    ac_prev=site ;;
1342  -site=* | --site=* | --sit=*)
1343    site=$ac_optarg ;;
1344
1345  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1346    ac_prev=srcdir ;;
1347  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1348    srcdir=$ac_optarg ;;
1349
1350  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1351  | --syscon | --sysco | --sysc | --sys | --sy)
1352    ac_prev=sysconfdir ;;
1353  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1354  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1355    sysconfdir=$ac_optarg ;;
1356
1357  -target | --target | --targe | --targ | --tar | --ta | --t)
1358    ac_prev=target_alias ;;
1359  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1360    target_alias=$ac_optarg ;;
1361
1362  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1363    verbose=yes ;;
1364
1365  -version | --version | --versio | --versi | --vers | -V)
1366    ac_init_version=: ;;
1367
1368  -with-* | --with-*)
1369    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1370    # Reject names that are not valid shell variable names.
1371    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1372      as_fn_error $? "invalid package name: \`$ac_useropt'"
1373    ac_useropt_orig=$ac_useropt
1374    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1375    case $ac_user_opts in
1376      *"
1377"with_$ac_useropt"
1378"*) ;;
1379      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1380	 ac_unrecognized_sep=', ';;
1381    esac
1382    eval with_$ac_useropt=\$ac_optarg ;;
1383
1384  -without-* | --without-*)
1385    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386    # Reject names that are not valid shell variable names.
1387    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388      as_fn_error $? "invalid package name: \`$ac_useropt'"
1389    ac_useropt_orig=$ac_useropt
1390    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1391    case $ac_user_opts in
1392      *"
1393"with_$ac_useropt"
1394"*) ;;
1395      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1396	 ac_unrecognized_sep=', ';;
1397    esac
1398    eval with_$ac_useropt=no ;;
1399
1400  --x)
1401    # Obsolete; use --with-x.
1402    with_x=yes ;;
1403
1404  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1405  | --x-incl | --x-inc | --x-in | --x-i)
1406    ac_prev=x_includes ;;
1407  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1408  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1409    x_includes=$ac_optarg ;;
1410
1411  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1412  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1413    ac_prev=x_libraries ;;
1414  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1415  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1416    x_libraries=$ac_optarg ;;
1417
1418  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1419Try \`$0 --help' for more information"
1420    ;;
1421
1422  *=*)
1423    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1424    # Reject names that are not valid shell variable names.
1425    case $ac_envvar in #(
1426      '' | [0-9]* | *[!_$as_cr_alnum]* )
1427      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1428    esac
1429    eval $ac_envvar=\$ac_optarg
1430    export $ac_envvar ;;
1431
1432  *)
1433    # FIXME: should be removed in autoconf 3.0.
1434    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1435    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1436      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1437    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1438    ;;
1439
1440  esac
1441done
1442
1443if test -n "$ac_prev"; then
1444  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1445  as_fn_error $? "missing argument to $ac_option"
1446fi
1447
1448if test -n "$ac_unrecognized_opts"; then
1449  case $enable_option_checking in
1450    no) ;;
1451    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1452    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1453  esac
1454fi
1455
1456# Check all directory arguments for consistency.
1457for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1458		datadir sysconfdir sharedstatedir localstatedir includedir \
1459		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1460		libdir localedir mandir runstatedir
1461do
1462  eval ac_val=\$$ac_var
1463  # Remove trailing slashes.
1464  case $ac_val in
1465    */ )
1466      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1467      eval $ac_var=\$ac_val;;
1468  esac
1469  # Be sure to have absolute directory names.
1470  case $ac_val in
1471    [\\/$]* | ?:[\\/]* )  continue;;
1472    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473  esac
1474  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1475done
1476
1477# There might be people who depend on the old broken behavior: `$host'
1478# used to hold the argument of --host etc.
1479# FIXME: To remove some day.
1480build=$build_alias
1481host=$host_alias
1482target=$target_alias
1483
1484# FIXME: To remove some day.
1485if test "x$host_alias" != x; then
1486  if test "x$build_alias" = x; then
1487    cross_compiling=maybe
1488  elif test "x$build_alias" != "x$host_alias"; then
1489    cross_compiling=yes
1490  fi
1491fi
1492
1493ac_tool_prefix=
1494test -n "$host_alias" && ac_tool_prefix=$host_alias-
1495
1496test "$silent" = yes && exec 6>/dev/null
1497
1498
1499ac_pwd=`pwd` && test -n "$ac_pwd" &&
1500ac_ls_di=`ls -di .` &&
1501ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1502  as_fn_error $? "working directory cannot be determined"
1503test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504  as_fn_error $? "pwd does not report name of working directory"
1505
1506
1507# Find the source files, if location was not specified.
1508if test -z "$srcdir"; then
1509  ac_srcdir_defaulted=yes
1510  # Try the directory containing this script, then the parent directory.
1511  ac_confdir=`$as_dirname -- "$as_myself" ||
1512$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1513	 X"$as_myself" : 'X\(//\)[^/]' \| \
1514	 X"$as_myself" : 'X\(//\)$' \| \
1515	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1516printf "%s\n" X"$as_myself" |
1517    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1518	    s//\1/
1519	    q
1520	  }
1521	  /^X\(\/\/\)[^/].*/{
1522	    s//\1/
1523	    q
1524	  }
1525	  /^X\(\/\/\)$/{
1526	    s//\1/
1527	    q
1528	  }
1529	  /^X\(\/\).*/{
1530	    s//\1/
1531	    q
1532	  }
1533	  s/.*/./; q'`
1534  srcdir=$ac_confdir
1535  if test ! -r "$srcdir/$ac_unique_file"; then
1536    srcdir=..
1537  fi
1538else
1539  ac_srcdir_defaulted=no
1540fi
1541if test ! -r "$srcdir/$ac_unique_file"; then
1542  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1543  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1544fi
1545ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1546ac_abs_confdir=`(
1547	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1548	pwd)`
1549# When building in place, set srcdir=.
1550if test "$ac_abs_confdir" = "$ac_pwd"; then
1551  srcdir=.
1552fi
1553# Remove unnecessary trailing slashes from srcdir.
1554# Double slashes in file names in object file debugging info
1555# mess up M-x gdb in Emacs.
1556case $srcdir in
1557*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1558esac
1559for ac_var in $ac_precious_vars; do
1560  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1561  eval ac_env_${ac_var}_value=\$${ac_var}
1562  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1563  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1564done
1565
1566#
1567# Report the --help message.
1568#
1569if test "$ac_init_help" = "long"; then
1570  # Omit some internal or obsolete options to make the list less imposing.
1571  # This message is too long to be a string in the A/UX 3.1 sh.
1572  cat <<_ACEOF
1573\`configure' configures shibboleth 3.3.0 to adapt to many kinds of systems.
1574
1575Usage: $0 [OPTION]... [VAR=VALUE]...
1576
1577To assign environment variables (e.g., CC, CFLAGS...), specify them as
1578VAR=VALUE.  See below for descriptions of some of the useful variables.
1579
1580Defaults for the options are specified in brackets.
1581
1582Configuration:
1583  -h, --help              display this help and exit
1584      --help=short        display options specific to this package
1585      --help=recursive    display the short help of all the included packages
1586  -V, --version           display version information and exit
1587  -q, --quiet, --silent   do not print \`checking ...' messages
1588      --cache-file=FILE   cache test results in FILE [disabled]
1589  -C, --config-cache      alias for \`--cache-file=config.cache'
1590  -n, --no-create         do not create output files
1591      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1592
1593Installation directories:
1594  --prefix=PREFIX         install architecture-independent files in PREFIX
1595                          [$ac_default_prefix]
1596  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1597                          [PREFIX]
1598
1599By default, \`make install' will install all the files in
1600\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1601an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1602for instance \`--prefix=\$HOME'.
1603
1604For better control, use the options below.
1605
1606Fine tuning of the installation directories:
1607  --bindir=DIR            user executables [EPREFIX/bin]
1608  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1609  --libexecdir=DIR        program executables [EPREFIX/libexec]
1610  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1611  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1612  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1613  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1614  --libdir=DIR            object code libraries [EPREFIX/lib]
1615  --includedir=DIR        C header files [PREFIX/include]
1616  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1617  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1618  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1619  --infodir=DIR           info documentation [DATAROOTDIR/info]
1620  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1621  --mandir=DIR            man documentation [DATAROOTDIR/man]
1622  --docdir=DIR            documentation root [DATAROOTDIR/doc/shibboleth-sp]
1623  --htmldir=DIR           html documentation [DOCDIR]
1624  --dvidir=DIR            dvi documentation [DOCDIR]
1625  --pdfdir=DIR            pdf documentation [DOCDIR]
1626  --psdir=DIR             ps documentation [DOCDIR]
1627_ACEOF
1628
1629  cat <<\_ACEOF
1630
1631Program names:
1632  --program-prefix=PREFIX            prepend PREFIX to installed program names
1633  --program-suffix=SUFFIX            append SUFFIX to installed program names
1634  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1635
1636System types:
1637  --build=BUILD     configure for building on BUILD [guessed]
1638  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1639_ACEOF
1640fi
1641
1642if test -n "$ac_init_help"; then
1643  case $ac_init_help in
1644     short | recursive ) echo "Configuration of shibboleth 3.3.0:";;
1645   esac
1646  cat <<\_ACEOF
1647
1648Optional Features:
1649  --disable-option-checking  ignore unrecognized --enable/--with options
1650  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1651  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1652  --enable-silent-rules   less verbose build output (undo: "make V=1")
1653  --disable-silent-rules  verbose build output (undo: "make V=0")
1654  --disable-doxygen-doc   don't generate any doxygen documentation
1655  --disable-doxygen-dot   don't generate graphics for doxygen documentation
1656  --enable-doxygen-man    generate doxygen manual pages
1657  --enable-doxygen-rtf    generate doxygen RTF documentation
1658  --enable-doxygen-xml    generate doxygen XML documentation
1659  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1660  --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1661                          file
1662  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1663  --enable-doxygen-ps     generate doxygen PostScript documentation
1664  --enable-doxygen-pdf    generate doxygen PDF documentation
1665  --enable-debug          Produce debug variant (Default = no)
1666  --enable-dependency-tracking
1667                          do not reject slow dependency extractors
1668  --disable-dependency-tracking
1669                          speeds up one-time build
1670  --enable-static[=PKGS]  build static libraries [default=no]
1671  --enable-shared[=PKGS]  build shared libraries [default=yes]
1672  --enable-fast-install[=PKGS]
1673                          optimize for fast installation [default=yes]
1674  --disable-libtool-lock  avoid locking (might break parallel builds)
1675  --disable-adfs          do not build the ADFS module
1676  --enable-systemd        Build with systemd (Default = no)
1677  --enable-apache-13      enable the Apache 1.3 module
1678  --enable-apache-20      enable the Apache 2.0 module
1679  --enable-apache-22      enable the Apache 2.2 module
1680  --enable-apache-24      enable the Apache 2.4 module
1681  --disable-odbc          disable the ODBC Storage Service
1682
1683Optional Packages:
1684  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1685  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1686  --with-pkgconfigdir     pkg-config installation directory
1687                          ['${libdir}/pkgconfig']
1688  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1689                          both]
1690  --with-aix-soname=aix|svr4|both
1691                          shared library versioning (aka "SONAME") variant to
1692                          provide on AIX, [default=aix].
1693  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1694  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1695                          compiler's sysroot if not specified).
1696  --with-boost=DIR        prefix of Boost [guess]
1697  --with-nsapi=DIR        Build NSAPI module for Netscape/iPlanet/SunONE
1698  --with-fastcgi=DIR      Build FastCGI support
1699  --with-memcached=DIR    Build Memcached support
1700  --with-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1701  --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1702  --with-apr=PATH         where apr-config is installed
1703  --with-apu=PATH         where apu-config is installed
1704  --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1705  --with-apr1=PATH        where apr-1-config is installed
1706  --with-apu1=PATH        where apu-1-config is installed
1707  --with-apxs24=FILE      Specifies where to find the Apache 2.4 apxs script.
1708  --with-odbc=PATH        directory where odbc is installed
1709  --with-gssapi           include GSSAPI support
1710
1711Some influential environment variables:
1712  DOXYGEN_PAPER_SIZE
1713              a4wide (default), a4, letter, legal or executive
1714  CC          C compiler command
1715  CFLAGS      C compiler flags
1716  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1717              nonstandard directory <lib dir>
1718  LIBS        libraries to pass to the linker, e.g. -l<library>
1719  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1720              you have headers in a nonstandard directory <include dir>
1721  CXX         C++ compiler command
1722  CXXFLAGS    C++ compiler flags
1723  LT_SYS_LIBRARY_PATH
1724              User-defined run-time library search path.
1725  CXXCPP      C++ preprocessor
1726  CPP         C preprocessor
1727  BOOST_ROOT  Location of Boost installation
1728  PKG_CONFIG  path to pkg-config utility
1729  PKG_CONFIG_PATH
1730              directories to add to pkg-config's search path
1731  PKG_CONFIG_LIBDIR
1732              path overriding pkg-config's built-in search path
1733  log4shib_CFLAGS
1734              C compiler flags for log4shib, overriding pkg-config
1735  log4shib_LIBS
1736              linker flags for log4shib, overriding pkg-config
1737  log4cpp_CFLAGS
1738              C compiler flags for log4cpp, overriding pkg-config
1739  log4cpp_LIBS
1740              linker flags for log4cpp, overriding pkg-config
1741  xerces_CFLAGS
1742              C compiler flags for xerces, overriding pkg-config
1743  xerces_LIBS linker flags for xerces, overriding pkg-config
1744  xmlsec_CFLAGS
1745              C compiler flags for xmlsec, overriding pkg-config
1746  xmlsec_LIBS linker flags for xmlsec, overriding pkg-config
1747  xmltooling_CFLAGS
1748              C compiler flags for xmltooling, overriding pkg-config
1749  xmltooling_LIBS
1750              linker flags for xmltooling, overriding pkg-config
1751  xmltooling_includedir
1752              value of includedir for xmltooling, overriding pkg-config
1753  XMLTOOLINGXMLDIR
1754              value of pkgxmldir for xmltooling, overriding pkg-config
1755  xmltooling_lite_CFLAGS
1756              C compiler flags for xmltooling_lite, overriding pkg-config
1757  xmltooling_lite_LIBS
1758              linker flags for xmltooling_lite, overriding pkg-config
1759  opensaml_CFLAGS
1760              C compiler flags for opensaml, overriding pkg-config
1761  opensaml_LIBS
1762              linker flags for opensaml, overriding pkg-config
1763  OPENSAMLXMLDIR
1764              value of pkgxmldir for opensaml, overriding pkg-config
1765  SYSTEMD_CFLAGS
1766              C compiler flags for SYSTEMD, overriding pkg-config
1767  SYSTEMD_LIBS
1768              linker flags for SYSTEMD, overriding pkg-config
1769  gss_CFLAGS  C compiler flags for gss, overriding pkg-config
1770  gss_LIBS    linker flags for gss, overriding pkg-config
1771  gnu_gss_CFLAGS
1772              C compiler flags for gnu_gss, overriding pkg-config
1773  gnu_gss_LIBS
1774              linker flags for gnu_gss, overriding pkg-config
1775  GSS_VENDOR  value of vendor for krb5-gssapi, overriding pkg-config
1776  CXXTEST     override the cxxtestgen executable and options
1777  CXXTESTFLAGS
1778              override the cxxtest compiler flags needed to build tests
1779
1780Use these variables to override the choices made by `configure' or to help
1781it to find libraries and programs with nonstandard names/locations.
1782
1783Report bugs to <https://shibboleth.atlassian.net/jira>.
1784_ACEOF
1785ac_status=$?
1786fi
1787
1788if test "$ac_init_help" = "recursive"; then
1789  # If there are subdirs, report their specific --help.
1790  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1791    test -d "$ac_dir" ||
1792      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1793      continue
1794    ac_builddir=.
1795
1796case "$ac_dir" in
1797.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798*)
1799  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1800  # A ".." for each directory in $ac_dir_suffix.
1801  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1802  case $ac_top_builddir_sub in
1803  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1805  esac ;;
1806esac
1807ac_abs_top_builddir=$ac_pwd
1808ac_abs_builddir=$ac_pwd$ac_dir_suffix
1809# for backward compatibility:
1810ac_top_builddir=$ac_top_build_prefix
1811
1812case $srcdir in
1813  .)  # We are building in place.
1814    ac_srcdir=.
1815    ac_top_srcdir=$ac_top_builddir_sub
1816    ac_abs_top_srcdir=$ac_pwd ;;
1817  [\\/]* | ?:[\\/]* )  # Absolute name.
1818    ac_srcdir=$srcdir$ac_dir_suffix;
1819    ac_top_srcdir=$srcdir
1820    ac_abs_top_srcdir=$srcdir ;;
1821  *) # Relative name.
1822    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1823    ac_top_srcdir=$ac_top_build_prefix$srcdir
1824    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1825esac
1826ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1827
1828    cd "$ac_dir" || { ac_status=$?; continue; }
1829    # Check for configure.gnu first; this name is used for a wrapper for
1830    # Metaconfig's "Configure" on case-insensitive file systems.
1831    if test -f "$ac_srcdir/configure.gnu"; then
1832      echo &&
1833      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1834    elif test -f "$ac_srcdir/configure"; then
1835      echo &&
1836      $SHELL "$ac_srcdir/configure" --help=recursive
1837    else
1838      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1839    fi || ac_status=$?
1840    cd "$ac_pwd" || { ac_status=$?; break; }
1841  done
1842fi
1843
1844test -n "$ac_init_help" && exit $ac_status
1845if $ac_init_version; then
1846  cat <<\_ACEOF
1847shibboleth configure 3.3.0
1848generated by GNU Autoconf 2.71
1849
1850Copyright (C) 2021 Free Software Foundation, Inc.
1851This configure script is free software; the Free Software Foundation
1852gives unlimited permission to copy, distribute and modify it.
1853_ACEOF
1854  exit
1855fi
1856
1857## ------------------------ ##
1858## Autoconf initialization. ##
1859## ------------------------ ##
1860
1861# ac_fn_c_try_compile LINENO
1862# --------------------------
1863# Try to compile conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_c_try_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  rm -f conftest.$ac_objext conftest.beam
1868  if { { ac_try="$ac_compile"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874printf "%s\n" "$ac_try_echo"; } >&5
1875  (eval "$ac_compile") 2>conftest.err
1876  ac_status=$?
1877  if test -s conftest.err; then
1878    grep -v '^ *+' conftest.err >conftest.er1
1879    cat conftest.er1 >&5
1880    mv -f conftest.er1 conftest.err
1881  fi
1882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883  test $ac_status = 0; } && {
1884	 test -z "$ac_c_werror_flag" ||
1885	 test ! -s conftest.err
1886       } && test -s conftest.$ac_objext
1887then :
1888  ac_retval=0
1889else $as_nop
1890  printf "%s\n" "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893	ac_retval=1
1894fi
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896  as_fn_set_status $ac_retval
1897
1898} # ac_fn_c_try_compile
1899
1900# ac_fn_cxx_try_compile LINENO
1901# ----------------------------
1902# Try to compile conftest.$ac_ext, and return whether this succeeded.
1903ac_fn_cxx_try_compile ()
1904{
1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906  rm -f conftest.$ac_objext conftest.beam
1907  if { { ac_try="$ac_compile"
1908case "(($ac_try" in
1909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910  *) ac_try_echo=$ac_try;;
1911esac
1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913printf "%s\n" "$ac_try_echo"; } >&5
1914  (eval "$ac_compile") 2>conftest.err
1915  ac_status=$?
1916  if test -s conftest.err; then
1917    grep -v '^ *+' conftest.err >conftest.er1
1918    cat conftest.er1 >&5
1919    mv -f conftest.er1 conftest.err
1920  fi
1921  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922  test $ac_status = 0; } && {
1923	 test -z "$ac_cxx_werror_flag" ||
1924	 test ! -s conftest.err
1925       } && test -s conftest.$ac_objext
1926then :
1927  ac_retval=0
1928else $as_nop
1929  printf "%s\n" "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932	ac_retval=1
1933fi
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935  as_fn_set_status $ac_retval
1936
1937} # ac_fn_cxx_try_compile
1938
1939# ac_fn_c_try_link LINENO
1940# -----------------------
1941# Try to link conftest.$ac_ext, and return whether this succeeded.
1942ac_fn_c_try_link ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1946  if { { ac_try="$ac_link"
1947case "(($ac_try" in
1948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949  *) ac_try_echo=$ac_try;;
1950esac
1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952printf "%s\n" "$ac_try_echo"; } >&5
1953  (eval "$ac_link") 2>conftest.err
1954  ac_status=$?
1955  if test -s conftest.err; then
1956    grep -v '^ *+' conftest.err >conftest.er1
1957    cat conftest.er1 >&5
1958    mv -f conftest.er1 conftest.err
1959  fi
1960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961  test $ac_status = 0; } && {
1962	 test -z "$ac_c_werror_flag" ||
1963	 test ! -s conftest.err
1964       } && test -s conftest$ac_exeext && {
1965	 test "$cross_compiling" = yes ||
1966	 test -x conftest$ac_exeext
1967       }
1968then :
1969  ac_retval=0
1970else $as_nop
1971  printf "%s\n" "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974	ac_retval=1
1975fi
1976  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978  # interfere with the next link command; also delete a directory that is
1979  # left behind by Apple's compiler.  We do this before executing the actions.
1980  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_c_try_link
1985
1986# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1987# -------------------------------------------------------
1988# Tests whether HEADER exists and can be compiled using the include files in
1989# INCLUDES, setting the cache variable VAR accordingly.
1990ac_fn_c_check_header_compile ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994printf %s "checking for $2... " >&6; }
1995if eval test \${$3+y}
1996then :
1997  printf %s "(cached) " >&6
1998else $as_nop
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"
2005then :
2006  eval "$3=yes"
2007else $as_nop
2008  eval "$3=no"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014printf "%s\n" "$ac_res" >&6; }
2015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017} # ac_fn_c_check_header_compile
2018
2019# ac_fn_c_check_func LINENO FUNC VAR
2020# ----------------------------------
2021# Tests whether FUNC exists, setting the cache variable VAR accordingly
2022ac_fn_c_check_func ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026printf %s "checking for $2... " >&6; }
2027if eval test \${$3+y}
2028then :
2029  printf %s "(cached) " >&6
2030else $as_nop
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2034   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2035#define $2 innocuous_$2
2036
2037/* System header to define __stub macros and hopefully few prototypes,
2038   which can conflict with char $2 (); below.  */
2039
2040#include <limits.h>
2041#undef $2
2042
2043/* Override any GCC internal prototype to avoid an error.
2044   Use char because int might match the return type of a GCC
2045   builtin and then its argument prototype would still apply.  */
2046#ifdef __cplusplus
2047extern "C"
2048#endif
2049char $2 ();
2050/* The GNU C library defines this for functions which it implements
2051    to always fail with ENOSYS.  Some functions are actually named
2052    something starting with __ and the normal name is an alias.  */
2053#if defined __stub_$2 || defined __stub___$2
2054choke me
2055#endif
2056
2057int
2058main (void)
2059{
2060return $2 ();
2061  ;
2062  return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_link "$LINENO"
2066then :
2067  eval "$3=yes"
2068else $as_nop
2069  eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.beam \
2072    conftest$ac_exeext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076printf "%s\n" "$ac_res" >&6; }
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_func
2080
2081# ac_fn_cxx_try_cpp LINENO
2082# ------------------------
2083# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2084ac_fn_cxx_try_cpp ()
2085{
2086  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087  if { { ac_try="$ac_cpp conftest.$ac_ext"
2088case "(($ac_try" in
2089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090  *) ac_try_echo=$ac_try;;
2091esac
2092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093printf "%s\n" "$ac_try_echo"; } >&5
2094  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2095  ac_status=$?
2096  if test -s conftest.err; then
2097    grep -v '^ *+' conftest.err >conftest.er1
2098    cat conftest.er1 >&5
2099    mv -f conftest.er1 conftest.err
2100  fi
2101  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102  test $ac_status = 0; } > conftest.i && {
2103	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2104	 test ! -s conftest.err
2105       }
2106then :
2107  ac_retval=0
2108else $as_nop
2109  printf "%s\n" "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112    ac_retval=1
2113fi
2114  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115  as_fn_set_status $ac_retval
2116
2117} # ac_fn_cxx_try_cpp
2118
2119# ac_fn_cxx_try_link LINENO
2120# -------------------------
2121# Try to link conftest.$ac_ext, and return whether this succeeded.
2122ac_fn_cxx_try_link ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2126  if { { ac_try="$ac_link"
2127case "(($ac_try" in
2128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129  *) ac_try_echo=$ac_try;;
2130esac
2131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132printf "%s\n" "$ac_try_echo"; } >&5
2133  (eval "$ac_link") 2>conftest.err
2134  ac_status=$?
2135  if test -s conftest.err; then
2136    grep -v '^ *+' conftest.err >conftest.er1
2137    cat conftest.er1 >&5
2138    mv -f conftest.er1 conftest.err
2139  fi
2140  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141  test $ac_status = 0; } && {
2142	 test -z "$ac_cxx_werror_flag" ||
2143	 test ! -s conftest.err
2144       } && test -s conftest$ac_exeext && {
2145	 test "$cross_compiling" = yes ||
2146	 test -x conftest$ac_exeext
2147       }
2148then :
2149  ac_retval=0
2150else $as_nop
2151  printf "%s\n" "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
2154	ac_retval=1
2155fi
2156  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2157  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2158  # interfere with the next link command; also delete a directory that is
2159  # left behind by Apple's compiler.  We do this before executing the actions.
2160  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162  as_fn_set_status $ac_retval
2163
2164} # ac_fn_cxx_try_link
2165
2166# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2167# -------------------------------------------
2168# Tests whether TYPE exists after having included INCLUDES, setting cache
2169# variable VAR accordingly.
2170ac_fn_c_check_type ()
2171{
2172  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174printf %s "checking for $2... " >&6; }
2175if eval test \${$3+y}
2176then :
2177  printf %s "(cached) " >&6
2178else $as_nop
2179  eval "$3=no"
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main (void)
2185{
2186if (sizeof ($2))
2187	 return 0;
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"
2193then :
2194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195/* end confdefs.h.  */
2196$4
2197int
2198main (void)
2199{
2200if (sizeof (($2)))
2201	    return 0;
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"
2207then :
2208
2209else $as_nop
2210  eval "$3=yes"
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2215fi
2216eval ac_res=\$$3
2217	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218printf "%s\n" "$ac_res" >&6; }
2219  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220
2221} # ac_fn_c_check_type
2222
2223# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2224# ----------------------------------------------------
2225# Tries to find if the field MEMBER exists in type AGGR, after including
2226# INCLUDES, setting cache variable VAR accordingly.
2227ac_fn_c_check_member ()
2228{
2229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2231printf %s "checking for $2.$3... " >&6; }
2232if eval test \${$4+y}
2233then :
2234  printf %s "(cached) " >&6
2235else $as_nop
2236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h.  */
2238$5
2239int
2240main (void)
2241{
2242static $2 ac_aggr;
2243if (ac_aggr.$3)
2244return 0;
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"
2250then :
2251  eval "$4=yes"
2252else $as_nop
2253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h.  */
2255$5
2256int
2257main (void)
2258{
2259static $2 ac_aggr;
2260if (sizeof ac_aggr.$3)
2261return 0;
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_compile "$LINENO"
2267then :
2268  eval "$4=yes"
2269else $as_nop
2270  eval "$4=no"
2271fi
2272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2275fi
2276eval ac_res=\$$4
2277	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278printf "%s\n" "$ac_res" >&6; }
2279  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281} # ac_fn_c_check_member
2282
2283# ac_fn_c_try_run LINENO
2284# ----------------------
2285# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2286# executables *can* be run.
2287ac_fn_c_try_run ()
2288{
2289  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290  if { { ac_try="$ac_link"
2291case "(($ac_try" in
2292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293  *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296printf "%s\n" "$ac_try_echo"; } >&5
2297  (eval "$ac_link") 2>&5
2298  ac_status=$?
2299  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2301  { { case "(($ac_try" in
2302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303  *) ac_try_echo=$ac_try;;
2304esac
2305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306printf "%s\n" "$ac_try_echo"; } >&5
2307  (eval "$ac_try") 2>&5
2308  ac_status=$?
2309  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310  test $ac_status = 0; }; }
2311then :
2312  ac_retval=0
2313else $as_nop
2314  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2315       printf "%s\n" "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318       ac_retval=$ac_status
2319fi
2320  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2321  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322  as_fn_set_status $ac_retval
2323
2324} # ac_fn_c_try_run
2325
2326# ac_fn_c_try_cpp LINENO
2327# ----------------------
2328# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2329ac_fn_c_try_cpp ()
2330{
2331  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332  if { { ac_try="$ac_cpp conftest.$ac_ext"
2333case "(($ac_try" in
2334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335  *) ac_try_echo=$ac_try;;
2336esac
2337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338printf "%s\n" "$ac_try_echo"; } >&5
2339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2340  ac_status=$?
2341  if test -s conftest.err; then
2342    grep -v '^ *+' conftest.err >conftest.er1
2343    cat conftest.er1 >&5
2344    mv -f conftest.er1 conftest.err
2345  fi
2346  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347  test $ac_status = 0; } > conftest.i && {
2348	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2349	 test ! -s conftest.err
2350       }
2351then :
2352  ac_retval=0
2353else $as_nop
2354  printf "%s\n" "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357    ac_retval=1
2358fi
2359  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360  as_fn_set_status $ac_retval
2361
2362} # ac_fn_c_try_cpp
2363
2364# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2365# ------------------------------------------------------------------
2366# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2367# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2368ac_fn_check_decl ()
2369{
2370  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371  as_decl_name=`echo $2|sed 's/ *(.*//'`
2372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2373printf %s "checking whether $as_decl_name is declared... " >&6; }
2374if eval test \${$3+y}
2375then :
2376  printf %s "(cached) " >&6
2377else $as_nop
2378  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2379  eval ac_save_FLAGS=\$$6
2380  as_fn_append $6 " $5"
2381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382/* end confdefs.h.  */
2383$4
2384int
2385main (void)
2386{
2387#ifndef $as_decl_name
2388#ifdef __cplusplus
2389  (void) $as_decl_use;
2390#else
2391  (void) $as_decl_name;
2392#endif
2393#endif
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399if ac_fn_cxx_try_compile "$LINENO"
2400then :
2401  eval "$3=yes"
2402else $as_nop
2403  eval "$3=no"
2404fi
2405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2406  eval $6=\$ac_save_FLAGS
2407
2408fi
2409eval ac_res=\$$3
2410	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411printf "%s\n" "$ac_res" >&6; }
2412  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413
2414} # ac_fn_check_decl
2415
2416# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2417# ---------------------------------------------------------
2418# Tests whether HEADER exists and can be compiled using the include files in
2419# INCLUDES, setting the cache variable VAR accordingly.
2420ac_fn_cxx_check_header_compile ()
2421{
2422  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424printf %s "checking for $2... " >&6; }
2425if eval test \${$3+y}
2426then :
2427  printf %s "(cached) " >&6
2428else $as_nop
2429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h.  */
2431$4
2432#include <$2>
2433_ACEOF
2434if ac_fn_cxx_try_compile "$LINENO"
2435then :
2436  eval "$3=yes"
2437else $as_nop
2438  eval "$3=no"
2439fi
2440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2441fi
2442eval ac_res=\$$3
2443	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444printf "%s\n" "$ac_res" >&6; }
2445  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446
2447} # ac_fn_cxx_check_header_compile
2448ac_configure_args_raw=
2449for ac_arg
2450do
2451  case $ac_arg in
2452  *\'*)
2453    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2454  esac
2455  as_fn_append ac_configure_args_raw " '$ac_arg'"
2456done
2457
2458case $ac_configure_args_raw in
2459  *$as_nl*)
2460    ac_safe_unquote= ;;
2461  *)
2462    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2463    ac_unsafe_a="$ac_unsafe_z#~"
2464    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2465    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2466esac
2467
2468cat >config.log <<_ACEOF
2469This file contains any messages produced by compilers while
2470running configure, to aid debugging if configure makes a mistake.
2471
2472It was created by shibboleth $as_me 3.3.0, which was
2473generated by GNU Autoconf 2.71.  Invocation command line was
2474
2475  $ $0$ac_configure_args_raw
2476
2477_ACEOF
2478exec 5>>config.log
2479{
2480cat <<_ASUNAME
2481## --------- ##
2482## Platform. ##
2483## --------- ##
2484
2485hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2486uname -m = `(uname -m) 2>/dev/null || echo unknown`
2487uname -r = `(uname -r) 2>/dev/null || echo unknown`
2488uname -s = `(uname -s) 2>/dev/null || echo unknown`
2489uname -v = `(uname -v) 2>/dev/null || echo unknown`
2490
2491/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2492/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2493
2494/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2495/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2496/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2497/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2498/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2499/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2500/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2501
2502_ASUNAME
2503
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507  IFS=$as_save_IFS
2508  case $as_dir in #(((
2509    '') as_dir=./ ;;
2510    */) ;;
2511    *) as_dir=$as_dir/ ;;
2512  esac
2513    printf "%s\n" "PATH: $as_dir"
2514  done
2515IFS=$as_save_IFS
2516
2517} >&5
2518
2519cat >&5 <<_ACEOF
2520
2521
2522## ----------- ##
2523## Core tests. ##
2524## ----------- ##
2525
2526_ACEOF
2527
2528
2529# Keep a trace of the command line.
2530# Strip out --no-create and --no-recursion so they do not pile up.
2531# Strip out --silent because we don't want to record it for future runs.
2532# Also quote any args containing shell meta-characters.
2533# Make two passes to allow for proper duplicate-argument suppression.
2534ac_configure_args=
2535ac_configure_args0=
2536ac_configure_args1=
2537ac_must_keep_next=false
2538for ac_pass in 1 2
2539do
2540  for ac_arg
2541  do
2542    case $ac_arg in
2543    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2544    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2545    | -silent | --silent | --silen | --sile | --sil)
2546      continue ;;
2547    *\'*)
2548      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2549    esac
2550    case $ac_pass in
2551    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2552    2)
2553      as_fn_append ac_configure_args1 " '$ac_arg'"
2554      if test $ac_must_keep_next = true; then
2555	ac_must_keep_next=false # Got value, back to normal.
2556      else
2557	case $ac_arg in
2558	  *=* | --config-cache | -C | -disable-* | --disable-* \
2559	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2560	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2561	  | -with-* | --with-* | -without-* | --without-* | --x)
2562	    case "$ac_configure_args0 " in
2563	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2564	    esac
2565	    ;;
2566	  -* ) ac_must_keep_next=true ;;
2567	esac
2568      fi
2569      as_fn_append ac_configure_args " '$ac_arg'"
2570      ;;
2571    esac
2572  done
2573done
2574{ ac_configure_args0=; unset ac_configure_args0;}
2575{ ac_configure_args1=; unset ac_configure_args1;}
2576
2577# When interrupted or exit'd, cleanup temporary files, and complete
2578# config.log.  We remove comments because anyway the quotes in there
2579# would cause problems or look ugly.
2580# WARNING: Use '\'' to represent an apostrophe within the trap.
2581# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2582trap 'exit_status=$?
2583  # Sanitize IFS.
2584  IFS=" ""	$as_nl"
2585  # Save into config.log some information that might help in debugging.
2586  {
2587    echo
2588
2589    printf "%s\n" "## ---------------- ##
2590## Cache variables. ##
2591## ---------------- ##"
2592    echo
2593    # The following way of writing the cache mishandles newlines in values,
2594(
2595  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2596    eval ac_val=\$$ac_var
2597    case $ac_val in #(
2598    *${as_nl}*)
2599      case $ac_var in #(
2600      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2601printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2602      esac
2603      case $ac_var in #(
2604      _ | IFS | as_nl) ;; #(
2605      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2606      *) { eval $ac_var=; unset $ac_var;} ;;
2607      esac ;;
2608    esac
2609  done
2610  (set) 2>&1 |
2611    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2612    *${as_nl}ac_space=\ *)
2613      sed -n \
2614	"s/'\''/'\''\\\\'\'''\''/g;
2615	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2616      ;; #(
2617    *)
2618      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2619      ;;
2620    esac |
2621    sort
2622)
2623    echo
2624
2625    printf "%s\n" "## ----------------- ##
2626## Output variables. ##
2627## ----------------- ##"
2628    echo
2629    for ac_var in $ac_subst_vars
2630    do
2631      eval ac_val=\$$ac_var
2632      case $ac_val in
2633      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2634      esac
2635      printf "%s\n" "$ac_var='\''$ac_val'\''"
2636    done | sort
2637    echo
2638
2639    if test -n "$ac_subst_files"; then
2640      printf "%s\n" "## ------------------- ##
2641## File substitutions. ##
2642## ------------------- ##"
2643      echo
2644      for ac_var in $ac_subst_files
2645      do
2646	eval ac_val=\$$ac_var
2647	case $ac_val in
2648	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2649	esac
2650	printf "%s\n" "$ac_var='\''$ac_val'\''"
2651      done | sort
2652      echo
2653    fi
2654
2655    if test -s confdefs.h; then
2656      printf "%s\n" "## ----------- ##
2657## confdefs.h. ##
2658## ----------- ##"
2659      echo
2660      cat confdefs.h
2661      echo
2662    fi
2663    test "$ac_signal" != 0 &&
2664      printf "%s\n" "$as_me: caught signal $ac_signal"
2665    printf "%s\n" "$as_me: exit $exit_status"
2666  } >&5
2667  rm -f core *.core core.conftest.* &&
2668    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2669    exit $exit_status
2670' 0
2671for ac_signal in 1 2 13 15; do
2672  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2673done
2674ac_signal=0
2675
2676# confdefs.h avoids OS command line length limits that DEFS can exceed.
2677rm -f -r conftest* confdefs.h
2678
2679printf "%s\n" "/* confdefs.h */" > confdefs.h
2680
2681# Predefined preprocessor variables.
2682
2683printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2684
2685printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2686
2687printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2688
2689printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2690
2691printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2692
2693printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2694
2695
2696# Let the site file select an alternate cache file if it wants to.
2697# Prefer an explicitly selected file to automatically selected ones.
2698if test -n "$CONFIG_SITE"; then
2699  ac_site_files="$CONFIG_SITE"
2700elif test "x$prefix" != xNONE; then
2701  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2702else
2703  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2704fi
2705
2706for ac_site_file in $ac_site_files
2707do
2708  case $ac_site_file in #(
2709  */*) :
2710     ;; #(
2711  *) :
2712    ac_site_file=./$ac_site_file ;;
2713esac
2714  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2715    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2717    sed 's/^/| /' "$ac_site_file" >&5
2718    . "$ac_site_file" \
2719      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2721as_fn_error $? "failed to load site script $ac_site_file
2722See \`config.log' for more details" "$LINENO" 5; }
2723  fi
2724done
2725
2726if test -r "$cache_file"; then
2727  # Some versions of bash will fail to source /dev/null (special files
2728  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2729  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2730    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2732    case $cache_file in
2733      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2734      *)                      . "./$cache_file";;
2735    esac
2736  fi
2737else
2738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2740  >$cache_file
2741fi
2742
2743# Test code for whether the C compiler supports C89 (global declarations)
2744ac_c_conftest_c89_globals='
2745/* Does the compiler advertise C89 conformance?
2746   Do not test the value of __STDC__, because some compilers set it to 0
2747   while being otherwise adequately conformant. */
2748#if !defined __STDC__
2749# error "Compiler does not advertise C89 conformance"
2750#endif
2751
2752#include <stddef.h>
2753#include <stdarg.h>
2754struct stat;
2755/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2756struct buf { int x; };
2757struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2758static char *e (p, i)
2759     char **p;
2760     int i;
2761{
2762  return p[i];
2763}
2764static char *f (char * (*g) (char **, int), char **p, ...)
2765{
2766  char *s;
2767  va_list v;
2768  va_start (v,p);
2769  s = g (p, va_arg (v,int));
2770  va_end (v);
2771  return s;
2772}
2773
2774/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2775   function prototypes and stuff, but not \xHH hex character constants.
2776   These do not provoke an error unfortunately, instead are silently treated
2777   as an "x".  The following induces an error, until -std is added to get
2778   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2779   array size at least.  It is necessary to write \x00 == 0 to get something
2780   that is true only with -std.  */
2781int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2782
2783/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2784   inside strings and character constants.  */
2785#define FOO(x) '\''x'\''
2786int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2787
2788int test (int i, double x);
2789struct s1 {int (*f) (int a);};
2790struct s2 {int (*f) (double a);};
2791int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2792               int, int);'
2793
2794# Test code for whether the C compiler supports C89 (body of main).
2795ac_c_conftest_c89_main='
2796ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2797'
2798
2799# Test code for whether the C compiler supports C99 (global declarations)
2800ac_c_conftest_c99_globals='
2801// Does the compiler advertise C99 conformance?
2802#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2803# error "Compiler does not advertise C99 conformance"
2804#endif
2805
2806#include <stdbool.h>
2807extern int puts (const char *);
2808extern int printf (const char *, ...);
2809extern int dprintf (int, const char *, ...);
2810extern void *malloc (size_t);
2811
2812// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2813// dprintf is used instead of fprintf to avoid needing to declare
2814// FILE and stderr.
2815#define debug(...) dprintf (2, __VA_ARGS__)
2816#define showlist(...) puts (#__VA_ARGS__)
2817#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2818static void
2819test_varargs_macros (void)
2820{
2821  int x = 1234;
2822  int y = 5678;
2823  debug ("Flag");
2824  debug ("X = %d\n", x);
2825  showlist (The first, second, and third items.);
2826  report (x>y, "x is %d but y is %d", x, y);
2827}
2828
2829// Check long long types.
2830#define BIG64 18446744073709551615ull
2831#define BIG32 4294967295ul
2832#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2833#if !BIG_OK
2834  #error "your preprocessor is broken"
2835#endif
2836#if BIG_OK
2837#else
2838  #error "your preprocessor is broken"
2839#endif
2840static long long int bignum = -9223372036854775807LL;
2841static unsigned long long int ubignum = BIG64;
2842
2843struct incomplete_array
2844{
2845  int datasize;
2846  double data[];
2847};
2848
2849struct named_init {
2850  int number;
2851  const wchar_t *name;
2852  double average;
2853};
2854
2855typedef const char *ccp;
2856
2857static inline int
2858test_restrict (ccp restrict text)
2859{
2860  // See if C++-style comments work.
2861  // Iterate through items via the restricted pointer.
2862  // Also check for declarations in for loops.
2863  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2864    continue;
2865  return 0;
2866}
2867
2868// Check varargs and va_copy.
2869static bool
2870test_varargs (const char *format, ...)
2871{
2872  va_list args;
2873  va_start (args, format);
2874  va_list args_copy;
2875  va_copy (args_copy, args);
2876
2877  const char *str = "";
2878  int number = 0;
2879  float fnumber = 0;
2880
2881  while (*format)
2882    {
2883      switch (*format++)
2884	{
2885	case '\''s'\'': // string
2886	  str = va_arg (args_copy, const char *);
2887	  break;
2888	case '\''d'\'': // int
2889	  number = va_arg (args_copy, int);
2890	  break;
2891	case '\''f'\'': // float
2892	  fnumber = va_arg (args_copy, double);
2893	  break;
2894	default:
2895	  break;
2896	}
2897    }
2898  va_end (args_copy);
2899  va_end (args);
2900
2901  return *str && number && fnumber;
2902}
2903'
2904
2905# Test code for whether the C compiler supports C99 (body of main).
2906ac_c_conftest_c99_main='
2907  // Check bool.
2908  _Bool success = false;
2909  success |= (argc != 0);
2910
2911  // Check restrict.
2912  if (test_restrict ("String literal") == 0)
2913    success = true;
2914  char *restrict newvar = "Another string";
2915
2916  // Check varargs.
2917  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2918  test_varargs_macros ();
2919
2920  // Check flexible array members.
2921  struct incomplete_array *ia =
2922    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2923  ia->datasize = 10;
2924  for (int i = 0; i < ia->datasize; ++i)
2925    ia->data[i] = i * 1.234;
2926
2927  // Check named initializers.
2928  struct named_init ni = {
2929    .number = 34,
2930    .name = L"Test wide string",
2931    .average = 543.34343,
2932  };
2933
2934  ni.number = 58;
2935
2936  int dynamic_array[ni.number];
2937  dynamic_array[0] = argv[0][0];
2938  dynamic_array[ni.number - 1] = 543;
2939
2940  // work around unused variable warnings
2941  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2942	 || dynamic_array[ni.number - 1] != 543);
2943'
2944
2945# Test code for whether the C compiler supports C11 (global declarations)
2946ac_c_conftest_c11_globals='
2947// Does the compiler advertise C11 conformance?
2948#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2949# error "Compiler does not advertise C11 conformance"
2950#endif
2951
2952// Check _Alignas.
2953char _Alignas (double) aligned_as_double;
2954char _Alignas (0) no_special_alignment;
2955extern char aligned_as_int;
2956char _Alignas (0) _Alignas (int) aligned_as_int;
2957
2958// Check _Alignof.
2959enum
2960{
2961  int_alignment = _Alignof (int),
2962  int_array_alignment = _Alignof (int[100]),
2963  char_alignment = _Alignof (char)
2964};
2965_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2966
2967// Check _Noreturn.
2968int _Noreturn does_not_return (void) { for (;;) continue; }
2969
2970// Check _Static_assert.
2971struct test_static_assert
2972{
2973  int x;
2974  _Static_assert (sizeof (int) <= sizeof (long int),
2975                  "_Static_assert does not work in struct");
2976  long int y;
2977};
2978
2979// Check UTF-8 literals.
2980#define u8 syntax error!
2981char const utf8_literal[] = u8"happens to be ASCII" "another string";
2982
2983// Check duplicate typedefs.
2984typedef long *long_ptr;
2985typedef long int *long_ptr;
2986typedef long_ptr long_ptr;
2987
2988// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2989struct anonymous
2990{
2991  union {
2992    struct { int i; int j; };
2993    struct { int k; long int l; } w;
2994  };
2995  int m;
2996} v1;
2997'
2998
2999# Test code for whether the C compiler supports C11 (body of main).
3000ac_c_conftest_c11_main='
3001  _Static_assert ((offsetof (struct anonymous, i)
3002		   == offsetof (struct anonymous, w.k)),
3003		  "Anonymous union alignment botch");
3004  v1.i = 2;
3005  v1.w.k = 5;
3006  ok |= v1.i != 5;
3007'
3008
3009# Test code for whether the C compiler supports C11 (complete).
3010ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3011${ac_c_conftest_c99_globals}
3012${ac_c_conftest_c11_globals}
3013
3014int
3015main (int argc, char **argv)
3016{
3017  int ok = 0;
3018  ${ac_c_conftest_c89_main}
3019  ${ac_c_conftest_c99_main}
3020  ${ac_c_conftest_c11_main}
3021  return ok;
3022}
3023"
3024
3025# Test code for whether the C compiler supports C99 (complete).
3026ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3027${ac_c_conftest_c99_globals}
3028
3029int
3030main (int argc, char **argv)
3031{
3032  int ok = 0;
3033  ${ac_c_conftest_c89_main}
3034  ${ac_c_conftest_c99_main}
3035  return ok;
3036}
3037"
3038
3039# Test code for whether the C compiler supports C89 (complete).
3040ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3041
3042int
3043main (int argc, char **argv)
3044{
3045  int ok = 0;
3046  ${ac_c_conftest_c89_main}
3047  return ok;
3048}
3049"
3050
3051# Test code for whether the C++ compiler supports C++98 (global declarations)
3052ac_cxx_conftest_cxx98_globals='
3053// Does the compiler advertise C++98 conformance?
3054#if !defined __cplusplus || __cplusplus < 199711L
3055# error "Compiler does not advertise C++98 conformance"
3056#endif
3057
3058// These inclusions are to reject old compilers that
3059// lack the unsuffixed header files.
3060#include <cstdlib>
3061#include <exception>
3062
3063// <cassert> and <cstring> are *not* freestanding headers in C++98.
3064extern void assert (int);
3065namespace std {
3066  extern int strcmp (const char *, const char *);
3067}
3068
3069// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3070using std::exception;
3071using std::strcmp;
3072
3073namespace {
3074
3075void test_exception_syntax()
3076{
3077  try {
3078    throw "test";
3079  } catch (const char *s) {
3080    // Extra parentheses suppress a warning when building autoconf itself,
3081    // due to lint rules shared with more typical C programs.
3082    assert (!(strcmp) (s, "test"));
3083  }
3084}
3085
3086template <typename T> struct test_template
3087{
3088  T const val;
3089  explicit test_template(T t) : val(t) {}
3090  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3091};
3092
3093} // anonymous namespace
3094'
3095
3096# Test code for whether the C++ compiler supports C++98 (body of main)
3097ac_cxx_conftest_cxx98_main='
3098  assert (argc);
3099  assert (! argv[0]);
3100{
3101  test_exception_syntax ();
3102  test_template<double> tt (2.0);
3103  assert (tt.add (4) == 6.0);
3104  assert (true && !false);
3105}
3106'
3107
3108# Test code for whether the C++ compiler supports C++11 (global declarations)
3109ac_cxx_conftest_cxx11_globals='
3110// Does the compiler advertise C++ 2011 conformance?
3111#if !defined __cplusplus || __cplusplus < 201103L
3112# error "Compiler does not advertise C++11 conformance"
3113#endif
3114
3115namespace cxx11test
3116{
3117  constexpr int get_val() { return 20; }
3118
3119  struct testinit
3120  {
3121    int i;
3122    double d;
3123  };
3124
3125  class delegate
3126  {
3127  public:
3128    delegate(int n) : n(n) {}
3129    delegate(): delegate(2354) {}
3130
3131    virtual int getval() { return this->n; };
3132  protected:
3133    int n;
3134  };
3135
3136  class overridden : public delegate
3137  {
3138  public:
3139    overridden(int n): delegate(n) {}
3140    virtual int getval() override final { return this->n * 2; }
3141  };
3142
3143  class nocopy
3144  {
3145  public:
3146    nocopy(int i): i(i) {}
3147    nocopy() = default;
3148    nocopy(const nocopy&) = delete;
3149    nocopy & operator=(const nocopy&) = delete;
3150  private:
3151    int i;
3152  };
3153
3154  // for testing lambda expressions
3155  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3156  {
3157    return f(v);
3158  }
3159
3160  // for testing variadic templates and trailing return types
3161  template <typename V> auto sum(V first) -> V
3162  {
3163    return first;
3164  }
3165  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3166  {
3167    return first + sum(rest...);
3168  }
3169}
3170'
3171
3172# Test code for whether the C++ compiler supports C++11 (body of main)
3173ac_cxx_conftest_cxx11_main='
3174{
3175  // Test auto and decltype
3176  auto a1 = 6538;
3177  auto a2 = 48573953.4;
3178  auto a3 = "String literal";
3179
3180  int total = 0;
3181  for (auto i = a3; *i; ++i) { total += *i; }
3182
3183  decltype(a2) a4 = 34895.034;
3184}
3185{
3186  // Test constexpr
3187  short sa[cxx11test::get_val()] = { 0 };
3188}
3189{
3190  // Test initializer lists
3191  cxx11test::testinit il = { 4323, 435234.23544 };
3192}
3193{
3194  // Test range-based for
3195  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3196                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3197  for (auto &x : array) { x += 23; }
3198}
3199{
3200  // Test lambda expressions
3201  using cxx11test::eval;
3202  assert (eval ([](int x) { return x*2; }, 21) == 42);
3203  double d = 2.0;
3204  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3205  assert (d == 5.0);
3206  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3207  assert (d == 5.0);
3208}
3209{
3210  // Test use of variadic templates
3211  using cxx11test::sum;
3212  auto a = sum(1);
3213  auto b = sum(1, 2);
3214  auto c = sum(1.0, 2.0, 3.0);
3215}
3216{
3217  // Test constructor delegation
3218  cxx11test::delegate d1;
3219  cxx11test::delegate d2();
3220  cxx11test::delegate d3(45);
3221}
3222{
3223  // Test override and final
3224  cxx11test::overridden o1(55464);
3225}
3226{
3227  // Test nullptr
3228  char *c = nullptr;
3229}
3230{
3231  // Test template brackets
3232  test_template<::test_template<int>> v(test_template<int>(12));
3233}
3234{
3235  // Unicode literals
3236  char const *utf8 = u8"UTF-8 string \u2500";
3237  char16_t const *utf16 = u"UTF-8 string \u2500";
3238  char32_t const *utf32 = U"UTF-32 string \u2500";
3239}
3240'
3241
3242# Test code for whether the C compiler supports C++11 (complete).
3243ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3244${ac_cxx_conftest_cxx11_globals}
3245
3246int
3247main (int argc, char **argv)
3248{
3249  int ok = 0;
3250  ${ac_cxx_conftest_cxx98_main}
3251  ${ac_cxx_conftest_cxx11_main}
3252  return ok;
3253}
3254"
3255
3256# Test code for whether the C compiler supports C++98 (complete).
3257ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3258int
3259main (int argc, char **argv)
3260{
3261  int ok = 0;
3262  ${ac_cxx_conftest_cxx98_main}
3263  return ok;
3264}
3265"
3266
3267as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3268as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3269as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3270as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3271as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3272as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3273as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3274as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3275as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3276
3277# Auxiliary files required by this configure script.
3278ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
3279
3280# Locations in which to look for auxiliary files.
3281ac_aux_dir_candidates="${srcdir}/build-aux"
3282
3283# Search for a directory containing all of the required auxiliary files,
3284# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3285# If we don't find one directory that contains all the files we need,
3286# we report the set of missing files from the *first* directory in
3287# $ac_aux_dir_candidates and give up.
3288ac_missing_aux_files=""
3289ac_first_candidate=:
3290printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292as_found=false
3293for as_dir in $ac_aux_dir_candidates
3294do
3295  IFS=$as_save_IFS
3296  case $as_dir in #(((
3297    '') as_dir=./ ;;
3298    */) ;;
3299    *) as_dir=$as_dir/ ;;
3300  esac
3301  as_found=:
3302
3303  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3304  ac_aux_dir_found=yes
3305  ac_install_sh=
3306  for ac_aux in $ac_aux_files
3307  do
3308    # As a special case, if "install-sh" is required, that requirement
3309    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3310    # and $ac_install_sh is set appropriately for whichever one is found.
3311    if test x"$ac_aux" = x"install-sh"
3312    then
3313      if test -f "${as_dir}install-sh"; then
3314        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3315        ac_install_sh="${as_dir}install-sh -c"
3316      elif test -f "${as_dir}install.sh"; then
3317        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3318        ac_install_sh="${as_dir}install.sh -c"
3319      elif test -f "${as_dir}shtool"; then
3320        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3321        ac_install_sh="${as_dir}shtool install -c"
3322      else
3323        ac_aux_dir_found=no
3324        if $ac_first_candidate; then
3325          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3326        else
3327          break
3328        fi
3329      fi
3330    else
3331      if test -f "${as_dir}${ac_aux}"; then
3332        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3333      else
3334        ac_aux_dir_found=no
3335        if $ac_first_candidate; then
3336          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3337        else
3338          break
3339        fi
3340      fi
3341    fi
3342  done
3343  if test "$ac_aux_dir_found" = yes; then
3344    ac_aux_dir="$as_dir"
3345    break
3346  fi
3347  ac_first_candidate=false
3348
3349  as_found=false
3350done
3351IFS=$as_save_IFS
3352if $as_found
3353then :
3354
3355else $as_nop
3356  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3357fi
3358
3359
3360# These three variables are undocumented and unsupported,
3361# and are intended to be withdrawn in a future Autoconf release.
3362# They can cause serious problems if a builder's source tree is in a directory
3363# whose full name contains unusual characters.
3364if test -f "${ac_aux_dir}config.guess"; then
3365  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3366fi
3367if test -f "${ac_aux_dir}config.sub"; then
3368  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3369fi
3370if test -f "$ac_aux_dir/configure"; then
3371  ac_configure="$SHELL ${ac_aux_dir}configure"
3372fi
3373
3374# Check that the precious variables saved in the cache have kept the same
3375# value.
3376ac_cache_corrupted=false
3377for ac_var in $ac_precious_vars; do
3378  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3379  eval ac_new_set=\$ac_env_${ac_var}_set
3380  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3381  eval ac_new_val=\$ac_env_${ac_var}_value
3382  case $ac_old_set,$ac_new_set in
3383    set,)
3384      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3385printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3386      ac_cache_corrupted=: ;;
3387    ,set)
3388      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3389printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3390      ac_cache_corrupted=: ;;
3391    ,);;
3392    *)
3393      if test "x$ac_old_val" != "x$ac_new_val"; then
3394	# differences in whitespace do not lead to failure.
3395	ac_old_val_w=`echo x $ac_old_val`
3396	ac_new_val_w=`echo x $ac_new_val`
3397	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3398	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3399printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3400	  ac_cache_corrupted=:
3401	else
3402	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3403printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3404	  eval $ac_var=\$ac_old_val
3405	fi
3406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3407printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3409printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3410      fi;;
3411  esac
3412  # Pass precious variables to config.status.
3413  if test "$ac_new_set" = set; then
3414    case $ac_new_val in
3415    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3416    *) ac_arg=$ac_var=$ac_new_val ;;
3417    esac
3418    case " $ac_configure_args " in
3419      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3420      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3421    esac
3422  fi
3423done
3424if $ac_cache_corrupted; then
3425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3428printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3429  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3430	    and start over" "$LINENO" 5
3431fi
3432## -------------------- ##
3433## Main body of script. ##
3434## -------------------- ##
3435
3436ac_ext=c
3437ac_cpp='$CPP $CPPFLAGS'
3438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
3442
3443
3444
3445
3446am__api_version='1.16'
3447
3448
3449
3450  # Find a good install program.  We prefer a C program (faster),
3451# so one script is as good as another.  But avoid the broken or
3452# incompatible versions:
3453# SysV /etc/install, /usr/sbin/install
3454# SunOS /usr/etc/install
3455# IRIX /sbin/install
3456# AIX /bin/install
3457# AmigaOS /C/install, which installs bootblocks on floppy discs
3458# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3459# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3460# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3461# OS/2's system install, which has a completely different semantic
3462# ./install, which can be erroneously created by make from ./install.sh.
3463# Reject install programs that cannot install multiple files.
3464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3465printf %s "checking for a BSD-compatible install... " >&6; }
3466if test -z "$INSTALL"; then
3467if test ${ac_cv_path_install+y}
3468then :
3469  printf %s "(cached) " >&6
3470else $as_nop
3471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  case $as_dir in #(((
3476    '') as_dir=./ ;;
3477    */) ;;
3478    *) as_dir=$as_dir/ ;;
3479  esac
3480    # Account for fact that we put trailing slashes in our PATH walk.
3481case $as_dir in #((
3482  ./ | /[cC]/* | \
3483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485  /usr/ucb/* ) ;;
3486  *)
3487    # OSF1 and SCO ODT 3.0 have their own names for install.
3488    # Don't use installbsd from OSF since it installs stuff as root
3489    # by default.
3490    for ac_prog in ginstall scoinst install; do
3491      for ac_exec_ext in '' $ac_executable_extensions; do
3492	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3493	  if test $ac_prog = install &&
3494	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495	    # AIX install.  It has an incompatible calling convention.
3496	    :
3497	  elif test $ac_prog = install &&
3498	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3499	    # program-specific install script used by HP pwplus--don't use.
3500	    :
3501	  else
3502	    rm -rf conftest.one conftest.two conftest.dir
3503	    echo one > conftest.one
3504	    echo two > conftest.two
3505	    mkdir conftest.dir
3506	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3507	      test -s conftest.one && test -s conftest.two &&
3508	      test -s conftest.dir/conftest.one &&
3509	      test -s conftest.dir/conftest.two
3510	    then
3511	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3512	      break 3
3513	    fi
3514	  fi
3515	fi
3516      done
3517    done
3518    ;;
3519esac
3520
3521  done
3522IFS=$as_save_IFS
3523
3524rm -rf conftest.one conftest.two conftest.dir
3525
3526fi
3527  if test ${ac_cv_path_install+y}; then
3528    INSTALL=$ac_cv_path_install
3529  else
3530    # As a last resort, use the slow shell script.  Don't cache a
3531    # value for INSTALL within a source directory, because that will
3532    # break other packages using the cache if that directory is
3533    # removed, or if the value is a relative name.
3534    INSTALL=$ac_install_sh
3535  fi
3536fi
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3538printf "%s\n" "$INSTALL" >&6; }
3539
3540# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3541# It thinks the first close brace ends the variable substitution.
3542test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3543
3544test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3545
3546test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3547
3548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3549printf %s "checking whether build environment is sane... " >&6; }
3550# Reject unsafe characters in $srcdir or the absolute working directory
3551# name.  Accept space and tab only in the latter.
3552am_lf='
3553'
3554case `pwd` in
3555  *[\\\"\#\$\&\'\`$am_lf]*)
3556    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3557esac
3558case $srcdir in
3559  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3560    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3561esac
3562
3563# Do 'set' in a subshell so we don't clobber the current shell's
3564# arguments.  Must try -L first in case configure is actually a
3565# symlink; some systems play weird games with the mod time of symlinks
3566# (eg FreeBSD returns the mod time of the symlink's containing
3567# directory).
3568if (
3569   am_has_slept=no
3570   for am_try in 1 2; do
3571     echo "timestamp, slept: $am_has_slept" > conftest.file
3572     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3573     if test "$*" = "X"; then
3574	# -L didn't work.
3575	set X `ls -t "$srcdir/configure" conftest.file`
3576     fi
3577     if test "$*" != "X $srcdir/configure conftest.file" \
3578	&& test "$*" != "X conftest.file $srcdir/configure"; then
3579
3580	# If neither matched, then we have a broken ls.  This can happen
3581	# if, for instance, CONFIG_SHELL is bash and it inherits a
3582	# broken ls alias from the environment.  This has actually
3583	# happened.  Such a system could not be considered "sane".
3584	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3585  alias in your environment" "$LINENO" 5
3586     fi
3587     if test "$2" = conftest.file || test $am_try -eq 2; then
3588       break
3589     fi
3590     # Just in case.
3591     sleep 1
3592     am_has_slept=yes
3593   done
3594   test "$2" = conftest.file
3595   )
3596then
3597   # Ok.
3598   :
3599else
3600   as_fn_error $? "newly created file is older than distributed files!
3601Check your system clock" "$LINENO" 5
3602fi
3603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3604printf "%s\n" "yes" >&6; }
3605# If we didn't sleep, we still need to ensure time stamps of config.status and
3606# generated files are strictly newer.
3607am_sleep_pid=
3608if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3609  ( sleep 1 ) &
3610  am_sleep_pid=$!
3611fi
3612
3613rm -f conftest.file
3614
3615test "$program_prefix" != NONE &&
3616  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3617# Use a double $ so make ignores it.
3618test "$program_suffix" != NONE &&
3619  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3620# Double any \ or $.
3621# By default was `s,x,x', remove it if useless.
3622ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3623program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3624
3625
3626# Expand $ac_aux_dir to an absolute path.
3627am_aux_dir=`cd "$ac_aux_dir" && pwd`
3628
3629
3630  if test x"${MISSING+set}" != xset; then
3631  MISSING="\${SHELL} '$am_aux_dir/missing'"
3632fi
3633# Use eval to expand $SHELL
3634if eval "$MISSING --is-lightweight"; then
3635  am_missing_run="$MISSING "
3636else
3637  am_missing_run=
3638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3639printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3640fi
3641
3642if test x"${install_sh+set}" != xset; then
3643  case $am_aux_dir in
3644  *\ * | *\	*)
3645    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3646  *)
3647    install_sh="\${SHELL} $am_aux_dir/install-sh"
3648  esac
3649fi
3650
3651# Installed binaries are usually stripped using 'strip' when the user
3652# run "make install-strip".  However 'strip' might not be the right
3653# tool to use in cross-compilation environments, therefore Automake
3654# will honor the 'STRIP' environment variable to overrule this program.
3655if test "$cross_compiling" != no; then
3656  if test -n "$ac_tool_prefix"; then
3657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}strip; ac_word=$2
3659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660printf %s "checking for $ac_word... " >&6; }
3661if test ${ac_cv_prog_STRIP+y}
3662then :
3663  printf %s "(cached) " >&6
3664else $as_nop
3665  if test -n "$STRIP"; then
3666  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  case $as_dir in #(((
3673    '') as_dir=./ ;;
3674    */) ;;
3675    *) as_dir=$as_dir/ ;;
3676  esac
3677    for ac_exec_ext in '' $ac_executable_extensions; do
3678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687fi
3688fi
3689STRIP=$ac_cv_prog_STRIP
3690if test -n "$STRIP"; then
3691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3692printf "%s\n" "$STRIP" >&6; }
3693else
3694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695printf "%s\n" "no" >&6; }
3696fi
3697
3698
3699fi
3700if test -z "$ac_cv_prog_STRIP"; then
3701  ac_ct_STRIP=$STRIP
3702  # Extract the first word of "strip", so it can be a program name with args.
3703set dummy strip; ac_word=$2
3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705printf %s "checking for $ac_word... " >&6; }
3706if test ${ac_cv_prog_ac_ct_STRIP+y}
3707then :
3708  printf %s "(cached) " >&6
3709else $as_nop
3710  if test -n "$ac_ct_STRIP"; then
3711  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3712else
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716  IFS=$as_save_IFS
3717  case $as_dir in #(((
3718    '') as_dir=./ ;;
3719    */) ;;
3720    *) as_dir=$as_dir/ ;;
3721  esac
3722    for ac_exec_ext in '' $ac_executable_extensions; do
3723  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3724    ac_cv_prog_ac_ct_STRIP="strip"
3725    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3726    break 2
3727  fi
3728done
3729  done
3730IFS=$as_save_IFS
3731
3732fi
3733fi
3734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3735if test -n "$ac_ct_STRIP"; then
3736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3737printf "%s\n" "$ac_ct_STRIP" >&6; }
3738else
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740printf "%s\n" "no" >&6; }
3741fi
3742
3743  if test "x$ac_ct_STRIP" = x; then
3744    STRIP=":"
3745  else
3746    case $cross_compiling:$ac_tool_warned in
3747yes:)
3748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750ac_tool_warned=yes ;;
3751esac
3752    STRIP=$ac_ct_STRIP
3753  fi
3754else
3755  STRIP="$ac_cv_prog_STRIP"
3756fi
3757
3758fi
3759INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3760
3761
3762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3763printf %s "checking for a race-free mkdir -p... " >&6; }
3764if test -z "$MKDIR_P"; then
3765  if test ${ac_cv_path_mkdir+y}
3766then :
3767  printf %s "(cached) " >&6
3768else $as_nop
3769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3771do
3772  IFS=$as_save_IFS
3773  case $as_dir in #(((
3774    '') as_dir=./ ;;
3775    */) ;;
3776    *) as_dir=$as_dir/ ;;
3777  esac
3778    for ac_prog in mkdir gmkdir; do
3779	 for ac_exec_ext in '' $ac_executable_extensions; do
3780	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3781	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3782	     'mkdir ('*'coreutils) '* | \
3783	     'BusyBox '* | \
3784	     'mkdir (fileutils) '4.1*)
3785	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3786	       break 3;;
3787	   esac
3788	 done
3789       done
3790  done
3791IFS=$as_save_IFS
3792
3793fi
3794
3795  test -d ./--version && rmdir ./--version
3796  if test ${ac_cv_path_mkdir+y}; then
3797    MKDIR_P="$ac_cv_path_mkdir -p"
3798  else
3799    # As a last resort, use the slow shell script.  Don't cache a
3800    # value for MKDIR_P within a source directory, because that will
3801    # break other packages using the cache if that directory is
3802    # removed, or if the value is a relative name.
3803    MKDIR_P="$ac_install_sh -d"
3804  fi
3805fi
3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3807printf "%s\n" "$MKDIR_P" >&6; }
3808
3809for ac_prog in gawk mawk nawk awk
3810do
3811  # Extract the first word of "$ac_prog", so it can be a program name with args.
3812set dummy $ac_prog; ac_word=$2
3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814printf %s "checking for $ac_word... " >&6; }
3815if test ${ac_cv_prog_AWK+y}
3816then :
3817  printf %s "(cached) " >&6
3818else $as_nop
3819  if test -n "$AWK"; then
3820  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825  IFS=$as_save_IFS
3826  case $as_dir in #(((
3827    '') as_dir=./ ;;
3828    */) ;;
3829    *) as_dir=$as_dir/ ;;
3830  esac
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_AWK="$ac_prog"
3834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843AWK=$ac_cv_prog_AWK
3844if test -n "$AWK"; then
3845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3846printf "%s\n" "$AWK" >&6; }
3847else
3848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849printf "%s\n" "no" >&6; }
3850fi
3851
3852
3853  test -n "$AWK" && break
3854done
3855
3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3857printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3858set x ${MAKE-make}
3859ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3860if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3861then :
3862  printf %s "(cached) " >&6
3863else $as_nop
3864  cat >conftest.make <<\_ACEOF
3865SHELL = /bin/sh
3866all:
3867	@echo '@@@%%%=$(MAKE)=@@@%%%'
3868_ACEOF
3869# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3870case `${MAKE-make} -f conftest.make 2>/dev/null` in
3871  *@@@%%%=?*=@@@%%%*)
3872    eval ac_cv_prog_make_${ac_make}_set=yes;;
3873  *)
3874    eval ac_cv_prog_make_${ac_make}_set=no;;
3875esac
3876rm -f conftest.make
3877fi
3878if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3880printf "%s\n" "yes" >&6; }
3881  SET_MAKE=
3882else
3883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884printf "%s\n" "no" >&6; }
3885  SET_MAKE="MAKE=${MAKE-make}"
3886fi
3887
3888rm -rf .tst 2>/dev/null
3889mkdir .tst 2>/dev/null
3890if test -d .tst; then
3891  am__leading_dot=.
3892else
3893  am__leading_dot=_
3894fi
3895rmdir .tst 2>/dev/null
3896
3897# Check whether --enable-silent-rules was given.
3898if test ${enable_silent_rules+y}
3899then :
3900  enableval=$enable_silent_rules;
3901fi
3902
3903case $enable_silent_rules in # (((
3904  yes) AM_DEFAULT_VERBOSITY=0;;
3905   no) AM_DEFAULT_VERBOSITY=1;;
3906    *) AM_DEFAULT_VERBOSITY=1;;
3907esac
3908am_make=${MAKE-make}
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3910printf %s "checking whether $am_make supports nested variables... " >&6; }
3911if test ${am_cv_make_support_nested_variables+y}
3912then :
3913  printf %s "(cached) " >&6
3914else $as_nop
3915  if printf "%s\n" 'TRUE=$(BAR$(V))
3916BAR0=false
3917BAR1=true
3918V=1
3919am__doit:
3920	@$(TRUE)
3921.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3922  am_cv_make_support_nested_variables=yes
3923else
3924  am_cv_make_support_nested_variables=no
3925fi
3926fi
3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3928printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3929if test $am_cv_make_support_nested_variables = yes; then
3930    AM_V='$(V)'
3931  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3932else
3933  AM_V=$AM_DEFAULT_VERBOSITY
3934  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3935fi
3936AM_BACKSLASH='\'
3937
3938if test "`cd $srcdir && pwd`" != "`pwd`"; then
3939  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3940  # is not polluted with repeated "-I."
3941  am__isrc=' -I$(srcdir)'
3942  # test to see if srcdir already configured
3943  if test -f $srcdir/config.status; then
3944    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3945  fi
3946fi
3947
3948# test whether we have cygpath
3949if test -z "$CYGPATH_W"; then
3950  if (cygpath --version) >/dev/null 2>/dev/null; then
3951    CYGPATH_W='cygpath -w'
3952  else
3953    CYGPATH_W=echo
3954  fi
3955fi
3956
3957
3958# Define the identity of the package.
3959 PACKAGE='shibboleth-sp'
3960 VERSION='3.3.0'
3961
3962
3963printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3964
3965
3966printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3967
3968# Some tools Automake needs.
3969
3970ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3971
3972
3973AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3974
3975
3976AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3977
3978
3979AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3980
3981
3982MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3983
3984# For better backward compatibility.  To be removed once Automake 1.9.x
3985# dies out for good.  For more background, see:
3986# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3987# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3988mkdir_p='$(MKDIR_P)'
3989
3990# We need awk for the "check" target (and possibly the TAP driver).  The
3991# system "awk" is bad on some platforms.
3992# Always define AMTAR for backward compatibility.  Yes, it's still used
3993# in the wild :-(  We should find a proper way to deprecate it ...
3994AMTAR='$${TAR-tar}'
3995
3996
3997# We'll loop over all known methods to create a tar archive until one works.
3998_am_tools='gnutar  pax cpio none'
3999
4000am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4001
4002
4003
4004
4005
4006# Variables for tags utilities; see am/tags.am
4007if test -z "$CTAGS"; then
4008  CTAGS=ctags
4009fi
4010
4011if test -z "$ETAGS"; then
4012  ETAGS=etags
4013fi
4014
4015if test -z "$CSCOPE"; then
4016  CSCOPE=cscope
4017fi
4018
4019
4020
4021# POSIX will say in a future version that running "rm -f" with no argument
4022# is OK; and we want to be able to make that assumption in our Makefile
4023# recipes.  So use an aggressive probe to check that the usage we want is
4024# actually supported "in the wild" to an acceptable degree.
4025# See automake bug#10828.
4026# To make any issue more visible, cause the running configure to be aborted
4027# by default if the 'rm' program in use doesn't match our expectations; the
4028# user can still override this though.
4029if rm -f && rm -fr && rm -rf; then : OK; else
4030  cat >&2 <<'END'
4031Oops!
4032
4033Your 'rm' program seems unable to run without file operands specified
4034on the command line, even when the '-f' option is present.  This is contrary
4035to the behaviour of most rm programs out there, and not conforming with
4036the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4037
4038Please tell bug-automake@gnu.org about your system, including the value
4039of your $PATH and any error possibly output before this message.  This
4040can help us improve future automake versions.
4041
4042END
4043  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4044    echo 'Configuration will proceed anyway, since you have set the' >&2
4045    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4046    echo >&2
4047  else
4048    cat >&2 <<'END'
4049Aborting the configuration process, to ensure you take notice of the issue.
4050
4051You can download and install GNU coreutils to get an 'rm' implementation
4052that behaves properly: <https://www.gnu.org/software/coreutils/>.
4053
4054If you want to complete the configuration process using your problematic
4055'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4056to "yes", and re-run configure.
4057
4058END
4059    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4060  fi
4061fi
4062
4063
4064
4065
4066# Check whether --with-pkgconfigdir was given.
4067if test ${with_pkgconfigdir+y}
4068then :
4069  withval=$with_pkgconfigdir;
4070else $as_nop
4071  with_pkgconfigdir='${libdir}/pkgconfig'
4072fi
4073
4074pkgconfigdir=$with_pkgconfigdir
4075
4076
4077
4078
4079
4080# Docygen features
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092# Files:
4093DX_PROJECT=shibboleth
4094
4095DX_CONFIG=doxygen.cfg
4096
4097DX_DOCDIR=doc/api
4098
4099
4100# Environment variables used inside doxygen.cfg:
4101DX_ENV="$DX_ENV SRCDIR='$srcdir'"
4102
4103DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
4104
4105DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
4106
4107DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
4108
4109
4110# Doxygen itself:
4111
4112
4113
4114    # Check whether --enable-doxygen-doc was given.
4115if test ${enable_doxygen_doc+y}
4116then :
4117  enableval=$enable_doxygen_doc;
4118case "$enableval" in
4119#(
4120y|Y|yes|Yes|YES)
4121    DX_FLAG_doc=1
4122
4123
4124;; #(
4125n|N|no|No|NO)
4126    DX_FLAG_doc=0
4127
4128;; #(
4129*)
4130    as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
4131;;
4132esac
4133
4134else $as_nop
4135
4136DX_FLAG_doc=1
4137
4138
4139
4140fi
4141
4142if test "$DX_FLAG_doc" = 1; then
4143
4144if test -n "$ac_tool_prefix"; then
4145  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
4146set dummy ${ac_tool_prefix}doxygen; ac_word=$2
4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148printf %s "checking for $ac_word... " >&6; }
4149if test ${ac_cv_path_DX_DOXYGEN+y}
4150then :
4151  printf %s "(cached) " >&6
4152else $as_nop
4153  case $DX_DOXYGEN in
4154  [\\/]* | ?:[\\/]*)
4155  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
4156  ;;
4157  *)
4158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161  IFS=$as_save_IFS
4162  case $as_dir in #(((
4163    '') as_dir=./ ;;
4164    */) ;;
4165    *) as_dir=$as_dir/ ;;
4166  esac
4167    for ac_exec_ext in '' $ac_executable_extensions; do
4168  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4169    ac_cv_path_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
4170    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4171    break 2
4172  fi
4173done
4174  done
4175IFS=$as_save_IFS
4176
4177  ;;
4178esac
4179fi
4180DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
4181if test -n "$DX_DOXYGEN"; then
4182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
4183printf "%s\n" "$DX_DOXYGEN" >&6; }
4184else
4185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186printf "%s\n" "no" >&6; }
4187fi
4188
4189
4190fi
4191if test -z "$ac_cv_path_DX_DOXYGEN"; then
4192  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
4193  # Extract the first word of "doxygen", so it can be a program name with args.
4194set dummy doxygen; ac_word=$2
4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196printf %s "checking for $ac_word... " >&6; }
4197if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y}
4198then :
4199  printf %s "(cached) " >&6
4200else $as_nop
4201  case $ac_pt_DX_DOXYGEN in
4202  [\\/]* | ?:[\\/]*)
4203  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
4204  ;;
4205  *)
4206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  case $as_dir in #(((
4211    '') as_dir=./ ;;
4212    */) ;;
4213    *) as_dir=$as_dir/ ;;
4214  esac
4215    for ac_exec_ext in '' $ac_executable_extensions; do
4216  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4217    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
4218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4219    break 2
4220  fi
4221done
4222  done
4223IFS=$as_save_IFS
4224
4225  ;;
4226esac
4227fi
4228ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
4229if test -n "$ac_pt_DX_DOXYGEN"; then
4230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
4231printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; }
4232else
4233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234printf "%s\n" "no" >&6; }
4235fi
4236
4237  if test "x$ac_pt_DX_DOXYGEN" = x; then
4238    DX_DOXYGEN=""
4239  else
4240    case $cross_compiling:$ac_tool_warned in
4241yes:)
4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244ac_tool_warned=yes ;;
4245esac
4246    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
4247  fi
4248else
4249  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
4250fi
4251
4252if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
4253    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
4254printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
4255    DX_FLAG_doc=0
4256
4257fi
4258
4259
4260if test -n "$ac_tool_prefix"; then
4261  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
4262set dummy ${ac_tool_prefix}perl; ac_word=$2
4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264printf %s "checking for $ac_word... " >&6; }
4265if test ${ac_cv_path_DX_PERL+y}
4266then :
4267  printf %s "(cached) " >&6
4268else $as_nop
4269  case $DX_PERL in
4270  [\\/]* | ?:[\\/]*)
4271  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
4272  ;;
4273  *)
4274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  case $as_dir in #(((
4279    '') as_dir=./ ;;
4280    */) ;;
4281    *) as_dir=$as_dir/ ;;
4282  esac
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4285    ac_cv_path_DX_PERL="$as_dir$ac_word$ac_exec_ext"
4286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4287    break 2
4288  fi
4289done
4290  done
4291IFS=$as_save_IFS
4292
4293  ;;
4294esac
4295fi
4296DX_PERL=$ac_cv_path_DX_PERL
4297if test -n "$DX_PERL"; then
4298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
4299printf "%s\n" "$DX_PERL" >&6; }
4300else
4301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302printf "%s\n" "no" >&6; }
4303fi
4304
4305
4306fi
4307if test -z "$ac_cv_path_DX_PERL"; then
4308  ac_pt_DX_PERL=$DX_PERL
4309  # Extract the first word of "perl", so it can be a program name with args.
4310set dummy perl; ac_word=$2
4311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312printf %s "checking for $ac_word... " >&6; }
4313if test ${ac_cv_path_ac_pt_DX_PERL+y}
4314then :
4315  printf %s "(cached) " >&6
4316else $as_nop
4317  case $ac_pt_DX_PERL in
4318  [\\/]* | ?:[\\/]*)
4319  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
4320  ;;
4321  *)
4322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325  IFS=$as_save_IFS
4326  case $as_dir in #(((
4327    '') as_dir=./ ;;
4328    */) ;;
4329    *) as_dir=$as_dir/ ;;
4330  esac
4331    for ac_exec_ext in '' $ac_executable_extensions; do
4332  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4333    ac_cv_path_ac_pt_DX_PERL="$as_dir$ac_word$ac_exec_ext"
4334    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4335    break 2
4336  fi
4337done
4338  done
4339IFS=$as_save_IFS
4340
4341  ;;
4342esac
4343fi
4344ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
4345if test -n "$ac_pt_DX_PERL"; then
4346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
4347printf "%s\n" "$ac_pt_DX_PERL" >&6; }
4348else
4349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350printf "%s\n" "no" >&6; }
4351fi
4352
4353  if test "x$ac_pt_DX_PERL" = x; then
4354    DX_PERL=""
4355  else
4356    case $cross_compiling:$ac_tool_warned in
4357yes:)
4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4359printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4360ac_tool_warned=yes ;;
4361esac
4362    DX_PERL=$ac_pt_DX_PERL
4363  fi
4364else
4365  DX_PERL="$ac_cv_path_DX_PERL"
4366fi
4367
4368if test "$DX_FLAG_doc$DX_PERL" = 1; then
4369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
4370printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
4371    DX_FLAG_doc=0
4372
4373fi
4374
4375    :
4376fi
4377if test "$DX_FLAG_doc" = 1; then
4378     if :; then
4379  DX_COND_doc_TRUE=
4380  DX_COND_doc_FALSE='#'
4381else
4382  DX_COND_doc_TRUE='#'
4383  DX_COND_doc_FALSE=
4384fi
4385
4386    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
4387
4388    :
4389else
4390     if false; then
4391  DX_COND_doc_TRUE=
4392  DX_COND_doc_FALSE='#'
4393else
4394  DX_COND_doc_TRUE='#'
4395  DX_COND_doc_FALSE=
4396fi
4397
4398
4399    :
4400fi
4401
4402
4403# Dot for graphics:
4404
4405
4406
4407    # Check whether --enable-doxygen-dot was given.
4408if test ${enable_doxygen_dot+y}
4409then :
4410  enableval=$enable_doxygen_dot;
4411case "$enableval" in
4412#(
4413y|Y|yes|Yes|YES)
4414    DX_FLAG_dot=1
4415
4416
4417test "$DX_FLAG_doc" = "1" \
4418|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
4419
4420;; #(
4421n|N|no|No|NO)
4422    DX_FLAG_dot=0
4423
4424;; #(
4425*)
4426    as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
4427;;
4428esac
4429
4430else $as_nop
4431
4432DX_FLAG_dot=1
4433
4434
4435test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
4436
4437
4438
4439fi
4440
4441if test "$DX_FLAG_dot" = 1; then
4442
4443if test -n "$ac_tool_prefix"; then
4444  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
4445set dummy ${ac_tool_prefix}dot; ac_word=$2
4446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447printf %s "checking for $ac_word... " >&6; }
4448if test ${ac_cv_path_DX_DOT+y}
4449then :
4450  printf %s "(cached) " >&6
4451else $as_nop
4452  case $DX_DOT in
4453  [\\/]* | ?:[\\/]*)
4454  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
4455  ;;
4456  *)
4457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  case $as_dir in #(((
4462    '') as_dir=./ ;;
4463    */) ;;
4464    *) as_dir=$as_dir/ ;;
4465  esac
4466    for ac_exec_ext in '' $ac_executable_extensions; do
4467  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4468    ac_cv_path_DX_DOT="$as_dir$ac_word$ac_exec_ext"
4469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473  done
4474IFS=$as_save_IFS
4475
4476  ;;
4477esac
4478fi
4479DX_DOT=$ac_cv_path_DX_DOT
4480if test -n "$DX_DOT"; then
4481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
4482printf "%s\n" "$DX_DOT" >&6; }
4483else
4484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485printf "%s\n" "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_path_DX_DOT"; then
4491  ac_pt_DX_DOT=$DX_DOT
4492  # Extract the first word of "dot", so it can be a program name with args.
4493set dummy dot; ac_word=$2
4494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495printf %s "checking for $ac_word... " >&6; }
4496if test ${ac_cv_path_ac_pt_DX_DOT+y}
4497then :
4498  printf %s "(cached) " >&6
4499else $as_nop
4500  case $ac_pt_DX_DOT in
4501  [\\/]* | ?:[\\/]*)
4502  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
4503  ;;
4504  *)
4505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508  IFS=$as_save_IFS
4509  case $as_dir in #(((
4510    '') as_dir=./ ;;
4511    */) ;;
4512    *) as_dir=$as_dir/ ;;
4513  esac
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4516    ac_cv_path_ac_pt_DX_DOT="$as_dir$ac_word$ac_exec_ext"
4517    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4518    break 2
4519  fi
4520done
4521  done
4522IFS=$as_save_IFS
4523
4524  ;;
4525esac
4526fi
4527ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
4528if test -n "$ac_pt_DX_DOT"; then
4529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
4530printf "%s\n" "$ac_pt_DX_DOT" >&6; }
4531else
4532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533printf "%s\n" "no" >&6; }
4534fi
4535
4536  if test "x$ac_pt_DX_DOT" = x; then
4537    DX_DOT=""
4538  else
4539    case $cross_compiling:$ac_tool_warned in
4540yes:)
4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543ac_tool_warned=yes ;;
4544esac
4545    DX_DOT=$ac_pt_DX_DOT
4546  fi
4547else
4548  DX_DOT="$ac_cv_path_DX_DOT"
4549fi
4550
4551if test "$DX_FLAG_dot$DX_DOT" = 1; then
4552    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
4553printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
4554    DX_FLAG_dot=0
4555
4556fi
4557
4558    :
4559fi
4560if test "$DX_FLAG_dot" = 1; then
4561     if :; then
4562  DX_COND_dot_TRUE=
4563  DX_COND_dot_FALSE='#'
4564else
4565  DX_COND_dot_TRUE='#'
4566  DX_COND_dot_FALSE=
4567fi
4568
4569    DX_ENV="$DX_ENV HAVE_DOT='YES'"
4570
4571             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
4572
4573    :
4574else
4575     if false; then
4576  DX_COND_dot_TRUE=
4577  DX_COND_dot_FALSE='#'
4578else
4579  DX_COND_dot_TRUE='#'
4580  DX_COND_dot_FALSE=
4581fi
4582
4583    DX_ENV="$DX_ENV HAVE_DOT='NO'"
4584
4585    :
4586fi
4587
4588
4589# Man pages generation:
4590
4591
4592
4593    # Check whether --enable-doxygen-man was given.
4594if test ${enable_doxygen_man+y}
4595then :
4596  enableval=$enable_doxygen_man;
4597case "$enableval" in
4598#(
4599y|Y|yes|Yes|YES)
4600    DX_FLAG_man=1
4601
4602
4603test "$DX_FLAG_doc" = "1" \
4604|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
4605
4606;; #(
4607n|N|no|No|NO)
4608    DX_FLAG_man=0
4609
4610;; #(
4611*)
4612    as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
4613;;
4614esac
4615
4616else $as_nop
4617
4618DX_FLAG_man=0
4619
4620
4621test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
4622
4623
4624
4625fi
4626
4627if test "$DX_FLAG_man" = 1; then
4628
4629    :
4630fi
4631if test "$DX_FLAG_man" = 1; then
4632     if :; then
4633  DX_COND_man_TRUE=
4634  DX_COND_man_FALSE='#'
4635else
4636  DX_COND_man_TRUE='#'
4637  DX_COND_man_FALSE=
4638fi
4639
4640    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
4641
4642    :
4643else
4644     if false; then
4645  DX_COND_man_TRUE=
4646  DX_COND_man_FALSE='#'
4647else
4648  DX_COND_man_TRUE='#'
4649  DX_COND_man_FALSE=
4650fi
4651
4652    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
4653
4654    :
4655fi
4656
4657
4658# RTF file generation:
4659
4660
4661
4662    # Check whether --enable-doxygen-rtf was given.
4663if test ${enable_doxygen_rtf+y}
4664then :
4665  enableval=$enable_doxygen_rtf;
4666case "$enableval" in
4667#(
4668y|Y|yes|Yes|YES)
4669    DX_FLAG_rtf=1
4670
4671
4672test "$DX_FLAG_doc" = "1" \
4673|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
4674
4675;; #(
4676n|N|no|No|NO)
4677    DX_FLAG_rtf=0
4678
4679;; #(
4680*)
4681    as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
4682;;
4683esac
4684
4685else $as_nop
4686
4687DX_FLAG_rtf=0
4688
4689
4690test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
4691
4692
4693
4694fi
4695
4696if test "$DX_FLAG_rtf" = 1; then
4697
4698    :
4699fi
4700if test "$DX_FLAG_rtf" = 1; then
4701     if :; then
4702  DX_COND_rtf_TRUE=
4703  DX_COND_rtf_FALSE='#'
4704else
4705  DX_COND_rtf_TRUE='#'
4706  DX_COND_rtf_FALSE=
4707fi
4708
4709    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
4710
4711    :
4712else
4713     if false; then
4714  DX_COND_rtf_TRUE=
4715  DX_COND_rtf_FALSE='#'
4716else
4717  DX_COND_rtf_TRUE='#'
4718  DX_COND_rtf_FALSE=
4719fi
4720
4721    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
4722
4723    :
4724fi
4725
4726
4727# XML file generation:
4728
4729
4730
4731    # Check whether --enable-doxygen-xml was given.
4732if test ${enable_doxygen_xml+y}
4733then :
4734  enableval=$enable_doxygen_xml;
4735case "$enableval" in
4736#(
4737y|Y|yes|Yes|YES)
4738    DX_FLAG_xml=1
4739
4740
4741test "$DX_FLAG_doc" = "1" \
4742|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
4743
4744;; #(
4745n|N|no|No|NO)
4746    DX_FLAG_xml=0
4747
4748;; #(
4749*)
4750    as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
4751;;
4752esac
4753
4754else $as_nop
4755
4756DX_FLAG_xml=0
4757
4758
4759test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
4760
4761
4762
4763fi
4764
4765if test "$DX_FLAG_xml" = 1; then
4766
4767    :
4768fi
4769if test "$DX_FLAG_xml" = 1; then
4770     if :; then
4771  DX_COND_xml_TRUE=
4772  DX_COND_xml_FALSE='#'
4773else
4774  DX_COND_xml_TRUE='#'
4775  DX_COND_xml_FALSE=
4776fi
4777
4778    DX_ENV="$DX_ENV GENERATE_XML='YES'"
4779
4780    :
4781else
4782     if false; then
4783  DX_COND_xml_TRUE=
4784  DX_COND_xml_FALSE='#'
4785else
4786  DX_COND_xml_TRUE='#'
4787  DX_COND_xml_FALSE=
4788fi
4789
4790    DX_ENV="$DX_ENV GENERATE_XML='NO'"
4791
4792    :
4793fi
4794
4795
4796# (Compressed) HTML help generation:
4797
4798
4799
4800    # Check whether --enable-doxygen-chm was given.
4801if test ${enable_doxygen_chm+y}
4802then :
4803  enableval=$enable_doxygen_chm;
4804case "$enableval" in
4805#(
4806y|Y|yes|Yes|YES)
4807    DX_FLAG_chm=1
4808
4809
4810test "$DX_FLAG_doc" = "1" \
4811|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
4812
4813;; #(
4814n|N|no|No|NO)
4815    DX_FLAG_chm=0
4816
4817;; #(
4818*)
4819    as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
4820;;
4821esac
4822
4823else $as_nop
4824
4825DX_FLAG_chm=0
4826
4827
4828test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
4829
4830
4831
4832fi
4833
4834if test "$DX_FLAG_chm" = 1; then
4835
4836if test -n "$ac_tool_prefix"; then
4837  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
4838set dummy ${ac_tool_prefix}hhc; ac_word=$2
4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840printf %s "checking for $ac_word... " >&6; }
4841if test ${ac_cv_path_DX_HHC+y}
4842then :
4843  printf %s "(cached) " >&6
4844else $as_nop
4845  case $DX_HHC in
4846  [\\/]* | ?:[\\/]*)
4847  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
4848  ;;
4849  *)
4850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853  IFS=$as_save_IFS
4854  case $as_dir in #(((
4855    '') as_dir=./ ;;
4856    */) ;;
4857    *) as_dir=$as_dir/ ;;
4858  esac
4859    for ac_exec_ext in '' $ac_executable_extensions; do
4860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4861    ac_cv_path_DX_HHC="$as_dir$ac_word$ac_exec_ext"
4862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4863    break 2
4864  fi
4865done
4866  done
4867IFS=$as_save_IFS
4868
4869  ;;
4870esac
4871fi
4872DX_HHC=$ac_cv_path_DX_HHC
4873if test -n "$DX_HHC"; then
4874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
4875printf "%s\n" "$DX_HHC" >&6; }
4876else
4877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878printf "%s\n" "no" >&6; }
4879fi
4880
4881
4882fi
4883if test -z "$ac_cv_path_DX_HHC"; then
4884  ac_pt_DX_HHC=$DX_HHC
4885  # Extract the first word of "hhc", so it can be a program name with args.
4886set dummy hhc; ac_word=$2
4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888printf %s "checking for $ac_word... " >&6; }
4889if test ${ac_cv_path_ac_pt_DX_HHC+y}
4890then :
4891  printf %s "(cached) " >&6
4892else $as_nop
4893  case $ac_pt_DX_HHC in
4894  [\\/]* | ?:[\\/]*)
4895  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
4896  ;;
4897  *)
4898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  case $as_dir in #(((
4903    '') as_dir=./ ;;
4904    */) ;;
4905    *) as_dir=$as_dir/ ;;
4906  esac
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4909    ac_cv_path_ac_pt_DX_HHC="$as_dir$ac_word$ac_exec_ext"
4910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914  done
4915IFS=$as_save_IFS
4916
4917  ;;
4918esac
4919fi
4920ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
4921if test -n "$ac_pt_DX_HHC"; then
4922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
4923printf "%s\n" "$ac_pt_DX_HHC" >&6; }
4924else
4925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926printf "%s\n" "no" >&6; }
4927fi
4928
4929  if test "x$ac_pt_DX_HHC" = x; then
4930    DX_HHC=""
4931  else
4932    case $cross_compiling:$ac_tool_warned in
4933yes:)
4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4936ac_tool_warned=yes ;;
4937esac
4938    DX_HHC=$ac_pt_DX_HHC
4939  fi
4940else
4941  DX_HHC="$ac_cv_path_DX_HHC"
4942fi
4943
4944if test "$DX_FLAG_chm$DX_HHC" = 1; then
4945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
4946printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
4947    DX_FLAG_chm=0
4948
4949fi
4950
4951    :
4952fi
4953if test "$DX_FLAG_chm" = 1; then
4954     if :; then
4955  DX_COND_chm_TRUE=
4956  DX_COND_chm_FALSE='#'
4957else
4958  DX_COND_chm_TRUE='#'
4959  DX_COND_chm_FALSE=
4960fi
4961
4962    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
4963
4964             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
4965
4966             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
4967
4968    :
4969else
4970     if false; then
4971  DX_COND_chm_TRUE=
4972  DX_COND_chm_FALSE='#'
4973else
4974  DX_COND_chm_TRUE='#'
4975  DX_COND_chm_FALSE=
4976fi
4977
4978    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
4979
4980    :
4981fi
4982
4983
4984# Seperate CHI file generation.
4985
4986
4987
4988    # Check whether --enable-doxygen-chi was given.
4989if test ${enable_doxygen_chi+y}
4990then :
4991  enableval=$enable_doxygen_chi;
4992case "$enableval" in
4993#(
4994y|Y|yes|Yes|YES)
4995    DX_FLAG_chi=1
4996
4997
4998test "$DX_FLAG_chm" = "1" \
4999|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
5000
5001;; #(
5002n|N|no|No|NO)
5003    DX_FLAG_chi=0
5004
5005;; #(
5006*)
5007    as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
5008;;
5009esac
5010
5011else $as_nop
5012
5013DX_FLAG_chi=0
5014
5015
5016test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
5017
5018
5019
5020fi
5021
5022if test "$DX_FLAG_chi" = 1; then
5023
5024    :
5025fi
5026if test "$DX_FLAG_chi" = 1; then
5027     if :; then
5028  DX_COND_chi_TRUE=
5029  DX_COND_chi_FALSE='#'
5030else
5031  DX_COND_chi_TRUE='#'
5032  DX_COND_chi_FALSE=
5033fi
5034
5035    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
5036
5037    :
5038else
5039     if false; then
5040  DX_COND_chi_TRUE=
5041  DX_COND_chi_FALSE='#'
5042else
5043  DX_COND_chi_TRUE='#'
5044  DX_COND_chi_FALSE=
5045fi
5046
5047    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
5048
5049    :
5050fi
5051
5052
5053# Plain HTML pages generation:
5054
5055
5056
5057    # Check whether --enable-doxygen-html was given.
5058if test ${enable_doxygen_html+y}
5059then :
5060  enableval=$enable_doxygen_html;
5061case "$enableval" in
5062#(
5063y|Y|yes|Yes|YES)
5064    DX_FLAG_html=1
5065
5066
5067test "$DX_FLAG_doc" = "1" \
5068|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
5069
5070test "$DX_FLAG_chm" = "0" \
5071|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
5072
5073;; #(
5074n|N|no|No|NO)
5075    DX_FLAG_html=0
5076
5077;; #(
5078*)
5079    as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
5080;;
5081esac
5082
5083else $as_nop
5084
5085DX_FLAG_html=1
5086
5087
5088test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
5089
5090
5091test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
5092
5093
5094
5095fi
5096
5097if test "$DX_FLAG_html" = 1; then
5098
5099    :
5100fi
5101if test "$DX_FLAG_html" = 1; then
5102     if :; then
5103  DX_COND_html_TRUE=
5104  DX_COND_html_FALSE='#'
5105else
5106  DX_COND_html_TRUE='#'
5107  DX_COND_html_FALSE=
5108fi
5109
5110    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
5111
5112    :
5113else
5114     if false; then
5115  DX_COND_html_TRUE=
5116  DX_COND_html_FALSE='#'
5117else
5118  DX_COND_html_TRUE='#'
5119  DX_COND_html_FALSE=
5120fi
5121
5122    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
5123
5124    :
5125fi
5126
5127
5128# PostScript file generation:
5129
5130
5131
5132    # Check whether --enable-doxygen-ps was given.
5133if test ${enable_doxygen_ps+y}
5134then :
5135  enableval=$enable_doxygen_ps;
5136case "$enableval" in
5137#(
5138y|Y|yes|Yes|YES)
5139    DX_FLAG_ps=1
5140
5141
5142test "$DX_FLAG_doc" = "1" \
5143|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
5144
5145;; #(
5146n|N|no|No|NO)
5147    DX_FLAG_ps=0
5148
5149;; #(
5150*)
5151    as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
5152;;
5153esac
5154
5155else $as_nop
5156
5157DX_FLAG_ps=0
5158
5159
5160test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
5161
5162
5163
5164fi
5165
5166if test "$DX_FLAG_ps" = 1; then
5167
5168if test -n "$ac_tool_prefix"; then
5169  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
5170set dummy ${ac_tool_prefix}latex; ac_word=$2
5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172printf %s "checking for $ac_word... " >&6; }
5173if test ${ac_cv_path_DX_LATEX+y}
5174then :
5175  printf %s "(cached) " >&6
5176else $as_nop
5177  case $DX_LATEX in
5178  [\\/]* | ?:[\\/]*)
5179  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
5180  ;;
5181  *)
5182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185  IFS=$as_save_IFS
5186  case $as_dir in #(((
5187    '') as_dir=./ ;;
5188    */) ;;
5189    *) as_dir=$as_dir/ ;;
5190  esac
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5193    ac_cv_path_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
5194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198  done
5199IFS=$as_save_IFS
5200
5201  ;;
5202esac
5203fi
5204DX_LATEX=$ac_cv_path_DX_LATEX
5205if test -n "$DX_LATEX"; then
5206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
5207printf "%s\n" "$DX_LATEX" >&6; }
5208else
5209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210printf "%s\n" "no" >&6; }
5211fi
5212
5213
5214fi
5215if test -z "$ac_cv_path_DX_LATEX"; then
5216  ac_pt_DX_LATEX=$DX_LATEX
5217  # Extract the first word of "latex", so it can be a program name with args.
5218set dummy latex; ac_word=$2
5219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220printf %s "checking for $ac_word... " >&6; }
5221if test ${ac_cv_path_ac_pt_DX_LATEX+y}
5222then :
5223  printf %s "(cached) " >&6
5224else $as_nop
5225  case $ac_pt_DX_LATEX in
5226  [\\/]* | ?:[\\/]*)
5227  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
5228  ;;
5229  *)
5230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  case $as_dir in #(((
5235    '') as_dir=./ ;;
5236    */) ;;
5237    *) as_dir=$as_dir/ ;;
5238  esac
5239    for ac_exec_ext in '' $ac_executable_extensions; do
5240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5241    ac_cv_path_ac_pt_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
5242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246  done
5247IFS=$as_save_IFS
5248
5249  ;;
5250esac
5251fi
5252ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
5253if test -n "$ac_pt_DX_LATEX"; then
5254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
5255printf "%s\n" "$ac_pt_DX_LATEX" >&6; }
5256else
5257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258printf "%s\n" "no" >&6; }
5259fi
5260
5261  if test "x$ac_pt_DX_LATEX" = x; then
5262    DX_LATEX=""
5263  else
5264    case $cross_compiling:$ac_tool_warned in
5265yes:)
5266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268ac_tool_warned=yes ;;
5269esac
5270    DX_LATEX=$ac_pt_DX_LATEX
5271  fi
5272else
5273  DX_LATEX="$ac_cv_path_DX_LATEX"
5274fi
5275
5276if test "$DX_FLAG_ps$DX_LATEX" = 1; then
5277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
5278printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
5279    DX_FLAG_ps=0
5280
5281fi
5282
5283
5284if test -n "$ac_tool_prefix"; then
5285  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
5286set dummy ${ac_tool_prefix}makeindex; ac_word=$2
5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288printf %s "checking for $ac_word... " >&6; }
5289if test ${ac_cv_path_DX_MAKEINDEX+y}
5290then :
5291  printf %s "(cached) " >&6
5292else $as_nop
5293  case $DX_MAKEINDEX in
5294  [\\/]* | ?:[\\/]*)
5295  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
5296  ;;
5297  *)
5298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  case $as_dir in #(((
5303    '') as_dir=./ ;;
5304    */) ;;
5305    *) as_dir=$as_dir/ ;;
5306  esac
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5309    ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
5310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314  done
5315IFS=$as_save_IFS
5316
5317  ;;
5318esac
5319fi
5320DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
5321if test -n "$DX_MAKEINDEX"; then
5322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
5323printf "%s\n" "$DX_MAKEINDEX" >&6; }
5324else
5325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326printf "%s\n" "no" >&6; }
5327fi
5328
5329
5330fi
5331if test -z "$ac_cv_path_DX_MAKEINDEX"; then
5332  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
5333  # Extract the first word of "makeindex", so it can be a program name with args.
5334set dummy makeindex; ac_word=$2
5335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336printf %s "checking for $ac_word... " >&6; }
5337if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
5338then :
5339  printf %s "(cached) " >&6
5340else $as_nop
5341  case $ac_pt_DX_MAKEINDEX in
5342  [\\/]* | ?:[\\/]*)
5343  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
5344  ;;
5345  *)
5346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  case $as_dir in #(((
5351    '') as_dir=./ ;;
5352    */) ;;
5353    *) as_dir=$as_dir/ ;;
5354  esac
5355    for ac_exec_ext in '' $ac_executable_extensions; do
5356  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5357    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
5358    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362  done
5363IFS=$as_save_IFS
5364
5365  ;;
5366esac
5367fi
5368ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
5369if test -n "$ac_pt_DX_MAKEINDEX"; then
5370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
5371printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
5372else
5373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374printf "%s\n" "no" >&6; }
5375fi
5376
5377  if test "x$ac_pt_DX_MAKEINDEX" = x; then
5378    DX_MAKEINDEX=""
5379  else
5380    case $cross_compiling:$ac_tool_warned in
5381yes:)
5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384ac_tool_warned=yes ;;
5385esac
5386    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
5387  fi
5388else
5389  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
5390fi
5391
5392if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
5393    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
5394printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
5395    DX_FLAG_ps=0
5396
5397fi
5398
5399
5400if test -n "$ac_tool_prefix"; then
5401  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
5402set dummy ${ac_tool_prefix}dvips; ac_word=$2
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404printf %s "checking for $ac_word... " >&6; }
5405if test ${ac_cv_path_DX_DVIPS+y}
5406then :
5407  printf %s "(cached) " >&6
5408else $as_nop
5409  case $DX_DVIPS in
5410  [\\/]* | ?:[\\/]*)
5411  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
5412  ;;
5413  *)
5414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417  IFS=$as_save_IFS
5418  case $as_dir in #(((
5419    '') as_dir=./ ;;
5420    */) ;;
5421    *) as_dir=$as_dir/ ;;
5422  esac
5423    for ac_exec_ext in '' $ac_executable_extensions; do
5424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5425    ac_cv_path_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
5426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5427    break 2
5428  fi
5429done
5430  done
5431IFS=$as_save_IFS
5432
5433  ;;
5434esac
5435fi
5436DX_DVIPS=$ac_cv_path_DX_DVIPS
5437if test -n "$DX_DVIPS"; then
5438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
5439printf "%s\n" "$DX_DVIPS" >&6; }
5440else
5441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442printf "%s\n" "no" >&6; }
5443fi
5444
5445
5446fi
5447if test -z "$ac_cv_path_DX_DVIPS"; then
5448  ac_pt_DX_DVIPS=$DX_DVIPS
5449  # Extract the first word of "dvips", so it can be a program name with args.
5450set dummy dvips; ac_word=$2
5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452printf %s "checking for $ac_word... " >&6; }
5453if test ${ac_cv_path_ac_pt_DX_DVIPS+y}
5454then :
5455  printf %s "(cached) " >&6
5456else $as_nop
5457  case $ac_pt_DX_DVIPS in
5458  [\\/]* | ?:[\\/]*)
5459  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
5460  ;;
5461  *)
5462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465  IFS=$as_save_IFS
5466  case $as_dir in #(((
5467    '') as_dir=./ ;;
5468    */) ;;
5469    *) as_dir=$as_dir/ ;;
5470  esac
5471    for ac_exec_ext in '' $ac_executable_extensions; do
5472  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5473    ac_cv_path_ac_pt_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
5474    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5475    break 2
5476  fi
5477done
5478  done
5479IFS=$as_save_IFS
5480
5481  ;;
5482esac
5483fi
5484ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
5485if test -n "$ac_pt_DX_DVIPS"; then
5486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
5487printf "%s\n" "$ac_pt_DX_DVIPS" >&6; }
5488else
5489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490printf "%s\n" "no" >&6; }
5491fi
5492
5493  if test "x$ac_pt_DX_DVIPS" = x; then
5494    DX_DVIPS=""
5495  else
5496    case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502    DX_DVIPS=$ac_pt_DX_DVIPS
5503  fi
5504else
5505  DX_DVIPS="$ac_cv_path_DX_DVIPS"
5506fi
5507
5508if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
5509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
5510printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
5511    DX_FLAG_ps=0
5512
5513fi
5514
5515
5516if test -n "$ac_tool_prefix"; then
5517  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
5518set dummy ${ac_tool_prefix}egrep; ac_word=$2
5519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520printf %s "checking for $ac_word... " >&6; }
5521if test ${ac_cv_path_DX_EGREP+y}
5522then :
5523  printf %s "(cached) " >&6
5524else $as_nop
5525  case $DX_EGREP in
5526  [\\/]* | ?:[\\/]*)
5527  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
5528  ;;
5529  *)
5530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  case $as_dir in #(((
5535    '') as_dir=./ ;;
5536    */) ;;
5537    *) as_dir=$as_dir/ ;;
5538  esac
5539    for ac_exec_ext in '' $ac_executable_extensions; do
5540  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5541    ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
5542    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5543    break 2
5544  fi
5545done
5546  done
5547IFS=$as_save_IFS
5548
5549  ;;
5550esac
5551fi
5552DX_EGREP=$ac_cv_path_DX_EGREP
5553if test -n "$DX_EGREP"; then
5554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
5555printf "%s\n" "$DX_EGREP" >&6; }
5556else
5557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558printf "%s\n" "no" >&6; }
5559fi
5560
5561
5562fi
5563if test -z "$ac_cv_path_DX_EGREP"; then
5564  ac_pt_DX_EGREP=$DX_EGREP
5565  # Extract the first word of "egrep", so it can be a program name with args.
5566set dummy egrep; ac_word=$2
5567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568printf %s "checking for $ac_word... " >&6; }
5569if test ${ac_cv_path_ac_pt_DX_EGREP+y}
5570then :
5571  printf %s "(cached) " >&6
5572else $as_nop
5573  case $ac_pt_DX_EGREP in
5574  [\\/]* | ?:[\\/]*)
5575  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
5576  ;;
5577  *)
5578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  case $as_dir in #(((
5583    '') as_dir=./ ;;
5584    */) ;;
5585    *) as_dir=$as_dir/ ;;
5586  esac
5587    for ac_exec_ext in '' $ac_executable_extensions; do
5588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5589    ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
5590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5591    break 2
5592  fi
5593done
5594  done
5595IFS=$as_save_IFS
5596
5597  ;;
5598esac
5599fi
5600ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
5601if test -n "$ac_pt_DX_EGREP"; then
5602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
5603printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
5604else
5605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606printf "%s\n" "no" >&6; }
5607fi
5608
5609  if test "x$ac_pt_DX_EGREP" = x; then
5610    DX_EGREP=""
5611  else
5612    case $cross_compiling:$ac_tool_warned in
5613yes:)
5614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616ac_tool_warned=yes ;;
5617esac
5618    DX_EGREP=$ac_pt_DX_EGREP
5619  fi
5620else
5621  DX_EGREP="$ac_cv_path_DX_EGREP"
5622fi
5623
5624if test "$DX_FLAG_ps$DX_EGREP" = 1; then
5625    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
5626printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
5627    DX_FLAG_ps=0
5628
5629fi
5630
5631    :
5632fi
5633if test "$DX_FLAG_ps" = 1; then
5634     if :; then
5635  DX_COND_ps_TRUE=
5636  DX_COND_ps_FALSE='#'
5637else
5638  DX_COND_ps_TRUE='#'
5639  DX_COND_ps_FALSE=
5640fi
5641
5642
5643    :
5644else
5645     if false; then
5646  DX_COND_ps_TRUE=
5647  DX_COND_ps_FALSE='#'
5648else
5649  DX_COND_ps_TRUE='#'
5650  DX_COND_ps_FALSE=
5651fi
5652
5653
5654    :
5655fi
5656
5657
5658# PDF file generation:
5659
5660
5661
5662    # Check whether --enable-doxygen-pdf was given.
5663if test ${enable_doxygen_pdf+y}
5664then :
5665  enableval=$enable_doxygen_pdf;
5666case "$enableval" in
5667#(
5668y|Y|yes|Yes|YES)
5669    DX_FLAG_pdf=1
5670
5671
5672test "$DX_FLAG_doc" = "1" \
5673|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
5674
5675;; #(
5676n|N|no|No|NO)
5677    DX_FLAG_pdf=0
5678
5679;; #(
5680*)
5681    as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
5682;;
5683esac
5684
5685else $as_nop
5686
5687DX_FLAG_pdf=0
5688
5689
5690test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
5691
5692
5693
5694fi
5695
5696if test "$DX_FLAG_pdf" = 1; then
5697
5698if test -n "$ac_tool_prefix"; then
5699  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
5700set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
5701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702printf %s "checking for $ac_word... " >&6; }
5703if test ${ac_cv_path_DX_PDFLATEX+y}
5704then :
5705  printf %s "(cached) " >&6
5706else $as_nop
5707  case $DX_PDFLATEX in
5708  [\\/]* | ?:[\\/]*)
5709  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
5710  ;;
5711  *)
5712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  case $as_dir in #(((
5717    '') as_dir=./ ;;
5718    */) ;;
5719    *) as_dir=$as_dir/ ;;
5720  esac
5721    for ac_exec_ext in '' $ac_executable_extensions; do
5722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5723    ac_cv_path_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
5724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5725    break 2
5726  fi
5727done
5728  done
5729IFS=$as_save_IFS
5730
5731  ;;
5732esac
5733fi
5734DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
5735if test -n "$DX_PDFLATEX"; then
5736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
5737printf "%s\n" "$DX_PDFLATEX" >&6; }
5738else
5739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740printf "%s\n" "no" >&6; }
5741fi
5742
5743
5744fi
5745if test -z "$ac_cv_path_DX_PDFLATEX"; then
5746  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
5747  # Extract the first word of "pdflatex", so it can be a program name with args.
5748set dummy pdflatex; ac_word=$2
5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750printf %s "checking for $ac_word... " >&6; }
5751if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y}
5752then :
5753  printf %s "(cached) " >&6
5754else $as_nop
5755  case $ac_pt_DX_PDFLATEX in
5756  [\\/]* | ?:[\\/]*)
5757  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
5758  ;;
5759  *)
5760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  case $as_dir in #(((
5765    '') as_dir=./ ;;
5766    */) ;;
5767    *) as_dir=$as_dir/ ;;
5768  esac
5769    for ac_exec_ext in '' $ac_executable_extensions; do
5770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5771    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
5772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776  done
5777IFS=$as_save_IFS
5778
5779  ;;
5780esac
5781fi
5782ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
5783if test -n "$ac_pt_DX_PDFLATEX"; then
5784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
5785printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; }
5786else
5787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788printf "%s\n" "no" >&6; }
5789fi
5790
5791  if test "x$ac_pt_DX_PDFLATEX" = x; then
5792    DX_PDFLATEX=""
5793  else
5794    case $cross_compiling:$ac_tool_warned in
5795yes:)
5796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798ac_tool_warned=yes ;;
5799esac
5800    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
5801  fi
5802else
5803  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
5804fi
5805
5806if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
5807    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
5808printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
5809    DX_FLAG_pdf=0
5810
5811fi
5812
5813
5814if test -n "$ac_tool_prefix"; then
5815  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}makeindex; ac_word=$2
5817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818printf %s "checking for $ac_word... " >&6; }
5819if test ${ac_cv_path_DX_MAKEINDEX+y}
5820then :
5821  printf %s "(cached) " >&6
5822else $as_nop
5823  case $DX_MAKEINDEX in
5824  [\\/]* | ?:[\\/]*)
5825  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
5826  ;;
5827  *)
5828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831  IFS=$as_save_IFS
5832  case $as_dir in #(((
5833    '') as_dir=./ ;;
5834    */) ;;
5835    *) as_dir=$as_dir/ ;;
5836  esac
5837    for ac_exec_ext in '' $ac_executable_extensions; do
5838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5839    ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
5840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844  done
5845IFS=$as_save_IFS
5846
5847  ;;
5848esac
5849fi
5850DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
5851if test -n "$DX_MAKEINDEX"; then
5852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
5853printf "%s\n" "$DX_MAKEINDEX" >&6; }
5854else
5855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856printf "%s\n" "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_path_DX_MAKEINDEX"; then
5862  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
5863  # Extract the first word of "makeindex", so it can be a program name with args.
5864set dummy makeindex; ac_word=$2
5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866printf %s "checking for $ac_word... " >&6; }
5867if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
5868then :
5869  printf %s "(cached) " >&6
5870else $as_nop
5871  case $ac_pt_DX_MAKEINDEX in
5872  [\\/]* | ?:[\\/]*)
5873  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
5874  ;;
5875  *)
5876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879  IFS=$as_save_IFS
5880  case $as_dir in #(((
5881    '') as_dir=./ ;;
5882    */) ;;
5883    *) as_dir=$as_dir/ ;;
5884  esac
5885    for ac_exec_ext in '' $ac_executable_extensions; do
5886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5887    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
5888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892  done
5893IFS=$as_save_IFS
5894
5895  ;;
5896esac
5897fi
5898ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
5899if test -n "$ac_pt_DX_MAKEINDEX"; then
5900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
5901printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
5902else
5903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904printf "%s\n" "no" >&6; }
5905fi
5906
5907  if test "x$ac_pt_DX_MAKEINDEX" = x; then
5908    DX_MAKEINDEX=""
5909  else
5910    case $cross_compiling:$ac_tool_warned in
5911yes:)
5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914ac_tool_warned=yes ;;
5915esac
5916    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
5917  fi
5918else
5919  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
5920fi
5921
5922if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
5923    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
5924printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
5925    DX_FLAG_pdf=0
5926
5927fi
5928
5929
5930if test -n "$ac_tool_prefix"; then
5931  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
5932set dummy ${ac_tool_prefix}egrep; ac_word=$2
5933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934printf %s "checking for $ac_word... " >&6; }
5935if test ${ac_cv_path_DX_EGREP+y}
5936then :
5937  printf %s "(cached) " >&6
5938else $as_nop
5939  case $DX_EGREP in
5940  [\\/]* | ?:[\\/]*)
5941  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
5942  ;;
5943  *)
5944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947  IFS=$as_save_IFS
5948  case $as_dir in #(((
5949    '') as_dir=./ ;;
5950    */) ;;
5951    *) as_dir=$as_dir/ ;;
5952  esac
5953    for ac_exec_ext in '' $ac_executable_extensions; do
5954  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5955    ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
5956    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5957    break 2
5958  fi
5959done
5960  done
5961IFS=$as_save_IFS
5962
5963  ;;
5964esac
5965fi
5966DX_EGREP=$ac_cv_path_DX_EGREP
5967if test -n "$DX_EGREP"; then
5968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
5969printf "%s\n" "$DX_EGREP" >&6; }
5970else
5971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972printf "%s\n" "no" >&6; }
5973fi
5974
5975
5976fi
5977if test -z "$ac_cv_path_DX_EGREP"; then
5978  ac_pt_DX_EGREP=$DX_EGREP
5979  # Extract the first word of "egrep", so it can be a program name with args.
5980set dummy egrep; ac_word=$2
5981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982printf %s "checking for $ac_word... " >&6; }
5983if test ${ac_cv_path_ac_pt_DX_EGREP+y}
5984then :
5985  printf %s "(cached) " >&6
5986else $as_nop
5987  case $ac_pt_DX_EGREP in
5988  [\\/]* | ?:[\\/]*)
5989  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
5990  ;;
5991  *)
5992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995  IFS=$as_save_IFS
5996  case $as_dir in #(((
5997    '') as_dir=./ ;;
5998    */) ;;
5999    *) as_dir=$as_dir/ ;;
6000  esac
6001    for ac_exec_ext in '' $ac_executable_extensions; do
6002  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6003    ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
6004    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6005    break 2
6006  fi
6007done
6008  done
6009IFS=$as_save_IFS
6010
6011  ;;
6012esac
6013fi
6014ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
6015if test -n "$ac_pt_DX_EGREP"; then
6016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
6017printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
6018else
6019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020printf "%s\n" "no" >&6; }
6021fi
6022
6023  if test "x$ac_pt_DX_EGREP" = x; then
6024    DX_EGREP=""
6025  else
6026    case $cross_compiling:$ac_tool_warned in
6027yes:)
6028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030ac_tool_warned=yes ;;
6031esac
6032    DX_EGREP=$ac_pt_DX_EGREP
6033  fi
6034else
6035  DX_EGREP="$ac_cv_path_DX_EGREP"
6036fi
6037
6038if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
6039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
6040printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
6041    DX_FLAG_pdf=0
6042
6043fi
6044
6045    :
6046fi
6047if test "$DX_FLAG_pdf" = 1; then
6048     if :; then
6049  DX_COND_pdf_TRUE=
6050  DX_COND_pdf_FALSE='#'
6051else
6052  DX_COND_pdf_TRUE='#'
6053  DX_COND_pdf_FALSE=
6054fi
6055
6056
6057    :
6058else
6059     if false; then
6060  DX_COND_pdf_TRUE=
6061  DX_COND_pdf_FALSE='#'
6062else
6063  DX_COND_pdf_TRUE='#'
6064  DX_COND_pdf_FALSE=
6065fi
6066
6067
6068    :
6069fi
6070
6071
6072# LaTeX generation for PS and/or PDF:
6073if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
6074     if :; then
6075  DX_COND_latex_TRUE=
6076  DX_COND_latex_FALSE='#'
6077else
6078  DX_COND_latex_TRUE='#'
6079  DX_COND_latex_FALSE=
6080fi
6081
6082    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
6083
6084else
6085     if false; then
6086  DX_COND_latex_TRUE=
6087  DX_COND_latex_FALSE='#'
6088else
6089  DX_COND_latex_TRUE='#'
6090  DX_COND_latex_FALSE=
6091fi
6092
6093    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
6094
6095fi
6096
6097# Paper size for PS and/or PDF:
6098
6099case "$DOXYGEN_PAPER_SIZE" in
6100#(
6101"")
6102    DOXYGEN_PAPER_SIZE=""
6103
6104;; #(
6105a4wide|a4|letter|legal|executive)
6106    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
6107
6108;; #(
6109*)
6110    as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
6111;;
6112esac
6113
6114#For debugging:
6115#echo DX_FLAG_doc=$DX_FLAG_doc
6116#echo DX_FLAG_dot=$DX_FLAG_dot
6117#echo DX_FLAG_man=$DX_FLAG_man
6118#echo DX_FLAG_html=$DX_FLAG_html
6119#echo DX_FLAG_chm=$DX_FLAG_chm
6120#echo DX_FLAG_chi=$DX_FLAG_chi
6121#echo DX_FLAG_rtf=$DX_FLAG_rtf
6122#echo DX_FLAG_xml=$DX_FLAG_xml
6123#echo DX_FLAG_pdf=$DX_FLAG_pdf
6124#echo DX_FLAG_ps=$DX_FLAG_ps
6125#echo DX_ENV=$DX_ENV
6126
6127DX_INCLUDE=
6128
6129# Check whether --enable-debug was given.
6130if test ${enable_debug+y}
6131then :
6132  enableval=$enable_debug; enable_debug=$enableval
6133else $as_nop
6134  enable_debug=no
6135fi
6136
6137
6138if test "$enable_debug" = "yes" ; then
6139    AM_CFLAGS="-D_DEBUG"
6140    AM_CXXFLAGS="-D_DEBUG"
6141fi
6142
6143ac_config_headers="$ac_config_headers config.h shibsp/config_pub.h"
6144
6145ac_config_files="$ac_config_files shibsp.pc shibsp-lite.pc shibboleth.spec"
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162if test -n "$ac_tool_prefix"; then
6163  for ac_prog in gcc gcc3 cc
6164  do
6165    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168printf %s "checking for $ac_word... " >&6; }
6169if test ${ac_cv_prog_CC+y}
6170then :
6171  printf %s "(cached) " >&6
6172else $as_nop
6173  if test -n "$CC"; then
6174  ac_cv_prog_CC="$CC" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179  IFS=$as_save_IFS
6180  case $as_dir in #(((
6181    '') as_dir=./ ;;
6182    */) ;;
6183    *) as_dir=$as_dir/ ;;
6184  esac
6185    for ac_exec_ext in '' $ac_executable_extensions; do
6186  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6187    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6188    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6189    break 2
6190  fi
6191done
6192  done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197CC=$ac_cv_prog_CC
6198if test -n "$CC"; then
6199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6200printf "%s\n" "$CC" >&6; }
6201else
6202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203printf "%s\n" "no" >&6; }
6204fi
6205
6206
6207    test -n "$CC" && break
6208  done
6209fi
6210if test -z "$CC"; then
6211  ac_ct_CC=$CC
6212  for ac_prog in gcc gcc3 cc
6213do
6214  # Extract the first word of "$ac_prog", so it can be a program name with args.
6215set dummy $ac_prog; ac_word=$2
6216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217printf %s "checking for $ac_word... " >&6; }
6218if test ${ac_cv_prog_ac_ct_CC+y}
6219then :
6220  printf %s "(cached) " >&6
6221else $as_nop
6222  if test -n "$ac_ct_CC"; then
6223  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228  IFS=$as_save_IFS
6229  case $as_dir in #(((
6230    '') as_dir=./ ;;
6231    */) ;;
6232    *) as_dir=$as_dir/ ;;
6233  esac
6234    for ac_exec_ext in '' $ac_executable_extensions; do
6235  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6236    ac_cv_prog_ac_ct_CC="$ac_prog"
6237    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241  done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_CC=$ac_cv_prog_ac_ct_CC
6247if test -n "$ac_ct_CC"; then
6248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6249printf "%s\n" "$ac_ct_CC" >&6; }
6250else
6251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252printf "%s\n" "no" >&6; }
6253fi
6254
6255
6256  test -n "$ac_ct_CC" && break
6257done
6258
6259  if test "x$ac_ct_CC" = x; then
6260    CC=""
6261  else
6262    case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268    CC=$ac_ct_CC
6269  fi
6270fi
6271
6272
6273test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6274printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6275as_fn_error $? "no acceptable C compiler found in \$PATH
6276See \`config.log' for more details" "$LINENO" 5; }
6277
6278# Provide some information about the compiler.
6279printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6280set X $ac_compile
6281ac_compiler=$2
6282for ac_option in --version -v -V -qversion -version; do
6283  { { ac_try="$ac_compiler $ac_option >&5"
6284case "(($ac_try" in
6285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286  *) ac_try_echo=$ac_try;;
6287esac
6288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6289printf "%s\n" "$ac_try_echo"; } >&5
6290  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6291  ac_status=$?
6292  if test -s conftest.err; then
6293    sed '10a\
6294... rest of stderr output deleted ...
6295         10q' conftest.err >conftest.er1
6296    cat conftest.er1 >&5
6297  fi
6298  rm -f conftest.er1 conftest.err
6299  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300  test $ac_status = 0; }
6301done
6302
6303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305
6306int
6307main (void)
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314ac_clean_files_save=$ac_clean_files
6315ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6316# Try to create an executable without -o first, disregard a.out.
6317# It will help us diagnose broken compilers, and finding out an intuition
6318# of exeext.
6319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6320printf %s "checking whether the C compiler works... " >&6; }
6321ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6322
6323# The possible output files:
6324ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6325
6326ac_rmfiles=
6327for ac_file in $ac_files
6328do
6329  case $ac_file in
6330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6331    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6332  esac
6333done
6334rm -f $ac_rmfiles
6335
6336if { { ac_try="$ac_link_default"
6337case "(($ac_try" in
6338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339  *) ac_try_echo=$ac_try;;
6340esac
6341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6342printf "%s\n" "$ac_try_echo"; } >&5
6343  (eval "$ac_link_default") 2>&5
6344  ac_status=$?
6345  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346  test $ac_status = 0; }
6347then :
6348  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
6349# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
6350# in a Makefile.  We should not override ac_cv_exeext if it was cached,
6351# so that the user can short-circuit this test for compilers unknown to
6352# Autoconf.
6353for ac_file in $ac_files ''
6354do
6355  test -f "$ac_file" || continue
6356  case $ac_file in
6357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6358	;;
6359    [ab].out )
6360	# We found the default executable, but exeext='' is most
6361	# certainly right.
6362	break;;
6363    *.* )
6364	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
6365	then :; else
6366	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6367	fi
6368	# We set ac_cv_exeext here because the later test for it is not
6369	# safe: cross compilers may not add the suffix if given an `-o'
6370	# argument, so we may need to know it at that point already.
6371	# Even if this section looks crufty: it has the advantage of
6372	# actually working.
6373	break;;
6374    * )
6375	break;;
6376  esac
6377done
6378test "$ac_cv_exeext" = no && ac_cv_exeext=
6379
6380else $as_nop
6381  ac_file=''
6382fi
6383if test -z "$ac_file"
6384then :
6385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386printf "%s\n" "no" >&6; }
6387printf "%s\n" "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6392as_fn_error 77 "C compiler cannot create executables
6393See \`config.log' for more details" "$LINENO" 5; }
6394else $as_nop
6395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6396printf "%s\n" "yes" >&6; }
6397fi
6398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6399printf %s "checking for C compiler default output file name... " >&6; }
6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6401printf "%s\n" "$ac_file" >&6; }
6402ac_exeext=$ac_cv_exeext
6403
6404rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6405ac_clean_files=$ac_clean_files_save
6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6407printf %s "checking for suffix of executables... " >&6; }
6408if { { ac_try="$ac_link"
6409case "(($ac_try" in
6410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411  *) ac_try_echo=$ac_try;;
6412esac
6413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6414printf "%s\n" "$ac_try_echo"; } >&5
6415  (eval "$ac_link") 2>&5
6416  ac_status=$?
6417  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418  test $ac_status = 0; }
6419then :
6420  # If both `conftest.exe' and `conftest' are `present' (well, observable)
6421# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6422# work properly (i.e., refer to `conftest.exe'), while it won't with
6423# `rm'.
6424for ac_file in conftest.exe conftest conftest.*; do
6425  test -f "$ac_file" || continue
6426  case $ac_file in
6427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6428    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6429	  break;;
6430    * ) break;;
6431  esac
6432done
6433else $as_nop
6434  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6435printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6436as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6437See \`config.log' for more details" "$LINENO" 5; }
6438fi
6439rm -f conftest conftest$ac_cv_exeext
6440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
6441printf "%s\n" "$ac_cv_exeext" >&6; }
6442
6443rm -f conftest.$ac_ext
6444EXEEXT=$ac_cv_exeext
6445ac_exeext=$EXEEXT
6446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448#include <stdio.h>
6449int
6450main (void)
6451{
6452FILE *f = fopen ("conftest.out", "w");
6453 return ferror (f) || fclose (f) != 0;
6454
6455  ;
6456  return 0;
6457}
6458_ACEOF
6459ac_clean_files="$ac_clean_files conftest.out"
6460# Check that the compiler produces executables we can run.  If not, either
6461# the compiler is broken, or we cross compile.
6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6463printf %s "checking whether we are cross compiling... " >&6; }
6464if test "$cross_compiling" != yes; then
6465  { { ac_try="$ac_link"
6466case "(($ac_try" in
6467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468  *) ac_try_echo=$ac_try;;
6469esac
6470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6471printf "%s\n" "$ac_try_echo"; } >&5
6472  (eval "$ac_link") 2>&5
6473  ac_status=$?
6474  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475  test $ac_status = 0; }
6476  if { ac_try='./conftest$ac_cv_exeext'
6477  { { case "(($ac_try" in
6478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479  *) ac_try_echo=$ac_try;;
6480esac
6481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6482printf "%s\n" "$ac_try_echo"; } >&5
6483  (eval "$ac_try") 2>&5
6484  ac_status=$?
6485  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486  test $ac_status = 0; }; }; then
6487    cross_compiling=no
6488  else
6489    if test "$cross_compiling" = maybe; then
6490	cross_compiling=yes
6491    else
6492	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6493printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6494as_fn_error 77 "cannot run C compiled programs.
6495If you meant to cross compile, use \`--host'.
6496See \`config.log' for more details" "$LINENO" 5; }
6497    fi
6498  fi
6499fi
6500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6501printf "%s\n" "$cross_compiling" >&6; }
6502
6503rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6504ac_clean_files=$ac_clean_files_save
6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6506printf %s "checking for suffix of object files... " >&6; }
6507if test ${ac_cv_objext+y}
6508then :
6509  printf %s "(cached) " >&6
6510else $as_nop
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513
6514int
6515main (void)
6516{
6517
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522rm -f conftest.o conftest.obj
6523if { { ac_try="$ac_compile"
6524case "(($ac_try" in
6525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526  *) ac_try_echo=$ac_try;;
6527esac
6528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6529printf "%s\n" "$ac_try_echo"; } >&5
6530  (eval "$ac_compile") 2>&5
6531  ac_status=$?
6532  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533  test $ac_status = 0; }
6534then :
6535  for ac_file in conftest.o conftest.obj conftest.*; do
6536  test -f "$ac_file" || continue;
6537  case $ac_file in
6538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6539    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6540       break;;
6541  esac
6542done
6543else $as_nop
6544  printf "%s\n" "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6548printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6549as_fn_error $? "cannot compute suffix of object files: cannot compile
6550See \`config.log' for more details" "$LINENO" 5; }
6551fi
6552rm -f conftest.$ac_cv_objext conftest.$ac_ext
6553fi
6554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6555printf "%s\n" "$ac_cv_objext" >&6; }
6556OBJEXT=$ac_cv_objext
6557ac_objext=$OBJEXT
6558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6559printf %s "checking whether the compiler supports GNU C... " >&6; }
6560if test ${ac_cv_c_compiler_gnu+y}
6561then :
6562  printf %s "(cached) " >&6
6563else $as_nop
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566
6567int
6568main (void)
6569{
6570#ifndef __GNUC__
6571       choke me
6572#endif
6573
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"
6579then :
6580  ac_compiler_gnu=yes
6581else $as_nop
6582  ac_compiler_gnu=no
6583fi
6584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6585ac_cv_c_compiler_gnu=$ac_compiler_gnu
6586
6587fi
6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6589printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6590ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591
6592if test $ac_compiler_gnu = yes; then
6593  GCC=yes
6594else
6595  GCC=
6596fi
6597ac_test_CFLAGS=${CFLAGS+y}
6598ac_save_CFLAGS=$CFLAGS
6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6600printf %s "checking whether $CC accepts -g... " >&6; }
6601if test ${ac_cv_prog_cc_g+y}
6602then :
6603  printf %s "(cached) " >&6
6604else $as_nop
6605  ac_save_c_werror_flag=$ac_c_werror_flag
6606   ac_c_werror_flag=yes
6607   ac_cv_prog_cc_g=no
6608   CFLAGS="-g"
6609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611
6612int
6613main (void)
6614{
6615
6616  ;
6617  return 0;
6618}
6619_ACEOF
6620if ac_fn_c_try_compile "$LINENO"
6621then :
6622  ac_cv_prog_cc_g=yes
6623else $as_nop
6624  CFLAGS=""
6625      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626/* end confdefs.h.  */
6627
6628int
6629main (void)
6630{
6631
6632  ;
6633  return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_compile "$LINENO"
6637then :
6638
6639else $as_nop
6640  ac_c_werror_flag=$ac_save_c_werror_flag
6641	 CFLAGS="-g"
6642	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h.  */
6644
6645int
6646main (void)
6647{
6648
6649  ;
6650  return 0;
6651}
6652_ACEOF
6653if ac_fn_c_try_compile "$LINENO"
6654then :
6655  ac_cv_prog_cc_g=yes
6656fi
6657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6662   ac_c_werror_flag=$ac_save_c_werror_flag
6663fi
6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6665printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6666if test $ac_test_CFLAGS; then
6667  CFLAGS=$ac_save_CFLAGS
6668elif test $ac_cv_prog_cc_g = yes; then
6669  if test "$GCC" = yes; then
6670    CFLAGS="-g -O2"
6671  else
6672    CFLAGS="-g"
6673  fi
6674else
6675  if test "$GCC" = yes; then
6676    CFLAGS="-O2"
6677  else
6678    CFLAGS=
6679  fi
6680fi
6681ac_prog_cc_stdc=no
6682if test x$ac_prog_cc_stdc = xno
6683then :
6684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6685printf %s "checking for $CC option to enable C11 features... " >&6; }
6686if test ${ac_cv_prog_cc_c11+y}
6687then :
6688  printf %s "(cached) " >&6
6689else $as_nop
6690  ac_cv_prog_cc_c11=no
6691ac_save_CC=$CC
6692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694$ac_c_conftest_c11_program
6695_ACEOF
6696for ac_arg in '' -std=gnu11
6697do
6698  CC="$ac_save_CC $ac_arg"
6699  if ac_fn_c_try_compile "$LINENO"
6700then :
6701  ac_cv_prog_cc_c11=$ac_arg
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.beam
6704  test "x$ac_cv_prog_cc_c11" != "xno" && break
6705done
6706rm -f conftest.$ac_ext
6707CC=$ac_save_CC
6708fi
6709
6710if test "x$ac_cv_prog_cc_c11" = xno
6711then :
6712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6713printf "%s\n" "unsupported" >&6; }
6714else $as_nop
6715  if test "x$ac_cv_prog_cc_c11" = x
6716then :
6717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6718printf "%s\n" "none needed" >&6; }
6719else $as_nop
6720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6721printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6722     CC="$CC $ac_cv_prog_cc_c11"
6723fi
6724  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6725  ac_prog_cc_stdc=c11
6726fi
6727fi
6728if test x$ac_prog_cc_stdc = xno
6729then :
6730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6731printf %s "checking for $CC option to enable C99 features... " >&6; }
6732if test ${ac_cv_prog_cc_c99+y}
6733then :
6734  printf %s "(cached) " >&6
6735else $as_nop
6736  ac_cv_prog_cc_c99=no
6737ac_save_CC=$CC
6738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740$ac_c_conftest_c99_program
6741_ACEOF
6742for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6743do
6744  CC="$ac_save_CC $ac_arg"
6745  if ac_fn_c_try_compile "$LINENO"
6746then :
6747  ac_cv_prog_cc_c99=$ac_arg
6748fi
6749rm -f core conftest.err conftest.$ac_objext conftest.beam
6750  test "x$ac_cv_prog_cc_c99" != "xno" && break
6751done
6752rm -f conftest.$ac_ext
6753CC=$ac_save_CC
6754fi
6755
6756if test "x$ac_cv_prog_cc_c99" = xno
6757then :
6758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6759printf "%s\n" "unsupported" >&6; }
6760else $as_nop
6761  if test "x$ac_cv_prog_cc_c99" = x
6762then :
6763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6764printf "%s\n" "none needed" >&6; }
6765else $as_nop
6766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6767printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6768     CC="$CC $ac_cv_prog_cc_c99"
6769fi
6770  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6771  ac_prog_cc_stdc=c99
6772fi
6773fi
6774if test x$ac_prog_cc_stdc = xno
6775then :
6776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6777printf %s "checking for $CC option to enable C89 features... " >&6; }
6778if test ${ac_cv_prog_cc_c89+y}
6779then :
6780  printf %s "(cached) " >&6
6781else $as_nop
6782  ac_cv_prog_cc_c89=no
6783ac_save_CC=$CC
6784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786$ac_c_conftest_c89_program
6787_ACEOF
6788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6789do
6790  CC="$ac_save_CC $ac_arg"
6791  if ac_fn_c_try_compile "$LINENO"
6792then :
6793  ac_cv_prog_cc_c89=$ac_arg
6794fi
6795rm -f core conftest.err conftest.$ac_objext conftest.beam
6796  test "x$ac_cv_prog_cc_c89" != "xno" && break
6797done
6798rm -f conftest.$ac_ext
6799CC=$ac_save_CC
6800fi
6801
6802if test "x$ac_cv_prog_cc_c89" = xno
6803then :
6804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6805printf "%s\n" "unsupported" >&6; }
6806else $as_nop
6807  if test "x$ac_cv_prog_cc_c89" = x
6808then :
6809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6810printf "%s\n" "none needed" >&6; }
6811else $as_nop
6812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6813printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6814     CC="$CC $ac_cv_prog_cc_c89"
6815fi
6816  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6817  ac_prog_cc_stdc=c89
6818fi
6819fi
6820
6821ac_ext=c
6822ac_cpp='$CPP $CPPFLAGS'
6823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826
6827
6828  ac_ext=c
6829ac_cpp='$CPP $CPPFLAGS'
6830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832ac_compiler_gnu=$ac_cv_c_compiler_gnu
6833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6834printf %s "checking whether $CC understands -c and -o together... " >&6; }
6835if test ${am_cv_prog_cc_c_o+y}
6836then :
6837  printf %s "(cached) " >&6
6838else $as_nop
6839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841
6842int
6843main (void)
6844{
6845
6846  ;
6847  return 0;
6848}
6849_ACEOF
6850  # Make sure it works both with $CC and with simple cc.
6851  # Following AC_PROG_CC_C_O, we do the test twice because some
6852  # compilers refuse to overwrite an existing .o file with -o,
6853  # though they will create one.
6854  am_cv_prog_cc_c_o=yes
6855  for am_i in 1 2; do
6856    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6857   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } \
6861         && test -f conftest2.$ac_objext; then
6862      : OK
6863    else
6864      am_cv_prog_cc_c_o=no
6865      break
6866    fi
6867  done
6868  rm -f core conftest*
6869  unset am_i
6870fi
6871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6872printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6873if test "$am_cv_prog_cc_c_o" != yes; then
6874   # Losing compiler, so override with the script.
6875   # FIXME: It is wrong to rewrite CC.
6876   # But if we don't then we get into trouble of one sort or another.
6877   # A longer-term fix would be to have automake use am__CC in this case,
6878   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6879   CC="$am_aux_dir/compile $CC"
6880fi
6881ac_ext=c
6882ac_cpp='$CPP $CPPFLAGS'
6883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886
6887DEPDIR="${am__leading_dot}deps"
6888
6889ac_config_commands="$ac_config_commands depfiles"
6890
6891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6892printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6893cat > confinc.mk << 'END'
6894am__doit:
6895	@echo this is the am__doit target >confinc.out
6896.PHONY: am__doit
6897END
6898am__include="#"
6899am__quote=
6900# BSD make does it like this.
6901echo '.include "confinc.mk" # ignored' > confmf.BSD
6902# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6903echo 'include confinc.mk # ignored' > confmf.GNU
6904_am_result=no
6905for s in GNU BSD; do
6906  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6907   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }
6911  case $?:`cat confinc.out 2>/dev/null` in #(
6912  '0:this is the am__doit target') :
6913    case $s in #(
6914  BSD) :
6915    am__include='.include' am__quote='"' ;; #(
6916  *) :
6917    am__include='include' am__quote='' ;;
6918esac ;; #(
6919  *) :
6920     ;;
6921esac
6922  if test "$am__include" != "#"; then
6923    _am_result="yes ($s style)"
6924    break
6925  fi
6926done
6927rm -f confinc.* confmf.*
6928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6929printf "%s\n" "${_am_result}" >&6; }
6930
6931# Check whether --enable-dependency-tracking was given.
6932if test ${enable_dependency_tracking+y}
6933then :
6934  enableval=$enable_dependency_tracking;
6935fi
6936
6937if test "x$enable_dependency_tracking" != xno; then
6938  am_depcomp="$ac_aux_dir/depcomp"
6939  AMDEPBACKSLASH='\'
6940  am__nodep='_no'
6941fi
6942 if test "x$enable_dependency_tracking" != xno; then
6943  AMDEP_TRUE=
6944  AMDEP_FALSE='#'
6945else
6946  AMDEP_TRUE='#'
6947  AMDEP_FALSE=
6948fi
6949
6950
6951
6952depcc="$CC"   am_compiler_list=
6953
6954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6955printf %s "checking dependency style of $depcc... " >&6; }
6956if test ${am_cv_CC_dependencies_compiler_type+y}
6957then :
6958  printf %s "(cached) " >&6
6959else $as_nop
6960  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6961  # We make a subdir and do the tests there.  Otherwise we can end up
6962  # making bogus files that we don't know about and never remove.  For
6963  # instance it was reported that on HP-UX the gcc test will end up
6964  # making a dummy file named 'D' -- because '-MD' means "put the output
6965  # in D".
6966  rm -rf conftest.dir
6967  mkdir conftest.dir
6968  # Copy depcomp to subdir because otherwise we won't find it if we're
6969  # using a relative directory.
6970  cp "$am_depcomp" conftest.dir
6971  cd conftest.dir
6972  # We will build objects and dependencies in a subdirectory because
6973  # it helps to detect inapplicable dependency modes.  For instance
6974  # both Tru64's cc and ICC support -MD to output dependencies as a
6975  # side effect of compilation, but ICC will put the dependencies in
6976  # the current directory while Tru64 will put them in the object
6977  # directory.
6978  mkdir sub
6979
6980  am_cv_CC_dependencies_compiler_type=none
6981  if test "$am_compiler_list" = ""; then
6982     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6983  fi
6984  am__universal=false
6985  case " $depcc " in #(
6986     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6987     esac
6988
6989  for depmode in $am_compiler_list; do
6990    # Setup a source with many dependencies, because some compilers
6991    # like to wrap large dependency lists on column 80 (with \), and
6992    # we should not choose a depcomp mode which is confused by this.
6993    #
6994    # We need to recreate these files for each test, as the compiler may
6995    # overwrite some of them when testing with obscure command lines.
6996    # This happens at least with the AIX C compiler.
6997    : > sub/conftest.c
6998    for i in 1 2 3 4 5 6; do
6999      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7000      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7001      # Solaris 10 /bin/sh.
7002      echo '/* dummy */' > sub/conftst$i.h
7003    done
7004    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7005
7006    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7007    # mode.  It turns out that the SunPro C++ compiler does not properly
7008    # handle '-M -o', and we need to detect this.  Also, some Intel
7009    # versions had trouble with output in subdirs.
7010    am__obj=sub/conftest.${OBJEXT-o}
7011    am__minus_obj="-o $am__obj"
7012    case $depmode in
7013    gcc)
7014      # This depmode causes a compiler race in universal mode.
7015      test "$am__universal" = false || continue
7016      ;;
7017    nosideeffect)
7018      # After this tag, mechanisms are not by side-effect, so they'll
7019      # only be used when explicitly requested.
7020      if test "x$enable_dependency_tracking" = xyes; then
7021	continue
7022      else
7023	break
7024      fi
7025      ;;
7026    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7027      # This compiler won't grok '-c -o', but also, the minuso test has
7028      # not run yet.  These depmodes are late enough in the game, and
7029      # so weak that their functioning should not be impacted.
7030      am__obj=conftest.${OBJEXT-o}
7031      am__minus_obj=
7032      ;;
7033    none) break ;;
7034    esac
7035    if depmode=$depmode \
7036       source=sub/conftest.c object=$am__obj \
7037       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7038       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7039         >/dev/null 2>conftest.err &&
7040       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7041       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7042       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7043       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7044      # icc doesn't choke on unknown options, it will just issue warnings
7045      # or remarks (even with -Werror).  So we grep stderr for any message
7046      # that says an option was ignored or not supported.
7047      # When given -MP, icc 7.0 and 7.1 complain thusly:
7048      #   icc: Command line warning: ignoring option '-M'; no argument required
7049      # The diagnosis changed in icc 8.0:
7050      #   icc: Command line remark: option '-MP' not supported
7051      if (grep 'ignoring option' conftest.err ||
7052          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7053        am_cv_CC_dependencies_compiler_type=$depmode
7054        break
7055      fi
7056    fi
7057  done
7058
7059  cd ..
7060  rm -rf conftest.dir
7061else
7062  am_cv_CC_dependencies_compiler_type=none
7063fi
7064
7065fi
7066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7067printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7068CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7069
7070 if
7071  test "x$enable_dependency_tracking" != xno \
7072  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7073  am__fastdepCC_TRUE=
7074  am__fastdepCC_FALSE='#'
7075else
7076  am__fastdepCC_TRUE='#'
7077  am__fastdepCC_FALSE=
7078fi
7079
7080
7081
7082
7083
7084
7085
7086
7087ac_ext=cpp
7088ac_cpp='$CXXCPP $CPPFLAGS'
7089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7092if test -z "$CXX"; then
7093  if test -n "$CCC"; then
7094    CXX=$CCC
7095  else
7096    if test -n "$ac_tool_prefix"; then
7097  for ac_prog in g++ g++3 c++ CC
7098  do
7099    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102printf %s "checking for $ac_word... " >&6; }
7103if test ${ac_cv_prog_CXX+y}
7104then :
7105  printf %s "(cached) " >&6
7106else $as_nop
7107  if test -n "$CXX"; then
7108  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  case $as_dir in #(((
7115    '') as_dir=./ ;;
7116    */) ;;
7117    *) as_dir=$as_dir/ ;;
7118  esac
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7121    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7122    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131CXX=$ac_cv_prog_CXX
7132if test -n "$CXX"; then
7133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7134printf "%s\n" "$CXX" >&6; }
7135else
7136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137printf "%s\n" "no" >&6; }
7138fi
7139
7140
7141    test -n "$CXX" && break
7142  done
7143fi
7144if test -z "$CXX"; then
7145  ac_ct_CXX=$CXX
7146  for ac_prog in g++ g++3 c++ CC
7147do
7148  # Extract the first word of "$ac_prog", so it can be a program name with args.
7149set dummy $ac_prog; ac_word=$2
7150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151printf %s "checking for $ac_word... " >&6; }
7152if test ${ac_cv_prog_ac_ct_CXX+y}
7153then :
7154  printf %s "(cached) " >&6
7155else $as_nop
7156  if test -n "$ac_ct_CXX"; then
7157  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162  IFS=$as_save_IFS
7163  case $as_dir in #(((
7164    '') as_dir=./ ;;
7165    */) ;;
7166    *) as_dir=$as_dir/ ;;
7167  esac
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7170    ac_cv_prog_ac_ct_CXX="$ac_prog"
7171    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7181if test -n "$ac_ct_CXX"; then
7182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7183printf "%s\n" "$ac_ct_CXX" >&6; }
7184else
7185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186printf "%s\n" "no" >&6; }
7187fi
7188
7189
7190  test -n "$ac_ct_CXX" && break
7191done
7192
7193  if test "x$ac_ct_CXX" = x; then
7194    CXX="g++"
7195  else
7196    case $cross_compiling:$ac_tool_warned in
7197yes:)
7198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200ac_tool_warned=yes ;;
7201esac
7202    CXX=$ac_ct_CXX
7203  fi
7204fi
7205
7206  fi
7207fi
7208# Provide some information about the compiler.
7209printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7210set X $ac_compile
7211ac_compiler=$2
7212for ac_option in --version -v -V -qversion; do
7213  { { ac_try="$ac_compiler $ac_option >&5"
7214case "(($ac_try" in
7215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216  *) ac_try_echo=$ac_try;;
7217esac
7218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7219printf "%s\n" "$ac_try_echo"; } >&5
7220  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7221  ac_status=$?
7222  if test -s conftest.err; then
7223    sed '10a\
7224... rest of stderr output deleted ...
7225         10q' conftest.err >conftest.er1
7226    cat conftest.er1 >&5
7227  fi
7228  rm -f conftest.er1 conftest.err
7229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230  test $ac_status = 0; }
7231done
7232
7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
7234printf %s "checking whether the compiler supports GNU C++... " >&6; }
7235if test ${ac_cv_cxx_compiler_gnu+y}
7236then :
7237  printf %s "(cached) " >&6
7238else $as_nop
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241
7242int
7243main (void)
7244{
7245#ifndef __GNUC__
7246       choke me
7247#endif
7248
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253if ac_fn_cxx_try_compile "$LINENO"
7254then :
7255  ac_compiler_gnu=yes
7256else $as_nop
7257  ac_compiler_gnu=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7260ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7261
7262fi
7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7264printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
7265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7266
7267if test $ac_compiler_gnu = yes; then
7268  GXX=yes
7269else
7270  GXX=
7271fi
7272ac_test_CXXFLAGS=${CXXFLAGS+y}
7273ac_save_CXXFLAGS=$CXXFLAGS
7274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7275printf %s "checking whether $CXX accepts -g... " >&6; }
7276if test ${ac_cv_prog_cxx_g+y}
7277then :
7278  printf %s "(cached) " >&6
7279else $as_nop
7280  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7281   ac_cxx_werror_flag=yes
7282   ac_cv_prog_cxx_g=no
7283   CXXFLAGS="-g"
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286
7287int
7288main (void)
7289{
7290
7291  ;
7292  return 0;
7293}
7294_ACEOF
7295if ac_fn_cxx_try_compile "$LINENO"
7296then :
7297  ac_cv_prog_cxx_g=yes
7298else $as_nop
7299  CXXFLAGS=""
7300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h.  */
7302
7303int
7304main (void)
7305{
7306
7307  ;
7308  return 0;
7309}
7310_ACEOF
7311if ac_fn_cxx_try_compile "$LINENO"
7312then :
7313
7314else $as_nop
7315  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7316	 CXXFLAGS="-g"
7317	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h.  */
7319
7320int
7321main (void)
7322{
7323
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328if ac_fn_cxx_try_compile "$LINENO"
7329then :
7330  ac_cv_prog_cxx_g=yes
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7333fi
7334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7335fi
7336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7337   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7338fi
7339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7340printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
7341if test $ac_test_CXXFLAGS; then
7342  CXXFLAGS=$ac_save_CXXFLAGS
7343elif test $ac_cv_prog_cxx_g = yes; then
7344  if test "$GXX" = yes; then
7345    CXXFLAGS="-g -O2"
7346  else
7347    CXXFLAGS="-g"
7348  fi
7349else
7350  if test "$GXX" = yes; then
7351    CXXFLAGS="-O2"
7352  else
7353    CXXFLAGS=
7354  fi
7355fi
7356ac_prog_cxx_stdcxx=no
7357if test x$ac_prog_cxx_stdcxx = xno
7358then :
7359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
7360printf %s "checking for $CXX option to enable C++11 features... " >&6; }
7361if test ${ac_cv_prog_cxx_11+y}
7362then :
7363  printf %s "(cached) " >&6
7364else $as_nop
7365  ac_cv_prog_cxx_11=no
7366ac_save_CXX=$CXX
7367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h.  */
7369$ac_cxx_conftest_cxx11_program
7370_ACEOF
7371for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
7372do
7373  CXX="$ac_save_CXX $ac_arg"
7374  if ac_fn_cxx_try_compile "$LINENO"
7375then :
7376  ac_cv_prog_cxx_cxx11=$ac_arg
7377fi
7378rm -f core conftest.err conftest.$ac_objext conftest.beam
7379  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7380done
7381rm -f conftest.$ac_ext
7382CXX=$ac_save_CXX
7383fi
7384
7385if test "x$ac_cv_prog_cxx_cxx11" = xno
7386then :
7387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7388printf "%s\n" "unsupported" >&6; }
7389else $as_nop
7390  if test "x$ac_cv_prog_cxx_cxx11" = x
7391then :
7392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7393printf "%s\n" "none needed" >&6; }
7394else $as_nop
7395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7396printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7397     CXX="$CXX $ac_cv_prog_cxx_cxx11"
7398fi
7399  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7400  ac_prog_cxx_stdcxx=cxx11
7401fi
7402fi
7403if test x$ac_prog_cxx_stdcxx = xno
7404then :
7405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
7406printf %s "checking for $CXX option to enable C++98 features... " >&6; }
7407if test ${ac_cv_prog_cxx_98+y}
7408then :
7409  printf %s "(cached) " >&6
7410else $as_nop
7411  ac_cv_prog_cxx_98=no
7412ac_save_CXX=$CXX
7413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h.  */
7415$ac_cxx_conftest_cxx98_program
7416_ACEOF
7417for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7418do
7419  CXX="$ac_save_CXX $ac_arg"
7420  if ac_fn_cxx_try_compile "$LINENO"
7421then :
7422  ac_cv_prog_cxx_cxx98=$ac_arg
7423fi
7424rm -f core conftest.err conftest.$ac_objext conftest.beam
7425  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7426done
7427rm -f conftest.$ac_ext
7428CXX=$ac_save_CXX
7429fi
7430
7431if test "x$ac_cv_prog_cxx_cxx98" = xno
7432then :
7433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7434printf "%s\n" "unsupported" >&6; }
7435else $as_nop
7436  if test "x$ac_cv_prog_cxx_cxx98" = x
7437then :
7438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7439printf "%s\n" "none needed" >&6; }
7440else $as_nop
7441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7442printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7443     CXX="$CXX $ac_cv_prog_cxx_cxx98"
7444fi
7445  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7446  ac_prog_cxx_stdcxx=cxx98
7447fi
7448fi
7449
7450ac_ext=c
7451ac_cpp='$CPP $CPPFLAGS'
7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455
7456depcc="$CXX"  am_compiler_list=
7457
7458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7459printf %s "checking dependency style of $depcc... " >&6; }
7460if test ${am_cv_CXX_dependencies_compiler_type+y}
7461then :
7462  printf %s "(cached) " >&6
7463else $as_nop
7464  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7465  # We make a subdir and do the tests there.  Otherwise we can end up
7466  # making bogus files that we don't know about and never remove.  For
7467  # instance it was reported that on HP-UX the gcc test will end up
7468  # making a dummy file named 'D' -- because '-MD' means "put the output
7469  # in D".
7470  rm -rf conftest.dir
7471  mkdir conftest.dir
7472  # Copy depcomp to subdir because otherwise we won't find it if we're
7473  # using a relative directory.
7474  cp "$am_depcomp" conftest.dir
7475  cd conftest.dir
7476  # We will build objects and dependencies in a subdirectory because
7477  # it helps to detect inapplicable dependency modes.  For instance
7478  # both Tru64's cc and ICC support -MD to output dependencies as a
7479  # side effect of compilation, but ICC will put the dependencies in
7480  # the current directory while Tru64 will put them in the object
7481  # directory.
7482  mkdir sub
7483
7484  am_cv_CXX_dependencies_compiler_type=none
7485  if test "$am_compiler_list" = ""; then
7486     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7487  fi
7488  am__universal=false
7489  case " $depcc " in #(
7490     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7491     esac
7492
7493  for depmode in $am_compiler_list; do
7494    # Setup a source with many dependencies, because some compilers
7495    # like to wrap large dependency lists on column 80 (with \), and
7496    # we should not choose a depcomp mode which is confused by this.
7497    #
7498    # We need to recreate these files for each test, as the compiler may
7499    # overwrite some of them when testing with obscure command lines.
7500    # This happens at least with the AIX C compiler.
7501    : > sub/conftest.c
7502    for i in 1 2 3 4 5 6; do
7503      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7504      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7505      # Solaris 10 /bin/sh.
7506      echo '/* dummy */' > sub/conftst$i.h
7507    done
7508    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7509
7510    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7511    # mode.  It turns out that the SunPro C++ compiler does not properly
7512    # handle '-M -o', and we need to detect this.  Also, some Intel
7513    # versions had trouble with output in subdirs.
7514    am__obj=sub/conftest.${OBJEXT-o}
7515    am__minus_obj="-o $am__obj"
7516    case $depmode in
7517    gcc)
7518      # This depmode causes a compiler race in universal mode.
7519      test "$am__universal" = false || continue
7520      ;;
7521    nosideeffect)
7522      # After this tag, mechanisms are not by side-effect, so they'll
7523      # only be used when explicitly requested.
7524      if test "x$enable_dependency_tracking" = xyes; then
7525	continue
7526      else
7527	break
7528      fi
7529      ;;
7530    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7531      # This compiler won't grok '-c -o', but also, the minuso test has
7532      # not run yet.  These depmodes are late enough in the game, and
7533      # so weak that their functioning should not be impacted.
7534      am__obj=conftest.${OBJEXT-o}
7535      am__minus_obj=
7536      ;;
7537    none) break ;;
7538    esac
7539    if depmode=$depmode \
7540       source=sub/conftest.c object=$am__obj \
7541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7542       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7543         >/dev/null 2>conftest.err &&
7544       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7545       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7546       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7547       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7548      # icc doesn't choke on unknown options, it will just issue warnings
7549      # or remarks (even with -Werror).  So we grep stderr for any message
7550      # that says an option was ignored or not supported.
7551      # When given -MP, icc 7.0 and 7.1 complain thusly:
7552      #   icc: Command line warning: ignoring option '-M'; no argument required
7553      # The diagnosis changed in icc 8.0:
7554      #   icc: Command line remark: option '-MP' not supported
7555      if (grep 'ignoring option' conftest.err ||
7556          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7557        am_cv_CXX_dependencies_compiler_type=$depmode
7558        break
7559      fi
7560    fi
7561  done
7562
7563  cd ..
7564  rm -rf conftest.dir
7565else
7566  am_cv_CXX_dependencies_compiler_type=none
7567fi
7568
7569fi
7570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7571printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7572CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7573
7574 if
7575  test "x$enable_dependency_tracking" != xno \
7576  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7577  am__fastdepCXX_TRUE=
7578  am__fastdepCXX_FALSE='#'
7579else
7580  am__fastdepCXX_TRUE='#'
7581  am__fastdepCXX_FALSE=
7582fi
7583
7584
7585
7586if test "$GCC" = "yes" ; then
7587    AM_CFLAGS="$AM_CFLAGS -Wall -W"
7588    AM_CXXFLAGS="$AM_CXXFLAGS -Wall -W"
7589fi
7590
7591
7592
7593
7594case `pwd` in
7595  *\ * | *\	*)
7596    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7597printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7598esac
7599
7600
7601
7602macro_version='2.4.6'
7603macro_revision='2.4.6'
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618ltmain=$ac_aux_dir/ltmain.sh
7619
7620
7621
7622  # Make sure we can run config.sub.
7623$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7624  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7625
7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7627printf %s "checking build system type... " >&6; }
7628if test ${ac_cv_build+y}
7629then :
7630  printf %s "(cached) " >&6
7631else $as_nop
7632  ac_build_alias=$build_alias
7633test "x$ac_build_alias" = x &&
7634  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7635test "x$ac_build_alias" = x &&
7636  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7637ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7638  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7639
7640fi
7641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7642printf "%s\n" "$ac_cv_build" >&6; }
7643case $ac_cv_build in
7644*-*-*) ;;
7645*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7646esac
7647build=$ac_cv_build
7648ac_save_IFS=$IFS; IFS='-'
7649set x $ac_cv_build
7650shift
7651build_cpu=$1
7652build_vendor=$2
7653shift; shift
7654# Remember, the first character of IFS is used to create $*,
7655# except with old shells:
7656build_os=$*
7657IFS=$ac_save_IFS
7658case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7659
7660
7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7662printf %s "checking host system type... " >&6; }
7663if test ${ac_cv_host+y}
7664then :
7665  printf %s "(cached) " >&6
7666else $as_nop
7667  if test "x$host_alias" = x; then
7668  ac_cv_host=$ac_cv_build
7669else
7670  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7671    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7672fi
7673
7674fi
7675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7676printf "%s\n" "$ac_cv_host" >&6; }
7677case $ac_cv_host in
7678*-*-*) ;;
7679*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7680esac
7681host=$ac_cv_host
7682ac_save_IFS=$IFS; IFS='-'
7683set x $ac_cv_host
7684shift
7685host_cpu=$1
7686host_vendor=$2
7687shift; shift
7688# Remember, the first character of IFS is used to create $*,
7689# except with old shells:
7690host_os=$*
7691IFS=$ac_save_IFS
7692case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7693
7694
7695# Backslashify metacharacters that are still active within
7696# double-quoted strings.
7697sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7698
7699# Same as above, but do not quote variable references.
7700double_quote_subst='s/\(["`\\]\)/\\\1/g'
7701
7702# Sed substitution to delay expansion of an escaped shell variable in a
7703# double_quote_subst'ed string.
7704delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7705
7706# Sed substitution to delay expansion of an escaped single quote.
7707delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7708
7709# Sed substitution to avoid accidental globbing in evaled expressions
7710no_glob_subst='s/\*/\\\*/g'
7711
7712ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7713ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7714ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7715
7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7717printf %s "checking how to print strings... " >&6; }
7718# Test print first, because it will be a builtin if present.
7719if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7720   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7721  ECHO='print -r --'
7722elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7723  ECHO='printf %s\n'
7724else
7725  # Use this function as a fallback that always works.
7726  func_fallback_echo ()
7727  {
7728    eval 'cat <<_LTECHO_EOF
7729$1
7730_LTECHO_EOF'
7731  }
7732  ECHO='func_fallback_echo'
7733fi
7734
7735# func_echo_all arg...
7736# Invoke $ECHO with all args, space-separated.
7737func_echo_all ()
7738{
7739    $ECHO ""
7740}
7741
7742case $ECHO in
7743  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7744printf "%s\n" "printf" >&6; } ;;
7745  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7746printf "%s\n" "print -r" >&6; } ;;
7747  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7748printf "%s\n" "cat" >&6; } ;;
7749esac
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7765printf %s "checking for a sed that does not truncate output... " >&6; }
7766if test ${ac_cv_path_SED+y}
7767then :
7768  printf %s "(cached) " >&6
7769else $as_nop
7770            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7771     for ac_i in 1 2 3 4 5 6 7; do
7772       ac_script="$ac_script$as_nl$ac_script"
7773     done
7774     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7775     { ac_script=; unset ac_script;}
7776     if test -z "$SED"; then
7777  ac_path_SED_found=false
7778  # Loop through the user's path and test for each of PROGNAME-LIST
7779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782  IFS=$as_save_IFS
7783  case $as_dir in #(((
7784    '') as_dir=./ ;;
7785    */) ;;
7786    *) as_dir=$as_dir/ ;;
7787  esac
7788    for ac_prog in sed gsed
7789   do
7790    for ac_exec_ext in '' $ac_executable_extensions; do
7791      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7792      as_fn_executable_p "$ac_path_SED" || continue
7793# Check for GNU ac_path_SED and select it if it is found.
7794  # Check for GNU $ac_path_SED
7795case `"$ac_path_SED" --version 2>&1` in
7796*GNU*)
7797  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7798*)
7799  ac_count=0
7800  printf %s 0123456789 >"conftest.in"
7801  while :
7802  do
7803    cat "conftest.in" "conftest.in" >"conftest.tmp"
7804    mv "conftest.tmp" "conftest.in"
7805    cp "conftest.in" "conftest.nl"
7806    printf "%s\n" '' >> "conftest.nl"
7807    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7808    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7809    as_fn_arith $ac_count + 1 && ac_count=$as_val
7810    if test $ac_count -gt ${ac_path_SED_max-0}; then
7811      # Best one so far, save it but keep looking for a better one
7812      ac_cv_path_SED="$ac_path_SED"
7813      ac_path_SED_max=$ac_count
7814    fi
7815    # 10*(2^10) chars as input seems more than enough
7816    test $ac_count -gt 10 && break
7817  done
7818  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7819esac
7820
7821      $ac_path_SED_found && break 3
7822    done
7823  done
7824  done
7825IFS=$as_save_IFS
7826  if test -z "$ac_cv_path_SED"; then
7827    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7828  fi
7829else
7830  ac_cv_path_SED=$SED
7831fi
7832
7833fi
7834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7835printf "%s\n" "$ac_cv_path_SED" >&6; }
7836 SED="$ac_cv_path_SED"
7837  rm -f conftest.sed
7838
7839test -z "$SED" && SED=sed
7840Xsed="$SED -e 1s/^X//"
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7853printf %s "checking for grep that handles long lines and -e... " >&6; }
7854if test ${ac_cv_path_GREP+y}
7855then :
7856  printf %s "(cached) " >&6
7857else $as_nop
7858  if test -z "$GREP"; then
7859  ac_path_GREP_found=false
7860  # Loop through the user's path and test for each of PROGNAME-LIST
7861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7863do
7864  IFS=$as_save_IFS
7865  case $as_dir in #(((
7866    '') as_dir=./ ;;
7867    */) ;;
7868    *) as_dir=$as_dir/ ;;
7869  esac
7870    for ac_prog in grep ggrep
7871   do
7872    for ac_exec_ext in '' $ac_executable_extensions; do
7873      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7874      as_fn_executable_p "$ac_path_GREP" || continue
7875# Check for GNU ac_path_GREP and select it if it is found.
7876  # Check for GNU $ac_path_GREP
7877case `"$ac_path_GREP" --version 2>&1` in
7878*GNU*)
7879  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7880*)
7881  ac_count=0
7882  printf %s 0123456789 >"conftest.in"
7883  while :
7884  do
7885    cat "conftest.in" "conftest.in" >"conftest.tmp"
7886    mv "conftest.tmp" "conftest.in"
7887    cp "conftest.in" "conftest.nl"
7888    printf "%s\n" 'GREP' >> "conftest.nl"
7889    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7890    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7891    as_fn_arith $ac_count + 1 && ac_count=$as_val
7892    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7893      # Best one so far, save it but keep looking for a better one
7894      ac_cv_path_GREP="$ac_path_GREP"
7895      ac_path_GREP_max=$ac_count
7896    fi
7897    # 10*(2^10) chars as input seems more than enough
7898    test $ac_count -gt 10 && break
7899  done
7900  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7901esac
7902
7903      $ac_path_GREP_found && break 3
7904    done
7905  done
7906  done
7907IFS=$as_save_IFS
7908  if test -z "$ac_cv_path_GREP"; then
7909    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7910  fi
7911else
7912  ac_cv_path_GREP=$GREP
7913fi
7914
7915fi
7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7917printf "%s\n" "$ac_cv_path_GREP" >&6; }
7918 GREP="$ac_cv_path_GREP"
7919
7920
7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7922printf %s "checking for egrep... " >&6; }
7923if test ${ac_cv_path_EGREP+y}
7924then :
7925  printf %s "(cached) " >&6
7926else $as_nop
7927  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7928   then ac_cv_path_EGREP="$GREP -E"
7929   else
7930     if test -z "$EGREP"; then
7931  ac_path_EGREP_found=false
7932  # Loop through the user's path and test for each of PROGNAME-LIST
7933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7935do
7936  IFS=$as_save_IFS
7937  case $as_dir in #(((
7938    '') as_dir=./ ;;
7939    */) ;;
7940    *) as_dir=$as_dir/ ;;
7941  esac
7942    for ac_prog in egrep
7943   do
7944    for ac_exec_ext in '' $ac_executable_extensions; do
7945      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7946      as_fn_executable_p "$ac_path_EGREP" || continue
7947# Check for GNU ac_path_EGREP and select it if it is found.
7948  # Check for GNU $ac_path_EGREP
7949case `"$ac_path_EGREP" --version 2>&1` in
7950*GNU*)
7951  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7952*)
7953  ac_count=0
7954  printf %s 0123456789 >"conftest.in"
7955  while :
7956  do
7957    cat "conftest.in" "conftest.in" >"conftest.tmp"
7958    mv "conftest.tmp" "conftest.in"
7959    cp "conftest.in" "conftest.nl"
7960    printf "%s\n" 'EGREP' >> "conftest.nl"
7961    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7962    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7963    as_fn_arith $ac_count + 1 && ac_count=$as_val
7964    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7965      # Best one so far, save it but keep looking for a better one
7966      ac_cv_path_EGREP="$ac_path_EGREP"
7967      ac_path_EGREP_max=$ac_count
7968    fi
7969    # 10*(2^10) chars as input seems more than enough
7970    test $ac_count -gt 10 && break
7971  done
7972  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7973esac
7974
7975      $ac_path_EGREP_found && break 3
7976    done
7977  done
7978  done
7979IFS=$as_save_IFS
7980  if test -z "$ac_cv_path_EGREP"; then
7981    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7982  fi
7983else
7984  ac_cv_path_EGREP=$EGREP
7985fi
7986
7987   fi
7988fi
7989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7990printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7991 EGREP="$ac_cv_path_EGREP"
7992
7993
7994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7995printf %s "checking for fgrep... " >&6; }
7996if test ${ac_cv_path_FGREP+y}
7997then :
7998  printf %s "(cached) " >&6
7999else $as_nop
8000  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8001   then ac_cv_path_FGREP="$GREP -F"
8002   else
8003     if test -z "$FGREP"; then
8004  ac_path_FGREP_found=false
8005  # Loop through the user's path and test for each of PROGNAME-LIST
8006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8008do
8009  IFS=$as_save_IFS
8010  case $as_dir in #(((
8011    '') as_dir=./ ;;
8012    */) ;;
8013    *) as_dir=$as_dir/ ;;
8014  esac
8015    for ac_prog in fgrep
8016   do
8017    for ac_exec_ext in '' $ac_executable_extensions; do
8018      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8019      as_fn_executable_p "$ac_path_FGREP" || continue
8020# Check for GNU ac_path_FGREP and select it if it is found.
8021  # Check for GNU $ac_path_FGREP
8022case `"$ac_path_FGREP" --version 2>&1` in
8023*GNU*)
8024  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8025*)
8026  ac_count=0
8027  printf %s 0123456789 >"conftest.in"
8028  while :
8029  do
8030    cat "conftest.in" "conftest.in" >"conftest.tmp"
8031    mv "conftest.tmp" "conftest.in"
8032    cp "conftest.in" "conftest.nl"
8033    printf "%s\n" 'FGREP' >> "conftest.nl"
8034    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8035    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8036    as_fn_arith $ac_count + 1 && ac_count=$as_val
8037    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8038      # Best one so far, save it but keep looking for a better one
8039      ac_cv_path_FGREP="$ac_path_FGREP"
8040      ac_path_FGREP_max=$ac_count
8041    fi
8042    # 10*(2^10) chars as input seems more than enough
8043    test $ac_count -gt 10 && break
8044  done
8045  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8046esac
8047
8048      $ac_path_FGREP_found && break 3
8049    done
8050  done
8051  done
8052IFS=$as_save_IFS
8053  if test -z "$ac_cv_path_FGREP"; then
8054    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8055  fi
8056else
8057  ac_cv_path_FGREP=$FGREP
8058fi
8059
8060   fi
8061fi
8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8063printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8064 FGREP="$ac_cv_path_FGREP"
8065
8066
8067test -z "$GREP" && GREP=grep
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087# Check whether --with-gnu-ld was given.
8088if test ${with_gnu_ld+y}
8089then :
8090  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8091else $as_nop
8092  with_gnu_ld=no
8093fi
8094
8095ac_prog=ld
8096if test yes = "$GCC"; then
8097  # Check if gcc -print-prog-name=ld gives a path.
8098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8099printf %s "checking for ld used by $CC... " >&6; }
8100  case $host in
8101  *-*-mingw*)
8102    # gcc leaves a trailing carriage return, which upsets mingw
8103    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8104  *)
8105    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8106  esac
8107  case $ac_prog in
8108    # Accept absolute paths.
8109    [\\/]* | ?:[\\/]*)
8110      re_direlt='/[^/][^/]*/\.\./'
8111      # Canonicalize the pathname of ld
8112      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8113      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8114	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8115      done
8116      test -z "$LD" && LD=$ac_prog
8117      ;;
8118  "")
8119    # If it fails, then pretend we aren't using GCC.
8120    ac_prog=ld
8121    ;;
8122  *)
8123    # If it is relative, then search for the first ld in PATH.
8124    with_gnu_ld=unknown
8125    ;;
8126  esac
8127elif test yes = "$with_gnu_ld"; then
8128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8129printf %s "checking for GNU ld... " >&6; }
8130else
8131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8132printf %s "checking for non-GNU ld... " >&6; }
8133fi
8134if test ${lt_cv_path_LD+y}
8135then :
8136  printf %s "(cached) " >&6
8137else $as_nop
8138  if test -z "$LD"; then
8139  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8140  for ac_dir in $PATH; do
8141    IFS=$lt_save_ifs
8142    test -z "$ac_dir" && ac_dir=.
8143    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8144      lt_cv_path_LD=$ac_dir/$ac_prog
8145      # Check to see if the program is GNU ld.  I'd rather use --version,
8146      # but apparently some variants of GNU ld only accept -v.
8147      # Break only if it was the GNU/non-GNU ld that we prefer.
8148      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8149      *GNU* | *'with BFD'*)
8150	test no != "$with_gnu_ld" && break
8151	;;
8152      *)
8153	test yes != "$with_gnu_ld" && break
8154	;;
8155      esac
8156    fi
8157  done
8158  IFS=$lt_save_ifs
8159else
8160  lt_cv_path_LD=$LD # Let the user override the test with a path.
8161fi
8162fi
8163
8164LD=$lt_cv_path_LD
8165if test -n "$LD"; then
8166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8167printf "%s\n" "$LD" >&6; }
8168else
8169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170printf "%s\n" "no" >&6; }
8171fi
8172test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8174printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8175if test ${lt_cv_prog_gnu_ld+y}
8176then :
8177  printf %s "(cached) " >&6
8178else $as_nop
8179  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8180case `$LD -v 2>&1 </dev/null` in
8181*GNU* | *'with BFD'*)
8182  lt_cv_prog_gnu_ld=yes
8183  ;;
8184*)
8185  lt_cv_prog_gnu_ld=no
8186  ;;
8187esac
8188fi
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8190printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8191with_gnu_ld=$lt_cv_prog_gnu_ld
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8202printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8203if test ${lt_cv_path_NM+y}
8204then :
8205  printf %s "(cached) " >&6
8206else $as_nop
8207  if test -n "$NM"; then
8208  # Let the user override the test.
8209  lt_cv_path_NM=$NM
8210else
8211  lt_nm_to_check=${ac_tool_prefix}nm
8212  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8213    lt_nm_to_check="$lt_nm_to_check nm"
8214  fi
8215  for lt_tmp_nm in $lt_nm_to_check; do
8216    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8217    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8218      IFS=$lt_save_ifs
8219      test -z "$ac_dir" && ac_dir=.
8220      tmp_nm=$ac_dir/$lt_tmp_nm
8221      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8222	# Check to see if the nm accepts a BSD-compat flag.
8223	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8224	#   nm: unknown option "B" ignored
8225	# Tru64's nm complains that /dev/null is an invalid object file
8226	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8227	case $build_os in
8228	mingw*) lt_bad_file=conftest.nm/nofile ;;
8229	*) lt_bad_file=/dev/null ;;
8230	esac
8231	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8232	*$lt_bad_file* | *'Invalid file or object type'*)
8233	  lt_cv_path_NM="$tmp_nm -B"
8234	  break 2
8235	  ;;
8236	*)
8237	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8238	  */dev/null*)
8239	    lt_cv_path_NM="$tmp_nm -p"
8240	    break 2
8241	    ;;
8242	  *)
8243	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8244	    continue # so that we can try to find one that supports BSD flags
8245	    ;;
8246	  esac
8247	  ;;
8248	esac
8249      fi
8250    done
8251    IFS=$lt_save_ifs
8252  done
8253  : ${lt_cv_path_NM=no}
8254fi
8255fi
8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8257printf "%s\n" "$lt_cv_path_NM" >&6; }
8258if test no != "$lt_cv_path_NM"; then
8259  NM=$lt_cv_path_NM
8260else
8261  # Didn't find any BSD compatible name lister, look for dumpbin.
8262  if test -n "$DUMPBIN"; then :
8263    # Let the user override the test.
8264  else
8265    if test -n "$ac_tool_prefix"; then
8266  for ac_prog in dumpbin "link -dump"
8267  do
8268    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271printf %s "checking for $ac_word... " >&6; }
8272if test ${ac_cv_prog_DUMPBIN+y}
8273then :
8274  printf %s "(cached) " >&6
8275else $as_nop
8276  if test -n "$DUMPBIN"; then
8277  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8278else
8279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282  IFS=$as_save_IFS
8283  case $as_dir in #(((
8284    '') as_dir=./ ;;
8285    */) ;;
8286    *) as_dir=$as_dir/ ;;
8287  esac
8288    for ac_exec_ext in '' $ac_executable_extensions; do
8289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8290    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8292    break 2
8293  fi
8294done
8295  done
8296IFS=$as_save_IFS
8297
8298fi
8299fi
8300DUMPBIN=$ac_cv_prog_DUMPBIN
8301if test -n "$DUMPBIN"; then
8302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8303printf "%s\n" "$DUMPBIN" >&6; }
8304else
8305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306printf "%s\n" "no" >&6; }
8307fi
8308
8309
8310    test -n "$DUMPBIN" && break
8311  done
8312fi
8313if test -z "$DUMPBIN"; then
8314  ac_ct_DUMPBIN=$DUMPBIN
8315  for ac_prog in dumpbin "link -dump"
8316do
8317  # Extract the first word of "$ac_prog", so it can be a program name with args.
8318set dummy $ac_prog; ac_word=$2
8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320printf %s "checking for $ac_word... " >&6; }
8321if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8322then :
8323  printf %s "(cached) " >&6
8324else $as_nop
8325  if test -n "$ac_ct_DUMPBIN"; then
8326  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8327else
8328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331  IFS=$as_save_IFS
8332  case $as_dir in #(((
8333    '') as_dir=./ ;;
8334    */) ;;
8335    *) as_dir=$as_dir/ ;;
8336  esac
8337    for ac_exec_ext in '' $ac_executable_extensions; do
8338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8339    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8341    break 2
8342  fi
8343done
8344  done
8345IFS=$as_save_IFS
8346
8347fi
8348fi
8349ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8350if test -n "$ac_ct_DUMPBIN"; then
8351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8352printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8353else
8354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355printf "%s\n" "no" >&6; }
8356fi
8357
8358
8359  test -n "$ac_ct_DUMPBIN" && break
8360done
8361
8362  if test "x$ac_ct_DUMPBIN" = x; then
8363    DUMPBIN=":"
8364  else
8365    case $cross_compiling:$ac_tool_warned in
8366yes:)
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369ac_tool_warned=yes ;;
8370esac
8371    DUMPBIN=$ac_ct_DUMPBIN
8372  fi
8373fi
8374
8375    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8376    *COFF*)
8377      DUMPBIN="$DUMPBIN -symbols -headers"
8378      ;;
8379    *)
8380      DUMPBIN=:
8381      ;;
8382    esac
8383  fi
8384
8385  if test : != "$DUMPBIN"; then
8386    NM=$DUMPBIN
8387  fi
8388fi
8389test -z "$NM" && NM=nm
8390
8391
8392
8393
8394
8395
8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8397printf %s "checking the name lister ($NM) interface... " >&6; }
8398if test ${lt_cv_nm_interface+y}
8399then :
8400  printf %s "(cached) " >&6
8401else $as_nop
8402  lt_cv_nm_interface="BSD nm"
8403  echo "int some_variable = 0;" > conftest.$ac_ext
8404  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8405  (eval "$ac_compile" 2>conftest.err)
8406  cat conftest.err >&5
8407  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8408  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8409  cat conftest.err >&5
8410  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8411  cat conftest.out >&5
8412  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8413    lt_cv_nm_interface="MS dumpbin"
8414  fi
8415  rm -f conftest*
8416fi
8417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8418printf "%s\n" "$lt_cv_nm_interface" >&6; }
8419
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8421printf %s "checking whether ln -s works... " >&6; }
8422LN_S=$as_ln_s
8423if test "$LN_S" = "ln -s"; then
8424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8425printf "%s\n" "yes" >&6; }
8426else
8427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8428printf "%s\n" "no, using $LN_S" >&6; }
8429fi
8430
8431# find the maximum length of command line arguments
8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8433printf %s "checking the maximum length of command line arguments... " >&6; }
8434if test ${lt_cv_sys_max_cmd_len+y}
8435then :
8436  printf %s "(cached) " >&6
8437else $as_nop
8438    i=0
8439  teststring=ABCD
8440
8441  case $build_os in
8442  msdosdjgpp*)
8443    # On DJGPP, this test can blow up pretty badly due to problems in libc
8444    # (any single argument exceeding 2000 bytes causes a buffer overrun
8445    # during glob expansion).  Even if it were fixed, the result of this
8446    # check would be larger than it should be.
8447    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8448    ;;
8449
8450  gnu*)
8451    # Under GNU Hurd, this test is not required because there is
8452    # no limit to the length of command line arguments.
8453    # Libtool will interpret -1 as no limit whatsoever
8454    lt_cv_sys_max_cmd_len=-1;
8455    ;;
8456
8457  cygwin* | mingw* | cegcc*)
8458    # On Win9x/ME, this test blows up -- it succeeds, but takes
8459    # about 5 minutes as the teststring grows exponentially.
8460    # Worse, since 9x/ME are not pre-emptively multitasking,
8461    # you end up with a "frozen" computer, even though with patience
8462    # the test eventually succeeds (with a max line length of 256k).
8463    # Instead, let's just punt: use the minimum linelength reported by
8464    # all of the supported platforms: 8192 (on NT/2K/XP).
8465    lt_cv_sys_max_cmd_len=8192;
8466    ;;
8467
8468  mint*)
8469    # On MiNT this can take a long time and run out of memory.
8470    lt_cv_sys_max_cmd_len=8192;
8471    ;;
8472
8473  amigaos*)
8474    # On AmigaOS with pdksh, this test takes hours, literally.
8475    # So we just punt and use a minimum line length of 8192.
8476    lt_cv_sys_max_cmd_len=8192;
8477    ;;
8478
8479  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8480    # This has been around since 386BSD, at least.  Likely further.
8481    if test -x /sbin/sysctl; then
8482      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8483    elif test -x /usr/sbin/sysctl; then
8484      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8485    else
8486      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8487    fi
8488    # And add a safety zone
8489    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8491    ;;
8492
8493  interix*)
8494    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8495    lt_cv_sys_max_cmd_len=196608
8496    ;;
8497
8498  os2*)
8499    # The test takes a long time on OS/2.
8500    lt_cv_sys_max_cmd_len=8192
8501    ;;
8502
8503  osf*)
8504    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8505    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8506    # nice to cause kernel panics so lets avoid the loop below.
8507    # First set a reasonable default.
8508    lt_cv_sys_max_cmd_len=16384
8509    #
8510    if test -x /sbin/sysconfig; then
8511      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8512        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8513      esac
8514    fi
8515    ;;
8516  sco3.2v5*)
8517    lt_cv_sys_max_cmd_len=102400
8518    ;;
8519  sysv5* | sco5v6* | sysv4.2uw2*)
8520    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8521    if test -n "$kargmax"; then
8522      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8523    else
8524      lt_cv_sys_max_cmd_len=32768
8525    fi
8526    ;;
8527  *)
8528    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8529    if test -n "$lt_cv_sys_max_cmd_len" && \
8530       test undefined != "$lt_cv_sys_max_cmd_len"; then
8531      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8532      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8533    else
8534      # Make teststring a little bigger before we do anything with it.
8535      # a 1K string should be a reasonable start.
8536      for i in 1 2 3 4 5 6 7 8; do
8537        teststring=$teststring$teststring
8538      done
8539      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8540      # If test is not a shell built-in, we'll probably end up computing a
8541      # maximum length that is only half of the actual maximum length, but
8542      # we can't tell.
8543      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8544	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8545	      test 17 != "$i" # 1/2 MB should be enough
8546      do
8547        i=`expr $i + 1`
8548        teststring=$teststring$teststring
8549      done
8550      # Only check the string length outside the loop.
8551      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8552      teststring=
8553      # Add a significant safety factor because C++ compilers can tack on
8554      # massive amounts of additional arguments before passing them to the
8555      # linker.  It appears as though 1/2 is a usable value.
8556      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8557    fi
8558    ;;
8559  esac
8560
8561fi
8562
8563if test -n "$lt_cv_sys_max_cmd_len"; then
8564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8565printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8566else
8567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8568printf "%s\n" "none" >&6; }
8569fi
8570max_cmd_len=$lt_cv_sys_max_cmd_len
8571
8572
8573
8574
8575
8576
8577: ${CP="cp -f"}
8578: ${MV="mv -f"}
8579: ${RM="rm -f"}
8580
8581if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8582  lt_unset=unset
8583else
8584  lt_unset=false
8585fi
8586
8587
8588
8589
8590
8591# test EBCDIC or ASCII
8592case `echo X|tr X '\101'` in
8593 A) # ASCII based system
8594    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8595  lt_SP2NL='tr \040 \012'
8596  lt_NL2SP='tr \015\012 \040\040'
8597  ;;
8598 *) # EBCDIC based system
8599  lt_SP2NL='tr \100 \n'
8600  lt_NL2SP='tr \r\n \100\100'
8601  ;;
8602esac
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8613printf %s "checking how to convert $build file names to $host format... " >&6; }
8614if test ${lt_cv_to_host_file_cmd+y}
8615then :
8616  printf %s "(cached) " >&6
8617else $as_nop
8618  case $host in
8619  *-*-mingw* )
8620    case $build in
8621      *-*-mingw* ) # actually msys
8622        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8623        ;;
8624      *-*-cygwin* )
8625        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8626        ;;
8627      * ) # otherwise, assume *nix
8628        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8629        ;;
8630    esac
8631    ;;
8632  *-*-cygwin* )
8633    case $build in
8634      *-*-mingw* ) # actually msys
8635        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8636        ;;
8637      *-*-cygwin* )
8638        lt_cv_to_host_file_cmd=func_convert_file_noop
8639        ;;
8640      * ) # otherwise, assume *nix
8641        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8642        ;;
8643    esac
8644    ;;
8645  * ) # unhandled hosts (and "normal" native builds)
8646    lt_cv_to_host_file_cmd=func_convert_file_noop
8647    ;;
8648esac
8649
8650fi
8651
8652to_host_file_cmd=$lt_cv_to_host_file_cmd
8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8654printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8655
8656
8657
8658
8659
8660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8661printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8662if test ${lt_cv_to_tool_file_cmd+y}
8663then :
8664  printf %s "(cached) " >&6
8665else $as_nop
8666  #assume ordinary cross tools, or native build.
8667lt_cv_to_tool_file_cmd=func_convert_file_noop
8668case $host in
8669  *-*-mingw* )
8670    case $build in
8671      *-*-mingw* ) # actually msys
8672        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8673        ;;
8674    esac
8675    ;;
8676esac
8677
8678fi
8679
8680to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8682printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8683
8684
8685
8686
8687
8688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8689printf %s "checking for $LD option to reload object files... " >&6; }
8690if test ${lt_cv_ld_reload_flag+y}
8691then :
8692  printf %s "(cached) " >&6
8693else $as_nop
8694  lt_cv_ld_reload_flag='-r'
8695fi
8696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8697printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8698reload_flag=$lt_cv_ld_reload_flag
8699case $reload_flag in
8700"" | " "*) ;;
8701*) reload_flag=" $reload_flag" ;;
8702esac
8703reload_cmds='$LD$reload_flag -o $output$reload_objs'
8704case $host_os in
8705  cygwin* | mingw* | pw32* | cegcc*)
8706    if test yes != "$GCC"; then
8707      reload_cmds=false
8708    fi
8709    ;;
8710  darwin*)
8711    if test yes = "$GCC"; then
8712      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8713    else
8714      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8715    fi
8716    ;;
8717esac
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727if test -n "$ac_tool_prefix"; then
8728  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8729set dummy ${ac_tool_prefix}objdump; ac_word=$2
8730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731printf %s "checking for $ac_word... " >&6; }
8732if test ${ac_cv_prog_OBJDUMP+y}
8733then :
8734  printf %s "(cached) " >&6
8735else $as_nop
8736  if test -n "$OBJDUMP"; then
8737  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8738else
8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742  IFS=$as_save_IFS
8743  case $as_dir in #(((
8744    '') as_dir=./ ;;
8745    */) ;;
8746    *) as_dir=$as_dir/ ;;
8747  esac
8748    for ac_exec_ext in '' $ac_executable_extensions; do
8749  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8750    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8751    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8752    break 2
8753  fi
8754done
8755  done
8756IFS=$as_save_IFS
8757
8758fi
8759fi
8760OBJDUMP=$ac_cv_prog_OBJDUMP
8761if test -n "$OBJDUMP"; then
8762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8763printf "%s\n" "$OBJDUMP" >&6; }
8764else
8765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766printf "%s\n" "no" >&6; }
8767fi
8768
8769
8770fi
8771if test -z "$ac_cv_prog_OBJDUMP"; then
8772  ac_ct_OBJDUMP=$OBJDUMP
8773  # Extract the first word of "objdump", so it can be a program name with args.
8774set dummy objdump; ac_word=$2
8775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776printf %s "checking for $ac_word... " >&6; }
8777if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8778then :
8779  printf %s "(cached) " >&6
8780else $as_nop
8781  if test -n "$ac_ct_OBJDUMP"; then
8782  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787  IFS=$as_save_IFS
8788  case $as_dir in #(((
8789    '') as_dir=./ ;;
8790    */) ;;
8791    *) as_dir=$as_dir/ ;;
8792  esac
8793    for ac_exec_ext in '' $ac_executable_extensions; do
8794  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8795    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8796    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8797    break 2
8798  fi
8799done
8800  done
8801IFS=$as_save_IFS
8802
8803fi
8804fi
8805ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8806if test -n "$ac_ct_OBJDUMP"; then
8807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8808printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8809else
8810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811printf "%s\n" "no" >&6; }
8812fi
8813
8814  if test "x$ac_ct_OBJDUMP" = x; then
8815    OBJDUMP="false"
8816  else
8817    case $cross_compiling:$ac_tool_warned in
8818yes:)
8819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8821ac_tool_warned=yes ;;
8822esac
8823    OBJDUMP=$ac_ct_OBJDUMP
8824  fi
8825else
8826  OBJDUMP="$ac_cv_prog_OBJDUMP"
8827fi
8828
8829test -z "$OBJDUMP" && OBJDUMP=objdump
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8840printf %s "checking how to recognize dependent libraries... " >&6; }
8841if test ${lt_cv_deplibs_check_method+y}
8842then :
8843  printf %s "(cached) " >&6
8844else $as_nop
8845  lt_cv_file_magic_cmd='$MAGIC_CMD'
8846lt_cv_file_magic_test_file=
8847lt_cv_deplibs_check_method='unknown'
8848# Need to set the preceding variable on all platforms that support
8849# interlibrary dependencies.
8850# 'none' -- dependencies not supported.
8851# 'unknown' -- same as none, but documents that we really don't know.
8852# 'pass_all' -- all dependencies passed with no checks.
8853# 'test_compile' -- check by making test program.
8854# 'file_magic [[regex]]' -- check by looking for files in library path
8855# that responds to the $file_magic_cmd with a given extended regex.
8856# If you have 'file' or equivalent on your system and you're not sure
8857# whether 'pass_all' will *always* work, you probably want this one.
8858
8859case $host_os in
8860aix[4-9]*)
8861  lt_cv_deplibs_check_method=pass_all
8862  ;;
8863
8864beos*)
8865  lt_cv_deplibs_check_method=pass_all
8866  ;;
8867
8868bsdi[45]*)
8869  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8870  lt_cv_file_magic_cmd='/usr/bin/file -L'
8871  lt_cv_file_magic_test_file=/shlib/libc.so
8872  ;;
8873
8874cygwin*)
8875  # func_win32_libid is a shell function defined in ltmain.sh
8876  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8877  lt_cv_file_magic_cmd='func_win32_libid'
8878  ;;
8879
8880mingw* | pw32*)
8881  # Base MSYS/MinGW do not provide the 'file' command needed by
8882  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8883  # unless we find 'file', for example because we are cross-compiling.
8884  if ( file / ) >/dev/null 2>&1; then
8885    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8886    lt_cv_file_magic_cmd='func_win32_libid'
8887  else
8888    # Keep this pattern in sync with the one in func_win32_libid.
8889    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8890    lt_cv_file_magic_cmd='$OBJDUMP -f'
8891  fi
8892  ;;
8893
8894cegcc*)
8895  # use the weaker test based on 'objdump'. See mingw*.
8896  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8897  lt_cv_file_magic_cmd='$OBJDUMP -f'
8898  ;;
8899
8900darwin* | rhapsody*)
8901  lt_cv_deplibs_check_method=pass_all
8902  ;;
8903
8904freebsd* | dragonfly*)
8905  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8906    case $host_cpu in
8907    i*86 )
8908      # Not sure whether the presence of OpenBSD here was a mistake.
8909      # Let's accept both of them until this is cleared up.
8910      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8911      lt_cv_file_magic_cmd=/usr/bin/file
8912      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8913      ;;
8914    esac
8915  else
8916    lt_cv_deplibs_check_method=pass_all
8917  fi
8918  ;;
8919
8920haiku*)
8921  lt_cv_deplibs_check_method=pass_all
8922  ;;
8923
8924hpux10.20* | hpux11*)
8925  lt_cv_file_magic_cmd=/usr/bin/file
8926  case $host_cpu in
8927  ia64*)
8928    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8929    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8930    ;;
8931  hppa*64*)
8932    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]'
8933    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8934    ;;
8935  *)
8936    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8937    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8938    ;;
8939  esac
8940  ;;
8941
8942interix[3-9]*)
8943  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8944  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8945  ;;
8946
8947irix5* | irix6* | nonstopux*)
8948  case $LD in
8949  *-32|*"-32 ") libmagic=32-bit;;
8950  *-n32|*"-n32 ") libmagic=N32;;
8951  *-64|*"-64 ") libmagic=64-bit;;
8952  *) libmagic=never-match;;
8953  esac
8954  lt_cv_deplibs_check_method=pass_all
8955  ;;
8956
8957# This must be glibc/ELF.
8958linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8959  lt_cv_deplibs_check_method=pass_all
8960  ;;
8961
8962netbsd*)
8963  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8964    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8965  else
8966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8967  fi
8968  ;;
8969
8970newos6*)
8971  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8972  lt_cv_file_magic_cmd=/usr/bin/file
8973  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8974  ;;
8975
8976*nto* | *qnx*)
8977  lt_cv_deplibs_check_method=pass_all
8978  ;;
8979
8980openbsd* | bitrig*)
8981  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8982    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8983  else
8984    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8985  fi
8986  ;;
8987
8988osf3* | osf4* | osf5*)
8989  lt_cv_deplibs_check_method=pass_all
8990  ;;
8991
8992rdos*)
8993  lt_cv_deplibs_check_method=pass_all
8994  ;;
8995
8996solaris*)
8997  lt_cv_deplibs_check_method=pass_all
8998  ;;
8999
9000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9001  lt_cv_deplibs_check_method=pass_all
9002  ;;
9003
9004sysv4 | sysv4.3*)
9005  case $host_vendor in
9006  motorola)
9007    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]'
9008    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9009    ;;
9010  ncr)
9011    lt_cv_deplibs_check_method=pass_all
9012    ;;
9013  sequent)
9014    lt_cv_file_magic_cmd='/bin/file'
9015    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9016    ;;
9017  sni)
9018    lt_cv_file_magic_cmd='/bin/file'
9019    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9020    lt_cv_file_magic_test_file=/lib/libc.so
9021    ;;
9022  siemens)
9023    lt_cv_deplibs_check_method=pass_all
9024    ;;
9025  pc)
9026    lt_cv_deplibs_check_method=pass_all
9027    ;;
9028  esac
9029  ;;
9030
9031tpf*)
9032  lt_cv_deplibs_check_method=pass_all
9033  ;;
9034os2*)
9035  lt_cv_deplibs_check_method=pass_all
9036  ;;
9037esac
9038
9039fi
9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9041printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9042
9043file_magic_glob=
9044want_nocaseglob=no
9045if test "$build" = "$host"; then
9046  case $host_os in
9047  mingw* | pw32*)
9048    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9049      want_nocaseglob=yes
9050    else
9051      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9052    fi
9053    ;;
9054  esac
9055fi
9056
9057file_magic_cmd=$lt_cv_file_magic_cmd
9058deplibs_check_method=$lt_cv_deplibs_check_method
9059test -z "$deplibs_check_method" && deplibs_check_method=unknown
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082if test -n "$ac_tool_prefix"; then
9083  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9084set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086printf %s "checking for $ac_word... " >&6; }
9087if test ${ac_cv_prog_DLLTOOL+y}
9088then :
9089  printf %s "(cached) " >&6
9090else $as_nop
9091  if test -n "$DLLTOOL"; then
9092  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9093else
9094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095for as_dir in $PATH
9096do
9097  IFS=$as_save_IFS
9098  case $as_dir in #(((
9099    '') as_dir=./ ;;
9100    */) ;;
9101    *) as_dir=$as_dir/ ;;
9102  esac
9103    for ac_exec_ext in '' $ac_executable_extensions; do
9104  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9105    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9106    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9107    break 2
9108  fi
9109done
9110  done
9111IFS=$as_save_IFS
9112
9113fi
9114fi
9115DLLTOOL=$ac_cv_prog_DLLTOOL
9116if test -n "$DLLTOOL"; then
9117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9118printf "%s\n" "$DLLTOOL" >&6; }
9119else
9120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121printf "%s\n" "no" >&6; }
9122fi
9123
9124
9125fi
9126if test -z "$ac_cv_prog_DLLTOOL"; then
9127  ac_ct_DLLTOOL=$DLLTOOL
9128  # Extract the first word of "dlltool", so it can be a program name with args.
9129set dummy dlltool; ac_word=$2
9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131printf %s "checking for $ac_word... " >&6; }
9132if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9133then :
9134  printf %s "(cached) " >&6
9135else $as_nop
9136  if test -n "$ac_ct_DLLTOOL"; then
9137  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9138else
9139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140for as_dir in $PATH
9141do
9142  IFS=$as_save_IFS
9143  case $as_dir in #(((
9144    '') as_dir=./ ;;
9145    */) ;;
9146    *) as_dir=$as_dir/ ;;
9147  esac
9148    for ac_exec_ext in '' $ac_executable_extensions; do
9149  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9150    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9151    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9152    break 2
9153  fi
9154done
9155  done
9156IFS=$as_save_IFS
9157
9158fi
9159fi
9160ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9161if test -n "$ac_ct_DLLTOOL"; then
9162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9163printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9164else
9165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166printf "%s\n" "no" >&6; }
9167fi
9168
9169  if test "x$ac_ct_DLLTOOL" = x; then
9170    DLLTOOL="false"
9171  else
9172    case $cross_compiling:$ac_tool_warned in
9173yes:)
9174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9175printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9176ac_tool_warned=yes ;;
9177esac
9178    DLLTOOL=$ac_ct_DLLTOOL
9179  fi
9180else
9181  DLLTOOL="$ac_cv_prog_DLLTOOL"
9182fi
9183
9184test -z "$DLLTOOL" && DLLTOOL=dlltool
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9196printf %s "checking how to associate runtime and link libraries... " >&6; }
9197if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9198then :
9199  printf %s "(cached) " >&6
9200else $as_nop
9201  lt_cv_sharedlib_from_linklib_cmd='unknown'
9202
9203case $host_os in
9204cygwin* | mingw* | pw32* | cegcc*)
9205  # two different shell functions defined in ltmain.sh;
9206  # decide which one to use based on capabilities of $DLLTOOL
9207  case `$DLLTOOL --help 2>&1` in
9208  *--identify-strict*)
9209    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9210    ;;
9211  *)
9212    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9213    ;;
9214  esac
9215  ;;
9216*)
9217  # fallback: assume linklib IS sharedlib
9218  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9219  ;;
9220esac
9221
9222fi
9223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9224printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9225sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9226test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9227
9228
9229
9230
9231
9232
9233
9234
9235if test -n "$ac_tool_prefix"; then
9236  for ac_prog in ar
9237  do
9238    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241printf %s "checking for $ac_word... " >&6; }
9242if test ${ac_cv_prog_AR+y}
9243then :
9244  printf %s "(cached) " >&6
9245else $as_nop
9246  if test -n "$AR"; then
9247  ac_cv_prog_AR="$AR" # Let the user override the test.
9248else
9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250for as_dir in $PATH
9251do
9252  IFS=$as_save_IFS
9253  case $as_dir in #(((
9254    '') as_dir=./ ;;
9255    */) ;;
9256    *) as_dir=$as_dir/ ;;
9257  esac
9258    for ac_exec_ext in '' $ac_executable_extensions; do
9259  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9260    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9261    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9262    break 2
9263  fi
9264done
9265  done
9266IFS=$as_save_IFS
9267
9268fi
9269fi
9270AR=$ac_cv_prog_AR
9271if test -n "$AR"; then
9272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9273printf "%s\n" "$AR" >&6; }
9274else
9275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276printf "%s\n" "no" >&6; }
9277fi
9278
9279
9280    test -n "$AR" && break
9281  done
9282fi
9283if test -z "$AR"; then
9284  ac_ct_AR=$AR
9285  for ac_prog in ar
9286do
9287  # Extract the first word of "$ac_prog", so it can be a program name with args.
9288set dummy $ac_prog; ac_word=$2
9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290printf %s "checking for $ac_word... " >&6; }
9291if test ${ac_cv_prog_ac_ct_AR+y}
9292then :
9293  printf %s "(cached) " >&6
9294else $as_nop
9295  if test -n "$ac_ct_AR"; then
9296  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9297else
9298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299for as_dir in $PATH
9300do
9301  IFS=$as_save_IFS
9302  case $as_dir in #(((
9303    '') as_dir=./ ;;
9304    */) ;;
9305    *) as_dir=$as_dir/ ;;
9306  esac
9307    for ac_exec_ext in '' $ac_executable_extensions; do
9308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9309    ac_cv_prog_ac_ct_AR="$ac_prog"
9310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9311    break 2
9312  fi
9313done
9314  done
9315IFS=$as_save_IFS
9316
9317fi
9318fi
9319ac_ct_AR=$ac_cv_prog_ac_ct_AR
9320if test -n "$ac_ct_AR"; then
9321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9322printf "%s\n" "$ac_ct_AR" >&6; }
9323else
9324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325printf "%s\n" "no" >&6; }
9326fi
9327
9328
9329  test -n "$ac_ct_AR" && break
9330done
9331
9332  if test "x$ac_ct_AR" = x; then
9333    AR="false"
9334  else
9335    case $cross_compiling:$ac_tool_warned in
9336yes:)
9337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9339ac_tool_warned=yes ;;
9340esac
9341    AR=$ac_ct_AR
9342  fi
9343fi
9344
9345: ${AR=ar}
9346: ${AR_FLAGS=cru}
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9359printf %s "checking for archiver @FILE support... " >&6; }
9360if test ${lt_cv_ar_at_file+y}
9361then :
9362  printf %s "(cached) " >&6
9363else $as_nop
9364  lt_cv_ar_at_file=no
9365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366/* end confdefs.h.  */
9367
9368int
9369main (void)
9370{
9371
9372  ;
9373  return 0;
9374}
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  echo conftest.$ac_objext > conftest.lst
9379      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9380      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9381  (eval $lt_ar_try) 2>&5
9382  ac_status=$?
9383  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9384  test $ac_status = 0; }
9385      if test 0 -eq "$ac_status"; then
9386	# Ensure the archiver fails upon bogus file names.
9387	rm -f conftest.$ac_objext libconftest.a
9388	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9389  (eval $lt_ar_try) 2>&5
9390  ac_status=$?
9391  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9392  test $ac_status = 0; }
9393	if test 0 -ne "$ac_status"; then
9394          lt_cv_ar_at_file=@
9395        fi
9396      fi
9397      rm -f conftest.* libconftest.a
9398
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9401
9402fi
9403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9404printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9405
9406if test no = "$lt_cv_ar_at_file"; then
9407  archiver_list_spec=
9408else
9409  archiver_list_spec=$lt_cv_ar_at_file
9410fi
9411
9412
9413
9414
9415
9416
9417
9418if test -n "$ac_tool_prefix"; then
9419  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9420set dummy ${ac_tool_prefix}strip; ac_word=$2
9421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422printf %s "checking for $ac_word... " >&6; }
9423if test ${ac_cv_prog_STRIP+y}
9424then :
9425  printf %s "(cached) " >&6
9426else $as_nop
9427  if test -n "$STRIP"; then
9428  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9429else
9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433  IFS=$as_save_IFS
9434  case $as_dir in #(((
9435    '') as_dir=./ ;;
9436    */) ;;
9437    *) as_dir=$as_dir/ ;;
9438  esac
9439    for ac_exec_ext in '' $ac_executable_extensions; do
9440  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9441    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9442    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9443    break 2
9444  fi
9445done
9446  done
9447IFS=$as_save_IFS
9448
9449fi
9450fi
9451STRIP=$ac_cv_prog_STRIP
9452if test -n "$STRIP"; then
9453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9454printf "%s\n" "$STRIP" >&6; }
9455else
9456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457printf "%s\n" "no" >&6; }
9458fi
9459
9460
9461fi
9462if test -z "$ac_cv_prog_STRIP"; then
9463  ac_ct_STRIP=$STRIP
9464  # Extract the first word of "strip", so it can be a program name with args.
9465set dummy strip; ac_word=$2
9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467printf %s "checking for $ac_word... " >&6; }
9468if test ${ac_cv_prog_ac_ct_STRIP+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  if test -n "$ac_ct_STRIP"; then
9473  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9474else
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478  IFS=$as_save_IFS
9479  case $as_dir in #(((
9480    '') as_dir=./ ;;
9481    */) ;;
9482    *) as_dir=$as_dir/ ;;
9483  esac
9484    for ac_exec_ext in '' $ac_executable_extensions; do
9485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9486    ac_cv_prog_ac_ct_STRIP="strip"
9487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9488    break 2
9489  fi
9490done
9491  done
9492IFS=$as_save_IFS
9493
9494fi
9495fi
9496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9497if test -n "$ac_ct_STRIP"; then
9498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9499printf "%s\n" "$ac_ct_STRIP" >&6; }
9500else
9501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502printf "%s\n" "no" >&6; }
9503fi
9504
9505  if test "x$ac_ct_STRIP" = x; then
9506    STRIP=":"
9507  else
9508    case $cross_compiling:$ac_tool_warned in
9509yes:)
9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9512ac_tool_warned=yes ;;
9513esac
9514    STRIP=$ac_ct_STRIP
9515  fi
9516else
9517  STRIP="$ac_cv_prog_STRIP"
9518fi
9519
9520test -z "$STRIP" && STRIP=:
9521
9522
9523
9524
9525
9526
9527if test -n "$ac_tool_prefix"; then
9528  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9529set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531printf %s "checking for $ac_word... " >&6; }
9532if test ${ac_cv_prog_RANLIB+y}
9533then :
9534  printf %s "(cached) " >&6
9535else $as_nop
9536  if test -n "$RANLIB"; then
9537  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9538else
9539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540for as_dir in $PATH
9541do
9542  IFS=$as_save_IFS
9543  case $as_dir in #(((
9544    '') as_dir=./ ;;
9545    */) ;;
9546    *) as_dir=$as_dir/ ;;
9547  esac
9548    for ac_exec_ext in '' $ac_executable_extensions; do
9549  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9550    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9551    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9552    break 2
9553  fi
9554done
9555  done
9556IFS=$as_save_IFS
9557
9558fi
9559fi
9560RANLIB=$ac_cv_prog_RANLIB
9561if test -n "$RANLIB"; then
9562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9563printf "%s\n" "$RANLIB" >&6; }
9564else
9565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566printf "%s\n" "no" >&6; }
9567fi
9568
9569
9570fi
9571if test -z "$ac_cv_prog_RANLIB"; then
9572  ac_ct_RANLIB=$RANLIB
9573  # Extract the first word of "ranlib", so it can be a program name with args.
9574set dummy ranlib; ac_word=$2
9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576printf %s "checking for $ac_word... " >&6; }
9577if test ${ac_cv_prog_ac_ct_RANLIB+y}
9578then :
9579  printf %s "(cached) " >&6
9580else $as_nop
9581  if test -n "$ac_ct_RANLIB"; then
9582  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9583else
9584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585for as_dir in $PATH
9586do
9587  IFS=$as_save_IFS
9588  case $as_dir in #(((
9589    '') as_dir=./ ;;
9590    */) ;;
9591    *) as_dir=$as_dir/ ;;
9592  esac
9593    for ac_exec_ext in '' $ac_executable_extensions; do
9594  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9595    ac_cv_prog_ac_ct_RANLIB="ranlib"
9596    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9597    break 2
9598  fi
9599done
9600  done
9601IFS=$as_save_IFS
9602
9603fi
9604fi
9605ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9606if test -n "$ac_ct_RANLIB"; then
9607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9608printf "%s\n" "$ac_ct_RANLIB" >&6; }
9609else
9610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611printf "%s\n" "no" >&6; }
9612fi
9613
9614  if test "x$ac_ct_RANLIB" = x; then
9615    RANLIB=":"
9616  else
9617    case $cross_compiling:$ac_tool_warned in
9618yes:)
9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9620printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9621ac_tool_warned=yes ;;
9622esac
9623    RANLIB=$ac_ct_RANLIB
9624  fi
9625else
9626  RANLIB="$ac_cv_prog_RANLIB"
9627fi
9628
9629test -z "$RANLIB" && RANLIB=:
9630
9631
9632
9633
9634
9635
9636# Determine commands to create old-style static archives.
9637old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9638old_postinstall_cmds='chmod 644 $oldlib'
9639old_postuninstall_cmds=
9640
9641if test -n "$RANLIB"; then
9642  case $host_os in
9643  bitrig* | openbsd*)
9644    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9645    ;;
9646  *)
9647    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9648    ;;
9649  esac
9650  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9651fi
9652
9653case $host_os in
9654  darwin*)
9655    lock_old_archive_extraction=yes ;;
9656  *)
9657    lock_old_archive_extraction=no ;;
9658esac
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698# If no C compiler was specified, use CC.
9699LTCC=${LTCC-"$CC"}
9700
9701# If no C compiler flags were specified, use CFLAGS.
9702LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9703
9704# Allow CC to be a program name with arguments.
9705compiler=$CC
9706
9707
9708# Check for command to grab the raw symbol name followed by C symbol from nm.
9709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9710printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9711if test ${lt_cv_sys_global_symbol_pipe+y}
9712then :
9713  printf %s "(cached) " >&6
9714else $as_nop
9715
9716# These are sane defaults that work on at least a few old systems.
9717# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9718
9719# Character class describing NM global symbol codes.
9720symcode='[BCDEGRST]'
9721
9722# Regexp to match symbols that can be accessed directly from C.
9723sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9724
9725# Define system-specific variables.
9726case $host_os in
9727aix*)
9728  symcode='[BCDT]'
9729  ;;
9730cygwin* | mingw* | pw32* | cegcc*)
9731  symcode='[ABCDGISTW]'
9732  ;;
9733hpux*)
9734  if test ia64 = "$host_cpu"; then
9735    symcode='[ABCDEGRST]'
9736  fi
9737  ;;
9738irix* | nonstopux*)
9739  symcode='[BCDEGRST]'
9740  ;;
9741osf*)
9742  symcode='[BCDEGQRST]'
9743  ;;
9744solaris*)
9745  symcode='[BDRT]'
9746  ;;
9747sco3.2v5*)
9748  symcode='[DT]'
9749  ;;
9750sysv4.2uw2*)
9751  symcode='[DT]'
9752  ;;
9753sysv5* | sco5v6* | unixware* | OpenUNIX*)
9754  symcode='[ABDT]'
9755  ;;
9756sysv4)
9757  symcode='[DFNSTU]'
9758  ;;
9759esac
9760
9761# If we're using GNU nm, then use its standard symbol codes.
9762case `$NM -V 2>&1` in
9763*GNU* | *'with BFD'*)
9764  symcode='[ABCDGIRSTW]' ;;
9765esac
9766
9767if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9768  # Gets list of data symbols to import.
9769  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9770  # Adjust the below global symbol transforms to fixup imported variables.
9771  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9772  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9773  lt_c_name_lib_hook="\
9774  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9775  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9776else
9777  # Disable hooks by default.
9778  lt_cv_sys_global_symbol_to_import=
9779  lt_cdecl_hook=
9780  lt_c_name_hook=
9781  lt_c_name_lib_hook=
9782fi
9783
9784# Transform an extracted symbol line into a proper C declaration.
9785# Some systems (esp. on ia64) link data and code symbols differently,
9786# so use this general approach.
9787lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9788$lt_cdecl_hook\
9789" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9790" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9791
9792# Transform an extracted symbol line into symbol name and symbol address
9793lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9794$lt_c_name_hook\
9795" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9796" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9797
9798# Transform an extracted symbol line into symbol name with lib prefix and
9799# symbol address.
9800lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9801$lt_c_name_lib_hook\
9802" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9803" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9804" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9805
9806# Handle CRLF in mingw tool chain
9807opt_cr=
9808case $build_os in
9809mingw*)
9810  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9811  ;;
9812esac
9813
9814# Try without a prefix underscore, then with it.
9815for ac_symprfx in "" "_"; do
9816
9817  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9818  symxfrm="\\1 $ac_symprfx\\2 \\2"
9819
9820  # Write the raw and C identifiers.
9821  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9822    # Fake it for dumpbin and say T for any non-static function,
9823    # D for any global variable and I for any imported variable.
9824    # Also find C++ and __fastcall symbols from MSVC++,
9825    # which start with @ or ?.
9826    lt_cv_sys_global_symbol_pipe="$AWK '"\
9827"     {last_section=section; section=\$ 3};"\
9828"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9829"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9830"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9831"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9832"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9833"     \$ 0!~/External *\|/{next};"\
9834"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9835"     {if(hide[section]) next};"\
9836"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9837"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9838"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9839"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9840"     ' prfx=^$ac_symprfx"
9841  else
9842    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9843  fi
9844  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9845
9846  # Check to see that the pipe works correctly.
9847  pipe_works=no
9848
9849  rm -f conftest*
9850  cat > conftest.$ac_ext <<_LT_EOF
9851#ifdef __cplusplus
9852extern "C" {
9853#endif
9854char nm_test_var;
9855void nm_test_func(void);
9856void nm_test_func(void){}
9857#ifdef __cplusplus
9858}
9859#endif
9860int main(){nm_test_var='a';nm_test_func();return(0);}
9861_LT_EOF
9862
9863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9864  (eval $ac_compile) 2>&5
9865  ac_status=$?
9866  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867  test $ac_status = 0; }; then
9868    # Now try to grab the symbols.
9869    nlist=conftest.nm
9870    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9871  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9872  ac_status=$?
9873  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874  test $ac_status = 0; } && test -s "$nlist"; then
9875      # Try sorting and uniquifying the output.
9876      if sort "$nlist" | uniq > "$nlist"T; then
9877	mv -f "$nlist"T "$nlist"
9878      else
9879	rm -f "$nlist"T
9880      fi
9881
9882      # Make sure that we snagged all the symbols we need.
9883      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9884	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9885	  cat <<_LT_EOF > conftest.$ac_ext
9886/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9887#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9888/* DATA imports from DLLs on WIN32 can't be const, because runtime
9889   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9890# define LT_DLSYM_CONST
9891#elif defined __osf__
9892/* This system does not cope well with relocations in const data.  */
9893# define LT_DLSYM_CONST
9894#else
9895# define LT_DLSYM_CONST const
9896#endif
9897
9898#ifdef __cplusplus
9899extern "C" {
9900#endif
9901
9902_LT_EOF
9903	  # Now generate the symbol file.
9904	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9905
9906	  cat <<_LT_EOF >> conftest.$ac_ext
9907
9908/* The mapping between symbol names and symbols.  */
9909LT_DLSYM_CONST struct {
9910  const char *name;
9911  void       *address;
9912}
9913lt__PROGRAM__LTX_preloaded_symbols[] =
9914{
9915  { "@PROGRAM@", (void *) 0 },
9916_LT_EOF
9917	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9918	  cat <<\_LT_EOF >> conftest.$ac_ext
9919  {0, (void *) 0}
9920};
9921
9922/* This works around a problem in FreeBSD linker */
9923#ifdef FREEBSD_WORKAROUND
9924static const void *lt_preloaded_setup() {
9925  return lt__PROGRAM__LTX_preloaded_symbols;
9926}
9927#endif
9928
9929#ifdef __cplusplus
9930}
9931#endif
9932_LT_EOF
9933	  # Now try linking the two files.
9934	  mv conftest.$ac_objext conftstm.$ac_objext
9935	  lt_globsym_save_LIBS=$LIBS
9936	  lt_globsym_save_CFLAGS=$CFLAGS
9937	  LIBS=conftstm.$ac_objext
9938	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9939	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9940  (eval $ac_link) 2>&5
9941  ac_status=$?
9942  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9943  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9944	    pipe_works=yes
9945	  fi
9946	  LIBS=$lt_globsym_save_LIBS
9947	  CFLAGS=$lt_globsym_save_CFLAGS
9948	else
9949	  echo "cannot find nm_test_func in $nlist" >&5
9950	fi
9951      else
9952	echo "cannot find nm_test_var in $nlist" >&5
9953      fi
9954    else
9955      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9956    fi
9957  else
9958    echo "$progname: failed program was:" >&5
9959    cat conftest.$ac_ext >&5
9960  fi
9961  rm -rf conftest* conftst*
9962
9963  # Do not use the global_symbol_pipe unless it works.
9964  if test yes = "$pipe_works"; then
9965    break
9966  else
9967    lt_cv_sys_global_symbol_pipe=
9968  fi
9969done
9970
9971fi
9972
9973if test -z "$lt_cv_sys_global_symbol_pipe"; then
9974  lt_cv_sys_global_symbol_to_cdecl=
9975fi
9976if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9978printf "%s\n" "failed" >&6; }
9979else
9980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9981printf "%s\n" "ok" >&6; }
9982fi
9983
9984# Response file support.
9985if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9986  nm_file_list_spec='@'
9987elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9988  nm_file_list_spec='@'
9989fi
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10028printf %s "checking for sysroot... " >&6; }
10029
10030# Check whether --with-sysroot was given.
10031if test ${with_sysroot+y}
10032then :
10033  withval=$with_sysroot;
10034else $as_nop
10035  with_sysroot=no
10036fi
10037
10038
10039lt_sysroot=
10040case $with_sysroot in #(
10041 yes)
10042   if test yes = "$GCC"; then
10043     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10044   fi
10045   ;; #(
10046 /*)
10047   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10048   ;; #(
10049 no|'')
10050   ;; #(
10051 *)
10052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10053printf "%s\n" "$with_sysroot" >&6; }
10054   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10055   ;;
10056esac
10057
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10059printf "%s\n" "${lt_sysroot:-no}" >&6; }
10060
10061
10062
10063
10064
10065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10066printf %s "checking for a working dd... " >&6; }
10067if test ${ac_cv_path_lt_DD+y}
10068then :
10069  printf %s "(cached) " >&6
10070else $as_nop
10071  printf 0123456789abcdef0123456789abcdef >conftest.i
10072cat conftest.i conftest.i >conftest2.i
10073: ${lt_DD:=$DD}
10074if test -z "$lt_DD"; then
10075  ac_path_lt_DD_found=false
10076  # Loop through the user's path and test for each of PROGNAME-LIST
10077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080  IFS=$as_save_IFS
10081  case $as_dir in #(((
10082    '') as_dir=./ ;;
10083    */) ;;
10084    *) as_dir=$as_dir/ ;;
10085  esac
10086    for ac_prog in dd
10087   do
10088    for ac_exec_ext in '' $ac_executable_extensions; do
10089      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10090      as_fn_executable_p "$ac_path_lt_DD" || continue
10091if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10092  cmp -s conftest.i conftest.out \
10093  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10094fi
10095      $ac_path_lt_DD_found && break 3
10096    done
10097  done
10098  done
10099IFS=$as_save_IFS
10100  if test -z "$ac_cv_path_lt_DD"; then
10101    :
10102  fi
10103else
10104  ac_cv_path_lt_DD=$lt_DD
10105fi
10106
10107rm -f conftest.i conftest2.i conftest.out
10108fi
10109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10110printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10111
10112
10113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10114printf %s "checking how to truncate binary pipes... " >&6; }
10115if test ${lt_cv_truncate_bin+y}
10116then :
10117  printf %s "(cached) " >&6
10118else $as_nop
10119  printf 0123456789abcdef0123456789abcdef >conftest.i
10120cat conftest.i conftest.i >conftest2.i
10121lt_cv_truncate_bin=
10122if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10123  cmp -s conftest.i conftest.out \
10124  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10125fi
10126rm -f conftest.i conftest2.i conftest.out
10127test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10128fi
10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10130printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10131
10132
10133
10134
10135
10136
10137
10138# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10139func_cc_basename ()
10140{
10141    for cc_temp in $*""; do
10142      case $cc_temp in
10143        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10144        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10145        \-*) ;;
10146        *) break;;
10147      esac
10148    done
10149    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10150}
10151
10152# Check whether --enable-libtool-lock was given.
10153if test ${enable_libtool_lock+y}
10154then :
10155  enableval=$enable_libtool_lock;
10156fi
10157
10158test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10159
10160# Some flags need to be propagated to the compiler or linker for good
10161# libtool support.
10162case $host in
10163ia64-*-hpux*)
10164  # Find out what ABI is being produced by ac_compile, and set mode
10165  # options accordingly.
10166  echo 'int i;' > conftest.$ac_ext
10167  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10168  (eval $ac_compile) 2>&5
10169  ac_status=$?
10170  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10171  test $ac_status = 0; }; then
10172    case `/usr/bin/file conftest.$ac_objext` in
10173      *ELF-32*)
10174	HPUX_IA64_MODE=32
10175	;;
10176      *ELF-64*)
10177	HPUX_IA64_MODE=64
10178	;;
10179    esac
10180  fi
10181  rm -rf conftest*
10182  ;;
10183*-*-irix6*)
10184  # Find out what ABI is being produced by ac_compile, and set linker
10185  # options accordingly.
10186  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10187  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10188  (eval $ac_compile) 2>&5
10189  ac_status=$?
10190  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191  test $ac_status = 0; }; then
10192    if test yes = "$lt_cv_prog_gnu_ld"; then
10193      case `/usr/bin/file conftest.$ac_objext` in
10194	*32-bit*)
10195	  LD="${LD-ld} -melf32bsmip"
10196	  ;;
10197	*N32*)
10198	  LD="${LD-ld} -melf32bmipn32"
10199	  ;;
10200	*64-bit*)
10201	  LD="${LD-ld} -melf64bmip"
10202	;;
10203      esac
10204    else
10205      case `/usr/bin/file conftest.$ac_objext` in
10206	*32-bit*)
10207	  LD="${LD-ld} -32"
10208	  ;;
10209	*N32*)
10210	  LD="${LD-ld} -n32"
10211	  ;;
10212	*64-bit*)
10213	  LD="${LD-ld} -64"
10214	  ;;
10215      esac
10216    fi
10217  fi
10218  rm -rf conftest*
10219  ;;
10220
10221mips64*-*linux*)
10222  # Find out what ABI is being produced by ac_compile, and set linker
10223  # options accordingly.
10224  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10225  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10226  (eval $ac_compile) 2>&5
10227  ac_status=$?
10228  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229  test $ac_status = 0; }; then
10230    emul=elf
10231    case `/usr/bin/file conftest.$ac_objext` in
10232      *32-bit*)
10233	emul="${emul}32"
10234	;;
10235      *64-bit*)
10236	emul="${emul}64"
10237	;;
10238    esac
10239    case `/usr/bin/file conftest.$ac_objext` in
10240      *MSB*)
10241	emul="${emul}btsmip"
10242	;;
10243      *LSB*)
10244	emul="${emul}ltsmip"
10245	;;
10246    esac
10247    case `/usr/bin/file conftest.$ac_objext` in
10248      *N32*)
10249	emul="${emul}n32"
10250	;;
10251    esac
10252    LD="${LD-ld} -m $emul"
10253  fi
10254  rm -rf conftest*
10255  ;;
10256
10257x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10258s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10259  # Find out what ABI is being produced by ac_compile, and set linker
10260  # options accordingly.  Note that the listed cases only cover the
10261  # situations where additional linker options are needed (such as when
10262  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10263  # vice versa); the common cases where no linker options are needed do
10264  # not appear in the list.
10265  echo 'int i;' > conftest.$ac_ext
10266  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10267  (eval $ac_compile) 2>&5
10268  ac_status=$?
10269  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270  test $ac_status = 0; }; then
10271    case `/usr/bin/file conftest.o` in
10272      *32-bit*)
10273	case $host in
10274	  x86_64-*kfreebsd*-gnu)
10275	    LD="${LD-ld} -m elf_i386_fbsd"
10276	    ;;
10277	  x86_64-*linux*)
10278	    case `/usr/bin/file conftest.o` in
10279	      *x86-64*)
10280		LD="${LD-ld} -m elf32_x86_64"
10281		;;
10282	      *)
10283		LD="${LD-ld} -m elf_i386"
10284		;;
10285	    esac
10286	    ;;
10287	  powerpc64le-*linux*)
10288	    LD="${LD-ld} -m elf32lppclinux"
10289	    ;;
10290	  powerpc64-*linux*)
10291	    LD="${LD-ld} -m elf32ppclinux"
10292	    ;;
10293	  s390x-*linux*)
10294	    LD="${LD-ld} -m elf_s390"
10295	    ;;
10296	  sparc64-*linux*)
10297	    LD="${LD-ld} -m elf32_sparc"
10298	    ;;
10299	esac
10300	;;
10301      *64-bit*)
10302	case $host in
10303	  x86_64-*kfreebsd*-gnu)
10304	    LD="${LD-ld} -m elf_x86_64_fbsd"
10305	    ;;
10306	  x86_64-*linux*)
10307	    LD="${LD-ld} -m elf_x86_64"
10308	    ;;
10309	  powerpcle-*linux*)
10310	    LD="${LD-ld} -m elf64lppc"
10311	    ;;
10312	  powerpc-*linux*)
10313	    LD="${LD-ld} -m elf64ppc"
10314	    ;;
10315	  s390*-*linux*|s390*-*tpf*)
10316	    LD="${LD-ld} -m elf64_s390"
10317	    ;;
10318	  sparc*-*linux*)
10319	    LD="${LD-ld} -m elf64_sparc"
10320	    ;;
10321	esac
10322	;;
10323    esac
10324  fi
10325  rm -rf conftest*
10326  ;;
10327
10328*-*-sco3.2v5*)
10329  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10330  SAVE_CFLAGS=$CFLAGS
10331  CFLAGS="$CFLAGS -belf"
10332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10333printf %s "checking whether the C compiler needs -belf... " >&6; }
10334if test ${lt_cv_cc_needs_belf+y}
10335then :
10336  printf %s "(cached) " >&6
10337else $as_nop
10338  ac_ext=c
10339ac_cpp='$CPP $CPPFLAGS'
10340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343
10344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346
10347int
10348main (void)
10349{
10350
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355if ac_fn_c_try_link "$LINENO"
10356then :
10357  lt_cv_cc_needs_belf=yes
10358else $as_nop
10359  lt_cv_cc_needs_belf=no
10360fi
10361rm -f core conftest.err conftest.$ac_objext conftest.beam \
10362    conftest$ac_exeext conftest.$ac_ext
10363     ac_ext=c
10364ac_cpp='$CPP $CPPFLAGS'
10365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367ac_compiler_gnu=$ac_cv_c_compiler_gnu
10368
10369fi
10370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10371printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10372  if test yes != "$lt_cv_cc_needs_belf"; then
10373    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10374    CFLAGS=$SAVE_CFLAGS
10375  fi
10376  ;;
10377*-*solaris*)
10378  # Find out what ABI is being produced by ac_compile, and set linker
10379  # options accordingly.
10380  echo 'int i;' > conftest.$ac_ext
10381  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10382  (eval $ac_compile) 2>&5
10383  ac_status=$?
10384  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10385  test $ac_status = 0; }; then
10386    case `/usr/bin/file conftest.o` in
10387    *64-bit*)
10388      case $lt_cv_prog_gnu_ld in
10389      yes*)
10390        case $host in
10391        i?86-*-solaris*|x86_64-*-solaris*)
10392          LD="${LD-ld} -m elf_x86_64"
10393          ;;
10394        sparc*-*-solaris*)
10395          LD="${LD-ld} -m elf64_sparc"
10396          ;;
10397        esac
10398        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10399        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10400          LD=${LD-ld}_sol2
10401        fi
10402        ;;
10403      *)
10404	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10405	  LD="${LD-ld} -64"
10406	fi
10407	;;
10408      esac
10409      ;;
10410    esac
10411  fi
10412  rm -rf conftest*
10413  ;;
10414esac
10415
10416need_locks=$enable_libtool_lock
10417
10418if test -n "$ac_tool_prefix"; then
10419  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10420set dummy ${ac_tool_prefix}mt; ac_word=$2
10421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422printf %s "checking for $ac_word... " >&6; }
10423if test ${ac_cv_prog_MANIFEST_TOOL+y}
10424then :
10425  printf %s "(cached) " >&6
10426else $as_nop
10427  if test -n "$MANIFEST_TOOL"; then
10428  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10429else
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433  IFS=$as_save_IFS
10434  case $as_dir in #(((
10435    '') as_dir=./ ;;
10436    */) ;;
10437    *) as_dir=$as_dir/ ;;
10438  esac
10439    for ac_exec_ext in '' $ac_executable_extensions; do
10440  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10441    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10442    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10443    break 2
10444  fi
10445done
10446  done
10447IFS=$as_save_IFS
10448
10449fi
10450fi
10451MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10452if test -n "$MANIFEST_TOOL"; then
10453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10454printf "%s\n" "$MANIFEST_TOOL" >&6; }
10455else
10456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457printf "%s\n" "no" >&6; }
10458fi
10459
10460
10461fi
10462if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10463  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10464  # Extract the first word of "mt", so it can be a program name with args.
10465set dummy mt; ac_word=$2
10466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467printf %s "checking for $ac_word... " >&6; }
10468if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10469then :
10470  printf %s "(cached) " >&6
10471else $as_nop
10472  if test -n "$ac_ct_MANIFEST_TOOL"; then
10473  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10474else
10475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $PATH
10477do
10478  IFS=$as_save_IFS
10479  case $as_dir in #(((
10480    '') as_dir=./ ;;
10481    */) ;;
10482    *) as_dir=$as_dir/ ;;
10483  esac
10484    for ac_exec_ext in '' $ac_executable_extensions; do
10485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10486    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10488    break 2
10489  fi
10490done
10491  done
10492IFS=$as_save_IFS
10493
10494fi
10495fi
10496ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10497if test -n "$ac_ct_MANIFEST_TOOL"; then
10498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10499printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10500else
10501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502printf "%s\n" "no" >&6; }
10503fi
10504
10505  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10506    MANIFEST_TOOL=":"
10507  else
10508    case $cross_compiling:$ac_tool_warned in
10509yes:)
10510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10512ac_tool_warned=yes ;;
10513esac
10514    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10515  fi
10516else
10517  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10518fi
10519
10520test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10522printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10523if test ${lt_cv_path_mainfest_tool+y}
10524then :
10525  printf %s "(cached) " >&6
10526else $as_nop
10527  lt_cv_path_mainfest_tool=no
10528  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10529  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10530  cat conftest.err >&5
10531  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10532    lt_cv_path_mainfest_tool=yes
10533  fi
10534  rm -f conftest*
10535fi
10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10537printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10538if test yes != "$lt_cv_path_mainfest_tool"; then
10539  MANIFEST_TOOL=:
10540fi
10541
10542
10543
10544
10545
10546
10547  case $host_os in
10548    rhapsody* | darwin*)
10549    if test -n "$ac_tool_prefix"; then
10550  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10551set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553printf %s "checking for $ac_word... " >&6; }
10554if test ${ac_cv_prog_DSYMUTIL+y}
10555then :
10556  printf %s "(cached) " >&6
10557else $as_nop
10558  if test -n "$DSYMUTIL"; then
10559  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10560else
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564  IFS=$as_save_IFS
10565  case $as_dir in #(((
10566    '') as_dir=./ ;;
10567    */) ;;
10568    *) as_dir=$as_dir/ ;;
10569  esac
10570    for ac_exec_ext in '' $ac_executable_extensions; do
10571  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10572    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10573    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10574    break 2
10575  fi
10576done
10577  done
10578IFS=$as_save_IFS
10579
10580fi
10581fi
10582DSYMUTIL=$ac_cv_prog_DSYMUTIL
10583if test -n "$DSYMUTIL"; then
10584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10585printf "%s\n" "$DSYMUTIL" >&6; }
10586else
10587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588printf "%s\n" "no" >&6; }
10589fi
10590
10591
10592fi
10593if test -z "$ac_cv_prog_DSYMUTIL"; then
10594  ac_ct_DSYMUTIL=$DSYMUTIL
10595  # Extract the first word of "dsymutil", so it can be a program name with args.
10596set dummy dsymutil; ac_word=$2
10597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598printf %s "checking for $ac_word... " >&6; }
10599if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10600then :
10601  printf %s "(cached) " >&6
10602else $as_nop
10603  if test -n "$ac_ct_DSYMUTIL"; then
10604  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10605else
10606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607for as_dir in $PATH
10608do
10609  IFS=$as_save_IFS
10610  case $as_dir in #(((
10611    '') as_dir=./ ;;
10612    */) ;;
10613    *) as_dir=$as_dir/ ;;
10614  esac
10615    for ac_exec_ext in '' $ac_executable_extensions; do
10616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10617    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10619    break 2
10620  fi
10621done
10622  done
10623IFS=$as_save_IFS
10624
10625fi
10626fi
10627ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10628if test -n "$ac_ct_DSYMUTIL"; then
10629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10630printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10631else
10632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633printf "%s\n" "no" >&6; }
10634fi
10635
10636  if test "x$ac_ct_DSYMUTIL" = x; then
10637    DSYMUTIL=":"
10638  else
10639    case $cross_compiling:$ac_tool_warned in
10640yes:)
10641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10642printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10643ac_tool_warned=yes ;;
10644esac
10645    DSYMUTIL=$ac_ct_DSYMUTIL
10646  fi
10647else
10648  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10649fi
10650
10651    if test -n "$ac_tool_prefix"; then
10652  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10653set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655printf %s "checking for $ac_word... " >&6; }
10656if test ${ac_cv_prog_NMEDIT+y}
10657then :
10658  printf %s "(cached) " >&6
10659else $as_nop
10660  if test -n "$NMEDIT"; then
10661  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666  IFS=$as_save_IFS
10667  case $as_dir in #(((
10668    '') as_dir=./ ;;
10669    */) ;;
10670    *) as_dir=$as_dir/ ;;
10671  esac
10672    for ac_exec_ext in '' $ac_executable_extensions; do
10673  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10674    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10675    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10676    break 2
10677  fi
10678done
10679  done
10680IFS=$as_save_IFS
10681
10682fi
10683fi
10684NMEDIT=$ac_cv_prog_NMEDIT
10685if test -n "$NMEDIT"; then
10686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10687printf "%s\n" "$NMEDIT" >&6; }
10688else
10689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690printf "%s\n" "no" >&6; }
10691fi
10692
10693
10694fi
10695if test -z "$ac_cv_prog_NMEDIT"; then
10696  ac_ct_NMEDIT=$NMEDIT
10697  # Extract the first word of "nmedit", so it can be a program name with args.
10698set dummy nmedit; ac_word=$2
10699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700printf %s "checking for $ac_word... " >&6; }
10701if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10702then :
10703  printf %s "(cached) " >&6
10704else $as_nop
10705  if test -n "$ac_ct_NMEDIT"; then
10706  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10707else
10708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709for as_dir in $PATH
10710do
10711  IFS=$as_save_IFS
10712  case $as_dir in #(((
10713    '') as_dir=./ ;;
10714    */) ;;
10715    *) as_dir=$as_dir/ ;;
10716  esac
10717    for ac_exec_ext in '' $ac_executable_extensions; do
10718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10719    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10721    break 2
10722  fi
10723done
10724  done
10725IFS=$as_save_IFS
10726
10727fi
10728fi
10729ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10730if test -n "$ac_ct_NMEDIT"; then
10731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10732printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10733else
10734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735printf "%s\n" "no" >&6; }
10736fi
10737
10738  if test "x$ac_ct_NMEDIT" = x; then
10739    NMEDIT=":"
10740  else
10741    case $cross_compiling:$ac_tool_warned in
10742yes:)
10743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10744printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10745ac_tool_warned=yes ;;
10746esac
10747    NMEDIT=$ac_ct_NMEDIT
10748  fi
10749else
10750  NMEDIT="$ac_cv_prog_NMEDIT"
10751fi
10752
10753    if test -n "$ac_tool_prefix"; then
10754  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10755set dummy ${ac_tool_prefix}lipo; ac_word=$2
10756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757printf %s "checking for $ac_word... " >&6; }
10758if test ${ac_cv_prog_LIPO+y}
10759then :
10760  printf %s "(cached) " >&6
10761else $as_nop
10762  if test -n "$LIPO"; then
10763  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10764else
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768  IFS=$as_save_IFS
10769  case $as_dir in #(((
10770    '') as_dir=./ ;;
10771    */) ;;
10772    *) as_dir=$as_dir/ ;;
10773  esac
10774    for ac_exec_ext in '' $ac_executable_extensions; do
10775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10776    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10778    break 2
10779  fi
10780done
10781  done
10782IFS=$as_save_IFS
10783
10784fi
10785fi
10786LIPO=$ac_cv_prog_LIPO
10787if test -n "$LIPO"; then
10788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10789printf "%s\n" "$LIPO" >&6; }
10790else
10791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792printf "%s\n" "no" >&6; }
10793fi
10794
10795
10796fi
10797if test -z "$ac_cv_prog_LIPO"; then
10798  ac_ct_LIPO=$LIPO
10799  # Extract the first word of "lipo", so it can be a program name with args.
10800set dummy lipo; ac_word=$2
10801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802printf %s "checking for $ac_word... " >&6; }
10803if test ${ac_cv_prog_ac_ct_LIPO+y}
10804then :
10805  printf %s "(cached) " >&6
10806else $as_nop
10807  if test -n "$ac_ct_LIPO"; then
10808  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10809else
10810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811for as_dir in $PATH
10812do
10813  IFS=$as_save_IFS
10814  case $as_dir in #(((
10815    '') as_dir=./ ;;
10816    */) ;;
10817    *) as_dir=$as_dir/ ;;
10818  esac
10819    for ac_exec_ext in '' $ac_executable_extensions; do
10820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10821    ac_cv_prog_ac_ct_LIPO="lipo"
10822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10823    break 2
10824  fi
10825done
10826  done
10827IFS=$as_save_IFS
10828
10829fi
10830fi
10831ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10832if test -n "$ac_ct_LIPO"; then
10833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10834printf "%s\n" "$ac_ct_LIPO" >&6; }
10835else
10836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837printf "%s\n" "no" >&6; }
10838fi
10839
10840  if test "x$ac_ct_LIPO" = x; then
10841    LIPO=":"
10842  else
10843    case $cross_compiling:$ac_tool_warned in
10844yes:)
10845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10846printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10847ac_tool_warned=yes ;;
10848esac
10849    LIPO=$ac_ct_LIPO
10850  fi
10851else
10852  LIPO="$ac_cv_prog_LIPO"
10853fi
10854
10855    if test -n "$ac_tool_prefix"; then
10856  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10857set dummy ${ac_tool_prefix}otool; ac_word=$2
10858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859printf %s "checking for $ac_word... " >&6; }
10860if test ${ac_cv_prog_OTOOL+y}
10861then :
10862  printf %s "(cached) " >&6
10863else $as_nop
10864  if test -n "$OTOOL"; then
10865  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10866else
10867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870  IFS=$as_save_IFS
10871  case $as_dir in #(((
10872    '') as_dir=./ ;;
10873    */) ;;
10874    *) as_dir=$as_dir/ ;;
10875  esac
10876    for ac_exec_ext in '' $ac_executable_extensions; do
10877  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10878    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10879    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10880    break 2
10881  fi
10882done
10883  done
10884IFS=$as_save_IFS
10885
10886fi
10887fi
10888OTOOL=$ac_cv_prog_OTOOL
10889if test -n "$OTOOL"; then
10890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10891printf "%s\n" "$OTOOL" >&6; }
10892else
10893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894printf "%s\n" "no" >&6; }
10895fi
10896
10897
10898fi
10899if test -z "$ac_cv_prog_OTOOL"; then
10900  ac_ct_OTOOL=$OTOOL
10901  # Extract the first word of "otool", so it can be a program name with args.
10902set dummy otool; ac_word=$2
10903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904printf %s "checking for $ac_word... " >&6; }
10905if test ${ac_cv_prog_ac_ct_OTOOL+y}
10906then :
10907  printf %s "(cached) " >&6
10908else $as_nop
10909  if test -n "$ac_ct_OTOOL"; then
10910  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10911else
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915  IFS=$as_save_IFS
10916  case $as_dir in #(((
10917    '') as_dir=./ ;;
10918    */) ;;
10919    *) as_dir=$as_dir/ ;;
10920  esac
10921    for ac_exec_ext in '' $ac_executable_extensions; do
10922  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10923    ac_cv_prog_ac_ct_OTOOL="otool"
10924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10925    break 2
10926  fi
10927done
10928  done
10929IFS=$as_save_IFS
10930
10931fi
10932fi
10933ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10934if test -n "$ac_ct_OTOOL"; then
10935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10936printf "%s\n" "$ac_ct_OTOOL" >&6; }
10937else
10938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939printf "%s\n" "no" >&6; }
10940fi
10941
10942  if test "x$ac_ct_OTOOL" = x; then
10943    OTOOL=":"
10944  else
10945    case $cross_compiling:$ac_tool_warned in
10946yes:)
10947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10949ac_tool_warned=yes ;;
10950esac
10951    OTOOL=$ac_ct_OTOOL
10952  fi
10953else
10954  OTOOL="$ac_cv_prog_OTOOL"
10955fi
10956
10957    if test -n "$ac_tool_prefix"; then
10958  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10959set dummy ${ac_tool_prefix}otool64; ac_word=$2
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961printf %s "checking for $ac_word... " >&6; }
10962if test ${ac_cv_prog_OTOOL64+y}
10963then :
10964  printf %s "(cached) " >&6
10965else $as_nop
10966  if test -n "$OTOOL64"; then
10967  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10968else
10969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970for as_dir in $PATH
10971do
10972  IFS=$as_save_IFS
10973  case $as_dir in #(((
10974    '') as_dir=./ ;;
10975    */) ;;
10976    *) as_dir=$as_dir/ ;;
10977  esac
10978    for ac_exec_ext in '' $ac_executable_extensions; do
10979  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10980    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10981    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10982    break 2
10983  fi
10984done
10985  done
10986IFS=$as_save_IFS
10987
10988fi
10989fi
10990OTOOL64=$ac_cv_prog_OTOOL64
10991if test -n "$OTOOL64"; then
10992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10993printf "%s\n" "$OTOOL64" >&6; }
10994else
10995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996printf "%s\n" "no" >&6; }
10997fi
10998
10999
11000fi
11001if test -z "$ac_cv_prog_OTOOL64"; then
11002  ac_ct_OTOOL64=$OTOOL64
11003  # Extract the first word of "otool64", so it can be a program name with args.
11004set dummy otool64; ac_word=$2
11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006printf %s "checking for $ac_word... " >&6; }
11007if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11008then :
11009  printf %s "(cached) " >&6
11010else $as_nop
11011  if test -n "$ac_ct_OTOOL64"; then
11012  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11013else
11014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015for as_dir in $PATH
11016do
11017  IFS=$as_save_IFS
11018  case $as_dir in #(((
11019    '') as_dir=./ ;;
11020    */) ;;
11021    *) as_dir=$as_dir/ ;;
11022  esac
11023    for ac_exec_ext in '' $ac_executable_extensions; do
11024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11025    ac_cv_prog_ac_ct_OTOOL64="otool64"
11026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11027    break 2
11028  fi
11029done
11030  done
11031IFS=$as_save_IFS
11032
11033fi
11034fi
11035ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11036if test -n "$ac_ct_OTOOL64"; then
11037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11038printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11039else
11040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041printf "%s\n" "no" >&6; }
11042fi
11043
11044  if test "x$ac_ct_OTOOL64" = x; then
11045    OTOOL64=":"
11046  else
11047    case $cross_compiling:$ac_tool_warned in
11048yes:)
11049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11051ac_tool_warned=yes ;;
11052esac
11053    OTOOL64=$ac_ct_OTOOL64
11054  fi
11055else
11056  OTOOL64="$ac_cv_prog_OTOOL64"
11057fi
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11086printf %s "checking for -single_module linker flag... " >&6; }
11087if test ${lt_cv_apple_cc_single_mod+y}
11088then :
11089  printf %s "(cached) " >&6
11090else $as_nop
11091  lt_cv_apple_cc_single_mod=no
11092      if test -z "$LT_MULTI_MODULE"; then
11093	# By default we will add the -single_module flag. You can override
11094	# by either setting the environment variable LT_MULTI_MODULE
11095	# non-empty at configure time, or by adding -multi_module to the
11096	# link flags.
11097	rm -rf libconftest.dylib*
11098	echo "int foo(void){return 1;}" > conftest.c
11099	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11100-dynamiclib -Wl,-single_module conftest.c" >&5
11101	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11102	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11103        _lt_result=$?
11104	# If there is a non-empty error log, and "single_module"
11105	# appears in it, assume the flag caused a linker warning
11106        if test -s conftest.err && $GREP single_module conftest.err; then
11107	  cat conftest.err >&5
11108	# Otherwise, if the output was created with a 0 exit code from
11109	# the compiler, it worked.
11110	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11111	  lt_cv_apple_cc_single_mod=yes
11112	else
11113	  cat conftest.err >&5
11114	fi
11115	rm -rf libconftest.dylib*
11116	rm -f conftest.*
11117      fi
11118fi
11119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11120printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11121
11122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11123printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11124if test ${lt_cv_ld_exported_symbols_list+y}
11125then :
11126  printf %s "(cached) " >&6
11127else $as_nop
11128  lt_cv_ld_exported_symbols_list=no
11129      save_LDFLAGS=$LDFLAGS
11130      echo "_main" > conftest.sym
11131      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133/* end confdefs.h.  */
11134
11135int
11136main (void)
11137{
11138
11139  ;
11140  return 0;
11141}
11142_ACEOF
11143if ac_fn_c_try_link "$LINENO"
11144then :
11145  lt_cv_ld_exported_symbols_list=yes
11146else $as_nop
11147  lt_cv_ld_exported_symbols_list=no
11148fi
11149rm -f core conftest.err conftest.$ac_objext conftest.beam \
11150    conftest$ac_exeext conftest.$ac_ext
11151	LDFLAGS=$save_LDFLAGS
11152
11153fi
11154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11155printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11156
11157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11158printf %s "checking for -force_load linker flag... " >&6; }
11159if test ${lt_cv_ld_force_load+y}
11160then :
11161  printf %s "(cached) " >&6
11162else $as_nop
11163  lt_cv_ld_force_load=no
11164      cat > conftest.c << _LT_EOF
11165int forced_loaded() { return 2;}
11166_LT_EOF
11167      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11168      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11169      echo "$AR cru libconftest.a conftest.o" >&5
11170      $AR cru libconftest.a conftest.o 2>&5
11171      echo "$RANLIB libconftest.a" >&5
11172      $RANLIB libconftest.a 2>&5
11173      cat > conftest.c << _LT_EOF
11174int main() { return 0;}
11175_LT_EOF
11176      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11177      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11178      _lt_result=$?
11179      if test -s conftest.err && $GREP force_load conftest.err; then
11180	cat conftest.err >&5
11181      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11182	lt_cv_ld_force_load=yes
11183      else
11184	cat conftest.err >&5
11185      fi
11186        rm -f conftest.err libconftest.a conftest conftest.c
11187        rm -rf conftest.dSYM
11188
11189fi
11190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11191printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11192    case $host_os in
11193    rhapsody* | darwin1.[012])
11194      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11195    darwin1.*)
11196      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11197    darwin*)
11198      case $MACOSX_DEPLOYMENT_TARGET,$host in
11199	10.[012],*|,*powerpc*-darwin[5-8]*)
11200	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11201	*)
11202	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11203      esac
11204    ;;
11205  esac
11206    if test yes = "$lt_cv_apple_cc_single_mod"; then
11207      _lt_dar_single_mod='$single_module'
11208    fi
11209    if test yes = "$lt_cv_ld_exported_symbols_list"; then
11210      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11211    else
11212      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11213    fi
11214    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11215      _lt_dsymutil='~$DSYMUTIL $lib || :'
11216    else
11217      _lt_dsymutil=
11218    fi
11219    ;;
11220  esac
11221
11222# func_munge_path_list VARIABLE PATH
11223# -----------------------------------
11224# VARIABLE is name of variable containing _space_ separated list of
11225# directories to be munged by the contents of PATH, which is string
11226# having a format:
11227# "DIR[:DIR]:"
11228#       string "DIR[ DIR]" will be prepended to VARIABLE
11229# ":DIR[:DIR]"
11230#       string "DIR[ DIR]" will be appended to VARIABLE
11231# "DIRP[:DIRP]::[DIRA:]DIRA"
11232#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11233#       "DIRA[ DIRA]" will be appended to VARIABLE
11234# "DIR[:DIR]"
11235#       VARIABLE will be replaced by "DIR[ DIR]"
11236func_munge_path_list ()
11237{
11238    case x$2 in
11239    x)
11240        ;;
11241    *:)
11242        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11243        ;;
11244    x:*)
11245        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11246        ;;
11247    *::*)
11248        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11249        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11250        ;;
11251    *)
11252        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11253        ;;
11254    esac
11255}
11256
11257ac_header= ac_cache=
11258for ac_item in $ac_header_c_list
11259do
11260  if test $ac_cache; then
11261    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
11262    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
11263      printf "%s\n" "#define $ac_item 1" >> confdefs.h
11264    fi
11265    ac_header= ac_cache=
11266  elif test $ac_header; then
11267    ac_cache=$ac_item
11268  else
11269    ac_header=$ac_item
11270  fi
11271done
11272
11273
11274
11275
11276
11277
11278
11279
11280if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
11281then :
11282
11283printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
11284
11285fi
11286ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11287"
11288if test "x$ac_cv_header_dlfcn_h" = xyes
11289then :
11290  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11291
11292fi
11293
11294
11295
11296
11297func_stripname_cnf ()
11298{
11299  case $2 in
11300  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11301  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11302  esac
11303} # func_stripname_cnf
11304
11305
11306
11307
11308
11309# Set options
11310# Check whether --enable-static was given.
11311if test ${enable_static+y}
11312then :
11313  enableval=$enable_static; p=${PACKAGE-default}
11314    case $enableval in
11315    yes) enable_static=yes ;;
11316    no) enable_static=no ;;
11317    *)
11318     enable_static=no
11319      # Look at the argument we got.  We use all the common list separators.
11320      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11321      for pkg in $enableval; do
11322	IFS=$lt_save_ifs
11323	if test "X$pkg" = "X$p"; then
11324	  enable_static=yes
11325	fi
11326      done
11327      IFS=$lt_save_ifs
11328      ;;
11329    esac
11330else $as_nop
11331  enable_static=no
11332fi
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343        enable_dlopen=no
11344
11345
11346  enable_win32_dll=no
11347
11348
11349            # Check whether --enable-shared was given.
11350if test ${enable_shared+y}
11351then :
11352  enableval=$enable_shared; p=${PACKAGE-default}
11353    case $enableval in
11354    yes) enable_shared=yes ;;
11355    no) enable_shared=no ;;
11356    *)
11357      enable_shared=no
11358      # Look at the argument we got.  We use all the common list separators.
11359      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11360      for pkg in $enableval; do
11361	IFS=$lt_save_ifs
11362	if test "X$pkg" = "X$p"; then
11363	  enable_shared=yes
11364	fi
11365      done
11366      IFS=$lt_save_ifs
11367      ;;
11368    esac
11369else $as_nop
11370  enable_shared=yes
11371fi
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383# Check whether --with-pic was given.
11384if test ${with_pic+y}
11385then :
11386  withval=$with_pic; lt_p=${PACKAGE-default}
11387    case $withval in
11388    yes|no) pic_mode=$withval ;;
11389    *)
11390      pic_mode=default
11391      # Look at the argument we got.  We use all the common list separators.
11392      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11393      for lt_pkg in $withval; do
11394	IFS=$lt_save_ifs
11395	if test "X$lt_pkg" = "X$lt_p"; then
11396	  pic_mode=yes
11397	fi
11398      done
11399      IFS=$lt_save_ifs
11400      ;;
11401    esac
11402else $as_nop
11403  pic_mode=default
11404fi
11405
11406
11407
11408
11409
11410
11411
11412
11413  # Check whether --enable-fast-install was given.
11414if test ${enable_fast_install+y}
11415then :
11416  enableval=$enable_fast_install; p=${PACKAGE-default}
11417    case $enableval in
11418    yes) enable_fast_install=yes ;;
11419    no) enable_fast_install=no ;;
11420    *)
11421      enable_fast_install=no
11422      # Look at the argument we got.  We use all the common list separators.
11423      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11424      for pkg in $enableval; do
11425	IFS=$lt_save_ifs
11426	if test "X$pkg" = "X$p"; then
11427	  enable_fast_install=yes
11428	fi
11429      done
11430      IFS=$lt_save_ifs
11431      ;;
11432    esac
11433else $as_nop
11434  enable_fast_install=yes
11435fi
11436
11437
11438
11439
11440
11441
11442
11443
11444  shared_archive_member_spec=
11445case $host,$enable_shared in
11446power*-*-aix[5-9]*,yes)
11447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11448printf %s "checking which variant of shared library versioning to provide... " >&6; }
11449
11450# Check whether --with-aix-soname was given.
11451if test ${with_aix_soname+y}
11452then :
11453  withval=$with_aix_soname; case $withval in
11454    aix|svr4|both)
11455      ;;
11456    *)
11457      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11458      ;;
11459    esac
11460    lt_cv_with_aix_soname=$with_aix_soname
11461else $as_nop
11462  if test ${lt_cv_with_aix_soname+y}
11463then :
11464  printf %s "(cached) " >&6
11465else $as_nop
11466  lt_cv_with_aix_soname=aix
11467fi
11468
11469    with_aix_soname=$lt_cv_with_aix_soname
11470fi
11471
11472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11473printf "%s\n" "$with_aix_soname" >&6; }
11474  if test aix != "$with_aix_soname"; then
11475    # For the AIX way of multilib, we name the shared archive member
11476    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11477    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11478    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11479    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11480    if test 64 = "${OBJECT_MODE-32}"; then
11481      shared_archive_member_spec=shr_64
11482    else
11483      shared_archive_member_spec=shr
11484    fi
11485  fi
11486  ;;
11487*)
11488  with_aix_soname=aix
11489  ;;
11490esac
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501# This can be used to rebuild libtool when needed
11502LIBTOOL_DEPS=$ltmain
11503
11504# Always use our own libtool.
11505LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536test -z "$LN_S" && LN_S="ln -s"
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551if test -n "${ZSH_VERSION+set}"; then
11552   setopt NO_GLOB_SUBST
11553fi
11554
11555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11556printf %s "checking for objdir... " >&6; }
11557if test ${lt_cv_objdir+y}
11558then :
11559  printf %s "(cached) " >&6
11560else $as_nop
11561  rm -f .libs 2>/dev/null
11562mkdir .libs 2>/dev/null
11563if test -d .libs; then
11564  lt_cv_objdir=.libs
11565else
11566  # MS-DOS does not allow filenames that begin with a dot.
11567  lt_cv_objdir=_libs
11568fi
11569rmdir .libs 2>/dev/null
11570fi
11571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11572printf "%s\n" "$lt_cv_objdir" >&6; }
11573objdir=$lt_cv_objdir
11574
11575
11576
11577
11578
11579printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11580
11581
11582
11583
11584case $host_os in
11585aix3*)
11586  # AIX sometimes has problems with the GCC collect2 program.  For some
11587  # reason, if we set the COLLECT_NAMES environment variable, the problems
11588  # vanish in a puff of smoke.
11589  if test set != "${COLLECT_NAMES+set}"; then
11590    COLLECT_NAMES=
11591    export COLLECT_NAMES
11592  fi
11593  ;;
11594esac
11595
11596# Global variables:
11597ofile=libtool
11598can_build_shared=yes
11599
11600# All known linkers require a '.a' archive for static linking (except MSVC,
11601# which needs '.lib').
11602libext=a
11603
11604with_gnu_ld=$lt_cv_prog_gnu_ld
11605
11606old_CC=$CC
11607old_CFLAGS=$CFLAGS
11608
11609# Set sane defaults for various variables
11610test -z "$CC" && CC=cc
11611test -z "$LTCC" && LTCC=$CC
11612test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11613test -z "$LD" && LD=ld
11614test -z "$ac_objext" && ac_objext=o
11615
11616func_cc_basename $compiler
11617cc_basename=$func_cc_basename_result
11618
11619
11620# Only perform the check for file, if the check method requires it
11621test -z "$MAGIC_CMD" && MAGIC_CMD=file
11622case $deplibs_check_method in
11623file_magic*)
11624  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11625    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11626printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11627if test ${lt_cv_path_MAGIC_CMD+y}
11628then :
11629  printf %s "(cached) " >&6
11630else $as_nop
11631  case $MAGIC_CMD in
11632[\\/*] |  ?:[\\/]*)
11633  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11634  ;;
11635*)
11636  lt_save_MAGIC_CMD=$MAGIC_CMD
11637  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11638  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11639  for ac_dir in $ac_dummy; do
11640    IFS=$lt_save_ifs
11641    test -z "$ac_dir" && ac_dir=.
11642    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11643      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11644      if test -n "$file_magic_test_file"; then
11645	case $deplibs_check_method in
11646	"file_magic "*)
11647	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11648	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11649	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11650	    $EGREP "$file_magic_regex" > /dev/null; then
11651	    :
11652	  else
11653	    cat <<_LT_EOF 1>&2
11654
11655*** Warning: the command libtool uses to detect shared libraries,
11656*** $file_magic_cmd, produces output that libtool cannot recognize.
11657*** The result is that libtool may fail to recognize shared libraries
11658*** as such.  This will affect the creation of libtool libraries that
11659*** depend on shared libraries, but programs linked with such libtool
11660*** libraries will work regardless of this problem.  Nevertheless, you
11661*** may want to report the problem to your system manager and/or to
11662*** bug-libtool@gnu.org
11663
11664_LT_EOF
11665	  fi ;;
11666	esac
11667      fi
11668      break
11669    fi
11670  done
11671  IFS=$lt_save_ifs
11672  MAGIC_CMD=$lt_save_MAGIC_CMD
11673  ;;
11674esac
11675fi
11676
11677MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11678if test -n "$MAGIC_CMD"; then
11679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11680printf "%s\n" "$MAGIC_CMD" >&6; }
11681else
11682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683printf "%s\n" "no" >&6; }
11684fi
11685
11686
11687
11688
11689
11690if test -z "$lt_cv_path_MAGIC_CMD"; then
11691  if test -n "$ac_tool_prefix"; then
11692    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11693printf %s "checking for file... " >&6; }
11694if test ${lt_cv_path_MAGIC_CMD+y}
11695then :
11696  printf %s "(cached) " >&6
11697else $as_nop
11698  case $MAGIC_CMD in
11699[\\/*] |  ?:[\\/]*)
11700  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11701  ;;
11702*)
11703  lt_save_MAGIC_CMD=$MAGIC_CMD
11704  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11705  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11706  for ac_dir in $ac_dummy; do
11707    IFS=$lt_save_ifs
11708    test -z "$ac_dir" && ac_dir=.
11709    if test -f "$ac_dir/file"; then
11710      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11711      if test -n "$file_magic_test_file"; then
11712	case $deplibs_check_method in
11713	"file_magic "*)
11714	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11715	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11716	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11717	    $EGREP "$file_magic_regex" > /dev/null; then
11718	    :
11719	  else
11720	    cat <<_LT_EOF 1>&2
11721
11722*** Warning: the command libtool uses to detect shared libraries,
11723*** $file_magic_cmd, produces output that libtool cannot recognize.
11724*** The result is that libtool may fail to recognize shared libraries
11725*** as such.  This will affect the creation of libtool libraries that
11726*** depend on shared libraries, but programs linked with such libtool
11727*** libraries will work regardless of this problem.  Nevertheless, you
11728*** may want to report the problem to your system manager and/or to
11729*** bug-libtool@gnu.org
11730
11731_LT_EOF
11732	  fi ;;
11733	esac
11734      fi
11735      break
11736    fi
11737  done
11738  IFS=$lt_save_ifs
11739  MAGIC_CMD=$lt_save_MAGIC_CMD
11740  ;;
11741esac
11742fi
11743
11744MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11745if test -n "$MAGIC_CMD"; then
11746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11747printf "%s\n" "$MAGIC_CMD" >&6; }
11748else
11749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750printf "%s\n" "no" >&6; }
11751fi
11752
11753
11754  else
11755    MAGIC_CMD=:
11756  fi
11757fi
11758
11759  fi
11760  ;;
11761esac
11762
11763# Use C for the default configuration in the libtool script
11764
11765lt_save_CC=$CC
11766ac_ext=c
11767ac_cpp='$CPP $CPPFLAGS'
11768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770ac_compiler_gnu=$ac_cv_c_compiler_gnu
11771
11772
11773# Source file extension for C test sources.
11774ac_ext=c
11775
11776# Object file extension for compiled C test sources.
11777objext=o
11778objext=$objext
11779
11780# Code to be used in simple compile tests
11781lt_simple_compile_test_code="int some_variable = 0;"
11782
11783# Code to be used in simple link tests
11784lt_simple_link_test_code='int main(){return(0);}'
11785
11786
11787
11788
11789
11790
11791
11792# If no C compiler was specified, use CC.
11793LTCC=${LTCC-"$CC"}
11794
11795# If no C compiler flags were specified, use CFLAGS.
11796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11797
11798# Allow CC to be a program name with arguments.
11799compiler=$CC
11800
11801# Save the default compiler, since it gets overwritten when the other
11802# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11803compiler_DEFAULT=$CC
11804
11805# save warnings/boilerplate of simple test code
11806ac_outfile=conftest.$ac_objext
11807echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11808eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11809_lt_compiler_boilerplate=`cat conftest.err`
11810$RM conftest*
11811
11812ac_outfile=conftest.$ac_objext
11813echo "$lt_simple_link_test_code" >conftest.$ac_ext
11814eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11815_lt_linker_boilerplate=`cat conftest.err`
11816$RM -r conftest*
11817
11818
11819## CAVEAT EMPTOR:
11820## There is no encapsulation within the following macros, do not change
11821## the running order or otherwise move them around unless you know exactly
11822## what you are doing...
11823if test -n "$compiler"; then
11824
11825lt_prog_compiler_no_builtin_flag=
11826
11827if test yes = "$GCC"; then
11828  case $cc_basename in
11829  nvcc*)
11830    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11831  *)
11832    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11833  esac
11834
11835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11836printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11837if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11838then :
11839  printf %s "(cached) " >&6
11840else $as_nop
11841  lt_cv_prog_compiler_rtti_exceptions=no
11842   ac_outfile=conftest.$ac_objext
11843   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11844   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11845   # Insert the option either (1) after the last *FLAGS variable, or
11846   # (2) before a word containing "conftest.", or (3) at the end.
11847   # Note that $ac_compile itself does not contain backslashes and begins
11848   # with a dollar sign (not a hyphen), so the echo should work correctly.
11849   # The option is referenced via a variable to avoid confusing sed.
11850   lt_compile=`echo "$ac_compile" | $SED \
11851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11853   -e 's:$: $lt_compiler_flag:'`
11854   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11855   (eval "$lt_compile" 2>conftest.err)
11856   ac_status=$?
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   if (exit $ac_status) && test -s "$ac_outfile"; then
11860     # The compiler can only warn and ignore the option if not recognized
11861     # So say no if there are warnings other than the usual output.
11862     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11863     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11864     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11865       lt_cv_prog_compiler_rtti_exceptions=yes
11866     fi
11867   fi
11868   $RM conftest*
11869
11870fi
11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11872printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11873
11874if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11875    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11876else
11877    :
11878fi
11879
11880fi
11881
11882
11883
11884
11885
11886
11887  lt_prog_compiler_wl=
11888lt_prog_compiler_pic=
11889lt_prog_compiler_static=
11890
11891
11892  if test yes = "$GCC"; then
11893    lt_prog_compiler_wl='-Wl,'
11894    lt_prog_compiler_static='-static'
11895
11896    case $host_os in
11897      aix*)
11898      # All AIX code is PIC.
11899      if test ia64 = "$host_cpu"; then
11900	# AIX 5 now supports IA64 processor
11901	lt_prog_compiler_static='-Bstatic'
11902      fi
11903      lt_prog_compiler_pic='-fPIC'
11904      ;;
11905
11906    amigaos*)
11907      case $host_cpu in
11908      powerpc)
11909            # see comment about AmigaOS4 .so support
11910            lt_prog_compiler_pic='-fPIC'
11911        ;;
11912      m68k)
11913            # FIXME: we need at least 68020 code to build shared libraries, but
11914            # adding the '-m68020' flag to GCC prevents building anything better,
11915            # like '-m68040'.
11916            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11917        ;;
11918      esac
11919      ;;
11920
11921    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11922      # PIC is the default for these OSes.
11923      ;;
11924
11925    mingw* | cygwin* | pw32* | os2* | cegcc*)
11926      # This hack is so that the source file can tell whether it is being
11927      # built for inclusion in a dll (and should export symbols for example).
11928      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11929      # (--disable-auto-import) libraries
11930      lt_prog_compiler_pic='-DDLL_EXPORT'
11931      case $host_os in
11932      os2*)
11933	lt_prog_compiler_static='$wl-static'
11934	;;
11935      esac
11936      ;;
11937
11938    darwin* | rhapsody*)
11939      # PIC is the default on this platform
11940      # Common symbols not allowed in MH_DYLIB files
11941      lt_prog_compiler_pic='-fno-common'
11942      ;;
11943
11944    haiku*)
11945      # PIC is the default for Haiku.
11946      # The "-static" flag exists, but is broken.
11947      lt_prog_compiler_static=
11948      ;;
11949
11950    hpux*)
11951      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11952      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11953      # sets the default TLS model and affects inlining.
11954      case $host_cpu in
11955      hppa*64*)
11956	# +Z the default
11957	;;
11958      *)
11959	lt_prog_compiler_pic='-fPIC'
11960	;;
11961      esac
11962      ;;
11963
11964    interix[3-9]*)
11965      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11966      # Instead, we relocate shared libraries at runtime.
11967      ;;
11968
11969    msdosdjgpp*)
11970      # Just because we use GCC doesn't mean we suddenly get shared libraries
11971      # on systems that don't support them.
11972      lt_prog_compiler_can_build_shared=no
11973      enable_shared=no
11974      ;;
11975
11976    *nto* | *qnx*)
11977      # QNX uses GNU C++, but need to define -shared option too, otherwise
11978      # it will coredump.
11979      lt_prog_compiler_pic='-fPIC -shared'
11980      ;;
11981
11982    sysv4*MP*)
11983      if test -d /usr/nec; then
11984	lt_prog_compiler_pic=-Kconform_pic
11985      fi
11986      ;;
11987
11988    *)
11989      lt_prog_compiler_pic='-fPIC'
11990      ;;
11991    esac
11992
11993    case $cc_basename in
11994    nvcc*) # Cuda Compiler Driver 2.2
11995      lt_prog_compiler_wl='-Xlinker '
11996      if test -n "$lt_prog_compiler_pic"; then
11997        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11998      fi
11999      ;;
12000    esac
12001  else
12002    # PORTME Check for flag to pass linker flags through the system compiler.
12003    case $host_os in
12004    aix*)
12005      lt_prog_compiler_wl='-Wl,'
12006      if test ia64 = "$host_cpu"; then
12007	# AIX 5 now supports IA64 processor
12008	lt_prog_compiler_static='-Bstatic'
12009      else
12010	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12011      fi
12012      ;;
12013
12014    darwin* | rhapsody*)
12015      # PIC is the default on this platform
12016      # Common symbols not allowed in MH_DYLIB files
12017      lt_prog_compiler_pic='-fno-common'
12018      case $cc_basename in
12019      nagfor*)
12020        # NAG Fortran compiler
12021        lt_prog_compiler_wl='-Wl,-Wl,,'
12022        lt_prog_compiler_pic='-PIC'
12023        lt_prog_compiler_static='-Bstatic'
12024        ;;
12025      esac
12026      ;;
12027
12028    mingw* | cygwin* | pw32* | os2* | cegcc*)
12029      # This hack is so that the source file can tell whether it is being
12030      # built for inclusion in a dll (and should export symbols for example).
12031      lt_prog_compiler_pic='-DDLL_EXPORT'
12032      case $host_os in
12033      os2*)
12034	lt_prog_compiler_static='$wl-static'
12035	;;
12036      esac
12037      ;;
12038
12039    hpux9* | hpux10* | hpux11*)
12040      lt_prog_compiler_wl='-Wl,'
12041      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12042      # not for PA HP-UX.
12043      case $host_cpu in
12044      hppa*64*|ia64*)
12045	# +Z the default
12046	;;
12047      *)
12048	lt_prog_compiler_pic='+Z'
12049	;;
12050      esac
12051      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12052      lt_prog_compiler_static='$wl-a ${wl}archive'
12053      ;;
12054
12055    irix5* | irix6* | nonstopux*)
12056      lt_prog_compiler_wl='-Wl,'
12057      # PIC (with -KPIC) is the default.
12058      lt_prog_compiler_static='-non_shared'
12059      ;;
12060
12061    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12062      case $cc_basename in
12063      # old Intel for x86_64, which still supported -KPIC.
12064      ecc*)
12065	lt_prog_compiler_wl='-Wl,'
12066	lt_prog_compiler_pic='-KPIC'
12067	lt_prog_compiler_static='-static'
12068        ;;
12069      # icc used to be incompatible with GCC.
12070      # ICC 10 doesn't accept -KPIC any more.
12071      icc* | ifort*)
12072	lt_prog_compiler_wl='-Wl,'
12073	lt_prog_compiler_pic='-fPIC'
12074	lt_prog_compiler_static='-static'
12075        ;;
12076      # Lahey Fortran 8.1.
12077      lf95*)
12078	lt_prog_compiler_wl='-Wl,'
12079	lt_prog_compiler_pic='--shared'
12080	lt_prog_compiler_static='--static'
12081	;;
12082      nagfor*)
12083	# NAG Fortran compiler
12084	lt_prog_compiler_wl='-Wl,-Wl,,'
12085	lt_prog_compiler_pic='-PIC'
12086	lt_prog_compiler_static='-Bstatic'
12087	;;
12088      tcc*)
12089	# Fabrice Bellard et al's Tiny C Compiler
12090	lt_prog_compiler_wl='-Wl,'
12091	lt_prog_compiler_pic='-fPIC'
12092	lt_prog_compiler_static='-static'
12093	;;
12094      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12095        # Portland Group compilers (*not* the Pentium gcc compiler,
12096	# which looks to be a dead project)
12097	lt_prog_compiler_wl='-Wl,'
12098	lt_prog_compiler_pic='-fpic'
12099	lt_prog_compiler_static='-Bstatic'
12100        ;;
12101      ccc*)
12102        lt_prog_compiler_wl='-Wl,'
12103        # All Alpha code is PIC.
12104        lt_prog_compiler_static='-non_shared'
12105        ;;
12106      xl* | bgxl* | bgf* | mpixl*)
12107	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12108	lt_prog_compiler_wl='-Wl,'
12109	lt_prog_compiler_pic='-qpic'
12110	lt_prog_compiler_static='-qstaticlink'
12111	;;
12112      *)
12113	case `$CC -V 2>&1 | sed 5q` in
12114	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12115	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12116	  lt_prog_compiler_pic='-KPIC'
12117	  lt_prog_compiler_static='-Bstatic'
12118	  lt_prog_compiler_wl=''
12119	  ;;
12120	*Sun\ F* | *Sun*Fortran*)
12121	  lt_prog_compiler_pic='-KPIC'
12122	  lt_prog_compiler_static='-Bstatic'
12123	  lt_prog_compiler_wl='-Qoption ld '
12124	  ;;
12125	*Sun\ C*)
12126	  # Sun C 5.9
12127	  lt_prog_compiler_pic='-KPIC'
12128	  lt_prog_compiler_static='-Bstatic'
12129	  lt_prog_compiler_wl='-Wl,'
12130	  ;;
12131        *Intel*\ [CF]*Compiler*)
12132	  lt_prog_compiler_wl='-Wl,'
12133	  lt_prog_compiler_pic='-fPIC'
12134	  lt_prog_compiler_static='-static'
12135	  ;;
12136	*Portland\ Group*)
12137	  lt_prog_compiler_wl='-Wl,'
12138	  lt_prog_compiler_pic='-fpic'
12139	  lt_prog_compiler_static='-Bstatic'
12140	  ;;
12141	esac
12142	;;
12143      esac
12144      ;;
12145
12146    newsos6)
12147      lt_prog_compiler_pic='-KPIC'
12148      lt_prog_compiler_static='-Bstatic'
12149      ;;
12150
12151    *nto* | *qnx*)
12152      # QNX uses GNU C++, but need to define -shared option too, otherwise
12153      # it will coredump.
12154      lt_prog_compiler_pic='-fPIC -shared'
12155      ;;
12156
12157    osf3* | osf4* | osf5*)
12158      lt_prog_compiler_wl='-Wl,'
12159      # All OSF/1 code is PIC.
12160      lt_prog_compiler_static='-non_shared'
12161      ;;
12162
12163    rdos*)
12164      lt_prog_compiler_static='-non_shared'
12165      ;;
12166
12167    solaris*)
12168      lt_prog_compiler_pic='-KPIC'
12169      lt_prog_compiler_static='-Bstatic'
12170      case $cc_basename in
12171      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12172	lt_prog_compiler_wl='-Qoption ld ';;
12173      *)
12174	lt_prog_compiler_wl='-Wl,';;
12175      esac
12176      ;;
12177
12178    sunos4*)
12179      lt_prog_compiler_wl='-Qoption ld '
12180      lt_prog_compiler_pic='-PIC'
12181      lt_prog_compiler_static='-Bstatic'
12182      ;;
12183
12184    sysv4 | sysv4.2uw2* | sysv4.3*)
12185      lt_prog_compiler_wl='-Wl,'
12186      lt_prog_compiler_pic='-KPIC'
12187      lt_prog_compiler_static='-Bstatic'
12188      ;;
12189
12190    sysv4*MP*)
12191      if test -d /usr/nec; then
12192	lt_prog_compiler_pic='-Kconform_pic'
12193	lt_prog_compiler_static='-Bstatic'
12194      fi
12195      ;;
12196
12197    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12198      lt_prog_compiler_wl='-Wl,'
12199      lt_prog_compiler_pic='-KPIC'
12200      lt_prog_compiler_static='-Bstatic'
12201      ;;
12202
12203    unicos*)
12204      lt_prog_compiler_wl='-Wl,'
12205      lt_prog_compiler_can_build_shared=no
12206      ;;
12207
12208    uts4*)
12209      lt_prog_compiler_pic='-pic'
12210      lt_prog_compiler_static='-Bstatic'
12211      ;;
12212
12213    *)
12214      lt_prog_compiler_can_build_shared=no
12215      ;;
12216    esac
12217  fi
12218
12219case $host_os in
12220  # For platforms that do not support PIC, -DPIC is meaningless:
12221  *djgpp*)
12222    lt_prog_compiler_pic=
12223    ;;
12224  *)
12225    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12226    ;;
12227esac
12228
12229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12230printf %s "checking for $compiler option to produce PIC... " >&6; }
12231if test ${lt_cv_prog_compiler_pic+y}
12232then :
12233  printf %s "(cached) " >&6
12234else $as_nop
12235  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12236fi
12237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12238printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12239lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12240
12241#
12242# Check to make sure the PIC flag actually works.
12243#
12244if test -n "$lt_prog_compiler_pic"; then
12245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12246printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12247if test ${lt_cv_prog_compiler_pic_works+y}
12248then :
12249  printf %s "(cached) " >&6
12250else $as_nop
12251  lt_cv_prog_compiler_pic_works=no
12252   ac_outfile=conftest.$ac_objext
12253   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12254   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12255   # Insert the option either (1) after the last *FLAGS variable, or
12256   # (2) before a word containing "conftest.", or (3) at the end.
12257   # Note that $ac_compile itself does not contain backslashes and begins
12258   # with a dollar sign (not a hyphen), so the echo should work correctly.
12259   # The option is referenced via a variable to avoid confusing sed.
12260   lt_compile=`echo "$ac_compile" | $SED \
12261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12263   -e 's:$: $lt_compiler_flag:'`
12264   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12265   (eval "$lt_compile" 2>conftest.err)
12266   ac_status=$?
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   if (exit $ac_status) && test -s "$ac_outfile"; then
12270     # The compiler can only warn and ignore the option if not recognized
12271     # So say no if there are warnings other than the usual output.
12272     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12273     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12274     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12275       lt_cv_prog_compiler_pic_works=yes
12276     fi
12277   fi
12278   $RM conftest*
12279
12280fi
12281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12282printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12283
12284if test yes = "$lt_cv_prog_compiler_pic_works"; then
12285    case $lt_prog_compiler_pic in
12286     "" | " "*) ;;
12287     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12288     esac
12289else
12290    lt_prog_compiler_pic=
12291     lt_prog_compiler_can_build_shared=no
12292fi
12293
12294fi
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306#
12307# Check to make sure the static flag actually works.
12308#
12309wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12311printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12312if test ${lt_cv_prog_compiler_static_works+y}
12313then :
12314  printf %s "(cached) " >&6
12315else $as_nop
12316  lt_cv_prog_compiler_static_works=no
12317   save_LDFLAGS=$LDFLAGS
12318   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12319   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12320   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12321     # The linker can only warn and ignore the option if not recognized
12322     # So say no if there are warnings
12323     if test -s conftest.err; then
12324       # Append any errors to the config.log.
12325       cat conftest.err 1>&5
12326       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12327       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12328       if diff conftest.exp conftest.er2 >/dev/null; then
12329         lt_cv_prog_compiler_static_works=yes
12330       fi
12331     else
12332       lt_cv_prog_compiler_static_works=yes
12333     fi
12334   fi
12335   $RM -r conftest*
12336   LDFLAGS=$save_LDFLAGS
12337
12338fi
12339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12340printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12341
12342if test yes = "$lt_cv_prog_compiler_static_works"; then
12343    :
12344else
12345    lt_prog_compiler_static=
12346fi
12347
12348
12349
12350
12351
12352
12353
12354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12355printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12356if test ${lt_cv_prog_compiler_c_o+y}
12357then :
12358  printf %s "(cached) " >&6
12359else $as_nop
12360  lt_cv_prog_compiler_c_o=no
12361   $RM -r conftest 2>/dev/null
12362   mkdir conftest
12363   cd conftest
12364   mkdir out
12365   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12366
12367   lt_compiler_flag="-o out/conftest2.$ac_objext"
12368   # Insert the option either (1) after the last *FLAGS variable, or
12369   # (2) before a word containing "conftest.", or (3) at the end.
12370   # Note that $ac_compile itself does not contain backslashes and begins
12371   # with a dollar sign (not a hyphen), so the echo should work correctly.
12372   lt_compile=`echo "$ac_compile" | $SED \
12373   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12374   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12375   -e 's:$: $lt_compiler_flag:'`
12376   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12377   (eval "$lt_compile" 2>out/conftest.err)
12378   ac_status=$?
12379   cat out/conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12382   then
12383     # The compiler can only warn and ignore the option if not recognized
12384     # So say no if there are warnings
12385     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12386     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12387     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12388       lt_cv_prog_compiler_c_o=yes
12389     fi
12390   fi
12391   chmod u+w . 2>&5
12392   $RM conftest*
12393   # SGI C++ compiler will create directory out/ii_files/ for
12394   # template instantiation
12395   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12396   $RM out/* && rmdir out
12397   cd ..
12398   $RM -r conftest
12399   $RM conftest*
12400
12401fi
12402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12403printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12404
12405
12406
12407
12408
12409
12410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12411printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12412if test ${lt_cv_prog_compiler_c_o+y}
12413then :
12414  printf %s "(cached) " >&6
12415else $as_nop
12416  lt_cv_prog_compiler_c_o=no
12417   $RM -r conftest 2>/dev/null
12418   mkdir conftest
12419   cd conftest
12420   mkdir out
12421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12422
12423   lt_compiler_flag="-o out/conftest2.$ac_objext"
12424   # Insert the option either (1) after the last *FLAGS variable, or
12425   # (2) before a word containing "conftest.", or (3) at the end.
12426   # Note that $ac_compile itself does not contain backslashes and begins
12427   # with a dollar sign (not a hyphen), so the echo should work correctly.
12428   lt_compile=`echo "$ac_compile" | $SED \
12429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12431   -e 's:$: $lt_compiler_flag:'`
12432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12433   (eval "$lt_compile" 2>out/conftest.err)
12434   ac_status=$?
12435   cat out/conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12438   then
12439     # The compiler can only warn and ignore the option if not recognized
12440     # So say no if there are warnings
12441     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12444       lt_cv_prog_compiler_c_o=yes
12445     fi
12446   fi
12447   chmod u+w . 2>&5
12448   $RM conftest*
12449   # SGI C++ compiler will create directory out/ii_files/ for
12450   # template instantiation
12451   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12452   $RM out/* && rmdir out
12453   cd ..
12454   $RM -r conftest
12455   $RM conftest*
12456
12457fi
12458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12459printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12460
12461
12462
12463
12464hard_links=nottested
12465if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12466  # do not overwrite the value of need_locks provided by the user
12467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12468printf %s "checking if we can lock with hard links... " >&6; }
12469  hard_links=yes
12470  $RM conftest*
12471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12472  touch conftest.a
12473  ln conftest.a conftest.b 2>&5 || hard_links=no
12474  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12476printf "%s\n" "$hard_links" >&6; }
12477  if test no = "$hard_links"; then
12478    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12479printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12480    need_locks=warn
12481  fi
12482else
12483  need_locks=no
12484fi
12485
12486
12487
12488
12489
12490
12491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12492printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12493
12494  runpath_var=
12495  allow_undefined_flag=
12496  always_export_symbols=no
12497  archive_cmds=
12498  archive_expsym_cmds=
12499  compiler_needs_object=no
12500  enable_shared_with_static_runtimes=no
12501  export_dynamic_flag_spec=
12502  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12503  hardcode_automatic=no
12504  hardcode_direct=no
12505  hardcode_direct_absolute=no
12506  hardcode_libdir_flag_spec=
12507  hardcode_libdir_separator=
12508  hardcode_minus_L=no
12509  hardcode_shlibpath_var=unsupported
12510  inherit_rpath=no
12511  link_all_deplibs=unknown
12512  module_cmds=
12513  module_expsym_cmds=
12514  old_archive_from_new_cmds=
12515  old_archive_from_expsyms_cmds=
12516  thread_safe_flag_spec=
12517  whole_archive_flag_spec=
12518  # include_expsyms should be a list of space-separated symbols to be *always*
12519  # included in the symbol list
12520  include_expsyms=
12521  # exclude_expsyms can be an extended regexp of symbols to exclude
12522  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12523  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12524  # as well as any symbol that contains 'd'.
12525  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12526  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12527  # platforms (ab)use it in PIC code, but their linkers get confused if
12528  # the symbol is explicitly referenced.  Since portable code cannot
12529  # rely on this symbol name, it's probably fine to never include it in
12530  # preloaded symbol tables.
12531  # Exclude shared library initialization/finalization symbols.
12532  extract_expsyms_cmds=
12533
12534  case $host_os in
12535  cygwin* | mingw* | pw32* | cegcc*)
12536    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12537    # When not using gcc, we currently assume that we are using
12538    # Microsoft Visual C++.
12539    if test yes != "$GCC"; then
12540      with_gnu_ld=no
12541    fi
12542    ;;
12543  interix*)
12544    # we just hope/assume this is gcc and not c89 (= MSVC++)
12545    with_gnu_ld=yes
12546    ;;
12547  openbsd* | bitrig*)
12548    with_gnu_ld=no
12549    ;;
12550  esac
12551
12552  ld_shlibs=yes
12553
12554  # On some targets, GNU ld is compatible enough with the native linker
12555  # that we're better off using the native interface for both.
12556  lt_use_gnu_ld_interface=no
12557  if test yes = "$with_gnu_ld"; then
12558    case $host_os in
12559      aix*)
12560	# The AIX port of GNU ld has always aspired to compatibility
12561	# with the native linker.  However, as the warning in the GNU ld
12562	# block says, versions before 2.19.5* couldn't really create working
12563	# shared libraries, regardless of the interface used.
12564	case `$LD -v 2>&1` in
12565	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12566	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12567	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12568	  *)
12569	    lt_use_gnu_ld_interface=yes
12570	    ;;
12571	esac
12572	;;
12573      *)
12574	lt_use_gnu_ld_interface=yes
12575	;;
12576    esac
12577  fi
12578
12579  if test yes = "$lt_use_gnu_ld_interface"; then
12580    # If archive_cmds runs LD, not CC, wlarc should be empty
12581    wlarc='$wl'
12582
12583    # Set some defaults for GNU ld with shared library support. These
12584    # are reset later if shared libraries are not supported. Putting them
12585    # here allows them to be overridden if necessary.
12586    runpath_var=LD_RUN_PATH
12587    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12588    export_dynamic_flag_spec='$wl--export-dynamic'
12589    # ancient GNU ld didn't support --whole-archive et. al.
12590    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12591      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12592    else
12593      whole_archive_flag_spec=
12594    fi
12595    supports_anon_versioning=no
12596    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12597      *GNU\ gold*) supports_anon_versioning=yes ;;
12598      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12599      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12600      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12601      *\ 2.11.*) ;; # other 2.11 versions
12602      *) supports_anon_versioning=yes ;;
12603    esac
12604
12605    # See if GNU ld supports shared libraries.
12606    case $host_os in
12607    aix[3-9]*)
12608      # On AIX/PPC, the GNU linker is very broken
12609      if test ia64 != "$host_cpu"; then
12610	ld_shlibs=no
12611	cat <<_LT_EOF 1>&2
12612
12613*** Warning: the GNU linker, at least up to release 2.19, is reported
12614*** to be unable to reliably create shared libraries on AIX.
12615*** Therefore, libtool is disabling shared libraries support.  If you
12616*** really care for shared libraries, you may want to install binutils
12617*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12618*** You will then need to restart the configuration process.
12619
12620_LT_EOF
12621      fi
12622      ;;
12623
12624    amigaos*)
12625      case $host_cpu in
12626      powerpc)
12627            # see comment about AmigaOS4 .so support
12628            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12629            archive_expsym_cmds=''
12630        ;;
12631      m68k)
12632            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)'
12633            hardcode_libdir_flag_spec='-L$libdir'
12634            hardcode_minus_L=yes
12635        ;;
12636      esac
12637      ;;
12638
12639    beos*)
12640      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12641	allow_undefined_flag=unsupported
12642	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12643	# support --undefined.  This deserves some investigation.  FIXME
12644	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12645      else
12646	ld_shlibs=no
12647      fi
12648      ;;
12649
12650    cygwin* | mingw* | pw32* | cegcc*)
12651      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12652      # as there is no search path for DLLs.
12653      hardcode_libdir_flag_spec='-L$libdir'
12654      export_dynamic_flag_spec='$wl--export-all-symbols'
12655      allow_undefined_flag=unsupported
12656      always_export_symbols=no
12657      enable_shared_with_static_runtimes=yes
12658      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'
12659      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12660
12661      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663	# If the export-symbols file already is a .def file, use it as
12664	# is; otherwise, prepend EXPORTS...
12665	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12666          cp $export_symbols $output_objdir/$soname.def;
12667        else
12668          echo EXPORTS > $output_objdir/$soname.def;
12669          cat $export_symbols >> $output_objdir/$soname.def;
12670        fi~
12671        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12672      else
12673	ld_shlibs=no
12674      fi
12675      ;;
12676
12677    haiku*)
12678      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12679      link_all_deplibs=yes
12680      ;;
12681
12682    os2*)
12683      hardcode_libdir_flag_spec='-L$libdir'
12684      hardcode_minus_L=yes
12685      allow_undefined_flag=unsupported
12686      shrext_cmds=.dll
12687      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12688	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12689	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12690	$ECHO EXPORTS >> $output_objdir/$libname.def~
12691	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12692	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12693	emximp -o $lib $output_objdir/$libname.def'
12694      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12695	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12696	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12697	$ECHO EXPORTS >> $output_objdir/$libname.def~
12698	prefix_cmds="$SED"~
12699	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12700	  prefix_cmds="$prefix_cmds -e 1d";
12701	fi~
12702	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12703	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12704	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12705	emximp -o $lib $output_objdir/$libname.def'
12706      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12707      enable_shared_with_static_runtimes=yes
12708      ;;
12709
12710    interix[3-9]*)
12711      hardcode_direct=no
12712      hardcode_shlibpath_var=no
12713      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12714      export_dynamic_flag_spec='$wl-E'
12715      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12716      # Instead, shared libraries are loaded at an image base (0x10000000 by
12717      # default) and relocated if they conflict, which is a slow very memory
12718      # consuming and fragmenting process.  To avoid this, we pick a random,
12719      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12720      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12721      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12722      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'
12723      ;;
12724
12725    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12726      tmp_diet=no
12727      if test linux-dietlibc = "$host_os"; then
12728	case $cc_basename in
12729	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12730	esac
12731      fi
12732      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12733	 && test no = "$tmp_diet"
12734      then
12735	tmp_addflag=' $pic_flag'
12736	tmp_sharedflag='-shared'
12737	case $cc_basename,$host_cpu in
12738        pgcc*)				# Portland Group C compiler
12739	  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'
12740	  tmp_addflag=' $pic_flag'
12741	  ;;
12742	pgf77* | pgf90* | pgf95* | pgfortran*)
12743					# Portland Group f77 and f90 compilers
12744	  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'
12745	  tmp_addflag=' $pic_flag -Mnomain' ;;
12746	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12747	  tmp_addflag=' -i_dynamic' ;;
12748	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12749	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12750	ifc* | ifort*)			# Intel Fortran compiler
12751	  tmp_addflag=' -nofor_main' ;;
12752	lf95*)				# Lahey Fortran 8.1
12753	  whole_archive_flag_spec=
12754	  tmp_sharedflag='--shared' ;;
12755        nagfor*)                        # NAGFOR 5.3
12756          tmp_sharedflag='-Wl,-shared' ;;
12757	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12758	  tmp_sharedflag='-qmkshrobj'
12759	  tmp_addflag= ;;
12760	nvcc*)	# Cuda Compiler Driver 2.2
12761	  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'
12762	  compiler_needs_object=yes
12763	  ;;
12764	esac
12765	case `$CC -V 2>&1 | sed 5q` in
12766	*Sun\ C*)			# Sun C 5.9
12767	  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'
12768	  compiler_needs_object=yes
12769	  tmp_sharedflag='-G' ;;
12770	*Sun\ F*)			# Sun Fortran 8.3
12771	  tmp_sharedflag='-G' ;;
12772	esac
12773	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12774
12775        if test yes = "$supports_anon_versioning"; then
12776          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12777            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12778            echo "local: *; };" >> $output_objdir/$libname.ver~
12779            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12780        fi
12781
12782	case $cc_basename in
12783	tcc*)
12784	  export_dynamic_flag_spec='-rdynamic'
12785	  ;;
12786	xlf* | bgf* | bgxlf* | mpixlf*)
12787	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12788	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12789	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12790	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12791	  if test yes = "$supports_anon_versioning"; then
12792	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12793              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12794              echo "local: *; };" >> $output_objdir/$libname.ver~
12795              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12796	  fi
12797	  ;;
12798	esac
12799      else
12800        ld_shlibs=no
12801      fi
12802      ;;
12803
12804    netbsd*)
12805      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12806	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12807	wlarc=
12808      else
12809	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12810	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12811      fi
12812      ;;
12813
12814    solaris*)
12815      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12816	ld_shlibs=no
12817	cat <<_LT_EOF 1>&2
12818
12819*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12820*** create shared libraries on Solaris systems.  Therefore, libtool
12821*** is disabling shared libraries support.  We urge you to upgrade GNU
12822*** binutils to release 2.9.1 or newer.  Another option is to modify
12823*** your PATH or compiler configuration so that the native linker is
12824*** used, and then restart.
12825
12826_LT_EOF
12827      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12828	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12829	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12830      else
12831	ld_shlibs=no
12832      fi
12833      ;;
12834
12835    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12836      case `$LD -v 2>&1` in
12837        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12838	ld_shlibs=no
12839	cat <<_LT_EOF 1>&2
12840
12841*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12842*** reliably create shared libraries on SCO systems.  Therefore, libtool
12843*** is disabling shared libraries support.  We urge you to upgrade GNU
12844*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12845*** your PATH or compiler configuration so that the native linker is
12846*** used, and then restart.
12847
12848_LT_EOF
12849	;;
12850	*)
12851	  # For security reasons, it is highly recommended that you always
12852	  # use absolute paths for naming shared libraries, and exclude the
12853	  # DT_RUNPATH tag from executables and libraries.  But doing so
12854	  # requires that you compile everything twice, which is a pain.
12855	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12856	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12857	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12858	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12859	  else
12860	    ld_shlibs=no
12861	  fi
12862	;;
12863      esac
12864      ;;
12865
12866    sunos4*)
12867      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12868      wlarc=
12869      hardcode_direct=yes
12870      hardcode_shlibpath_var=no
12871      ;;
12872
12873    *)
12874      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12875	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12876	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12877      else
12878	ld_shlibs=no
12879      fi
12880      ;;
12881    esac
12882
12883    if test no = "$ld_shlibs"; then
12884      runpath_var=
12885      hardcode_libdir_flag_spec=
12886      export_dynamic_flag_spec=
12887      whole_archive_flag_spec=
12888    fi
12889  else
12890    # PORTME fill in a description of your system's linker (not GNU ld)
12891    case $host_os in
12892    aix3*)
12893      allow_undefined_flag=unsupported
12894      always_export_symbols=yes
12895      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'
12896      # Note: this linker hardcodes the directories in LIBPATH if there
12897      # are no directories specified by -L.
12898      hardcode_minus_L=yes
12899      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12900	# Neither direct hardcoding nor static linking is supported with a
12901	# broken collect2.
12902	hardcode_direct=unsupported
12903      fi
12904      ;;
12905
12906    aix[4-9]*)
12907      if test ia64 = "$host_cpu"; then
12908	# On IA64, the linker does run time linking by default, so we don't
12909	# have to do anything special.
12910	aix_use_runtimelinking=no
12911	exp_sym_flag='-Bexport'
12912	no_entry_flag=
12913      else
12914	# If we're using GNU nm, then we don't want the "-C" option.
12915	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12916	# Without the "-l" option, or with the "-B" option, AIX nm treats
12917	# weak defined symbols like other global defined symbols, whereas
12918	# GNU nm marks them as "W".
12919	# While the 'weak' keyword is ignored in the Export File, we need
12920	# it in the Import File for the 'aix-soname' feature, so we have
12921	# to replace the "-B" option with "-P" for AIX nm.
12922	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12923	  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'
12924	else
12925	  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'
12926	fi
12927	aix_use_runtimelinking=no
12928
12929	# Test if we are trying to use run time linking or normal
12930	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12931	# have runtime linking enabled, and use it for executables.
12932	# For shared libraries, we enable/disable runtime linking
12933	# depending on the kind of the shared library created -
12934	# when "with_aix_soname,aix_use_runtimelinking" is:
12935	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12936	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12937	#            lib.a           static archive
12938	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12939	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12940	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12941	#            lib.a(lib.so.V) shared, rtl:no
12942	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12943	#            lib.a           static archive
12944	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12945	  for ld_flag in $LDFLAGS; do
12946	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12947	    aix_use_runtimelinking=yes
12948	    break
12949	  fi
12950	  done
12951	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12952	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12953	    # so we don't have lib.a shared libs to link our executables.
12954	    # We have to force runtime linking in this case.
12955	    aix_use_runtimelinking=yes
12956	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12957	  fi
12958	  ;;
12959	esac
12960
12961	exp_sym_flag='-bexport'
12962	no_entry_flag='-bnoentry'
12963      fi
12964
12965      # When large executables or shared objects are built, AIX ld can
12966      # have problems creating the table of contents.  If linking a library
12967      # or program results in "error TOC overflow" add -mminimal-toc to
12968      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12969      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12970
12971      archive_cmds=''
12972      hardcode_direct=yes
12973      hardcode_direct_absolute=yes
12974      hardcode_libdir_separator=':'
12975      link_all_deplibs=yes
12976      file_list_spec='$wl-f,'
12977      case $with_aix_soname,$aix_use_runtimelinking in
12978      aix,*) ;; # traditional, no import file
12979      svr4,* | *,yes) # use import file
12980	# The Import File defines what to hardcode.
12981	hardcode_direct=no
12982	hardcode_direct_absolute=no
12983	;;
12984      esac
12985
12986      if test yes = "$GCC"; then
12987	case $host_os in aix4.[012]|aix4.[012].*)
12988	# We only want to do this on AIX 4.2 and lower, the check
12989	# below for broken collect2 doesn't work under 4.3+
12990	  collect2name=`$CC -print-prog-name=collect2`
12991	  if test -f "$collect2name" &&
12992	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12993	  then
12994	  # We have reworked collect2
12995	  :
12996	  else
12997	  # We have old collect2
12998	  hardcode_direct=unsupported
12999	  # It fails to find uninstalled libraries when the uninstalled
13000	  # path is not listed in the libpath.  Setting hardcode_minus_L
13001	  # to unsupported forces relinking
13002	  hardcode_minus_L=yes
13003	  hardcode_libdir_flag_spec='-L$libdir'
13004	  hardcode_libdir_separator=
13005	  fi
13006	  ;;
13007	esac
13008	shared_flag='-shared'
13009	if test yes = "$aix_use_runtimelinking"; then
13010	  shared_flag="$shared_flag "'$wl-G'
13011	fi
13012	# Need to ensure runtime linking is disabled for the traditional
13013	# shared library, or the linker may eventually find shared libraries
13014	# /with/ Import File - we do not want to mix them.
13015	shared_flag_aix='-shared'
13016	shared_flag_svr4='-shared $wl-G'
13017      else
13018	# not using gcc
13019	if test ia64 = "$host_cpu"; then
13020	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13021	# chokes on -Wl,-G. The following line is correct:
13022	  shared_flag='-G'
13023	else
13024	  if test yes = "$aix_use_runtimelinking"; then
13025	    shared_flag='$wl-G'
13026	  else
13027	    shared_flag='$wl-bM:SRE'
13028	  fi
13029	  shared_flag_aix='$wl-bM:SRE'
13030	  shared_flag_svr4='$wl-G'
13031	fi
13032      fi
13033
13034      export_dynamic_flag_spec='$wl-bexpall'
13035      # It seems that -bexpall does not export symbols beginning with
13036      # underscore (_), so it is better to generate a list of symbols to export.
13037      always_export_symbols=yes
13038      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13039	# Warning - without using the other runtime loading flags (-brtl),
13040	# -berok will link without error, but may produce a broken library.
13041	allow_undefined_flag='-berok'
13042        # Determine the default libpath from the value encoded in an
13043        # empty executable.
13044        if test set = "${lt_cv_aix_libpath+set}"; then
13045  aix_libpath=$lt_cv_aix_libpath
13046else
13047  if test ${lt_cv_aix_libpath_+y}
13048then :
13049  printf %s "(cached) " >&6
13050else $as_nop
13051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052/* end confdefs.h.  */
13053
13054int
13055main (void)
13056{
13057
13058  ;
13059  return 0;
13060}
13061_ACEOF
13062if ac_fn_c_try_link "$LINENO"
13063then :
13064
13065  lt_aix_libpath_sed='
13066      /Import File Strings/,/^$/ {
13067	  /^0/ {
13068	      s/^0  *\([^ ]*\) *$/\1/
13069	      p
13070	  }
13071      }'
13072  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13073  # Check for a 64-bit object if we didn't find anything.
13074  if test -z "$lt_cv_aix_libpath_"; then
13075    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13076  fi
13077fi
13078rm -f core conftest.err conftest.$ac_objext conftest.beam \
13079    conftest$ac_exeext conftest.$ac_ext
13080  if test -z "$lt_cv_aix_libpath_"; then
13081    lt_cv_aix_libpath_=/usr/lib:/lib
13082  fi
13083
13084fi
13085
13086  aix_libpath=$lt_cv_aix_libpath_
13087fi
13088
13089        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13090        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
13091      else
13092	if test ia64 = "$host_cpu"; then
13093	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13094	  allow_undefined_flag="-z nodefs"
13095	  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"
13096	else
13097	 # Determine the default libpath from the value encoded in an
13098	 # empty executable.
13099	 if test set = "${lt_cv_aix_libpath+set}"; then
13100  aix_libpath=$lt_cv_aix_libpath
13101else
13102  if test ${lt_cv_aix_libpath_+y}
13103then :
13104  printf %s "(cached) " >&6
13105else $as_nop
13106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h.  */
13108
13109int
13110main (void)
13111{
13112
13113  ;
13114  return 0;
13115}
13116_ACEOF
13117if ac_fn_c_try_link "$LINENO"
13118then :
13119
13120  lt_aix_libpath_sed='
13121      /Import File Strings/,/^$/ {
13122	  /^0/ {
13123	      s/^0  *\([^ ]*\) *$/\1/
13124	      p
13125	  }
13126      }'
13127  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13128  # Check for a 64-bit object if we didn't find anything.
13129  if test -z "$lt_cv_aix_libpath_"; then
13130    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13131  fi
13132fi
13133rm -f core conftest.err conftest.$ac_objext conftest.beam \
13134    conftest$ac_exeext conftest.$ac_ext
13135  if test -z "$lt_cv_aix_libpath_"; then
13136    lt_cv_aix_libpath_=/usr/lib:/lib
13137  fi
13138
13139fi
13140
13141  aix_libpath=$lt_cv_aix_libpath_
13142fi
13143
13144	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13145	  # Warning - without using the other run time loading flags,
13146	  # -berok will link without error, but may produce a broken library.
13147	  no_undefined_flag=' $wl-bernotok'
13148	  allow_undefined_flag=' $wl-berok'
13149	  if test yes = "$with_gnu_ld"; then
13150	    # We only use this code for GNU lds that support --whole-archive.
13151	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13152	  else
13153	    # Exported symbols can be pulled into shared objects from archives
13154	    whole_archive_flag_spec='$convenience'
13155	  fi
13156	  archive_cmds_need_lc=yes
13157	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13158	  # -brtl affects multiple linker settings, -berok does not and is overridden later
13159	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13160	  if test svr4 != "$with_aix_soname"; then
13161	    # This is similar to how AIX traditionally builds its shared libraries.
13162	    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'
13163	  fi
13164	  if test aix != "$with_aix_soname"; then
13165	    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'
13166	  else
13167	    # used by -dlpreopen to get the symbols
13168	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13169	  fi
13170	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13171	fi
13172      fi
13173      ;;
13174
13175    amigaos*)
13176      case $host_cpu in
13177      powerpc)
13178            # see comment about AmigaOS4 .so support
13179            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13180            archive_expsym_cmds=''
13181        ;;
13182      m68k)
13183            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)'
13184            hardcode_libdir_flag_spec='-L$libdir'
13185            hardcode_minus_L=yes
13186        ;;
13187      esac
13188      ;;
13189
13190    bsdi[45]*)
13191      export_dynamic_flag_spec=-rdynamic
13192      ;;
13193
13194    cygwin* | mingw* | pw32* | cegcc*)
13195      # When not using gcc, we currently assume that we are using
13196      # Microsoft Visual C++.
13197      # hardcode_libdir_flag_spec is actually meaningless, as there is
13198      # no search path for DLLs.
13199      case $cc_basename in
13200      cl*)
13201	# Native MSVC
13202	hardcode_libdir_flag_spec=' '
13203	allow_undefined_flag=unsupported
13204	always_export_symbols=yes
13205	file_list_spec='@'
13206	# Tell ltmain to make .lib files, not .a files.
13207	libext=lib
13208	# Tell ltmain to make .dll files, not .so files.
13209	shrext_cmds=.dll
13210	# FIXME: Setting linknames here is a bad hack.
13211	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13212	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13213            cp "$export_symbols" "$output_objdir/$soname.def";
13214            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13215          else
13216            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13217          fi~
13218          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13219          linknames='
13220	# The linker will not automatically build a static lib if we build a DLL.
13221	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13222	enable_shared_with_static_runtimes=yes
13223	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13224	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13225	# Don't use ranlib
13226	old_postinstall_cmds='chmod 644 $oldlib'
13227	postlink_cmds='lt_outputfile="@OUTPUT@"~
13228          lt_tool_outputfile="@TOOL_OUTPUT@"~
13229          case $lt_outputfile in
13230            *.exe|*.EXE) ;;
13231            *)
13232              lt_outputfile=$lt_outputfile.exe
13233              lt_tool_outputfile=$lt_tool_outputfile.exe
13234              ;;
13235          esac~
13236          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13237            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13238            $RM "$lt_outputfile.manifest";
13239          fi'
13240	;;
13241      *)
13242	# Assume MSVC wrapper
13243	hardcode_libdir_flag_spec=' '
13244	allow_undefined_flag=unsupported
13245	# Tell ltmain to make .lib files, not .a files.
13246	libext=lib
13247	# Tell ltmain to make .dll files, not .so files.
13248	shrext_cmds=.dll
13249	# FIXME: Setting linknames here is a bad hack.
13250	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13251	# The linker will automatically build a .lib file if we build a DLL.
13252	old_archive_from_new_cmds='true'
13253	# FIXME: Should let the user specify the lib program.
13254	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13255	enable_shared_with_static_runtimes=yes
13256	;;
13257      esac
13258      ;;
13259
13260    darwin* | rhapsody*)
13261
13262
13263  archive_cmds_need_lc=no
13264  hardcode_direct=no
13265  hardcode_automatic=yes
13266  hardcode_shlibpath_var=unsupported
13267  if test yes = "$lt_cv_ld_force_load"; then
13268    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\"`'
13269
13270  else
13271    whole_archive_flag_spec=''
13272  fi
13273  link_all_deplibs=yes
13274  allow_undefined_flag=$_lt_dar_allow_undefined
13275  case $cc_basename in
13276     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13277     *) _lt_dar_can_shared=$GCC ;;
13278  esac
13279  if test yes = "$_lt_dar_can_shared"; then
13280    output_verbose_link_cmd=func_echo_all
13281    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13282    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13283    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"
13284    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"
13285
13286  else
13287  ld_shlibs=no
13288  fi
13289
13290      ;;
13291
13292    dgux*)
13293      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13294      hardcode_libdir_flag_spec='-L$libdir'
13295      hardcode_shlibpath_var=no
13296      ;;
13297
13298    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13299    # support.  Future versions do this automatically, but an explicit c++rt0.o
13300    # does not break anything, and helps significantly (at the cost of a little
13301    # extra space).
13302    freebsd2.2*)
13303      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13304      hardcode_libdir_flag_spec='-R$libdir'
13305      hardcode_direct=yes
13306      hardcode_shlibpath_var=no
13307      ;;
13308
13309    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13310    freebsd2.*)
13311      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13312      hardcode_direct=yes
13313      hardcode_minus_L=yes
13314      hardcode_shlibpath_var=no
13315      ;;
13316
13317    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13318    freebsd* | dragonfly*)
13319      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13320      hardcode_libdir_flag_spec='-R$libdir'
13321      hardcode_direct=yes
13322      hardcode_shlibpath_var=no
13323      ;;
13324
13325    hpux9*)
13326      if test yes = "$GCC"; then
13327	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'
13328      else
13329	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'
13330      fi
13331      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13332      hardcode_libdir_separator=:
13333      hardcode_direct=yes
13334
13335      # hardcode_minus_L: Not really in the search PATH,
13336      # but as the default location of the library.
13337      hardcode_minus_L=yes
13338      export_dynamic_flag_spec='$wl-E'
13339      ;;
13340
13341    hpux10*)
13342      if test yes,no = "$GCC,$with_gnu_ld"; then
13343	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13344      else
13345	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13346      fi
13347      if test no = "$with_gnu_ld"; then
13348	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13349	hardcode_libdir_separator=:
13350	hardcode_direct=yes
13351	hardcode_direct_absolute=yes
13352	export_dynamic_flag_spec='$wl-E'
13353	# hardcode_minus_L: Not really in the search PATH,
13354	# but as the default location of the library.
13355	hardcode_minus_L=yes
13356      fi
13357      ;;
13358
13359    hpux11*)
13360      if test yes,no = "$GCC,$with_gnu_ld"; then
13361	case $host_cpu in
13362	hppa*64*)
13363	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13364	  ;;
13365	ia64*)
13366	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13367	  ;;
13368	*)
13369	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13370	  ;;
13371	esac
13372      else
13373	case $host_cpu in
13374	hppa*64*)
13375	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13376	  ;;
13377	ia64*)
13378	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13379	  ;;
13380	*)
13381
13382	  # Older versions of the 11.00 compiler do not understand -b yet
13383	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13384	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13385printf %s "checking if $CC understands -b... " >&6; }
13386if test ${lt_cv_prog_compiler__b+y}
13387then :
13388  printf %s "(cached) " >&6
13389else $as_nop
13390  lt_cv_prog_compiler__b=no
13391   save_LDFLAGS=$LDFLAGS
13392   LDFLAGS="$LDFLAGS -b"
13393   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13394   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13395     # The linker can only warn and ignore the option if not recognized
13396     # So say no if there are warnings
13397     if test -s conftest.err; then
13398       # Append any errors to the config.log.
13399       cat conftest.err 1>&5
13400       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13401       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13402       if diff conftest.exp conftest.er2 >/dev/null; then
13403         lt_cv_prog_compiler__b=yes
13404       fi
13405     else
13406       lt_cv_prog_compiler__b=yes
13407     fi
13408   fi
13409   $RM -r conftest*
13410   LDFLAGS=$save_LDFLAGS
13411
13412fi
13413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13414printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13415
13416if test yes = "$lt_cv_prog_compiler__b"; then
13417    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13418else
13419    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13420fi
13421
13422	  ;;
13423	esac
13424      fi
13425      if test no = "$with_gnu_ld"; then
13426	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13427	hardcode_libdir_separator=:
13428
13429	case $host_cpu in
13430	hppa*64*|ia64*)
13431	  hardcode_direct=no
13432	  hardcode_shlibpath_var=no
13433	  ;;
13434	*)
13435	  hardcode_direct=yes
13436	  hardcode_direct_absolute=yes
13437	  export_dynamic_flag_spec='$wl-E'
13438
13439	  # hardcode_minus_L: Not really in the search PATH,
13440	  # but as the default location of the library.
13441	  hardcode_minus_L=yes
13442	  ;;
13443	esac
13444      fi
13445      ;;
13446
13447    irix5* | irix6* | nonstopux*)
13448      if test yes = "$GCC"; then
13449	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'
13450	# Try to use the -exported_symbol ld option, if it does not
13451	# work, assume that -exports_file does not work either and
13452	# implicitly export all symbols.
13453	# This should be the same for all languages, so no per-tag cache variable.
13454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13455printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13456if test ${lt_cv_irix_exported_symbol+y}
13457then :
13458  printf %s "(cached) " >&6
13459else $as_nop
13460  save_LDFLAGS=$LDFLAGS
13461	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13462	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464int foo (void) { return 0; }
13465_ACEOF
13466if ac_fn_c_try_link "$LINENO"
13467then :
13468  lt_cv_irix_exported_symbol=yes
13469else $as_nop
13470  lt_cv_irix_exported_symbol=no
13471fi
13472rm -f core conftest.err conftest.$ac_objext conftest.beam \
13473    conftest$ac_exeext conftest.$ac_ext
13474           LDFLAGS=$save_LDFLAGS
13475fi
13476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13477printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13478	if test yes = "$lt_cv_irix_exported_symbol"; then
13479          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'
13480	fi
13481      else
13482	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'
13483	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'
13484      fi
13485      archive_cmds_need_lc='no'
13486      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13487      hardcode_libdir_separator=:
13488      inherit_rpath=yes
13489      link_all_deplibs=yes
13490      ;;
13491
13492    linux*)
13493      case $cc_basename in
13494      tcc*)
13495	# Fabrice Bellard et al's Tiny C Compiler
13496	ld_shlibs=yes
13497	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13498	;;
13499      esac
13500      ;;
13501
13502    netbsd*)
13503      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13504	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13505      else
13506	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13507      fi
13508      hardcode_libdir_flag_spec='-R$libdir'
13509      hardcode_direct=yes
13510      hardcode_shlibpath_var=no
13511      ;;
13512
13513    newsos6)
13514      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13515      hardcode_direct=yes
13516      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13517      hardcode_libdir_separator=:
13518      hardcode_shlibpath_var=no
13519      ;;
13520
13521    *nto* | *qnx*)
13522      ;;
13523
13524    openbsd* | bitrig*)
13525      if test -f /usr/libexec/ld.so; then
13526	hardcode_direct=yes
13527	hardcode_shlibpath_var=no
13528	hardcode_direct_absolute=yes
13529	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13530	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13531	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13532	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13533	  export_dynamic_flag_spec='$wl-E'
13534	else
13535	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13536	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13537	fi
13538      else
13539	ld_shlibs=no
13540      fi
13541      ;;
13542
13543    os2*)
13544      hardcode_libdir_flag_spec='-L$libdir'
13545      hardcode_minus_L=yes
13546      allow_undefined_flag=unsupported
13547      shrext_cmds=.dll
13548      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13549	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13550	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13551	$ECHO EXPORTS >> $output_objdir/$libname.def~
13552	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13553	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13554	emximp -o $lib $output_objdir/$libname.def'
13555      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13556	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13557	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13558	$ECHO EXPORTS >> $output_objdir/$libname.def~
13559	prefix_cmds="$SED"~
13560	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13561	  prefix_cmds="$prefix_cmds -e 1d";
13562	fi~
13563	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13564	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13565	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13566	emximp -o $lib $output_objdir/$libname.def'
13567      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13568      enable_shared_with_static_runtimes=yes
13569      ;;
13570
13571    osf3*)
13572      if test yes = "$GCC"; then
13573	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13574	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'
13575      else
13576	allow_undefined_flag=' -expect_unresolved \*'
13577	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'
13578      fi
13579      archive_cmds_need_lc='no'
13580      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13581      hardcode_libdir_separator=:
13582      ;;
13583
13584    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13585      if test yes = "$GCC"; then
13586	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13587	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'
13588	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13589      else
13590	allow_undefined_flag=' -expect_unresolved \*'
13591	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'
13592	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~
13593          $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'
13594
13595	# Both c and cxx compiler support -rpath directly
13596	hardcode_libdir_flag_spec='-rpath $libdir'
13597      fi
13598      archive_cmds_need_lc='no'
13599      hardcode_libdir_separator=:
13600      ;;
13601
13602    solaris*)
13603      no_undefined_flag=' -z defs'
13604      if test yes = "$GCC"; then
13605	wlarc='$wl'
13606	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13607	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13608          $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'
13609      else
13610	case `$CC -V 2>&1` in
13611	*"Compilers 5.0"*)
13612	  wlarc=''
13613	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13614	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13615            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13616	  ;;
13617	*)
13618	  wlarc='$wl'
13619	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13620	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13621            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13622	  ;;
13623	esac
13624      fi
13625      hardcode_libdir_flag_spec='-R$libdir'
13626      hardcode_shlibpath_var=no
13627      case $host_os in
13628      solaris2.[0-5] | solaris2.[0-5].*) ;;
13629      *)
13630	# The compiler driver will combine and reorder linker options,
13631	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13632	# but is careful enough not to reorder.
13633	# Supported since Solaris 2.6 (maybe 2.5.1?)
13634	if test yes = "$GCC"; then
13635	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13636	else
13637	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13638	fi
13639	;;
13640      esac
13641      link_all_deplibs=yes
13642      ;;
13643
13644    sunos4*)
13645      if test sequent = "$host_vendor"; then
13646	# Use $CC to link under sequent, because it throws in some extra .o
13647	# files that make .init and .fini sections work.
13648	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13649      else
13650	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13651      fi
13652      hardcode_libdir_flag_spec='-L$libdir'
13653      hardcode_direct=yes
13654      hardcode_minus_L=yes
13655      hardcode_shlibpath_var=no
13656      ;;
13657
13658    sysv4)
13659      case $host_vendor in
13660	sni)
13661	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13662	  hardcode_direct=yes # is this really true???
13663	;;
13664	siemens)
13665	  ## LD is ld it makes a PLAMLIB
13666	  ## CC just makes a GrossModule.
13667	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13668	  reload_cmds='$CC -r -o $output$reload_objs'
13669	  hardcode_direct=no
13670        ;;
13671	motorola)
13672	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13673	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13674	;;
13675      esac
13676      runpath_var='LD_RUN_PATH'
13677      hardcode_shlibpath_var=no
13678      ;;
13679
13680    sysv4.3*)
13681      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13682      hardcode_shlibpath_var=no
13683      export_dynamic_flag_spec='-Bexport'
13684      ;;
13685
13686    sysv4*MP*)
13687      if test -d /usr/nec; then
13688	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13689	hardcode_shlibpath_var=no
13690	runpath_var=LD_RUN_PATH
13691	hardcode_runpath_var=yes
13692	ld_shlibs=yes
13693      fi
13694      ;;
13695
13696    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13697      no_undefined_flag='$wl-z,text'
13698      archive_cmds_need_lc=no
13699      hardcode_shlibpath_var=no
13700      runpath_var='LD_RUN_PATH'
13701
13702      if test yes = "$GCC"; then
13703	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705      else
13706	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13708      fi
13709      ;;
13710
13711    sysv5* | sco3.2v5* | sco5v6*)
13712      # Note: We CANNOT use -z defs as we might desire, because we do not
13713      # link with -lc, and that would cause any symbols used from libc to
13714      # always be unresolved, which means just about no library would
13715      # ever link correctly.  If we're not using GNU ld we use -z text
13716      # though, which does catch some bad symbols but isn't as heavy-handed
13717      # as -z defs.
13718      no_undefined_flag='$wl-z,text'
13719      allow_undefined_flag='$wl-z,nodefs'
13720      archive_cmds_need_lc=no
13721      hardcode_shlibpath_var=no
13722      hardcode_libdir_flag_spec='$wl-R,$libdir'
13723      hardcode_libdir_separator=':'
13724      link_all_deplibs=yes
13725      export_dynamic_flag_spec='$wl-Bexport'
13726      runpath_var='LD_RUN_PATH'
13727
13728      if test yes = "$GCC"; then
13729	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13731      else
13732	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13733	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13734      fi
13735      ;;
13736
13737    uts4*)
13738      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13739      hardcode_libdir_flag_spec='-L$libdir'
13740      hardcode_shlibpath_var=no
13741      ;;
13742
13743    *)
13744      ld_shlibs=no
13745      ;;
13746    esac
13747
13748    if test sni = "$host_vendor"; then
13749      case $host in
13750      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13751	export_dynamic_flag_spec='$wl-Blargedynsym'
13752	;;
13753      esac
13754    fi
13755  fi
13756
13757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13758printf "%s\n" "$ld_shlibs" >&6; }
13759test no = "$ld_shlibs" && can_build_shared=no
13760
13761with_gnu_ld=$with_gnu_ld
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777#
13778# Do we need to explicitly link libc?
13779#
13780case "x$archive_cmds_need_lc" in
13781x|xyes)
13782  # Assume -lc should be added
13783  archive_cmds_need_lc=yes
13784
13785  if test yes,yes = "$GCC,$enable_shared"; then
13786    case $archive_cmds in
13787    *'~'*)
13788      # FIXME: we may have to deal with multi-command sequences.
13789      ;;
13790    '$CC '*)
13791      # Test whether the compiler implicitly links with -lc since on some
13792      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13793      # to ld, don't add -lc before -lgcc.
13794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13795printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13796if test ${lt_cv_archive_cmds_need_lc+y}
13797then :
13798  printf %s "(cached) " >&6
13799else $as_nop
13800  $RM conftest*
13801	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13802
13803	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13804  (eval $ac_compile) 2>&5
13805  ac_status=$?
13806  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13807  test $ac_status = 0; } 2>conftest.err; then
13808	  soname=conftest
13809	  lib=conftest
13810	  libobjs=conftest.$ac_objext
13811	  deplibs=
13812	  wl=$lt_prog_compiler_wl
13813	  pic_flag=$lt_prog_compiler_pic
13814	  compiler_flags=-v
13815	  linker_flags=-v
13816	  verstring=
13817	  output_objdir=.
13818	  libname=conftest
13819	  lt_save_allow_undefined_flag=$allow_undefined_flag
13820	  allow_undefined_flag=
13821	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13822  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13823  ac_status=$?
13824  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825  test $ac_status = 0; }
13826	  then
13827	    lt_cv_archive_cmds_need_lc=no
13828	  else
13829	    lt_cv_archive_cmds_need_lc=yes
13830	  fi
13831	  allow_undefined_flag=$lt_save_allow_undefined_flag
13832	else
13833	  cat conftest.err 1>&5
13834	fi
13835	$RM conftest*
13836
13837fi
13838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13839printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13840      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13841      ;;
13842    esac
13843  fi
13844  ;;
13845esac
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13999printf %s "checking dynamic linker characteristics... " >&6; }
14000
14001if test yes = "$GCC"; then
14002  case $host_os in
14003    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14004    *) lt_awk_arg='/^libraries:/' ;;
14005  esac
14006  case $host_os in
14007    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14008    *) lt_sed_strip_eq='s|=/|/|g' ;;
14009  esac
14010  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14011  case $lt_search_path_spec in
14012  *\;*)
14013    # if the path contains ";" then we assume it to be the separator
14014    # otherwise default to the standard path separator (i.e. ":") - it is
14015    # assumed that no part of a normal pathname contains ";" but that should
14016    # okay in the real world where ";" in dirpaths is itself problematic.
14017    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14018    ;;
14019  *)
14020    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14021    ;;
14022  esac
14023  # Ok, now we have the path, separated by spaces, we can step through it
14024  # and add multilib dir if necessary...
14025  lt_tmp_lt_search_path_spec=
14026  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14027  # ...but if some path component already ends with the multilib dir we assume
14028  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14029  case "$lt_multi_os_dir; $lt_search_path_spec " in
14030  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14031    lt_multi_os_dir=
14032    ;;
14033  esac
14034  for lt_sys_path in $lt_search_path_spec; do
14035    if test -d "$lt_sys_path$lt_multi_os_dir"; then
14036      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14037    elif test -n "$lt_multi_os_dir"; then
14038      test -d "$lt_sys_path" && \
14039	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14040    fi
14041  done
14042  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14043BEGIN {RS = " "; FS = "/|\n";} {
14044  lt_foo = "";
14045  lt_count = 0;
14046  for (lt_i = NF; lt_i > 0; lt_i--) {
14047    if ($lt_i != "" && $lt_i != ".") {
14048      if ($lt_i == "..") {
14049        lt_count++;
14050      } else {
14051        if (lt_count == 0) {
14052          lt_foo = "/" $lt_i lt_foo;
14053        } else {
14054          lt_count--;
14055        }
14056      }
14057    }
14058  }
14059  if (lt_foo != "") { lt_freq[lt_foo]++; }
14060  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14061}'`
14062  # AWK program above erroneously prepends '/' to C:/dos/paths
14063  # for these hosts.
14064  case $host_os in
14065    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14066      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14067  esac
14068  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14069else
14070  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14071fi
14072library_names_spec=
14073libname_spec='lib$name'
14074soname_spec=
14075shrext_cmds=.so
14076postinstall_cmds=
14077postuninstall_cmds=
14078finish_cmds=
14079finish_eval=
14080shlibpath_var=
14081shlibpath_overrides_runpath=unknown
14082version_type=none
14083dynamic_linker="$host_os ld.so"
14084sys_lib_dlsearch_path_spec="/lib /usr/lib"
14085need_lib_prefix=unknown
14086hardcode_into_libs=no
14087
14088# when you set need_version to no, make sure it does not cause -set_version
14089# flags to be left without arguments
14090need_version=unknown
14091
14092
14093
14094case $host_os in
14095aix3*)
14096  version_type=linux # correct to gnu/linux during the next big refactor
14097  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14098  shlibpath_var=LIBPATH
14099
14100  # AIX 3 has no versioning support, so we append a major version to the name.
14101  soname_spec='$libname$release$shared_ext$major'
14102  ;;
14103
14104aix[4-9]*)
14105  version_type=linux # correct to gnu/linux during the next big refactor
14106  need_lib_prefix=no
14107  need_version=no
14108  hardcode_into_libs=yes
14109  if test ia64 = "$host_cpu"; then
14110    # AIX 5 supports IA64
14111    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14112    shlibpath_var=LD_LIBRARY_PATH
14113  else
14114    # With GCC up to 2.95.x, collect2 would create an import file
14115    # for dependence libraries.  The import file would start with
14116    # the line '#! .'.  This would cause the generated library to
14117    # depend on '.', always an invalid library.  This was fixed in
14118    # development snapshots of GCC prior to 3.0.
14119    case $host_os in
14120      aix4 | aix4.[01] | aix4.[01].*)
14121      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14122	   echo ' yes '
14123	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14124	:
14125      else
14126	can_build_shared=no
14127      fi
14128      ;;
14129    esac
14130    # Using Import Files as archive members, it is possible to support
14131    # filename-based versioning of shared library archives on AIX. While
14132    # this would work for both with and without runtime linking, it will
14133    # prevent static linking of such archives. So we do filename-based
14134    # shared library versioning with .so extension only, which is used
14135    # when both runtime linking and shared linking is enabled.
14136    # Unfortunately, runtime linking may impact performance, so we do
14137    # not want this to be the default eventually. Also, we use the
14138    # versioned .so libs for executables only if there is the -brtl
14139    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14140    # To allow for filename-based versioning support, we need to create
14141    # libNAME.so.V as an archive file, containing:
14142    # *) an Import File, referring to the versioned filename of the
14143    #    archive as well as the shared archive member, telling the
14144    #    bitwidth (32 or 64) of that shared object, and providing the
14145    #    list of exported symbols of that shared object, eventually
14146    #    decorated with the 'weak' keyword
14147    # *) the shared object with the F_LOADONLY flag set, to really avoid
14148    #    it being seen by the linker.
14149    # At run time we better use the real file rather than another symlink,
14150    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14151
14152    case $with_aix_soname,$aix_use_runtimelinking in
14153    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14154    # soname into executable. Probably we can add versioning support to
14155    # collect2, so additional links can be useful in future.
14156    aix,yes) # traditional libtool
14157      dynamic_linker='AIX unversionable lib.so'
14158      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14159      # instead of lib<name>.a to let people know that these are not
14160      # typical AIX shared libraries.
14161      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14162      ;;
14163    aix,no) # traditional AIX only
14164      dynamic_linker='AIX lib.a(lib.so.V)'
14165      # We preserve .a as extension for shared libraries through AIX4.2
14166      # and later when we are not doing run time linking.
14167      library_names_spec='$libname$release.a $libname.a'
14168      soname_spec='$libname$release$shared_ext$major'
14169      ;;
14170    svr4,*) # full svr4 only
14171      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14172      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14173      # We do not specify a path in Import Files, so LIBPATH fires.
14174      shlibpath_overrides_runpath=yes
14175      ;;
14176    *,yes) # both, prefer svr4
14177      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14178      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14179      # unpreferred sharedlib libNAME.a needs extra handling
14180      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"'
14181      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"'
14182      # We do not specify a path in Import Files, so LIBPATH fires.
14183      shlibpath_overrides_runpath=yes
14184      ;;
14185    *,no) # both, prefer aix
14186      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14187      library_names_spec='$libname$release.a $libname.a'
14188      soname_spec='$libname$release$shared_ext$major'
14189      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14190      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)'
14191      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"'
14192      ;;
14193    esac
14194    shlibpath_var=LIBPATH
14195  fi
14196  ;;
14197
14198amigaos*)
14199  case $host_cpu in
14200  powerpc)
14201    # Since July 2007 AmigaOS4 officially supports .so libraries.
14202    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14203    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14204    ;;
14205  m68k)
14206    library_names_spec='$libname.ixlibrary $libname.a'
14207    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14208    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'
14209    ;;
14210  esac
14211  ;;
14212
14213beos*)
14214  library_names_spec='$libname$shared_ext'
14215  dynamic_linker="$host_os ld.so"
14216  shlibpath_var=LIBRARY_PATH
14217  ;;
14218
14219bsdi[45]*)
14220  version_type=linux # correct to gnu/linux during the next big refactor
14221  need_version=no
14222  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14223  soname_spec='$libname$release$shared_ext$major'
14224  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14225  shlibpath_var=LD_LIBRARY_PATH
14226  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14227  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14228  # the default ld.so.conf also contains /usr/contrib/lib and
14229  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14230  # libtool to hard-code these into programs
14231  ;;
14232
14233cygwin* | mingw* | pw32* | cegcc*)
14234  version_type=windows
14235  shrext_cmds=.dll
14236  need_version=no
14237  need_lib_prefix=no
14238
14239  case $GCC,$cc_basename in
14240  yes,*)
14241    # gcc
14242    library_names_spec='$libname.dll.a'
14243    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14244    postinstall_cmds='base_file=`basename \$file`~
14245      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14246      dldir=$destdir/`dirname \$dlpath`~
14247      test -d \$dldir || mkdir -p \$dldir~
14248      $install_prog $dir/$dlname \$dldir/$dlname~
14249      chmod a+x \$dldir/$dlname~
14250      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14251        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14252      fi'
14253    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14254      dlpath=$dir/\$dldll~
14255       $RM \$dlpath'
14256    shlibpath_overrides_runpath=yes
14257
14258    case $host_os in
14259    cygwin*)
14260      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14261      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14262
14263      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14264      ;;
14265    mingw* | cegcc*)
14266      # MinGW DLLs use traditional 'lib' prefix
14267      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14268      ;;
14269    pw32*)
14270      # pw32 DLLs use 'pw' prefix rather than 'lib'
14271      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14272      ;;
14273    esac
14274    dynamic_linker='Win32 ld.exe'
14275    ;;
14276
14277  *,cl*)
14278    # Native MSVC
14279    libname_spec='$name'
14280    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14281    library_names_spec='$libname.dll.lib'
14282
14283    case $build_os in
14284    mingw*)
14285      sys_lib_search_path_spec=
14286      lt_save_ifs=$IFS
14287      IFS=';'
14288      for lt_path in $LIB
14289      do
14290        IFS=$lt_save_ifs
14291        # Let DOS variable expansion print the short 8.3 style file name.
14292        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14293        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14294      done
14295      IFS=$lt_save_ifs
14296      # Convert to MSYS style.
14297      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14298      ;;
14299    cygwin*)
14300      # Convert to unix form, then to dos form, then back to unix form
14301      # but this time dos style (no spaces!) so that the unix form looks
14302      # like /cygdrive/c/PROGRA~1:/cygdr...
14303      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14304      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14305      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14306      ;;
14307    *)
14308      sys_lib_search_path_spec=$LIB
14309      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14310        # It is most probably a Windows format PATH.
14311        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14312      else
14313        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14314      fi
14315      # FIXME: find the short name or the path components, as spaces are
14316      # common. (e.g. "Program Files" -> "PROGRA~1")
14317      ;;
14318    esac
14319
14320    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14321    postinstall_cmds='base_file=`basename \$file`~
14322      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14323      dldir=$destdir/`dirname \$dlpath`~
14324      test -d \$dldir || mkdir -p \$dldir~
14325      $install_prog $dir/$dlname \$dldir/$dlname'
14326    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14327      dlpath=$dir/\$dldll~
14328       $RM \$dlpath'
14329    shlibpath_overrides_runpath=yes
14330    dynamic_linker='Win32 link.exe'
14331    ;;
14332
14333  *)
14334    # Assume MSVC wrapper
14335    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14336    dynamic_linker='Win32 ld.exe'
14337    ;;
14338  esac
14339  # FIXME: first we should search . and the directory the executable is in
14340  shlibpath_var=PATH
14341  ;;
14342
14343darwin* | rhapsody*)
14344  dynamic_linker="$host_os dyld"
14345  version_type=darwin
14346  need_lib_prefix=no
14347  need_version=no
14348  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14349  soname_spec='$libname$release$major$shared_ext'
14350  shlibpath_overrides_runpath=yes
14351  shlibpath_var=DYLD_LIBRARY_PATH
14352  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14353
14354  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14355  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14356  ;;
14357
14358dgux*)
14359  version_type=linux # correct to gnu/linux during the next big refactor
14360  need_lib_prefix=no
14361  need_version=no
14362  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14363  soname_spec='$libname$release$shared_ext$major'
14364  shlibpath_var=LD_LIBRARY_PATH
14365  ;;
14366
14367freebsd* | dragonfly*)
14368  # DragonFly does not have aout.  When/if they implement a new
14369  # versioning mechanism, adjust this.
14370  if test -x /usr/bin/objformat; then
14371    objformat=`/usr/bin/objformat`
14372  else
14373    case $host_os in
14374    freebsd[23].*) objformat=aout ;;
14375    *) objformat=elf ;;
14376    esac
14377  fi
14378  version_type=freebsd-$objformat
14379  case $version_type in
14380    freebsd-elf*)
14381      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14382      soname_spec='$libname$release$shared_ext$major'
14383      need_version=no
14384      need_lib_prefix=no
14385      ;;
14386    freebsd-*)
14387      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14388      need_version=yes
14389      ;;
14390  esac
14391  shlibpath_var=LD_LIBRARY_PATH
14392  case $host_os in
14393  freebsd2.*)
14394    shlibpath_overrides_runpath=yes
14395    ;;
14396  freebsd3.[01]* | freebsdelf3.[01]*)
14397    shlibpath_overrides_runpath=yes
14398    hardcode_into_libs=yes
14399    ;;
14400  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14401  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14402    shlibpath_overrides_runpath=no
14403    hardcode_into_libs=yes
14404    ;;
14405  *) # from 4.6 on, and DragonFly
14406    shlibpath_overrides_runpath=yes
14407    hardcode_into_libs=yes
14408    ;;
14409  esac
14410  ;;
14411
14412haiku*)
14413  version_type=linux # correct to gnu/linux during the next big refactor
14414  need_lib_prefix=no
14415  need_version=no
14416  dynamic_linker="$host_os runtime_loader"
14417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14418  soname_spec='$libname$release$shared_ext$major'
14419  shlibpath_var=LIBRARY_PATH
14420  shlibpath_overrides_runpath=no
14421  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14422  hardcode_into_libs=yes
14423  ;;
14424
14425hpux9* | hpux10* | hpux11*)
14426  # Give a soname corresponding to the major version so that dld.sl refuses to
14427  # link against other versions.
14428  version_type=sunos
14429  need_lib_prefix=no
14430  need_version=no
14431  case $host_cpu in
14432  ia64*)
14433    shrext_cmds='.so'
14434    hardcode_into_libs=yes
14435    dynamic_linker="$host_os dld.so"
14436    shlibpath_var=LD_LIBRARY_PATH
14437    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14438    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14439    soname_spec='$libname$release$shared_ext$major'
14440    if test 32 = "$HPUX_IA64_MODE"; then
14441      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14442      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14443    else
14444      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14445      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14446    fi
14447    ;;
14448  hppa*64*)
14449    shrext_cmds='.sl'
14450    hardcode_into_libs=yes
14451    dynamic_linker="$host_os dld.sl"
14452    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14453    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14454    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14455    soname_spec='$libname$release$shared_ext$major'
14456    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14457    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14458    ;;
14459  *)
14460    shrext_cmds='.sl'
14461    dynamic_linker="$host_os dld.sl"
14462    shlibpath_var=SHLIB_PATH
14463    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14464    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14465    soname_spec='$libname$release$shared_ext$major'
14466    ;;
14467  esac
14468  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14469  postinstall_cmds='chmod 555 $lib'
14470  # or fails outright, so override atomically:
14471  install_override_mode=555
14472  ;;
14473
14474interix[3-9]*)
14475  version_type=linux # correct to gnu/linux during the next big refactor
14476  need_lib_prefix=no
14477  need_version=no
14478  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14479  soname_spec='$libname$release$shared_ext$major'
14480  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14481  shlibpath_var=LD_LIBRARY_PATH
14482  shlibpath_overrides_runpath=no
14483  hardcode_into_libs=yes
14484  ;;
14485
14486irix5* | irix6* | nonstopux*)
14487  case $host_os in
14488    nonstopux*) version_type=nonstopux ;;
14489    *)
14490	if test yes = "$lt_cv_prog_gnu_ld"; then
14491		version_type=linux # correct to gnu/linux during the next big refactor
14492	else
14493		version_type=irix
14494	fi ;;
14495  esac
14496  need_lib_prefix=no
14497  need_version=no
14498  soname_spec='$libname$release$shared_ext$major'
14499  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14500  case $host_os in
14501  irix5* | nonstopux*)
14502    libsuff= shlibsuff=
14503    ;;
14504  *)
14505    case $LD in # libtool.m4 will add one of these switches to LD
14506    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14507      libsuff= shlibsuff= libmagic=32-bit;;
14508    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14509      libsuff=32 shlibsuff=N32 libmagic=N32;;
14510    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14511      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14512    *) libsuff= shlibsuff= libmagic=never-match;;
14513    esac
14514    ;;
14515  esac
14516  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14517  shlibpath_overrides_runpath=no
14518  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14519  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14520  hardcode_into_libs=yes
14521  ;;
14522
14523# No shared lib support for Linux oldld, aout, or coff.
14524linux*oldld* | linux*aout* | linux*coff*)
14525  dynamic_linker=no
14526  ;;
14527
14528linux*android*)
14529  version_type=none # Android doesn't support versioned libraries.
14530  need_lib_prefix=no
14531  need_version=no
14532  library_names_spec='$libname$release$shared_ext'
14533  soname_spec='$libname$release$shared_ext'
14534  finish_cmds=
14535  shlibpath_var=LD_LIBRARY_PATH
14536  shlibpath_overrides_runpath=yes
14537
14538  # This implies no fast_install, which is unacceptable.
14539  # Some rework will be needed to allow for fast_install
14540  # before this can be enabled.
14541  hardcode_into_libs=yes
14542
14543  dynamic_linker='Android linker'
14544  # Don't embed -rpath directories since the linker doesn't support them.
14545  hardcode_libdir_flag_spec='-L$libdir'
14546  ;;
14547
14548# This must be glibc/ELF.
14549linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14550  version_type=linux # correct to gnu/linux during the next big refactor
14551  need_lib_prefix=no
14552  need_version=no
14553  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14554  soname_spec='$libname$release$shared_ext$major'
14555  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14556  shlibpath_var=LD_LIBRARY_PATH
14557  shlibpath_overrides_runpath=no
14558
14559  # Some binutils ld are patched to set DT_RUNPATH
14560  if test ${lt_cv_shlibpath_overrides_runpath+y}
14561then :
14562  printf %s "(cached) " >&6
14563else $as_nop
14564  lt_cv_shlibpath_overrides_runpath=no
14565    save_LDFLAGS=$LDFLAGS
14566    save_libdir=$libdir
14567    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14568	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14569    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571
14572int
14573main (void)
14574{
14575
14576  ;
14577  return 0;
14578}
14579_ACEOF
14580if ac_fn_c_try_link "$LINENO"
14581then :
14582  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14583then :
14584  lt_cv_shlibpath_overrides_runpath=yes
14585fi
14586fi
14587rm -f core conftest.err conftest.$ac_objext conftest.beam \
14588    conftest$ac_exeext conftest.$ac_ext
14589    LDFLAGS=$save_LDFLAGS
14590    libdir=$save_libdir
14591
14592fi
14593
14594  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14595
14596  # This implies no fast_install, which is unacceptable.
14597  # Some rework will be needed to allow for fast_install
14598  # before this can be enabled.
14599  hardcode_into_libs=yes
14600
14601  # Ideally, we could use ldconfig to report *all* directores which are
14602  # searched for libraries, however this is still not possible.  Aside from not
14603  # being certain /sbin/ldconfig is available, command
14604  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14605  # even though it is searched at run-time.  Try to do the best guess by
14606  # appending ld.so.conf contents (and includes) to the search path.
14607  if test -f /etc/ld.so.conf; then
14608    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' ' '`
14609    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14610  fi
14611
14612  # We used to test for /lib/ld.so.1 and disable shared libraries on
14613  # powerpc, because MkLinux only supported shared libraries with the
14614  # GNU dynamic linker.  Since this was broken with cross compilers,
14615  # most powerpc-linux boxes support dynamic linking these days and
14616  # people can always --disable-shared, the test was removed, and we
14617  # assume the GNU/Linux dynamic linker is in use.
14618  dynamic_linker='GNU/Linux ld.so'
14619  ;;
14620
14621netbsd*)
14622  version_type=sunos
14623  need_lib_prefix=no
14624  need_version=no
14625  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14626    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14627    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628    dynamic_linker='NetBSD (a.out) ld.so'
14629  else
14630    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14631    soname_spec='$libname$release$shared_ext$major'
14632    dynamic_linker='NetBSD ld.elf_so'
14633  fi
14634  shlibpath_var=LD_LIBRARY_PATH
14635  shlibpath_overrides_runpath=yes
14636  hardcode_into_libs=yes
14637  ;;
14638
14639newsos6)
14640  version_type=linux # correct to gnu/linux during the next big refactor
14641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14642  shlibpath_var=LD_LIBRARY_PATH
14643  shlibpath_overrides_runpath=yes
14644  ;;
14645
14646*nto* | *qnx*)
14647  version_type=qnx
14648  need_lib_prefix=no
14649  need_version=no
14650  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14651  soname_spec='$libname$release$shared_ext$major'
14652  shlibpath_var=LD_LIBRARY_PATH
14653  shlibpath_overrides_runpath=no
14654  hardcode_into_libs=yes
14655  dynamic_linker='ldqnx.so'
14656  ;;
14657
14658openbsd* | bitrig*)
14659  version_type=sunos
14660  sys_lib_dlsearch_path_spec=/usr/lib
14661  need_lib_prefix=no
14662  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14663    need_version=no
14664  else
14665    need_version=yes
14666  fi
14667  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14668  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14669  shlibpath_var=LD_LIBRARY_PATH
14670  shlibpath_overrides_runpath=yes
14671  ;;
14672
14673os2*)
14674  libname_spec='$name'
14675  version_type=windows
14676  shrext_cmds=.dll
14677  need_version=no
14678  need_lib_prefix=no
14679  # OS/2 can only load a DLL with a base name of 8 characters or less.
14680  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14681    v=$($ECHO $release$versuffix | tr -d .-);
14682    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14683    $ECHO $n$v`$shared_ext'
14684  library_names_spec='${libname}_dll.$libext'
14685  dynamic_linker='OS/2 ld.exe'
14686  shlibpath_var=BEGINLIBPATH
14687  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14688  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14689  postinstall_cmds='base_file=`basename \$file`~
14690    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14691    dldir=$destdir/`dirname \$dlpath`~
14692    test -d \$dldir || mkdir -p \$dldir~
14693    $install_prog $dir/$dlname \$dldir/$dlname~
14694    chmod a+x \$dldir/$dlname~
14695    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14696      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14697    fi'
14698  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14699    dlpath=$dir/\$dldll~
14700    $RM \$dlpath'
14701  ;;
14702
14703osf3* | osf4* | osf5*)
14704  version_type=osf
14705  need_lib_prefix=no
14706  need_version=no
14707  soname_spec='$libname$release$shared_ext$major'
14708  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14709  shlibpath_var=LD_LIBRARY_PATH
14710  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14711  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14712  ;;
14713
14714rdos*)
14715  dynamic_linker=no
14716  ;;
14717
14718solaris*)
14719  version_type=linux # correct to gnu/linux during the next big refactor
14720  need_lib_prefix=no
14721  need_version=no
14722  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14723  soname_spec='$libname$release$shared_ext$major'
14724  shlibpath_var=LD_LIBRARY_PATH
14725  shlibpath_overrides_runpath=yes
14726  hardcode_into_libs=yes
14727  # ldd complains unless libraries are executable
14728  postinstall_cmds='chmod +x $lib'
14729  ;;
14730
14731sunos4*)
14732  version_type=sunos
14733  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14734  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14735  shlibpath_var=LD_LIBRARY_PATH
14736  shlibpath_overrides_runpath=yes
14737  if test yes = "$with_gnu_ld"; then
14738    need_lib_prefix=no
14739  fi
14740  need_version=yes
14741  ;;
14742
14743sysv4 | sysv4.3*)
14744  version_type=linux # correct to gnu/linux during the next big refactor
14745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14746  soname_spec='$libname$release$shared_ext$major'
14747  shlibpath_var=LD_LIBRARY_PATH
14748  case $host_vendor in
14749    sni)
14750      shlibpath_overrides_runpath=no
14751      need_lib_prefix=no
14752      runpath_var=LD_RUN_PATH
14753      ;;
14754    siemens)
14755      need_lib_prefix=no
14756      ;;
14757    motorola)
14758      need_lib_prefix=no
14759      need_version=no
14760      shlibpath_overrides_runpath=no
14761      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14762      ;;
14763  esac
14764  ;;
14765
14766sysv4*MP*)
14767  if test -d /usr/nec; then
14768    version_type=linux # correct to gnu/linux during the next big refactor
14769    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14770    soname_spec='$libname$shared_ext.$major'
14771    shlibpath_var=LD_LIBRARY_PATH
14772  fi
14773  ;;
14774
14775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14776  version_type=sco
14777  need_lib_prefix=no
14778  need_version=no
14779  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14780  soname_spec='$libname$release$shared_ext$major'
14781  shlibpath_var=LD_LIBRARY_PATH
14782  shlibpath_overrides_runpath=yes
14783  hardcode_into_libs=yes
14784  if test yes = "$with_gnu_ld"; then
14785    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14786  else
14787    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14788    case $host_os in
14789      sco3.2v5*)
14790        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14791	;;
14792    esac
14793  fi
14794  sys_lib_dlsearch_path_spec='/usr/lib'
14795  ;;
14796
14797tpf*)
14798  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14799  version_type=linux # correct to gnu/linux during the next big refactor
14800  need_lib_prefix=no
14801  need_version=no
14802  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14803  shlibpath_var=LD_LIBRARY_PATH
14804  shlibpath_overrides_runpath=no
14805  hardcode_into_libs=yes
14806  ;;
14807
14808uts4*)
14809  version_type=linux # correct to gnu/linux during the next big refactor
14810  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14811  soname_spec='$libname$release$shared_ext$major'
14812  shlibpath_var=LD_LIBRARY_PATH
14813  ;;
14814
14815*)
14816  dynamic_linker=no
14817  ;;
14818esac
14819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14820printf "%s\n" "$dynamic_linker" >&6; }
14821test no = "$dynamic_linker" && can_build_shared=no
14822
14823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14824if test yes = "$GCC"; then
14825  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14826fi
14827
14828if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14829  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14830fi
14831
14832if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14833  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14834fi
14835
14836# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14837configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14838
14839# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14840func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14841
14842# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14843configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14942printf %s "checking how to hardcode library paths into programs... " >&6; }
14943hardcode_action=
14944if test -n "$hardcode_libdir_flag_spec" ||
14945   test -n "$runpath_var" ||
14946   test yes = "$hardcode_automatic"; then
14947
14948  # We can hardcode non-existent directories.
14949  if test no != "$hardcode_direct" &&
14950     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14951     # have to relink, otherwise we might link with an installed library
14952     # when we should be linking with a yet-to-be-installed one
14953     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14954     test no != "$hardcode_minus_L"; then
14955    # Linking always hardcodes the temporary library directory.
14956    hardcode_action=relink
14957  else
14958    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14959    hardcode_action=immediate
14960  fi
14961else
14962  # We cannot hardcode anything, or else we can only hardcode existing
14963  # directories.
14964  hardcode_action=unsupported
14965fi
14966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14967printf "%s\n" "$hardcode_action" >&6; }
14968
14969if test relink = "$hardcode_action" ||
14970   test yes = "$inherit_rpath"; then
14971  # Fast installation is not supported
14972  enable_fast_install=no
14973elif test yes = "$shlibpath_overrides_runpath" ||
14974     test no = "$enable_shared"; then
14975  # Fast installation is not necessary
14976  enable_fast_install=needless
14977fi
14978
14979
14980
14981
14982
14983
14984  if test yes != "$enable_dlopen"; then
14985  enable_dlopen=unknown
14986  enable_dlopen_self=unknown
14987  enable_dlopen_self_static=unknown
14988else
14989  lt_cv_dlopen=no
14990  lt_cv_dlopen_libs=
14991
14992  case $host_os in
14993  beos*)
14994    lt_cv_dlopen=load_add_on
14995    lt_cv_dlopen_libs=
14996    lt_cv_dlopen_self=yes
14997    ;;
14998
14999  mingw* | pw32* | cegcc*)
15000    lt_cv_dlopen=LoadLibrary
15001    lt_cv_dlopen_libs=
15002    ;;
15003
15004  cygwin*)
15005    lt_cv_dlopen=dlopen
15006    lt_cv_dlopen_libs=
15007    ;;
15008
15009  darwin*)
15010    # if libdl is installed we need to link against it
15011    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15012printf %s "checking for dlopen in -ldl... " >&6; }
15013if test ${ac_cv_lib_dl_dlopen+y}
15014then :
15015  printf %s "(cached) " >&6
15016else $as_nop
15017  ac_check_lib_save_LIBS=$LIBS
15018LIBS="-ldl  $LIBS"
15019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020/* end confdefs.h.  */
15021
15022/* Override any GCC internal prototype to avoid an error.
15023   Use char because int might match the return type of a GCC
15024   builtin and then its argument prototype would still apply.  */
15025char dlopen ();
15026int
15027main (void)
15028{
15029return dlopen ();
15030  ;
15031  return 0;
15032}
15033_ACEOF
15034if ac_fn_c_try_link "$LINENO"
15035then :
15036  ac_cv_lib_dl_dlopen=yes
15037else $as_nop
15038  ac_cv_lib_dl_dlopen=no
15039fi
15040rm -f core conftest.err conftest.$ac_objext conftest.beam \
15041    conftest$ac_exeext conftest.$ac_ext
15042LIBS=$ac_check_lib_save_LIBS
15043fi
15044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15045printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15046if test "x$ac_cv_lib_dl_dlopen" = xyes
15047then :
15048  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15049else $as_nop
15050
15051    lt_cv_dlopen=dyld
15052    lt_cv_dlopen_libs=
15053    lt_cv_dlopen_self=yes
15054
15055fi
15056
15057    ;;
15058
15059  tpf*)
15060    # Don't try to run any link tests for TPF.  We know it's impossible
15061    # because TPF is a cross-compiler, and we know how we open DSOs.
15062    lt_cv_dlopen=dlopen
15063    lt_cv_dlopen_libs=
15064    lt_cv_dlopen_self=no
15065    ;;
15066
15067  *)
15068    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15069if test "x$ac_cv_func_shl_load" = xyes
15070then :
15071  lt_cv_dlopen=shl_load
15072else $as_nop
15073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15074printf %s "checking for shl_load in -ldld... " >&6; }
15075if test ${ac_cv_lib_dld_shl_load+y}
15076then :
15077  printf %s "(cached) " >&6
15078else $as_nop
15079  ac_check_lib_save_LIBS=$LIBS
15080LIBS="-ldld  $LIBS"
15081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082/* end confdefs.h.  */
15083
15084/* Override any GCC internal prototype to avoid an error.
15085   Use char because int might match the return type of a GCC
15086   builtin and then its argument prototype would still apply.  */
15087char shl_load ();
15088int
15089main (void)
15090{
15091return shl_load ();
15092  ;
15093  return 0;
15094}
15095_ACEOF
15096if ac_fn_c_try_link "$LINENO"
15097then :
15098  ac_cv_lib_dld_shl_load=yes
15099else $as_nop
15100  ac_cv_lib_dld_shl_load=no
15101fi
15102rm -f core conftest.err conftest.$ac_objext conftest.beam \
15103    conftest$ac_exeext conftest.$ac_ext
15104LIBS=$ac_check_lib_save_LIBS
15105fi
15106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15107printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15108if test "x$ac_cv_lib_dld_shl_load" = xyes
15109then :
15110  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15111else $as_nop
15112  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15113if test "x$ac_cv_func_dlopen" = xyes
15114then :
15115  lt_cv_dlopen=dlopen
15116else $as_nop
15117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15118printf %s "checking for dlopen in -ldl... " >&6; }
15119if test ${ac_cv_lib_dl_dlopen+y}
15120then :
15121  printf %s "(cached) " >&6
15122else $as_nop
15123  ac_check_lib_save_LIBS=$LIBS
15124LIBS="-ldl  $LIBS"
15125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126/* end confdefs.h.  */
15127
15128/* Override any GCC internal prototype to avoid an error.
15129   Use char because int might match the return type of a GCC
15130   builtin and then its argument prototype would still apply.  */
15131char dlopen ();
15132int
15133main (void)
15134{
15135return dlopen ();
15136  ;
15137  return 0;
15138}
15139_ACEOF
15140if ac_fn_c_try_link "$LINENO"
15141then :
15142  ac_cv_lib_dl_dlopen=yes
15143else $as_nop
15144  ac_cv_lib_dl_dlopen=no
15145fi
15146rm -f core conftest.err conftest.$ac_objext conftest.beam \
15147    conftest$ac_exeext conftest.$ac_ext
15148LIBS=$ac_check_lib_save_LIBS
15149fi
15150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15151printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15152if test "x$ac_cv_lib_dl_dlopen" = xyes
15153then :
15154  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15155else $as_nop
15156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15157printf %s "checking for dlopen in -lsvld... " >&6; }
15158if test ${ac_cv_lib_svld_dlopen+y}
15159then :
15160  printf %s "(cached) " >&6
15161else $as_nop
15162  ac_check_lib_save_LIBS=$LIBS
15163LIBS="-lsvld  $LIBS"
15164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165/* end confdefs.h.  */
15166
15167/* Override any GCC internal prototype to avoid an error.
15168   Use char because int might match the return type of a GCC
15169   builtin and then its argument prototype would still apply.  */
15170char dlopen ();
15171int
15172main (void)
15173{
15174return dlopen ();
15175  ;
15176  return 0;
15177}
15178_ACEOF
15179if ac_fn_c_try_link "$LINENO"
15180then :
15181  ac_cv_lib_svld_dlopen=yes
15182else $as_nop
15183  ac_cv_lib_svld_dlopen=no
15184fi
15185rm -f core conftest.err conftest.$ac_objext conftest.beam \
15186    conftest$ac_exeext conftest.$ac_ext
15187LIBS=$ac_check_lib_save_LIBS
15188fi
15189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15190printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15191if test "x$ac_cv_lib_svld_dlopen" = xyes
15192then :
15193  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15194else $as_nop
15195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15196printf %s "checking for dld_link in -ldld... " >&6; }
15197if test ${ac_cv_lib_dld_dld_link+y}
15198then :
15199  printf %s "(cached) " >&6
15200else $as_nop
15201  ac_check_lib_save_LIBS=$LIBS
15202LIBS="-ldld  $LIBS"
15203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204/* end confdefs.h.  */
15205
15206/* Override any GCC internal prototype to avoid an error.
15207   Use char because int might match the return type of a GCC
15208   builtin and then its argument prototype would still apply.  */
15209char dld_link ();
15210int
15211main (void)
15212{
15213return dld_link ();
15214  ;
15215  return 0;
15216}
15217_ACEOF
15218if ac_fn_c_try_link "$LINENO"
15219then :
15220  ac_cv_lib_dld_dld_link=yes
15221else $as_nop
15222  ac_cv_lib_dld_dld_link=no
15223fi
15224rm -f core conftest.err conftest.$ac_objext conftest.beam \
15225    conftest$ac_exeext conftest.$ac_ext
15226LIBS=$ac_check_lib_save_LIBS
15227fi
15228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15229printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15230if test "x$ac_cv_lib_dld_dld_link" = xyes
15231then :
15232  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15233fi
15234
15235
15236fi
15237
15238
15239fi
15240
15241
15242fi
15243
15244
15245fi
15246
15247
15248fi
15249
15250    ;;
15251  esac
15252
15253  if test no = "$lt_cv_dlopen"; then
15254    enable_dlopen=no
15255  else
15256    enable_dlopen=yes
15257  fi
15258
15259  case $lt_cv_dlopen in
15260  dlopen)
15261    save_CPPFLAGS=$CPPFLAGS
15262    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15263
15264    save_LDFLAGS=$LDFLAGS
15265    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15266
15267    save_LIBS=$LIBS
15268    LIBS="$lt_cv_dlopen_libs $LIBS"
15269
15270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15271printf %s "checking whether a program can dlopen itself... " >&6; }
15272if test ${lt_cv_dlopen_self+y}
15273then :
15274  printf %s "(cached) " >&6
15275else $as_nop
15276  	  if test yes = "$cross_compiling"; then :
15277  lt_cv_dlopen_self=cross
15278else
15279  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15280  lt_status=$lt_dlunknown
15281  cat > conftest.$ac_ext <<_LT_EOF
15282#line $LINENO "configure"
15283#include "confdefs.h"
15284
15285#if HAVE_DLFCN_H
15286#include <dlfcn.h>
15287#endif
15288
15289#include <stdio.h>
15290
15291#ifdef RTLD_GLOBAL
15292#  define LT_DLGLOBAL		RTLD_GLOBAL
15293#else
15294#  ifdef DL_GLOBAL
15295#    define LT_DLGLOBAL		DL_GLOBAL
15296#  else
15297#    define LT_DLGLOBAL		0
15298#  endif
15299#endif
15300
15301/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15302   find out it does not work in some platform. */
15303#ifndef LT_DLLAZY_OR_NOW
15304#  ifdef RTLD_LAZY
15305#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15306#  else
15307#    ifdef DL_LAZY
15308#      define LT_DLLAZY_OR_NOW		DL_LAZY
15309#    else
15310#      ifdef RTLD_NOW
15311#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15312#      else
15313#        ifdef DL_NOW
15314#          define LT_DLLAZY_OR_NOW	DL_NOW
15315#        else
15316#          define LT_DLLAZY_OR_NOW	0
15317#        endif
15318#      endif
15319#    endif
15320#  endif
15321#endif
15322
15323/* When -fvisibility=hidden is used, assume the code has been annotated
15324   correspondingly for the symbols needed.  */
15325#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15326int fnord () __attribute__((visibility("default")));
15327#endif
15328
15329int fnord () { return 42; }
15330int main ()
15331{
15332  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15333  int status = $lt_dlunknown;
15334
15335  if (self)
15336    {
15337      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15338      else
15339        {
15340	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15341          else puts (dlerror ());
15342	}
15343      /* dlclose (self); */
15344    }
15345  else
15346    puts (dlerror ());
15347
15348  return status;
15349}
15350_LT_EOF
15351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15352  (eval $ac_link) 2>&5
15353  ac_status=$?
15354  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15355  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15356    (./conftest; exit; ) >&5 2>/dev/null
15357    lt_status=$?
15358    case x$lt_status in
15359      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15360      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15361      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15362    esac
15363  else :
15364    # compilation failed
15365    lt_cv_dlopen_self=no
15366  fi
15367fi
15368rm -fr conftest*
15369
15370
15371fi
15372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15373printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15374
15375    if test yes = "$lt_cv_dlopen_self"; then
15376      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15377      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15378printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15379if test ${lt_cv_dlopen_self_static+y}
15380then :
15381  printf %s "(cached) " >&6
15382else $as_nop
15383  	  if test yes = "$cross_compiling"; then :
15384  lt_cv_dlopen_self_static=cross
15385else
15386  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15387  lt_status=$lt_dlunknown
15388  cat > conftest.$ac_ext <<_LT_EOF
15389#line $LINENO "configure"
15390#include "confdefs.h"
15391
15392#if HAVE_DLFCN_H
15393#include <dlfcn.h>
15394#endif
15395
15396#include <stdio.h>
15397
15398#ifdef RTLD_GLOBAL
15399#  define LT_DLGLOBAL		RTLD_GLOBAL
15400#else
15401#  ifdef DL_GLOBAL
15402#    define LT_DLGLOBAL		DL_GLOBAL
15403#  else
15404#    define LT_DLGLOBAL		0
15405#  endif
15406#endif
15407
15408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15409   find out it does not work in some platform. */
15410#ifndef LT_DLLAZY_OR_NOW
15411#  ifdef RTLD_LAZY
15412#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15413#  else
15414#    ifdef DL_LAZY
15415#      define LT_DLLAZY_OR_NOW		DL_LAZY
15416#    else
15417#      ifdef RTLD_NOW
15418#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15419#      else
15420#        ifdef DL_NOW
15421#          define LT_DLLAZY_OR_NOW	DL_NOW
15422#        else
15423#          define LT_DLLAZY_OR_NOW	0
15424#        endif
15425#      endif
15426#    endif
15427#  endif
15428#endif
15429
15430/* When -fvisibility=hidden is used, assume the code has been annotated
15431   correspondingly for the symbols needed.  */
15432#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15433int fnord () __attribute__((visibility("default")));
15434#endif
15435
15436int fnord () { return 42; }
15437int main ()
15438{
15439  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15440  int status = $lt_dlunknown;
15441
15442  if (self)
15443    {
15444      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15445      else
15446        {
15447	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15448          else puts (dlerror ());
15449	}
15450      /* dlclose (self); */
15451    }
15452  else
15453    puts (dlerror ());
15454
15455  return status;
15456}
15457_LT_EOF
15458  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15459  (eval $ac_link) 2>&5
15460  ac_status=$?
15461  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15462  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15463    (./conftest; exit; ) >&5 2>/dev/null
15464    lt_status=$?
15465    case x$lt_status in
15466      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15467      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15468      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15469    esac
15470  else :
15471    # compilation failed
15472    lt_cv_dlopen_self_static=no
15473  fi
15474fi
15475rm -fr conftest*
15476
15477
15478fi
15479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15480printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15481    fi
15482
15483    CPPFLAGS=$save_CPPFLAGS
15484    LDFLAGS=$save_LDFLAGS
15485    LIBS=$save_LIBS
15486    ;;
15487  esac
15488
15489  case $lt_cv_dlopen_self in
15490  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15491  *) enable_dlopen_self=unknown ;;
15492  esac
15493
15494  case $lt_cv_dlopen_self_static in
15495  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15496  *) enable_dlopen_self_static=unknown ;;
15497  esac
15498fi
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516striplib=
15517old_striplib=
15518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15519printf %s "checking whether stripping libraries is possible... " >&6; }
15520if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15521  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15522  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15524printf "%s\n" "yes" >&6; }
15525else
15526# FIXME - insert some real tests, host_os isn't really good enough
15527  case $host_os in
15528  darwin*)
15529    if test -n "$STRIP"; then
15530      striplib="$STRIP -x"
15531      old_striplib="$STRIP -S"
15532      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15533printf "%s\n" "yes" >&6; }
15534    else
15535      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15536printf "%s\n" "no" >&6; }
15537    fi
15538    ;;
15539  *)
15540    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15541printf "%s\n" "no" >&6; }
15542    ;;
15543  esac
15544fi
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557  # Report what library types will actually be built
15558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15559printf %s "checking if libtool supports shared libraries... " >&6; }
15560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15561printf "%s\n" "$can_build_shared" >&6; }
15562
15563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15564printf %s "checking whether to build shared libraries... " >&6; }
15565  test no = "$can_build_shared" && enable_shared=no
15566
15567  # On AIX, shared libraries and static libraries use the same namespace, and
15568  # are all built from PIC.
15569  case $host_os in
15570  aix3*)
15571    test yes = "$enable_shared" && enable_static=no
15572    if test -n "$RANLIB"; then
15573      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15574      postinstall_cmds='$RANLIB $lib'
15575    fi
15576    ;;
15577
15578  aix[4-9]*)
15579    if test ia64 != "$host_cpu"; then
15580      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15581      yes,aix,yes) ;;			# shared object as lib.so file only
15582      yes,svr4,*) ;;			# shared object as lib.so archive member only
15583      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15584      esac
15585    fi
15586    ;;
15587  esac
15588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15589printf "%s\n" "$enable_shared" >&6; }
15590
15591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15592printf %s "checking whether to build static libraries... " >&6; }
15593  # Make sure either enable_shared or enable_static is yes.
15594  test yes = "$enable_shared" || enable_static=yes
15595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15596printf "%s\n" "$enable_static" >&6; }
15597
15598
15599
15600
15601fi
15602ac_ext=c
15603ac_cpp='$CPP $CPPFLAGS'
15604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15606ac_compiler_gnu=$ac_cv_c_compiler_gnu
15607
15608CC=$lt_save_CC
15609
15610      if test -n "$CXX" && ( test no != "$CXX" &&
15611    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15612    (test g++ != "$CXX"))); then
15613  ac_ext=cpp
15614ac_cpp='$CXXCPP $CPPFLAGS'
15615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15619printf %s "checking how to run the C++ preprocessor... " >&6; }
15620if test -z "$CXXCPP"; then
15621  if test ${ac_cv_prog_CXXCPP+y}
15622then :
15623  printf %s "(cached) " >&6
15624else $as_nop
15625      # Double quotes because $CXX needs to be expanded
15626    for CXXCPP in "$CXX -E" cpp /lib/cpp
15627    do
15628      ac_preproc_ok=false
15629for ac_cxx_preproc_warn_flag in '' yes
15630do
15631  # Use a header file that comes with gcc, so configuring glibc
15632  # with a fresh cross-compiler works.
15633  # On the NeXT, cc -E runs the code through the compiler's parser,
15634  # not just through cpp. "Syntax error" is here to catch this case.
15635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637#include <limits.h>
15638		     Syntax error
15639_ACEOF
15640if ac_fn_cxx_try_cpp "$LINENO"
15641then :
15642
15643else $as_nop
15644  # Broken: fails on valid input.
15645continue
15646fi
15647rm -f conftest.err conftest.i conftest.$ac_ext
15648
15649  # OK, works on sane cases.  Now check whether nonexistent headers
15650  # can be detected and how.
15651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652/* end confdefs.h.  */
15653#include <ac_nonexistent.h>
15654_ACEOF
15655if ac_fn_cxx_try_cpp "$LINENO"
15656then :
15657  # Broken: success on invalid input.
15658continue
15659else $as_nop
15660  # Passes both tests.
15661ac_preproc_ok=:
15662break
15663fi
15664rm -f conftest.err conftest.i conftest.$ac_ext
15665
15666done
15667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15668rm -f conftest.i conftest.err conftest.$ac_ext
15669if $ac_preproc_ok
15670then :
15671  break
15672fi
15673
15674    done
15675    ac_cv_prog_CXXCPP=$CXXCPP
15676
15677fi
15678  CXXCPP=$ac_cv_prog_CXXCPP
15679else
15680  ac_cv_prog_CXXCPP=$CXXCPP
15681fi
15682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15683printf "%s\n" "$CXXCPP" >&6; }
15684ac_preproc_ok=false
15685for ac_cxx_preproc_warn_flag in '' yes
15686do
15687  # Use a header file that comes with gcc, so configuring glibc
15688  # with a fresh cross-compiler works.
15689  # On the NeXT, cc -E runs the code through the compiler's parser,
15690  # not just through cpp. "Syntax error" is here to catch this case.
15691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h.  */
15693#include <limits.h>
15694		     Syntax error
15695_ACEOF
15696if ac_fn_cxx_try_cpp "$LINENO"
15697then :
15698
15699else $as_nop
15700  # Broken: fails on valid input.
15701continue
15702fi
15703rm -f conftest.err conftest.i conftest.$ac_ext
15704
15705  # OK, works on sane cases.  Now check whether nonexistent headers
15706  # can be detected and how.
15707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709#include <ac_nonexistent.h>
15710_ACEOF
15711if ac_fn_cxx_try_cpp "$LINENO"
15712then :
15713  # Broken: success on invalid input.
15714continue
15715else $as_nop
15716  # Passes both tests.
15717ac_preproc_ok=:
15718break
15719fi
15720rm -f conftest.err conftest.i conftest.$ac_ext
15721
15722done
15723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15724rm -f conftest.i conftest.err conftest.$ac_ext
15725if $ac_preproc_ok
15726then :
15727
15728else $as_nop
15729  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15730printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15731as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15732See \`config.log' for more details" "$LINENO" 5; }
15733fi
15734
15735ac_ext=c
15736ac_cpp='$CPP $CPPFLAGS'
15737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15739ac_compiler_gnu=$ac_cv_c_compiler_gnu
15740
15741else
15742  _lt_caught_CXX_error=yes
15743fi
15744
15745ac_ext=cpp
15746ac_cpp='$CXXCPP $CPPFLAGS'
15747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15750
15751archive_cmds_need_lc_CXX=no
15752allow_undefined_flag_CXX=
15753always_export_symbols_CXX=no
15754archive_expsym_cmds_CXX=
15755compiler_needs_object_CXX=no
15756export_dynamic_flag_spec_CXX=
15757hardcode_direct_CXX=no
15758hardcode_direct_absolute_CXX=no
15759hardcode_libdir_flag_spec_CXX=
15760hardcode_libdir_separator_CXX=
15761hardcode_minus_L_CXX=no
15762hardcode_shlibpath_var_CXX=unsupported
15763hardcode_automatic_CXX=no
15764inherit_rpath_CXX=no
15765module_cmds_CXX=
15766module_expsym_cmds_CXX=
15767link_all_deplibs_CXX=unknown
15768old_archive_cmds_CXX=$old_archive_cmds
15769reload_flag_CXX=$reload_flag
15770reload_cmds_CXX=$reload_cmds
15771no_undefined_flag_CXX=
15772whole_archive_flag_spec_CXX=
15773enable_shared_with_static_runtimes_CXX=no
15774
15775# Source file extension for C++ test sources.
15776ac_ext=cpp
15777
15778# Object file extension for compiled C++ test sources.
15779objext=o
15780objext_CXX=$objext
15781
15782# No sense in running all these tests if we already determined that
15783# the CXX compiler isn't working.  Some variables (like enable_shared)
15784# are currently assumed to apply to all compilers on this platform,
15785# and will be corrupted by setting them based on a non-working compiler.
15786if test yes != "$_lt_caught_CXX_error"; then
15787  # Code to be used in simple compile tests
15788  lt_simple_compile_test_code="int some_variable = 0;"
15789
15790  # Code to be used in simple link tests
15791  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15792
15793  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15794
15795
15796
15797
15798
15799
15800# If no C compiler was specified, use CC.
15801LTCC=${LTCC-"$CC"}
15802
15803# If no C compiler flags were specified, use CFLAGS.
15804LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15805
15806# Allow CC to be a program name with arguments.
15807compiler=$CC
15808
15809
15810  # save warnings/boilerplate of simple test code
15811  ac_outfile=conftest.$ac_objext
15812echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15813eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15814_lt_compiler_boilerplate=`cat conftest.err`
15815$RM conftest*
15816
15817  ac_outfile=conftest.$ac_objext
15818echo "$lt_simple_link_test_code" >conftest.$ac_ext
15819eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15820_lt_linker_boilerplate=`cat conftest.err`
15821$RM -r conftest*
15822
15823
15824  # Allow CC to be a program name with arguments.
15825  lt_save_CC=$CC
15826  lt_save_CFLAGS=$CFLAGS
15827  lt_save_LD=$LD
15828  lt_save_GCC=$GCC
15829  GCC=$GXX
15830  lt_save_with_gnu_ld=$with_gnu_ld
15831  lt_save_path_LD=$lt_cv_path_LD
15832  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15833    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15834  else
15835    $as_unset lt_cv_prog_gnu_ld
15836  fi
15837  if test -n "${lt_cv_path_LDCXX+set}"; then
15838    lt_cv_path_LD=$lt_cv_path_LDCXX
15839  else
15840    $as_unset lt_cv_path_LD
15841  fi
15842  test -z "${LDCXX+set}" || LD=$LDCXX
15843  CC=${CXX-"c++"}
15844  CFLAGS=$CXXFLAGS
15845  compiler=$CC
15846  compiler_CXX=$CC
15847  func_cc_basename $compiler
15848cc_basename=$func_cc_basename_result
15849
15850
15851  if test -n "$compiler"; then
15852    # We don't want -fno-exception when compiling C++ code, so set the
15853    # no_builtin_flag separately
15854    if test yes = "$GXX"; then
15855      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15856    else
15857      lt_prog_compiler_no_builtin_flag_CXX=
15858    fi
15859
15860    if test yes = "$GXX"; then
15861      # Set up default GNU C++ configuration
15862
15863
15864
15865# Check whether --with-gnu-ld was given.
15866if test ${with_gnu_ld+y}
15867then :
15868  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15869else $as_nop
15870  with_gnu_ld=no
15871fi
15872
15873ac_prog=ld
15874if test yes = "$GCC"; then
15875  # Check if gcc -print-prog-name=ld gives a path.
15876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15877printf %s "checking for ld used by $CC... " >&6; }
15878  case $host in
15879  *-*-mingw*)
15880    # gcc leaves a trailing carriage return, which upsets mingw
15881    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15882  *)
15883    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15884  esac
15885  case $ac_prog in
15886    # Accept absolute paths.
15887    [\\/]* | ?:[\\/]*)
15888      re_direlt='/[^/][^/]*/\.\./'
15889      # Canonicalize the pathname of ld
15890      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15891      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15892	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15893      done
15894      test -z "$LD" && LD=$ac_prog
15895      ;;
15896  "")
15897    # If it fails, then pretend we aren't using GCC.
15898    ac_prog=ld
15899    ;;
15900  *)
15901    # If it is relative, then search for the first ld in PATH.
15902    with_gnu_ld=unknown
15903    ;;
15904  esac
15905elif test yes = "$with_gnu_ld"; then
15906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15907printf %s "checking for GNU ld... " >&6; }
15908else
15909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15910printf %s "checking for non-GNU ld... " >&6; }
15911fi
15912if test ${lt_cv_path_LD+y}
15913then :
15914  printf %s "(cached) " >&6
15915else $as_nop
15916  if test -z "$LD"; then
15917  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15918  for ac_dir in $PATH; do
15919    IFS=$lt_save_ifs
15920    test -z "$ac_dir" && ac_dir=.
15921    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15922      lt_cv_path_LD=$ac_dir/$ac_prog
15923      # Check to see if the program is GNU ld.  I'd rather use --version,
15924      # but apparently some variants of GNU ld only accept -v.
15925      # Break only if it was the GNU/non-GNU ld that we prefer.
15926      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15927      *GNU* | *'with BFD'*)
15928	test no != "$with_gnu_ld" && break
15929	;;
15930      *)
15931	test yes != "$with_gnu_ld" && break
15932	;;
15933      esac
15934    fi
15935  done
15936  IFS=$lt_save_ifs
15937else
15938  lt_cv_path_LD=$LD # Let the user override the test with a path.
15939fi
15940fi
15941
15942LD=$lt_cv_path_LD
15943if test -n "$LD"; then
15944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15945printf "%s\n" "$LD" >&6; }
15946else
15947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15948printf "%s\n" "no" >&6; }
15949fi
15950test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15952printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15953if test ${lt_cv_prog_gnu_ld+y}
15954then :
15955  printf %s "(cached) " >&6
15956else $as_nop
15957  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15958case `$LD -v 2>&1 </dev/null` in
15959*GNU* | *'with BFD'*)
15960  lt_cv_prog_gnu_ld=yes
15961  ;;
15962*)
15963  lt_cv_prog_gnu_ld=no
15964  ;;
15965esac
15966fi
15967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15968printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15969with_gnu_ld=$lt_cv_prog_gnu_ld
15970
15971
15972
15973
15974
15975
15976
15977      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15978      # archiving commands below assume that GNU ld is being used.
15979      if test yes = "$with_gnu_ld"; then
15980        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15981        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15982
15983        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15984        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15985
15986        # If archive_cmds runs LD, not CC, wlarc should be empty
15987        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15988        #     investigate it a little bit more. (MM)
15989        wlarc='$wl'
15990
15991        # ancient GNU ld didn't support --whole-archive et. al.
15992        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15993	  $GREP 'no-whole-archive' > /dev/null; then
15994          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15995        else
15996          whole_archive_flag_spec_CXX=
15997        fi
15998      else
15999        with_gnu_ld=no
16000        wlarc=
16001
16002        # A generic and very simple default shared library creation
16003        # command for GNU C++ for the case where it uses the native
16004        # linker, instead of GNU ld.  If possible, this setting should
16005        # overridden to take advantage of the native linker features on
16006        # the platform it is being used on.
16007        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16008      fi
16009
16010      # Commands to make compiler produce verbose output that lists
16011      # what "hidden" libraries, object files and flags are used when
16012      # linking a shared library.
16013      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16014
16015    else
16016      GXX=no
16017      with_gnu_ld=no
16018      wlarc=
16019    fi
16020
16021    # PORTME: fill in a description of your system's C++ link characteristics
16022    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16023printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16024    ld_shlibs_CXX=yes
16025    case $host_os in
16026      aix3*)
16027        # FIXME: insert proper C++ library support
16028        ld_shlibs_CXX=no
16029        ;;
16030      aix[4-9]*)
16031        if test ia64 = "$host_cpu"; then
16032          # On IA64, the linker does run time linking by default, so we don't
16033          # have to do anything special.
16034          aix_use_runtimelinking=no
16035          exp_sym_flag='-Bexport'
16036          no_entry_flag=
16037        else
16038          aix_use_runtimelinking=no
16039
16040          # Test if we are trying to use run time linking or normal
16041          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16042          # have runtime linking enabled, and use it for executables.
16043          # For shared libraries, we enable/disable runtime linking
16044          # depending on the kind of the shared library created -
16045          # when "with_aix_soname,aix_use_runtimelinking" is:
16046          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16047          # "aix,yes"  lib.so          shared, rtl:yes, for executables
16048          #            lib.a           static archive
16049          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
16050          #            lib.a(lib.so.V) shared, rtl:no,  for executables
16051          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16052          #            lib.a(lib.so.V) shared, rtl:no
16053          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16054          #            lib.a           static archive
16055          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16056	    for ld_flag in $LDFLAGS; do
16057	      case $ld_flag in
16058	      *-brtl*)
16059	        aix_use_runtimelinking=yes
16060	        break
16061	        ;;
16062	      esac
16063	    done
16064	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16065	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
16066	      # so we don't have lib.a shared libs to link our executables.
16067	      # We have to force runtime linking in this case.
16068	      aix_use_runtimelinking=yes
16069	      LDFLAGS="$LDFLAGS -Wl,-brtl"
16070	    fi
16071	    ;;
16072          esac
16073
16074          exp_sym_flag='-bexport'
16075          no_entry_flag='-bnoentry'
16076        fi
16077
16078        # When large executables or shared objects are built, AIX ld can
16079        # have problems creating the table of contents.  If linking a library
16080        # or program results in "error TOC overflow" add -mminimal-toc to
16081        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16082        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16083
16084        archive_cmds_CXX=''
16085        hardcode_direct_CXX=yes
16086        hardcode_direct_absolute_CXX=yes
16087        hardcode_libdir_separator_CXX=':'
16088        link_all_deplibs_CXX=yes
16089        file_list_spec_CXX='$wl-f,'
16090        case $with_aix_soname,$aix_use_runtimelinking in
16091        aix,*) ;;	# no import file
16092        svr4,* | *,yes) # use import file
16093          # The Import File defines what to hardcode.
16094          hardcode_direct_CXX=no
16095          hardcode_direct_absolute_CXX=no
16096          ;;
16097        esac
16098
16099        if test yes = "$GXX"; then
16100          case $host_os in aix4.[012]|aix4.[012].*)
16101          # We only want to do this on AIX 4.2 and lower, the check
16102          # below for broken collect2 doesn't work under 4.3+
16103	  collect2name=`$CC -print-prog-name=collect2`
16104	  if test -f "$collect2name" &&
16105	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16106	  then
16107	    # We have reworked collect2
16108	    :
16109	  else
16110	    # We have old collect2
16111	    hardcode_direct_CXX=unsupported
16112	    # It fails to find uninstalled libraries when the uninstalled
16113	    # path is not listed in the libpath.  Setting hardcode_minus_L
16114	    # to unsupported forces relinking
16115	    hardcode_minus_L_CXX=yes
16116	    hardcode_libdir_flag_spec_CXX='-L$libdir'
16117	    hardcode_libdir_separator_CXX=
16118	  fi
16119          esac
16120          shared_flag='-shared'
16121	  if test yes = "$aix_use_runtimelinking"; then
16122	    shared_flag=$shared_flag' $wl-G'
16123	  fi
16124	  # Need to ensure runtime linking is disabled for the traditional
16125	  # shared library, or the linker may eventually find shared libraries
16126	  # /with/ Import File - we do not want to mix them.
16127	  shared_flag_aix='-shared'
16128	  shared_flag_svr4='-shared $wl-G'
16129        else
16130          # not using gcc
16131          if test ia64 = "$host_cpu"; then
16132	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16133	  # chokes on -Wl,-G. The following line is correct:
16134	  shared_flag='-G'
16135          else
16136	    if test yes = "$aix_use_runtimelinking"; then
16137	      shared_flag='$wl-G'
16138	    else
16139	      shared_flag='$wl-bM:SRE'
16140	    fi
16141	    shared_flag_aix='$wl-bM:SRE'
16142	    shared_flag_svr4='$wl-G'
16143          fi
16144        fi
16145
16146        export_dynamic_flag_spec_CXX='$wl-bexpall'
16147        # It seems that -bexpall does not export symbols beginning with
16148        # underscore (_), so it is better to generate a list of symbols to
16149	# export.
16150        always_export_symbols_CXX=yes
16151	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16152          # Warning - without using the other runtime loading flags (-brtl),
16153          # -berok will link without error, but may produce a broken library.
16154          # The "-G" linker flag allows undefined symbols.
16155          no_undefined_flag_CXX='-bernotok'
16156          # Determine the default libpath from the value encoded in an empty
16157          # executable.
16158          if test set = "${lt_cv_aix_libpath+set}"; then
16159  aix_libpath=$lt_cv_aix_libpath
16160else
16161  if test ${lt_cv_aix_libpath__CXX+y}
16162then :
16163  printf %s "(cached) " >&6
16164else $as_nop
16165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166/* end confdefs.h.  */
16167
16168int
16169main (void)
16170{
16171
16172  ;
16173  return 0;
16174}
16175_ACEOF
16176if ac_fn_cxx_try_link "$LINENO"
16177then :
16178
16179  lt_aix_libpath_sed='
16180      /Import File Strings/,/^$/ {
16181	  /^0/ {
16182	      s/^0  *\([^ ]*\) *$/\1/
16183	      p
16184	  }
16185      }'
16186  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16187  # Check for a 64-bit object if we didn't find anything.
16188  if test -z "$lt_cv_aix_libpath__CXX"; then
16189    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16190  fi
16191fi
16192rm -f core conftest.err conftest.$ac_objext conftest.beam \
16193    conftest$ac_exeext conftest.$ac_ext
16194  if test -z "$lt_cv_aix_libpath__CXX"; then
16195    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16196  fi
16197
16198fi
16199
16200  aix_libpath=$lt_cv_aix_libpath__CXX
16201fi
16202
16203          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16204
16205          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16206        else
16207          if test ia64 = "$host_cpu"; then
16208	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16209	    allow_undefined_flag_CXX="-z nodefs"
16210	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
16211          else
16212	    # Determine the default libpath from the value encoded in an
16213	    # empty executable.
16214	    if test set = "${lt_cv_aix_libpath+set}"; then
16215  aix_libpath=$lt_cv_aix_libpath
16216else
16217  if test ${lt_cv_aix_libpath__CXX+y}
16218then :
16219  printf %s "(cached) " >&6
16220else $as_nop
16221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222/* end confdefs.h.  */
16223
16224int
16225main (void)
16226{
16227
16228  ;
16229  return 0;
16230}
16231_ACEOF
16232if ac_fn_cxx_try_link "$LINENO"
16233then :
16234
16235  lt_aix_libpath_sed='
16236      /Import File Strings/,/^$/ {
16237	  /^0/ {
16238	      s/^0  *\([^ ]*\) *$/\1/
16239	      p
16240	  }
16241      }'
16242  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16243  # Check for a 64-bit object if we didn't find anything.
16244  if test -z "$lt_cv_aix_libpath__CXX"; then
16245    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16246  fi
16247fi
16248rm -f core conftest.err conftest.$ac_objext conftest.beam \
16249    conftest$ac_exeext conftest.$ac_ext
16250  if test -z "$lt_cv_aix_libpath__CXX"; then
16251    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16252  fi
16253
16254fi
16255
16256  aix_libpath=$lt_cv_aix_libpath__CXX
16257fi
16258
16259	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16260	    # Warning - without using the other run time loading flags,
16261	    # -berok will link without error, but may produce a broken library.
16262	    no_undefined_flag_CXX=' $wl-bernotok'
16263	    allow_undefined_flag_CXX=' $wl-berok'
16264	    if test yes = "$with_gnu_ld"; then
16265	      # We only use this code for GNU lds that support --whole-archive.
16266	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16267	    else
16268	      # Exported symbols can be pulled into shared objects from archives
16269	      whole_archive_flag_spec_CXX='$convenience'
16270	    fi
16271	    archive_cmds_need_lc_CXX=yes
16272	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16273	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16274	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16275	    if test svr4 != "$with_aix_soname"; then
16276	      # This is similar to how AIX traditionally builds its shared
16277	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16278	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16279	    fi
16280	    if test aix != "$with_aix_soname"; then
16281	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16282	    else
16283	      # used by -dlpreopen to get the symbols
16284	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16285	    fi
16286	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16287          fi
16288        fi
16289        ;;
16290
16291      beos*)
16292	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16293	  allow_undefined_flag_CXX=unsupported
16294	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16295	  # support --undefined.  This deserves some investigation.  FIXME
16296	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16297	else
16298	  ld_shlibs_CXX=no
16299	fi
16300	;;
16301
16302      chorus*)
16303        case $cc_basename in
16304          *)
16305	  # FIXME: insert proper C++ library support
16306	  ld_shlibs_CXX=no
16307	  ;;
16308        esac
16309        ;;
16310
16311      cygwin* | mingw* | pw32* | cegcc*)
16312	case $GXX,$cc_basename in
16313	,cl* | no,cl*)
16314	  # Native MSVC
16315	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16316	  # no search path for DLLs.
16317	  hardcode_libdir_flag_spec_CXX=' '
16318	  allow_undefined_flag_CXX=unsupported
16319	  always_export_symbols_CXX=yes
16320	  file_list_spec_CXX='@'
16321	  # Tell ltmain to make .lib files, not .a files.
16322	  libext=lib
16323	  # Tell ltmain to make .dll files, not .so files.
16324	  shrext_cmds=.dll
16325	  # FIXME: Setting linknames here is a bad hack.
16326	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16327	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16328              cp "$export_symbols" "$output_objdir/$soname.def";
16329              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16330            else
16331              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16332            fi~
16333            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16334            linknames='
16335	  # The linker will not automatically build a static lib if we build a DLL.
16336	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16337	  enable_shared_with_static_runtimes_CXX=yes
16338	  # Don't use ranlib
16339	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16340	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16341            lt_tool_outputfile="@TOOL_OUTPUT@"~
16342            case $lt_outputfile in
16343              *.exe|*.EXE) ;;
16344              *)
16345                lt_outputfile=$lt_outputfile.exe
16346                lt_tool_outputfile=$lt_tool_outputfile.exe
16347                ;;
16348            esac~
16349            func_to_tool_file "$lt_outputfile"~
16350            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16351              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16352              $RM "$lt_outputfile.manifest";
16353            fi'
16354	  ;;
16355	*)
16356	  # g++
16357	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16358	  # as there is no search path for DLLs.
16359	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16360	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16361	  allow_undefined_flag_CXX=unsupported
16362	  always_export_symbols_CXX=no
16363	  enable_shared_with_static_runtimes_CXX=yes
16364
16365	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16366	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16367	    # If the export-symbols file already is a .def file, use it as
16368	    # is; otherwise, prepend EXPORTS...
16369	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16370              cp $export_symbols $output_objdir/$soname.def;
16371            else
16372              echo EXPORTS > $output_objdir/$soname.def;
16373              cat $export_symbols >> $output_objdir/$soname.def;
16374            fi~
16375            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16376	  else
16377	    ld_shlibs_CXX=no
16378	  fi
16379	  ;;
16380	esac
16381	;;
16382      darwin* | rhapsody*)
16383
16384
16385  archive_cmds_need_lc_CXX=no
16386  hardcode_direct_CXX=no
16387  hardcode_automatic_CXX=yes
16388  hardcode_shlibpath_var_CXX=unsupported
16389  if test yes = "$lt_cv_ld_force_load"; then
16390    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16391
16392  else
16393    whole_archive_flag_spec_CXX=''
16394  fi
16395  link_all_deplibs_CXX=yes
16396  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16397  case $cc_basename in
16398     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16399     *) _lt_dar_can_shared=$GCC ;;
16400  esac
16401  if test yes = "$_lt_dar_can_shared"; then
16402    output_verbose_link_cmd=func_echo_all
16403    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16404    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16405    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
16406    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
16407       if test yes != "$lt_cv_apple_cc_single_mod"; then
16408      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16409      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16410    fi
16411
16412  else
16413  ld_shlibs_CXX=no
16414  fi
16415
16416	;;
16417
16418      os2*)
16419	hardcode_libdir_flag_spec_CXX='-L$libdir'
16420	hardcode_minus_L_CXX=yes
16421	allow_undefined_flag_CXX=unsupported
16422	shrext_cmds=.dll
16423	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16424	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16425	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16426	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16427	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16428	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16429	  emximp -o $lib $output_objdir/$libname.def'
16430	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16431	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16432	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16433	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16434	  prefix_cmds="$SED"~
16435	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16436	    prefix_cmds="$prefix_cmds -e 1d";
16437	  fi~
16438	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16439	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16440	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16441	  emximp -o $lib $output_objdir/$libname.def'
16442	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16443	enable_shared_with_static_runtimes_CXX=yes
16444	;;
16445
16446      dgux*)
16447        case $cc_basename in
16448          ec++*)
16449	    # FIXME: insert proper C++ library support
16450	    ld_shlibs_CXX=no
16451	    ;;
16452          ghcx*)
16453	    # Green Hills C++ Compiler
16454	    # FIXME: insert proper C++ library support
16455	    ld_shlibs_CXX=no
16456	    ;;
16457          *)
16458	    # FIXME: insert proper C++ library support
16459	    ld_shlibs_CXX=no
16460	    ;;
16461        esac
16462        ;;
16463
16464      freebsd2.*)
16465        # C++ shared libraries reported to be fairly broken before
16466	# switch to ELF
16467        ld_shlibs_CXX=no
16468        ;;
16469
16470      freebsd-elf*)
16471        archive_cmds_need_lc_CXX=no
16472        ;;
16473
16474      freebsd* | dragonfly*)
16475        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16476        # conventions
16477        ld_shlibs_CXX=yes
16478        ;;
16479
16480      haiku*)
16481        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16482        link_all_deplibs_CXX=yes
16483        ;;
16484
16485      hpux9*)
16486        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16487        hardcode_libdir_separator_CXX=:
16488        export_dynamic_flag_spec_CXX='$wl-E'
16489        hardcode_direct_CXX=yes
16490        hardcode_minus_L_CXX=yes # Not in the search PATH,
16491				             # but as the default
16492				             # location of the library.
16493
16494        case $cc_basename in
16495          CC*)
16496            # FIXME: insert proper C++ library support
16497            ld_shlibs_CXX=no
16498            ;;
16499          aCC*)
16500            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16501            # Commands to make compiler produce verbose output that lists
16502            # what "hidden" libraries, object files and flags are used when
16503            # linking a shared library.
16504            #
16505            # There doesn't appear to be a way to prevent this compiler from
16506            # explicitly linking system object files so we need to strip them
16507            # from the output so that they don't get included in the library
16508            # dependencies.
16509            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16510            ;;
16511          *)
16512            if test yes = "$GXX"; then
16513              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16514            else
16515              # FIXME: insert proper C++ library support
16516              ld_shlibs_CXX=no
16517            fi
16518            ;;
16519        esac
16520        ;;
16521
16522      hpux10*|hpux11*)
16523        if test no = "$with_gnu_ld"; then
16524	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16525	  hardcode_libdir_separator_CXX=:
16526
16527          case $host_cpu in
16528            hppa*64*|ia64*)
16529              ;;
16530            *)
16531	      export_dynamic_flag_spec_CXX='$wl-E'
16532              ;;
16533          esac
16534        fi
16535        case $host_cpu in
16536          hppa*64*|ia64*)
16537            hardcode_direct_CXX=no
16538            hardcode_shlibpath_var_CXX=no
16539            ;;
16540          *)
16541            hardcode_direct_CXX=yes
16542            hardcode_direct_absolute_CXX=yes
16543            hardcode_minus_L_CXX=yes # Not in the search PATH,
16544					         # but as the default
16545					         # location of the library.
16546            ;;
16547        esac
16548
16549        case $cc_basename in
16550          CC*)
16551	    # FIXME: insert proper C++ library support
16552	    ld_shlibs_CXX=no
16553	    ;;
16554          aCC*)
16555	    case $host_cpu in
16556	      hppa*64*)
16557	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16558	        ;;
16559	      ia64*)
16560	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16561	        ;;
16562	      *)
16563	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16564	        ;;
16565	    esac
16566	    # Commands to make compiler produce verbose output that lists
16567	    # what "hidden" libraries, object files and flags are used when
16568	    # linking a shared library.
16569	    #
16570	    # There doesn't appear to be a way to prevent this compiler from
16571	    # explicitly linking system object files so we need to strip them
16572	    # from the output so that they don't get included in the library
16573	    # dependencies.
16574	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16575	    ;;
16576          *)
16577	    if test yes = "$GXX"; then
16578	      if test no = "$with_gnu_ld"; then
16579	        case $host_cpu in
16580	          hppa*64*)
16581	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16582	            ;;
16583	          ia64*)
16584	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16585	            ;;
16586	          *)
16587	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16588	            ;;
16589	        esac
16590	      fi
16591	    else
16592	      # FIXME: insert proper C++ library support
16593	      ld_shlibs_CXX=no
16594	    fi
16595	    ;;
16596        esac
16597        ;;
16598
16599      interix[3-9]*)
16600	hardcode_direct_CXX=no
16601	hardcode_shlibpath_var_CXX=no
16602	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16603	export_dynamic_flag_spec_CXX='$wl-E'
16604	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16605	# Instead, shared libraries are loaded at an image base (0x10000000 by
16606	# default) and relocated if they conflict, which is a slow very memory
16607	# consuming and fragmenting process.  To avoid this, we pick a random,
16608	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16609	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16610	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16611	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16612	;;
16613      irix5* | irix6*)
16614        case $cc_basename in
16615          CC*)
16616	    # SGI C++
16617	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16618
16619	    # Archives containing C++ object files must be created using
16620	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16621	    # necessary to make sure instantiated templates are included
16622	    # in the archive.
16623	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16624	    ;;
16625          *)
16626	    if test yes = "$GXX"; then
16627	      if test no = "$with_gnu_ld"; then
16628	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16629	      else
16630	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16631	      fi
16632	    fi
16633	    link_all_deplibs_CXX=yes
16634	    ;;
16635        esac
16636        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16637        hardcode_libdir_separator_CXX=:
16638        inherit_rpath_CXX=yes
16639        ;;
16640
16641      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16642        case $cc_basename in
16643          KCC*)
16644	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16645
16646	    # KCC will only create a shared library if the output file
16647	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16648	    # to its proper name (with version) after linking.
16649	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16650	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16651	    # Commands to make compiler produce verbose output that lists
16652	    # what "hidden" libraries, object files and flags are used when
16653	    # linking a shared library.
16654	    #
16655	    # There doesn't appear to be a way to prevent this compiler from
16656	    # explicitly linking system object files so we need to strip them
16657	    # from the output so that they don't get included in the library
16658	    # dependencies.
16659	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16660
16661	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16662	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16663
16664	    # Archives containing C++ object files must be created using
16665	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16666	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16667	    ;;
16668	  icpc* | ecpc* )
16669	    # Intel C++
16670	    with_gnu_ld=yes
16671	    # version 8.0 and above of icpc choke on multiply defined symbols
16672	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16673	    # earlier do not add the objects themselves.
16674	    case `$CC -V 2>&1` in
16675	      *"Version 7."*)
16676	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16677		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16678		;;
16679	      *)  # Version 8.0 or newer
16680	        tmp_idyn=
16681	        case $host_cpu in
16682		  ia64*) tmp_idyn=' -i_dynamic';;
16683		esac
16684	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16685		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16686		;;
16687	    esac
16688	    archive_cmds_need_lc_CXX=no
16689	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16690	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16691	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16692	    ;;
16693          pgCC* | pgcpp*)
16694            # Portland Group C++ compiler
16695	    case `$CC -V` in
16696	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16697	      prelink_cmds_CXX='tpldir=Template.dir~
16698               rm -rf $tpldir~
16699               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16700               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16701	      old_archive_cmds_CXX='tpldir=Template.dir~
16702                rm -rf $tpldir~
16703                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16704                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16705                $RANLIB $oldlib'
16706	      archive_cmds_CXX='tpldir=Template.dir~
16707                rm -rf $tpldir~
16708                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16709                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16710	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16711                rm -rf $tpldir~
16712                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16713                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16714	      ;;
16715	    *) # Version 6 and above use weak symbols
16716	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16717	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16718	      ;;
16719	    esac
16720
16721	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16722	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16723	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16724            ;;
16725	  cxx*)
16726	    # Compaq C++
16727	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16728	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
16729
16730	    runpath_var=LD_RUN_PATH
16731	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16732	    hardcode_libdir_separator_CXX=:
16733
16734	    # Commands to make compiler produce verbose output that lists
16735	    # what "hidden" libraries, object files and flags are used when
16736	    # linking a shared library.
16737	    #
16738	    # There doesn't appear to be a way to prevent this compiler from
16739	    # explicitly linking system object files so we need to strip them
16740	    # from the output so that they don't get included in the library
16741	    # dependencies.
16742	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16743	    ;;
16744	  xl* | mpixl* | bgxl*)
16745	    # IBM XL 8.0 on PPC, with GNU ld
16746	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16747	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16748	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16749	    if test yes = "$supports_anon_versioning"; then
16750	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16751                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16752                echo "local: *; };" >> $output_objdir/$libname.ver~
16753                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16754	    fi
16755	    ;;
16756	  *)
16757	    case `$CC -V 2>&1 | sed 5q` in
16758	    *Sun\ C*)
16759	      # Sun C++ 5.9
16760	      no_undefined_flag_CXX=' -zdefs'
16761	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16762	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16763	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16764	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16765	      compiler_needs_object_CXX=yes
16766
16767	      # Not sure whether something based on
16768	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16769	      # would be better.
16770	      output_verbose_link_cmd='func_echo_all'
16771
16772	      # Archives containing C++ object files must be created using
16773	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16774	      # necessary to make sure instantiated templates are included
16775	      # in the archive.
16776	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16777	      ;;
16778	    esac
16779	    ;;
16780	esac
16781	;;
16782
16783      lynxos*)
16784        # FIXME: insert proper C++ library support
16785	ld_shlibs_CXX=no
16786	;;
16787
16788      m88k*)
16789        # FIXME: insert proper C++ library support
16790        ld_shlibs_CXX=no
16791	;;
16792
16793      mvs*)
16794        case $cc_basename in
16795          cxx*)
16796	    # FIXME: insert proper C++ library support
16797	    ld_shlibs_CXX=no
16798	    ;;
16799	  *)
16800	    # FIXME: insert proper C++ library support
16801	    ld_shlibs_CXX=no
16802	    ;;
16803	esac
16804	;;
16805
16806      netbsd*)
16807        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16808	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16809	  wlarc=
16810	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16811	  hardcode_direct_CXX=yes
16812	  hardcode_shlibpath_var_CXX=no
16813	fi
16814	# Workaround some broken pre-1.5 toolchains
16815	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16816	;;
16817
16818      *nto* | *qnx*)
16819        ld_shlibs_CXX=yes
16820	;;
16821
16822      openbsd* | bitrig*)
16823	if test -f /usr/libexec/ld.so; then
16824	  hardcode_direct_CXX=yes
16825	  hardcode_shlibpath_var_CXX=no
16826	  hardcode_direct_absolute_CXX=yes
16827	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16828	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16829	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16830	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16831	    export_dynamic_flag_spec_CXX='$wl-E'
16832	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16833	  fi
16834	  output_verbose_link_cmd=func_echo_all
16835	else
16836	  ld_shlibs_CXX=no
16837	fi
16838	;;
16839
16840      osf3* | osf4* | osf5*)
16841        case $cc_basename in
16842          KCC*)
16843	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16844
16845	    # KCC will only create a shared library if the output file
16846	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16847	    # to its proper name (with version) after linking.
16848	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16849
16850	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16851	    hardcode_libdir_separator_CXX=:
16852
16853	    # Archives containing C++ object files must be created using
16854	    # the KAI C++ compiler.
16855	    case $host in
16856	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16857	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16858	    esac
16859	    ;;
16860          RCC*)
16861	    # Rational C++ 2.4.1
16862	    # FIXME: insert proper C++ library support
16863	    ld_shlibs_CXX=no
16864	    ;;
16865          cxx*)
16866	    case $host in
16867	      osf3*)
16868	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16869	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16870	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16871		;;
16872	      *)
16873	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16874	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16875	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16876                  echo "-hidden">> $lib.exp~
16877                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16878                  $RM $lib.exp'
16879	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16880		;;
16881	    esac
16882
16883	    hardcode_libdir_separator_CXX=:
16884
16885	    # Commands to make compiler produce verbose output that lists
16886	    # what "hidden" libraries, object files and flags are used when
16887	    # linking a shared library.
16888	    #
16889	    # There doesn't appear to be a way to prevent this compiler from
16890	    # explicitly linking system object files so we need to strip them
16891	    # from the output so that they don't get included in the library
16892	    # dependencies.
16893	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16894	    ;;
16895	  *)
16896	    if test yes,no = "$GXX,$with_gnu_ld"; then
16897	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16898	      case $host in
16899	        osf3*)
16900	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16901		  ;;
16902	        *)
16903	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16904		  ;;
16905	      esac
16906
16907	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16908	      hardcode_libdir_separator_CXX=:
16909
16910	      # Commands to make compiler produce verbose output that lists
16911	      # what "hidden" libraries, object files and flags are used when
16912	      # linking a shared library.
16913	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16914
16915	    else
16916	      # FIXME: insert proper C++ library support
16917	      ld_shlibs_CXX=no
16918	    fi
16919	    ;;
16920        esac
16921        ;;
16922
16923      psos*)
16924        # FIXME: insert proper C++ library support
16925        ld_shlibs_CXX=no
16926        ;;
16927
16928      sunos4*)
16929        case $cc_basename in
16930          CC*)
16931	    # Sun C++ 4.x
16932	    # FIXME: insert proper C++ library support
16933	    ld_shlibs_CXX=no
16934	    ;;
16935          lcc*)
16936	    # Lucid
16937	    # FIXME: insert proper C++ library support
16938	    ld_shlibs_CXX=no
16939	    ;;
16940          *)
16941	    # FIXME: insert proper C++ library support
16942	    ld_shlibs_CXX=no
16943	    ;;
16944        esac
16945        ;;
16946
16947      solaris*)
16948        case $cc_basename in
16949          CC* | sunCC*)
16950	    # Sun C++ 4.2, 5.x and Centerline C++
16951            archive_cmds_need_lc_CXX=yes
16952	    no_undefined_flag_CXX=' -zdefs'
16953	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16954	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16955              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16956
16957	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16958	    hardcode_shlibpath_var_CXX=no
16959	    case $host_os in
16960	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16961	      *)
16962		# The compiler driver will combine and reorder linker options,
16963		# but understands '-z linker_flag'.
16964	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16965		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16966	        ;;
16967	    esac
16968	    link_all_deplibs_CXX=yes
16969
16970	    output_verbose_link_cmd='func_echo_all'
16971
16972	    # Archives containing C++ object files must be created using
16973	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16974	    # necessary to make sure instantiated templates are included
16975	    # in the archive.
16976	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16977	    ;;
16978          gcx*)
16979	    # Green Hills C++ Compiler
16980	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16981
16982	    # The C++ compiler must be used to create the archive.
16983	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16984	    ;;
16985          *)
16986	    # GNU C++ compiler with Solaris linker
16987	    if test yes,no = "$GXX,$with_gnu_ld"; then
16988	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16989	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16990	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16991	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16992                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16993
16994	        # Commands to make compiler produce verbose output that lists
16995	        # what "hidden" libraries, object files and flags are used when
16996	        # linking a shared library.
16997	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16998	      else
16999	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
17000	        # platform.
17001	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17002	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17003                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17004
17005	        # Commands to make compiler produce verbose output that lists
17006	        # what "hidden" libraries, object files and flags are used when
17007	        # linking a shared library.
17008	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17009	      fi
17010
17011	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17012	      case $host_os in
17013		solaris2.[0-5] | solaris2.[0-5].*) ;;
17014		*)
17015		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17016		  ;;
17017	      esac
17018	    fi
17019	    ;;
17020        esac
17021        ;;
17022
17023    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17024      no_undefined_flag_CXX='$wl-z,text'
17025      archive_cmds_need_lc_CXX=no
17026      hardcode_shlibpath_var_CXX=no
17027      runpath_var='LD_RUN_PATH'
17028
17029      case $cc_basename in
17030        CC*)
17031	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17032	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17033	  ;;
17034	*)
17035	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17036	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037	  ;;
17038      esac
17039      ;;
17040
17041      sysv5* | sco3.2v5* | sco5v6*)
17042	# Note: We CANNOT use -z defs as we might desire, because we do not
17043	# link with -lc, and that would cause any symbols used from libc to
17044	# always be unresolved, which means just about no library would
17045	# ever link correctly.  If we're not using GNU ld we use -z text
17046	# though, which does catch some bad symbols but isn't as heavy-handed
17047	# as -z defs.
17048	no_undefined_flag_CXX='$wl-z,text'
17049	allow_undefined_flag_CXX='$wl-z,nodefs'
17050	archive_cmds_need_lc_CXX=no
17051	hardcode_shlibpath_var_CXX=no
17052	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17053	hardcode_libdir_separator_CXX=':'
17054	link_all_deplibs_CXX=yes
17055	export_dynamic_flag_spec_CXX='$wl-Bexport'
17056	runpath_var='LD_RUN_PATH'
17057
17058	case $cc_basename in
17059          CC*)
17060	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17063              '"$old_archive_cmds_CXX"
17064	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17065              '"$reload_cmds_CXX"
17066	    ;;
17067	  *)
17068	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17069	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070	    ;;
17071	esac
17072      ;;
17073
17074      tandem*)
17075        case $cc_basename in
17076          NCC*)
17077	    # NonStop-UX NCC 3.20
17078	    # FIXME: insert proper C++ library support
17079	    ld_shlibs_CXX=no
17080	    ;;
17081          *)
17082	    # FIXME: insert proper C++ library support
17083	    ld_shlibs_CXX=no
17084	    ;;
17085        esac
17086        ;;
17087
17088      vxworks*)
17089        # FIXME: insert proper C++ library support
17090        ld_shlibs_CXX=no
17091        ;;
17092
17093      *)
17094        # FIXME: insert proper C++ library support
17095        ld_shlibs_CXX=no
17096        ;;
17097    esac
17098
17099    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17100printf "%s\n" "$ld_shlibs_CXX" >&6; }
17101    test no = "$ld_shlibs_CXX" && can_build_shared=no
17102
17103    GCC_CXX=$GXX
17104    LD_CXX=$LD
17105
17106    ## CAVEAT EMPTOR:
17107    ## There is no encapsulation within the following macros, do not change
17108    ## the running order or otherwise move them around unless you know exactly
17109    ## what you are doing...
17110    # Dependencies to place before and after the object being linked:
17111predep_objects_CXX=
17112postdep_objects_CXX=
17113predeps_CXX=
17114postdeps_CXX=
17115compiler_lib_search_path_CXX=
17116
17117cat > conftest.$ac_ext <<_LT_EOF
17118class Foo
17119{
17120public:
17121  Foo (void) { a = 0; }
17122private:
17123  int a;
17124};
17125_LT_EOF
17126
17127
17128_lt_libdeps_save_CFLAGS=$CFLAGS
17129case "$CC $CFLAGS " in #(
17130*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17131*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17132*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17133esac
17134
17135if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17136  (eval $ac_compile) 2>&5
17137  ac_status=$?
17138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17139  test $ac_status = 0; }; then
17140  # Parse the compiler output and extract the necessary
17141  # objects, libraries and library flags.
17142
17143  # Sentinel used to keep track of whether or not we are before
17144  # the conftest object file.
17145  pre_test_object_deps_done=no
17146
17147  for p in `eval "$output_verbose_link_cmd"`; do
17148    case $prev$p in
17149
17150    -L* | -R* | -l*)
17151       # Some compilers place space between "-{L,R}" and the path.
17152       # Remove the space.
17153       if test x-L = "$p" ||
17154          test x-R = "$p"; then
17155	 prev=$p
17156	 continue
17157       fi
17158
17159       # Expand the sysroot to ease extracting the directories later.
17160       if test -z "$prev"; then
17161         case $p in
17162         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17163         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17164         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17165         esac
17166       fi
17167       case $p in
17168       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17169       esac
17170       if test no = "$pre_test_object_deps_done"; then
17171	 case $prev in
17172	 -L | -R)
17173	   # Internal compiler library paths should come after those
17174	   # provided the user.  The postdeps already come after the
17175	   # user supplied libs so there is no need to process them.
17176	   if test -z "$compiler_lib_search_path_CXX"; then
17177	     compiler_lib_search_path_CXX=$prev$p
17178	   else
17179	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17180	   fi
17181	   ;;
17182	 # The "-l" case would never come before the object being
17183	 # linked, so don't bother handling this case.
17184	 esac
17185       else
17186	 if test -z "$postdeps_CXX"; then
17187	   postdeps_CXX=$prev$p
17188	 else
17189	   postdeps_CXX="${postdeps_CXX} $prev$p"
17190	 fi
17191       fi
17192       prev=
17193       ;;
17194
17195    *.lto.$objext) ;; # Ignore GCC LTO objects
17196    *.$objext)
17197       # This assumes that the test object file only shows up
17198       # once in the compiler output.
17199       if test "$p" = "conftest.$objext"; then
17200	 pre_test_object_deps_done=yes
17201	 continue
17202       fi
17203
17204       if test no = "$pre_test_object_deps_done"; then
17205	 if test -z "$predep_objects_CXX"; then
17206	   predep_objects_CXX=$p
17207	 else
17208	   predep_objects_CXX="$predep_objects_CXX $p"
17209	 fi
17210       else
17211	 if test -z "$postdep_objects_CXX"; then
17212	   postdep_objects_CXX=$p
17213	 else
17214	   postdep_objects_CXX="$postdep_objects_CXX $p"
17215	 fi
17216       fi
17217       ;;
17218
17219    *) ;; # Ignore the rest.
17220
17221    esac
17222  done
17223
17224  # Clean up.
17225  rm -f a.out a.exe
17226else
17227  echo "libtool.m4: error: problem compiling CXX test program"
17228fi
17229
17230$RM -f confest.$objext
17231CFLAGS=$_lt_libdeps_save_CFLAGS
17232
17233# PORTME: override above test on systems where it is broken
17234case $host_os in
17235interix[3-9]*)
17236  # Interix 3.5 installs completely hosed .la files for C++, so rather than
17237  # hack all around it, let's just trust "g++" to DTRT.
17238  predep_objects_CXX=
17239  postdep_objects_CXX=
17240  postdeps_CXX=
17241  ;;
17242esac
17243
17244
17245case " $postdeps_CXX " in
17246*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17247esac
17248 compiler_lib_search_dirs_CXX=
17249if test -n "${compiler_lib_search_path_CXX}"; then
17250 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17251fi
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283    lt_prog_compiler_wl_CXX=
17284lt_prog_compiler_pic_CXX=
17285lt_prog_compiler_static_CXX=
17286
17287
17288  # C++ specific cases for pic, static, wl, etc.
17289  if test yes = "$GXX"; then
17290    lt_prog_compiler_wl_CXX='-Wl,'
17291    lt_prog_compiler_static_CXX='-static'
17292
17293    case $host_os in
17294    aix*)
17295      # All AIX code is PIC.
17296      if test ia64 = "$host_cpu"; then
17297	# AIX 5 now supports IA64 processor
17298	lt_prog_compiler_static_CXX='-Bstatic'
17299      fi
17300      lt_prog_compiler_pic_CXX='-fPIC'
17301      ;;
17302
17303    amigaos*)
17304      case $host_cpu in
17305      powerpc)
17306            # see comment about AmigaOS4 .so support
17307            lt_prog_compiler_pic_CXX='-fPIC'
17308        ;;
17309      m68k)
17310            # FIXME: we need at least 68020 code to build shared libraries, but
17311            # adding the '-m68020' flag to GCC prevents building anything better,
17312            # like '-m68040'.
17313            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17314        ;;
17315      esac
17316      ;;
17317
17318    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17319      # PIC is the default for these OSes.
17320      ;;
17321    mingw* | cygwin* | os2* | pw32* | cegcc*)
17322      # This hack is so that the source file can tell whether it is being
17323      # built for inclusion in a dll (and should export symbols for example).
17324      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17325      # (--disable-auto-import) libraries
17326      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17327      case $host_os in
17328      os2*)
17329	lt_prog_compiler_static_CXX='$wl-static'
17330	;;
17331      esac
17332      ;;
17333    darwin* | rhapsody*)
17334      # PIC is the default on this platform
17335      # Common symbols not allowed in MH_DYLIB files
17336      lt_prog_compiler_pic_CXX='-fno-common'
17337      ;;
17338    *djgpp*)
17339      # DJGPP does not support shared libraries at all
17340      lt_prog_compiler_pic_CXX=
17341      ;;
17342    haiku*)
17343      # PIC is the default for Haiku.
17344      # The "-static" flag exists, but is broken.
17345      lt_prog_compiler_static_CXX=
17346      ;;
17347    interix[3-9]*)
17348      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17349      # Instead, we relocate shared libraries at runtime.
17350      ;;
17351    sysv4*MP*)
17352      if test -d /usr/nec; then
17353	lt_prog_compiler_pic_CXX=-Kconform_pic
17354      fi
17355      ;;
17356    hpux*)
17357      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17358      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17359      # sets the default TLS model and affects inlining.
17360      case $host_cpu in
17361      hppa*64*)
17362	;;
17363      *)
17364	lt_prog_compiler_pic_CXX='-fPIC'
17365	;;
17366      esac
17367      ;;
17368    *qnx* | *nto*)
17369      # QNX uses GNU C++, but need to define -shared option too, otherwise
17370      # it will coredump.
17371      lt_prog_compiler_pic_CXX='-fPIC -shared'
17372      ;;
17373    *)
17374      lt_prog_compiler_pic_CXX='-fPIC'
17375      ;;
17376    esac
17377  else
17378    case $host_os in
17379      aix[4-9]*)
17380	# All AIX code is PIC.
17381	if test ia64 = "$host_cpu"; then
17382	  # AIX 5 now supports IA64 processor
17383	  lt_prog_compiler_static_CXX='-Bstatic'
17384	else
17385	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17386	fi
17387	;;
17388      chorus*)
17389	case $cc_basename in
17390	cxch68*)
17391	  # Green Hills C++ Compiler
17392	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17393	  ;;
17394	esac
17395	;;
17396      mingw* | cygwin* | os2* | pw32* | cegcc*)
17397	# This hack is so that the source file can tell whether it is being
17398	# built for inclusion in a dll (and should export symbols for example).
17399	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17400	;;
17401      dgux*)
17402	case $cc_basename in
17403	  ec++*)
17404	    lt_prog_compiler_pic_CXX='-KPIC'
17405	    ;;
17406	  ghcx*)
17407	    # Green Hills C++ Compiler
17408	    lt_prog_compiler_pic_CXX='-pic'
17409	    ;;
17410	  *)
17411	    ;;
17412	esac
17413	;;
17414      freebsd* | dragonfly*)
17415	# FreeBSD uses GNU C++
17416	;;
17417      hpux9* | hpux10* | hpux11*)
17418	case $cc_basename in
17419	  CC*)
17420	    lt_prog_compiler_wl_CXX='-Wl,'
17421	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17422	    if test ia64 != "$host_cpu"; then
17423	      lt_prog_compiler_pic_CXX='+Z'
17424	    fi
17425	    ;;
17426	  aCC*)
17427	    lt_prog_compiler_wl_CXX='-Wl,'
17428	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17429	    case $host_cpu in
17430	    hppa*64*|ia64*)
17431	      # +Z the default
17432	      ;;
17433	    *)
17434	      lt_prog_compiler_pic_CXX='+Z'
17435	      ;;
17436	    esac
17437	    ;;
17438	  *)
17439	    ;;
17440	esac
17441	;;
17442      interix*)
17443	# This is c89, which is MS Visual C++ (no shared libs)
17444	# Anyone wants to do a port?
17445	;;
17446      irix5* | irix6* | nonstopux*)
17447	case $cc_basename in
17448	  CC*)
17449	    lt_prog_compiler_wl_CXX='-Wl,'
17450	    lt_prog_compiler_static_CXX='-non_shared'
17451	    # CC pic flag -KPIC is the default.
17452	    ;;
17453	  *)
17454	    ;;
17455	esac
17456	;;
17457      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17458	case $cc_basename in
17459	  KCC*)
17460	    # KAI C++ Compiler
17461	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17462	    lt_prog_compiler_pic_CXX='-fPIC'
17463	    ;;
17464	  ecpc* )
17465	    # old Intel C++ for x86_64, which still supported -KPIC.
17466	    lt_prog_compiler_wl_CXX='-Wl,'
17467	    lt_prog_compiler_pic_CXX='-KPIC'
17468	    lt_prog_compiler_static_CXX='-static'
17469	    ;;
17470	  icpc* )
17471	    # Intel C++, used to be incompatible with GCC.
17472	    # ICC 10 doesn't accept -KPIC any more.
17473	    lt_prog_compiler_wl_CXX='-Wl,'
17474	    lt_prog_compiler_pic_CXX='-fPIC'
17475	    lt_prog_compiler_static_CXX='-static'
17476	    ;;
17477	  pgCC* | pgcpp*)
17478	    # Portland Group C++ compiler
17479	    lt_prog_compiler_wl_CXX='-Wl,'
17480	    lt_prog_compiler_pic_CXX='-fpic'
17481	    lt_prog_compiler_static_CXX='-Bstatic'
17482	    ;;
17483	  cxx*)
17484	    # Compaq C++
17485	    # Make sure the PIC flag is empty.  It appears that all Alpha
17486	    # Linux and Compaq Tru64 Unix objects are PIC.
17487	    lt_prog_compiler_pic_CXX=
17488	    lt_prog_compiler_static_CXX='-non_shared'
17489	    ;;
17490	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17491	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17492	    lt_prog_compiler_wl_CXX='-Wl,'
17493	    lt_prog_compiler_pic_CXX='-qpic'
17494	    lt_prog_compiler_static_CXX='-qstaticlink'
17495	    ;;
17496	  *)
17497	    case `$CC -V 2>&1 | sed 5q` in
17498	    *Sun\ C*)
17499	      # Sun C++ 5.9
17500	      lt_prog_compiler_pic_CXX='-KPIC'
17501	      lt_prog_compiler_static_CXX='-Bstatic'
17502	      lt_prog_compiler_wl_CXX='-Qoption ld '
17503	      ;;
17504	    esac
17505	    ;;
17506	esac
17507	;;
17508      lynxos*)
17509	;;
17510      m88k*)
17511	;;
17512      mvs*)
17513	case $cc_basename in
17514	  cxx*)
17515	    lt_prog_compiler_pic_CXX='-W c,exportall'
17516	    ;;
17517	  *)
17518	    ;;
17519	esac
17520	;;
17521      netbsd*)
17522	;;
17523      *qnx* | *nto*)
17524        # QNX uses GNU C++, but need to define -shared option too, otherwise
17525        # it will coredump.
17526        lt_prog_compiler_pic_CXX='-fPIC -shared'
17527        ;;
17528      osf3* | osf4* | osf5*)
17529	case $cc_basename in
17530	  KCC*)
17531	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17532	    ;;
17533	  RCC*)
17534	    # Rational C++ 2.4.1
17535	    lt_prog_compiler_pic_CXX='-pic'
17536	    ;;
17537	  cxx*)
17538	    # Digital/Compaq C++
17539	    lt_prog_compiler_wl_CXX='-Wl,'
17540	    # Make sure the PIC flag is empty.  It appears that all Alpha
17541	    # Linux and Compaq Tru64 Unix objects are PIC.
17542	    lt_prog_compiler_pic_CXX=
17543	    lt_prog_compiler_static_CXX='-non_shared'
17544	    ;;
17545	  *)
17546	    ;;
17547	esac
17548	;;
17549      psos*)
17550	;;
17551      solaris*)
17552	case $cc_basename in
17553	  CC* | sunCC*)
17554	    # Sun C++ 4.2, 5.x and Centerline C++
17555	    lt_prog_compiler_pic_CXX='-KPIC'
17556	    lt_prog_compiler_static_CXX='-Bstatic'
17557	    lt_prog_compiler_wl_CXX='-Qoption ld '
17558	    ;;
17559	  gcx*)
17560	    # Green Hills C++ Compiler
17561	    lt_prog_compiler_pic_CXX='-PIC'
17562	    ;;
17563	  *)
17564	    ;;
17565	esac
17566	;;
17567      sunos4*)
17568	case $cc_basename in
17569	  CC*)
17570	    # Sun C++ 4.x
17571	    lt_prog_compiler_pic_CXX='-pic'
17572	    lt_prog_compiler_static_CXX='-Bstatic'
17573	    ;;
17574	  lcc*)
17575	    # Lucid
17576	    lt_prog_compiler_pic_CXX='-pic'
17577	    ;;
17578	  *)
17579	    ;;
17580	esac
17581	;;
17582      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17583	case $cc_basename in
17584	  CC*)
17585	    lt_prog_compiler_wl_CXX='-Wl,'
17586	    lt_prog_compiler_pic_CXX='-KPIC'
17587	    lt_prog_compiler_static_CXX='-Bstatic'
17588	    ;;
17589	esac
17590	;;
17591      tandem*)
17592	case $cc_basename in
17593	  NCC*)
17594	    # NonStop-UX NCC 3.20
17595	    lt_prog_compiler_pic_CXX='-KPIC'
17596	    ;;
17597	  *)
17598	    ;;
17599	esac
17600	;;
17601      vxworks*)
17602	;;
17603      *)
17604	lt_prog_compiler_can_build_shared_CXX=no
17605	;;
17606    esac
17607  fi
17608
17609case $host_os in
17610  # For platforms that do not support PIC, -DPIC is meaningless:
17611  *djgpp*)
17612    lt_prog_compiler_pic_CXX=
17613    ;;
17614  *)
17615    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17616    ;;
17617esac
17618
17619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17620printf %s "checking for $compiler option to produce PIC... " >&6; }
17621if test ${lt_cv_prog_compiler_pic_CXX+y}
17622then :
17623  printf %s "(cached) " >&6
17624else $as_nop
17625  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17626fi
17627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17628printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17629lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17630
17631#
17632# Check to make sure the PIC flag actually works.
17633#
17634if test -n "$lt_prog_compiler_pic_CXX"; then
17635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17636printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17637if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17638then :
17639  printf %s "(cached) " >&6
17640else $as_nop
17641  lt_cv_prog_compiler_pic_works_CXX=no
17642   ac_outfile=conftest.$ac_objext
17643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17644   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17645   # Insert the option either (1) after the last *FLAGS variable, or
17646   # (2) before a word containing "conftest.", or (3) at the end.
17647   # Note that $ac_compile itself does not contain backslashes and begins
17648   # with a dollar sign (not a hyphen), so the echo should work correctly.
17649   # The option is referenced via a variable to avoid confusing sed.
17650   lt_compile=`echo "$ac_compile" | $SED \
17651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17653   -e 's:$: $lt_compiler_flag:'`
17654   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17655   (eval "$lt_compile" 2>conftest.err)
17656   ac_status=$?
17657   cat conftest.err >&5
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   if (exit $ac_status) && test -s "$ac_outfile"; then
17660     # The compiler can only warn and ignore the option if not recognized
17661     # So say no if there are warnings other than the usual output.
17662     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17665       lt_cv_prog_compiler_pic_works_CXX=yes
17666     fi
17667   fi
17668   $RM conftest*
17669
17670fi
17671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17672printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17673
17674if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17675    case $lt_prog_compiler_pic_CXX in
17676     "" | " "*) ;;
17677     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17678     esac
17679else
17680    lt_prog_compiler_pic_CXX=
17681     lt_prog_compiler_can_build_shared_CXX=no
17682fi
17683
17684fi
17685
17686
17687
17688
17689
17690#
17691# Check to make sure the static flag actually works.
17692#
17693wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17695printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17696if test ${lt_cv_prog_compiler_static_works_CXX+y}
17697then :
17698  printf %s "(cached) " >&6
17699else $as_nop
17700  lt_cv_prog_compiler_static_works_CXX=no
17701   save_LDFLAGS=$LDFLAGS
17702   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17703   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17704   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17705     # The linker can only warn and ignore the option if not recognized
17706     # So say no if there are warnings
17707     if test -s conftest.err; then
17708       # Append any errors to the config.log.
17709       cat conftest.err 1>&5
17710       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17711       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17712       if diff conftest.exp conftest.er2 >/dev/null; then
17713         lt_cv_prog_compiler_static_works_CXX=yes
17714       fi
17715     else
17716       lt_cv_prog_compiler_static_works_CXX=yes
17717     fi
17718   fi
17719   $RM -r conftest*
17720   LDFLAGS=$save_LDFLAGS
17721
17722fi
17723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17724printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17725
17726if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17727    :
17728else
17729    lt_prog_compiler_static_CXX=
17730fi
17731
17732
17733
17734
17735    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17736printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17737if test ${lt_cv_prog_compiler_c_o_CXX+y}
17738then :
17739  printf %s "(cached) " >&6
17740else $as_nop
17741  lt_cv_prog_compiler_c_o_CXX=no
17742   $RM -r conftest 2>/dev/null
17743   mkdir conftest
17744   cd conftest
17745   mkdir out
17746   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17747
17748   lt_compiler_flag="-o out/conftest2.$ac_objext"
17749   # Insert the option either (1) after the last *FLAGS variable, or
17750   # (2) before a word containing "conftest.", or (3) at the end.
17751   # Note that $ac_compile itself does not contain backslashes and begins
17752   # with a dollar sign (not a hyphen), so the echo should work correctly.
17753   lt_compile=`echo "$ac_compile" | $SED \
17754   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17755   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17756   -e 's:$: $lt_compiler_flag:'`
17757   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17758   (eval "$lt_compile" 2>out/conftest.err)
17759   ac_status=$?
17760   cat out/conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17763   then
17764     # The compiler can only warn and ignore the option if not recognized
17765     # So say no if there are warnings
17766     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17767     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17768     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17769       lt_cv_prog_compiler_c_o_CXX=yes
17770     fi
17771   fi
17772   chmod u+w . 2>&5
17773   $RM conftest*
17774   # SGI C++ compiler will create directory out/ii_files/ for
17775   # template instantiation
17776   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17777   $RM out/* && rmdir out
17778   cd ..
17779   $RM -r conftest
17780   $RM conftest*
17781
17782fi
17783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17784printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17785
17786
17787
17788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17789printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17790if test ${lt_cv_prog_compiler_c_o_CXX+y}
17791then :
17792  printf %s "(cached) " >&6
17793else $as_nop
17794  lt_cv_prog_compiler_c_o_CXX=no
17795   $RM -r conftest 2>/dev/null
17796   mkdir conftest
17797   cd conftest
17798   mkdir out
17799   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17800
17801   lt_compiler_flag="-o out/conftest2.$ac_objext"
17802   # Insert the option either (1) after the last *FLAGS variable, or
17803   # (2) before a word containing "conftest.", or (3) at the end.
17804   # Note that $ac_compile itself does not contain backslashes and begins
17805   # with a dollar sign (not a hyphen), so the echo should work correctly.
17806   lt_compile=`echo "$ac_compile" | $SED \
17807   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17809   -e 's:$: $lt_compiler_flag:'`
17810   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17811   (eval "$lt_compile" 2>out/conftest.err)
17812   ac_status=$?
17813   cat out/conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17816   then
17817     # The compiler can only warn and ignore the option if not recognized
17818     # So say no if there are warnings
17819     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17820     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17821     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17822       lt_cv_prog_compiler_c_o_CXX=yes
17823     fi
17824   fi
17825   chmod u+w . 2>&5
17826   $RM conftest*
17827   # SGI C++ compiler will create directory out/ii_files/ for
17828   # template instantiation
17829   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17830   $RM out/* && rmdir out
17831   cd ..
17832   $RM -r conftest
17833   $RM conftest*
17834
17835fi
17836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17837printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17838
17839
17840
17841
17842hard_links=nottested
17843if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17844  # do not overwrite the value of need_locks provided by the user
17845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17846printf %s "checking if we can lock with hard links... " >&6; }
17847  hard_links=yes
17848  $RM conftest*
17849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17850  touch conftest.a
17851  ln conftest.a conftest.b 2>&5 || hard_links=no
17852  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17854printf "%s\n" "$hard_links" >&6; }
17855  if test no = "$hard_links"; then
17856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17857printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17858    need_locks=warn
17859  fi
17860else
17861  need_locks=no
17862fi
17863
17864
17865
17866    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17867printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17868
17869  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17870  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17871  case $host_os in
17872  aix[4-9]*)
17873    # If we're using GNU nm, then we don't want the "-C" option.
17874    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17875    # Without the "-l" option, or with the "-B" option, AIX nm treats
17876    # weak defined symbols like other global defined symbols, whereas
17877    # GNU nm marks them as "W".
17878    # While the 'weak' keyword is ignored in the Export File, we need
17879    # it in the Import File for the 'aix-soname' feature, so we have
17880    # to replace the "-B" option with "-P" for AIX nm.
17881    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17882      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17883    else
17884      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17885    fi
17886    ;;
17887  pw32*)
17888    export_symbols_cmds_CXX=$ltdll_cmds
17889    ;;
17890  cygwin* | mingw* | cegcc*)
17891    case $cc_basename in
17892    cl*)
17893      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17894      ;;
17895    *)
17896      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17897      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17898      ;;
17899    esac
17900    ;;
17901  *)
17902    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17903    ;;
17904  esac
17905
17906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17907printf "%s\n" "$ld_shlibs_CXX" >&6; }
17908test no = "$ld_shlibs_CXX" && can_build_shared=no
17909
17910with_gnu_ld_CXX=$with_gnu_ld
17911
17912
17913
17914
17915
17916
17917#
17918# Do we need to explicitly link libc?
17919#
17920case "x$archive_cmds_need_lc_CXX" in
17921x|xyes)
17922  # Assume -lc should be added
17923  archive_cmds_need_lc_CXX=yes
17924
17925  if test yes,yes = "$GCC,$enable_shared"; then
17926    case $archive_cmds_CXX in
17927    *'~'*)
17928      # FIXME: we may have to deal with multi-command sequences.
17929      ;;
17930    '$CC '*)
17931      # Test whether the compiler implicitly links with -lc since on some
17932      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17933      # to ld, don't add -lc before -lgcc.
17934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17935printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17936if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17937then :
17938  printf %s "(cached) " >&6
17939else $as_nop
17940  $RM conftest*
17941	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17942
17943	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17944  (eval $ac_compile) 2>&5
17945  ac_status=$?
17946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947  test $ac_status = 0; } 2>conftest.err; then
17948	  soname=conftest
17949	  lib=conftest
17950	  libobjs=conftest.$ac_objext
17951	  deplibs=
17952	  wl=$lt_prog_compiler_wl_CXX
17953	  pic_flag=$lt_prog_compiler_pic_CXX
17954	  compiler_flags=-v
17955	  linker_flags=-v
17956	  verstring=
17957	  output_objdir=.
17958	  libname=conftest
17959	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17960	  allow_undefined_flag_CXX=
17961	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17962  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17963  ac_status=$?
17964  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965  test $ac_status = 0; }
17966	  then
17967	    lt_cv_archive_cmds_need_lc_CXX=no
17968	  else
17969	    lt_cv_archive_cmds_need_lc_CXX=yes
17970	  fi
17971	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17972	else
17973	  cat conftest.err 1>&5
17974	fi
17975	$RM conftest*
17976
17977fi
17978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17979printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17980      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17981      ;;
17982    esac
17983  fi
17984  ;;
17985esac
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18049printf %s "checking dynamic linker characteristics... " >&6; }
18050
18051library_names_spec=
18052libname_spec='lib$name'
18053soname_spec=
18054shrext_cmds=.so
18055postinstall_cmds=
18056postuninstall_cmds=
18057finish_cmds=
18058finish_eval=
18059shlibpath_var=
18060shlibpath_overrides_runpath=unknown
18061version_type=none
18062dynamic_linker="$host_os ld.so"
18063sys_lib_dlsearch_path_spec="/lib /usr/lib"
18064need_lib_prefix=unknown
18065hardcode_into_libs=no
18066
18067# when you set need_version to no, make sure it does not cause -set_version
18068# flags to be left without arguments
18069need_version=unknown
18070
18071
18072
18073case $host_os in
18074aix3*)
18075  version_type=linux # correct to gnu/linux during the next big refactor
18076  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18077  shlibpath_var=LIBPATH
18078
18079  # AIX 3 has no versioning support, so we append a major version to the name.
18080  soname_spec='$libname$release$shared_ext$major'
18081  ;;
18082
18083aix[4-9]*)
18084  version_type=linux # correct to gnu/linux during the next big refactor
18085  need_lib_prefix=no
18086  need_version=no
18087  hardcode_into_libs=yes
18088  if test ia64 = "$host_cpu"; then
18089    # AIX 5 supports IA64
18090    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18091    shlibpath_var=LD_LIBRARY_PATH
18092  else
18093    # With GCC up to 2.95.x, collect2 would create an import file
18094    # for dependence libraries.  The import file would start with
18095    # the line '#! .'.  This would cause the generated library to
18096    # depend on '.', always an invalid library.  This was fixed in
18097    # development snapshots of GCC prior to 3.0.
18098    case $host_os in
18099      aix4 | aix4.[01] | aix4.[01].*)
18100      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18101	   echo ' yes '
18102	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18103	:
18104      else
18105	can_build_shared=no
18106      fi
18107      ;;
18108    esac
18109    # Using Import Files as archive members, it is possible to support
18110    # filename-based versioning of shared library archives on AIX. While
18111    # this would work for both with and without runtime linking, it will
18112    # prevent static linking of such archives. So we do filename-based
18113    # shared library versioning with .so extension only, which is used
18114    # when both runtime linking and shared linking is enabled.
18115    # Unfortunately, runtime linking may impact performance, so we do
18116    # not want this to be the default eventually. Also, we use the
18117    # versioned .so libs for executables only if there is the -brtl
18118    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18119    # To allow for filename-based versioning support, we need to create
18120    # libNAME.so.V as an archive file, containing:
18121    # *) an Import File, referring to the versioned filename of the
18122    #    archive as well as the shared archive member, telling the
18123    #    bitwidth (32 or 64) of that shared object, and providing the
18124    #    list of exported symbols of that shared object, eventually
18125    #    decorated with the 'weak' keyword
18126    # *) the shared object with the F_LOADONLY flag set, to really avoid
18127    #    it being seen by the linker.
18128    # At run time we better use the real file rather than another symlink,
18129    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18130
18131    case $with_aix_soname,$aix_use_runtimelinking in
18132    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18133    # soname into executable. Probably we can add versioning support to
18134    # collect2, so additional links can be useful in future.
18135    aix,yes) # traditional libtool
18136      dynamic_linker='AIX unversionable lib.so'
18137      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18138      # instead of lib<name>.a to let people know that these are not
18139      # typical AIX shared libraries.
18140      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18141      ;;
18142    aix,no) # traditional AIX only
18143      dynamic_linker='AIX lib.a(lib.so.V)'
18144      # We preserve .a as extension for shared libraries through AIX4.2
18145      # and later when we are not doing run time linking.
18146      library_names_spec='$libname$release.a $libname.a'
18147      soname_spec='$libname$release$shared_ext$major'
18148      ;;
18149    svr4,*) # full svr4 only
18150      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18151      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18152      # We do not specify a path in Import Files, so LIBPATH fires.
18153      shlibpath_overrides_runpath=yes
18154      ;;
18155    *,yes) # both, prefer svr4
18156      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18157      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18158      # unpreferred sharedlib libNAME.a needs extra handling
18159      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"'
18160      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"'
18161      # We do not specify a path in Import Files, so LIBPATH fires.
18162      shlibpath_overrides_runpath=yes
18163      ;;
18164    *,no) # both, prefer aix
18165      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18166      library_names_spec='$libname$release.a $libname.a'
18167      soname_spec='$libname$release$shared_ext$major'
18168      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18169      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)'
18170      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"'
18171      ;;
18172    esac
18173    shlibpath_var=LIBPATH
18174  fi
18175  ;;
18176
18177amigaos*)
18178  case $host_cpu in
18179  powerpc)
18180    # Since July 2007 AmigaOS4 officially supports .so libraries.
18181    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18182    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18183    ;;
18184  m68k)
18185    library_names_spec='$libname.ixlibrary $libname.a'
18186    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18187    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'
18188    ;;
18189  esac
18190  ;;
18191
18192beos*)
18193  library_names_spec='$libname$shared_ext'
18194  dynamic_linker="$host_os ld.so"
18195  shlibpath_var=LIBRARY_PATH
18196  ;;
18197
18198bsdi[45]*)
18199  version_type=linux # correct to gnu/linux during the next big refactor
18200  need_version=no
18201  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18202  soname_spec='$libname$release$shared_ext$major'
18203  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18204  shlibpath_var=LD_LIBRARY_PATH
18205  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18206  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18207  # the default ld.so.conf also contains /usr/contrib/lib and
18208  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18209  # libtool to hard-code these into programs
18210  ;;
18211
18212cygwin* | mingw* | pw32* | cegcc*)
18213  version_type=windows
18214  shrext_cmds=.dll
18215  need_version=no
18216  need_lib_prefix=no
18217
18218  case $GCC,$cc_basename in
18219  yes,*)
18220    # gcc
18221    library_names_spec='$libname.dll.a'
18222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18223    postinstall_cmds='base_file=`basename \$file`~
18224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18225      dldir=$destdir/`dirname \$dlpath`~
18226      test -d \$dldir || mkdir -p \$dldir~
18227      $install_prog $dir/$dlname \$dldir/$dlname~
18228      chmod a+x \$dldir/$dlname~
18229      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18230        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18231      fi'
18232    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18233      dlpath=$dir/\$dldll~
18234       $RM \$dlpath'
18235    shlibpath_overrides_runpath=yes
18236
18237    case $host_os in
18238    cygwin*)
18239      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18240      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18241
18242      ;;
18243    mingw* | cegcc*)
18244      # MinGW DLLs use traditional 'lib' prefix
18245      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18246      ;;
18247    pw32*)
18248      # pw32 DLLs use 'pw' prefix rather than 'lib'
18249      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18250      ;;
18251    esac
18252    dynamic_linker='Win32 ld.exe'
18253    ;;
18254
18255  *,cl*)
18256    # Native MSVC
18257    libname_spec='$name'
18258    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18259    library_names_spec='$libname.dll.lib'
18260
18261    case $build_os in
18262    mingw*)
18263      sys_lib_search_path_spec=
18264      lt_save_ifs=$IFS
18265      IFS=';'
18266      for lt_path in $LIB
18267      do
18268        IFS=$lt_save_ifs
18269        # Let DOS variable expansion print the short 8.3 style file name.
18270        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18271        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18272      done
18273      IFS=$lt_save_ifs
18274      # Convert to MSYS style.
18275      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18276      ;;
18277    cygwin*)
18278      # Convert to unix form, then to dos form, then back to unix form
18279      # but this time dos style (no spaces!) so that the unix form looks
18280      # like /cygdrive/c/PROGRA~1:/cygdr...
18281      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18282      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18283      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18284      ;;
18285    *)
18286      sys_lib_search_path_spec=$LIB
18287      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18288        # It is most probably a Windows format PATH.
18289        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18290      else
18291        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18292      fi
18293      # FIXME: find the short name or the path components, as spaces are
18294      # common. (e.g. "Program Files" -> "PROGRA~1")
18295      ;;
18296    esac
18297
18298    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18299    postinstall_cmds='base_file=`basename \$file`~
18300      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18301      dldir=$destdir/`dirname \$dlpath`~
18302      test -d \$dldir || mkdir -p \$dldir~
18303      $install_prog $dir/$dlname \$dldir/$dlname'
18304    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18305      dlpath=$dir/\$dldll~
18306       $RM \$dlpath'
18307    shlibpath_overrides_runpath=yes
18308    dynamic_linker='Win32 link.exe'
18309    ;;
18310
18311  *)
18312    # Assume MSVC wrapper
18313    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18314    dynamic_linker='Win32 ld.exe'
18315    ;;
18316  esac
18317  # FIXME: first we should search . and the directory the executable is in
18318  shlibpath_var=PATH
18319  ;;
18320
18321darwin* | rhapsody*)
18322  dynamic_linker="$host_os dyld"
18323  version_type=darwin
18324  need_lib_prefix=no
18325  need_version=no
18326  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18327  soname_spec='$libname$release$major$shared_ext'
18328  shlibpath_overrides_runpath=yes
18329  shlibpath_var=DYLD_LIBRARY_PATH
18330  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18331
18332  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18333  ;;
18334
18335dgux*)
18336  version_type=linux # correct to gnu/linux during the next big refactor
18337  need_lib_prefix=no
18338  need_version=no
18339  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18340  soname_spec='$libname$release$shared_ext$major'
18341  shlibpath_var=LD_LIBRARY_PATH
18342  ;;
18343
18344freebsd* | dragonfly*)
18345  # DragonFly does not have aout.  When/if they implement a new
18346  # versioning mechanism, adjust this.
18347  if test -x /usr/bin/objformat; then
18348    objformat=`/usr/bin/objformat`
18349  else
18350    case $host_os in
18351    freebsd[23].*) objformat=aout ;;
18352    *) objformat=elf ;;
18353    esac
18354  fi
18355  version_type=freebsd-$objformat
18356  case $version_type in
18357    freebsd-elf*)
18358      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18359      soname_spec='$libname$release$shared_ext$major'
18360      need_version=no
18361      need_lib_prefix=no
18362      ;;
18363    freebsd-*)
18364      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18365      need_version=yes
18366      ;;
18367  esac
18368  shlibpath_var=LD_LIBRARY_PATH
18369  case $host_os in
18370  freebsd2.*)
18371    shlibpath_overrides_runpath=yes
18372    ;;
18373  freebsd3.[01]* | freebsdelf3.[01]*)
18374    shlibpath_overrides_runpath=yes
18375    hardcode_into_libs=yes
18376    ;;
18377  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18378  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18379    shlibpath_overrides_runpath=no
18380    hardcode_into_libs=yes
18381    ;;
18382  *) # from 4.6 on, and DragonFly
18383    shlibpath_overrides_runpath=yes
18384    hardcode_into_libs=yes
18385    ;;
18386  esac
18387  ;;
18388
18389haiku*)
18390  version_type=linux # correct to gnu/linux during the next big refactor
18391  need_lib_prefix=no
18392  need_version=no
18393  dynamic_linker="$host_os runtime_loader"
18394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18395  soname_spec='$libname$release$shared_ext$major'
18396  shlibpath_var=LIBRARY_PATH
18397  shlibpath_overrides_runpath=no
18398  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18399  hardcode_into_libs=yes
18400  ;;
18401
18402hpux9* | hpux10* | hpux11*)
18403  # Give a soname corresponding to the major version so that dld.sl refuses to
18404  # link against other versions.
18405  version_type=sunos
18406  need_lib_prefix=no
18407  need_version=no
18408  case $host_cpu in
18409  ia64*)
18410    shrext_cmds='.so'
18411    hardcode_into_libs=yes
18412    dynamic_linker="$host_os dld.so"
18413    shlibpath_var=LD_LIBRARY_PATH
18414    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18415    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18416    soname_spec='$libname$release$shared_ext$major'
18417    if test 32 = "$HPUX_IA64_MODE"; then
18418      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18419      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18420    else
18421      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18422      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18423    fi
18424    ;;
18425  hppa*64*)
18426    shrext_cmds='.sl'
18427    hardcode_into_libs=yes
18428    dynamic_linker="$host_os dld.sl"
18429    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18430    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18431    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18432    soname_spec='$libname$release$shared_ext$major'
18433    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18435    ;;
18436  *)
18437    shrext_cmds='.sl'
18438    dynamic_linker="$host_os dld.sl"
18439    shlibpath_var=SHLIB_PATH
18440    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18441    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18442    soname_spec='$libname$release$shared_ext$major'
18443    ;;
18444  esac
18445  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18446  postinstall_cmds='chmod 555 $lib'
18447  # or fails outright, so override atomically:
18448  install_override_mode=555
18449  ;;
18450
18451interix[3-9]*)
18452  version_type=linux # correct to gnu/linux during the next big refactor
18453  need_lib_prefix=no
18454  need_version=no
18455  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18456  soname_spec='$libname$release$shared_ext$major'
18457  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18458  shlibpath_var=LD_LIBRARY_PATH
18459  shlibpath_overrides_runpath=no
18460  hardcode_into_libs=yes
18461  ;;
18462
18463irix5* | irix6* | nonstopux*)
18464  case $host_os in
18465    nonstopux*) version_type=nonstopux ;;
18466    *)
18467	if test yes = "$lt_cv_prog_gnu_ld"; then
18468		version_type=linux # correct to gnu/linux during the next big refactor
18469	else
18470		version_type=irix
18471	fi ;;
18472  esac
18473  need_lib_prefix=no
18474  need_version=no
18475  soname_spec='$libname$release$shared_ext$major'
18476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18477  case $host_os in
18478  irix5* | nonstopux*)
18479    libsuff= shlibsuff=
18480    ;;
18481  *)
18482    case $LD in # libtool.m4 will add one of these switches to LD
18483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18484      libsuff= shlibsuff= libmagic=32-bit;;
18485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18486      libsuff=32 shlibsuff=N32 libmagic=N32;;
18487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18489    *) libsuff= shlibsuff= libmagic=never-match;;
18490    esac
18491    ;;
18492  esac
18493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18494  shlibpath_overrides_runpath=no
18495  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18496  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18497  hardcode_into_libs=yes
18498  ;;
18499
18500# No shared lib support for Linux oldld, aout, or coff.
18501linux*oldld* | linux*aout* | linux*coff*)
18502  dynamic_linker=no
18503  ;;
18504
18505linux*android*)
18506  version_type=none # Android doesn't support versioned libraries.
18507  need_lib_prefix=no
18508  need_version=no
18509  library_names_spec='$libname$release$shared_ext'
18510  soname_spec='$libname$release$shared_ext'
18511  finish_cmds=
18512  shlibpath_var=LD_LIBRARY_PATH
18513  shlibpath_overrides_runpath=yes
18514
18515  # This implies no fast_install, which is unacceptable.
18516  # Some rework will be needed to allow for fast_install
18517  # before this can be enabled.
18518  hardcode_into_libs=yes
18519
18520  dynamic_linker='Android linker'
18521  # Don't embed -rpath directories since the linker doesn't support them.
18522  hardcode_libdir_flag_spec_CXX='-L$libdir'
18523  ;;
18524
18525# This must be glibc/ELF.
18526linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18527  version_type=linux # correct to gnu/linux during the next big refactor
18528  need_lib_prefix=no
18529  need_version=no
18530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18531  soname_spec='$libname$release$shared_ext$major'
18532  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18533  shlibpath_var=LD_LIBRARY_PATH
18534  shlibpath_overrides_runpath=no
18535
18536  # Some binutils ld are patched to set DT_RUNPATH
18537  if test ${lt_cv_shlibpath_overrides_runpath+y}
18538then :
18539  printf %s "(cached) " >&6
18540else $as_nop
18541  lt_cv_shlibpath_overrides_runpath=no
18542    save_LDFLAGS=$LDFLAGS
18543    save_libdir=$libdir
18544    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18545	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547/* end confdefs.h.  */
18548
18549int
18550main (void)
18551{
18552
18553  ;
18554  return 0;
18555}
18556_ACEOF
18557if ac_fn_cxx_try_link "$LINENO"
18558then :
18559  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18560then :
18561  lt_cv_shlibpath_overrides_runpath=yes
18562fi
18563fi
18564rm -f core conftest.err conftest.$ac_objext conftest.beam \
18565    conftest$ac_exeext conftest.$ac_ext
18566    LDFLAGS=$save_LDFLAGS
18567    libdir=$save_libdir
18568
18569fi
18570
18571  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18572
18573  # This implies no fast_install, which is unacceptable.
18574  # Some rework will be needed to allow for fast_install
18575  # before this can be enabled.
18576  hardcode_into_libs=yes
18577
18578  # Ideally, we could use ldconfig to report *all* directores which are
18579  # searched for libraries, however this is still not possible.  Aside from not
18580  # being certain /sbin/ldconfig is available, command
18581  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18582  # even though it is searched at run-time.  Try to do the best guess by
18583  # appending ld.so.conf contents (and includes) to the search path.
18584  if test -f /etc/ld.so.conf; then
18585    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' ' '`
18586    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18587  fi
18588
18589  # We used to test for /lib/ld.so.1 and disable shared libraries on
18590  # powerpc, because MkLinux only supported shared libraries with the
18591  # GNU dynamic linker.  Since this was broken with cross compilers,
18592  # most powerpc-linux boxes support dynamic linking these days and
18593  # people can always --disable-shared, the test was removed, and we
18594  # assume the GNU/Linux dynamic linker is in use.
18595  dynamic_linker='GNU/Linux ld.so'
18596  ;;
18597
18598netbsd*)
18599  version_type=sunos
18600  need_lib_prefix=no
18601  need_version=no
18602  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18603    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18604    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18605    dynamic_linker='NetBSD (a.out) ld.so'
18606  else
18607    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18608    soname_spec='$libname$release$shared_ext$major'
18609    dynamic_linker='NetBSD ld.elf_so'
18610  fi
18611  shlibpath_var=LD_LIBRARY_PATH
18612  shlibpath_overrides_runpath=yes
18613  hardcode_into_libs=yes
18614  ;;
18615
18616newsos6)
18617  version_type=linux # correct to gnu/linux during the next big refactor
18618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18619  shlibpath_var=LD_LIBRARY_PATH
18620  shlibpath_overrides_runpath=yes
18621  ;;
18622
18623*nto* | *qnx*)
18624  version_type=qnx
18625  need_lib_prefix=no
18626  need_version=no
18627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18628  soname_spec='$libname$release$shared_ext$major'
18629  shlibpath_var=LD_LIBRARY_PATH
18630  shlibpath_overrides_runpath=no
18631  hardcode_into_libs=yes
18632  dynamic_linker='ldqnx.so'
18633  ;;
18634
18635openbsd* | bitrig*)
18636  version_type=sunos
18637  sys_lib_dlsearch_path_spec=/usr/lib
18638  need_lib_prefix=no
18639  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18640    need_version=no
18641  else
18642    need_version=yes
18643  fi
18644  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18646  shlibpath_var=LD_LIBRARY_PATH
18647  shlibpath_overrides_runpath=yes
18648  ;;
18649
18650os2*)
18651  libname_spec='$name'
18652  version_type=windows
18653  shrext_cmds=.dll
18654  need_version=no
18655  need_lib_prefix=no
18656  # OS/2 can only load a DLL with a base name of 8 characters or less.
18657  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18658    v=$($ECHO $release$versuffix | tr -d .-);
18659    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18660    $ECHO $n$v`$shared_ext'
18661  library_names_spec='${libname}_dll.$libext'
18662  dynamic_linker='OS/2 ld.exe'
18663  shlibpath_var=BEGINLIBPATH
18664  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18665  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18666  postinstall_cmds='base_file=`basename \$file`~
18667    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18668    dldir=$destdir/`dirname \$dlpath`~
18669    test -d \$dldir || mkdir -p \$dldir~
18670    $install_prog $dir/$dlname \$dldir/$dlname~
18671    chmod a+x \$dldir/$dlname~
18672    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18673      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18674    fi'
18675  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18676    dlpath=$dir/\$dldll~
18677    $RM \$dlpath'
18678  ;;
18679
18680osf3* | osf4* | osf5*)
18681  version_type=osf
18682  need_lib_prefix=no
18683  need_version=no
18684  soname_spec='$libname$release$shared_ext$major'
18685  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18686  shlibpath_var=LD_LIBRARY_PATH
18687  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18688  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18689  ;;
18690
18691rdos*)
18692  dynamic_linker=no
18693  ;;
18694
18695solaris*)
18696  version_type=linux # correct to gnu/linux during the next big refactor
18697  need_lib_prefix=no
18698  need_version=no
18699  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18700  soname_spec='$libname$release$shared_ext$major'
18701  shlibpath_var=LD_LIBRARY_PATH
18702  shlibpath_overrides_runpath=yes
18703  hardcode_into_libs=yes
18704  # ldd complains unless libraries are executable
18705  postinstall_cmds='chmod +x $lib'
18706  ;;
18707
18708sunos4*)
18709  version_type=sunos
18710  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18711  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18712  shlibpath_var=LD_LIBRARY_PATH
18713  shlibpath_overrides_runpath=yes
18714  if test yes = "$with_gnu_ld"; then
18715    need_lib_prefix=no
18716  fi
18717  need_version=yes
18718  ;;
18719
18720sysv4 | sysv4.3*)
18721  version_type=linux # correct to gnu/linux during the next big refactor
18722  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18723  soname_spec='$libname$release$shared_ext$major'
18724  shlibpath_var=LD_LIBRARY_PATH
18725  case $host_vendor in
18726    sni)
18727      shlibpath_overrides_runpath=no
18728      need_lib_prefix=no
18729      runpath_var=LD_RUN_PATH
18730      ;;
18731    siemens)
18732      need_lib_prefix=no
18733      ;;
18734    motorola)
18735      need_lib_prefix=no
18736      need_version=no
18737      shlibpath_overrides_runpath=no
18738      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18739      ;;
18740  esac
18741  ;;
18742
18743sysv4*MP*)
18744  if test -d /usr/nec; then
18745    version_type=linux # correct to gnu/linux during the next big refactor
18746    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18747    soname_spec='$libname$shared_ext.$major'
18748    shlibpath_var=LD_LIBRARY_PATH
18749  fi
18750  ;;
18751
18752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18753  version_type=sco
18754  need_lib_prefix=no
18755  need_version=no
18756  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18757  soname_spec='$libname$release$shared_ext$major'
18758  shlibpath_var=LD_LIBRARY_PATH
18759  shlibpath_overrides_runpath=yes
18760  hardcode_into_libs=yes
18761  if test yes = "$with_gnu_ld"; then
18762    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18763  else
18764    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18765    case $host_os in
18766      sco3.2v5*)
18767        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18768	;;
18769    esac
18770  fi
18771  sys_lib_dlsearch_path_spec='/usr/lib'
18772  ;;
18773
18774tpf*)
18775  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18776  version_type=linux # correct to gnu/linux during the next big refactor
18777  need_lib_prefix=no
18778  need_version=no
18779  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18780  shlibpath_var=LD_LIBRARY_PATH
18781  shlibpath_overrides_runpath=no
18782  hardcode_into_libs=yes
18783  ;;
18784
18785uts4*)
18786  version_type=linux # correct to gnu/linux during the next big refactor
18787  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18788  soname_spec='$libname$release$shared_ext$major'
18789  shlibpath_var=LD_LIBRARY_PATH
18790  ;;
18791
18792*)
18793  dynamic_linker=no
18794  ;;
18795esac
18796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18797printf "%s\n" "$dynamic_linker" >&6; }
18798test no = "$dynamic_linker" && can_build_shared=no
18799
18800variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18801if test yes = "$GCC"; then
18802  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18803fi
18804
18805if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18806  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18807fi
18808
18809if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18810  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18811fi
18812
18813# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18814configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18815
18816# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18817func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18818
18819# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18820configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18862printf %s "checking how to hardcode library paths into programs... " >&6; }
18863hardcode_action_CXX=
18864if test -n "$hardcode_libdir_flag_spec_CXX" ||
18865   test -n "$runpath_var_CXX" ||
18866   test yes = "$hardcode_automatic_CXX"; then
18867
18868  # We can hardcode non-existent directories.
18869  if test no != "$hardcode_direct_CXX" &&
18870     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18871     # have to relink, otherwise we might link with an installed library
18872     # when we should be linking with a yet-to-be-installed one
18873     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18874     test no != "$hardcode_minus_L_CXX"; then
18875    # Linking always hardcodes the temporary library directory.
18876    hardcode_action_CXX=relink
18877  else
18878    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18879    hardcode_action_CXX=immediate
18880  fi
18881else
18882  # We cannot hardcode anything, or else we can only hardcode existing
18883  # directories.
18884  hardcode_action_CXX=unsupported
18885fi
18886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18887printf "%s\n" "$hardcode_action_CXX" >&6; }
18888
18889if test relink = "$hardcode_action_CXX" ||
18890   test yes = "$inherit_rpath_CXX"; then
18891  # Fast installation is not supported
18892  enable_fast_install=no
18893elif test yes = "$shlibpath_overrides_runpath" ||
18894     test no = "$enable_shared"; then
18895  # Fast installation is not necessary
18896  enable_fast_install=needless
18897fi
18898
18899
18900
18901
18902
18903
18904
18905  fi # test -n "$compiler"
18906
18907  CC=$lt_save_CC
18908  CFLAGS=$lt_save_CFLAGS
18909  LDCXX=$LD
18910  LD=$lt_save_LD
18911  GCC=$lt_save_GCC
18912  with_gnu_ld=$lt_save_with_gnu_ld
18913  lt_cv_path_LDCXX=$lt_cv_path_LD
18914  lt_cv_path_LD=$lt_save_path_LD
18915  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18916  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18917fi # test yes != "$_lt_caught_CXX_error"
18918
18919ac_ext=c
18920ac_cpp='$CPP $CPPFLAGS'
18921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923ac_compiler_gnu=$ac_cv_c_compiler_gnu
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939        ac_config_commands="$ac_config_commands libtool"
18940
18941
18942
18943
18944# Only expand once:
18945
18946
18947
18948ac_ext=c
18949ac_cpp='$CPP $CPPFLAGS'
18950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18952ac_compiler_gnu=$ac_cv_c_compiler_gnu
18953
18954
18955# Checks for typedefs, structures, and compiler characteristics.
18956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18957printf %s "checking for an ANSI C-conforming const... " >&6; }
18958if test ${ac_cv_c_const+y}
18959then :
18960  printf %s "(cached) " >&6
18961else $as_nop
18962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h.  */
18964
18965int
18966main (void)
18967{
18968
18969#ifndef __cplusplus
18970  /* Ultrix mips cc rejects this sort of thing.  */
18971  typedef int charset[2];
18972  const charset cs = { 0, 0 };
18973  /* SunOS 4.1.1 cc rejects this.  */
18974  char const *const *pcpcc;
18975  char **ppc;
18976  /* NEC SVR4.0.2 mips cc rejects this.  */
18977  struct point {int x, y;};
18978  static struct point const zero = {0,0};
18979  /* IBM XL C 1.02.0.0 rejects this.
18980     It does not let you subtract one const X* pointer from another in
18981     an arm of an if-expression whose if-part is not a constant
18982     expression */
18983  const char *g = "string";
18984  pcpcc = &g + (g ? g-g : 0);
18985  /* HPUX 7.0 cc rejects these. */
18986  ++pcpcc;
18987  ppc = (char**) pcpcc;
18988  pcpcc = (char const *const *) ppc;
18989  { /* SCO 3.2v4 cc rejects this sort of thing.  */
18990    char tx;
18991    char *t = &tx;
18992    char const *s = 0 ? (char *) 0 : (char const *) 0;
18993
18994    *t++ = 0;
18995    if (s) return 0;
18996  }
18997  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18998    int x[] = {25, 17};
18999    const int *foo = &x[0];
19000    ++foo;
19001  }
19002  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19003    typedef const int *iptr;
19004    iptr p = 0;
19005    ++p;
19006  }
19007  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
19008       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19009    struct s { int j; const int *ap[3]; } bx;
19010    struct s *b = &bx; b->j = 5;
19011  }
19012  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19013    const int foo = 10;
19014    if (!foo) return 0;
19015  }
19016  return !cs[0] && !zero.x;
19017#endif
19018
19019  ;
19020  return 0;
19021}
19022_ACEOF
19023if ac_fn_c_try_compile "$LINENO"
19024then :
19025  ac_cv_c_const=yes
19026else $as_nop
19027  ac_cv_c_const=no
19028fi
19029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19030fi
19031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19032printf "%s\n" "$ac_cv_c_const" >&6; }
19033if test $ac_cv_c_const = no; then
19034
19035printf "%s\n" "#define const /**/" >>confdefs.h
19036
19037fi
19038
19039ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19040if test "x$ac_cv_type_size_t" = xyes
19041then :
19042
19043else $as_nop
19044
19045printf "%s\n" "#define size_t unsigned int" >>confdefs.h
19046
19047fi
19048
19049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19050printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19051if test ${ac_cv_struct_tm+y}
19052then :
19053  printf %s "(cached) " >&6
19054else $as_nop
19055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056/* end confdefs.h.  */
19057#include <sys/types.h>
19058#include <time.h>
19059
19060int
19061main (void)
19062{
19063struct tm tm;
19064				     int *p = &tm.tm_sec;
19065				     return !p;
19066  ;
19067  return 0;
19068}
19069_ACEOF
19070if ac_fn_c_try_compile "$LINENO"
19071then :
19072  ac_cv_struct_tm=time.h
19073else $as_nop
19074  ac_cv_struct_tm=sys/time.h
19075fi
19076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19077fi
19078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19079printf "%s\n" "$ac_cv_struct_tm" >&6; }
19080if test $ac_cv_struct_tm = sys/time.h; then
19081
19082printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
19083
19084fi
19085
19086ac_header_dirent=no
19087for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19088  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19090printf %s "checking for $ac_hdr that defines DIR... " >&6; }
19091if eval test \${$as_ac_Header+y}
19092then :
19093  printf %s "(cached) " >&6
19094else $as_nop
19095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096/* end confdefs.h.  */
19097#include <sys/types.h>
19098#include <$ac_hdr>
19099
19100int
19101main (void)
19102{
19103if ((DIR *) 0)
19104return 0;
19105  ;
19106  return 0;
19107}
19108_ACEOF
19109if ac_fn_c_try_compile "$LINENO"
19110then :
19111  eval "$as_ac_Header=yes"
19112else $as_nop
19113  eval "$as_ac_Header=no"
19114fi
19115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19116fi
19117eval ac_res=\$$as_ac_Header
19118	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19119printf "%s\n" "$ac_res" >&6; }
19120if eval test \"x\$"$as_ac_Header"\" = x"yes"
19121then :
19122  cat >>confdefs.h <<_ACEOF
19123#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
19124_ACEOF
19125
19126ac_header_dirent=$ac_hdr; break
19127fi
19128
19129done
19130# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19131if test $ac_header_dirent = dirent.h; then
19132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19133printf %s "checking for library containing opendir... " >&6; }
19134if test ${ac_cv_search_opendir+y}
19135then :
19136  printf %s "(cached) " >&6
19137else $as_nop
19138  ac_func_search_save_LIBS=$LIBS
19139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140/* end confdefs.h.  */
19141
19142/* Override any GCC internal prototype to avoid an error.
19143   Use char because int might match the return type of a GCC
19144   builtin and then its argument prototype would still apply.  */
19145char opendir ();
19146int
19147main (void)
19148{
19149return opendir ();
19150  ;
19151  return 0;
19152}
19153_ACEOF
19154for ac_lib in '' dir
19155do
19156  if test -z "$ac_lib"; then
19157    ac_res="none required"
19158  else
19159    ac_res=-l$ac_lib
19160    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19161  fi
19162  if ac_fn_c_try_link "$LINENO"
19163then :
19164  ac_cv_search_opendir=$ac_res
19165fi
19166rm -f core conftest.err conftest.$ac_objext conftest.beam \
19167    conftest$ac_exeext
19168  if test ${ac_cv_search_opendir+y}
19169then :
19170  break
19171fi
19172done
19173if test ${ac_cv_search_opendir+y}
19174then :
19175
19176else $as_nop
19177  ac_cv_search_opendir=no
19178fi
19179rm conftest.$ac_ext
19180LIBS=$ac_func_search_save_LIBS
19181fi
19182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19183printf "%s\n" "$ac_cv_search_opendir" >&6; }
19184ac_res=$ac_cv_search_opendir
19185if test "$ac_res" != no
19186then :
19187  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19188
19189fi
19190
19191else
19192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19193printf %s "checking for library containing opendir... " >&6; }
19194if test ${ac_cv_search_opendir+y}
19195then :
19196  printf %s "(cached) " >&6
19197else $as_nop
19198  ac_func_search_save_LIBS=$LIBS
19199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200/* end confdefs.h.  */
19201
19202/* Override any GCC internal prototype to avoid an error.
19203   Use char because int might match the return type of a GCC
19204   builtin and then its argument prototype would still apply.  */
19205char opendir ();
19206int
19207main (void)
19208{
19209return opendir ();
19210  ;
19211  return 0;
19212}
19213_ACEOF
19214for ac_lib in '' x
19215do
19216  if test -z "$ac_lib"; then
19217    ac_res="none required"
19218  else
19219    ac_res=-l$ac_lib
19220    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19221  fi
19222  if ac_fn_c_try_link "$LINENO"
19223then :
19224  ac_cv_search_opendir=$ac_res
19225fi
19226rm -f core conftest.err conftest.$ac_objext conftest.beam \
19227    conftest$ac_exeext
19228  if test ${ac_cv_search_opendir+y}
19229then :
19230  break
19231fi
19232done
19233if test ${ac_cv_search_opendir+y}
19234then :
19235
19236else $as_nop
19237  ac_cv_search_opendir=no
19238fi
19239rm conftest.$ac_ext
19240LIBS=$ac_func_search_save_LIBS
19241fi
19242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19243printf "%s\n" "$ac_cv_search_opendir" >&6; }
19244ac_res=$ac_cv_search_opendir
19245if test "$ac_res" != no
19246then :
19247  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19248
19249fi
19250
19251fi
19252
19253
19254# Checks for library functions.
19255
19256  for ac_func in strftime
19257do :
19258  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19259if test "x$ac_cv_func_strftime" = xyes
19260then :
19261  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
19262
19263else $as_nop
19264  # strftime is in -lintl on SCO UNIX.
19265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
19266printf %s "checking for strftime in -lintl... " >&6; }
19267if test ${ac_cv_lib_intl_strftime+y}
19268then :
19269  printf %s "(cached) " >&6
19270else $as_nop
19271  ac_check_lib_save_LIBS=$LIBS
19272LIBS="-lintl  $LIBS"
19273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274/* end confdefs.h.  */
19275
19276/* Override any GCC internal prototype to avoid an error.
19277   Use char because int might match the return type of a GCC
19278   builtin and then its argument prototype would still apply.  */
19279char strftime ();
19280int
19281main (void)
19282{
19283return strftime ();
19284  ;
19285  return 0;
19286}
19287_ACEOF
19288if ac_fn_c_try_link "$LINENO"
19289then :
19290  ac_cv_lib_intl_strftime=yes
19291else $as_nop
19292  ac_cv_lib_intl_strftime=no
19293fi
19294rm -f core conftest.err conftest.$ac_objext conftest.beam \
19295    conftest$ac_exeext conftest.$ac_ext
19296LIBS=$ac_check_lib_save_LIBS
19297fi
19298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
19299printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
19300if test "x$ac_cv_lib_intl_strftime" = xyes
19301then :
19302  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
19303
19304LIBS="-lintl $LIBS"
19305fi
19306
19307fi
19308
19309done
19310ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19311if test "x$ac_cv_header_sys_utsname_h" = xyes
19312then :
19313  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
19314
19315fi
19316ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
19317if test "x$ac_cv_header_grp_h" = xyes
19318then :
19319  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
19320
19321fi
19322ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
19323if test "x$ac_cv_header_pwd_h" = xyes
19324then :
19325  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
19326
19327fi
19328
19329       for ac_header in sys/socket.h
19330do :
19331  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
19332if test "x$ac_cv_header_sys_socket_h" = xyes
19333then :
19334  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
19335
19336printf "%s\n" "#define SHIBSP_HAVE_SYS_SOCKET_H 1" >>confdefs.h
19337
19338fi
19339
19340done
19341ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
19342if test "x$ac_cv_func_strchr" = xyes
19343then :
19344  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
19345
19346fi
19347ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19348if test "x$ac_cv_func_strdup" = xyes
19349then :
19350  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
19351
19352fi
19353ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
19354if test "x$ac_cv_func_strstr" = xyes
19355then :
19356  printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
19357
19358fi
19359ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19360if test "x$ac_cv_func_timegm" = xyes
19361then :
19362  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
19363
19364fi
19365ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19366if test "x$ac_cv_func_gmtime_r" = xyes
19367then :
19368  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
19369
19370fi
19371ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
19372if test "x$ac_cv_func_localtime_r" = xyes
19373then :
19374  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
19375
19376fi
19377ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
19378if test "x$ac_cv_func_strtok_r" = xyes
19379then :
19380  printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
19381
19382fi
19383ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19384if test "x$ac_cv_func_strcasecmp" = xyes
19385then :
19386  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
19387
19388fi
19389ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
19390if test "x$ac_cv_func_getpwnam" = xyes
19391then :
19392  printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
19393
19394fi
19395ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
19396if test "x$ac_cv_func_getgrnam" = xyes
19397then :
19398  printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h
19399
19400fi
19401ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
19402if test "x$ac_cv_func_initgroups" = xyes
19403then :
19404  printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
19405
19406fi
19407
19408ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
19409"
19410if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
19411then :
19412
19413printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
19414
19415
19416fi
19417
19418ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
19419"
19420if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
19421then :
19422
19423printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
19424
19425
19426fi
19427
19428
19429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
19430printf %s "checking for SOCK_CLOEXEC support... " >&6; }
19431if test ${shib_cv_sock_cloexec+y}
19432then :
19433  printf %s "(cached) " >&6
19434else $as_nop
19435  if test "$cross_compiling" = yes
19436then :
19437  shib_cv_sock_cloexec=no
19438else $as_nop
19439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440/* end confdefs.h.  */
19441
19442#include <sys/types.h>
19443#include <sys/socket.h>
19444int main()
19445{
19446return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
19447}
19448_ACEOF
19449if ac_fn_c_try_run "$LINENO"
19450then :
19451  shib_cv_sock_cloexec=yes
19452else $as_nop
19453  shib_cv_sock_cloexec=no
19454fi
19455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19456  conftest.$ac_objext conftest.beam conftest.$ac_ext
19457fi
19458
19459fi
19460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $shib_cv_sock_cloexec" >&5
19461printf "%s\n" "$shib_cv_sock_cloexec" >&6; }
19462
19463if test "$shib_cv_sock_cloexec" = "yes"; then
19464
19465printf "%s\n" "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
19466
19467fi
19468
19469ac_ext=c
19470ac_cpp='$CPP $CPPFLAGS'
19471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
19475printf %s "checking how to run the C preprocessor... " >&6; }
19476# On Suns, sometimes $CPP names a directory.
19477if test -n "$CPP" && test -d "$CPP"; then
19478  CPP=
19479fi
19480if test -z "$CPP"; then
19481  if test ${ac_cv_prog_CPP+y}
19482then :
19483  printf %s "(cached) " >&6
19484else $as_nop
19485      # Double quotes because $CC needs to be expanded
19486    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
19487    do
19488      ac_preproc_ok=false
19489for ac_c_preproc_warn_flag in '' yes
19490do
19491  # Use a header file that comes with gcc, so configuring glibc
19492  # with a fresh cross-compiler works.
19493  # On the NeXT, cc -E runs the code through the compiler's parser,
19494  # not just through cpp. "Syntax error" is here to catch this case.
19495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19496/* end confdefs.h.  */
19497#include <limits.h>
19498		     Syntax error
19499_ACEOF
19500if ac_fn_c_try_cpp "$LINENO"
19501then :
19502
19503else $as_nop
19504  # Broken: fails on valid input.
19505continue
19506fi
19507rm -f conftest.err conftest.i conftest.$ac_ext
19508
19509  # OK, works on sane cases.  Now check whether nonexistent headers
19510  # can be detected and how.
19511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512/* end confdefs.h.  */
19513#include <ac_nonexistent.h>
19514_ACEOF
19515if ac_fn_c_try_cpp "$LINENO"
19516then :
19517  # Broken: success on invalid input.
19518continue
19519else $as_nop
19520  # Passes both tests.
19521ac_preproc_ok=:
19522break
19523fi
19524rm -f conftest.err conftest.i conftest.$ac_ext
19525
19526done
19527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19528rm -f conftest.i conftest.err conftest.$ac_ext
19529if $ac_preproc_ok
19530then :
19531  break
19532fi
19533
19534    done
19535    ac_cv_prog_CPP=$CPP
19536
19537fi
19538  CPP=$ac_cv_prog_CPP
19539else
19540  ac_cv_prog_CPP=$CPP
19541fi
19542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
19543printf "%s\n" "$CPP" >&6; }
19544ac_preproc_ok=false
19545for ac_c_preproc_warn_flag in '' yes
19546do
19547  # Use a header file that comes with gcc, so configuring glibc
19548  # with a fresh cross-compiler works.
19549  # On the NeXT, cc -E runs the code through the compiler's parser,
19550  # not just through cpp. "Syntax error" is here to catch this case.
19551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552/* end confdefs.h.  */
19553#include <limits.h>
19554		     Syntax error
19555_ACEOF
19556if ac_fn_c_try_cpp "$LINENO"
19557then :
19558
19559else $as_nop
19560  # Broken: fails on valid input.
19561continue
19562fi
19563rm -f conftest.err conftest.i conftest.$ac_ext
19564
19565  # OK, works on sane cases.  Now check whether nonexistent headers
19566  # can be detected and how.
19567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568/* end confdefs.h.  */
19569#include <ac_nonexistent.h>
19570_ACEOF
19571if ac_fn_c_try_cpp "$LINENO"
19572then :
19573  # Broken: success on invalid input.
19574continue
19575else $as_nop
19576  # Passes both tests.
19577ac_preproc_ok=:
19578break
19579fi
19580rm -f conftest.err conftest.i conftest.$ac_ext
19581
19582done
19583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19584rm -f conftest.i conftest.err conftest.$ac_ext
19585if $ac_preproc_ok
19586then :
19587
19588else $as_nop
19589  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19590printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19591as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
19592See \`config.log' for more details" "$LINENO" 5; }
19593fi
19594
19595ac_ext=c
19596ac_cpp='$CPP $CPPFLAGS'
19597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_c_compiler_gnu
19600
19601
19602
19603
19604
19605
19606ac_ext=c
19607ac_cpp='$CPP $CPPFLAGS'
19608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610ac_compiler_gnu=$ac_cv_c_compiler_gnu
19611
19612ax_pthread_ok=no
19613
19614# We used to check for pthread.h first, but this fails if pthread.h
19615# requires special compiler flags (e.g. on Tru64 or Sequent).
19616# It gets checked for in the link test anyway.
19617
19618# First of all, check if the user has set any of the PTHREAD_LIBS,
19619# etcetera environment variables, and if threads linking works using
19620# them:
19621if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19622        ax_pthread_save_CC="$CC"
19623        ax_pthread_save_CFLAGS="$CFLAGS"
19624        ax_pthread_save_LIBS="$LIBS"
19625        if test "x$PTHREAD_CC" != "x"
19626then :
19627  CC="$PTHREAD_CC"
19628fi
19629        if test "x$PTHREAD_CXX" != "x"
19630then :
19631  CXX="$PTHREAD_CXX"
19632fi
19633        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19634        LIBS="$PTHREAD_LIBS $LIBS"
19635        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19636printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19637        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638/* end confdefs.h.  */
19639
19640/* Override any GCC internal prototype to avoid an error.
19641   Use char because int might match the return type of a GCC
19642   builtin and then its argument prototype would still apply.  */
19643char pthread_join ();
19644int
19645main (void)
19646{
19647return pthread_join ();
19648  ;
19649  return 0;
19650}
19651_ACEOF
19652if ac_fn_c_try_link "$LINENO"
19653then :
19654  ax_pthread_ok=yes
19655fi
19656rm -f core conftest.err conftest.$ac_objext conftest.beam \
19657    conftest$ac_exeext conftest.$ac_ext
19658        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19659printf "%s\n" "$ax_pthread_ok" >&6; }
19660        if test "x$ax_pthread_ok" = "xno"; then
19661                PTHREAD_LIBS=""
19662                PTHREAD_CFLAGS=""
19663        fi
19664        CC="$ax_pthread_save_CC"
19665        CFLAGS="$ax_pthread_save_CFLAGS"
19666        LIBS="$ax_pthread_save_LIBS"
19667fi
19668
19669# We must check for the threads library under a number of different
19670# names; the ordering is very important because some systems
19671# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19672# libraries is broken (non-POSIX).
19673
19674# Create a list of thread flags to try. Items with a "," contain both
19675# C compiler flags (before ",") and linker flags (after ","). Other items
19676# starting with a "-" are C compiler flags, and remaining items are
19677# library names, except for "none" which indicates that we try without
19678# any flags at all, and "pthread-config" which is a program returning
19679# the flags for the Pth emulation library.
19680
19681ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19682
19683# The ordering *is* (sometimes) important.  Some notes on the
19684# individual items follow:
19685
19686# pthreads: AIX (must check this before -lpthread)
19687# none: in case threads are in libc; should be tried before -Kthread and
19688#       other compiler flags to prevent continual compiler warnings
19689# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19690# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19691#           (Note: HP C rejects this with "bad form for `-t' option")
19692# -pthreads: Solaris/gcc (Note: HP C also rejects)
19693# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19694#      doesn't hurt to check since this sometimes defines pthreads and
19695#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19696#      is present but should not be used directly; and before -mthreads,
19697#      because the compiler interprets this as "-mt" + "-hreads")
19698# -mthreads: Mingw32/gcc, Lynx/gcc
19699# pthread: Linux, etcetera
19700# --thread-safe: KAI C++
19701# pthread-config: use pthread-config program (for GNU Pth library)
19702
19703case $host_os in
19704
19705        freebsd*)
19706
19707        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19708        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19709
19710        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19711        ;;
19712
19713        hpux*)
19714
19715        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19716        # multi-threading and also sets -lpthread."
19717
19718        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19719        ;;
19720
19721        openedition*)
19722
19723        # IBM z/OS requires a feature-test macro to be defined in order to
19724        # enable POSIX threads at all, so give the user a hint if this is
19725        # not set. (We don't define these ourselves, as they can affect
19726        # other portions of the system API in unpredictable ways.)
19727
19728        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729/* end confdefs.h.  */
19730
19731#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19732             AX_PTHREAD_ZOS_MISSING
19733#            endif
19734
19735_ACEOF
19736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19737  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
19738then :
19739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19740printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19741fi
19742rm -rf conftest*
19743
19744        ;;
19745
19746        solaris*)
19747
19748        # On Solaris (at least, for some versions), libc contains stubbed
19749        # (non-functional) versions of the pthreads routines, so link-based
19750        # tests will erroneously succeed. (N.B.: The stubs are missing
19751        # pthread_cleanup_push, or rather a function called by this macro,
19752        # so we could check for that, but who knows whether they'll stub
19753        # that too in a future libc.)  So we'll check first for the
19754        # standard Solaris way of linking pthreads (-mt -lpthread).
19755
19756        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
19757        ;;
19758esac
19759
19760# Are we compiling with Clang?
19761
19762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19763printf %s "checking whether $CC is Clang... " >&6; }
19764if test ${ax_cv_PTHREAD_CLANG+y}
19765then :
19766  printf %s "(cached) " >&6
19767else $as_nop
19768  ax_cv_PTHREAD_CLANG=no
19769     # Note that Autoconf sets GCC=yes for Clang as well as GCC
19770     if test "x$GCC" = "xyes"; then
19771        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772/* end confdefs.h.  */
19773/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19774#            if defined(__clang__) && defined(__llvm__)
19775             AX_PTHREAD_CC_IS_CLANG
19776#            endif
19777
19778_ACEOF
19779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19780  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
19781then :
19782  ax_cv_PTHREAD_CLANG=yes
19783fi
19784rm -rf conftest*
19785
19786     fi
19787
19788fi
19789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19790printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
19791ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19792
19793
19794# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19795
19796# Note that for GCC and Clang -pthread generally implies -lpthread,
19797# except when -nostdlib is passed.
19798# This is problematic using libtool to build C++ shared libraries with pthread:
19799# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
19800# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
19801# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
19802# To solve this, first try -pthread together with -lpthread for GCC
19803
19804if test "x$GCC" = "xyes"
19805then :
19806  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
19807fi
19808
19809# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
19810
19811if test "x$ax_pthread_clang" = "xyes"
19812then :
19813  ax_pthread_flags="-pthread,-lpthread -pthread"
19814fi
19815
19816
19817# The presence of a feature test macro requesting re-entrant function
19818# definitions is, on some systems, a strong hint that pthreads support is
19819# correctly enabled
19820
19821case $host_os in
19822        darwin* | hpux* | linux* | osf* | solaris*)
19823        ax_pthread_check_macro="_REENTRANT"
19824        ;;
19825
19826        aix*)
19827        ax_pthread_check_macro="_THREAD_SAFE"
19828        ;;
19829
19830        *)
19831        ax_pthread_check_macro="--"
19832        ;;
19833esac
19834if test "x$ax_pthread_check_macro" = "x--"
19835then :
19836  ax_pthread_check_cond=0
19837else $as_nop
19838  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19839fi
19840
19841
19842if test "x$ax_pthread_ok" = "xno"; then
19843for ax_pthread_try_flag in $ax_pthread_flags; do
19844
19845        case $ax_pthread_try_flag in
19846                none)
19847                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19848printf %s "checking whether pthreads work without any flags... " >&6; }
19849                ;;
19850
19851                *,*)
19852                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
19853                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
19854                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
19855printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
19856                ;;
19857
19858                -*)
19859                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19860printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19861                PTHREAD_CFLAGS="$ax_pthread_try_flag"
19862                ;;
19863
19864                pthread-config)
19865                # Extract the first word of "pthread-config", so it can be a program name with args.
19866set dummy pthread-config; ac_word=$2
19867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19868printf %s "checking for $ac_word... " >&6; }
19869if test ${ac_cv_prog_ax_pthread_config+y}
19870then :
19871  printf %s "(cached) " >&6
19872else $as_nop
19873  if test -n "$ax_pthread_config"; then
19874  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19875else
19876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19877for as_dir in $PATH
19878do
19879  IFS=$as_save_IFS
19880  case $as_dir in #(((
19881    '') as_dir=./ ;;
19882    */) ;;
19883    *) as_dir=$as_dir/ ;;
19884  esac
19885    for ac_exec_ext in '' $ac_executable_extensions; do
19886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19887    ac_cv_prog_ax_pthread_config="yes"
19888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19889    break 2
19890  fi
19891done
19892  done
19893IFS=$as_save_IFS
19894
19895  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19896fi
19897fi
19898ax_pthread_config=$ac_cv_prog_ax_pthread_config
19899if test -n "$ax_pthread_config"; then
19900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19901printf "%s\n" "$ax_pthread_config" >&6; }
19902else
19903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19904printf "%s\n" "no" >&6; }
19905fi
19906
19907
19908                if test "x$ax_pthread_config" = "xno"
19909then :
19910  continue
19911fi
19912                PTHREAD_CFLAGS="`pthread-config --cflags`"
19913                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19914                ;;
19915
19916                *)
19917                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19918printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19919                PTHREAD_LIBS="-l$ax_pthread_try_flag"
19920                ;;
19921        esac
19922
19923        ax_pthread_save_CFLAGS="$CFLAGS"
19924        ax_pthread_save_LIBS="$LIBS"
19925        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19926        LIBS="$PTHREAD_LIBS $LIBS"
19927
19928        # Check for various functions.  We must include pthread.h,
19929        # since some functions may be macros.  (On the Sequent, we
19930        # need a special flag -Kthread to make this header compile.)
19931        # We check for pthread_join because it is in -lpthread on IRIX
19932        # while pthread_create is in libc.  We check for pthread_attr_init
19933        # due to DEC craziness with -lpthreads.  We check for
19934        # pthread_cleanup_push because it is one of the few pthread
19935        # functions on Solaris that doesn't have a non-functional libc stub.
19936        # We try pthread_create on general principles.
19937
19938        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939/* end confdefs.h.  */
19940#include <pthread.h>
19941#                       if $ax_pthread_check_cond
19942#                        error "$ax_pthread_check_macro must be defined"
19943#                       endif
19944                        static void *some_global = NULL;
19945                        static void routine(void *a)
19946                          {
19947                             /* To avoid any unused-parameter or
19948                                unused-but-set-parameter warning.  */
19949                             some_global = a;
19950                          }
19951                        static void *start_routine(void *a) { return a; }
19952int
19953main (void)
19954{
19955pthread_t th; pthread_attr_t attr;
19956                        pthread_create(&th, 0, start_routine, 0);
19957                        pthread_join(th, 0);
19958                        pthread_attr_init(&attr);
19959                        pthread_cleanup_push(routine, 0);
19960                        pthread_cleanup_pop(0) /* ; */
19961  ;
19962  return 0;
19963}
19964_ACEOF
19965if ac_fn_c_try_link "$LINENO"
19966then :
19967  ax_pthread_ok=yes
19968fi
19969rm -f core conftest.err conftest.$ac_objext conftest.beam \
19970    conftest$ac_exeext conftest.$ac_ext
19971
19972        CFLAGS="$ax_pthread_save_CFLAGS"
19973        LIBS="$ax_pthread_save_LIBS"
19974
19975        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19976printf "%s\n" "$ax_pthread_ok" >&6; }
19977        if test "x$ax_pthread_ok" = "xyes"
19978then :
19979  break
19980fi
19981
19982        PTHREAD_LIBS=""
19983        PTHREAD_CFLAGS=""
19984done
19985fi
19986
19987
19988# Clang needs special handling, because older versions handle the -pthread
19989# option in a rather... idiosyncratic way
19990
19991if test "x$ax_pthread_clang" = "xyes"; then
19992
19993        # Clang takes -pthread; it has never supported any other flag
19994
19995        # (Note 1: This will need to be revisited if a system that Clang
19996        # supports has POSIX threads in a separate library.  This tends not
19997        # to be the way of modern systems, but it's conceivable.)
19998
19999        # (Note 2: On some systems, notably Darwin, -pthread is not needed
20000        # to get POSIX threads support; the API is always present and
20001        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
20002        # -pthread does define _REENTRANT, and while the Darwin headers
20003        # ignore this macro, third-party headers might not.)
20004
20005        # However, older versions of Clang make a point of warning the user
20006        # that, in an invocation where only linking and no compilation is
20007        # taking place, the -pthread option has no effect ("argument unused
20008        # during compilation").  They expect -pthread to be passed in only
20009        # when source code is being compiled.
20010        #
20011        # Problem is, this is at odds with the way Automake and most other
20012        # C build frameworks function, which is that the same flags used in
20013        # compilation (CFLAGS) are also used in linking.  Many systems
20014        # supported by AX_PTHREAD require exactly this for POSIX threads
20015        # support, and in fact it is often not straightforward to specify a
20016        # flag that is used only in the compilation phase and not in
20017        # linking.  Such a scenario is extremely rare in practice.
20018        #
20019        # Even though use of the -pthread flag in linking would only print
20020        # a warning, this can be a nuisance for well-run software projects
20021        # that build with -Werror.  So if the active version of Clang has
20022        # this misfeature, we search for an option to squash it.
20023
20024        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20025printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20026if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
20027then :
20028  printf %s "(cached) " >&6
20029else $as_nop
20030  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20031             # Create an alternate version of $ac_link that compiles and
20032             # links in two steps (.c -> .o, .o -> exe) instead of one
20033             # (.c -> exe), because the warning occurs only in the second
20034             # step
20035             ax_pthread_save_ac_link="$ac_link"
20036             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20037             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
20038             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20039             ax_pthread_save_CFLAGS="$CFLAGS"
20040             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20041                if test "x$ax_pthread_try" = "xunknown"
20042then :
20043  break
20044fi
20045                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20046                ac_link="$ax_pthread_save_ac_link"
20047                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048/* end confdefs.h.  */
20049int main(void){return 0;}
20050_ACEOF
20051if ac_fn_c_try_link "$LINENO"
20052then :
20053  ac_link="$ax_pthread_2step_ac_link"
20054                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055/* end confdefs.h.  */
20056int main(void){return 0;}
20057_ACEOF
20058if ac_fn_c_try_link "$LINENO"
20059then :
20060  break
20061fi
20062rm -f core conftest.err conftest.$ac_objext conftest.beam \
20063    conftest$ac_exeext conftest.$ac_ext
20064
20065fi
20066rm -f core conftest.err conftest.$ac_objext conftest.beam \
20067    conftest$ac_exeext conftest.$ac_ext
20068             done
20069             ac_link="$ax_pthread_save_ac_link"
20070             CFLAGS="$ax_pthread_save_CFLAGS"
20071             if test "x$ax_pthread_try" = "x"
20072then :
20073  ax_pthread_try=no
20074fi
20075             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20076
20077fi
20078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20079printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20080
20081        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20082                no | unknown) ;;
20083                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20084        esac
20085
20086fi # $ax_pthread_clang = yes
20087
20088
20089
20090# Various other checks:
20091if test "x$ax_pthread_ok" = "xyes"; then
20092        ax_pthread_save_CFLAGS="$CFLAGS"
20093        ax_pthread_save_LIBS="$LIBS"
20094        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20095        LIBS="$PTHREAD_LIBS $LIBS"
20096
20097        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20098        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20099printf %s "checking for joinable pthread attribute... " >&6; }
20100if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
20101then :
20102  printf %s "(cached) " >&6
20103else $as_nop
20104  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20105             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20106                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107/* end confdefs.h.  */
20108#include <pthread.h>
20109int
20110main (void)
20111{
20112int attr = $ax_pthread_attr; return attr /* ; */
20113  ;
20114  return 0;
20115}
20116_ACEOF
20117if ac_fn_c_try_link "$LINENO"
20118then :
20119  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20120fi
20121rm -f core conftest.err conftest.$ac_objext conftest.beam \
20122    conftest$ac_exeext conftest.$ac_ext
20123             done
20124
20125fi
20126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20127printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20128        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20129               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20130               test "x$ax_pthread_joinable_attr_defined" != "xyes"
20131then :
20132
20133printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
20134
20135               ax_pthread_joinable_attr_defined=yes
20136
20137fi
20138
20139        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20140printf %s "checking whether more special flags are required for pthreads... " >&6; }
20141if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
20142then :
20143  printf %s "(cached) " >&6
20144else $as_nop
20145  ax_cv_PTHREAD_SPECIAL_FLAGS=no
20146             case $host_os in
20147             solaris*)
20148             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20149             ;;
20150             esac
20151
20152fi
20153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20154printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20155        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20156               test "x$ax_pthread_special_flags_added" != "xyes"
20157then :
20158  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20159               ax_pthread_special_flags_added=yes
20160fi
20161
20162        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20163printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20164if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20165then :
20166  printf %s "(cached) " >&6
20167else $as_nop
20168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169/* end confdefs.h.  */
20170#include <pthread.h>
20171int
20172main (void)
20173{
20174int i = PTHREAD_PRIO_INHERIT;
20175                                               return i;
20176  ;
20177  return 0;
20178}
20179_ACEOF
20180if ac_fn_c_try_link "$LINENO"
20181then :
20182  ax_cv_PTHREAD_PRIO_INHERIT=yes
20183else $as_nop
20184  ax_cv_PTHREAD_PRIO_INHERIT=no
20185fi
20186rm -f core conftest.err conftest.$ac_objext conftest.beam \
20187    conftest$ac_exeext conftest.$ac_ext
20188
20189fi
20190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20191printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20192        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20193               test "x$ax_pthread_prio_inherit_defined" != "xyes"
20194then :
20195
20196printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20197
20198               ax_pthread_prio_inherit_defined=yes
20199
20200fi
20201
20202        CFLAGS="$ax_pthread_save_CFLAGS"
20203        LIBS="$ax_pthread_save_LIBS"
20204
20205        # More AIX lossage: compile with *_r variant
20206        if test "x$GCC" != "xyes"; then
20207            case $host_os in
20208                aix*)
20209                case "x/$CC" in #(
20210  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20211    #handle absolute path differently from PATH based program lookup
20212                     case "x$CC" in #(
20213  x/*) :
20214
20215			   if as_fn_executable_p ${CC}_r
20216then :
20217  PTHREAD_CC="${CC}_r"
20218fi
20219			   if test "x${CXX}" != "x"
20220then :
20221  if as_fn_executable_p ${CXX}_r
20222then :
20223  PTHREAD_CXX="${CXX}_r"
20224fi
20225fi
20226			  ;; #(
20227  *) :
20228
20229			   for ac_prog in ${CC}_r
20230do
20231  # Extract the first word of "$ac_prog", so it can be a program name with args.
20232set dummy $ac_prog; ac_word=$2
20233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20234printf %s "checking for $ac_word... " >&6; }
20235if test ${ac_cv_prog_PTHREAD_CC+y}
20236then :
20237  printf %s "(cached) " >&6
20238else $as_nop
20239  if test -n "$PTHREAD_CC"; then
20240  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20241else
20242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20243for as_dir in $PATH
20244do
20245  IFS=$as_save_IFS
20246  case $as_dir in #(((
20247    '') as_dir=./ ;;
20248    */) ;;
20249    *) as_dir=$as_dir/ ;;
20250  esac
20251    for ac_exec_ext in '' $ac_executable_extensions; do
20252  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20253    ac_cv_prog_PTHREAD_CC="$ac_prog"
20254    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20255    break 2
20256  fi
20257done
20258  done
20259IFS=$as_save_IFS
20260
20261fi
20262fi
20263PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20264if test -n "$PTHREAD_CC"; then
20265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20266printf "%s\n" "$PTHREAD_CC" >&6; }
20267else
20268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269printf "%s\n" "no" >&6; }
20270fi
20271
20272
20273  test -n "$PTHREAD_CC" && break
20274done
20275test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20276
20277			   if test "x${CXX}" != "x"
20278then :
20279  for ac_prog in ${CXX}_r
20280do
20281  # Extract the first word of "$ac_prog", so it can be a program name with args.
20282set dummy $ac_prog; ac_word=$2
20283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20284printf %s "checking for $ac_word... " >&6; }
20285if test ${ac_cv_prog_PTHREAD_CXX+y}
20286then :
20287  printf %s "(cached) " >&6
20288else $as_nop
20289  if test -n "$PTHREAD_CXX"; then
20290  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
20291else
20292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20293for as_dir in $PATH
20294do
20295  IFS=$as_save_IFS
20296  case $as_dir in #(((
20297    '') as_dir=./ ;;
20298    */) ;;
20299    *) as_dir=$as_dir/ ;;
20300  esac
20301    for ac_exec_ext in '' $ac_executable_extensions; do
20302  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20303    ac_cv_prog_PTHREAD_CXX="$ac_prog"
20304    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20305    break 2
20306  fi
20307done
20308  done
20309IFS=$as_save_IFS
20310
20311fi
20312fi
20313PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
20314if test -n "$PTHREAD_CXX"; then
20315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
20316printf "%s\n" "$PTHREAD_CXX" >&6; }
20317else
20318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20319printf "%s\n" "no" >&6; }
20320fi
20321
20322
20323  test -n "$PTHREAD_CXX" && break
20324done
20325test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
20326
20327fi
20328
20329                      ;;
20330esac
20331                     ;; #(
20332  *) :
20333     ;;
20334esac
20335                ;;
20336            esac
20337        fi
20338fi
20339
20340test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20341test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
20342
20343
20344
20345
20346
20347
20348# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20349if test "x$ax_pthread_ok" = "xyes"; then
20350
20351printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20352
20353        :
20354else
20355        ax_pthread_ok=no
20356        as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
20357fi
20358ac_ext=c
20359ac_cpp='$CPP $CPPFLAGS'
20360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20362ac_compiler_gnu=$ac_cv_c_compiler_gnu
20363
20364
20365
20366ac_ext=cpp
20367ac_cpp='$CXXCPP $CPPFLAGS'
20368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20371
20372
20373# On GNU/Linux, g++ always defines the preprocessor macro _GNU_SOURCE
20374# because libstdc++ requires it.  This in turn selects the GNU version of
20375# strerror_r(), which returns char* and may not use the passed buffer
20376# (see https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.predefined).
20377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
20378printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
20379if test ${ac_cv_cxx_undeclared_builtin_options+y}
20380then :
20381  printf %s "(cached) " >&6
20382else $as_nop
20383  ac_save_CFLAGS=$CFLAGS
20384   ac_cv_cxx_undeclared_builtin_options='cannot detect'
20385   for ac_arg in '' -fno-builtin; do
20386     CFLAGS="$ac_save_CFLAGS $ac_arg"
20387     # This test program should *not* compile successfully.
20388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20389/* end confdefs.h.  */
20390
20391int
20392main (void)
20393{
20394(void) strchr;
20395  ;
20396  return 0;
20397}
20398_ACEOF
20399if ac_fn_cxx_try_compile "$LINENO"
20400then :
20401
20402else $as_nop
20403  # This test program should compile successfully.
20404        # No library function is consistently available on
20405        # freestanding implementations, so test against a dummy
20406        # declaration.  Include always-available headers on the
20407        # off chance that they somehow elicit warnings.
20408        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409/* end confdefs.h.  */
20410#include <float.h>
20411#include <limits.h>
20412#include <stdarg.h>
20413#include <stddef.h>
20414extern void ac_decl (int, char *);
20415
20416int
20417main (void)
20418{
20419(void) ac_decl (0, (char *) 0);
20420  (void) ac_decl;
20421
20422  ;
20423  return 0;
20424}
20425_ACEOF
20426if ac_fn_cxx_try_compile "$LINENO"
20427then :
20428  if test x"$ac_arg" = x
20429then :
20430  ac_cv_cxx_undeclared_builtin_options='none needed'
20431else $as_nop
20432  ac_cv_cxx_undeclared_builtin_options=$ac_arg
20433fi
20434          break
20435fi
20436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20437fi
20438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20439    done
20440    CFLAGS=$ac_save_CFLAGS
20441
20442fi
20443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
20444printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
20445  case $ac_cv_cxx_undeclared_builtin_options in #(
20446  'cannot detect') :
20447    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20448printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20449as_fn_error $? "cannot make $CXX report undeclared builtins
20450See \`config.log' for more details" "$LINENO" 5; } ;; #(
20451  'none needed') :
20452    ac_cxx_undeclared_builtin_options='' ;; #(
20453  *) :
20454    ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
20455esac
20456
20457ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
20458if test "x$ac_cv_have_decl_strerror_r" = xyes
20459then :
20460  ac_have_decl=1
20461else $as_nop
20462  ac_have_decl=0
20463fi
20464printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
20465
20466
20467if test $ac_cv_have_decl_strerror_r = yes; then
20468  # For backward compatibility's sake, define HAVE_STRERROR_R.
20469  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
20470  # as AC_CHECK_DECLS_ONCE.)
20471
20472printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
20473
20474fi
20475
20476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20477printf %s "checking whether strerror_r returns char *... " >&6; }
20478if test ${ac_cv_func_strerror_r_char_p+y}
20479then :
20480  printf %s "(cached) " >&6
20481else $as_nop
20482
20483    ac_cv_func_strerror_r_char_p=no
20484    if test $ac_cv_have_decl_strerror_r = yes; then
20485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486/* end confdefs.h.  */
20487#include <string.h>
20488int
20489main (void)
20490{
20491
20492	  char buf[100];
20493	  char x = *strerror_r (0, buf, sizeof buf);
20494	  char *p = strerror_r (0, buf, sizeof buf);
20495	  return !p || x;
20496
20497  ;
20498  return 0;
20499}
20500_ACEOF
20501if ac_fn_cxx_try_compile "$LINENO"
20502then :
20503  ac_cv_func_strerror_r_char_p=yes
20504fi
20505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20506
20507    fi
20508
20509fi
20510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20511printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
20512if test $ac_cv_func_strerror_r_char_p = yes; then
20513
20514printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20515
20516fi
20517
20518
20519# C++ requirements
20520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
20521printf %s "checking whether the compiler implements namespaces... " >&6; }
20522if test ${ac_cv_cxx_namespaces+y}
20523then :
20524  printf %s "(cached) " >&6
20525else $as_nop
20526
20527 ac_ext=cpp
20528ac_cpp='$CXXCPP $CPPFLAGS'
20529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534/* end confdefs.h.  */
20535namespace Outer { namespace Inner { int i = 0; }}
20536int
20537main (void)
20538{
20539using namespace Outer::Inner; return i;
20540  ;
20541  return 0;
20542}
20543_ACEOF
20544if ac_fn_cxx_try_compile "$LINENO"
20545then :
20546  ac_cv_cxx_namespaces=yes
20547else $as_nop
20548  ac_cv_cxx_namespaces=no
20549fi
20550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20551 ac_ext=cpp
20552ac_cpp='$CXXCPP $CPPFLAGS'
20553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20556
20557
20558fi
20559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
20560printf "%s\n" "$ac_cv_cxx_namespaces" >&6; }
20561if test "$ac_cv_cxx_namespaces" = yes; then
20562
20563printf "%s\n" "#define HAVE_NAMESPACES 1" >>confdefs.h
20564
20565fi
20566
20567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
20568printf %s "checking whether the compiler supports Standard Template Library... " >&6; }
20569if test ${ac_cv_cxx_have_stl+y}
20570then :
20571  printf %s "(cached) " >&6
20572else $as_nop
20573
20574 ac_ext=cpp
20575ac_cpp='$CXXCPP $CPPFLAGS'
20576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20579
20580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20581/* end confdefs.h.  */
20582#include <list>
20583#include <deque>
20584#ifdef HAVE_NAMESPACES
20585using namespace std;
20586#endif
20587int
20588main (void)
20589{
20590list<int> x; x.push_back(5);
20591list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
20592  ;
20593  return 0;
20594}
20595_ACEOF
20596if ac_fn_cxx_try_compile "$LINENO"
20597then :
20598  ac_cv_cxx_have_stl=yes
20599else $as_nop
20600  ac_cv_cxx_have_stl=no
20601fi
20602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20603 ac_ext=cpp
20604ac_cpp='$CXXCPP $CPPFLAGS'
20605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20608
20609
20610fi
20611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
20612printf "%s\n" "$ac_cv_cxx_have_stl" >&6; }
20613if test "x_$ac_cv_cxx_have_stl" != x_yes; then
20614  as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
20615fi
20616
20617
20618# Boost
20619
20620echo "$as_me: this is boost.m4 serial 24" >&5
20621boost_save_IFS=$IFS
20622boost_version_req=
20623IFS=.
20624set x $boost_version_req 0 0 0
20625IFS=$boost_save_IFS
20626shift
20627boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
20628boost_version_req_string=$1.$2.$3
20629
20630# Check whether --with-boost was given.
20631if test ${with_boost+y}
20632then :
20633  withval=$with_boost;
20634fi
20635# If BOOST_ROOT is set and the user has not provided a value to
20636# --with-boost, then treat BOOST_ROOT as if it the user supplied it.
20637if test x"$BOOST_ROOT" != x; then
20638  if test x"$with_boost" = x; then
20639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
20640printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
20641    with_boost=$BOOST_ROOT
20642  else
20643    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
20644printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
20645  fi
20646fi
20647DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
20648boost_save_CPPFLAGS=$CPPFLAGS
20649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
20650printf %s "checking for Boost headers version >= $boost_version_req_string... " >&6; }
20651if test ${boost_cv_inc_path+y}
20652then :
20653  printf %s "(cached) " >&6
20654else $as_nop
20655  boost_cv_inc_path=no
20656ac_ext=cpp
20657ac_cpp='$CXXCPP $CPPFLAGS'
20658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20662/* end confdefs.h.  */
20663#include <boost/version.hpp>
20664#if !defined BOOST_VERSION
20665# error BOOST_VERSION is not defined
20666#elif BOOST_VERSION < $boost_version_req
20667# error Boost headers version < $boost_version_req
20668#endif
20669
20670int
20671main (void)
20672{
20673
20674  ;
20675  return 0;
20676}
20677_ACEOF
20678    # If the user provided a value to --with-boost, use it and only it.
20679    case $with_boost in #(
20680      ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
20681                 /usr/include C:/Boost/include;; #(
20682      *)      set x "$with_boost/include" "$with_boost";;
20683    esac
20684    shift
20685    for boost_dir
20686    do
20687    # Without --layout=system, Boost (or at least some versions) installs
20688    # itself in <prefix>/include/boost-<version>.  This inner loop helps to
20689    # find headers in such directories.
20690    #
20691    # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
20692    # order followed by ${boost_dir}.  The final '.' is a sentinel for
20693    # searching $boost_dir" itself.  Entries are whitespace separated.
20694    #
20695    # I didn't indent this loop on purpose (to avoid over-indented code)
20696    boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
20697        && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
20698        && echo .`
20699    for boost_inc in $boost_layout_system_search_list
20700    do
20701      if test x"$boost_inc" != x.; then
20702        boost_inc="$boost_dir/$boost_inc"
20703      else
20704        boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
20705      fi
20706      if test x"$boost_inc" != x; then
20707        # We are going to check whether the version of Boost installed
20708        # in $boost_inc is usable by running a compilation that
20709        # #includes it.  But if we pass a -I/some/path in which Boost
20710        # is not installed, the compiler will just skip this -I and
20711        # use other locations (either from CPPFLAGS, or from its list
20712        # of system include directories).  As a result we would use
20713        # header installed on the machine instead of the /some/path
20714        # specified by the user.  So in that precise case (trying
20715        # $boost_inc), make sure the version.hpp exists.
20716        #
20717        # Use test -e as there can be symlinks.
20718        test -e "$boost_inc/boost/version.hpp" || continue
20719        CPPFLAGS="$CPPFLAGS -I$boost_inc"
20720      fi
20721      if ac_fn_cxx_try_compile "$LINENO"
20722then :
20723  boost_cv_inc_path=yes
20724else $as_nop
20725  boost_cv_version=no
20726fi
20727rm -f core conftest.err conftest.$ac_objext conftest.beam
20728      if test x"$boost_cv_inc_path" = xyes; then
20729        if test x"$boost_inc" != x; then
20730          boost_cv_inc_path=$boost_inc
20731        fi
20732        break 2
20733      fi
20734    done
20735    done
20736ac_ext=cpp
20737ac_cpp='$CXXCPP $CPPFLAGS'
20738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742fi
20743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
20744printf "%s\n" "$boost_cv_inc_path" >&6; }
20745    case $boost_cv_inc_path in #(
20746      no)
20747        boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
20748        as_fn_error $? "$boost_errmsg" "$LINENO" 5
20749
20750        ;;#(
20751      yes)
20752        BOOST_CPPFLAGS=
20753        ;;#(
20754      *)
20755        BOOST_CPPFLAGS="-I$boost_cv_inc_path"
20756        ;;
20757    esac
20758  if test x"$boost_cv_inc_path" != xno; then
20759
20760printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h
20761
20762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
20763printf %s "checking for Boost's header version... " >&6; }
20764if test ${boost_cv_lib_version+y}
20765then :
20766  printf %s "(cached) " >&6
20767else $as_nop
20768       ac_ext=cpp
20769ac_cpp='$CXXCPP $CPPFLAGS'
20770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20774/* end confdefs.h.  */
20775#include <boost/version.hpp>
20776boost_lib_version = BOOST_LIB_VERSION
20777_ACEOF
20778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20779  grep -v '#' |
20780  tr -d '\r' |
20781  tr -s '\n' ' ' |
20782  $SED -n -e "/^boost_lib_version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1
20783then :
20784  boost_cv_lib_version=`cat conftest.i`
20785fi
20786rm -rf conftest*
20787ac_ext=cpp
20788ac_cpp='$CXXCPP $CPPFLAGS'
20789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20792
20793fi
20794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
20795printf "%s\n" "$boost_cv_lib_version" >&6; }
20796    # e.g. "134" for 1_34_1 or "135" for 1_35
20797    boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
20798    case $boost_major_version in #(
20799      '' | *[!0-9]*)
20800        as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
20801        ;;
20802    esac
20803fi
20804CPPFLAGS=$boost_save_CPPFLAGS
20805
20806if test x"$boost_cv_inc_path" = xno; then
20807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
20808printf "%s\n" "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
20809else
20810ac_ext=cpp
20811ac_cpp='$CXXCPP $CPPFLAGS'
20812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20815boost_save_CPPFLAGS=$CPPFLAGS
20816CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20817ac_fn_cxx_check_header_compile "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
20818if test "x$ac_cv_header_boost_bind_hpp" = xyes
20819then :
20820
20821printf "%s\n" "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
20822
20823else $as_nop
20824  as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5
20825fi
20826
20827CPPFLAGS=$boost_save_CPPFLAGS
20828ac_ext=cpp
20829ac_cpp='$CXXCPP $CPPFLAGS'
20830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20833fi
20834
20835
20836if test x"$boost_cv_inc_path" = xno; then
20837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/lambda/lambda.hpp" >&5
20838printf "%s\n" "$as_me: Boost not available, not searching for boost/lambda/lambda.hpp" >&6;}
20839else
20840ac_ext=cpp
20841ac_cpp='$CXXCPP $CPPFLAGS'
20842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20845boost_save_CPPFLAGS=$CPPFLAGS
20846CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20847ac_fn_cxx_check_header_compile "$LINENO" "boost/lambda/lambda.hpp" "ac_cv_header_boost_lambda_lambda_hpp" "$ac_includes_default"
20848if test "x$ac_cv_header_boost_lambda_lambda_hpp" = xyes
20849then :
20850
20851printf "%s\n" "#define HAVE_BOOST_LAMBDA_LAMBDA_HPP 1" >>confdefs.h
20852
20853else $as_nop
20854  as_fn_error $? "cannot find boost/lambda/lambda.hpp" "$LINENO" 5
20855fi
20856
20857CPPFLAGS=$boost_save_CPPFLAGS
20858ac_ext=cpp
20859ac_cpp='$CXXCPP $CPPFLAGS'
20860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20863fi
20864
20865
20866if test x"$boost_cv_inc_path" = xno; then
20867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_deque.hpp" >&5
20868printf "%s\n" "$as_me: Boost not available, not searching for boost/ptr_container/ptr_deque.hpp" >&6;}
20869else
20870ac_ext=cpp
20871ac_cpp='$CXXCPP $CPPFLAGS'
20872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20875boost_save_CPPFLAGS=$CPPFLAGS
20876CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20877ac_fn_cxx_check_header_compile "$LINENO" "boost/ptr_container/ptr_deque.hpp" "ac_cv_header_boost_ptr_container_ptr_deque_hpp" "$ac_includes_default"
20878if test "x$ac_cv_header_boost_ptr_container_ptr_deque_hpp" = xyes
20879then :
20880
20881printf "%s\n" "#define HAVE_BOOST_PTR_CONTAINER_PTR_DEQUE_HPP 1" >>confdefs.h
20882
20883else $as_nop
20884  as_fn_error $? "cannot find boost/ptr_container/ptr_deque.hpp" "$LINENO" 5
20885fi
20886
20887CPPFLAGS=$boost_save_CPPFLAGS
20888ac_ext=cpp
20889ac_cpp='$CXXCPP $CPPFLAGS'
20890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20893fi
20894
20895if test x"$boost_cv_inc_path" = xno; then
20896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_list.hpp" >&5
20897printf "%s\n" "$as_me: Boost not available, not searching for boost/ptr_container/ptr_list.hpp" >&6;}
20898else
20899ac_ext=cpp
20900ac_cpp='$CXXCPP $CPPFLAGS'
20901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20904boost_save_CPPFLAGS=$CPPFLAGS
20905CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20906ac_fn_cxx_check_header_compile "$LINENO" "boost/ptr_container/ptr_list.hpp" "ac_cv_header_boost_ptr_container_ptr_list_hpp" "$ac_includes_default"
20907if test "x$ac_cv_header_boost_ptr_container_ptr_list_hpp" = xyes
20908then :
20909
20910printf "%s\n" "#define HAVE_BOOST_PTR_CONTAINER_PTR_LIST_HPP 1" >>confdefs.h
20911
20912else $as_nop
20913  as_fn_error $? "cannot find boost/ptr_container/ptr_list.hpp" "$LINENO" 5
20914fi
20915
20916CPPFLAGS=$boost_save_CPPFLAGS
20917ac_ext=cpp
20918ac_cpp='$CXXCPP $CPPFLAGS'
20919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20922fi
20923
20924if test x"$boost_cv_inc_path" = xno; then
20925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_vector.hpp" >&5
20926printf "%s\n" "$as_me: Boost not available, not searching for boost/ptr_container/ptr_vector.hpp" >&6;}
20927else
20928ac_ext=cpp
20929ac_cpp='$CXXCPP $CPPFLAGS'
20930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933boost_save_CPPFLAGS=$CPPFLAGS
20934CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20935ac_fn_cxx_check_header_compile "$LINENO" "boost/ptr_container/ptr_vector.hpp" "ac_cv_header_boost_ptr_container_ptr_vector_hpp" "$ac_includes_default"
20936if test "x$ac_cv_header_boost_ptr_container_ptr_vector_hpp" = xyes
20937then :
20938
20939printf "%s\n" "#define HAVE_BOOST_PTR_CONTAINER_PTR_VECTOR_HPP 1" >>confdefs.h
20940
20941else $as_nop
20942  as_fn_error $? "cannot find boost/ptr_container/ptr_vector.hpp" "$LINENO" 5
20943fi
20944
20945CPPFLAGS=$boost_save_CPPFLAGS
20946ac_ext=cpp
20947ac_cpp='$CXXCPP $CPPFLAGS'
20948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951fi
20952
20953if test x"$boost_cv_inc_path" = xno; then
20954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_array.hpp" >&5
20955printf "%s\n" "$as_me: Boost not available, not searching for boost/ptr_container/ptr_array.hpp" >&6;}
20956else
20957ac_ext=cpp
20958ac_cpp='$CXXCPP $CPPFLAGS'
20959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20962boost_save_CPPFLAGS=$CPPFLAGS
20963CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20964ac_fn_cxx_check_header_compile "$LINENO" "boost/ptr_container/ptr_array.hpp" "ac_cv_header_boost_ptr_container_ptr_array_hpp" "$ac_includes_default"
20965if test "x$ac_cv_header_boost_ptr_container_ptr_array_hpp" = xyes
20966then :
20967
20968printf "%s\n" "#define HAVE_BOOST_PTR_CONTAINER_PTR_ARRAY_HPP 1" >>confdefs.h
20969
20970else $as_nop
20971  as_fn_error $? "cannot find boost/ptr_container/ptr_array.hpp" "$LINENO" 5
20972fi
20973
20974CPPFLAGS=$boost_save_CPPFLAGS
20975ac_ext=cpp
20976ac_cpp='$CXXCPP $CPPFLAGS'
20977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20980fi
20981
20982if test x"$boost_cv_inc_path" = xno; then
20983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_set.hpp" >&5
20984printf "%s\n" "$as_me: Boost not available, not searching for boost/ptr_container/ptr_set.hpp" >&6;}
20985else
20986ac_ext=cpp
20987ac_cpp='$CXXCPP $CPPFLAGS'
20988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20991boost_save_CPPFLAGS=$CPPFLAGS
20992CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20993ac_fn_cxx_check_header_compile "$LINENO" "boost/ptr_container/ptr_set.hpp" "ac_cv_header_boost_ptr_container_ptr_set_hpp" "$ac_includes_default"
20994if test "x$ac_cv_header_boost_ptr_container_ptr_set_hpp" = xyes
20995then :
20996
20997printf "%s\n" "#define HAVE_BOOST_PTR_CONTAINER_PTR_SET_HPP 1" >>confdefs.h
20998
20999else $as_nop
21000  as_fn_error $? "cannot find boost/ptr_container/ptr_set.hpp" "$LINENO" 5
21001fi
21002
21003CPPFLAGS=$boost_save_CPPFLAGS
21004ac_ext=cpp
21005ac_cpp='$CXXCPP $CPPFLAGS'
21006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21009fi
21010
21011if test x"$boost_cv_inc_path" = xno; then
21012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_map.hpp" >&5
21013printf "%s\n" "$as_me: Boost not available, not searching for boost/ptr_container/ptr_map.hpp" >&6;}
21014else
21015ac_ext=cpp
21016ac_cpp='$CXXCPP $CPPFLAGS'
21017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21020boost_save_CPPFLAGS=$CPPFLAGS
21021CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21022ac_fn_cxx_check_header_compile "$LINENO" "boost/ptr_container/ptr_map.hpp" "ac_cv_header_boost_ptr_container_ptr_map_hpp" "$ac_includes_default"
21023if test "x$ac_cv_header_boost_ptr_container_ptr_map_hpp" = xyes
21024then :
21025
21026printf "%s\n" "#define HAVE_BOOST_PTR_CONTAINER_PTR_MAP_HPP 1" >>confdefs.h
21027
21028else $as_nop
21029  as_fn_error $? "cannot find boost/ptr_container/ptr_map.hpp" "$LINENO" 5
21030fi
21031
21032CPPFLAGS=$boost_save_CPPFLAGS
21033ac_ext=cpp
21034ac_cpp='$CXXCPP $CPPFLAGS'
21035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21038fi
21039
21040
21041
21042if test x"$boost_cv_inc_path" = xno; then
21043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/scoped_ptr.hpp" >&5
21044printf "%s\n" "$as_me: Boost not available, not searching for boost/scoped_ptr.hpp" >&6;}
21045else
21046ac_ext=cpp
21047ac_cpp='$CXXCPP $CPPFLAGS'
21048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21051boost_save_CPPFLAGS=$CPPFLAGS
21052CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21053ac_fn_cxx_check_header_compile "$LINENO" "boost/scoped_ptr.hpp" "ac_cv_header_boost_scoped_ptr_hpp" "$ac_includes_default"
21054if test "x$ac_cv_header_boost_scoped_ptr_hpp" = xyes
21055then :
21056
21057printf "%s\n" "#define HAVE_BOOST_SCOPED_PTR_HPP 1" >>confdefs.h
21058
21059else $as_nop
21060  as_fn_error $? "cannot find boost/scoped_ptr.hpp" "$LINENO" 5
21061fi
21062
21063CPPFLAGS=$boost_save_CPPFLAGS
21064ac_ext=cpp
21065ac_cpp='$CXXCPP $CPPFLAGS'
21066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21069fi
21070
21071if test x"$boost_cv_inc_path" = xno; then
21072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/shared_ptr.hpp" >&5
21073printf "%s\n" "$as_me: Boost not available, not searching for boost/shared_ptr.hpp" >&6;}
21074else
21075ac_ext=cpp
21076ac_cpp='$CXXCPP $CPPFLAGS'
21077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21080boost_save_CPPFLAGS=$CPPFLAGS
21081CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21082ac_fn_cxx_check_header_compile "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
21083if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes
21084then :
21085
21086printf "%s\n" "#define HAVE_BOOST_SHARED_PTR_HPP 1" >>confdefs.h
21087
21088else $as_nop
21089  as_fn_error $? "cannot find boost/shared_ptr.hpp" "$LINENO" 5
21090fi
21091
21092CPPFLAGS=$boost_save_CPPFLAGS
21093ac_ext=cpp
21094ac_cpp='$CXXCPP $CPPFLAGS'
21095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21098fi
21099
21100
21101
21102if test x"$boost_cv_inc_path" = xno; then
21103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/algorithm/string.hpp" >&5
21104printf "%s\n" "$as_me: Boost not available, not searching for boost/algorithm/string.hpp" >&6;}
21105else
21106ac_ext=cpp
21107ac_cpp='$CXXCPP $CPPFLAGS'
21108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111boost_save_CPPFLAGS=$CPPFLAGS
21112CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21113ac_fn_cxx_check_header_compile "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
21114if test "x$ac_cv_header_boost_algorithm_string_hpp" = xyes
21115then :
21116
21117printf "%s\n" "#define HAVE_BOOST_ALGORITHM_STRING_HPP 1" >>confdefs.h
21118
21119else $as_nop
21120  as_fn_error $? "cannot find boost/algorithm/string.hpp" "$LINENO" 5
21121fi
21122
21123CPPFLAGS=$boost_save_CPPFLAGS
21124ac_ext=cpp
21125ac_cpp='$CXXCPP $CPPFLAGS'
21126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21129fi
21130
21131
21132
21133if test x"$boost_cv_inc_path" = xno; then
21134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/tuple/tuple.hpp" >&5
21135printf "%s\n" "$as_me: Boost not available, not searching for boost/tuple/tuple.hpp" >&6;}
21136else
21137ac_ext=cpp
21138ac_cpp='$CXXCPP $CPPFLAGS'
21139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21142boost_save_CPPFLAGS=$CPPFLAGS
21143CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21144ac_fn_cxx_check_header_compile "$LINENO" "boost/tuple/tuple.hpp" "ac_cv_header_boost_tuple_tuple_hpp" "$ac_includes_default"
21145if test "x$ac_cv_header_boost_tuple_tuple_hpp" = xyes
21146then :
21147
21148printf "%s\n" "#define HAVE_BOOST_TUPLE_TUPLE_HPP 1" >>confdefs.h
21149
21150else $as_nop
21151  as_fn_error $? "cannot find boost/tuple/tuple.hpp" "$LINENO" 5
21152fi
21153
21154CPPFLAGS=$boost_save_CPPFLAGS
21155ac_ext=cpp
21156ac_cpp='$CXXCPP $CPPFLAGS'
21157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21160fi
21161
21162
21163
21164# Thank you Solaris, really.
21165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctime_r" >&5
21166printf %s "checking for ctime_r... " >&6; }
21167if test -z "$ac_cv_ctime_args"; then
21168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169/* end confdefs.h.  */
21170#include <time.h>
21171int
21172main (void)
21173{
21174time_t clock; char buf[26]; ctime_r(&clock, buf);
21175  ;
21176  return 0;
21177}
21178_ACEOF
21179if ac_fn_cxx_try_compile "$LINENO"
21180then :
21181  ac_cv_ctime_args=2
21182fi
21183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21184
21185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186/* end confdefs.h.  */
21187#include <time.h>
21188int
21189main (void)
21190{
21191time_t clock; char buf[26]; ctime_r(&clock, buf, 26);
21192  ;
21193  return 0;
21194}
21195_ACEOF
21196if ac_fn_cxx_try_compile "$LINENO"
21197then :
21198  ac_cv_ctime_args=3
21199fi
21200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21201fi
21202if test -z "$ac_cv_ctime_args"; then
21203    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204printf "%s\n" "no" >&6; }
21205else
21206    if test "$ac_cv_ctime_args" = 2; then
21207
21208printf "%s\n" "#define HAVE_CTIME_R_2 1" >>confdefs.h
21209
21210    elif test "$ac_cv_ctime_args" = 3; then
21211
21212printf "%s\n" "#define HAVE_CTIME_R_3 1" >>confdefs.h
21213
21214    fi
21215    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
21216printf "%s\n" "yes, and it takes $ac_cv_ctime_args arguments" >&6; }
21217fi
21218
21219
21220
21221
21222
21223
21224
21225
21226if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21227	if test -n "$ac_tool_prefix"; then
21228  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21229set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21231printf %s "checking for $ac_word... " >&6; }
21232if test ${ac_cv_path_PKG_CONFIG+y}
21233then :
21234  printf %s "(cached) " >&6
21235else $as_nop
21236  case $PKG_CONFIG in
21237  [\\/]* | ?:[\\/]*)
21238  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21239  ;;
21240  *)
21241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21242for as_dir in $PATH
21243do
21244  IFS=$as_save_IFS
21245  case $as_dir in #(((
21246    '') as_dir=./ ;;
21247    */) ;;
21248    *) as_dir=$as_dir/ ;;
21249  esac
21250    for ac_exec_ext in '' $ac_executable_extensions; do
21251  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21252    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21253    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21254    break 2
21255  fi
21256done
21257  done
21258IFS=$as_save_IFS
21259
21260  ;;
21261esac
21262fi
21263PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21264if test -n "$PKG_CONFIG"; then
21265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21266printf "%s\n" "$PKG_CONFIG" >&6; }
21267else
21268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21269printf "%s\n" "no" >&6; }
21270fi
21271
21272
21273fi
21274if test -z "$ac_cv_path_PKG_CONFIG"; then
21275  ac_pt_PKG_CONFIG=$PKG_CONFIG
21276  # Extract the first word of "pkg-config", so it can be a program name with args.
21277set dummy pkg-config; ac_word=$2
21278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21279printf %s "checking for $ac_word... " >&6; }
21280if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21281then :
21282  printf %s "(cached) " >&6
21283else $as_nop
21284  case $ac_pt_PKG_CONFIG in
21285  [\\/]* | ?:[\\/]*)
21286  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21287  ;;
21288  *)
21289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21290for as_dir in $PATH
21291do
21292  IFS=$as_save_IFS
21293  case $as_dir in #(((
21294    '') as_dir=./ ;;
21295    */) ;;
21296    *) as_dir=$as_dir/ ;;
21297  esac
21298    for ac_exec_ext in '' $ac_executable_extensions; do
21299  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21300    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21301    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21302    break 2
21303  fi
21304done
21305  done
21306IFS=$as_save_IFS
21307
21308  ;;
21309esac
21310fi
21311ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21312if test -n "$ac_pt_PKG_CONFIG"; then
21313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21314printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21315else
21316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21317printf "%s\n" "no" >&6; }
21318fi
21319
21320  if test "x$ac_pt_PKG_CONFIG" = x; then
21321    PKG_CONFIG=""
21322  else
21323    case $cross_compiling:$ac_tool_warned in
21324yes:)
21325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21326printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21327ac_tool_warned=yes ;;
21328esac
21329    PKG_CONFIG=$ac_pt_PKG_CONFIG
21330  fi
21331else
21332  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21333fi
21334
21335fi
21336if test -n "$PKG_CONFIG"; then
21337	_pkg_min_version=0.9.0
21338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21339printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21340	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21342printf "%s\n" "yes" >&6; }
21343	else
21344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21345printf "%s\n" "no" >&6; }
21346		PKG_CONFIG=""
21347	fi
21348fi
21349
21350
21351
21352
21353
21354pkg_failed=no
21355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  log4shib" >&5
21356printf %s "checking for  log4shib... " >&6; }
21357
21358if test -n "$log4shib_CFLAGS"; then
21359    pkg_cv_log4shib_CFLAGS="$log4shib_CFLAGS"
21360 elif test -n "$PKG_CONFIG"; then
21361    if test -n "$PKG_CONFIG" && \
21362    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" log4shib\""; } >&5
21363  ($PKG_CONFIG --exists --print-errors " log4shib") 2>&5
21364  ac_status=$?
21365  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21366  test $ac_status = 0; }; then
21367  pkg_cv_log4shib_CFLAGS=`$PKG_CONFIG --cflags " log4shib" 2>/dev/null`
21368		      test "x$?" != "x0" && pkg_failed=yes
21369else
21370  pkg_failed=yes
21371fi
21372 else
21373    pkg_failed=untried
21374fi
21375if test -n "$log4shib_LIBS"; then
21376    pkg_cv_log4shib_LIBS="$log4shib_LIBS"
21377 elif test -n "$PKG_CONFIG"; then
21378    if test -n "$PKG_CONFIG" && \
21379    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" log4shib\""; } >&5
21380  ($PKG_CONFIG --exists --print-errors " log4shib") 2>&5
21381  ac_status=$?
21382  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21383  test $ac_status = 0; }; then
21384  pkg_cv_log4shib_LIBS=`$PKG_CONFIG --libs " log4shib" 2>/dev/null`
21385		      test "x$?" != "x0" && pkg_failed=yes
21386else
21387  pkg_failed=yes
21388fi
21389 else
21390    pkg_failed=untried
21391fi
21392
21393
21394
21395if test $pkg_failed = yes; then
21396        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21397printf "%s\n" "no" >&6; }
21398
21399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21400        _pkg_short_errors_supported=yes
21401else
21402        _pkg_short_errors_supported=no
21403fi
21404        if test $_pkg_short_errors_supported = yes; then
21405	        log4shib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " log4shib" 2>&1`
21406        else
21407	        log4shib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " log4shib" 2>&1`
21408        fi
21409	# Put the nasty error message in config.log where it belongs
21410	echo "$log4shib_PKG_ERRORS" >&5
21411
21412
21413
21414
21415
21416
21417pkg_failed=no
21418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  log4cpp" >&5
21419printf %s "checking for  log4cpp... " >&6; }
21420
21421if test -n "$log4cpp_CFLAGS"; then
21422    pkg_cv_log4cpp_CFLAGS="$log4cpp_CFLAGS"
21423 elif test -n "$PKG_CONFIG"; then
21424    if test -n "$PKG_CONFIG" && \
21425    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" log4cpp\""; } >&5
21426  ($PKG_CONFIG --exists --print-errors " log4cpp") 2>&5
21427  ac_status=$?
21428  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21429  test $ac_status = 0; }; then
21430  pkg_cv_log4cpp_CFLAGS=`$PKG_CONFIG --cflags " log4cpp" 2>/dev/null`
21431		      test "x$?" != "x0" && pkg_failed=yes
21432else
21433  pkg_failed=yes
21434fi
21435 else
21436    pkg_failed=untried
21437fi
21438if test -n "$log4cpp_LIBS"; then
21439    pkg_cv_log4cpp_LIBS="$log4cpp_LIBS"
21440 elif test -n "$PKG_CONFIG"; then
21441    if test -n "$PKG_CONFIG" && \
21442    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" log4cpp\""; } >&5
21443  ($PKG_CONFIG --exists --print-errors " log4cpp") 2>&5
21444  ac_status=$?
21445  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21446  test $ac_status = 0; }; then
21447  pkg_cv_log4cpp_LIBS=`$PKG_CONFIG --libs " log4cpp" 2>/dev/null`
21448		      test "x$?" != "x0" && pkg_failed=yes
21449else
21450  pkg_failed=yes
21451fi
21452 else
21453    pkg_failed=untried
21454fi
21455
21456
21457
21458if test $pkg_failed = yes; then
21459        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21460printf "%s\n" "no" >&6; }
21461
21462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21463        _pkg_short_errors_supported=yes
21464else
21465        _pkg_short_errors_supported=no
21466fi
21467        if test $_pkg_short_errors_supported = yes; then
21468	        log4cpp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " log4cpp" 2>&1`
21469        else
21470	        log4cpp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " log4cpp" 2>&1`
21471        fi
21472	# Put the nasty error message in config.log where it belongs
21473	echo "$log4cpp_PKG_ERRORS" >&5
21474
21475	as_fn_error $? "Package requirements ( log4cpp) were not met:
21476
21477$log4cpp_PKG_ERRORS
21478
21479Consider adjusting the PKG_CONFIG_PATH environment variable if you
21480installed software in a non-standard prefix.
21481
21482Alternatively, you may set the environment variables log4cpp_CFLAGS
21483and log4cpp_LIBS to avoid the need to call pkg-config.
21484See the pkg-config man page for more details." "$LINENO" 5
21485elif test $pkg_failed = untried; then
21486        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21487printf "%s\n" "no" >&6; }
21488	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21489printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21490as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21491is in your PATH or set the PKG_CONFIG environment variable to the full
21492path to pkg-config.
21493
21494Alternatively, you may set the environment variables log4cpp_CFLAGS
21495and log4cpp_LIBS to avoid the need to call pkg-config.
21496See the pkg-config man page for more details.
21497
21498To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21499See \`config.log' for more details" "$LINENO" 5; }
21500else
21501	log4cpp_CFLAGS=$pkg_cv_log4cpp_CFLAGS
21502	log4cpp_LIBS=$pkg_cv_log4cpp_LIBS
21503        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21504printf "%s\n" "yes" >&6; }
21505
21506        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
21507        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE log4cpp"
21508
21509printf "%s\n" "#define SHIBSP_LOG4CPP 1" >>confdefs.h
21510
21511fi
21512
21513    # Substitute output.
21514
21515
21516
21517elif test $pkg_failed = untried; then
21518        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519printf "%s\n" "no" >&6; }
21520
21521
21522
21523
21524
21525pkg_failed=no
21526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  log4cpp" >&5
21527printf %s "checking for  log4cpp... " >&6; }
21528
21529if test -n "$log4cpp_CFLAGS"; then
21530    pkg_cv_log4cpp_CFLAGS="$log4cpp_CFLAGS"
21531 elif test -n "$PKG_CONFIG"; then
21532    if test -n "$PKG_CONFIG" && \
21533    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" log4cpp\""; } >&5
21534  ($PKG_CONFIG --exists --print-errors " log4cpp") 2>&5
21535  ac_status=$?
21536  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21537  test $ac_status = 0; }; then
21538  pkg_cv_log4cpp_CFLAGS=`$PKG_CONFIG --cflags " log4cpp" 2>/dev/null`
21539		      test "x$?" != "x0" && pkg_failed=yes
21540else
21541  pkg_failed=yes
21542fi
21543 else
21544    pkg_failed=untried
21545fi
21546if test -n "$log4cpp_LIBS"; then
21547    pkg_cv_log4cpp_LIBS="$log4cpp_LIBS"
21548 elif test -n "$PKG_CONFIG"; then
21549    if test -n "$PKG_CONFIG" && \
21550    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" log4cpp\""; } >&5
21551  ($PKG_CONFIG --exists --print-errors " log4cpp") 2>&5
21552  ac_status=$?
21553  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21554  test $ac_status = 0; }; then
21555  pkg_cv_log4cpp_LIBS=`$PKG_CONFIG --libs " log4cpp" 2>/dev/null`
21556		      test "x$?" != "x0" && pkg_failed=yes
21557else
21558  pkg_failed=yes
21559fi
21560 else
21561    pkg_failed=untried
21562fi
21563
21564
21565
21566if test $pkg_failed = yes; then
21567        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568printf "%s\n" "no" >&6; }
21569
21570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21571        _pkg_short_errors_supported=yes
21572else
21573        _pkg_short_errors_supported=no
21574fi
21575        if test $_pkg_short_errors_supported = yes; then
21576	        log4cpp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " log4cpp" 2>&1`
21577        else
21578	        log4cpp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " log4cpp" 2>&1`
21579        fi
21580	# Put the nasty error message in config.log where it belongs
21581	echo "$log4cpp_PKG_ERRORS" >&5
21582
21583	as_fn_error $? "Package requirements ( log4cpp) were not met:
21584
21585$log4cpp_PKG_ERRORS
21586
21587Consider adjusting the PKG_CONFIG_PATH environment variable if you
21588installed software in a non-standard prefix.
21589
21590Alternatively, you may set the environment variables log4cpp_CFLAGS
21591and log4cpp_LIBS to avoid the need to call pkg-config.
21592See the pkg-config man page for more details." "$LINENO" 5
21593elif test $pkg_failed = untried; then
21594        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21595printf "%s\n" "no" >&6; }
21596	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21597printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21598as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21599is in your PATH or set the PKG_CONFIG environment variable to the full
21600path to pkg-config.
21601
21602Alternatively, you may set the environment variables log4cpp_CFLAGS
21603and log4cpp_LIBS to avoid the need to call pkg-config.
21604See the pkg-config man page for more details.
21605
21606To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21607See \`config.log' for more details" "$LINENO" 5; }
21608else
21609	log4cpp_CFLAGS=$pkg_cv_log4cpp_CFLAGS
21610	log4cpp_LIBS=$pkg_cv_log4cpp_LIBS
21611        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21612printf "%s\n" "yes" >&6; }
21613
21614        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
21615        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE log4cpp"
21616
21617printf "%s\n" "#define SHIBSP_LOG4CPP 1" >>confdefs.h
21618
21619fi
21620
21621    # Substitute output.
21622
21623
21624
21625else
21626	log4shib_CFLAGS=$pkg_cv_log4shib_CFLAGS
21627	log4shib_LIBS=$pkg_cv_log4shib_LIBS
21628        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21629printf "%s\n" "yes" >&6; }
21630
21631        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
21632        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE log4shib"
21633
21634printf "%s\n" "#define SHIBSP_LOG4SHIB 1" >>confdefs.h
21635
21636fi
21637
21638    # Substitute output.
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648pkg_failed=no
21649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  xerces-c >= 3.2" >&5
21650printf %s "checking for  xerces-c >= 3.2... " >&6; }
21651
21652if test -n "$xerces_CFLAGS"; then
21653    pkg_cv_xerces_CFLAGS="$xerces_CFLAGS"
21654 elif test -n "$PKG_CONFIG"; then
21655    if test -n "$PKG_CONFIG" && \
21656    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xerces-c >= 3.2\""; } >&5
21657  ($PKG_CONFIG --exists --print-errors " xerces-c >= 3.2") 2>&5
21658  ac_status=$?
21659  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660  test $ac_status = 0; }; then
21661  pkg_cv_xerces_CFLAGS=`$PKG_CONFIG --cflags " xerces-c >= 3.2" 2>/dev/null`
21662		      test "x$?" != "x0" && pkg_failed=yes
21663else
21664  pkg_failed=yes
21665fi
21666 else
21667    pkg_failed=untried
21668fi
21669if test -n "$xerces_LIBS"; then
21670    pkg_cv_xerces_LIBS="$xerces_LIBS"
21671 elif test -n "$PKG_CONFIG"; then
21672    if test -n "$PKG_CONFIG" && \
21673    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xerces-c >= 3.2\""; } >&5
21674  ($PKG_CONFIG --exists --print-errors " xerces-c >= 3.2") 2>&5
21675  ac_status=$?
21676  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21677  test $ac_status = 0; }; then
21678  pkg_cv_xerces_LIBS=`$PKG_CONFIG --libs " xerces-c >= 3.2" 2>/dev/null`
21679		      test "x$?" != "x0" && pkg_failed=yes
21680else
21681  pkg_failed=yes
21682fi
21683 else
21684    pkg_failed=untried
21685fi
21686
21687
21688
21689if test $pkg_failed = yes; then
21690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691printf "%s\n" "no" >&6; }
21692
21693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21694        _pkg_short_errors_supported=yes
21695else
21696        _pkg_short_errors_supported=no
21697fi
21698        if test $_pkg_short_errors_supported = yes; then
21699	        xerces_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " xerces-c >= 3.2" 2>&1`
21700        else
21701	        xerces_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " xerces-c >= 3.2" 2>&1`
21702        fi
21703	# Put the nasty error message in config.log where it belongs
21704	echo "$xerces_PKG_ERRORS" >&5
21705
21706	as_fn_error $? "Package requirements ( xerces-c >= 3.2) were not met:
21707
21708$xerces_PKG_ERRORS
21709
21710Consider adjusting the PKG_CONFIG_PATH environment variable if you
21711installed software in a non-standard prefix.
21712
21713Alternatively, you may set the environment variables xerces_CFLAGS
21714and xerces_LIBS to avoid the need to call pkg-config.
21715See the pkg-config man page for more details." "$LINENO" 5
21716elif test $pkg_failed = untried; then
21717        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21718printf "%s\n" "no" >&6; }
21719	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21720printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21721as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21722is in your PATH or set the PKG_CONFIG environment variable to the full
21723path to pkg-config.
21724
21725Alternatively, you may set the environment variables xerces_CFLAGS
21726and xerces_LIBS to avoid the need to call pkg-config.
21727See the pkg-config man page for more details.
21728
21729To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21730See \`config.log' for more details" "$LINENO" 5; }
21731else
21732	xerces_CFLAGS=$pkg_cv_xerces_CFLAGS
21733	xerces_LIBS=$pkg_cv_xerces_LIBS
21734        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735printf "%s\n" "yes" >&6; }
21736
21737        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
21738        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE xerces-c >= 3.2"
21739
21740fi
21741
21742    # Substitute output.
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752pkg_failed=no
21753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  xml-security-c >= 2" >&5
21754printf %s "checking for  xml-security-c >= 2... " >&6; }
21755
21756if test -n "$xmlsec_CFLAGS"; then
21757    pkg_cv_xmlsec_CFLAGS="$xmlsec_CFLAGS"
21758 elif test -n "$PKG_CONFIG"; then
21759    if test -n "$PKG_CONFIG" && \
21760    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xml-security-c >= 2\""; } >&5
21761  ($PKG_CONFIG --exists --print-errors " xml-security-c >= 2") 2>&5
21762  ac_status=$?
21763  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21764  test $ac_status = 0; }; then
21765  pkg_cv_xmlsec_CFLAGS=`$PKG_CONFIG --cflags " xml-security-c >= 2" 2>/dev/null`
21766		      test "x$?" != "x0" && pkg_failed=yes
21767else
21768  pkg_failed=yes
21769fi
21770 else
21771    pkg_failed=untried
21772fi
21773if test -n "$xmlsec_LIBS"; then
21774    pkg_cv_xmlsec_LIBS="$xmlsec_LIBS"
21775 elif test -n "$PKG_CONFIG"; then
21776    if test -n "$PKG_CONFIG" && \
21777    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xml-security-c >= 2\""; } >&5
21778  ($PKG_CONFIG --exists --print-errors " xml-security-c >= 2") 2>&5
21779  ac_status=$?
21780  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21781  test $ac_status = 0; }; then
21782  pkg_cv_xmlsec_LIBS=`$PKG_CONFIG --libs " xml-security-c >= 2" 2>/dev/null`
21783		      test "x$?" != "x0" && pkg_failed=yes
21784else
21785  pkg_failed=yes
21786fi
21787 else
21788    pkg_failed=untried
21789fi
21790
21791
21792
21793if test $pkg_failed = yes; then
21794        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795printf "%s\n" "no" >&6; }
21796
21797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21798        _pkg_short_errors_supported=yes
21799else
21800        _pkg_short_errors_supported=no
21801fi
21802        if test $_pkg_short_errors_supported = yes; then
21803	        xmlsec_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " xml-security-c >= 2" 2>&1`
21804        else
21805	        xmlsec_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " xml-security-c >= 2" 2>&1`
21806        fi
21807	# Put the nasty error message in config.log where it belongs
21808	echo "$xmlsec_PKG_ERRORS" >&5
21809
21810	as_fn_error $? "Package requirements ( xml-security-c >= 2) were not met:
21811
21812$xmlsec_PKG_ERRORS
21813
21814Consider adjusting the PKG_CONFIG_PATH environment variable if you
21815installed software in a non-standard prefix.
21816
21817Alternatively, you may set the environment variables xmlsec_CFLAGS
21818and xmlsec_LIBS to avoid the need to call pkg-config.
21819See the pkg-config man page for more details." "$LINENO" 5
21820elif test $pkg_failed = untried; then
21821        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822printf "%s\n" "no" >&6; }
21823	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21824printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21825as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21826is in your PATH or set the PKG_CONFIG environment variable to the full
21827path to pkg-config.
21828
21829Alternatively, you may set the environment variables xmlsec_CFLAGS
21830and xmlsec_LIBS to avoid the need to call pkg-config.
21831See the pkg-config man page for more details.
21832
21833To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21834See \`config.log' for more details" "$LINENO" 5; }
21835else
21836	xmlsec_CFLAGS=$pkg_cv_xmlsec_CFLAGS
21837	xmlsec_LIBS=$pkg_cv_xmlsec_LIBS
21838        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21839printf "%s\n" "yes" >&6; }
21840
21841        SHIBSP_REQUIRES="$SHIBSP_REQUIRES "
21842        SHIBSP_REQUIRES_PRIVATE="$SHIBSP_REQUIRES_PRIVATE xml-security-c >= 2"
21843
21844fi
21845
21846    # Substitute output.
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856pkg_failed=no
21857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  xmltooling >= 3.1" >&5
21858printf %s "checking for  xmltooling >= 3.1... " >&6; }
21859
21860if test -n "$xmltooling_CFLAGS"; then
21861    pkg_cv_xmltooling_CFLAGS="$xmltooling_CFLAGS"
21862 elif test -n "$PKG_CONFIG"; then
21863    if test -n "$PKG_CONFIG" && \
21864    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xmltooling >= 3.1\""; } >&5
21865  ($PKG_CONFIG --exists --print-errors " xmltooling >= 3.1") 2>&5
21866  ac_status=$?
21867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21868  test $ac_status = 0; }; then
21869  pkg_cv_xmltooling_CFLAGS=`$PKG_CONFIG --cflags " xmltooling >= 3.1" 2>/dev/null`
21870		      test "x$?" != "x0" && pkg_failed=yes
21871else
21872  pkg_failed=yes
21873fi
21874 else
21875    pkg_failed=untried
21876fi
21877if test -n "$xmltooling_LIBS"; then
21878    pkg_cv_xmltooling_LIBS="$xmltooling_LIBS"
21879 elif test -n "$PKG_CONFIG"; then
21880    if test -n "$PKG_CONFIG" && \
21881    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xmltooling >= 3.1\""; } >&5
21882  ($PKG_CONFIG --exists --print-errors " xmltooling >= 3.1") 2>&5
21883  ac_status=$?
21884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21885  test $ac_status = 0; }; then
21886  pkg_cv_xmltooling_LIBS=`$PKG_CONFIG --libs " xmltooling >= 3.1" 2>/dev/null`
21887		      test "x$?" != "x0" && pkg_failed=yes
21888else
21889  pkg_failed=yes
21890fi
21891 else
21892    pkg_failed=untried
21893fi
21894
21895
21896
21897if test $pkg_failed = yes; then
21898        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21899printf "%s\n" "no" >&6; }
21900
21901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21902        _pkg_short_errors_supported=yes
21903else
21904        _pkg_short_errors_supported=no
21905fi
21906        if test $_pkg_short_errors_supported = yes; then
21907	        xmltooling_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " xmltooling >= 3.1" 2>&1`
21908        else
21909	        xmltooling_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " xmltooling >= 3.1" 2>&1`
21910        fi
21911	# Put the nasty error message in config.log where it belongs
21912	echo "$xmltooling_PKG_ERRORS" >&5
21913
21914	as_fn_error $? "Package requirements ( xmltooling >= 3.1) were not met:
21915
21916$xmltooling_PKG_ERRORS
21917
21918Consider adjusting the PKG_CONFIG_PATH environment variable if you
21919installed software in a non-standard prefix.
21920
21921Alternatively, you may set the environment variables xmltooling_CFLAGS
21922and xmltooling_LIBS to avoid the need to call pkg-config.
21923See the pkg-config man page for more details." "$LINENO" 5
21924elif test $pkg_failed = untried; then
21925        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21926printf "%s\n" "no" >&6; }
21927	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21928printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21929as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21930is in your PATH or set the PKG_CONFIG environment variable to the full
21931path to pkg-config.
21932
21933Alternatively, you may set the environment variables xmltooling_CFLAGS
21934and xmltooling_LIBS to avoid the need to call pkg-config.
21935See the pkg-config man page for more details.
21936
21937To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21938See \`config.log' for more details" "$LINENO" 5; }
21939else
21940	xmltooling_CFLAGS=$pkg_cv_xmltooling_CFLAGS
21941	xmltooling_LIBS=$pkg_cv_xmltooling_LIBS
21942        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943printf "%s\n" "yes" >&6; }
21944
21945        SHIBSP_REQUIRES="$SHIBSP_REQUIRES "
21946        SHIBSP_REQUIRES_PRIVATE="$SHIBSP_REQUIRES_PRIVATE xmltooling >= 3.1"
21947
21948fi
21949
21950    # Substitute output.
21951
21952
21953
21954
21955if test -n "$xmltooling_includedir"; then
21956    pkg_cv_xmltooling_includedir="$xmltooling_includedir"
21957 elif test -n "$PKG_CONFIG"; then
21958    if test -n "$PKG_CONFIG" && \
21959    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmltooling\""; } >&5
21960  ($PKG_CONFIG --exists --print-errors "xmltooling") 2>&5
21961  ac_status=$?
21962  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21963  test $ac_status = 0; }; then
21964  pkg_cv_xmltooling_includedir=`$PKG_CONFIG --variable="includedir" "xmltooling" 2>/dev/null`
21965		      test "x$?" != "x0" && pkg_failed=yes
21966else
21967  pkg_failed=yes
21968fi
21969 else
21970    pkg_failed=untried
21971fi
21972xmltooling_includedir=$pkg_cv_xmltooling_includedir
21973
21974if test "x$xmltooling_includedir" = x""
21975then :
21976
21977fi
21978
21979if test -n "$XMLTOOLINGXMLDIR"; then
21980    pkg_cv_XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR"
21981 elif test -n "$PKG_CONFIG"; then
21982    if test -n "$PKG_CONFIG" && \
21983    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmltooling\""; } >&5
21984  ($PKG_CONFIG --exists --print-errors "xmltooling") 2>&5
21985  ac_status=$?
21986  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987  test $ac_status = 0; }; then
21988  pkg_cv_XMLTOOLINGXMLDIR=`$PKG_CONFIG --variable="pkgxmldir" "xmltooling" 2>/dev/null`
21989		      test "x$?" != "x0" && pkg_failed=yes
21990else
21991  pkg_failed=yes
21992fi
21993 else
21994    pkg_failed=untried
21995fi
21996XMLTOOLINGXMLDIR=$pkg_cv_XMLTOOLINGXMLDIR
21997
21998if test "x$XMLTOOLINGXMLDIR" = x""
21999then :
22000
22001fi
22002DX_INCLUDE="$DX_INCLUDE $xmltooling_includedir"
22003
22004
22005
22006
22007
22008
22009pkg_failed=no
22010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  xmltooling-lite >= 3.1" >&5
22011printf %s "checking for  xmltooling-lite >= 3.1... " >&6; }
22012
22013if test -n "$xmltooling_lite_CFLAGS"; then
22014    pkg_cv_xmltooling_lite_CFLAGS="$xmltooling_lite_CFLAGS"
22015 elif test -n "$PKG_CONFIG"; then
22016    if test -n "$PKG_CONFIG" && \
22017    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xmltooling-lite >= 3.1\""; } >&5
22018  ($PKG_CONFIG --exists --print-errors " xmltooling-lite >= 3.1") 2>&5
22019  ac_status=$?
22020  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22021  test $ac_status = 0; }; then
22022  pkg_cv_xmltooling_lite_CFLAGS=`$PKG_CONFIG --cflags " xmltooling-lite >= 3.1" 2>/dev/null`
22023		      test "x$?" != "x0" && pkg_failed=yes
22024else
22025  pkg_failed=yes
22026fi
22027 else
22028    pkg_failed=untried
22029fi
22030if test -n "$xmltooling_lite_LIBS"; then
22031    pkg_cv_xmltooling_lite_LIBS="$xmltooling_lite_LIBS"
22032 elif test -n "$PKG_CONFIG"; then
22033    if test -n "$PKG_CONFIG" && \
22034    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" xmltooling-lite >= 3.1\""; } >&5
22035  ($PKG_CONFIG --exists --print-errors " xmltooling-lite >= 3.1") 2>&5
22036  ac_status=$?
22037  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22038  test $ac_status = 0; }; then
22039  pkg_cv_xmltooling_lite_LIBS=`$PKG_CONFIG --libs " xmltooling-lite >= 3.1" 2>/dev/null`
22040		      test "x$?" != "x0" && pkg_failed=yes
22041else
22042  pkg_failed=yes
22043fi
22044 else
22045    pkg_failed=untried
22046fi
22047
22048
22049
22050if test $pkg_failed = yes; then
22051        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052printf "%s\n" "no" >&6; }
22053
22054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22055        _pkg_short_errors_supported=yes
22056else
22057        _pkg_short_errors_supported=no
22058fi
22059        if test $_pkg_short_errors_supported = yes; then
22060	        xmltooling_lite_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " xmltooling-lite >= 3.1" 2>&1`
22061        else
22062	        xmltooling_lite_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " xmltooling-lite >= 3.1" 2>&1`
22063        fi
22064	# Put the nasty error message in config.log where it belongs
22065	echo "$xmltooling_lite_PKG_ERRORS" >&5
22066
22067	as_fn_error $? "Package requirements ( xmltooling-lite >= 3.1) were not met:
22068
22069$xmltooling_lite_PKG_ERRORS
22070
22071Consider adjusting the PKG_CONFIG_PATH environment variable if you
22072installed software in a non-standard prefix.
22073
22074Alternatively, you may set the environment variables xmltooling_lite_CFLAGS
22075and xmltooling_lite_LIBS to avoid the need to call pkg-config.
22076See the pkg-config man page for more details." "$LINENO" 5
22077elif test $pkg_failed = untried; then
22078        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22079printf "%s\n" "no" >&6; }
22080	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22081printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22082as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22083is in your PATH or set the PKG_CONFIG environment variable to the full
22084path to pkg-config.
22085
22086Alternatively, you may set the environment variables xmltooling_lite_CFLAGS
22087and xmltooling_lite_LIBS to avoid the need to call pkg-config.
22088See the pkg-config man page for more details.
22089
22090To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22091See \`config.log' for more details" "$LINENO" 5; }
22092else
22093	xmltooling_lite_CFLAGS=$pkg_cv_xmltooling_lite_CFLAGS
22094	xmltooling_lite_LIBS=$pkg_cv_xmltooling_lite_LIBS
22095        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22096printf "%s\n" "yes" >&6; }
22097
22098        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
22099        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE xmltooling-lite >= 3.1"
22100
22101fi
22102
22103    # Substitute output.
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113pkg_failed=no
22114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  opensaml >= 3.1" >&5
22115printf %s "checking for  opensaml >= 3.1... " >&6; }
22116
22117if test -n "$opensaml_CFLAGS"; then
22118    pkg_cv_opensaml_CFLAGS="$opensaml_CFLAGS"
22119 elif test -n "$PKG_CONFIG"; then
22120    if test -n "$PKG_CONFIG" && \
22121    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" opensaml >= 3.1\""; } >&5
22122  ($PKG_CONFIG --exists --print-errors " opensaml >= 3.1") 2>&5
22123  ac_status=$?
22124  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125  test $ac_status = 0; }; then
22126  pkg_cv_opensaml_CFLAGS=`$PKG_CONFIG --cflags " opensaml >= 3.1" 2>/dev/null`
22127		      test "x$?" != "x0" && pkg_failed=yes
22128else
22129  pkg_failed=yes
22130fi
22131 else
22132    pkg_failed=untried
22133fi
22134if test -n "$opensaml_LIBS"; then
22135    pkg_cv_opensaml_LIBS="$opensaml_LIBS"
22136 elif test -n "$PKG_CONFIG"; then
22137    if test -n "$PKG_CONFIG" && \
22138    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" opensaml >= 3.1\""; } >&5
22139  ($PKG_CONFIG --exists --print-errors " opensaml >= 3.1") 2>&5
22140  ac_status=$?
22141  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22142  test $ac_status = 0; }; then
22143  pkg_cv_opensaml_LIBS=`$PKG_CONFIG --libs " opensaml >= 3.1" 2>/dev/null`
22144		      test "x$?" != "x0" && pkg_failed=yes
22145else
22146  pkg_failed=yes
22147fi
22148 else
22149    pkg_failed=untried
22150fi
22151
22152
22153
22154if test $pkg_failed = yes; then
22155        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22156printf "%s\n" "no" >&6; }
22157
22158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22159        _pkg_short_errors_supported=yes
22160else
22161        _pkg_short_errors_supported=no
22162fi
22163        if test $_pkg_short_errors_supported = yes; then
22164	        opensaml_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " opensaml >= 3.1" 2>&1`
22165        else
22166	        opensaml_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " opensaml >= 3.1" 2>&1`
22167        fi
22168	# Put the nasty error message in config.log where it belongs
22169	echo "$opensaml_PKG_ERRORS" >&5
22170
22171	as_fn_error $? "Package requirements ( opensaml >= 3.1) were not met:
22172
22173$opensaml_PKG_ERRORS
22174
22175Consider adjusting the PKG_CONFIG_PATH environment variable if you
22176installed software in a non-standard prefix.
22177
22178Alternatively, you may set the environment variables opensaml_CFLAGS
22179and opensaml_LIBS to avoid the need to call pkg-config.
22180See the pkg-config man page for more details." "$LINENO" 5
22181elif test $pkg_failed = untried; then
22182        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22183printf "%s\n" "no" >&6; }
22184	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22185printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22186as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22187is in your PATH or set the PKG_CONFIG environment variable to the full
22188path to pkg-config.
22189
22190Alternatively, you may set the environment variables opensaml_CFLAGS
22191and opensaml_LIBS to avoid the need to call pkg-config.
22192See the pkg-config man page for more details.
22193
22194To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22195See \`config.log' for more details" "$LINENO" 5; }
22196else
22197	opensaml_CFLAGS=$pkg_cv_opensaml_CFLAGS
22198	opensaml_LIBS=$pkg_cv_opensaml_LIBS
22199        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22200printf "%s\n" "yes" >&6; }
22201
22202        SHIBSP_REQUIRES="$SHIBSP_REQUIRES "
22203        SHIBSP_REQUIRES_PRIVATE="$SHIBSP_REQUIRES_PRIVATE opensaml >= 3.1"
22204
22205fi
22206
22207    # Substitute output.
22208
22209
22210
22211
22212if test -n "$OPENSAMLXMLDIR"; then
22213    pkg_cv_OPENSAMLXMLDIR="$OPENSAMLXMLDIR"
22214 elif test -n "$PKG_CONFIG"; then
22215    if test -n "$PKG_CONFIG" && \
22216    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opensaml\""; } >&5
22217  ($PKG_CONFIG --exists --print-errors "opensaml") 2>&5
22218  ac_status=$?
22219  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22220  test $ac_status = 0; }; then
22221  pkg_cv_OPENSAMLXMLDIR=`$PKG_CONFIG --variable="pkgxmldir" "opensaml" 2>/dev/null`
22222		      test "x$?" != "x0" && pkg_failed=yes
22223else
22224  pkg_failed=yes
22225fi
22226 else
22227    pkg_failed=untried
22228fi
22229OPENSAMLXMLDIR=$pkg_cv_OPENSAMLXMLDIR
22230
22231if test "x$OPENSAMLXMLDIR" = x""
22232then :
22233
22234fi
22235
22236# output the underlying makefiles
22237WANT_SUBDIRS="doc schemas configs shibsp plugins shibd util"
22238ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile plugins/Makefile shibd/Makefile util/Makefile selinux/Makefile"
22239
22240
22241## ADFS?
22242ac_config_files="$ac_config_files adfs/Makefile"
22243
22244# Check whether --enable-adfs was given.
22245if test ${enable_adfs+y}
22246then :
22247  enableval=$enable_adfs; adfs_enabled=$enableval
22248else $as_nop
22249  adfs_enabled=yes
22250fi
22251
22252if test "x$adfs_enabled" = "x" ; then
22253    adfs_enabled=yes
22254fi
22255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the ADFS module" >&5
22256printf %s "checking whether to build the ADFS module... " >&6; }
22257if test "$adfs_enabled" = "no" ; then
22258    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259printf "%s\n" "no" >&6; }
22260else
22261    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22262printf "%s\n" "yes" >&6; }
22263    WANT_SUBDIRS="$WANT_SUBDIRS adfs"
22264fi
22265
22266## systemd
22267# Check whether --enable-systemd was given.
22268if test ${enable_systemd+y}
22269then :
22270  enableval=$enable_systemd; if test "x$enableval" != xno
22271then :
22272
22273pkg_failed=no
22274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
22275printf %s "checking for libsystemd... " >&6; }
22276
22277if test -n "$SYSTEMD_CFLAGS"; then
22278    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
22279 elif test -n "$PKG_CONFIG"; then
22280    if test -n "$PKG_CONFIG" && \
22281    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
22282  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
22283  ac_status=$?
22284  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22285  test $ac_status = 0; }; then
22286  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
22287		      test "x$?" != "x0" && pkg_failed=yes
22288else
22289  pkg_failed=yes
22290fi
22291 else
22292    pkg_failed=untried
22293fi
22294if test -n "$SYSTEMD_LIBS"; then
22295    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
22296 elif test -n "$PKG_CONFIG"; then
22297    if test -n "$PKG_CONFIG" && \
22298    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
22299  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
22300  ac_status=$?
22301  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302  test $ac_status = 0; }; then
22303  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
22304		      test "x$?" != "x0" && pkg_failed=yes
22305else
22306  pkg_failed=yes
22307fi
22308 else
22309    pkg_failed=untried
22310fi
22311
22312
22313
22314if test $pkg_failed = yes; then
22315        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22316printf "%s\n" "no" >&6; }
22317
22318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22319        _pkg_short_errors_supported=yes
22320else
22321        _pkg_short_errors_supported=no
22322fi
22323        if test $_pkg_short_errors_supported = yes; then
22324	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
22325        else
22326	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
22327        fi
22328	# Put the nasty error message in config.log where it belongs
22329	echo "$SYSTEMD_PKG_ERRORS" >&5
22330
22331
22332pkg_failed=no
22333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
22334printf %s "checking for libsystemd-daemon... " >&6; }
22335
22336if test -n "$SYSTEMD_CFLAGS"; then
22337    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
22338 elif test -n "$PKG_CONFIG"; then
22339    if test -n "$PKG_CONFIG" && \
22340    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
22341  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
22342  ac_status=$?
22343  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22344  test $ac_status = 0; }; then
22345  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
22346		      test "x$?" != "x0" && pkg_failed=yes
22347else
22348  pkg_failed=yes
22349fi
22350 else
22351    pkg_failed=untried
22352fi
22353if test -n "$SYSTEMD_LIBS"; then
22354    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
22355 elif test -n "$PKG_CONFIG"; then
22356    if test -n "$PKG_CONFIG" && \
22357    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
22358  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
22359  ac_status=$?
22360  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22361  test $ac_status = 0; }; then
22362  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
22363		      test "x$?" != "x0" && pkg_failed=yes
22364else
22365  pkg_failed=yes
22366fi
22367 else
22368    pkg_failed=untried
22369fi
22370
22371
22372
22373if test $pkg_failed = yes; then
22374        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22375printf "%s\n" "no" >&6; }
22376
22377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22378        _pkg_short_errors_supported=yes
22379else
22380        _pkg_short_errors_supported=no
22381fi
22382        if test $_pkg_short_errors_supported = yes; then
22383	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
22384        else
22385	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
22386        fi
22387	# Put the nasty error message in config.log where it belongs
22388	echo "$SYSTEMD_PKG_ERRORS" >&5
22389
22390	as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
22391
22392$SYSTEMD_PKG_ERRORS
22393
22394Consider adjusting the PKG_CONFIG_PATH environment variable if you
22395installed software in a non-standard prefix.
22396
22397Alternatively, you may set the environment variables SYSTEMD_CFLAGS
22398and SYSTEMD_LIBS to avoid the need to call pkg-config.
22399See the pkg-config man page for more details." "$LINENO" 5
22400elif test $pkg_failed = untried; then
22401        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22402printf "%s\n" "no" >&6; }
22403	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22404printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22405as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22406is in your PATH or set the PKG_CONFIG environment variable to the full
22407path to pkg-config.
22408
22409Alternatively, you may set the environment variables SYSTEMD_CFLAGS
22410and SYSTEMD_LIBS to avoid the need to call pkg-config.
22411See the pkg-config man page for more details.
22412
22413To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22414See \`config.log' for more details" "$LINENO" 5; }
22415else
22416	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
22417	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
22418        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22419printf "%s\n" "yes" >&6; }
22420
22421fi
22422elif test $pkg_failed = untried; then
22423        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22424printf "%s\n" "no" >&6; }
22425
22426pkg_failed=no
22427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
22428printf %s "checking for libsystemd-daemon... " >&6; }
22429
22430if test -n "$SYSTEMD_CFLAGS"; then
22431    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
22432 elif test -n "$PKG_CONFIG"; then
22433    if test -n "$PKG_CONFIG" && \
22434    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
22435  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
22436  ac_status=$?
22437  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22438  test $ac_status = 0; }; then
22439  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
22440		      test "x$?" != "x0" && pkg_failed=yes
22441else
22442  pkg_failed=yes
22443fi
22444 else
22445    pkg_failed=untried
22446fi
22447if test -n "$SYSTEMD_LIBS"; then
22448    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
22449 elif test -n "$PKG_CONFIG"; then
22450    if test -n "$PKG_CONFIG" && \
22451    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
22452  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
22453  ac_status=$?
22454  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455  test $ac_status = 0; }; then
22456  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
22457		      test "x$?" != "x0" && pkg_failed=yes
22458else
22459  pkg_failed=yes
22460fi
22461 else
22462    pkg_failed=untried
22463fi
22464
22465
22466
22467if test $pkg_failed = yes; then
22468        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22469printf "%s\n" "no" >&6; }
22470
22471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22472        _pkg_short_errors_supported=yes
22473else
22474        _pkg_short_errors_supported=no
22475fi
22476        if test $_pkg_short_errors_supported = yes; then
22477	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
22478        else
22479	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
22480        fi
22481	# Put the nasty error message in config.log where it belongs
22482	echo "$SYSTEMD_PKG_ERRORS" >&5
22483
22484	as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
22485
22486$SYSTEMD_PKG_ERRORS
22487
22488Consider adjusting the PKG_CONFIG_PATH environment variable if you
22489installed software in a non-standard prefix.
22490
22491Alternatively, you may set the environment variables SYSTEMD_CFLAGS
22492and SYSTEMD_LIBS to avoid the need to call pkg-config.
22493See the pkg-config man page for more details." "$LINENO" 5
22494elif test $pkg_failed = untried; then
22495        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22496printf "%s\n" "no" >&6; }
22497	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22498printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22499as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22500is in your PATH or set the PKG_CONFIG environment variable to the full
22501path to pkg-config.
22502
22503Alternatively, you may set the environment variables SYSTEMD_CFLAGS
22504and SYSTEMD_LIBS to avoid the need to call pkg-config.
22505See the pkg-config man page for more details.
22506
22507To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22508See \`config.log' for more details" "$LINENO" 5; }
22509else
22510	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
22511	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
22512        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22513printf "%s\n" "yes" >&6; }
22514
22515fi
22516else
22517	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
22518	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
22519        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22520printf "%s\n" "yes" >&6; }
22521
22522fi
22523	 # because in systemd 209 the libraries were merged into a single libsystemd.
22524	 # sd_notify() is always present, no need to check for it:
22525
22526printf "%s\n" "#define HAVE_SD_NOTIFY 1" >>confdefs.h
22527
22528fi
22529fi
22530
22531
22532#
22533# Build NSAPI module?
22534#
22535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NSAPI module option" >&5
22536printf %s "checking for NSAPI module option... " >&6; }
22537
22538# Check whether --with-nsapi was given.
22539if test ${with_nsapi+y}
22540then :
22541  withval=$with_nsapi; WANT_NSAPI=$withval
22542else $as_nop
22543  WANT_NSAPI=no
22544fi
22545
22546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_NSAPI" >&5
22547printf "%s\n" "$WANT_NSAPI" >&6; }
22548
22549if test "$WANT_NSAPI" != "no"; then
22550  if test ! -d $WANT_NSAPI/bin ; then
22551    as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" "$LINENO" 5
22552  fi
22553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5
22554printf %s "checking for NSAPI include files... " >&6; }
22555  if test -d $WANT_NSAPI/include ; then
22556    NSAPI_INCLUDE=$WANT_NSAPI/include
22557    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Netscape-Enterprise 3.x style" >&5
22558printf "%s\n" "Netscape-Enterprise 3.x style" >&6; }
22559           for ac_header in $NSAPI_INCLUDE/nsapi.h
22560do :
22561  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
22562ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define XP_UNIX
22563"
22564if eval test \"x\$"$as_ac_Header"\" = x"yes"
22565then :
22566  cat >>confdefs.h <<_ACEOF
22567#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
22568_ACEOF
22569
22570fi
22571
22572done
22573    NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
22574  fi
22575  if test -d $WANT_NSAPI/plugins/include ; then
22576    test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
22577    NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
22578    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / SunONE 6.x style" >&5
22579printf "%s\n" "iPlanet 4.x / SunONE 6.x style" >&6; }
22580           for ac_header in $NSAPI_INCLUDE/nsapi.h
22581do :
22582  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
22583ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define XP_UNIX
22584"
22585if eval test \"x\$"$as_ac_Header"\" = x"yes"
22586then :
22587  cat >>confdefs.h <<_ACEOF
22588#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
22589_ACEOF
22590
22591fi
22592
22593done
22594    NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
22595  fi
22596  if test "$NSAPI_INCLUDE" = ""; then
22597    as_fn_error $? "Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" "$LINENO" 5
22598  fi
22599fi
22600
22601
22602
22603# always output the Makefile, even if you don't use it
22604ac_config_files="$ac_config_files nsapi_shib/Makefile"
22605
22606 if test ! "$WANT_NSAPI" = "no"; then
22607  BUILD_NSAPI_TRUE=
22608  BUILD_NSAPI_FALSE='#'
22609else
22610  BUILD_NSAPI_TRUE='#'
22611  BUILD_NSAPI_FALSE=
22612fi
22613
22614
22615# add the NSAPI module to the list of wanted subdirs..
22616if test ! "$WANT_NSAPI" = "no" ; then
22617    WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
22618fi
22619
22620
22621#
22622# Build FastCGI support?
22623#
22624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FastCGI support" >&5
22625printf %s "checking for FastCGI support... " >&6; }
22626
22627# Check whether --with-fastcgi was given.
22628if test ${with_fastcgi+y}
22629then :
22630  withval=$with_fastcgi; WANT_FASTCGI=$withval
22631else $as_nop
22632  WANT_FASTCGI=no
22633fi
22634
22635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_FASTCGI" >&5
22636printf "%s\n" "$WANT_FASTCGI" >&6; }
22637
22638if test "$WANT_FASTCGI" != "no"; then
22639
22640    if test "$WANT_FASTCGI" != "yes"; then
22641        if test x_$WANT_FASTCGI != x_/usr; then
22642            FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
22643            FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
22644        fi
22645    fi
22646
22647    # save and append master flags
22648    save_CPPFLAGS="$CPPFLAGS"
22649    CPPFLAGS="$FASTCGI_INCLUDE $CPPFLAGS"
22650
22651    ac_fn_cxx_check_header_compile "$LINENO" "fcgio.h" "ac_cv_header_fcgio_h" "$ac_includes_default"
22652if test "x$ac_cv_header_fcgio_h" = xyes
22653then :
22654
22655else $as_nop
22656  as_fn_error $? "unable to find FastCGI header files" "$LINENO" 5
22657fi
22658
22659    FASTCGI_LIBS="-lfcgi -lfcgi++"
22660
22661    # restore standard flags
22662    CPPFLAGS="$save_CPPFLAGS"
22663fi
22664
22665
22666
22667
22668
22669# always output the Makefile, even if you don't use it
22670ac_config_files="$ac_config_files fastcgi/Makefile"
22671
22672 if test ! "$WANT_FASTCGI" = "no"; then
22673  BUILD_FASTCGI_TRUE=
22674  BUILD_FASTCGI_FALSE='#'
22675else
22676  BUILD_FASTCGI_TRUE='#'
22677  BUILD_FASTCGI_FALSE=
22678fi
22679
22680
22681if test ! "$WANT_FASTCGI" = "no" ; then
22682    WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
22683fi
22684
22685#
22686# Build Memcached support?
22687#
22688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Memcached support" >&5
22689printf %s "checking for Memcached support... " >&6; }
22690
22691# Check whether --with-memcached was given.
22692if test ${with_memcached+y}
22693then :
22694  withval=$with_memcached; WANT_MEMCACHED=$withval
22695else $as_nop
22696  WANT_MEMCACHED=no
22697fi
22698
22699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_MEMCACHED" >&5
22700printf "%s\n" "$WANT_MEMCACHED" >&6; }
22701
22702if test "$WANT_MEMCACHED" != "no"; then
22703
22704    if test "$WANT_MEMCACHED" != "yes"; then
22705        if test x_$WANT_MEMCACHED != x_/usr; then
22706            MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
22707            MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
22708        fi
22709    fi
22710
22711    # save and append master flags
22712    save_CPPFLAGS="$CPPFLAGS"
22713    CPPFLAGS="$MEMCACHED_INCLUDE $CPPFLAGS"
22714
22715    ac_fn_cxx_check_header_compile "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
22716if test "x$ac_cv_header_libmemcached_memcached_h" = xyes
22717then :
22718
22719else $as_nop
22720  as_fn_error $? "unable to find Memcached header files" "$LINENO" 5
22721fi
22722
22723    ac_fn_check_decl "$LINENO" "memcached_last_error_message" "ac_cv_have_decl_memcached_last_error_message" "#include <libmemcached/memcached.h>
22724" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
22725if test "x$ac_cv_have_decl_memcached_last_error_message" = xyes
22726then :
22727
22728printf "%s\n" "#define HAVE_MEMCACHED_LAST_ERROR_MESSAGE 1" >>confdefs.h
22729
22730fi
22731    MEMCACHED_LIBS="-lmemcached"
22732
22733    # restore standard flags
22734    CPPFLAGS="$save_CPPFLAGS"
22735fi
22736
22737
22738
22739
22740
22741# always output the Makefile, even if you don't use it
22742ac_config_files="$ac_config_files memcache-store/Makefile"
22743
22744 if test ! "$WANT_MEMCACHED" = "no"; then
22745  BUILD_MEMCACHED_TRUE=
22746  BUILD_MEMCACHED_FALSE='#'
22747else
22748  BUILD_MEMCACHED_TRUE='#'
22749  BUILD_MEMCACHED_FALSE=
22750fi
22751
22752
22753if test ! "$WANT_MEMCACHED" = "no" ; then
22754    WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
22755fi
22756
22757
22758#
22759# If no --enable-apache-xx specified
22760# find a default and fake the specific parameters
22761#
22762
22763# simple macro to peek at an enable or a with
22764
22765
22766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if default apache needed" >&5
22767printf %s "checking if default apache needed... " >&6; }
22768need_default=yes
22769if test "${enable_apache_13+set}" = set; then
22770  peekval="${enable_apache_13}"
22771  need_default=no
22772fi;
22773if test "${enable_apache_20+set}" = set; then
22774  peekval="${enable_apache_20}"
22775  need_default=no
22776fi;
22777if test "${enable_apache_22+set}" = set; then
22778  peekval="${enable_apache_22}"
22779  need_default=no
22780fi;
22781if test "${enable_apache_24+set}" = set; then
22782  peekval="${enable_apache_24}"
22783  need_default=no
22784fi;
22785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_default" >&5
22786printf "%s\n" "$need_default" >&6; }
22787
22788if test "$need_default" = "yes"; then
22789  # find an apxs, then the httpd
22790  xs=
22791  if test "${with_apxs+set}" = set; then
22792  peekval="${with_apxs}"
22793  xs="$peekval"
22794fi;
22795  if test "${with_apxs2+set}" = set; then
22796  peekval="${with_apxs2}"
22797  xs="$peekval"
22798fi;
22799  if test "${with_apxs22+set}" = set; then
22800  peekval="${with_apxs22}"
22801  xs="$peekval"
22802fi;
22803  if test "${with_apxs24+set}" = set; then
22804  peekval="${with_apxs24}"
22805  xs="$peekval"
22806fi;
22807  if test "x$xs" = "x"; then
22808     for ac_prog in apxs2 apxs
22809do
22810  # Extract the first word of "$ac_prog", so it can be a program name with args.
22811set dummy $ac_prog; ac_word=$2
22812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22813printf %s "checking for $ac_word... " >&6; }
22814if test ${ac_cv_path_xs+y}
22815then :
22816  printf %s "(cached) " >&6
22817else $as_nop
22818  case $xs in
22819  [\\/]* | ?:[\\/]*)
22820  ac_cv_path_xs="$xs" # Let the user override the test with a path.
22821  ;;
22822  *)
22823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22824as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
22825for as_dir in $as_dummy
22826do
22827  IFS=$as_save_IFS
22828  case $as_dir in #(((
22829    '') as_dir=./ ;;
22830    */) ;;
22831    *) as_dir=$as_dir/ ;;
22832  esac
22833    for ac_exec_ext in '' $ac_executable_extensions; do
22834  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22835    ac_cv_path_xs="$as_dir$ac_word$ac_exec_ext"
22836    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22837    break 2
22838  fi
22839done
22840  done
22841IFS=$as_save_IFS
22842
22843  ;;
22844esac
22845fi
22846xs=$ac_cv_path_xs
22847if test -n "$xs"; then
22848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xs" >&5
22849printf "%s\n" "$xs" >&6; }
22850else
22851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22852printf "%s\n" "no" >&6; }
22853fi
22854
22855
22856  test -n "$xs" && break
22857done
22858test -n "$xs" || xs="as_fn_error no Apache found. Try --with-apxs "No apxs" "$LINENO" 5"
22859
22860  fi
22861  # ask the daemon for the version and set parameters
22862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default apache version" >&5
22863printf %s "checking default apache version... " >&6; }
22864  httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
22865  if test "x$httpd" != "x" && test -f $httpd ; then
22866     v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
22867     case $v in
22868       1.3*)   enable_apache_13=yes
22869               with_apxs=$xs
22870               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 1.3" >&5
22871printf "%s\n" "1.3" >&6; }
22872               ;;
22873       2.0*)   enable_apache_20=yes
22874               with_apxs2=$xs
22875               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 2.0" >&5
22876printf "%s\n" "2.0" >&6; }
22877               ;;
22878       2.2*)   enable_apache_22=yes
22879               with_apxs22=$xs
22880               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 2.2" >&5
22881printf "%s\n" "2.2" >&6; }
22882               ;;
22883       2.4*)   enable_apache_24=yes
22884               with_apxs24=$xs
22885               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 2.4" >&5
22886printf "%s\n" "2.4" >&6; }
22887               ;;
22888       *)      as_fn_error --with=apxs2 "unusable Apache versions: $v. Try setting --with-apxs" "$LINENO" 5
22889     esac
22890  else
22891     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot determine Apache version. Try setting --with-apxs" >&5
22892printf "%s\n" "cannot determine Apache version. Try setting --with-apxs" >&6; }
22893  fi
22894fi
22895
22896# Apache 1.3 (mod_shib_13)
22897#   --enable-apache-13
22898#   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
22899
22900# Check whether --enable-apache-13 was given.
22901if test ${enable_apache_13+y}
22902then :
22903  enableval=$enable_apache_13; if test "x$enableval" = "x" ; then
22904         WANT_APACHE_13=yes
22905	 else
22906	     WANT_APACHE_13="$enableval"
22907	 fi
22908
22909else $as_nop
22910   WANT_APACHE_13=no
22911fi
22912
22913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 1.3 module" >&5
22914printf %s "checking whether to build Apache 1.3 module... " >&6; }
22915if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
22916   WANT_APACHE_13=yes
22917fi
22918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_13" >&5
22919printf "%s\n" "$WANT_APACHE_13" >&6; }
22920
22921if test "$WANT_APACHE_13" = "yes" ; then
22922
22923# Check whether --with-apxs was given.
22924if test ${with_apxs+y}
22925then :
22926  withval=$with_apxs;
22927        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apxs name/location" >&5
22928printf %s "checking for user-specified apxs name/location... " >&6; }
22929        if test "$withval" != "no" ; then
22930          if test "$withval" != "yes"; then
22931            APXS=$withval
22932            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
22933printf "%s\n" "\"$withval\"" >&6; }
22934          fi
22935        fi
22936
22937else $as_nop
22938
22939        # Extract the first word of "apxs", so it can be a program name with args.
22940set dummy apxs; ac_word=$2
22941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22942printf %s "checking for $ac_word... " >&6; }
22943if test ${ac_cv_path_APXS+y}
22944then :
22945  printf %s "(cached) " >&6
22946else $as_nop
22947  case $APXS in
22948  [\\/]* | ?:[\\/]*)
22949  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
22950  ;;
22951  *)
22952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22953for as_dir in $PATH
22954do
22955  IFS=$as_save_IFS
22956  case $as_dir in #(((
22957    '') as_dir=./ ;;
22958    */) ;;
22959    *) as_dir=$as_dir/ ;;
22960  esac
22961    for ac_exec_ext in '' $ac_executable_extensions; do
22962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22963    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
22964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22965    break 2
22966  fi
22967done
22968  done
22969IFS=$as_save_IFS
22970
22971  test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
22972  ;;
22973esac
22974fi
22975APXS=$ac_cv_path_APXS
22976if test -n "$APXS"; then
22977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
22978printf "%s\n" "$APXS" >&6; }
22979else
22980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22981printf "%s\n" "no" >&6; }
22982fi
22983
22984
22985        if test "$APXS" = "no" ; then
22986          for i in /usr/sbin /usr/local/apache/bin /opt/local/bin ; do
22987            if test "$APXS" = "no" && test -f "$i/apxs"; then
22988              APXS="$i/apxs"
22989            fi
22990          done
22991        fi
22992
22993fi
22994
22995
22996    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if apxs was located" >&5
22997printf %s "checking to see if apxs was located... " >&6; }
22998    if test ! -f "$APXS" ; then
22999        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23000printf "%s\n" "no" >&6; }
23001        as_fn_error $? "Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." "$LINENO" 5
23002    fi
23003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
23004printf "%s\n" "$APXS" >&6; }
23005
23006
23007    # extract settings we need from APXS -q
23008    APXS_CC="`$APXS -q CC`"
23009    APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
23010    APXS_INCLUDE="-I`$APXS -q INCLUDEDIR`"
23011    APXS_LDFLAGS="`$APXS -q LDFLAGS`"
23012fi
23013
23014
23015
23016
23017
23018# Apache 2.0 (mod_shib_20)
23019#   --enable-apache-20
23020#   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
23021#   --with-apr        (DSO build, APR development package installed separately)
23022#   --with-apu        (DSO build, APR-UTIL development package installed separately)
23023
23024# Check whether --enable-apache-20 was given.
23025if test ${enable_apache_20+y}
23026then :
23027  enableval=$enable_apache_20; if test "x$enableval" = "x" ; then
23028         WANT_APACHE_20=yes
23029	 else
23030	     WANT_APACHE_20="$enableval"
23031	 fi
23032
23033else $as_nop
23034   WANT_APACHE_20=no
23035fi
23036
23037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.0 module" >&5
23038printf %s "checking whether to build Apache 2.0 module... " >&6; }
23039if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
23040    WANT_APACHE_20=yes
23041fi
23042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_20" >&5
23043printf "%s\n" "$WANT_APACHE_20" >&6; }
23044
23045if test "$WANT_APACHE_20" = "yes" ; then
23046
23047# Check whether --with-apxs2 was given.
23048if test ${with_apxs2+y}
23049then :
23050  withval=$with_apxs2;
23051        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache 2.0 apxs name/location" >&5
23052printf %s "checking for user-specified Apache 2.0 apxs name/location... " >&6; }
23053        if test "$withval" != "no" ; then
23054          if test "$withval" != "yes"; then
23055            APXS2=$withval
23056            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23057printf "%s\n" "\"$withval\"" >&6; }
23058          fi
23059        fi
23060
23061else $as_nop
23062
23063        # Extract the first word of "apxs2", so it can be a program name with args.
23064set dummy apxs2; ac_word=$2
23065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23066printf %s "checking for $ac_word... " >&6; }
23067if test ${ac_cv_path_APXS2+y}
23068then :
23069  printf %s "(cached) " >&6
23070else $as_nop
23071  case $APXS2 in
23072  [\\/]* | ?:[\\/]*)
23073  ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
23074  ;;
23075  *)
23076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23077for as_dir in $PATH
23078do
23079  IFS=$as_save_IFS
23080  case $as_dir in #(((
23081    '') as_dir=./ ;;
23082    */) ;;
23083    *) as_dir=$as_dir/ ;;
23084  esac
23085    for ac_exec_ext in '' $ac_executable_extensions; do
23086  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23087    ac_cv_path_APXS2="$as_dir$ac_word$ac_exec_ext"
23088    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23089    break 2
23090  fi
23091done
23092  done
23093IFS=$as_save_IFS
23094
23095  test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
23096  ;;
23097esac
23098fi
23099APXS2=$ac_cv_path_APXS2
23100if test -n "$APXS2"; then
23101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
23102printf "%s\n" "$APXS2" >&6; }
23103else
23104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23105printf "%s\n" "no" >&6; }
23106fi
23107
23108
23109        if test "$APXS2" = "no" ; then
23110            # Extract the first word of "apxs", so it can be a program name with args.
23111set dummy apxs; ac_word=$2
23112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23113printf %s "checking for $ac_word... " >&6; }
23114if test ${ac_cv_path_APXS2+y}
23115then :
23116  printf %s "(cached) " >&6
23117else $as_nop
23118  case $APXS2 in
23119  [\\/]* | ?:[\\/]*)
23120  ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
23121  ;;
23122  *)
23123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23124for as_dir in $PATH
23125do
23126  IFS=$as_save_IFS
23127  case $as_dir in #(((
23128    '') as_dir=./ ;;
23129    */) ;;
23130    *) as_dir=$as_dir/ ;;
23131  esac
23132    for ac_exec_ext in '' $ac_executable_extensions; do
23133  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23134    ac_cv_path_APXS2="$as_dir$ac_word$ac_exec_ext"
23135    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23136    break 2
23137  fi
23138done
23139  done
23140IFS=$as_save_IFS
23141
23142  test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
23143  ;;
23144esac
23145fi
23146APXS2=$ac_cv_path_APXS2
23147if test -n "$APXS2"; then
23148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
23149printf "%s\n" "$APXS2" >&6; }
23150else
23151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152printf "%s\n" "no" >&6; }
23153fi
23154
23155
23156        fi
23157        if test "$APXS2" = "no" ; then
23158          for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin /opt/local/bin ; do
23159            if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
23160              APXS2="$i/apxs2"
23161            fi
23162          done
23163          if test "$APXS2" = "no" ; then
23164            for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin /opt/local/bin ; do
23165              if test "$APXS2" = "no" && test -f "$i/apxs" ; then
23166                APXS2="$i/apxs"
23167              fi
23168            done
23169          fi
23170        fi
23171
23172fi
23173
23174
23175    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if Apache 2.0 apxs was located" >&5
23176printf %s "checking to see if Apache 2.0 apxs was located... " >&6; }
23177    if test ! -f "$APXS2" ; then
23178        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23179printf "%s\n" "no" >&6; }
23180        as_fn_error $? "Unable to locate Apache 2.0 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." "$LINENO" 5
23181    fi
23182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
23183printf "%s\n" "$APXS2" >&6; }
23184
23185
23186    # APR settings
23187
23188# Check whether --with-apr was given.
23189if test ${with_apr+y}
23190then :
23191  withval=$with_apr;
23192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-config name/location" >&5
23193printf %s "checking for user-specified apr-config name/location... " >&6; }
23194        if test "$withval" != "no" ; then
23195            if test "$withval" != "yes"; then
23196                APR_CONFIG=$withval
23197                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23198printf "%s\n" "\"$withval\"" >&6; }
23199            fi
23200        fi
23201
23202else $as_nop
23203
23204        # Extract the first word of "apr-config", so it can be a program name with args.
23205set dummy apr-config; ac_word=$2
23206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23207printf %s "checking for $ac_word... " >&6; }
23208if test ${ac_cv_path_APR_CONFIG+y}
23209then :
23210  printf %s "(cached) " >&6
23211else $as_nop
23212  case $APR_CONFIG in
23213  [\\/]* | ?:[\\/]*)
23214  ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
23215  ;;
23216  *)
23217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23218as_dummy="`$APXS2 -q SBINDIR`:$PATH"
23219for as_dir in $as_dummy
23220do
23221  IFS=$as_save_IFS
23222  case $as_dir in #(((
23223    '') as_dir=./ ;;
23224    */) ;;
23225    *) as_dir=$as_dir/ ;;
23226  esac
23227    for ac_exec_ext in '' $ac_executable_extensions; do
23228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23229    ac_cv_path_APR_CONFIG="$as_dir$ac_word$ac_exec_ext"
23230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23231    break 2
23232  fi
23233done
23234  done
23235IFS=$as_save_IFS
23236
23237  ;;
23238esac
23239fi
23240APR_CONFIG=$ac_cv_path_APR_CONFIG
23241if test -n "$APR_CONFIG"; then
23242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
23243printf "%s\n" "$APR_CONFIG" >&6; }
23244else
23245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23246printf "%s\n" "no" >&6; }
23247fi
23248
23249
23250
23251fi
23252
23253    if test -f "${APR_CONFIG}"; then
23254        APR_INCLUDE="`${APR_CONFIG} --includes`"
23255        APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
23256        APR_LDFLAGS="`${APR_CONFIG} --ldflags`"
23257        APR_LIBS="`${APR_CONFIG} --link-libtool --libs`"
23258    else
23259        as_fn_error $? "Unable to locate apr-config, may need --with-apr option." "$LINENO" 5
23260    fi
23261
23262    # APU settings
23263
23264# Check whether --with-apu was given.
23265if test ${with_apu+y}
23266then :
23267  withval=$with_apu;
23268        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-config name/location" >&5
23269printf %s "checking for user-specified apu-config name/location... " >&6; }
23270        if test "$withval" != "no" ; then
23271            if test "$withval" != "yes"; then
23272                APU_CONFIG=$withval
23273                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23274printf "%s\n" "\"$withval\"" >&6; }
23275            fi
23276        fi
23277
23278else $as_nop
23279
23280        # Extract the first word of "apu-config", so it can be a program name with args.
23281set dummy apu-config; ac_word=$2
23282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23283printf %s "checking for $ac_word... " >&6; }
23284if test ${ac_cv_path_APU_CONFIG+y}
23285then :
23286  printf %s "(cached) " >&6
23287else $as_nop
23288  case $APU_CONFIG in
23289  [\\/]* | ?:[\\/]*)
23290  ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
23291  ;;
23292  *)
23293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23294as_dummy="`$APXS2 -q SBINDIR`:$PATH"
23295for as_dir in $as_dummy
23296do
23297  IFS=$as_save_IFS
23298  case $as_dir in #(((
23299    '') as_dir=./ ;;
23300    */) ;;
23301    *) as_dir=$as_dir/ ;;
23302  esac
23303    for ac_exec_ext in '' $ac_executable_extensions; do
23304  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23305    ac_cv_path_APU_CONFIG="$as_dir$ac_word$ac_exec_ext"
23306    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23307    break 2
23308  fi
23309done
23310  done
23311IFS=$as_save_IFS
23312
23313  ;;
23314esac
23315fi
23316APU_CONFIG=$ac_cv_path_APU_CONFIG
23317if test -n "$APU_CONFIG"; then
23318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5
23319printf "%s\n" "$APU_CONFIG" >&6; }
23320else
23321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23322printf "%s\n" "no" >&6; }
23323fi
23324
23325
23326
23327fi
23328
23329    if test -f "${APU_CONFIG}"; then
23330        APU_INCLUDE="`${APU_CONFIG} --includes`"
23331        APU_LDFLAGS="`${APU_CONFIG} --ldflags`"
23332        APU_LIBS="`${APU_CONFIG} --link-libtool --libs`"
23333    else
23334        as_fn_error $? "Unable to locate apu-config, may need --with-apu option." "$LINENO" 5
23335    fi
23336
23337    # extract settings we need from APXS2 -q
23338    APXS2_CC="`$APXS2 -q CC`"
23339    APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS"
23340    APXS2_INCLUDE="-I`$APXS2 -q INCLUDEDIR` $APR_INCLUDE $APU_INCLUDE"
23341    APXS2_LDFLAGS="`$APXS2 -q LDFLAGS` $APR_LDFLAGS $APU_LDFLAGS"
23342    APXS2_LIBS="`$APXS2 -q LIBS` $APR_LIBS $APU_LIBS"
23343fi
23344
23345
23346
23347
23348
23349
23350
23351# Apache 2.2 (mod_shib_22)
23352#   --enable-apache-22
23353#   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
23354#   --with-apr1       (DSO build, APR development package installed separately)
23355#   --with-apu1       (DSO build, APR-UTIL development package installed separately)
23356
23357# Check whether --enable-apache-22 was given.
23358if test ${enable_apache_22+y}
23359then :
23360  enableval=$enable_apache_22; if test "x$enableval" = "x" ; then
23361         WANT_APACHE_22=yes
23362	 else
23363	     WANT_APACHE_22="$enableval"
23364	 fi
23365
23366else $as_nop
23367   WANT_APACHE_22=no
23368fi
23369
23370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.2 module" >&5
23371printf %s "checking whether to build Apache 2.2 module... " >&6; }
23372if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
23373    WANT_APACHE_22=yes
23374fi
23375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_22" >&5
23376printf "%s\n" "$WANT_APACHE_22" >&6; }
23377
23378if test "$WANT_APACHE_22" = "yes" ; then
23379
23380# Check whether --with-apxs22 was given.
23381if test ${with_apxs22+y}
23382then :
23383  withval=$with_apxs22;
23384        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache 2.2 apxs name/location" >&5
23385printf %s "checking for user-specified Apache 2.2 apxs name/location... " >&6; }
23386        if test "$withval" != "no" ; then
23387          if test "$withval" != "yes"; then
23388            APXS22=$withval
23389            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23390printf "%s\n" "\"$withval\"" >&6; }
23391          fi
23392        fi
23393
23394else $as_nop
23395
23396        # Extract the first word of "apxs2", so it can be a program name with args.
23397set dummy apxs2; ac_word=$2
23398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23399printf %s "checking for $ac_word... " >&6; }
23400if test ${ac_cv_path_APXS22+y}
23401then :
23402  printf %s "(cached) " >&6
23403else $as_nop
23404  case $APXS22 in
23405  [\\/]* | ?:[\\/]*)
23406  ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
23407  ;;
23408  *)
23409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23410for as_dir in $PATH
23411do
23412  IFS=$as_save_IFS
23413  case $as_dir in #(((
23414    '') as_dir=./ ;;
23415    */) ;;
23416    *) as_dir=$as_dir/ ;;
23417  esac
23418    for ac_exec_ext in '' $ac_executable_extensions; do
23419  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23420    ac_cv_path_APXS22="$as_dir$ac_word$ac_exec_ext"
23421    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23422    break 2
23423  fi
23424done
23425  done
23426IFS=$as_save_IFS
23427
23428  test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
23429  ;;
23430esac
23431fi
23432APXS22=$ac_cv_path_APXS22
23433if test -n "$APXS22"; then
23434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
23435printf "%s\n" "$APXS22" >&6; }
23436else
23437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23438printf "%s\n" "no" >&6; }
23439fi
23440
23441
23442        if test "$APXS22" = "no" ; then
23443            # Extract the first word of "apxs", so it can be a program name with args.
23444set dummy apxs; ac_word=$2
23445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23446printf %s "checking for $ac_word... " >&6; }
23447if test ${ac_cv_path_APXS22+y}
23448then :
23449  printf %s "(cached) " >&6
23450else $as_nop
23451  case $APXS22 in
23452  [\\/]* | ?:[\\/]*)
23453  ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
23454  ;;
23455  *)
23456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23457for as_dir in $PATH
23458do
23459  IFS=$as_save_IFS
23460  case $as_dir in #(((
23461    '') as_dir=./ ;;
23462    */) ;;
23463    *) as_dir=$as_dir/ ;;
23464  esac
23465    for ac_exec_ext in '' $ac_executable_extensions; do
23466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23467    ac_cv_path_APXS22="$as_dir$ac_word$ac_exec_ext"
23468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23469    break 2
23470  fi
23471done
23472  done
23473IFS=$as_save_IFS
23474
23475  test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
23476  ;;
23477esac
23478fi
23479APXS22=$ac_cv_path_APXS22
23480if test -n "$APXS22"; then
23481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
23482printf "%s\n" "$APXS22" >&6; }
23483else
23484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23485printf "%s\n" "no" >&6; }
23486fi
23487
23488
23489        fi
23490        if test "$APXS22" = "no" ; then
23491          for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin /opt/local/bin ; do
23492            if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
23493              APXS22="$i/apxs2"
23494            fi
23495          done
23496          if test "$APXS22" = "no" ; then
23497            for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin /opt/local/bin ; do
23498              if test "$APXS22" = "no" && test -f "$i/apxs" ; then
23499                APXS22="$i/apxs"
23500              fi
23501            done
23502          fi
23503        fi
23504
23505fi
23506
23507
23508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if Apache 2.2 apxs was located" >&5
23509printf %s "checking to see if Apache 2.2 apxs was located... " >&6; }
23510    if test ! -f "$APXS22" ; then
23511        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23512printf "%s\n" "no" >&6; }
23513        as_fn_error $? "Unable to locate Apache 2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." "$LINENO" 5
23514    fi
23515    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
23516printf "%s\n" "$APXS22" >&6; }
23517
23518
23519    # APR1 settings
23520
23521# Check whether --with-apr1 was given.
23522if test ${with_apr1+y}
23523then :
23524  withval=$with_apr1;
23525        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-1-config name/location" >&5
23526printf %s "checking for user-specified apr-1-config name/location... " >&6; }
23527        if test "$withval" != "no" ; then
23528            if test "$withval" != "yes"; then
23529                APR1_CONFIG=$withval
23530                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23531printf "%s\n" "\"$withval\"" >&6; }
23532            fi
23533        fi
23534
23535else $as_nop
23536
23537        # Extract the first word of "apr-1-config", so it can be a program name with args.
23538set dummy apr-1-config; ac_word=$2
23539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23540printf %s "checking for $ac_word... " >&6; }
23541if test ${ac_cv_path_APR1_CONFIG+y}
23542then :
23543  printf %s "(cached) " >&6
23544else $as_nop
23545  case $APR1_CONFIG in
23546  [\\/]* | ?:[\\/]*)
23547  ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
23548  ;;
23549  *)
23550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23551as_dummy="`$APXS22 -q SBINDIR`:$PATH"
23552for as_dir in $as_dummy
23553do
23554  IFS=$as_save_IFS
23555  case $as_dir in #(((
23556    '') as_dir=./ ;;
23557    */) ;;
23558    *) as_dir=$as_dir/ ;;
23559  esac
23560    for ac_exec_ext in '' $ac_executable_extensions; do
23561  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23562    ac_cv_path_APR1_CONFIG="$as_dir$ac_word$ac_exec_ext"
23563    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23564    break 2
23565  fi
23566done
23567  done
23568IFS=$as_save_IFS
23569
23570  ;;
23571esac
23572fi
23573APR1_CONFIG=$ac_cv_path_APR1_CONFIG
23574if test -n "$APR1_CONFIG"; then
23575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APR1_CONFIG" >&5
23576printf "%s\n" "$APR1_CONFIG" >&6; }
23577else
23578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23579printf "%s\n" "no" >&6; }
23580fi
23581
23582
23583
23584fi
23585
23586    if test -f "${APR1_CONFIG}"; then
23587        APR1_INCLUDE="`${APR1_CONFIG} --includes`"
23588        APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags`"
23589        APR1_LDFLAGS="`${APR1_CONFIG} --ldflags`"
23590        APR1_LIBS="`${APR1_CONFIG} --link-libtool --libs`"
23591    else
23592        as_fn_error $? "Unable to locate apr-1-config, may need --with-apr1 option." "$LINENO" 5
23593    fi
23594
23595    # APU1 settings
23596
23597# Check whether --with-apu1 was given.
23598if test ${with_apu1+y}
23599then :
23600  withval=$with_apu1;
23601        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-1-config name/location" >&5
23602printf %s "checking for user-specified apu-1-config name/location... " >&6; }
23603        if test "$withval" != "no" ; then
23604            if test "$withval" != "yes"; then
23605                APU1_CONFIG=$withval
23606                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23607printf "%s\n" "\"$withval\"" >&6; }
23608            fi
23609        fi
23610
23611else $as_nop
23612
23613        # Extract the first word of "apu-1-config", so it can be a program name with args.
23614set dummy apu-1-config; ac_word=$2
23615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23616printf %s "checking for $ac_word... " >&6; }
23617if test ${ac_cv_path_APU1_CONFIG+y}
23618then :
23619  printf %s "(cached) " >&6
23620else $as_nop
23621  case $APU1_CONFIG in
23622  [\\/]* | ?:[\\/]*)
23623  ac_cv_path_APU1_CONFIG="$APU1_CONFIG" # Let the user override the test with a path.
23624  ;;
23625  *)
23626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23627as_dummy="`$APXS22 -q SBINDIR`:$PATH"
23628for as_dir in $as_dummy
23629do
23630  IFS=$as_save_IFS
23631  case $as_dir in #(((
23632    '') as_dir=./ ;;
23633    */) ;;
23634    *) as_dir=$as_dir/ ;;
23635  esac
23636    for ac_exec_ext in '' $ac_executable_extensions; do
23637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23638    ac_cv_path_APU1_CONFIG="$as_dir$ac_word$ac_exec_ext"
23639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23640    break 2
23641  fi
23642done
23643  done
23644IFS=$as_save_IFS
23645
23646  ;;
23647esac
23648fi
23649APU1_CONFIG=$ac_cv_path_APU1_CONFIG
23650if test -n "$APU1_CONFIG"; then
23651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APU1_CONFIG" >&5
23652printf "%s\n" "$APU1_CONFIG" >&6; }
23653else
23654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655printf "%s\n" "no" >&6; }
23656fi
23657
23658
23659
23660fi
23661
23662    if test -f "${APU1_CONFIG}"; then
23663        APU1_INCLUDE="`${APU1_CONFIG} --includes`"
23664        APU1_LDFLAGS="`${APU1_CONFIG} --ldflags`"
23665        APU1_LIBS="`${APU1_CONFIG} --link-libtool --libs`"
23666    else
23667        as_fn_error $? "Unable to locate apu-1-config, may need --with-apu1 option." "$LINENO" 5
23668    fi
23669
23670    # extract settings we need from APXS22 -q
23671    APXS22_CC="`$APXS22 -q CC`"
23672    APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS"
23673    APXS22_INCLUDE="-I`$APXS22 -q INCLUDEDIR` $APR1_INCLUDE $APU1_INCLUDE"
23674    APXS22_LDFLAGS="`$APXS22 -q LDFLAGS` $APR1_LDFLAGS $APU1_LDFLAGS"
23675    APXS22_LIBS="`$APXS22 -q LIBS` $APR1_LIBS $APU1_LIBS"
23676fi
23677
23678
23679
23680
23681
23682
23683# Apache 2.4 (mod_shib_24)
23684#   --enable-apache-24
23685#   --with-apxs24     (DSO build, the normal way, uses apxs to derive build flags)
23686#   --with-apr1       (DSO build, APR development package installed separately)
23687#   --with-apu1       (DSO build, APR-UTIL development package installed separately)
23688
23689# Check whether --enable-apache-24 was given.
23690if test ${enable_apache_24+y}
23691then :
23692  enableval=$enable_apache_24; if test "x$enableval" = "x" ; then
23693         WANT_APACHE_24=yes
23694	 else
23695	     WANT_APACHE_24="$enableval"
23696	 fi
23697
23698else $as_nop
23699   WANT_APACHE_24=no
23700fi
23701
23702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.4 module" >&5
23703printf %s "checking whether to build Apache 2.4 module... " >&6; }
23704if test "$WANT_APACHE_24" != yes && test "$WANT_APACHE_24" != no ; then
23705    WANT_APACHE_24=yes
23706fi
23707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_24" >&5
23708printf "%s\n" "$WANT_APACHE_24" >&6; }
23709
23710if test "$WANT_APACHE_24" = "yes" ; then
23711
23712# Check whether --with-apxs24 was given.
23713if test ${with_apxs24+y}
23714then :
23715  withval=$with_apxs24;
23716        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache 2.4 apxs name/location" >&5
23717printf %s "checking for user-specified Apache 2.4 apxs name/location... " >&6; }
23718        if test "$withval" != "no" ; then
23719          if test "$withval" != "yes"; then
23720            APXS24=$withval
23721            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23722printf "%s\n" "\"$withval\"" >&6; }
23723          fi
23724        fi
23725
23726else $as_nop
23727
23728        # Extract the first word of "apxs2", so it can be a program name with args.
23729set dummy apxs2; ac_word=$2
23730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23731printf %s "checking for $ac_word... " >&6; }
23732if test ${ac_cv_path_APXS24+y}
23733then :
23734  printf %s "(cached) " >&6
23735else $as_nop
23736  case $APXS24 in
23737  [\\/]* | ?:[\\/]*)
23738  ac_cv_path_APXS24="$APXS24" # Let the user override the test with a path.
23739  ;;
23740  *)
23741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23742for as_dir in $PATH
23743do
23744  IFS=$as_save_IFS
23745  case $as_dir in #(((
23746    '') as_dir=./ ;;
23747    */) ;;
23748    *) as_dir=$as_dir/ ;;
23749  esac
23750    for ac_exec_ext in '' $ac_executable_extensions; do
23751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23752    ac_cv_path_APXS24="$as_dir$ac_word$ac_exec_ext"
23753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23754    break 2
23755  fi
23756done
23757  done
23758IFS=$as_save_IFS
23759
23760  test -z "$ac_cv_path_APXS24" && ac_cv_path_APXS24="no"
23761  ;;
23762esac
23763fi
23764APXS24=$ac_cv_path_APXS24
23765if test -n "$APXS24"; then
23766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS24" >&5
23767printf "%s\n" "$APXS24" >&6; }
23768else
23769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23770printf "%s\n" "no" >&6; }
23771fi
23772
23773
23774        if test "$APXS24" = "no" ; then
23775            # Extract the first word of "apxs", so it can be a program name with args.
23776set dummy apxs; ac_word=$2
23777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23778printf %s "checking for $ac_word... " >&6; }
23779if test ${ac_cv_path_APXS24+y}
23780then :
23781  printf %s "(cached) " >&6
23782else $as_nop
23783  case $APXS24 in
23784  [\\/]* | ?:[\\/]*)
23785  ac_cv_path_APXS24="$APXS24" # Let the user override the test with a path.
23786  ;;
23787  *)
23788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23789for as_dir in $PATH
23790do
23791  IFS=$as_save_IFS
23792  case $as_dir in #(((
23793    '') as_dir=./ ;;
23794    */) ;;
23795    *) as_dir=$as_dir/ ;;
23796  esac
23797    for ac_exec_ext in '' $ac_executable_extensions; do
23798  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23799    ac_cv_path_APXS24="$as_dir$ac_word$ac_exec_ext"
23800    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23801    break 2
23802  fi
23803done
23804  done
23805IFS=$as_save_IFS
23806
23807  test -z "$ac_cv_path_APXS24" && ac_cv_path_APXS24="no"
23808  ;;
23809esac
23810fi
23811APXS24=$ac_cv_path_APXS24
23812if test -n "$APXS24"; then
23813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS24" >&5
23814printf "%s\n" "$APXS24" >&6; }
23815else
23816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817printf "%s\n" "no" >&6; }
23818fi
23819
23820
23821        fi
23822        if test "$APXS24" = "no" ; then
23823          for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin /opt/local/bin ; do
23824            if test "$APXS24" = "no" && test -f "$i/apxs2" ; then
23825              APXS24="$i/apxs2"
23826            fi
23827          done
23828          if test "$APXS24" = "no" ; then
23829            for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin /opt/local/bin ; do
23830              if test "$APXS24" = "no" && test -f "$i/apxs" ; then
23831                APXS24="$i/apxs"
23832              fi
23833            done
23834          fi
23835        fi
23836
23837fi
23838
23839
23840    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if Apache 2.4 apxs was located" >&5
23841printf %s "checking to see if Apache 2.4 apxs was located... " >&6; }
23842    if test ! -f "$APXS24" ; then
23843        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23844printf "%s\n" "no" >&6; }
23845        as_fn_error $? "Unable to locate Apache 2.4 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs24 option." "$LINENO" 5
23846    fi
23847    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS24" >&5
23848printf "%s\n" "$APXS24" >&6; }
23849
23850
23851    # If we haven't done this work already for Apache 2.2
23852    if test "$WANT_APACHE_22" != "yes" ; then
23853        # APR1 settings
23854
23855# Check whether --with-apr1 was given.
23856if test ${with_apr1+y}
23857then :
23858  withval=$with_apr1;
23859            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-1-config name/location" >&5
23860printf %s "checking for user-specified apr-1-config name/location... " >&6; }
23861            if test "$withval" != "no" ; then
23862                if test "$withval" != "yes"; then
23863                    APR1_CONFIG=$withval
23864                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23865printf "%s\n" "\"$withval\"" >&6; }
23866                fi
23867            fi
23868
23869else $as_nop
23870
23871            # Extract the first word of "apr-1-config", so it can be a program name with args.
23872set dummy apr-1-config; ac_word=$2
23873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23874printf %s "checking for $ac_word... " >&6; }
23875if test ${ac_cv_path_APR1_CONFIG+y}
23876then :
23877  printf %s "(cached) " >&6
23878else $as_nop
23879  case $APR1_CONFIG in
23880  [\\/]* | ?:[\\/]*)
23881  ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
23882  ;;
23883  *)
23884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23885as_dummy="`$APXS24 -q SBINDIR`:$PATH"
23886for as_dir in $as_dummy
23887do
23888  IFS=$as_save_IFS
23889  case $as_dir in #(((
23890    '') as_dir=./ ;;
23891    */) ;;
23892    *) as_dir=$as_dir/ ;;
23893  esac
23894    for ac_exec_ext in '' $ac_executable_extensions; do
23895  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23896    ac_cv_path_APR1_CONFIG="$as_dir$ac_word$ac_exec_ext"
23897    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23898    break 2
23899  fi
23900done
23901  done
23902IFS=$as_save_IFS
23903
23904  ;;
23905esac
23906fi
23907APR1_CONFIG=$ac_cv_path_APR1_CONFIG
23908if test -n "$APR1_CONFIG"; then
23909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APR1_CONFIG" >&5
23910printf "%s\n" "$APR1_CONFIG" >&6; }
23911else
23912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23913printf "%s\n" "no" >&6; }
23914fi
23915
23916
23917
23918fi
23919
23920        if test -f "${APR1_CONFIG}"; then
23921            APR1_INCLUDE="`${APR1_CONFIG} --includes`"
23922            APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags`"
23923            APR1_LDFLAGS="`${APR1_CONFIG} --ldflags`"
23924            APR1_LIBS="`${APR1_CONFIG} --link-libtool --libs`"
23925        else
23926            as_fn_error $? "Unable to locate apr-1-config, may need --with-apr1 option." "$LINENO" 5
23927        fi
23928
23929        # APU1 settings
23930
23931# Check whether --with-apu1 was given.
23932if test ${with_apu1+y}
23933then :
23934  withval=$with_apu1;
23935            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-1-config name/location" >&5
23936printf %s "checking for user-specified apu-1-config name/location... " >&6; }
23937            if test "$withval" != "no" ; then
23938                if test "$withval" != "yes"; then
23939                    APU1_CONFIG=$withval
23940                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
23941printf "%s\n" "\"$withval\"" >&6; }
23942                fi
23943            fi
23944
23945else $as_nop
23946
23947            # Extract the first word of "apu-1-config", so it can be a program name with args.
23948set dummy apu-1-config; ac_word=$2
23949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23950printf %s "checking for $ac_word... " >&6; }
23951if test ${ac_cv_path_APU1_CONFIG+y}
23952then :
23953  printf %s "(cached) " >&6
23954else $as_nop
23955  case $APU1_CONFIG in
23956  [\\/]* | ?:[\\/]*)
23957  ac_cv_path_APU1_CONFIG="$APU1_CONFIG" # Let the user override the test with a path.
23958  ;;
23959  *)
23960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23961as_dummy="`$APXS24 -q SBINDIR`:$PATH"
23962for as_dir in $as_dummy
23963do
23964  IFS=$as_save_IFS
23965  case $as_dir in #(((
23966    '') as_dir=./ ;;
23967    */) ;;
23968    *) as_dir=$as_dir/ ;;
23969  esac
23970    for ac_exec_ext in '' $ac_executable_extensions; do
23971  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23972    ac_cv_path_APU1_CONFIG="$as_dir$ac_word$ac_exec_ext"
23973    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23974    break 2
23975  fi
23976done
23977  done
23978IFS=$as_save_IFS
23979
23980  ;;
23981esac
23982fi
23983APU1_CONFIG=$ac_cv_path_APU1_CONFIG
23984if test -n "$APU1_CONFIG"; then
23985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APU1_CONFIG" >&5
23986printf "%s\n" "$APU1_CONFIG" >&6; }
23987else
23988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23989printf "%s\n" "no" >&6; }
23990fi
23991
23992
23993
23994fi
23995
23996        if test -f "${APU1_CONFIG}"; then
23997            APU1_INCLUDE="`${APU1_CONFIG} --includes`"
23998            APU1_LDFLAGS="`${APU1_CONFIG} --ldflags`"
23999            APU1_LIBS="`${APU1_CONFIG} --link-libtool --libs`"
24000        else
24001            as_fn_error $? "Unable to locate apu-1-config, may need --with-apu1 option." "$LINENO" 5
24002        fi
24003    fi
24004
24005    # extract settings we need from APXS24 -q
24006    APXS24_CC="`$APXS24 -q CC`"
24007    APXS24_CFLAGS="`$APXS24 -q CPPFLAGS` `$APXS24 -q CFLAGS` $APR1_CFLAGS"
24008    APXS24_INCLUDE="-I`$APXS24 -q INCLUDEDIR` $APR1_INCLUDE $APU1_INCLUDE"
24009    APXS24_LDFLAGS="`$APXS24 -q LDFLAGS` $APR1_LDFLAGS $APU1_LDFLAGS"
24010    APXS24_LIBS="`$APXS24 -q LIBS` $APR1_LIBS $APU1_LIBS"
24011fi
24012
24013
24014
24015
24016
24017
24018# always output the Makefile, even if you don't use it
24019ac_config_files="$ac_config_files apache/Makefile"
24020
24021 if test "$WANT_APACHE_13" = "yes"; then
24022  BUILD_AP13_TRUE=
24023  BUILD_AP13_FALSE='#'
24024else
24025  BUILD_AP13_TRUE='#'
24026  BUILD_AP13_FALSE=
24027fi
24028
24029 if test "$WANT_APACHE_20" = "yes"; then
24030  BUILD_AP20_TRUE=
24031  BUILD_AP20_FALSE='#'
24032else
24033  BUILD_AP20_TRUE='#'
24034  BUILD_AP20_FALSE=
24035fi
24036
24037 if test "$WANT_APACHE_22" = "yes"; then
24038  BUILD_AP22_TRUE=
24039  BUILD_AP22_FALSE='#'
24040else
24041  BUILD_AP22_TRUE='#'
24042  BUILD_AP22_FALSE=
24043fi
24044
24045 if test "$WANT_APACHE_24" = "yes"; then
24046  BUILD_AP24_TRUE=
24047  BUILD_AP24_FALSE='#'
24048else
24049  BUILD_AP24_TRUE='#'
24050  BUILD_AP24_FALSE=
24051fi
24052
24053
24054# add the apache module to the list of wanted subdirs..
24055if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" || test "$WANT_APACHE_24" = "yes" ; then
24056    WANT_SUBDIRS="$WANT_SUBDIRS apache"
24057fi
24058
24059
24060#
24061# Implement the checks of the ODBC Storage Service
24062#
24063# 1) Assume the user wants ODBC; if it's not found then just continue without
24064# 2) If the user specifically requested odbc, look for it and ERROR if not found
24065# 3) If the user specifically requested no odbc, don't build it.
24066#
24067
24068ac_config_files="$ac_config_files odbc-store/Makefile"
24069
24070
24071# determine whether we should enable the odbc ccache
24072# Check whether --enable-odbc was given.
24073if test ${enable_odbc+y}
24074then :
24075  enableval=$enable_odbc; odbc_enabled=$enableval
24076else $as_nop
24077  odbc_enabled=default
24078fi
24079
24080if test "x$odbc_enabled" = "x" ; then
24081    odbc_enabled=yes
24082fi
24083
24084# Are we trying to build ODBC?
24085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the ODBC storage service" >&5
24086printf %s "checking whether to build the ODBC storage service... " >&6; }
24087if test "$odbc_enabled" = "yes" ; then
24088    build_odbc=yes
24089    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24090printf "%s\n" "yes" >&6; }
24091elif test "$odbc_enabled" = "default" ; then
24092    build_odbc=yes
24093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if it can be found" >&5
24094printf "%s\n" "yes, if it can be found" >&6; }
24095else
24096    build_odbc=no
24097    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24098printf "%s\n" "no" >&6; }
24099fi
24100
24101# If we're trying to build ODBC, try to find the odbc_config program.
24102if test "$build_odbc" = "yes" ; then
24103    odbc_dir=""
24104
24105# Check whether --with-odbc was given.
24106if test ${with_odbc+y}
24107then :
24108  withval=$with_odbc; if test "$with_odbc" = no ; then
24109            as_fn_error $? "Try running --disable-odbc instead." "$LINENO" 5
24110         elif test "$with_odbc" != yes ; then
24111            odbc_dir="$with_odbc/bin"
24112            if test "$with_odbc" != /usr ; then
24113                ODBC_CFLAGS="-I$with_odbc/include"
24114                ODBC_LIBS="-L$with_odbc/lib"
24115            fi
24116         fi
24117fi
24118
24119
24120   # Extract the first word of "odbc_config", so it can be a program name with args.
24121set dummy odbc_config; ac_word=$2
24122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24123printf %s "checking for $ac_word... " >&6; }
24124if test ${ac_cv_path_ODBC_CONFIG+y}
24125then :
24126  printf %s "(cached) " >&6
24127else $as_nop
24128  case $ODBC_CONFIG in
24129  [\\/]* | ?:[\\/]*)
24130  ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
24131  ;;
24132  *)
24133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24134for as_dir in $odbc_dir $PATH
24135do
24136  IFS=$as_save_IFS
24137  case $as_dir in #(((
24138    '') as_dir=./ ;;
24139    */) ;;
24140    *) as_dir=$as_dir/ ;;
24141  esac
24142    for ac_exec_ext in '' $ac_executable_extensions; do
24143  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24144    ac_cv_path_ODBC_CONFIG="$as_dir$ac_word$ac_exec_ext"
24145    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24146    break 2
24147  fi
24148done
24149  done
24150IFS=$as_save_IFS
24151
24152  test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
24153  ;;
24154esac
24155fi
24156ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
24157if test -n "$ODBC_CONFIG"; then
24158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
24159printf "%s\n" "$ODBC_CONFIG" >&6; }
24160else
24161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24162printf "%s\n" "no" >&6; }
24163fi
24164
24165
24166   if test "$ODBC_CONFIG" = no ; then
24167      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find odbc_config, will try to guess settings." >&5
24168printf "%s\n" "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
24169      ODBC_LIBS="$ODBC_LIBS -lodbc"
24170   else
24171      ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
24172      ODBC_LIBS=`$ODBC_CONFIG --libs`
24173   fi
24174
24175   save_CPPFLAGS="$CPPFLAGS"
24176   CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
24177
24178   ac_fn_cxx_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
24179if test "x$ac_cv_header_sql_h" = xyes
24180then :
24181  have_sql_h=yes
24182else $as_nop
24183  have_sql_h=no
24184fi
24185
24186   if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
24187     as_fn_error $? "unable to find ODBC header files" "$LINENO" 5
24188   fi
24189
24190   if test "$have_sql_h" = yes ; then
24191      save_LIBS="$LIBS"
24192      LIBS="$LIBS $ODBC_LIBS"
24193      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link againt ODBC" >&5
24194printf %s "checking if we can link againt ODBC... " >&6; }
24195      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24196/* end confdefs.h.  */
24197#include <sql.h>
24198 #include <sqlext.h>
24199 #include <stdio.h>
24200int
24201main (void)
24202{
24203SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
24204  ;
24205  return 0;
24206}
24207_ACEOF
24208if ac_fn_cxx_try_link "$LINENO"
24209then :
24210  have_odbc_libs=yes
24211else $as_nop
24212  have_odbc_libs=no
24213fi
24214rm -f core conftest.err conftest.$ac_objext conftest.beam \
24215    conftest$ac_exeext conftest.$ac_ext
24216      LIBS="$save_LIBS"
24217      if test "$have_odbc_libs" = no ; then
24218         if test "$odbc_enabled" = "yes" ; then
24219            as_fn_error $? "unable to link with ODBC Library" "$LINENO" 5
24220         else
24221            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, skipping ODBC" >&5
24222printf "%s\n" "no, skipping ODBC" >&6; }
24223         fi
24224      fi
24225   fi
24226
24227   CPPFLAGS="$save_CPPFLAGS"
24228fi
24229
24230# if have_odbc_libs=yes then go ahead with building ODBC
24231if test "$have_odbc_libs" = yes ; then
24232   # this AC_MSG_RESULT is from above!
24233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24234printf "%s\n" "yes" >&6; }
24235   WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
24236
24237
24238fi
24239
24240
24241# Check whether --with-gssapi was given.
24242if test ${with_gssapi+y}
24243then :
24244  withval=$with_gssapi;
24245else $as_nop
24246  with_gssapi=check
24247fi
24248
24249if test "x$with_gssapi" != xno
24250then :
24251
24252
24253
24254
24255
24256pkg_failed=no
24257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  krb5-gssapi" >&5
24258printf %s "checking for  krb5-gssapi... " >&6; }
24259
24260if test -n "$gss_CFLAGS"; then
24261    pkg_cv_gss_CFLAGS="$gss_CFLAGS"
24262 elif test -n "$PKG_CONFIG"; then
24263    if test -n "$PKG_CONFIG" && \
24264    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" krb5-gssapi\""; } >&5
24265  ($PKG_CONFIG --exists --print-errors " krb5-gssapi") 2>&5
24266  ac_status=$?
24267  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24268  test $ac_status = 0; }; then
24269  pkg_cv_gss_CFLAGS=`$PKG_CONFIG --cflags " krb5-gssapi" 2>/dev/null`
24270		      test "x$?" != "x0" && pkg_failed=yes
24271else
24272  pkg_failed=yes
24273fi
24274 else
24275    pkg_failed=untried
24276fi
24277if test -n "$gss_LIBS"; then
24278    pkg_cv_gss_LIBS="$gss_LIBS"
24279 elif test -n "$PKG_CONFIG"; then
24280    if test -n "$PKG_CONFIG" && \
24281    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" krb5-gssapi\""; } >&5
24282  ($PKG_CONFIG --exists --print-errors " krb5-gssapi") 2>&5
24283  ac_status=$?
24284  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24285  test $ac_status = 0; }; then
24286  pkg_cv_gss_LIBS=`$PKG_CONFIG --libs " krb5-gssapi" 2>/dev/null`
24287		      test "x$?" != "x0" && pkg_failed=yes
24288else
24289  pkg_failed=yes
24290fi
24291 else
24292    pkg_failed=untried
24293fi
24294
24295
24296
24297if test $pkg_failed = yes; then
24298        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24299printf "%s\n" "no" >&6; }
24300
24301if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24302        _pkg_short_errors_supported=yes
24303else
24304        _pkg_short_errors_supported=no
24305fi
24306        if test $_pkg_short_errors_supported = yes; then
24307	        gss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " krb5-gssapi" 2>&1`
24308        else
24309	        gss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " krb5-gssapi" 2>&1`
24310        fi
24311	# Put the nasty error message in config.log where it belongs
24312	echo "$gss_PKG_ERRORS" >&5
24313
24314
24315
24316
24317
24318
24319pkg_failed=no
24320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  gss" >&5
24321printf %s "checking for  gss... " >&6; }
24322
24323if test -n "$gnu_gss_CFLAGS"; then
24324    pkg_cv_gnu_gss_CFLAGS="$gnu_gss_CFLAGS"
24325 elif test -n "$PKG_CONFIG"; then
24326    if test -n "$PKG_CONFIG" && \
24327    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gss\""; } >&5
24328  ($PKG_CONFIG --exists --print-errors " gss") 2>&5
24329  ac_status=$?
24330  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331  test $ac_status = 0; }; then
24332  pkg_cv_gnu_gss_CFLAGS=`$PKG_CONFIG --cflags " gss" 2>/dev/null`
24333		      test "x$?" != "x0" && pkg_failed=yes
24334else
24335  pkg_failed=yes
24336fi
24337 else
24338    pkg_failed=untried
24339fi
24340if test -n "$gnu_gss_LIBS"; then
24341    pkg_cv_gnu_gss_LIBS="$gnu_gss_LIBS"
24342 elif test -n "$PKG_CONFIG"; then
24343    if test -n "$PKG_CONFIG" && \
24344    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gss\""; } >&5
24345  ($PKG_CONFIG --exists --print-errors " gss") 2>&5
24346  ac_status=$?
24347  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348  test $ac_status = 0; }; then
24349  pkg_cv_gnu_gss_LIBS=`$PKG_CONFIG --libs " gss" 2>/dev/null`
24350		      test "x$?" != "x0" && pkg_failed=yes
24351else
24352  pkg_failed=yes
24353fi
24354 else
24355    pkg_failed=untried
24356fi
24357
24358
24359
24360if test $pkg_failed = yes; then
24361        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24362printf "%s\n" "no" >&6; }
24363
24364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24365        _pkg_short_errors_supported=yes
24366else
24367        _pkg_short_errors_supported=no
24368fi
24369        if test $_pkg_short_errors_supported = yes; then
24370	        gnu_gss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gss" 2>&1`
24371        else
24372	        gnu_gss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gss" 2>&1`
24373        fi
24374	# Put the nasty error message in config.log where it belongs
24375	echo "$gnu_gss_PKG_ERRORS" >&5
24376
24377	with_gssapi=no
24378elif test $pkg_failed = untried; then
24379        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24380printf "%s\n" "no" >&6; }
24381	with_gssapi=no
24382else
24383	gnu_gss_CFLAGS=$pkg_cv_gnu_gss_CFLAGS
24384	gnu_gss_LIBS=$pkg_cv_gnu_gss_LIBS
24385        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24386printf "%s\n" "yes" >&6; }
24387
24388        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
24389        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE gss"
24390
24391printf "%s\n" "#define SHIBSP_HAVE_GSSGNU 1" >>confdefs.h
24392
24393fi
24394
24395    # Substitute output.
24396
24397
24398
24399elif test $pkg_failed = untried; then
24400        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24401printf "%s\n" "no" >&6; }
24402
24403
24404
24405
24406
24407pkg_failed=no
24408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for  gss" >&5
24409printf %s "checking for  gss... " >&6; }
24410
24411if test -n "$gnu_gss_CFLAGS"; then
24412    pkg_cv_gnu_gss_CFLAGS="$gnu_gss_CFLAGS"
24413 elif test -n "$PKG_CONFIG"; then
24414    if test -n "$PKG_CONFIG" && \
24415    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gss\""; } >&5
24416  ($PKG_CONFIG --exists --print-errors " gss") 2>&5
24417  ac_status=$?
24418  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419  test $ac_status = 0; }; then
24420  pkg_cv_gnu_gss_CFLAGS=`$PKG_CONFIG --cflags " gss" 2>/dev/null`
24421		      test "x$?" != "x0" && pkg_failed=yes
24422else
24423  pkg_failed=yes
24424fi
24425 else
24426    pkg_failed=untried
24427fi
24428if test -n "$gnu_gss_LIBS"; then
24429    pkg_cv_gnu_gss_LIBS="$gnu_gss_LIBS"
24430 elif test -n "$PKG_CONFIG"; then
24431    if test -n "$PKG_CONFIG" && \
24432    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gss\""; } >&5
24433  ($PKG_CONFIG --exists --print-errors " gss") 2>&5
24434  ac_status=$?
24435  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24436  test $ac_status = 0; }; then
24437  pkg_cv_gnu_gss_LIBS=`$PKG_CONFIG --libs " gss" 2>/dev/null`
24438		      test "x$?" != "x0" && pkg_failed=yes
24439else
24440  pkg_failed=yes
24441fi
24442 else
24443    pkg_failed=untried
24444fi
24445
24446
24447
24448if test $pkg_failed = yes; then
24449        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24450printf "%s\n" "no" >&6; }
24451
24452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24453        _pkg_short_errors_supported=yes
24454else
24455        _pkg_short_errors_supported=no
24456fi
24457        if test $_pkg_short_errors_supported = yes; then
24458	        gnu_gss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gss" 2>&1`
24459        else
24460	        gnu_gss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gss" 2>&1`
24461        fi
24462	# Put the nasty error message in config.log where it belongs
24463	echo "$gnu_gss_PKG_ERRORS" >&5
24464
24465	with_gssapi=no
24466elif test $pkg_failed = untried; then
24467        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24468printf "%s\n" "no" >&6; }
24469	with_gssapi=no
24470else
24471	gnu_gss_CFLAGS=$pkg_cv_gnu_gss_CFLAGS
24472	gnu_gss_LIBS=$pkg_cv_gnu_gss_LIBS
24473        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24474printf "%s\n" "yes" >&6; }
24475
24476        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
24477        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE gss"
24478
24479printf "%s\n" "#define SHIBSP_HAVE_GSSGNU 1" >>confdefs.h
24480
24481fi
24482
24483    # Substitute output.
24484
24485
24486
24487else
24488	gss_CFLAGS=$pkg_cv_gss_CFLAGS
24489	gss_LIBS=$pkg_cv_gss_LIBS
24490        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24491printf "%s\n" "yes" >&6; }
24492
24493        SHIBSP_LITE_REQUIRES="$SHIBSP_LITE_REQUIRES "
24494        SHIBSP_LITE_REQUIRES_PRIVATE="$SHIBSP_LITE_REQUIRES_PRIVATE krb5-gssapi"
24495
24496if test -n "$GSS_VENDOR"; then
24497    pkg_cv_GSS_VENDOR="$GSS_VENDOR"
24498 elif test -n "$PKG_CONFIG"; then
24499    if test -n "$PKG_CONFIG" && \
24500    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi\""; } >&5
24501  ($PKG_CONFIG --exists --print-errors "krb5-gssapi") 2>&5
24502  ac_status=$?
24503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24504  test $ac_status = 0; }; then
24505  pkg_cv_GSS_VENDOR=`$PKG_CONFIG --variable="vendor" "krb5-gssapi" 2>/dev/null`
24506		      test "x$?" != "x0" && pkg_failed=yes
24507else
24508  pkg_failed=yes
24509fi
24510 else
24511    pkg_failed=untried
24512fi
24513GSS_VENDOR=$pkg_cv_GSS_VENDOR
24514
24515if test "x$GSS_VENDOR" = x""
24516then :
24517
24518fi
24519      case "$GSS_VENDOR" in #(
24520  Heimdal) :
24521
24522printf "%s\n" "#define SHIBSP_HAVE_GSSHEIMDAL 1" >>confdefs.h
24523 ;; #(
24524  MIT) :
24525
24526printf "%s\n" "#define SHIBSP_HAVE_GSSMIT 1" >>confdefs.h
24527 ;; #(
24528  *) :
24529     ;;
24530esac
24531fi
24532
24533    # Substitute output.
24534
24535
24536
24537   if test "x$with_gssapi" != xno
24538then :
24539
24540printf "%s\n" "#define SHIBSP_HAVE_GSSAPI 1" >>confdefs.h
24541
24542
24543
24544  CCASFLAGS__ax_save_flags=$CCASFLAGS
24545
24546
24547
24548  CFLAGS__ax_save_flags=$CFLAGS
24549
24550
24551
24552  CPPFLAGS__ax_save_flags=$CPPFLAGS
24553
24554
24555
24556  CXXFLAGS__ax_save_flags=$CXXFLAGS
24557
24558
24559
24560  ERLCFLAGS__ax_save_flags=$ERLCFLAGS
24561
24562
24563
24564  FCFLAGS__ax_save_flags=$FCFLAGS
24565
24566
24567
24568  FCLIBS__ax_save_flags=$FCLIBS
24569
24570
24571
24572  FFLAGS__ax_save_flags=$FFLAGS
24573
24574
24575
24576  FLIBS__ax_save_flags=$FLIBS
24577
24578
24579
24580  GCJFLAGS__ax_save_flags=$GCJFLAGS
24581
24582
24583
24584  JAVACFLAGS__ax_save_flags=$JAVACFLAGS
24585
24586
24587
24588  LDFLAGS__ax_save_flags=$LDFLAGS
24589
24590
24591
24592  LIBS__ax_save_flags=$LIBS
24593
24594
24595
24596  OBJCFLAGS__ax_save_flags=$OBJCFLAGS
24597
24598
24599
24600  OBJCXXFLAGS__ax_save_flags=$OBJCXXFLAGS
24601
24602
24603
24604  UPCFLAGS__ax_save_flags=$UPCFLAGS
24605
24606
24607
24608  VALAFLAGS__ax_save_flags=$VALAFLAGS
24609
24610
24611
24612        CXXFLAGS="$gss_CFLAGS $gnu_gss_CFLAGS $CXXFLAGS"
24613        LIBS="$gss_LIBS $gnu_gss_LIBS $LIBS"
24614      ac_fn_check_decl "$LINENO" "gss_get_name_attribute" "ac_cv_have_decl_gss_get_name_attribute" "
24615#ifdef SHIBSP_HAVE_GSSGNU
24616# include <gss.h>
24617#elif defined SHIBSP_HAVE_GSSMIT
24618# include <gssapi/gssapi.h>
24619# include <gssapi/gssapi_ext.h>
24620#else
24621# include <gssapi.h>
24622#endif
24623
24624" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
24625if test "x$ac_cv_have_decl_gss_get_name_attribute" = xyes
24626then :
24627  ac_have_decl=1
24628else $as_nop
24629  ac_have_decl=0
24630fi
24631printf "%s\n" "#define HAVE_DECL_GSS_GET_NAME_ATTRIBUTE $ac_have_decl" >>confdefs.h
24632ac_fn_check_decl "$LINENO" "GSS_C_NT_EXPORT_NAME_COMPOSITE" "ac_cv_have_decl_GSS_C_NT_EXPORT_NAME_COMPOSITE" "
24633#ifdef SHIBSP_HAVE_GSSGNU
24634# include <gss.h>
24635#elif defined SHIBSP_HAVE_GSSMIT
24636# include <gssapi/gssapi.h>
24637# include <gssapi/gssapi_ext.h>
24638#else
24639# include <gssapi.h>
24640#endif
24641
24642" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
24643if test "x$ac_cv_have_decl_GSS_C_NT_EXPORT_NAME_COMPOSITE" = xyes
24644then :
24645  ac_have_decl=1
24646else $as_nop
24647  ac_have_decl=0
24648fi
24649printf "%s\n" "#define HAVE_DECL_GSS_C_NT_EXPORT_NAME_COMPOSITE $ac_have_decl" >>confdefs.h
24650
24651
24652  CCASFLAGS=$CCASFLAGS__ax_save_flags
24653
24654
24655  CFLAGS=$CFLAGS__ax_save_flags
24656
24657
24658  CPPFLAGS=$CPPFLAGS__ax_save_flags
24659
24660
24661  CXXFLAGS=$CXXFLAGS__ax_save_flags
24662
24663
24664  ERLCFLAGS=$ERLCFLAGS__ax_save_flags
24665
24666
24667  FCFLAGS=$FCFLAGS__ax_save_flags
24668
24669
24670  FCLIBS=$FCLIBS__ax_save_flags
24671
24672
24673  FFLAGS=$FFLAGS__ax_save_flags
24674
24675
24676  FLIBS=$FLIBS__ax_save_flags
24677
24678
24679  GCJFLAGS=$GCJFLAGS__ax_save_flags
24680
24681
24682  JAVACFLAGS=$JAVACFLAGS__ax_save_flags
24683
24684
24685  LDFLAGS=$LDFLAGS__ax_save_flags
24686
24687
24688  LIBS=$LIBS__ax_save_flags
24689
24690
24691  OBJCFLAGS=$OBJCFLAGS__ax_save_flags
24692
24693
24694  OBJCXXFLAGS=$OBJCXXFLAGS__ax_save_flags
24695
24696
24697  UPCFLAGS=$UPCFLAGS__ax_save_flags
24698
24699
24700  VALAFLAGS=$VALAFLAGS__ax_save_flags
24701
24702
24703
24704
24705fi
24706
24707fi
24708 if test "x$ac_cv_have_decl_gss_get_name_attribute" = xyes; then
24709  GSSAPI_NAMINGEXTS_TRUE=
24710  GSSAPI_NAMINGEXTS_FALSE='#'
24711else
24712  GSSAPI_NAMINGEXTS_TRUE='#'
24713  GSSAPI_NAMINGEXTS_FALSE=
24714fi
24715
24716
24717# Check for unit test support
24718ac_config_files="$ac_config_files unittests/Makefile"
24719
24720
24721for ac_prog in cxxtestgen cxxtestgen.pl
24722do
24723  # Extract the first word of "$ac_prog", so it can be a program name with args.
24724set dummy $ac_prog; ac_word=$2
24725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24726printf %s "checking for $ac_word... " >&6; }
24727if test ${ac_cv_prog_CXXTEST+y}
24728then :
24729  printf %s "(cached) " >&6
24730else $as_nop
24731  if test -n "$CXXTEST"; then
24732  ac_cv_prog_CXXTEST="$CXXTEST" # Let the user override the test.
24733else
24734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24735for as_dir in $PATH
24736do
24737  IFS=$as_save_IFS
24738  case $as_dir in #(((
24739    '') as_dir=./ ;;
24740    */) ;;
24741    *) as_dir=$as_dir/ ;;
24742  esac
24743    for ac_exec_ext in '' $ac_executable_extensions; do
24744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24745    ac_cv_prog_CXXTEST="$ac_prog"
24746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24747    break 2
24748  fi
24749done
24750  done
24751IFS=$as_save_IFS
24752
24753fi
24754fi
24755CXXTEST=$ac_cv_prog_CXXTEST
24756if test -n "$CXXTEST"; then
24757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXTEST" >&5
24758printf "%s\n" "$CXXTEST" >&6; }
24759else
24760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24761printf "%s\n" "no" >&6; }
24762fi
24763
24764
24765  test -n "$CXXTEST" && break
24766done
24767test -n "$CXXTEST" || CXXTEST="false"
24768
24769
24770 if test "x${CXXTEST}" != xfalse; then
24771  BUILD_UNITTEST_TRUE=
24772  BUILD_UNITTEST_FALSE='#'
24773else
24774  BUILD_UNITTEST_TRUE='#'
24775  BUILD_UNITTEST_FALSE=
24776fi
24777
24778WANT_SUBDIRS="$WANT_SUBDIRS unittests"
24779
24780
24781
24782if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
24783  echo "=================================================================="
24784  echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
24785  echo "         compiler than the one used to compile Apache."
24786  echo ""
24787  echo "    Current compiler:      $CC"
24788  echo "   Apache's compiler:      $APXS_CC"
24789  echo ""
24790  echo "This could cause problems."
24791  echo "=================================================================="
24792fi
24793
24794if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
24795  echo "=================================================================="
24796  echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
24797  echo "         compiler than the one used to compile Apache."
24798  echo ""
24799  echo "    Current compiler:      $CC"
24800  echo "   Apache's compiler:      $APXS2_CC"
24801  echo ""
24802  echo "This could cause problems."
24803  echo "=================================================================="
24804fi
24805
24806if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
24807  echo "=================================================================="
24808  echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
24809  echo "         compiler than the one used to compile Apache."
24810  echo ""
24811  echo "    Current compiler:      $CC"
24812  echo "   Apache's compiler:      $APXS22_CC"
24813  echo ""
24814  echo "This could cause problems."
24815  echo "=================================================================="
24816fi
24817
24818if test -n "$APXS24_CC" && test "$APXS24_CC" != "$CC" ; then
24819  echo "=================================================================="
24820  echo "WARNING: You have chosen to compile Apache-2.4 modules with a different"
24821  echo "         compiler than the one used to compile Apache."
24822  echo ""
24823  echo "    Current compiler:      $CC"
24824  echo "   Apache's compiler:      $APXS24_CC"
24825  echo ""
24826  echo "This could cause problems."
24827  echo "=================================================================="
24828fi
24829
24830cat >confcache <<\_ACEOF
24831# This file is a shell script that caches the results of configure
24832# tests run on this system so they can be shared between configure
24833# scripts and configure runs, see configure's option --config-cache.
24834# It is not useful on other systems.  If it contains results you don't
24835# want to keep, you may remove or edit it.
24836#
24837# config.status only pays attention to the cache file if you give it
24838# the --recheck option to rerun configure.
24839#
24840# `ac_cv_env_foo' variables (set or unset) will be overridden when
24841# loading this file, other *unset* `ac_cv_foo' will be assigned the
24842# following values.
24843
24844_ACEOF
24845
24846# The following way of writing the cache mishandles newlines in values,
24847# but we know of no workaround that is simple, portable, and efficient.
24848# So, we kill variables containing newlines.
24849# Ultrix sh set writes to stderr and can't be redirected directly,
24850# and sets the high bit in the cache file unless we assign to the vars.
24851(
24852  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24853    eval ac_val=\$$ac_var
24854    case $ac_val in #(
24855    *${as_nl}*)
24856      case $ac_var in #(
24857      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24858printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24859      esac
24860      case $ac_var in #(
24861      _ | IFS | as_nl) ;; #(
24862      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24863      *) { eval $ac_var=; unset $ac_var;} ;;
24864      esac ;;
24865    esac
24866  done
24867
24868  (set) 2>&1 |
24869    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24870    *${as_nl}ac_space=\ *)
24871      # `set' does not quote correctly, so add quotes: double-quote
24872      # substitution turns \\\\ into \\, and sed turns \\ into \.
24873      sed -n \
24874	"s/'/'\\\\''/g;
24875	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24876      ;; #(
24877    *)
24878      # `set' quotes correctly as required by POSIX, so do not add quotes.
24879      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24880      ;;
24881    esac |
24882    sort
24883) |
24884  sed '
24885     /^ac_cv_env_/b end
24886     t clear
24887     :clear
24888     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24889     t end
24890     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24891     :end' >>confcache
24892if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24893  if test -w "$cache_file"; then
24894    if test "x$cache_file" != "x/dev/null"; then
24895      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24896printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24897      if test ! -f "$cache_file" || test -h "$cache_file"; then
24898	cat confcache >"$cache_file"
24899      else
24900        case $cache_file in #(
24901        */* | ?:*)
24902	  mv -f confcache "$cache_file"$$ &&
24903	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24904        *)
24905	  mv -f confcache "$cache_file" ;;
24906	esac
24907      fi
24908    fi
24909  else
24910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24911printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24912  fi
24913fi
24914rm -f confcache
24915
24916test "x$prefix" = xNONE && prefix=$ac_default_prefix
24917# Let make expand exec_prefix.
24918test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24919
24920DEFS=-DHAVE_CONFIG_H
24921
24922ac_libobjs=
24923ac_ltlibobjs=
24924U=
24925for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24926  # 1. Remove the extension, and $U if already installed.
24927  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24928  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24929  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24930  #    will be set to the directory where LIBOBJS objects are built.
24931  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24932  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24933done
24934LIBOBJS=$ac_libobjs
24935
24936LTLIBOBJS=$ac_ltlibobjs
24937
24938
24939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24940printf %s "checking that generated files are newer than configure... " >&6; }
24941   if test -n "$am_sleep_pid"; then
24942     # Hide warnings about reused PIDs.
24943     wait $am_sleep_pid 2>/dev/null
24944   fi
24945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24946printf "%s\n" "done" >&6; }
24947 if test -n "$EXEEXT"; then
24948  am__EXEEXT_TRUE=
24949  am__EXEEXT_FALSE='#'
24950else
24951  am__EXEEXT_TRUE='#'
24952  am__EXEEXT_FALSE=
24953fi
24954
24955if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24956  as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
24957Usually this means the macro was only invoked conditionally." "$LINENO" 5
24958fi
24959if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24960  as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
24961Usually this means the macro was only invoked conditionally." "$LINENO" 5
24962fi
24963if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24964  as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
24965Usually this means the macro was only invoked conditionally." "$LINENO" 5
24966fi
24967if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24968  as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
24969Usually this means the macro was only invoked conditionally." "$LINENO" 5
24970fi
24971if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24972  as_fn_error $? "conditional \"DX_COND_man\" was never defined.
24973Usually this means the macro was only invoked conditionally." "$LINENO" 5
24974fi
24975if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24976  as_fn_error $? "conditional \"DX_COND_man\" was never defined.
24977Usually this means the macro was only invoked conditionally." "$LINENO" 5
24978fi
24979if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24980  as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
24981Usually this means the macro was only invoked conditionally." "$LINENO" 5
24982fi
24983if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24984  as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
24985Usually this means the macro was only invoked conditionally." "$LINENO" 5
24986fi
24987if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24988  as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
24989Usually this means the macro was only invoked conditionally." "$LINENO" 5
24990fi
24991if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24992  as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
24993Usually this means the macro was only invoked conditionally." "$LINENO" 5
24994fi
24995if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24996  as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
24997Usually this means the macro was only invoked conditionally." "$LINENO" 5
24998fi
24999if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
25000  as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
25001Usually this means the macro was only invoked conditionally." "$LINENO" 5
25002fi
25003if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
25004  as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
25005Usually this means the macro was only invoked conditionally." "$LINENO" 5
25006fi
25007if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
25008  as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
25009Usually this means the macro was only invoked conditionally." "$LINENO" 5
25010fi
25011if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
25012  as_fn_error $? "conditional \"DX_COND_html\" was never defined.
25013Usually this means the macro was only invoked conditionally." "$LINENO" 5
25014fi
25015if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
25016  as_fn_error $? "conditional \"DX_COND_html\" was never defined.
25017Usually this means the macro was only invoked conditionally." "$LINENO" 5
25018fi
25019if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
25020  as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
25021Usually this means the macro was only invoked conditionally." "$LINENO" 5
25022fi
25023if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
25024  as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
25025Usually this means the macro was only invoked conditionally." "$LINENO" 5
25026fi
25027if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
25028  as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
25029Usually this means the macro was only invoked conditionally." "$LINENO" 5
25030fi
25031if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
25032  as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
25033Usually this means the macro was only invoked conditionally." "$LINENO" 5
25034fi
25035if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
25036  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
25037Usually this means the macro was only invoked conditionally." "$LINENO" 5
25038fi
25039if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
25040  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
25041Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042fi
25043if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25044  as_fn_error $? "conditional \"AMDEP\" was never defined.
25045Usually this means the macro was only invoked conditionally." "$LINENO" 5
25046fi
25047if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25048  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25049Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050fi
25051if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25052  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25053Usually this means the macro was only invoked conditionally." "$LINENO" 5
25054fi
25055if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
25056  as_fn_error $? "conditional \"BUILD_NSAPI\" was never defined.
25057Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058fi
25059if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
25060  as_fn_error $? "conditional \"BUILD_FASTCGI\" was never defined.
25061Usually this means the macro was only invoked conditionally." "$LINENO" 5
25062fi
25063if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
25064  as_fn_error $? "conditional \"BUILD_MEMCACHED\" was never defined.
25065Usually this means the macro was only invoked conditionally." "$LINENO" 5
25066fi
25067if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
25068  as_fn_error $? "conditional \"BUILD_AP13\" was never defined.
25069Usually this means the macro was only invoked conditionally." "$LINENO" 5
25070fi
25071if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
25072  as_fn_error $? "conditional \"BUILD_AP20\" was never defined.
25073Usually this means the macro was only invoked conditionally." "$LINENO" 5
25074fi
25075if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
25076  as_fn_error $? "conditional \"BUILD_AP22\" was never defined.
25077Usually this means the macro was only invoked conditionally." "$LINENO" 5
25078fi
25079if test -z "${BUILD_AP24_TRUE}" && test -z "${BUILD_AP24_FALSE}"; then
25080  as_fn_error $? "conditional \"BUILD_AP24\" was never defined.
25081Usually this means the macro was only invoked conditionally." "$LINENO" 5
25082fi
25083if test -z "${GSSAPI_NAMINGEXTS_TRUE}" && test -z "${GSSAPI_NAMINGEXTS_FALSE}"; then
25084  as_fn_error $? "conditional \"GSSAPI_NAMINGEXTS\" was never defined.
25085Usually this means the macro was only invoked conditionally." "$LINENO" 5
25086fi
25087if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
25088  as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
25089Usually this means the macro was only invoked conditionally." "$LINENO" 5
25090fi
25091
25092: "${CONFIG_STATUS=./config.status}"
25093ac_write_fail=0
25094ac_clean_files_save=$ac_clean_files
25095ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25097printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
25098as_write_fail=0
25099cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25100#! $SHELL
25101# Generated by $as_me.
25102# Run this file to recreate the current configuration.
25103# Compiler output produced by configure, useful for debugging
25104# configure, is in config.log if it exists.
25105
25106debug=false
25107ac_cs_recheck=false
25108ac_cs_silent=false
25109
25110SHELL=\${CONFIG_SHELL-$SHELL}
25111export SHELL
25112_ASEOF
25113cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25114## -------------------- ##
25115## M4sh Initialization. ##
25116## -------------------- ##
25117
25118# Be more Bourne compatible
25119DUALCASE=1; export DUALCASE # for MKS sh
25120as_nop=:
25121if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25122then :
25123  emulate sh
25124  NULLCMD=:
25125  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25126  # is contrary to our usage.  Disable this feature.
25127  alias -g '${1+"$@"}'='"$@"'
25128  setopt NO_GLOB_SUBST
25129else $as_nop
25130  case `(set -o) 2>/dev/null` in #(
25131  *posix*) :
25132    set -o posix ;; #(
25133  *) :
25134     ;;
25135esac
25136fi
25137
25138
25139
25140# Reset variables that may have inherited troublesome values from
25141# the environment.
25142
25143# IFS needs to be set, to space, tab, and newline, in precisely that order.
25144# (If _AS_PATH_WALK were called with IFS unset, it would have the
25145# side effect of setting IFS to empty, thus disabling word splitting.)
25146# Quoting is to prevent editors from complaining about space-tab.
25147as_nl='
25148'
25149export as_nl
25150IFS=" ""	$as_nl"
25151
25152PS1='$ '
25153PS2='> '
25154PS4='+ '
25155
25156# Ensure predictable behavior from utilities with locale-dependent output.
25157LC_ALL=C
25158export LC_ALL
25159LANGUAGE=C
25160export LANGUAGE
25161
25162# We cannot yet rely on "unset" to work, but we need these variables
25163# to be unset--not just set to an empty or harmless value--now, to
25164# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
25165# also avoids known problems related to "unset" and subshell syntax
25166# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
25167for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
25168do eval test \${$as_var+y} \
25169  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25170done
25171
25172# Ensure that fds 0, 1, and 2 are open.
25173if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
25174if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
25175if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
25176
25177# The user is always right.
25178if ${PATH_SEPARATOR+false} :; then
25179  PATH_SEPARATOR=:
25180  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25181    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25182      PATH_SEPARATOR=';'
25183  }
25184fi
25185
25186
25187# Find who we are.  Look in the path if we contain no directory separator.
25188as_myself=
25189case $0 in #((
25190  *[\\/]* ) as_myself=$0 ;;
25191  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25192for as_dir in $PATH
25193do
25194  IFS=$as_save_IFS
25195  case $as_dir in #(((
25196    '') as_dir=./ ;;
25197    */) ;;
25198    *) as_dir=$as_dir/ ;;
25199  esac
25200    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
25201  done
25202IFS=$as_save_IFS
25203
25204     ;;
25205esac
25206# We did not find ourselves, most probably we were run as `sh COMMAND'
25207# in which case we are not to be found in the path.
25208if test "x$as_myself" = x; then
25209  as_myself=$0
25210fi
25211if test ! -f "$as_myself"; then
25212  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25213  exit 1
25214fi
25215
25216
25217
25218# as_fn_error STATUS ERROR [LINENO LOG_FD]
25219# ----------------------------------------
25220# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25221# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25222# script with STATUS, using 1 if that was 0.
25223as_fn_error ()
25224{
25225  as_status=$1; test $as_status -eq 0 && as_status=1
25226  if test "$4"; then
25227    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25229  fi
25230  printf "%s\n" "$as_me: error: $2" >&2
25231  as_fn_exit $as_status
25232} # as_fn_error
25233
25234
25235
25236# as_fn_set_status STATUS
25237# -----------------------
25238# Set $? to STATUS, without forking.
25239as_fn_set_status ()
25240{
25241  return $1
25242} # as_fn_set_status
25243
25244# as_fn_exit STATUS
25245# -----------------
25246# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25247as_fn_exit ()
25248{
25249  set +e
25250  as_fn_set_status $1
25251  exit $1
25252} # as_fn_exit
25253
25254# as_fn_unset VAR
25255# ---------------
25256# Portably unset VAR.
25257as_fn_unset ()
25258{
25259  { eval $1=; unset $1;}
25260}
25261as_unset=as_fn_unset
25262
25263# as_fn_append VAR VALUE
25264# ----------------------
25265# Append the text in VALUE to the end of the definition contained in VAR. Take
25266# advantage of any shell optimizations that allow amortized linear growth over
25267# repeated appends, instead of the typical quadratic growth present in naive
25268# implementations.
25269if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
25270then :
25271  eval 'as_fn_append ()
25272  {
25273    eval $1+=\$2
25274  }'
25275else $as_nop
25276  as_fn_append ()
25277  {
25278    eval $1=\$$1\$2
25279  }
25280fi # as_fn_append
25281
25282# as_fn_arith ARG...
25283# ------------------
25284# Perform arithmetic evaluation on the ARGs, and store the result in the
25285# global $as_val. Take advantage of shells that can avoid forks. The arguments
25286# must be portable across $(()) and expr.
25287if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
25288then :
25289  eval 'as_fn_arith ()
25290  {
25291    as_val=$(( $* ))
25292  }'
25293else $as_nop
25294  as_fn_arith ()
25295  {
25296    as_val=`expr "$@" || test $? -eq 1`
25297  }
25298fi # as_fn_arith
25299
25300
25301if expr a : '\(a\)' >/dev/null 2>&1 &&
25302   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25303  as_expr=expr
25304else
25305  as_expr=false
25306fi
25307
25308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25309  as_basename=basename
25310else
25311  as_basename=false
25312fi
25313
25314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25315  as_dirname=dirname
25316else
25317  as_dirname=false
25318fi
25319
25320as_me=`$as_basename -- "$0" ||
25321$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25322	 X"$0" : 'X\(//\)$' \| \
25323	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25324printf "%s\n" X/"$0" |
25325    sed '/^.*\/\([^/][^/]*\)\/*$/{
25326	    s//\1/
25327	    q
25328	  }
25329	  /^X\/\(\/\/\)$/{
25330	    s//\1/
25331	    q
25332	  }
25333	  /^X\/\(\/\).*/{
25334	    s//\1/
25335	    q
25336	  }
25337	  s/.*/./; q'`
25338
25339# Avoid depending upon Character Ranges.
25340as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25341as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25342as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25343as_cr_digits='0123456789'
25344as_cr_alnum=$as_cr_Letters$as_cr_digits
25345
25346
25347# Determine whether it's possible to make 'echo' print without a newline.
25348# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
25349# for compatibility with existing Makefiles.
25350ECHO_C= ECHO_N= ECHO_T=
25351case `echo -n x` in #(((((
25352-n*)
25353  case `echo 'xy\c'` in
25354  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25355  xy)  ECHO_C='\c';;
25356  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25357       ECHO_T='	';;
25358  esac;;
25359*)
25360  ECHO_N='-n';;
25361esac
25362
25363# For backward compatibility with old third-party macros, we provide
25364# the shell variables $as_echo and $as_echo_n.  New code should use
25365# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
25366as_echo='printf %s\n'
25367as_echo_n='printf %s'
25368
25369rm -f conf$$ conf$$.exe conf$$.file
25370if test -d conf$$.dir; then
25371  rm -f conf$$.dir/conf$$.file
25372else
25373  rm -f conf$$.dir
25374  mkdir conf$$.dir 2>/dev/null
25375fi
25376if (echo >conf$$.file) 2>/dev/null; then
25377  if ln -s conf$$.file conf$$ 2>/dev/null; then
25378    as_ln_s='ln -s'
25379    # ... but there are two gotchas:
25380    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25381    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25382    # In both cases, we have to default to `cp -pR'.
25383    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25384      as_ln_s='cp -pR'
25385  elif ln conf$$.file conf$$ 2>/dev/null; then
25386    as_ln_s=ln
25387  else
25388    as_ln_s='cp -pR'
25389  fi
25390else
25391  as_ln_s='cp -pR'
25392fi
25393rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25394rmdir conf$$.dir 2>/dev/null
25395
25396
25397# as_fn_mkdir_p
25398# -------------
25399# Create "$as_dir" as a directory, including parents if necessary.
25400as_fn_mkdir_p ()
25401{
25402
25403  case $as_dir in #(
25404  -*) as_dir=./$as_dir;;
25405  esac
25406  test -d "$as_dir" || eval $as_mkdir_p || {
25407    as_dirs=
25408    while :; do
25409      case $as_dir in #(
25410      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25411      *) as_qdir=$as_dir;;
25412      esac
25413      as_dirs="'$as_qdir' $as_dirs"
25414      as_dir=`$as_dirname -- "$as_dir" ||
25415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416	 X"$as_dir" : 'X\(//\)[^/]' \| \
25417	 X"$as_dir" : 'X\(//\)$' \| \
25418	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25419printf "%s\n" X"$as_dir" |
25420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25421	    s//\1/
25422	    q
25423	  }
25424	  /^X\(\/\/\)[^/].*/{
25425	    s//\1/
25426	    q
25427	  }
25428	  /^X\(\/\/\)$/{
25429	    s//\1/
25430	    q
25431	  }
25432	  /^X\(\/\).*/{
25433	    s//\1/
25434	    q
25435	  }
25436	  s/.*/./; q'`
25437      test -d "$as_dir" && break
25438    done
25439    test -z "$as_dirs" || eval "mkdir $as_dirs"
25440  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25441
25442
25443} # as_fn_mkdir_p
25444if mkdir -p . 2>/dev/null; then
25445  as_mkdir_p='mkdir -p "$as_dir"'
25446else
25447  test -d ./-p && rmdir ./-p
25448  as_mkdir_p=false
25449fi
25450
25451
25452# as_fn_executable_p FILE
25453# -----------------------
25454# Test if FILE is an executable regular file.
25455as_fn_executable_p ()
25456{
25457  test -f "$1" && test -x "$1"
25458} # as_fn_executable_p
25459as_test_x='test -x'
25460as_executable_p=as_fn_executable_p
25461
25462# Sed expression to map a string onto a valid CPP name.
25463as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25464
25465# Sed expression to map a string onto a valid variable name.
25466as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25467
25468
25469exec 6>&1
25470## ----------------------------------- ##
25471## Main body of $CONFIG_STATUS script. ##
25472## ----------------------------------- ##
25473_ASEOF
25474test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25475
25476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25477# Save the log message, to keep $0 and so on meaningful, and to
25478# report actual input values of CONFIG_FILES etc. instead of their
25479# values after options handling.
25480ac_log="
25481This file was extended by shibboleth $as_me 3.3.0, which was
25482generated by GNU Autoconf 2.71.  Invocation command line was
25483
25484  CONFIG_FILES    = $CONFIG_FILES
25485  CONFIG_HEADERS  = $CONFIG_HEADERS
25486  CONFIG_LINKS    = $CONFIG_LINKS
25487  CONFIG_COMMANDS = $CONFIG_COMMANDS
25488  $ $0 $@
25489
25490on `(hostname || uname -n) 2>/dev/null | sed 1q`
25491"
25492
25493_ACEOF
25494
25495case $ac_config_files in *"
25496"*) set x $ac_config_files; shift; ac_config_files=$*;;
25497esac
25498
25499case $ac_config_headers in *"
25500"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25501esac
25502
25503
25504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25505# Files that config.status was made for.
25506config_files="$ac_config_files"
25507config_headers="$ac_config_headers"
25508config_commands="$ac_config_commands"
25509
25510_ACEOF
25511
25512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25513ac_cs_usage="\
25514\`$as_me' instantiates files and other configuration actions
25515from templates according to the current configuration.  Unless the files
25516and actions are specified as TAGs, all are instantiated by default.
25517
25518Usage: $0 [OPTION]... [TAG]...
25519
25520  -h, --help       print this help, then exit
25521  -V, --version    print version number and configuration settings, then exit
25522      --config     print configuration, then exit
25523  -q, --quiet, --silent
25524                   do not print progress messages
25525  -d, --debug      don't remove temporary files
25526      --recheck    update $as_me by reconfiguring in the same conditions
25527      --file=FILE[:TEMPLATE]
25528                   instantiate the configuration file FILE
25529      --header=FILE[:TEMPLATE]
25530                   instantiate the configuration header FILE
25531
25532Configuration files:
25533$config_files
25534
25535Configuration headers:
25536$config_headers
25537
25538Configuration commands:
25539$config_commands
25540
25541Report bugs to <https://shibboleth.atlassian.net/jira>."
25542
25543_ACEOF
25544ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
25545ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
25546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25547ac_cs_config='$ac_cs_config_escaped'
25548ac_cs_version="\\
25549shibboleth config.status 3.3.0
25550configured by $0, generated by GNU Autoconf 2.71,
25551  with options \\"\$ac_cs_config\\"
25552
25553Copyright (C) 2021 Free Software Foundation, Inc.
25554This config.status script is free software; the Free Software Foundation
25555gives unlimited permission to copy, distribute and modify it."
25556
25557ac_pwd='$ac_pwd'
25558srcdir='$srcdir'
25559INSTALL='$INSTALL'
25560MKDIR_P='$MKDIR_P'
25561AWK='$AWK'
25562test -n "\$AWK" || AWK=awk
25563_ACEOF
25564
25565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25566# The default lists apply if the user does not specify any file.
25567ac_need_defaults=:
25568while test $# != 0
25569do
25570  case $1 in
25571  --*=?*)
25572    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25573    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25574    ac_shift=:
25575    ;;
25576  --*=)
25577    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25578    ac_optarg=
25579    ac_shift=:
25580    ;;
25581  *)
25582    ac_option=$1
25583    ac_optarg=$2
25584    ac_shift=shift
25585    ;;
25586  esac
25587
25588  case $ac_option in
25589  # Handling of the options.
25590  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25591    ac_cs_recheck=: ;;
25592  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25593    printf "%s\n" "$ac_cs_version"; exit ;;
25594  --config | --confi | --conf | --con | --co | --c )
25595    printf "%s\n" "$ac_cs_config"; exit ;;
25596  --debug | --debu | --deb | --de | --d | -d )
25597    debug=: ;;
25598  --file | --fil | --fi | --f )
25599    $ac_shift
25600    case $ac_optarg in
25601    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25602    '') as_fn_error $? "missing file argument" ;;
25603    esac
25604    as_fn_append CONFIG_FILES " '$ac_optarg'"
25605    ac_need_defaults=false;;
25606  --header | --heade | --head | --hea )
25607    $ac_shift
25608    case $ac_optarg in
25609    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25610    esac
25611    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25612    ac_need_defaults=false;;
25613  --he | --h)
25614    # Conflict between --help and --header
25615    as_fn_error $? "ambiguous option: \`$1'
25616Try \`$0 --help' for more information.";;
25617  --help | --hel | -h )
25618    printf "%s\n" "$ac_cs_usage"; exit ;;
25619  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25620  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25621    ac_cs_silent=: ;;
25622
25623  # This is an error.
25624  -*) as_fn_error $? "unrecognized option: \`$1'
25625Try \`$0 --help' for more information." ;;
25626
25627  *) as_fn_append ac_config_targets " $1"
25628     ac_need_defaults=false ;;
25629
25630  esac
25631  shift
25632done
25633
25634ac_configure_extra_args=
25635
25636if $ac_cs_silent; then
25637  exec 6>/dev/null
25638  ac_configure_extra_args="$ac_configure_extra_args --silent"
25639fi
25640
25641_ACEOF
25642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25643if \$ac_cs_recheck; then
25644  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25645  shift
25646  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
25647  CONFIG_SHELL='$SHELL'
25648  export CONFIG_SHELL
25649  exec "\$@"
25650fi
25651
25652_ACEOF
25653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25654exec 5>>config.log
25655{
25656  echo
25657  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25658## Running $as_me. ##
25659_ASBOX
25660  printf "%s\n" "$ac_log"
25661} >&5
25662
25663_ACEOF
25664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25665#
25666# INIT-COMMANDS
25667#
25668AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25669
25670
25671# The HP-UX ksh and POSIX shell print the target directory to stdout
25672# if CDPATH is set.
25673(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25674
25675sed_quote_subst='$sed_quote_subst'
25676double_quote_subst='$double_quote_subst'
25677delay_variable_subst='$delay_variable_subst'
25678macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25679macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25680enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25681enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25682pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25683enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25684shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25685SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25686ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25687PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25688host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25689host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25690host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25691build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25692build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25693build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25694SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25695Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25696GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25697EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25698FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25699LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25700NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25701LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25702max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25703ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25704exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25705lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25706lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25707lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25708lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25709lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25710reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25711reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25712OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25713deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25714file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25715file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25716want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25717DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25718sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25719AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25720AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25721archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25722STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25723RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25724old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25725old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25726old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25727lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25728CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25729CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25730compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25731GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25732lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25733lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25734lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25735lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25736lt_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"`'
25737lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25738nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25739lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25740lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25741objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25742MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25743lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25744lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25745lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25746lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25747lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25748need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25749MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25750DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25751NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25752LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25753OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25754OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25755libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25756shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25757extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25758archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25759enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25760export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25761whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25762compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25763old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25764old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25765archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25766archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25767module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25768module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25769with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25770allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25771no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25772hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25773hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25774hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25775hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25776hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25777hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25778hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25779inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25780link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25781always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25782export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25783exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25784include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25785prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25786postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25787file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25788variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25789need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25790need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25791version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25792runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25793shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25794shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25795libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25796library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25797soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25798install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25799postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25800postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25801finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25802finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25803hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25804sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25805configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25806configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25807hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25808enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25809enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25810enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25811old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25812striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25813compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25814predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25815postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25816predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25817postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25818compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25819LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25820reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25821reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25822old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25823compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25824GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25825lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25826lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25827lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25828lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25829lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25830archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25831enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25832export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25833whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25834compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25835old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25836old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25837archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25838archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25839module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25840module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25841with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25842allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25843no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25844hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25845hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25846hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25847hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25848hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25849hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25850hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25851inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25852link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25853always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25854export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25855exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25856include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25857prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25858postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25859file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25860hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25861compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25862predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25863postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25864predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25865postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25866compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25867
25868LTCC='$LTCC'
25869LTCFLAGS='$LTCFLAGS'
25870compiler='$compiler_DEFAULT'
25871
25872# A function that is used when there is no print builtin or printf.
25873func_fallback_echo ()
25874{
25875  eval 'cat <<_LTECHO_EOF
25876\$1
25877_LTECHO_EOF'
25878}
25879
25880# Quote evaled strings.
25881for var in SHELL \
25882ECHO \
25883PATH_SEPARATOR \
25884SED \
25885GREP \
25886EGREP \
25887FGREP \
25888LD \
25889NM \
25890LN_S \
25891lt_SP2NL \
25892lt_NL2SP \
25893reload_flag \
25894OBJDUMP \
25895deplibs_check_method \
25896file_magic_cmd \
25897file_magic_glob \
25898want_nocaseglob \
25899DLLTOOL \
25900sharedlib_from_linklib_cmd \
25901AR \
25902AR_FLAGS \
25903archiver_list_spec \
25904STRIP \
25905RANLIB \
25906CC \
25907CFLAGS \
25908compiler \
25909lt_cv_sys_global_symbol_pipe \
25910lt_cv_sys_global_symbol_to_cdecl \
25911lt_cv_sys_global_symbol_to_import \
25912lt_cv_sys_global_symbol_to_c_name_address \
25913lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25914lt_cv_nm_interface \
25915nm_file_list_spec \
25916lt_cv_truncate_bin \
25917lt_prog_compiler_no_builtin_flag \
25918lt_prog_compiler_pic \
25919lt_prog_compiler_wl \
25920lt_prog_compiler_static \
25921lt_cv_prog_compiler_c_o \
25922need_locks \
25923MANIFEST_TOOL \
25924DSYMUTIL \
25925NMEDIT \
25926LIPO \
25927OTOOL \
25928OTOOL64 \
25929shrext_cmds \
25930export_dynamic_flag_spec \
25931whole_archive_flag_spec \
25932compiler_needs_object \
25933with_gnu_ld \
25934allow_undefined_flag \
25935no_undefined_flag \
25936hardcode_libdir_flag_spec \
25937hardcode_libdir_separator \
25938exclude_expsyms \
25939include_expsyms \
25940file_list_spec \
25941variables_saved_for_relink \
25942libname_spec \
25943library_names_spec \
25944soname_spec \
25945install_override_mode \
25946finish_eval \
25947old_striplib \
25948striplib \
25949compiler_lib_search_dirs \
25950predep_objects \
25951postdep_objects \
25952predeps \
25953postdeps \
25954compiler_lib_search_path \
25955LD_CXX \
25956reload_flag_CXX \
25957compiler_CXX \
25958lt_prog_compiler_no_builtin_flag_CXX \
25959lt_prog_compiler_pic_CXX \
25960lt_prog_compiler_wl_CXX \
25961lt_prog_compiler_static_CXX \
25962lt_cv_prog_compiler_c_o_CXX \
25963export_dynamic_flag_spec_CXX \
25964whole_archive_flag_spec_CXX \
25965compiler_needs_object_CXX \
25966with_gnu_ld_CXX \
25967allow_undefined_flag_CXX \
25968no_undefined_flag_CXX \
25969hardcode_libdir_flag_spec_CXX \
25970hardcode_libdir_separator_CXX \
25971exclude_expsyms_CXX \
25972include_expsyms_CXX \
25973file_list_spec_CXX \
25974compiler_lib_search_dirs_CXX \
25975predep_objects_CXX \
25976postdep_objects_CXX \
25977predeps_CXX \
25978postdeps_CXX \
25979compiler_lib_search_path_CXX; do
25980    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25981    *[\\\\\\\`\\"\\\$]*)
25982      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25983      ;;
25984    *)
25985      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25986      ;;
25987    esac
25988done
25989
25990# Double-quote double-evaled strings.
25991for var in reload_cmds \
25992old_postinstall_cmds \
25993old_postuninstall_cmds \
25994old_archive_cmds \
25995extract_expsyms_cmds \
25996old_archive_from_new_cmds \
25997old_archive_from_expsyms_cmds \
25998archive_cmds \
25999archive_expsym_cmds \
26000module_cmds \
26001module_expsym_cmds \
26002export_symbols_cmds \
26003prelink_cmds \
26004postlink_cmds \
26005postinstall_cmds \
26006postuninstall_cmds \
26007finish_cmds \
26008sys_lib_search_path_spec \
26009configure_time_dlsearch_path \
26010configure_time_lt_sys_library_path \
26011reload_cmds_CXX \
26012old_archive_cmds_CXX \
26013old_archive_from_new_cmds_CXX \
26014old_archive_from_expsyms_cmds_CXX \
26015archive_cmds_CXX \
26016archive_expsym_cmds_CXX \
26017module_cmds_CXX \
26018module_expsym_cmds_CXX \
26019export_symbols_cmds_CXX \
26020prelink_cmds_CXX \
26021postlink_cmds_CXX; do
26022    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26023    *[\\\\\\\`\\"\\\$]*)
26024      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26025      ;;
26026    *)
26027      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26028      ;;
26029    esac
26030done
26031
26032ac_aux_dir='$ac_aux_dir'
26033
26034# See if we are running on zsh, and set the options that allow our
26035# commands through without removal of \ escapes INIT.
26036if test -n "\${ZSH_VERSION+set}"; then
26037   setopt NO_GLOB_SUBST
26038fi
26039
26040
26041    PACKAGE='$PACKAGE'
26042    VERSION='$VERSION'
26043    RM='$RM'
26044    ofile='$ofile'
26045
26046
26047
26048
26049
26050
26051_ACEOF
26052
26053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26054
26055# Handling of arguments.
26056for ac_config_target in $ac_config_targets
26057do
26058  case $ac_config_target in
26059    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26060    "shibsp/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS shibsp/config_pub.h" ;;
26061    "shibsp.pc") CONFIG_FILES="$CONFIG_FILES shibsp.pc" ;;
26062    "shibsp-lite.pc") CONFIG_FILES="$CONFIG_FILES shibsp-lite.pc" ;;
26063    "shibboleth.spec") CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
26064    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26065    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26066    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26067    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26068    "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
26069    "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
26070    "shibsp/Makefile") CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
26071    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
26072    "shibd/Makefile") CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
26073    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26074    "selinux/Makefile") CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
26075    "adfs/Makefile") CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
26076    "nsapi_shib/Makefile") CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
26077    "fastcgi/Makefile") CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
26078    "memcache-store/Makefile") CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
26079    "apache/Makefile") CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
26080    "odbc-store/Makefile") CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
26081    "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
26082
26083  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26084  esac
26085done
26086
26087
26088# If the user did not use the arguments to specify the items to instantiate,
26089# then the envvar interface is used.  Set only those that are not.
26090# We use the long form for the default assignment because of an extremely
26091# bizarre bug on SunOS 4.1.3.
26092if $ac_need_defaults; then
26093  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
26094  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
26095  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
26096fi
26097
26098# Have a temporary directory for convenience.  Make it in the build tree
26099# simply because there is no reason against having it here, and in addition,
26100# creating and moving files from /tmp can sometimes cause problems.
26101# Hook for its removal unless debugging.
26102# Note that there is a small window in which the directory will not be cleaned:
26103# after its creation but before its name has been assigned to `$tmp'.
26104$debug ||
26105{
26106  tmp= ac_tmp=
26107  trap 'exit_status=$?
26108  : "${ac_tmp:=$tmp}"
26109  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26110' 0
26111  trap 'as_fn_exit 1' 1 2 13 15
26112}
26113# Create a (secure) tmp directory for tmp files.
26114
26115{
26116  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26117  test -d "$tmp"
26118}  ||
26119{
26120  tmp=./conf$$-$RANDOM
26121  (umask 077 && mkdir "$tmp")
26122} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26123ac_tmp=$tmp
26124
26125# Set up the scripts for CONFIG_FILES section.
26126# No need to generate them if there are no CONFIG_FILES.
26127# This happens for instance with `./config.status config.h'.
26128if test -n "$CONFIG_FILES"; then
26129
26130
26131ac_cr=`echo X | tr X '\015'`
26132# On cygwin, bash can eat \r inside `` if the user requested igncr.
26133# But we know of no other shell where ac_cr would be empty at this
26134# point, so we can use a bashism as a fallback.
26135if test "x$ac_cr" = x; then
26136  eval ac_cr=\$\'\\r\'
26137fi
26138ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26139if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26140  ac_cs_awk_cr='\\r'
26141else
26142  ac_cs_awk_cr=$ac_cr
26143fi
26144
26145echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26146_ACEOF
26147
26148
26149{
26150  echo "cat >conf$$subs.awk <<_ACEOF" &&
26151  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26152  echo "_ACEOF"
26153} >conf$$subs.sh ||
26154  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26155ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26156ac_delim='%!_!# '
26157for ac_last_try in false false false false false :; do
26158  . ./conf$$subs.sh ||
26159    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26160
26161  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26162  if test $ac_delim_n = $ac_delim_num; then
26163    break
26164  elif $ac_last_try; then
26165    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26166  else
26167    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26168  fi
26169done
26170rm -f conf$$subs.sh
26171
26172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26173cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26174_ACEOF
26175sed -n '
26176h
26177s/^/S["/; s/!.*/"]=/
26178p
26179g
26180s/^[^!]*!//
26181:repl
26182t repl
26183s/'"$ac_delim"'$//
26184t delim
26185:nl
26186h
26187s/\(.\{148\}\)..*/\1/
26188t more1
26189s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26190p
26191n
26192b repl
26193:more1
26194s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26195p
26196g
26197s/.\{148\}//
26198t nl
26199:delim
26200h
26201s/\(.\{148\}\)..*/\1/
26202t more2
26203s/["\\]/\\&/g; s/^/"/; s/$/"/
26204p
26205b
26206:more2
26207s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26208p
26209g
26210s/.\{148\}//
26211t delim
26212' <conf$$subs.awk | sed '
26213/^[^""]/{
26214  N
26215  s/\n//
26216}
26217' >>$CONFIG_STATUS || ac_write_fail=1
26218rm -f conf$$subs.awk
26219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26220_ACAWK
26221cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26222  for (key in S) S_is_set[key] = 1
26223  FS = ""
26224
26225}
26226{
26227  line = $ 0
26228  nfields = split(line, field, "@")
26229  substed = 0
26230  len = length(field[1])
26231  for (i = 2; i < nfields; i++) {
26232    key = field[i]
26233    keylen = length(key)
26234    if (S_is_set[key]) {
26235      value = S[key]
26236      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26237      len += length(value) + length(field[++i])
26238      substed = 1
26239    } else
26240      len += 1 + keylen
26241  }
26242
26243  print line
26244}
26245
26246_ACAWK
26247_ACEOF
26248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26249if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26250  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26251else
26252  cat
26253fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26254  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26255_ACEOF
26256
26257# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26258# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26259# trailing colons and then remove the whole line if VPATH becomes empty
26260# (actually we leave an empty line to preserve line numbers).
26261if test "x$srcdir" = x.; then
26262  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26263h
26264s///
26265s/^/:/
26266s/[	 ]*$/:/
26267s/:\$(srcdir):/:/g
26268s/:\${srcdir}:/:/g
26269s/:@srcdir@:/:/g
26270s/^:*//
26271s/:*$//
26272x
26273s/\(=[	 ]*\).*/\1/
26274G
26275s/\n//
26276s/^[^=]*=[	 ]*$//
26277}'
26278fi
26279
26280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26281fi # test -n "$CONFIG_FILES"
26282
26283# Set up the scripts for CONFIG_HEADERS section.
26284# No need to generate them if there are no CONFIG_HEADERS.
26285# This happens for instance with `./config.status Makefile'.
26286if test -n "$CONFIG_HEADERS"; then
26287cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26288BEGIN {
26289_ACEOF
26290
26291# Transform confdefs.h into an awk script `defines.awk', embedded as
26292# here-document in config.status, that substitutes the proper values into
26293# config.h.in to produce config.h.
26294
26295# Create a delimiter string that does not exist in confdefs.h, to ease
26296# handling of long lines.
26297ac_delim='%!_!# '
26298for ac_last_try in false false :; do
26299  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26300  if test -z "$ac_tt"; then
26301    break
26302  elif $ac_last_try; then
26303    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26304  else
26305    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26306  fi
26307done
26308
26309# For the awk script, D is an array of macro values keyed by name,
26310# likewise P contains macro parameters if any.  Preserve backslash
26311# newline sequences.
26312
26313ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26314sed -n '
26315s/.\{148\}/&'"$ac_delim"'/g
26316t rset
26317:rset
26318s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26319t def
26320d
26321:def
26322s/\\$//
26323t bsnl
26324s/["\\]/\\&/g
26325s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26326D["\1"]=" \3"/p
26327s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26328d
26329:bsnl
26330s/["\\]/\\&/g
26331s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26332D["\1"]=" \3\\\\\\n"\\/p
26333t cont
26334s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26335t cont
26336d
26337:cont
26338n
26339s/.\{148\}/&'"$ac_delim"'/g
26340t clear
26341:clear
26342s/\\$//
26343t bsnlc
26344s/["\\]/\\&/g; s/^/"/; s/$/"/p
26345d
26346:bsnlc
26347s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26348b cont
26349' <confdefs.h | sed '
26350s/'"$ac_delim"'/"\\\
26351"/g' >>$CONFIG_STATUS || ac_write_fail=1
26352
26353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26354  for (key in D) D_is_set[key] = 1
26355  FS = ""
26356}
26357/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26358  line = \$ 0
26359  split(line, arg, " ")
26360  if (arg[1] == "#") {
26361    defundef = arg[2]
26362    mac1 = arg[3]
26363  } else {
26364    defundef = substr(arg[1], 2)
26365    mac1 = arg[2]
26366  }
26367  split(mac1, mac2, "(") #)
26368  macro = mac2[1]
26369  prefix = substr(line, 1, index(line, defundef) - 1)
26370  if (D_is_set[macro]) {
26371    # Preserve the white space surrounding the "#".
26372    print prefix "define", macro P[macro] D[macro]
26373    next
26374  } else {
26375    # Replace #undef with comments.  This is necessary, for example,
26376    # in the case of _POSIX_SOURCE, which is predefined and required
26377    # on some systems where configure will not decide to define it.
26378    if (defundef == "undef") {
26379      print "/*", prefix defundef, macro, "*/"
26380      next
26381    }
26382  }
26383}
26384{ print }
26385_ACAWK
26386_ACEOF
26387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26388  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26389fi # test -n "$CONFIG_HEADERS"
26390
26391
26392eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26393shift
26394for ac_tag
26395do
26396  case $ac_tag in
26397  :[FHLC]) ac_mode=$ac_tag; continue;;
26398  esac
26399  case $ac_mode$ac_tag in
26400  :[FHL]*:*);;
26401  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26402  :[FH]-) ac_tag=-:-;;
26403  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26404  esac
26405  ac_save_IFS=$IFS
26406  IFS=:
26407  set x $ac_tag
26408  IFS=$ac_save_IFS
26409  shift
26410  ac_file=$1
26411  shift
26412
26413  case $ac_mode in
26414  :L) ac_source=$1;;
26415  :[FH])
26416    ac_file_inputs=
26417    for ac_f
26418    do
26419      case $ac_f in
26420      -) ac_f="$ac_tmp/stdin";;
26421      *) # Look for the file first in the build tree, then in the source tree
26422	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26423	 # because $ac_f cannot contain `:'.
26424	 test -f "$ac_f" ||
26425	   case $ac_f in
26426	   [\\/$]*) false;;
26427	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26428	   esac ||
26429	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26430      esac
26431      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26432      as_fn_append ac_file_inputs " '$ac_f'"
26433    done
26434
26435    # Let's still pretend it is `configure' which instantiates (i.e., don't
26436    # use $as_me), people would be surprised to read:
26437    #    /* config.h.  Generated by config.status.  */
26438    configure_input='Generated from '`
26439	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26440	`' by configure.'
26441    if test x"$ac_file" != x-; then
26442      configure_input="$ac_file.  $configure_input"
26443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26444printf "%s\n" "$as_me: creating $ac_file" >&6;}
26445    fi
26446    # Neutralize special characters interpreted by sed in replacement strings.
26447    case $configure_input in #(
26448    *\&* | *\|* | *\\* )
26449       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
26450       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26451    *) ac_sed_conf_input=$configure_input;;
26452    esac
26453
26454    case $ac_tag in
26455    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26456      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26457    esac
26458    ;;
26459  esac
26460
26461  ac_dir=`$as_dirname -- "$ac_file" ||
26462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26463	 X"$ac_file" : 'X\(//\)[^/]' \| \
26464	 X"$ac_file" : 'X\(//\)$' \| \
26465	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26466printf "%s\n" X"$ac_file" |
26467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26468	    s//\1/
26469	    q
26470	  }
26471	  /^X\(\/\/\)[^/].*/{
26472	    s//\1/
26473	    q
26474	  }
26475	  /^X\(\/\/\)$/{
26476	    s//\1/
26477	    q
26478	  }
26479	  /^X\(\/\).*/{
26480	    s//\1/
26481	    q
26482	  }
26483	  s/.*/./; q'`
26484  as_dir="$ac_dir"; as_fn_mkdir_p
26485  ac_builddir=.
26486
26487case "$ac_dir" in
26488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26489*)
26490  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26491  # A ".." for each directory in $ac_dir_suffix.
26492  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26493  case $ac_top_builddir_sub in
26494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26496  esac ;;
26497esac
26498ac_abs_top_builddir=$ac_pwd
26499ac_abs_builddir=$ac_pwd$ac_dir_suffix
26500# for backward compatibility:
26501ac_top_builddir=$ac_top_build_prefix
26502
26503case $srcdir in
26504  .)  # We are building in place.
26505    ac_srcdir=.
26506    ac_top_srcdir=$ac_top_builddir_sub
26507    ac_abs_top_srcdir=$ac_pwd ;;
26508  [\\/]* | ?:[\\/]* )  # Absolute name.
26509    ac_srcdir=$srcdir$ac_dir_suffix;
26510    ac_top_srcdir=$srcdir
26511    ac_abs_top_srcdir=$srcdir ;;
26512  *) # Relative name.
26513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26514    ac_top_srcdir=$ac_top_build_prefix$srcdir
26515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26516esac
26517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26518
26519
26520  case $ac_mode in
26521  :F)
26522  #
26523  # CONFIG_FILE
26524  #
26525
26526  case $INSTALL in
26527  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26528  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26529  esac
26530  ac_MKDIR_P=$MKDIR_P
26531  case $MKDIR_P in
26532  [\\/$]* | ?:[\\/]* ) ;;
26533  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26534  esac
26535_ACEOF
26536
26537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26538# If the template does not know about datarootdir, expand it.
26539# FIXME: This hack should be removed a few years after 2.60.
26540ac_datarootdir_hack=; ac_datarootdir_seen=
26541ac_sed_dataroot='
26542/datarootdir/ {
26543  p
26544  q
26545}
26546/@datadir@/p
26547/@docdir@/p
26548/@infodir@/p
26549/@localedir@/p
26550/@mandir@/p'
26551case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26552*datarootdir*) ac_datarootdir_seen=yes;;
26553*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26555printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26556_ACEOF
26557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26558  ac_datarootdir_hack='
26559  s&@datadir@&$datadir&g
26560  s&@docdir@&$docdir&g
26561  s&@infodir@&$infodir&g
26562  s&@localedir@&$localedir&g
26563  s&@mandir@&$mandir&g
26564  s&\\\${datarootdir}&$datarootdir&g' ;;
26565esac
26566_ACEOF
26567
26568# Neutralize VPATH when `$srcdir' = `.'.
26569# Shell code in configure.ac might set extrasub.
26570# FIXME: do we really want to maintain this feature?
26571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26572ac_sed_extra="$ac_vpsub
26573$extrasub
26574_ACEOF
26575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26576:t
26577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26578s|@configure_input@|$ac_sed_conf_input|;t t
26579s&@top_builddir@&$ac_top_builddir_sub&;t t
26580s&@top_build_prefix@&$ac_top_build_prefix&;t t
26581s&@srcdir@&$ac_srcdir&;t t
26582s&@abs_srcdir@&$ac_abs_srcdir&;t t
26583s&@top_srcdir@&$ac_top_srcdir&;t t
26584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26585s&@builddir@&$ac_builddir&;t t
26586s&@abs_builddir@&$ac_abs_builddir&;t t
26587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26588s&@INSTALL@&$ac_INSTALL&;t t
26589s&@MKDIR_P@&$ac_MKDIR_P&;t t
26590$ac_datarootdir_hack
26591"
26592eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26593  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26594
26595test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26596  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26597  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
26598      "$ac_tmp/out"`; test -z "$ac_out"; } &&
26599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26600which seems to be undefined.  Please make sure it is defined" >&5
26601printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26602which seems to be undefined.  Please make sure it is defined" >&2;}
26603
26604  rm -f "$ac_tmp/stdin"
26605  case $ac_file in
26606  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26607  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26608  esac \
26609  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26610 ;;
26611  :H)
26612  #
26613  # CONFIG_HEADER
26614  #
26615  if test x"$ac_file" != x-; then
26616    {
26617      printf "%s\n" "/* $configure_input  */" >&1 \
26618      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26619    } >"$ac_tmp/config.h" \
26620      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26621    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26622      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26623printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
26624    else
26625      rm -f "$ac_file"
26626      mv "$ac_tmp/config.h" "$ac_file" \
26627	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
26628    fi
26629  else
26630    printf "%s\n" "/* $configure_input  */" >&1 \
26631      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26632      || as_fn_error $? "could not create -" "$LINENO" 5
26633  fi
26634# Compute "$ac_file"'s index in $config_headers.
26635_am_arg="$ac_file"
26636_am_stamp_count=1
26637for _am_header in $config_headers :; do
26638  case $_am_header in
26639    $_am_arg | $_am_arg:* )
26640      break ;;
26641    * )
26642      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26643  esac
26644done
26645echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26646$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26647	 X"$_am_arg" : 'X\(//\)[^/]' \| \
26648	 X"$_am_arg" : 'X\(//\)$' \| \
26649	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26650printf "%s\n" X"$_am_arg" |
26651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26652	    s//\1/
26653	    q
26654	  }
26655	  /^X\(\/\/\)[^/].*/{
26656	    s//\1/
26657	    q
26658	  }
26659	  /^X\(\/\/\)$/{
26660	    s//\1/
26661	    q
26662	  }
26663	  /^X\(\/\).*/{
26664	    s//\1/
26665	    q
26666	  }
26667	  s/.*/./; q'`/stamp-h$_am_stamp_count
26668 ;;
26669
26670  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26671printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
26672 ;;
26673  esac
26674
26675
26676  case $ac_file$ac_mode in
26677    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26678  # Older Autoconf quotes --file arguments for eval, but not when files
26679  # are listed without --file.  Let's play safe and only enable the eval
26680  # if we detect the quoting.
26681  # TODO: see whether this extra hack can be removed once we start
26682  # requiring Autoconf 2.70 or later.
26683  case $CONFIG_FILES in #(
26684  *\'*) :
26685    eval set x "$CONFIG_FILES" ;; #(
26686  *) :
26687    set x $CONFIG_FILES ;; #(
26688  *) :
26689     ;;
26690esac
26691  shift
26692  # Used to flag and report bootstrapping failures.
26693  am_rc=0
26694  for am_mf
26695  do
26696    # Strip MF so we end up with the name of the file.
26697    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
26698    # Check whether this is an Automake generated Makefile which includes
26699    # dependency-tracking related rules and includes.
26700    # Grep'ing the whole file directly is not great: AIX grep has a line
26701    # limit of 2048, but all sed's we know have understand at least 4000.
26702    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26703      || continue
26704    am_dirpart=`$as_dirname -- "$am_mf" ||
26705$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26706	 X"$am_mf" : 'X\(//\)[^/]' \| \
26707	 X"$am_mf" : 'X\(//\)$' \| \
26708	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26709printf "%s\n" X"$am_mf" |
26710    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26711	    s//\1/
26712	    q
26713	  }
26714	  /^X\(\/\/\)[^/].*/{
26715	    s//\1/
26716	    q
26717	  }
26718	  /^X\(\/\/\)$/{
26719	    s//\1/
26720	    q
26721	  }
26722	  /^X\(\/\).*/{
26723	    s//\1/
26724	    q
26725	  }
26726	  s/.*/./; q'`
26727    am_filepart=`$as_basename -- "$am_mf" ||
26728$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26729	 X"$am_mf" : 'X\(//\)$' \| \
26730	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26731printf "%s\n" X/"$am_mf" |
26732    sed '/^.*\/\([^/][^/]*\)\/*$/{
26733	    s//\1/
26734	    q
26735	  }
26736	  /^X\/\(\/\/\)$/{
26737	    s//\1/
26738	    q
26739	  }
26740	  /^X\/\(\/\).*/{
26741	    s//\1/
26742	    q
26743	  }
26744	  s/.*/./; q'`
26745    { echo "$as_me:$LINENO: cd "$am_dirpart" \
26746      && sed -e '/# am--include-marker/d' "$am_filepart" \
26747        | $MAKE -f - am--depfiles" >&5
26748   (cd "$am_dirpart" \
26749      && sed -e '/# am--include-marker/d' "$am_filepart" \
26750        | $MAKE -f - am--depfiles) >&5 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); } || am_rc=$?
26754  done
26755  if test $am_rc -ne 0; then
26756    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26757printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26758as_fn_error $? "Something went wrong bootstrapping makefile fragments
26759    for automatic dependency tracking.  If GNU make was not used, consider
26760    re-running the configure script with MAKE=\"gmake\" (or whatever is
26761    necessary).  You can also try re-running configure with the
26762    '--disable-dependency-tracking' option to at least be able to build
26763    the package (albeit without support for automatic dependency tracking).
26764See \`config.log' for more details" "$LINENO" 5; }
26765  fi
26766  { am_dirpart=; unset am_dirpart;}
26767  { am_filepart=; unset am_filepart;}
26768  { am_mf=; unset am_mf;}
26769  { am_rc=; unset am_rc;}
26770  rm -f conftest-deps.mk
26771}
26772 ;;
26773    "libtool":C)
26774
26775    # See if we are running on zsh, and set the options that allow our
26776    # commands through without removal of \ escapes.
26777    if test -n "${ZSH_VERSION+set}"; then
26778      setopt NO_GLOB_SUBST
26779    fi
26780
26781    cfgfile=${ofile}T
26782    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26783    $RM "$cfgfile"
26784
26785    cat <<_LT_EOF >> "$cfgfile"
26786#! $SHELL
26787# Generated automatically by $as_me ($PACKAGE) $VERSION
26788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26789# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26790
26791# Provide generalized library-building support services.
26792# Written by Gordon Matzigkeit, 1996
26793
26794# Copyright (C) 2014 Free Software Foundation, Inc.
26795# This is free software; see the source for copying conditions.  There is NO
26796# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26797
26798# GNU Libtool is free software; you can redistribute it and/or modify
26799# it under the terms of the GNU General Public License as published by
26800# the Free Software Foundation; either version 2 of of the License, or
26801# (at your option) any later version.
26802#
26803# As a special exception to the GNU General Public License, if you
26804# distribute this file as part of a program or library that is built
26805# using GNU Libtool, you may include this file under the  same
26806# distribution terms that you use for the rest of that program.
26807#
26808# GNU Libtool is distributed in the hope that it will be useful, but
26809# WITHOUT ANY WARRANTY; without even the implied warranty of
26810# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26811# GNU General Public License for more details.
26812#
26813# You should have received a copy of the GNU General Public License
26814# along with this program.  If not, see <http://www.gnu.org/licenses/>.
26815
26816
26817# The names of the tagged configurations supported by this script.
26818available_tags='CXX '
26819
26820# Configured defaults for sys_lib_dlsearch_path munging.
26821: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26822
26823# ### BEGIN LIBTOOL CONFIG
26824
26825# Which release of libtool.m4 was used?
26826macro_version=$macro_version
26827macro_revision=$macro_revision
26828
26829# Whether or not to build static libraries.
26830build_old_libs=$enable_static
26831
26832# Whether or not to build shared libraries.
26833build_libtool_libs=$enable_shared
26834
26835# What type of objects to build.
26836pic_mode=$pic_mode
26837
26838# Whether or not to optimize for fast installation.
26839fast_install=$enable_fast_install
26840
26841# Shared archive member basename,for filename based shared library versioning on AIX.
26842shared_archive_member_spec=$shared_archive_member_spec
26843
26844# Shell to use when invoking shell scripts.
26845SHELL=$lt_SHELL
26846
26847# An echo program that protects backslashes.
26848ECHO=$lt_ECHO
26849
26850# The PATH separator for the build system.
26851PATH_SEPARATOR=$lt_PATH_SEPARATOR
26852
26853# The host system.
26854host_alias=$host_alias
26855host=$host
26856host_os=$host_os
26857
26858# The build system.
26859build_alias=$build_alias
26860build=$build
26861build_os=$build_os
26862
26863# A sed program that does not truncate output.
26864SED=$lt_SED
26865
26866# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26867Xsed="\$SED -e 1s/^X//"
26868
26869# A grep program that handles long lines.
26870GREP=$lt_GREP
26871
26872# An ERE matcher.
26873EGREP=$lt_EGREP
26874
26875# A literal string matcher.
26876FGREP=$lt_FGREP
26877
26878# A BSD- or MS-compatible name lister.
26879NM=$lt_NM
26880
26881# Whether we need soft or hard links.
26882LN_S=$lt_LN_S
26883
26884# What is the maximum length of a command?
26885max_cmd_len=$max_cmd_len
26886
26887# Object file suffix (normally "o").
26888objext=$ac_objext
26889
26890# Executable file suffix (normally "").
26891exeext=$exeext
26892
26893# whether the shell understands "unset".
26894lt_unset=$lt_unset
26895
26896# turn spaces into newlines.
26897SP2NL=$lt_lt_SP2NL
26898
26899# turn newlines into spaces.
26900NL2SP=$lt_lt_NL2SP
26901
26902# convert \$build file names to \$host format.
26903to_host_file_cmd=$lt_cv_to_host_file_cmd
26904
26905# convert \$build files to toolchain format.
26906to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26907
26908# An object symbol dumper.
26909OBJDUMP=$lt_OBJDUMP
26910
26911# Method to check whether dependent libraries are shared objects.
26912deplibs_check_method=$lt_deplibs_check_method
26913
26914# Command to use when deplibs_check_method = "file_magic".
26915file_magic_cmd=$lt_file_magic_cmd
26916
26917# How to find potential files when deplibs_check_method = "file_magic".
26918file_magic_glob=$lt_file_magic_glob
26919
26920# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26921want_nocaseglob=$lt_want_nocaseglob
26922
26923# DLL creation program.
26924DLLTOOL=$lt_DLLTOOL
26925
26926# Command to associate shared and link libraries.
26927sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26928
26929# The archiver.
26930AR=$lt_AR
26931
26932# Flags to create an archive.
26933AR_FLAGS=$lt_AR_FLAGS
26934
26935# How to feed a file listing to the archiver.
26936archiver_list_spec=$lt_archiver_list_spec
26937
26938# A symbol stripping program.
26939STRIP=$lt_STRIP
26940
26941# Commands used to install an old-style archive.
26942RANLIB=$lt_RANLIB
26943old_postinstall_cmds=$lt_old_postinstall_cmds
26944old_postuninstall_cmds=$lt_old_postuninstall_cmds
26945
26946# Whether to use a lock for old archive extraction.
26947lock_old_archive_extraction=$lock_old_archive_extraction
26948
26949# A C compiler.
26950LTCC=$lt_CC
26951
26952# LTCC compiler flags.
26953LTCFLAGS=$lt_CFLAGS
26954
26955# Take the output of nm and produce a listing of raw symbols and C names.
26956global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26957
26958# Transform the output of nm in a proper C declaration.
26959global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26960
26961# Transform the output of nm into a list of symbols to manually relocate.
26962global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26963
26964# Transform the output of nm in a C name address pair.
26965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26966
26967# Transform the output of nm in a C name address pair when lib prefix is needed.
26968global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26969
26970# The name lister interface.
26971nm_interface=$lt_lt_cv_nm_interface
26972
26973# Specify filename containing input files for \$NM.
26974nm_file_list_spec=$lt_nm_file_list_spec
26975
26976# The root where to search for dependent libraries,and where our libraries should be installed.
26977lt_sysroot=$lt_sysroot
26978
26979# Command to truncate a binary pipe.
26980lt_truncate_bin=$lt_lt_cv_truncate_bin
26981
26982# The name of the directory that contains temporary libtool files.
26983objdir=$objdir
26984
26985# Used to examine libraries when file_magic_cmd begins with "file".
26986MAGIC_CMD=$MAGIC_CMD
26987
26988# Must we lock files when doing compilation?
26989need_locks=$lt_need_locks
26990
26991# Manifest tool.
26992MANIFEST_TOOL=$lt_MANIFEST_TOOL
26993
26994# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26995DSYMUTIL=$lt_DSYMUTIL
26996
26997# Tool to change global to local symbols on Mac OS X.
26998NMEDIT=$lt_NMEDIT
26999
27000# Tool to manipulate fat objects and archives on Mac OS X.
27001LIPO=$lt_LIPO
27002
27003# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27004OTOOL=$lt_OTOOL
27005
27006# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27007OTOOL64=$lt_OTOOL64
27008
27009# Old archive suffix (normally "a").
27010libext=$libext
27011
27012# Shared library suffix (normally ".so").
27013shrext_cmds=$lt_shrext_cmds
27014
27015# The commands to extract the exported symbol list from a shared archive.
27016extract_expsyms_cmds=$lt_extract_expsyms_cmds
27017
27018# Variables whose values should be saved in libtool wrapper scripts and
27019# restored at link time.
27020variables_saved_for_relink=$lt_variables_saved_for_relink
27021
27022# Do we need the "lib" prefix for modules?
27023need_lib_prefix=$need_lib_prefix
27024
27025# Do we need a version for libraries?
27026need_version=$need_version
27027
27028# Library versioning type.
27029version_type=$version_type
27030
27031# Shared library runtime path variable.
27032runpath_var=$runpath_var
27033
27034# Shared library path variable.
27035shlibpath_var=$shlibpath_var
27036
27037# Is shlibpath searched before the hard-coded library search path?
27038shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27039
27040# Format of library name prefix.
27041libname_spec=$lt_libname_spec
27042
27043# List of archive names.  First name is the real one, the rest are links.
27044# The last name is the one that the linker finds with -lNAME
27045library_names_spec=$lt_library_names_spec
27046
27047# The coded name of the library, if different from the real name.
27048soname_spec=$lt_soname_spec
27049
27050# Permission mode override for installation of shared libraries.
27051install_override_mode=$lt_install_override_mode
27052
27053# Command to use after installation of a shared archive.
27054postinstall_cmds=$lt_postinstall_cmds
27055
27056# Command to use after uninstallation of a shared archive.
27057postuninstall_cmds=$lt_postuninstall_cmds
27058
27059# Commands used to finish a libtool library installation in a directory.
27060finish_cmds=$lt_finish_cmds
27061
27062# As "finish_cmds", except a single script fragment to be evaled but
27063# not shown.
27064finish_eval=$lt_finish_eval
27065
27066# Whether we should hardcode library paths into libraries.
27067hardcode_into_libs=$hardcode_into_libs
27068
27069# Compile-time system search path for libraries.
27070sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27071
27072# Detected run-time system search path for libraries.
27073sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27074
27075# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27076configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27077
27078# Whether dlopen is supported.
27079dlopen_support=$enable_dlopen
27080
27081# Whether dlopen of programs is supported.
27082dlopen_self=$enable_dlopen_self
27083
27084# Whether dlopen of statically linked programs is supported.
27085dlopen_self_static=$enable_dlopen_self_static
27086
27087# Commands to strip libraries.
27088old_striplib=$lt_old_striplib
27089striplib=$lt_striplib
27090
27091
27092# The linker used to build libraries.
27093LD=$lt_LD
27094
27095# How to create reloadable object files.
27096reload_flag=$lt_reload_flag
27097reload_cmds=$lt_reload_cmds
27098
27099# Commands used to build an old-style archive.
27100old_archive_cmds=$lt_old_archive_cmds
27101
27102# A language specific compiler.
27103CC=$lt_compiler
27104
27105# Is the compiler the GNU compiler?
27106with_gcc=$GCC
27107
27108# Compiler flag to turn off builtin functions.
27109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27110
27111# Additional compiler flags for building library objects.
27112pic_flag=$lt_lt_prog_compiler_pic
27113
27114# How to pass a linker flag through the compiler.
27115wl=$lt_lt_prog_compiler_wl
27116
27117# Compiler flag to prevent dynamic linking.
27118link_static_flag=$lt_lt_prog_compiler_static
27119
27120# Does compiler simultaneously support -c and -o options?
27121compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27122
27123# Whether or not to add -lc for building shared libraries.
27124build_libtool_need_lc=$archive_cmds_need_lc
27125
27126# Whether or not to disallow shared libs when runtime libs are static.
27127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27128
27129# Compiler flag to allow reflexive dlopens.
27130export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27131
27132# Compiler flag to generate shared objects directly from archives.
27133whole_archive_flag_spec=$lt_whole_archive_flag_spec
27134
27135# Whether the compiler copes with passing no objects directly.
27136compiler_needs_object=$lt_compiler_needs_object
27137
27138# Create an old-style archive from a shared archive.
27139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27140
27141# Create a temporary old-style archive to link instead of a shared archive.
27142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27143
27144# Commands used to build a shared archive.
27145archive_cmds=$lt_archive_cmds
27146archive_expsym_cmds=$lt_archive_expsym_cmds
27147
27148# Commands used to build a loadable module if different from building
27149# a shared archive.
27150module_cmds=$lt_module_cmds
27151module_expsym_cmds=$lt_module_expsym_cmds
27152
27153# Whether we are building with GNU ld or not.
27154with_gnu_ld=$lt_with_gnu_ld
27155
27156# Flag that allows shared libraries with undefined symbols to be built.
27157allow_undefined_flag=$lt_allow_undefined_flag
27158
27159# Flag that enforces no undefined symbols.
27160no_undefined_flag=$lt_no_undefined_flag
27161
27162# Flag to hardcode \$libdir into a binary during linking.
27163# This must work even if \$libdir does not exist
27164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27165
27166# Whether we need a single "-rpath" flag with a separated argument.
27167hardcode_libdir_separator=$lt_hardcode_libdir_separator
27168
27169# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27170# DIR into the resulting binary.
27171hardcode_direct=$hardcode_direct
27172
27173# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27174# DIR into the resulting binary and the resulting library dependency is
27175# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27176# library is relocated.
27177hardcode_direct_absolute=$hardcode_direct_absolute
27178
27179# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27180# into the resulting binary.
27181hardcode_minus_L=$hardcode_minus_L
27182
27183# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27184# into the resulting binary.
27185hardcode_shlibpath_var=$hardcode_shlibpath_var
27186
27187# Set to "yes" if building a shared library automatically hardcodes DIR
27188# into the library and all subsequent libraries and executables linked
27189# against it.
27190hardcode_automatic=$hardcode_automatic
27191
27192# Set to yes if linker adds runtime paths of dependent libraries
27193# to runtime path list.
27194inherit_rpath=$inherit_rpath
27195
27196# Whether libtool must link a program against all its dependency libraries.
27197link_all_deplibs=$link_all_deplibs
27198
27199# Set to "yes" if exported symbols are required.
27200always_export_symbols=$always_export_symbols
27201
27202# The commands to list exported symbols.
27203export_symbols_cmds=$lt_export_symbols_cmds
27204
27205# Symbols that should not be listed in the preloaded symbols.
27206exclude_expsyms=$lt_exclude_expsyms
27207
27208# Symbols that must always be exported.
27209include_expsyms=$lt_include_expsyms
27210
27211# Commands necessary for linking programs (against libraries) with templates.
27212prelink_cmds=$lt_prelink_cmds
27213
27214# Commands necessary for finishing linking programs.
27215postlink_cmds=$lt_postlink_cmds
27216
27217# Specify filename containing input files.
27218file_list_spec=$lt_file_list_spec
27219
27220# How to hardcode a shared library path into an executable.
27221hardcode_action=$hardcode_action
27222
27223# The directories searched by this compiler when creating a shared library.
27224compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27225
27226# Dependencies to place before and after the objects being linked to
27227# create a shared library.
27228predep_objects=$lt_predep_objects
27229postdep_objects=$lt_postdep_objects
27230predeps=$lt_predeps
27231postdeps=$lt_postdeps
27232
27233# The library search path used internally by the compiler when linking
27234# a shared library.
27235compiler_lib_search_path=$lt_compiler_lib_search_path
27236
27237# ### END LIBTOOL CONFIG
27238
27239_LT_EOF
27240
27241    cat <<'_LT_EOF' >> "$cfgfile"
27242
27243# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27244
27245# func_munge_path_list VARIABLE PATH
27246# -----------------------------------
27247# VARIABLE is name of variable containing _space_ separated list of
27248# directories to be munged by the contents of PATH, which is string
27249# having a format:
27250# "DIR[:DIR]:"
27251#       string "DIR[ DIR]" will be prepended to VARIABLE
27252# ":DIR[:DIR]"
27253#       string "DIR[ DIR]" will be appended to VARIABLE
27254# "DIRP[:DIRP]::[DIRA:]DIRA"
27255#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27256#       "DIRA[ DIRA]" will be appended to VARIABLE
27257# "DIR[:DIR]"
27258#       VARIABLE will be replaced by "DIR[ DIR]"
27259func_munge_path_list ()
27260{
27261    case x$2 in
27262    x)
27263        ;;
27264    *:)
27265        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27266        ;;
27267    x:*)
27268        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27269        ;;
27270    *::*)
27271        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27272        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27273        ;;
27274    *)
27275        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27276        ;;
27277    esac
27278}
27279
27280
27281# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
27282func_cc_basename ()
27283{
27284    for cc_temp in $*""; do
27285      case $cc_temp in
27286        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27287        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27288        \-*) ;;
27289        *) break;;
27290      esac
27291    done
27292    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27293}
27294
27295
27296# ### END FUNCTIONS SHARED WITH CONFIGURE
27297
27298_LT_EOF
27299
27300  case $host_os in
27301  aix3*)
27302    cat <<\_LT_EOF >> "$cfgfile"
27303# AIX sometimes has problems with the GCC collect2 program.  For some
27304# reason, if we set the COLLECT_NAMES environment variable, the problems
27305# vanish in a puff of smoke.
27306if test set != "${COLLECT_NAMES+set}"; then
27307  COLLECT_NAMES=
27308  export COLLECT_NAMES
27309fi
27310_LT_EOF
27311    ;;
27312  esac
27313
27314
27315
27316ltmain=$ac_aux_dir/ltmain.sh
27317
27318
27319  # We use sed instead of cat because bash on DJGPP gets confused if
27320  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27321  # text mode, it properly converts lines to CR/LF.  This bash problem
27322  # is reportedly fixed, but why not run on old versions too?
27323  sed '$q' "$ltmain" >> "$cfgfile" \
27324     || (rm -f "$cfgfile"; exit 1)
27325
27326   mv -f "$cfgfile" "$ofile" ||
27327    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27328  chmod +x "$ofile"
27329
27330
27331    cat <<_LT_EOF >> "$ofile"
27332
27333# ### BEGIN LIBTOOL TAG CONFIG: CXX
27334
27335# The linker used to build libraries.
27336LD=$lt_LD_CXX
27337
27338# How to create reloadable object files.
27339reload_flag=$lt_reload_flag_CXX
27340reload_cmds=$lt_reload_cmds_CXX
27341
27342# Commands used to build an old-style archive.
27343old_archive_cmds=$lt_old_archive_cmds_CXX
27344
27345# A language specific compiler.
27346CC=$lt_compiler_CXX
27347
27348# Is the compiler the GNU compiler?
27349with_gcc=$GCC_CXX
27350
27351# Compiler flag to turn off builtin functions.
27352no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27353
27354# Additional compiler flags for building library objects.
27355pic_flag=$lt_lt_prog_compiler_pic_CXX
27356
27357# How to pass a linker flag through the compiler.
27358wl=$lt_lt_prog_compiler_wl_CXX
27359
27360# Compiler flag to prevent dynamic linking.
27361link_static_flag=$lt_lt_prog_compiler_static_CXX
27362
27363# Does compiler simultaneously support -c and -o options?
27364compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27365
27366# Whether or not to add -lc for building shared libraries.
27367build_libtool_need_lc=$archive_cmds_need_lc_CXX
27368
27369# Whether or not to disallow shared libs when runtime libs are static.
27370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27371
27372# Compiler flag to allow reflexive dlopens.
27373export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27374
27375# Compiler flag to generate shared objects directly from archives.
27376whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27377
27378# Whether the compiler copes with passing no objects directly.
27379compiler_needs_object=$lt_compiler_needs_object_CXX
27380
27381# Create an old-style archive from a shared archive.
27382old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27383
27384# Create a temporary old-style archive to link instead of a shared archive.
27385old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27386
27387# Commands used to build a shared archive.
27388archive_cmds=$lt_archive_cmds_CXX
27389archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27390
27391# Commands used to build a loadable module if different from building
27392# a shared archive.
27393module_cmds=$lt_module_cmds_CXX
27394module_expsym_cmds=$lt_module_expsym_cmds_CXX
27395
27396# Whether we are building with GNU ld or not.
27397with_gnu_ld=$lt_with_gnu_ld_CXX
27398
27399# Flag that allows shared libraries with undefined symbols to be built.
27400allow_undefined_flag=$lt_allow_undefined_flag_CXX
27401
27402# Flag that enforces no undefined symbols.
27403no_undefined_flag=$lt_no_undefined_flag_CXX
27404
27405# Flag to hardcode \$libdir into a binary during linking.
27406# This must work even if \$libdir does not exist
27407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27408
27409# Whether we need a single "-rpath" flag with a separated argument.
27410hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27411
27412# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27413# DIR into the resulting binary.
27414hardcode_direct=$hardcode_direct_CXX
27415
27416# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27417# DIR into the resulting binary and the resulting library dependency is
27418# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27419# library is relocated.
27420hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27421
27422# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27423# into the resulting binary.
27424hardcode_minus_L=$hardcode_minus_L_CXX
27425
27426# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27427# into the resulting binary.
27428hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27429
27430# Set to "yes" if building a shared library automatically hardcodes DIR
27431# into the library and all subsequent libraries and executables linked
27432# against it.
27433hardcode_automatic=$hardcode_automatic_CXX
27434
27435# Set to yes if linker adds runtime paths of dependent libraries
27436# to runtime path list.
27437inherit_rpath=$inherit_rpath_CXX
27438
27439# Whether libtool must link a program against all its dependency libraries.
27440link_all_deplibs=$link_all_deplibs_CXX
27441
27442# Set to "yes" if exported symbols are required.
27443always_export_symbols=$always_export_symbols_CXX
27444
27445# The commands to list exported symbols.
27446export_symbols_cmds=$lt_export_symbols_cmds_CXX
27447
27448# Symbols that should not be listed in the preloaded symbols.
27449exclude_expsyms=$lt_exclude_expsyms_CXX
27450
27451# Symbols that must always be exported.
27452include_expsyms=$lt_include_expsyms_CXX
27453
27454# Commands necessary for linking programs (against libraries) with templates.
27455prelink_cmds=$lt_prelink_cmds_CXX
27456
27457# Commands necessary for finishing linking programs.
27458postlink_cmds=$lt_postlink_cmds_CXX
27459
27460# Specify filename containing input files.
27461file_list_spec=$lt_file_list_spec_CXX
27462
27463# How to hardcode a shared library path into an executable.
27464hardcode_action=$hardcode_action_CXX
27465
27466# The directories searched by this compiler when creating a shared library.
27467compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27468
27469# Dependencies to place before and after the objects being linked to
27470# create a shared library.
27471predep_objects=$lt_predep_objects_CXX
27472postdep_objects=$lt_postdep_objects_CXX
27473predeps=$lt_predeps_CXX
27474postdeps=$lt_postdeps_CXX
27475
27476# The library search path used internally by the compiler when linking
27477# a shared library.
27478compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27479
27480# ### END LIBTOOL TAG CONFIG: CXX
27481_LT_EOF
27482
27483 ;;
27484
27485  esac
27486done # for ac_tag
27487
27488
27489as_fn_exit 0
27490_ACEOF
27491ac_clean_files=$ac_clean_files_save
27492
27493test $ac_write_fail = 0 ||
27494  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27495
27496
27497# configure is writing to config.log, and then calls config.status.
27498# config.status does its own redirection, appending to config.log.
27499# Unfortunately, on DOS this fails, as config.log is still kept open
27500# by configure, so config.status won't be able to write to it; its
27501# output is simply discarded.  So we exec the FD to /dev/null,
27502# effectively closing config.log, so it can be properly (re)opened and
27503# appended to by config.status.  When coming back to configure, we
27504# need to make the FD available again.
27505if test "$no_create" != yes; then
27506  ac_cs_success=:
27507  ac_config_status_args=
27508  test "$silent" = yes &&
27509    ac_config_status_args="$ac_config_status_args --quiet"
27510  exec 5>/dev/null
27511  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27512  exec 5>>config.log
27513  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27514  # would make configure fail if this is the last instruction.
27515  $ac_cs_success || as_fn_exit 1
27516fi
27517if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27519printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27520fi
27521
27522
27523